PageSourceSearch

https://najrecept.topky.sk/inc/js/core.js?v=1764624650

js topky.sk collected 2026-10-02 02:57:28 UTC 130,894 bytes, 277 lines download raw bytes

1/*
2 jQuery JavaScript Library v3.6.0
3 https://jquery.com/
4
5 Includes Sizzle.js
6 https://sizzlejs.com/
7
8 Copyright OpenJS Foundation and other contributors
9 Released under the MIT license
10 https://jquery.org/license
11
12 Date: 2021-03-02T17:08Z
13 Sizzle CSS Selector Engine v2.3.6
14 https://sizzlejs.com/
15
16 Copyright JS Foundation and other contributors
17 Released under the MIT license
18 https://js.foundation/
19
20 Date: 2021-02-16
21*/
22var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_ES6=!1;$jscomp.ASSUME_ES2020=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.INSTRUMENT_ASYNC_CONTEXT=!0;
23$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(K,Y,U){if(K==Array.prototype||K==Object.prototype)return K;K[Y]=U.value;return K};$jscomp.getGlobal=function(K){K=["object"==typeof globalThis&&globalThis,K,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Y=0;Y<K.length;++Y){var U=K[Y];if(U&&U.Math==Math)return U}throw Error("Cannot find global object");};
24$jscomp.global=$jscomp.ASSUME_ES2020?globalThis:$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==="function"&&typeof Symbol("x")==="symbol";$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(K,Y,U){if(!U||K!=null){U=$jscomp.propertyToPolyfillSymbol[Y];if(U==null)return K[Y];U=K[U];return U!==void 0?U:K[Y]}};
25$jscomp.TYPED_ARRAY_CLASSES=function(){var K="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");$jscomp.global.BigInt64Array&&(K.push("BigInt64"),K.push("BigUint64"));return K}();$jscomp.polyfillTypedArrayMethod=function(K,Y,U,da){if(Y)for(var na=0;na<$jscomp.TYPED_ARRAY_CLASSES.length;na++){var va=$jscomp.TYPED_ARRAY_CLASSES[na]+"Array.prototype."+K;$jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(va,Y,U,da):$jscomp.polyfillUnisolated(va,Y,U,da)}};
26$jscomp.polyfill=function(K,Y,U,da){Y&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(K,Y,U,da):$jscomp.polyfillUnisolated(K,Y,U,da))};$jscomp.polyfillUnisolated=function(K,Y,U,da){U=$jscomp.global;K=K.split(".");for(da=0;da<K.length-1;da++){var na=K[da];if(!(na in U))return;U=U[na]}K=K[K.length-1];da=U[K];Y=Y(da);Y!=da&&Y!=null&&$jscomp.defineProperty(U,K,{configurable:!0,writable:!0,value:Y})};
27$jscomp.polyfillIsolated=function(K,Y,U,da){var na=K.split(".");K=na.length===1;da=na[0];da=!K&&da in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var va=0;va<na.length-1;va++){var gb=na[va];if(!(gb in da))return;da=da[gb]}na=na[na.length-1];U=$jscomp.IS_SYMBOL_NATIVE&&U==="es6"?da[na]:null;Y=Y(U);Y!=null&&(K?$jscomp.defineProperty($jscomp.polyfills,na,{configurable:!0,writable:!0,value:Y}):Y!==U&&($jscomp.propertyToPolyfillSymbol[na]===void 0&&(U=Math.random()*1E9>>>0,$jscomp.propertyToPolyfillSymbol[na]=
28$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(na):$jscomp.POLYFILL_PREFIX+U+"$"+na),$jscomp.defineProperty(da,$jscomp.propertyToPolyfillSymbol[na],{configurable:!0,writable:!0,value:Y})))};$jscomp.polyfill("Array.prototype.flat",function(K){return K?K:function(Y){Y=Y===void 0?1:Y;var U=[];Array.prototype.forEach.call(this,function(da){Array.isArray(da)&&Y>0?(da=Array.prototype.flat.call(da,Y-1),U.push.apply(U,da)):U.push(da)});return U}},"es9","es5");
29$jscomp.polyfill("Array.prototype.includes",function(K){return K?K:function(Y,U){var da=this;da instanceof String&&(da=String(da));var na=da.length;U=U||0;for(U<0&&(U=Math.max(U+na,0));U<na;U++){var va=da[U];if(va===Y||Object.is(va,Y))return!0}return!1}},"es7","es3");
30(function(K,Y){typeof module==="object"&&typeof module.exports==="object"?module.exports=K.document?Y(K,!0):function(U){if(!U.document)throw Error("jQuery requires a window with a document");return Y(U)}:Y(K)})(typeof window!=="undefined"?window:this,function(K,Y){function U(a,b,d){d=d||P;var e,h=d.createElement("script");h.text=a;if(b)for(e in xa)(a=b[e]||b.getAttribute&&b.getAttribute(e))&&h.setAttribute(e,a);d.head.appendChild(h).parentNode.removeChild(h)}function da(a){return a==null?a+"":typeof a===
31"object"||typeof a==="function"?E[D.call(a)]||"object":typeof a}function na(a){var b=!!a&&"length"in a&&a.length,d=da(a);return S(a)||Ca(a)?!1:d==="array"||b===0||typeof b==="number"&&b>0&&b-1 in a}function va(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}function gb(a,b,d){return S(b)?f.grep(a,function(e,h){return!!b.call(e,h,e)!==d}):b.nodeType?f.grep(a,function(e){return e===b!==d}):typeof b!=="string"?f.grep(a,function(e){return v.call(b,e)>-1!==d}):f.filter(b,a,d)}function Ib(a,
32b){for(;(a=a[b])&&a.nodeType!==1;);return a}function ab(a){var b={};f.each(a.match(la)||[],function(d,e){b[e]=!0});return b}function Ta(a){return a}function ub(a){throw a;}function vb(){P.removeEventListener("DOMContentLoaded",vb);K.removeEventListener("load",vb);f.ready()}function dc(a,b){return b.toUpperCase()}function Ja(a){return a.replace(ea,"ms-").replace(ha,dc)}function wb(){this.expando=f.expando+wb.uid++}function xb(a,b,d,e){var h,l=20,p=e?function(){return e.cur()}:function(){return f.css(a,
33b,"")},w=p(),u=d&&d[3]||(f.cssNumber[b]?"":"px"),C=a.nodeType&&(f.cssNumber[b]||u!=="px"&&+w)&&oa.exec(f.css(a,b));if(C&&C[3]!==u){w/=2;u=u||C[3];for(C=+w||1;l--;)f.style(a,b,C+u),(1-h)*(1-(h=p()/w||.5))<=0&&(l=0),C/=h;C*=2;f.style(a,b,C+u);d=d||[]}if(d){C=+C||+w||0;var G=d[1]?C+(d[1]+1)*d[2]:+d[2];e&&(e.unit=u,e.start=C,e.end=G)}return G}function Xa(a,b){for(var d,e,h=[],l=0,p=a.length;l<p;l++)if(e=a[l],e.style)if(d=e.style.display,b){if(d==="none"&&(h[l]=L.get(e,"display")||null,h[l]||(e.style.display=
34"")),e.style.display===""&&Rb(e)){d=l;var w=e.ownerDocument;e=e.nodeName;var u=kc[e];
34u||(w=w.body.appendChild(w.createElement(e)),u=f.css(w,"display"),w.parentNode.removeChild(w),u==="none"&&(u="block"),kc[e]=u);w=u;h[d]=w}}else d!=="none"&&(h[l]="none",L.set(e,"display",d));for(l=0;l<p;l++)h[l]!=null&&(a[l].style.display=h[l]);return a}function Ka(a,b){var d=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return b===void 0||b&&va(a,b)?f.merge([a],
35d):d}function yb(a,b){for(var d=0,e=a.length;d<e;d++)L.set(a[d],"globalEval",!b||L.get(b[d],"globalEval"))}function Jb(a,b,d,e,h){for(var l,p,w,u=b.createDocumentFragment(),C=[],G=0,I=a.length;G<I;G++)if((l=a[G])||l===0)if(da(l)==="object")f.merge(C,l.nodeType?[l]:l);else if(Gc.test(l)){p=p||u.appendChild(b.createElement("div"));w=(lc.exec(l)||["",""])[1].toLowerCase();w=Ya[w]||Ya._default;p.innerHTML=w[1]+f.htmlPrefilter(l)+w[2];for(w=w[0];w--;)p=p.lastChild;f.merge(C,p.childNodes);p=u.firstChild;
36p.textContent=""}else C.push(b.createTextNode(l));u.textContent="";for(G=0;l=C[G++];)if(e&&f.inArray(l,e)>-1)h&&h.push(l);else if(a=zb(l),p=Ka(u.appendChild(l),"script"),a&&yb(p),d)for(w=0;l=p[w++];)mc.test(l.type||"")&&d.push(l);return u}function bb(){return!0}function cb(){return!1}function Sb(a,b){return a===P.activeElement===(b==="focus")}function Ab(a,b,d,e,h,l){var p;if(typeof b==="object"){typeof d!=="string"&&(e=e||d,d=void 0);for(p in b)Ab(a,p,d,e,b[p],l);return a}e==null&&h==null?(h=d,e=
37d=void 0):h==null&&(typeof d==="string"?(h=e,e=void 0):(h=e,e=d,d=void 0));if(h===!1)h=cb;else if(!h)return a;if(l===1){var w=h;h=function(u){f().off(u);return w.apply(this,arguments)};h.guid=w.guid||(w.guid=f.guid++)}return a.each(function(){f.event.add(this,b,h,e,d)})}function Bb(a,b,d){d?(L.set(a,b,!1),f.event.add(a,b,{namespace:!1,handler:function(e){var h=L.get(this,b);if(e.isTrigger&1&&this[b])if(h.length)(f.event.special[b]||{}).delegateType&&e.stopPropagation();else{h=A.call(arguments);L.set(this,
38b,h);var l=d(this,b);this[b]();var p=L.get(this,b);h!==p||l?L.set(this,b,!1):p={};if(h!==p)return e.stopImmediatePropagation(),e.preventDefault(),p&&p.value}else h.length&&(L.set(this,b,{value:f.event.trigger(f.extend(h[0],f.Event.prototype),h.slice(1),this)}),e.stopImmediatePropagation())}})):L.get(a,b)===void 0&&f.event.add(a,b,bb)}function Kb(a,b){return va(a,"table")&&va(b.nodeType!==11?b:b.firstChild,"tr")?f(a).children("tbody")[0]||a:a}function Da(a){a.type=(a.getAttribute("type")!==null)+"/"+
39a.type;return a}function hb(a){(a.type||"").slice(0,5)==="true/"?a.type=a.type.slice(5):a.removeAttribute("type");return a}function Cb(a,b){var d,e,h;if(b.nodeType===1&&L.hasData(a)&&(a=L.get(a),h=a.events))for(e in L.remove(b,"handle events"),h)for(a=0,d=h[e].length;a<d;a++)f.event.add(b,e,h[e][a])}function db(a,b,d,e){b=x.call(b);var h,l=0,p=a.length,w=p-1,u=b[0],C=S(u);if(C||p>1&&typeof u==="string"&&!V.checkClone&&Hc.test(u))return a.each(function(wa){var fa=a.eq(wa);C&&(b[0]=u.call(this,wa,fa.html()));
40db(fa,b,d,e)});if(p){var G=Jb(b,a[0].ownerDocument,!1,a,e);var I=G.firstChild;G.childNodes.length===1&&(G=I);if(I||e){I=f.map(Ka(G,"script"),Da);for(h=I.length;l<p;l++){var T=G;l!==w&&(T=f.clone(T,!0,!0),h&&f.merge(I,Ka(T,"script")));d.call(a[l],T,l)}if(h)for(G=I[I.length-1].ownerDocument,f.map(I,hb),l=0;l<h;l++)T=I[l],mc.test(T.type||"")&&!L.access(T,"globalEval")&&f.contains(G,T)&&(T.src&&(T.type||"").toLowerCase()!=="module"?f._evalUrl&&!T.noModule&&f._evalUrl(T.src,{nonce:T.nonce||T.getAttribute("nonce")},
41G):U(T.textContent,T,G))}}return a}function Tb(a,b,d){for(var e=b?f.filter(b,a):a,h=0;(b=e[h])!=null;h++)d||b.nodeType!==1||f.cleanData(Ka(b)),b.parentNode&&(d&&zb(b)&&yb(Ka(b,"script")),b.parentNode.removeChild(b));return a}function ib(a,b,d){var e=a.style;if(d=d||Ub(a)){var h=d.getPropertyValue(b)||d[b];h!==""||zb(a)||(h=f.style(a,b));if(!V.pixelBoxStyles()&&ec.test(h)&&Ic.test(b)){a=e.width;b=e.minWidth;var l=e.maxWidth;e.minWidth=e.maxWidth=e.width=h;h=d.width;e.width=a;e.minWidth=b;e.maxWidth=
42l}}return h!==void 0?h+"":h}function Ua(a,b){return{get:function(){if(a())delete this.get;else return(this.get=b).apply(this,arguments)}}}
42function Lb(a){var b=f.cssProps[a]||nc[a];if(b)return b;if(a in oc)return a;a:{b=a;for(var d=b[0].toUpperCase()+b.slice(1),e=pc.length;e--;)if(b=pc[e]+d,b in oc)break a;b=void 0}return nc[a]=b||a}function ja(a,b,d){return(a=oa.exec(b))?Math.max(0,a[2]-(d||0))+(a[3]||"px"):b}function jb(a,b,d,e,h,l){var p=b==="width"?1:0,w=0,u=0;if(d===(e?"border":"content"))return 0;
43for(;p<4;p+=2)d==="margin"&&(u+=f.css(a,d+La[p],!0,h)),e?(d==="content"&&(u-=f.css(a,"padding"+La[p],!0,h)),d!=="margin"&&(u-=f.css(a,"border"+La[p]+"Width",!0,h))):(u+=f.css(a,"padding"+La[p],!0,h),d!=="padding"?u+=f.css(a,"border"+La[p]+"Width",!0,h):w+=f.css(a,"border"+La[p]+"Width",!0,h));!e&&l>=0&&(u+=Math.max(0,Math.ceil(a["offset"+b[0].toUpperCase()+b.slice(1)]-l-u-w-.5))||0);return u}function Ma(a,b,d){var e=Ub(a),h=(!V.boxSizingReliable()||d)&&f.css(a,"boxSizing",!1,e)==="border-box",l=h,
44p=ib(a,b,e),w="offset"+b[0].toUpperCase()+b.slice(1);if(ec.test(p)){if(!d)return p;p="auto"}(!V.boxSizingReliable()&&h||!V.reliableTrDimensions()&&va(a,"tr")||p==="auto"||!parseFloat(p)&&f.css(a,"display",!1,e)==="inline")&&a.getClientRects().length&&(h=f.css(a,"boxSizing",!1,e)==="border-box",(l=w in a)&&(p=a[w]));p=parseFloat(p)||0;return p+jb(a,b,d||(h?"border":"content"),l,e,p)+"px"}function Ia(a,b,d,e,h){return new Ia.prototype.init(a,b,d,e,h)}function Db(){Vb&&(P.hidden===!1&&K.requestAnimationFrame?
45K.requestAnimationFrame(Db):K.setTimeout(Db,13),f.fx.tick())}function eb(){K.setTimeout(function(){Eb=void 0});return Eb=Date.now()}function pb(a,b){var d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b){var h=La[d];e["margin"+h]=e["padding"+h]=a}b&&(e.opacity=e.width=a);return e}function Mb(a,b,d){for(var e,h=(Na.tweeners[b]||[]).concat(Na.tweeners["*"]),l=0,p=h.length;l<p;l++)if(e=h[l].call(d,b,a))return e}function Wb(a,b){var d,e;for(d in a){var h=Ja(d);var l=b[h];var p=a[d];Array.isArray(p)&&(l=p[1],p=
46a[d]=p[0]);d!==h&&(a[h]=p,delete a[d]);if((e=f.cssHooks[h])&&"expand"in e)for(d in p=e.expand(p),delete a[h],p)d in a||(a[d]=p[d],b[d]=l);else b[h]=l}}function Na(a,b,d){var e,h=0,l=Na.prefilters.length,p=f.Deferred().always(function(){delete w.elem}),w=function(){if(e)return!1;var C=Eb||eb();C=Math.max(0,u.startTime+u.duration-C);for(var G=1-(C/u.duration||0),I=0,T=u.tweens.length;I<T;I++)u.tweens[I].run(G);p.notifyWith(a,[u,G,C]);if(G<1&&T)return C;T||p.notifyWith(a,[u,1,0]);p.resolveWith(a,[u]);
47return!1},u=p.promise({elem:a,props:f.extend({},b),opts:f.extend(!0,{specialEasing:{},easing:f.easing._default},d),originalProperties:b,originalOptions:d,startTime:Eb||eb(),duration:d.duration,tweens:[],createTween:function(C,G){C=f.Tween(a,u.opts,C,G,u.opts.specialEasing[C]||u.opts.easing);u.tweens.push(C);return C},stop:function(C){var G=0,I=C?u.tweens.length:0;if(e)return this;for(e=!0;G<I;G++)u.tweens[G].run(1);C?(p.notifyWith(a,[u,1,0]),p.resolveWith(a,[u,C])):p.rejectWith(a,[u,C]);return this}});
48d=u.props;for(Wb(d,u.opts.specialEasing);h<l;h++)if(b=Na.prefilters[h].call(u,a,d,u.opts))return S(b.stop)&&(f._queueHooks(u.elem,u.opts.queue).stop=b.stop.bind(b)),b;f.map(d,Mb,u);S(u.opts.start)&&u.opts.start.call(a,u);u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always);f.fx.timer(f.extend(w,{elem:a,anim:u,queue:u.opts.queue}));return u}function c(a){return(a.match(la)||[]).join(" ")}function g(a){return a.getAttribute&&a.getAttribute("class")||
49""}function m(a){return Array.isArray(a)?a:typeof a==="string"?a.match(la)||[]:[]}function n(a,b,d,e){var h;if(Array.isArray(b))f.each(b,function(l,p){d||Jc.test(a)?e(a,p):n(a+"["+(typeof p==="object"&&p!=null?l:"")+"]",p,d,e)});else if(d||da(b)!=="object")e(a,b);else for(h in b)n(a+"["+h+"]",b[h],d,e)}var t=[],y=Object.getPrototypeOf,A=t.slice,x=t.flat,B=t.push,v=t.indexOf,E={},D=E.toString,M=E.hasOwnProperty,Q=M.toString,ya=Q.call(Object),V={},S=function(a){return typeof a==="function"&&typeof a.nodeType!==
50"number"&&typeof a.item!=="function"},Ca=function(a){return a!=null&&a===a.window},P=K.document,xa={type:!0,src:!0,nonce:!0,noModule:!0},f=function(a,b){return new f.fn.init(a,b)};f.fn=f.prototype={jquery:"3.6.0",constructor:f,length:0,toArray:function(){return A.call(this)},get:function(a){return a==null?A.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){a=f.merge(this.constructor(),a);a.prevObject=this;return a},each:function(a){return f.each(this,a)},map:function(a){return this.pushStack(f.map(this,
51function(b,d){return a.call(b,d,b)}))},slice:function(){return this.pushStack(A.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(f.grep(this,function(a,b){return(b
51+1)%2}))},odd:function(){return this.pushStack(f.grep(this,function(a,b){return b%2}))},eq:function(a){var b=this.length;a=+a+(a<0?b:0);return this.pushStack(a>=0&&a<b?[this[a]]:[])},end:function(){return this.prevObject||this.constructor()},push:B,sort:t.sort,
52splice:t.splice};f.extend=f.fn.extend=function(){var a,b,d,e=arguments[0]||{},h=1,l=arguments.length,p=!1;typeof e==="boolean"&&(p=e,e=arguments[h]||{},h++);typeof e==="object"||S(e)||(e={});h===l&&(e=this,h--);for(;h<l;h++)if((a=arguments[h])!=null)for(b in a){var w=a[b];if(b!=="__proto__"&&e!==w)if(p&&w&&(f.isPlainObject(w)||(d=Array.isArray(w)))){var u=e[b];u=d&&!Array.isArray(u)?[]:d||f.isPlainObject(u)?u:{};d=!1;e[b]=f.extend(p,u,w)}else w!==void 0&&(e[b]=w)}return e};f.extend({expando:"jQuery"+
53("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw Error(a);},noop:function(){},isPlainObject:function(a){if(!a||D.call(a)!=="[object Object]")return!1;a=y(a);if(!a)return!0;a=M.call(a,"constructor")&&a.constructor;return typeof a==="function"&&Q.call(a)===ya},isEmptyObject:function(a){for(var b in a)return!1;return!0},globalEval:function(a,b,d){U(a,{nonce:b&&b.nonce},d)},each:function(a,b){var d,e=0;if(na(a))for(d=a.length;e<d&&b.call(a[e],e,a[e])!==!1;e++);else for(e in a)if(b.call(a[e],
54e,a[e])===!1)break;return a},makeArray:function(a,b){b=b||[];a!=null&&(na(Object(a))?f.merge(b,typeof a==="string"?[a]:a):B.call(b,a));return b},inArray:function(a,b,d){return b==null?-1:v.call(b,a,d)},merge:function(a,b){for(var d=+b.length,e=0,h=a.length;e<d;e++)a[h++]=b[e];a.length=h;return a},grep:function(a,b,d){for(var e=[],h=0,l=a.length,p=!d;h<l;h++)d=!b(a[h],h),d!==p&&e.push(a[h]);return e},map:function(a,b,d){var e,h=0,l=[];if(na(a))for(e=a.length;h<e;h++){var p=b(a[h],h,d);p!=null&&l.push(p)}else for(h in a)p=
55b(a[h],h,d),p!=null&&l.push(p);return x.call(l)},guid:1,support:V});typeof Symbol==="function"&&(f.fn[Symbol.iterator]=t[Symbol.iterator]);f.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){E["[object "+b+"]"]=b.toLowerCase()});var ka=function(a){function b(k,q,r,z){var F,J,R,Z,H=q&&q.ownerDocument;var W=q?q.nodeType:9;r=r||[];if(typeof k!=="string"||!k||W!==1&&W!==9&&W!==11)return r;if(!z&&(qb(q),q=q||za,Za)){if(W!==11&&(Z=Kc.exec(k)))if(F=Z[1])if(W===
569)if(J=q.getElementById(F)){if(J.id===F)return r.push(J),r}else return r;else{if(H&&(J=H.getElementById(F))&&Nb(q,J)&&J.id===F)return r.push(J),r}else{if(Z[2])return kb.apply(r,q.getElementsByTagName(k)),r;if((F=Z[3])&&q.getElementsByClassName)return kb.apply(r,q.getElementsByClassName(F)),r}if(!Xb[k+" "]&&(W!==1||q.nodeName.toLowerCase()!=="object")){F=k;H=q;if(W===1&&(Lc.test(k)||qc.test(k))){H=fc.test(k)&&I(q.parentNode)||q;H!==q&&((R=q.getAttribute("id"))?R=R.replace(rc,sc):q.setAttribute("id",
57R=Ga));F=Yb(k);for(W=F.length;W--;)F[W]=(R?"#"+R:":scope")+" "+wa(F[W]);F=F.join(",")}try{return kb.apply(r,H.querySelectorAll(F)),r}catch(ia){Xb(k,!0)}finally{R===Ga&&q.removeAttribute("id")}}}return Mc(k.replace(Zb,"$1"),q,r,z)}function d(){function k(r,z){q.push(r+" ")>
57pa.cacheLength&&delete k[q.shift()];return k[r+" "]=z}var q=[];return k}function e(k){k[Ga]=!0;return k}function h(k){var q=za.createElement("fieldset");try{return!!k(q)}catch(r){return!1}finally{q.parentNode&&q.parentNode.removeChild(q)}}
58function l(k,q){k=k.split("|");for(var r=k.length;r--;)pa.attrHandle[k[r]]=q}function p(k,q){var r=q&&k,z=r&&k.nodeType===1&&q.nodeType===1&&k.sourceIndex-q.sourceIndex;if(z)return z;if(r)for(;r=r.nextSibling;)if(r===q)return-1;return k?1:-1}function w(k){return function(q){return q.nodeName.toLowerCase()==="input"&&q.type===k}}function u(k){return function(q){var r=q.nodeName.toLowerCase();return(r==="input"||r==="button")&&q.type===k}}function C(k){return function(q){return"form"in q?q.parentNode&&
59q.disabled===!1?"label"in q?"label"in q.parentNode?q.parentNode.disabled===k:q.disabled===k:Nc(q)===k:q.disabled===k:"label"in q?q.disabled===k:!1}}function G(k){return e(function(q){q=+q;return e(function(r,z){for(var F,J=k([],r.length,q),R=J.length;R--;)r[F=J[R]]&&(r[F]=!(z[F]=r[F]))})})}function I(k){return k&&typeof k.getElementsByTagName!=="undefined"&&k}function T(){}function wa(k){for(var q=0,r=k.length,z="";q<r;q++)z+=k[q].value;return z}function fa(k,q,r){var z=q.dir,F=q.next,J=F||z,R=r&&
60J==="parentNode",Z=Oc++;return q.first?function(H,W,ia){for(;H=H[z];)if(H.nodeType===1||R)return k(H,W,ia);return!1}:function(H,W,ia){var aa,ua=[fb,Z];if(ia)for(;H=H[z];){if((H.nodeType===1||R)&&k(H,W,ia))return!0}else for(;H=H[z];)if(H.nodeType===1||R){var Aa=H[Ga]||(H[Ga]={});Aa=Aa[H.uniqueID]||(Aa[H.uniqueID]={});if(F&&F===H.nodeName.toLowerCase())H=H[z]||H;else{if((aa=Aa[J])&&aa[0]===fb&&aa[1]===Z)return ua[2]=aa[2];Aa[J]=ua;if(ua[2]=k(H,W,ia))return!0}}return!1}}function Oa(k){return k.length>
611?function(q,r,z){for(var F=k.length;F--;)if(!k[F](q,r,z))return!1;return!0}:k[0]}function Pa(k,q,r,z,F){for(var J,R=[],Z=0,H=k.length,W=q!=null;Z<H;Z++)if(J=k[Z])if(!r||r(J,z,F))R.push(J),W&&q.push(Z);return R}function lb(k,q,r,z,F,J){z&&!z[Ga]&&(z=lb(z));F&&!F[Ga]&&(F=lb(F,J));return e(function(R,Z,H,W){var ia,aa=[],ua=[],Aa=Z.length,Ha;if(!(Ha=R)){Ha=q||"*";for(var ba=H.nodeType?[H]:H,$a=[],Ea=0,$b=ba.length;Ea<$b;Ea++)b(Ha,ba[Ea],$a);Ha=$a}Ha=!k||!R&&q?Ha:Pa(Ha,aa,k,H,W);ba=r?F||(R?k:Aa||z)?[]:
62Z:Ha;r&&r(Ha,ba,H,W);if(z){var Va=Pa(ba,ua);z(Va,[],H,W);for(H=Va.length;H--;)if(ia=Va[H])ba[ua[H]]=!(Ha[ua[H]]=ia)}if(R){if(F||k){if(F){Va=[];for(H=ba.length;H--;)(ia=ba[H])&&Va.push(Ha[H]=ia);F(null,ba=[],Va,W)}for(H=ba.length;H--;)(ia=ba[H])&&(Va=F?rb(R,ia):aa[H])>-1&&(R[Va]=!(Z[Va]=ia))}}else ba=Pa(ba===Z?ba.splice(Aa,ba.length):ba),F?F(null,Z,ba,W):kb.apply(Z,ba)})}function Qa(k){var q,r,z=k.length,F=pa.relative[k[0].type];var J=F||pa.relative[" "];for(var R=F?1:0,Z=fa(function(ia){return ia===
63q},J,!0),H=fa(function(ia){return rb(q,ia)>-1},J,!0),W=[function(ia,aa,ua){ia=!F&&(ua||aa!==ac)||((q=aa).nodeType?Z(ia,aa,ua):H(ia,aa,ua));q=null;return ia}];R<z;R++)if(J=pa.relative[k[R].type])W=[fa(Oa(W),J)];else{J=pa.filter[k[R].type].apply(null,k[R].matches);if(J[Ga]){for(r=++R;r<z&&!pa.relative[k[r].type];r++);return lb(R>1&&Oa(W),R>
631&&wa(k.slice(0,R-1).concat({value:k[R-2].type===" "?"*":""})).replace(Zb,"$1"),J,R<r&&Qa(k.slice(R,r)),r<z&&Qa(k=k.slice(r)),r<z&&wa(k))}W.push(J)}return Oa(W)}
64function Ob(k,q){var r=q.length>0,z=k.length>0,F=function(J,R,Z,H,W){var ia,aa,ua=0,Aa="0",Ha=J&&[],ba=[],$a=ac,Ea=J||z&&pa.find.TAG("*",W),$b=fb+=$a==null?1:Math.random()||.1,Va=Ea.length;for(W&&(ac=R==za||R||W);Aa!==Va&&(ia=Ea[Aa])!=null;Aa++){if(z&&ia){var hc=0;R||ia.ownerDocument==za||(qb(ia),Z=!Za);for(;aa=k[hc++];)if(aa(ia,R||za,Z)){H.push(ia);break}W&&(fb=$b)}r&&((ia=!aa&&ia)&&ua--,J&&Ha.push(ia))}ua+=Aa;if(r&&Aa!==ua){for(hc=0;aa=q[hc++];)aa(Ha,ba,R,Z);if(J){if(ua>0)for(;Aa--;)Ha[Aa]||ba[Aa]||
65(ba[Aa]=Pc.call(H));ba=Pa(ba)}kb.apply(H,ba);W&&!J&&ba.length>0&&ua+q.length>1&&b.uniqueSort(H)}W&&(fb=$b,ac=$a);return Ha};return r?e(F):F}var Fb,ac,mb,Gb,za,Pb,Za,Nb,Ga="sizzle"+1*new Date,Wa=a.document,fb=0,Oc=0,tc=d(),uc=d(),vc=d(),Xb=d(),ic=function(k,q){k===q&&(Gb=!0);return 0},Qc={}.hasOwnProperty,sb=[],Pc=sb.pop,Rc=sb.push,kb=sb.push,wc=sb.slice,rb=function(k,q){for(var r=0,z=k.length;r<z;r++)if(k[r]===q)return r;return-1},Sc=RegExp("[\\x20\\t\\r\\n\\f]+","g"),Zb=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$",
66"g"),Tc=RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),qc=RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),Lc=RegExp("[\\x20\\t\\r\\n\\f]|>"),Uc=RegExp(":((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"),
67Vc=RegExp("^(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+$"),bc={ID:RegExp("^#((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)"),CLASS:RegExp("^\\.((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)"),TAG:RegExp("^((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+|[*])"),ATTR:RegExp("^\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\]"),
68PSEUDO:RegExp("^:((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"),
69CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)",
70"i")},Wc=/HTML$/i,Xc=/^(?:input|select|textarea|button)$/i,Yc=/^h\d$/i,xc=/^[^{]+\{\s*\[native \w/,Kc=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,fc=/[+~]/,nb=RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ob=function(k,q){k="0x"+k.slice(1)-65536;return q?q:k<0?String.fromCharCode(k+65536):String.fromCharCode(k>>10|55296,k&1023|56320)},rc=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,sc=function(k,q){return q?k==="\x00"?"�":k.slice(0,-1)+"\\"+k.charCodeAt(k.length-1).toString(16)+
71" ":"\\"+k},Zc=function(){qb()},Nc=fa(function(k){return k.disabled===!0&&k.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{kb.apply(sb=wc.call(Wa.childNodes),Wa.childNodes),sb[Wa.childNodes.length].nodeType}
71catch(k){kb={apply:sb.length?function(q,r){Rc.apply(q,wc.call(r))}:function(q,r){for(var z=q.length,F=0;q[z++]=r[F++];);q.length=z-1}}}var Hb=b.support={};var $c=b.isXML=function(k){var q=k&&(k.ownerDocument||k).documentElement;return!Wc.test(k&&k.namespaceURI||q&&q.nodeName||
72"HTML")};var qb=b.setDocument=function(k){var q;k=k?k.ownerDocument||k:Wa;if(k==za||k.nodeType!==9||!k.documentElement)return za;za=k;Pb=za.documentElement;Za=!$c(za);Pb.msMatchesSelector&&Wa!=za&&(q=za.defaultView)&&q.top!==q&&q.addEventListener("unload",Zc);pa.filter.ID=function(r){var z=r.replace(nb,ob);return function(F){return F.getAttribute("id")===z}};pa.find.ID=function(r,z){if(typeof z.getElementById!=="undefined"&&Za)return(r=z.getElementById(r))?[r]:[]};pa.find.TAG=function(r,z){return typeof z.getElementsByTagName!==
73"undefined"?z.getElementsByTagName(r):z.querySelectorAll(r)};pa.find.CLASS=function(r,z){if(typeof z.getElementsByClassName!=="undefined"&&Za)return z.getElementsByClassName(r)};Nb=(q=xc.test(Pb.compareDocumentPosition))||xc.test(Pb.contains)?function(r,z){var F=r.nodeType===9?r.documentElement:r;z=z&&z.parentNode;return r===z||!!(z&&z.nodeType===1&&(F.contains?F.contains(z):r.compareDocumentPosition&&r.compareDocumentPosition(z)&16))}:function(r,z){if(z)for(;z=z.parentNode;)if(z===r)return!0;return!1};
74ic=q?function(r,z){if(r===z)return Gb=!0,0;var F=!r.compareDocumentPosition-!z.compareDocumentPosition;if(F)return F;F=(r.ownerDocument||r)==(z.ownerDocument||z)?r.compareDocumentPosition(z):1;return F&1||!Hb.sortDetached&&z.compareDocumentPosition(r)===F?r==za||r.ownerDocument==Wa&&Nb(Wa,r)?-1:z==za||z.ownerDocument==Wa&&Nb(Wa,z)?1:mb?rb(mb,r)-rb(mb,z):0:F&4?-1:1}:function(r,z){if(r===z)return Gb=!0,0;var F=0,J=r.parentNode,R=z.parentNode,Z=[r],H=[z];if(!J||!R)return r==za?-1:z==za?1:J?-1:R?1:mb?
75rb(mb,r)-rb(mb,z):0;if(J===R)return p(r,z);for(;r=r.parentNode;)Z.unshift(r);for(r=z;r=r.parentNode;)H.unshift(r);for(;Z[F]===H[F];)F++;return F?p(Z[F],H[F]):Z[F]==Wa?-1:H[F]==Wa?1:0};return za};b.matches=function(k,q){return b(k,null,null,q)};b.matchesSelector=function(k,q){qb(k);if(Za&&!Xb[q+" "])try{return(void 0).call(k,q)}catch(r){Xb(q,!0)}return b(q,za,null,[k]).length>0};b.contains=function(k,q){(k.ownerDocument||k)!=za&&qb(k);return Nb(k,q)};b.attr=function(k,q){(k.ownerDocument||k)!=za&&
76qb(k);var r=pa.attrHandle[q.toLowerCase()];r=r&&Qc.call(pa.attrHandle,q.toLowerCase())?r(k,q,!Za):void 0;return r!==void 0?r:k.getAttribute(q)};b.escape=function(k){return(k+"").replace(rc,sc)};b.error=function(k){throw Error("Syntax error, unrecognized expression: "+k);};b.uniqueSort=function(k){var q,r=[],z=0,F=0;Gb=!Hb.detectDuplicates;mb=!Hb.sortStable&&k.slice(0);k.sort(ic);if(Gb){for(;q=k[F++];)q===k[F]&&(z=r.push(F));for(;z--;)k.splice(r[z],1)}mb=null;return k};var jc=b.getText=function(k){var q=
77"",r=0;var z=k.nodeType;if(!z)for(;z=k[r++];)q+=jc(z);else if(z===1||z===9||z===11){if(typeof k.textContent==="string")return k.textContent;for(k=k.firstChild;k;k=k.nextSibling)q+=jc(k)}else if(z===3||z===4)return k.nodeValue;return q};var pa=b.selectors={cacheLength:50,createPseudo:e,match:bc,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(k){k[1]=k[1].replace(nb,ob);
78k[3]=(k[3]||k[4]||k[5]||"").replace(nb,ob);k[2]==="~="&&(k[3]=" "+k[3]+" ");return k.slice(0,4)},CHILD:function(k){k[1]=k[1].toLowerCase();k[1].slice(0,3)==="nth"?(k[3]||b.error(k[0]),k[4]=+(k[4]?k[5]+(k[6]||1):2*(k[3]==="even"||k[3]==="odd")),k[5]=+(k[7]+k[8]||k[3]==="odd")):k[3]&&b.error(k[0]);return k},PSEUDO:function(k){var q,r=!k[6]&&k[2];if(bc.CHILD.test(k[0]))return null;k[3]?k[2]=k[4]||k[5]||"":r&&Uc.test(r)&&(q=Yb(r,!0))&&(q=r.indexOf(")",r.length-q)-r.length)&&(k[0]=k[0].slice(0,q),k[2]=
79r.slice(0,q));return k.slice(0,3)}},filter:{TAG:function(k){var q=k.replace(nb,ob).toLowerCase();return k==="*"?function(){return!0}:function(r){return r.nodeName&&r.nodeName.toLowerCase()===q}},CLASS:function(k){var q=tc[k+" "];return q||(q=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+k+"([\\x20\\t\\r\\n\\f]|$)"),tc(k,function(r){return q.test(typeof r.className==="string"&&r.className||typeof r.getAttribute!=="undefined"&&r.getAttribute("class")||"")}))},ATTR:function(k,q,r){return function(z){z=b.attr(z,
80k);if(z==null)return q==="!=";if(!q)return!0;z+="";return q==="="?z===r:q==="!="?z!==r:q==="^="?r&&z.indexOf(r)===0:q==="*="?r&&z.indexOf(r)>-1:q==="$="?r&&z.slice(-r.length)===r:q==="~="?(" "+z.replace(Sc," ")+" ").indexOf(r)>-1:q==="|="?z===r||z.slice(0,r.length+1)===r+"-":!1}},CHILD:function(k,q,r,z,F){var J=k.slice(0,3)!=="nth",R=k.slice(-4)!=="last",Z=q==="of-type";return z===1&&F===0?function(H){return!!H.parentNode}:function(H,W,ia){var aa,ua;W=J!==R?"nextSibling":"previousSibling";var Aa=
81H.parentNode,Ha=Z&&H.nodeName.toLowerCase();ia=!ia&&!Z;var ba=!1;if(Aa){if(J){for(;W;){for(aa=H;aa=aa[W];)if(Z?aa.nodeName.toLowerCase()===Ha:aa.nodeType===1)return!1;var $a=W=k==="only"&&!$a&&"nextSibling"}return!0}$a=[R?Aa.firstChild:Aa.lastChild];if(R&&ia){aa=Aa;var Ea=aa[Ga]||(aa[Ga]={});Ea=Ea[aa.uniqueID]||(Ea[aa.uniqueID]={});ba=Ea[k]||[];ba=(ua=ba[0]===fb&&ba[1])&&ba[2];for(aa=ua&&Aa.childNodes[ua];aa=++ua&&aa&&aa[W]||(ba=ua=0)||$a.pop();)if(aa.nodeType===1&&++ba&&aa===H){Ea[k]=[fb,ua,ba];
82break}}else if(ia&&(aa=H,Ea=aa[Ga]||(aa[Ga]={}),Ea=Ea[aa.uniqueID]||(Ea[aa.uniqueID]={}),ba=Ea[k]||[],ba=ua=ba[0]===fb&&ba[1]),ba===!1)for(;(aa=++ua&&aa&&aa[W]||(ba=ua=0)||$a.pop())&&((Z?aa.nodeName.toLowerCase()!==Ha:aa.nodeType!==1)||!++ba||(ia&&(Ea=aa[Ga]||(aa[Ga]={}),Ea=Ea[aa.uniqueID]||(Ea[aa.uniqueID]={}),Ea[k]=[fb,ba]),aa!==H)););ba-=F;return ba===z||ba%z===0&&ba/z>=0}}},PSEUDO:function(k,q){var r=pa.pseudos[k]||pa.setFilters[k.toLowerCase()]||b.error("unsupported pseudo: "+k);if(r[Ga])return r(q);
83if(r.length>1){var z=[k,k,"",q];return pa.setFilters.hasOwnProperty(k.toLowerCase())?e(function(F,J){for(var R,Z=r(F,q),H=Z.length;H--;)R=rb(F,Z[H]),F[R]=!(J[R]=Z[H])}):function(F){return r(F,0,z)}}return r}},pseudos:{not:e(function(k){var q=[],r=[],z=yc(k.replace(Zb,"$1"));return z[Ga]?e(function(F,J,R,Z){Z=z(F,null,Z,[]);for(var H=F.length;H--;)if(R=Z[H])F[H]=!(J[H]=R)}):function(F,J,R){q[0]=F;z(q,null,R,r);q[0]=null;return!r.pop()}}),has:e(function(k){return function(q){return b(k,q).length>0}}),
84contains:e(function(k){k=k.replace(nb,ob);return function(q){return(q.textContent||jc(q)).indexOf(k)>-1}}),lang:e(function(k){Vc.test(k||"")||b.error("unsupported lang: "+k);k=k.replace(nb,ob).toLowerCase();return function(q){var r;do if(r=Za?q.lang:q.getAttribute("xml:lang")||q.getAttribute("lang"))return r=r.toLowerCase(),r===k||r.indexOf(k+"-")===0;while((q=q.parentNode)&&q.nodeType===1);return!1}}),target:function(k){var q=a.location&&a.location.hash;return q&&q.slice(1)===k.id},root:function(k){return k===
85Pb},focus:function(k){return k===za.activeElement&&(!za.hasFocus||za.hasFocus())&&!!(k.type||k.href||~k.tabIndex)},enabled:C(!1),disabled:C(!0),checked:function(k){var q=k.nodeName.toLowerCase();return q==="input"&&!!k.checked||q==="option"&&!!k.selected},selected:function(k){k.parentNode&&k.parentNode.selectedIndex;return k.selected===!0},empty:function(k){for(k=k.firstChild;k;k=k.nextSibling)if(k.nodeType<6)return!1;return!0},parent:function(k){return!pa.pseudos.empty(k)},header:function(k){return Yc.test(k.nodeName)},
86input:function(k){return Xc.test(k.nodeName)},button:function(k){var q=k.nodeName.toLowerCase();return q==="input"&&k.type==="button"||q==="button"},text:function(k){var q;return k.nodeName.toLowerCase()==="input"&&k.type==="text"&&((q=k.getAttribute("type"))==null||q.toLowerCase()==="text")},first:G(function(){return[0]}),last:G(function(k,q){return[q-1]}),eq:G(function(k,q,r){return[r<0?r+q:r]}),even:G(function(k,q){for(var r=0;r<q;r+=2)k.push(r);return k}),odd:G(function(k,q){for(var r=1;r<q;r+=
872)k.push(r);return k}),lt:G(function(k,q,r){for(q=r<0?r+q:r>q?q:r;--q>=0;)k.push(q);return k}),gt:G(function(k,q,r){for(r=r<0?r+q:r;++r<q;)k.push(r);return k})}};pa.pseudos.nth=pa.pseudos.eq;for(Fb in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})pa.pseudos[Fb]=w(Fb);for(Fb in{submit:!0,reset:!0})pa.pseudos[Fb]=u(Fb);T.prototype=pa.filters=pa.pseudos;pa.setFilters=new T;var Yb=b.tokenize=function(k,q){var r,z,F,J,R;if(J=uc[k+" "])return q?0:J.slice(0);J=k;var Z=[];for(R=pa.preFilter;J;){if(!H||
88(r=Tc.exec(J)))r&&(J=J.slice(r[0].length)||J),Z.push(z=[]);var H=!1;if(r=qc.exec(J))H=r.shift(),z.push({value:H,type:r[0].replace(Zb," ")}),J=J.slice(H.length);for(F in pa.filter)!(r=bc[F].exec(J))||R[F]&&!(r=R[F](r))||(H=r.shift(),z.push({value:H,type:F,matches:r}),J=J.slice(H.length));if(!H)break}return q?J.length:J?b.error(k):uc(k,Z).slice(0)};var yc=b.compile=function(k,q){var r,z=[],F=[],J=vc[k+" "];if(!J){q||(q=Yb(k));for(r=q.length;r--;)J=Qa(q[r]),J[Ga]?z.push(J):F.push(J);J=vc(k,Ob(F,z));
89J.selector=k}return J};var Mc=b.select=function(k,q,r,z){var F,J,R,Z=typeof k==="function"&&k,H=!z&&Yb(k=Z.selector||k);r=r||[];if(H.length===1){var W=H[0]=H[0].slice(0);if(W.length>
892&&(J=W[0]).type==="ID"&&q.nodeType===9&&Za&&pa.relative[W[1].type]){q=(pa.find.ID(J.matches[0].replace(nb,ob),q)||[])[0];if(!q)return r;Z&&(q=q.parentNode);k=k.slice(W.shift().value.length)}for(F=bc.needsContext.test(k)?0:W.length;F--;){J=W[F];if(pa.relative[R=J.type])break;if(R=pa.find[R])if(z=R(J.matches[0].replace(nb,
90ob),fc.test(W[0].type)&&I(q.parentNode)||q)){W.splice(F,1);k=z.length&&wa(W);if(!k)return kb.apply(r,z),r;break}}}(Z||yc(k,H))(z,q,!Za,r,!q||fc.test(k)&&I(q.parentNode)||q);return r};Hb.sortStable=Ga.split("").sort(ic).join("")===Ga;Hb.detectDuplicates=!!Gb;qb();Hb.sortDetached=h(function(k){return k.compareDocumentPosition(za.createElement("fieldset"))&1});h(function(k){k.innerHTML="<a href='#'></a>";return k.firstChild.getAttribute("href")==="#"})||l("type|href|height|width",function(k,q,r){if(!r)return k.getAttribute(q,
91q.toLowerCase()==="type"?1:2)});h(function(k){k.innerHTML="<input/>";k.firstChild.setAttribute("value","");return k.firstChild.getAttribute("value")===""})||l("value",function(k,q,r){if(!r&&k.nodeName.toLowerCase()==="input")return k.defaultValue});h(function(k){return k.getAttribute("disabled")==null})||l("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(k,q,r){var z;if(!r)return k[q]===!0?q.toLowerCase():(z=k.getAttributeNode(q))&&
92z.specified?z.value:null});return b}(K);f.find=ka;f.expr=ka.selectors;f.expr[":"]=f.expr.pseudos;f.uniqueSort=f.unique=ka.uniqueSort;f.text=ka.getText;f.isXMLDoc=ka.isXML;f.contains=ka.contains;f.escapeSelector=ka.escape;var sa=function(a,b,d){for(var e=[],h=d!==void 0;(a=a[b])&&a.nodeType!==9;)if(a.nodeType===1){if(h&&f(a).is(d))break;e.push(a)}return e},Fa=function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d},O=f.expr.match.needsContext,Ba=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
93f.filter=function(a,b,d){var e=b[0];d&&(a=":not("+a+")");return b.length===1&&e.nodeType===1?f.find.matchesSelector(e,a)?[e]:[]:f.find.matches(a,f.grep(b,function(h){return h.nodeType===1}))};f.fn.extend({find:function(a){var b,d=this.length,e=this;if(typeof a!=="string")return this.pushStack(f(a).filter(function(){for(b=0;b<d;b++)if(f.contains(e[b],this))return!0}));var h=this.pushStack([]);for(b=0;b<d;b++)f.find(a,e[b],h);return d>1?f.uniqueSort(h):h},filter:function(a){return this.pushStack(gb(this,
94a||[],!1))},not:function(a){return this.pushStack(gb(this,a||[],!0))},is:function(a){return!!gb(this,typeof a==="string"&&O.test(a)?f(a):a||[],!1).length}});var qa=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(f.fn.init=function(a,b,d){if(!a)return this;d=d||X;if(typeof a==="string"){var e=a[0]==="<"&&a[a.length-1]===">"&&a.length>=3?[null,a,null]:qa.exec(a);if(!e||!e[1]&&b)return!b||b.jquery?(b||d).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof f?b[0]:b,f.merge(this,f.parseHTML(e[1],b&&
95b.nodeType?b.ownerDocument||b:P,!0)),Ba.test(e[1])&&f.isPlainObject(b))for(e in b)if(S(this[e]))this[e](b[e]);else this.attr(e,b[e])}else if(a=P.getElementById(e[2]))this[0]=a,this.length=1;return this}return a.nodeType?(this[0]=a,this.length=1,this):S(a)?d.ready!==void 0?d.ready(a):a(f):f.makeArray(a,this)}).prototype=f.fn;var X=f(P);var ra=/^(?:parents|prev(?:Until|All))/,ta={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({has:function(a){var b=f(a,this),d=b.length;return this.filter(function(){for(var e=
960;e<d;e++)if(f.contains(this,b[e]))return!0})},closest:function(a,b){var d,e=0,h=this.length,l=[],p=typeof a!=="string"&&f(a);if(!O.test(a))for(;e<h;e++)for(d=this[e];d&&d!==b;d=d.parentNode)if(d.nodeType<11&&(p?p.index(d)>-1:d.nodeType===1&&f.find.matchesSelector(d,a))){l.push(d);break}return this.pushStack(l.length>1?f.uniqueSort(l):l)},index:function(a){return a?typeof a==="string"?v.call(f(a),this[0]):v.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,
97b){return this.pushStack(f.uniqueSort(f.merge(this.get(),f(a,b))))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}});f.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return sa(a,"parentNode")},parentsUntil:function(a,b,d){return sa(a,"parentNode",d)},next:function(a){return Ib(a,"nextSibling")},prev:function(a){return Ib(a,"previousSibling")},nextAll:function(a){return sa(a,"nextSibling")},prevAll:function(a){return sa(a,
98"previousSibling")},nextUntil:function(a,b,d){return sa(a,"nextSibling",d)},prevUntil:function(a,b,d){return sa(a,"previousSibling",d)},siblings:function(a){return Fa((a.parentNode||{}).firstChild,a)},children:function(a){return Fa(a.firstChild)}
98,contents:function(a){if(a.contentDocument!=null)return a.contentDocument;va(a,"template")&&(a=a.content);return f.merge([],a.childNodes)}},function(a,b){f.fn[a]=function(d,e){var h=f.map(this,b,d);a.slice(-5)!=="Until"&&(e=d);e&&typeof e==="string"&&(h=f.filter(e,
99h));this.length>1&&(ta[a]||f.uniqueSort(h),ra.test(a)&&h.reverse());return this.pushStack(h)}});var la=/[^\x20\t\r\n\f]+/g;f.Callbacks=function(a){a=typeof a==="string"?ab(a):f.extend({},a);var b,d,e,h,l=[],p=[],w=-1,u=function(){h=h||a.once;for(e=b=!0;p.length;w=-1)for(d=p.shift();++w<l.length;)l[w].apply(d[0],d[1])===!1&&a.stopOnFalse&&(w=l.length,d=!1);a.memory||(d=!1);b=!1;h&&(l=d?[]:"")},C={add:function(){l&&(d&&!b&&(w=l.length-1,p.push(d)),function T(I){f.each(I,function(wa,fa){S(fa)?a.unique&&
100C.has(fa)||l.push(fa):fa&&fa.length&&da(fa)!=="string"&&T(fa)})}(arguments),d&&!b&&u());return this},remove:function(){f.each(arguments,function(G,I){for(var T;(T=f.inArray(I,l,T))>-1;)l.splice(T,1),T<=w&&w--});return this},has:function(G){return G?f.inArray(G,l)>-1:l.length>0},empty:function(){l&&(l=[]);return this},disable:function(){h=p=[];l=d="";return this},disabled:function(){return!l},lock:function(){h=p=[];d||b||(l=d="");return this},locked:function(){return!!h},fireWith:function(G,I){h||
101(I=I||[],I=[G,I.slice?I.slice():I],p.push(I),b||u());return this},fire:function(){C.fireWith(this,arguments);return this},fired:function(){return!!e}};return C};f.extend({Deferred:function(a){var b=[["notify","progress",f.Callbacks("memory"),f.Callbacks("memory"),2],["resolve","done",f.Callbacks("once memory"),f.Callbacks("once memory"),0,"resolved"],["reject","fail",f.Callbacks("once memory"),f.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){h.done(arguments).fail(arguments);
102return this},"catch":function(l){return e.then(null,l)},pipe:function(){var l=arguments;return f.Deferred(function(p){f.each(b,function(w,u){var C=S(l[u[4]])&&l[u[4]];h[u[1]](function(){var G=C&&C.apply(this,arguments);if(G&&S(G.promise))G.promise().progress(p.notify).done(p.resolve).fail(p.reject);else p[u[0]+"With"](this,C?[G]:arguments)})});l=null}).promise()},then:function(l,p,w){function u(G,I,T,wa){return function(){var fa=this,Oa=arguments,Pa=function(){if(!(G<C)){var Qa=T.apply(fa,Oa);if(Qa===
103I.promise())throw new TypeError("Thenable self-resolution");var Ob=Qa&&(typeof Qa==="object"||typeof Qa==="function")&&Qa.then;S(Ob)?wa?Ob.call(Qa,u(C,I,Ta,wa),u(C,I,ub,wa)):(C++,Ob.call(Qa,u(C,I,Ta,wa),u(C,I,ub,wa),u(C,I,Ta,I.notifyWith))):(T!==Ta&&(fa=void 0,Oa=[Qa]),(wa||I.resolveWith)(fa,Oa))}},lb=wa?Pa:function(){try{Pa()}catch(Qa){f.Deferred.exceptionHook&&f.Deferred.exceptionHook(Qa,lb.stackTrace),G+1>=C&&(T!==ub&&(fa=void 0,Oa=[Qa]),I.rejectWith(fa,Oa))}};G?lb():(f.Deferred.getStackHook&&
104(lb.stackTrace=f.Deferred.getStackHook()),K.setTimeout(lb))}}var C=0;return f.Deferred(function(G){b[0][3].add(u(0,G,S(w)?w:Ta,G.notifyWith));b[1][3].add(u(0,G,S(l)?l:Ta));b[2][3].add(u(0,G,S(p)?p:ub))}).promise()},promise:function(l){return l!=null?f.extend(l,e):e}},h={};f.each(b,function(l,p){var w=p[2],u=p[5];e[p[1]]=w.add;u&&w.add(function(){d=u},b[3-l][2].disable,b[3-l][3].disable,b[0][2].lock,b[0][3].lock);w.add(p[3].fire);h[p[0]]=function(){h[p[0]+"With"](this===h?void 0:this,arguments);return this};
105h[p[0]+"With"]=w.fireWith});e.promise(h);a&&a.call(h,h);return h}});var Ra=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;f.Deferred.exceptionHook=function(a,b){K.console&&K.console.warn&&a&&Ra.test(a.name)&&K.console.warn("jQuery.Deferred exception: "+a.message,a.stack,b)};f.readyException=function(a){K.setTimeout(function(){throw a;})};var Sa=f.Deferred();f.fn.ready=function(a){Sa.then(a).catch(function(b){f.readyException(b)});return this};f.extend({isReady:!1,readyWait:1,ready:function(a){(a===
106!0?--f.readyWait:f.isReady)||(f.isReady=!0,a!==!0&&--f.readyWait>0||Sa.resolveWith(P,[f]))}});f.ready.then=Sa.then;P.readyState==="complete"||P.readyState!=="loading"&&!P.documentElement.doScroll?K.setTimeout(f.ready):(P.addEventListener("DOMContentLoaded",vb),K.addEventListener("load",vb));var N=function(a,b,d,e,h,l,p){var w=0,u=a.length,C=d==null;if(da(d)==="object")for(w in h=!0,d)N(a,b,w,d[w],!0,l,p);else if(e!==void 0&&(h=!0,S(e)||(p=!0),C&&(p?(b.call(a,e),b=null):(C=b,b=function(G,I,T){return C.call(f(G),
107T)})),b))for(;w<u;w++)b(a[w],d,p?e:e.call(a[w],w,b(a[w],d)));return h?a:C?b.call(a):u?b(a[0],d):l},ea=/^-ms-/,ha=/-([a-z])/g,ca=function(a){return a.nodeType===1||a.nodeType===9||!+a.nodeType};wb.uid=1;wb.prototype={cache:function(a){var b=a[this.expando];b||(b=Object.create(null),ca(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0})));return b},set:function(a,b,d){var e;a=this.cache(a);if(typeof b==="string")a[Ja(b)]=d;else for(e in b)a[Ja(e)]=b[e];
108return a},get:function(a,b){return b===void 0?this.cache(a):a[this.expando]&&a[this.expando][Ja(b)]},access:function(a,b,d){if(b===void 0||b&&typeof b==="string"&&d===void 0)return this.get(a,b);this.set(a,b,d);return d!==void 0?d:b},remove:function(a,b){var d,e=a[this.expando];if(e!==void 0){if(b!==void 0)for(Array.isArray(b)?b=b.map(Ja):(b=Ja(b),b=b in e?[b]:b.match(la)||[]),d=b.length;d--;)delete e[b[d]];if(b===void 0||f.isEmptyObject(e))a.nodeType?a[this.expando]=void 0:delete a[this.expando]}},
109hasData:function(a){a=a[this.expando];return a!==void 0&&!f.isEmptyObject(a)}};var L=new wb;f.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=L.get(a,b);d&&(!e||Array.isArray(d)?e=L.access(a,b,f.makeArray(d)):e.push(d));return e||[]}},dequeue:function(a,b){b=b||"fx";var d=f.queue(a,b),e=d.length,h=d.shift(),l=f._queueHooks(a,b),p=function(){f.dequeue(a,b)};h==="inprogress"&&(h=d.shift(),e--);h&&(b==="fx"&&d.unshift("inprogress"),delete l.stop,h.call(a,p,l));!e&&l&&l.empty.fire()},_queueHooks:function(a,
110b){var d=b+"queueHooks";return L.get(a,d)||L.access(a,d,{empty:f.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",d
110])})})}});f.fn.extend({queue:function(a,b){var d=2;typeof a!=="string"&&(b=a,a="fx",d--);return arguments.length<d?f.queue(this[0],a):b===void 0?this:this.each(function(){var e=f.queue(this,a,b);f._queueHooks(this,a);a==="fx"&&e[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||
111"fx",[])},promise:function(a,b){var d,e=1,h=f.Deferred(),l=this,p=this.length,w=function(){--e||h.resolveWith(l,[l])};typeof a!=="string"&&(b=a,a=void 0);for(a=a||"fx";p--;)(d=L.get(l[p],a+"queueHooks"))&&d.empty&&(e++,d.empty.add(w));w();return h.promise(b)}});var ma=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oa=new RegExp("^(?:([+-])=|)("+ma+")([a-z%]*)$","i"),La=["Top","Right","Bottom","Left"],tb=P.documentElement,zb=function(a){return f.contains(a.ownerDocument,a)},ad={composed:!0};tb.getRootNode&&
112(zb=function(a){return f.contains(a.ownerDocument,a)||a.getRootNode(ad)===a.ownerDocument});var Rb=function(a,b){a=b||a;return a.style.display==="none"||a.style.display===""&&zb(a)&&f.css(a,"display")==="none"},kc={};f.fn.extend({show:function(){return Xa(this,!0)},hide:function(){return Xa(this)},toggle:function(a){return typeof a==="boolean"?a?this.show():this.hide():this.each(function(){Rb(this)?f(this).show():f(this).hide()})}});var cc=/^(?:checkbox|radio)$/i,lc=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,
113mc=/^$|^module$|\/(?:java|ecma)script/i;(function(){var a=P.createDocumentFragment().appendChild(P.createElement("div")),b=P.createElement("input");b.setAttribute("type","radio");b.setAttribute("checked","checked");b.setAttribute("name","t");a.appendChild(b);V.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked})();var Ya={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],
114_default:[0,"",""]};Ya.tbody=Ya.tfoot=Ya.colgroup=Ya.caption=Ya.thead;Ya.th=Ya.td;var Gc=/<|&#?\w+;/,zc=/^([^.]*)(?:\.(.+)|)/;f.event={global:{},add:function(a,b,d,e,h){var l,p,w,u;var C=L.get(a);if(ca(a)){if(d.handler){var G=d;d=G.handler;h=G.selector}h&&f.find.matchesSelector(tb,h);d.guid||(d.guid=f.guid++);(p=C.events)||(p=C.events=Object.create(null));(l=C.handle)||(l=C.handle=function(fa){return typeof f!=="undefined"&&f.event.triggered!==fa.type?f.event.dispatch.apply(a,arguments):void 0});
115b=(b||"").match(la)||[""];for(C=b.length;C--;){var I=zc.exec(b[C])||[];var T=w=I[1];var wa=(I[2]||"").split(".").sort();T&&(I=f.event.special[T]||{},T=(h?I.delegateType:I.bindType)||T,I=f.event.special[T]||{},w=f.extend({type:T,origType:w,data:e,handler:d,guid:d.guid,selector:h,needsContext:h&&f.expr.match.needsContext.test(h),namespace:wa.join(".")},G),(u=p[T])||(u=p[T]=[],u.delegateCount=0,I.setup&&I.setup.call(a,e,wa,l)!==!1||a.addEventListener&&a.addEventListener(T,l)),I.add&&(I.add.call(a,w),
116w.handler.guid||(w.handler.guid=d.guid)),h?u.splice(u.delegateCount++,0,w):u.push(w),f.event.global[T]=!0)}}},remove:function(a,b,d,e,h){var l,p,w,u,C,G=L.hasData(a)&&L.get(a);if(G&&(w=G.events)){b=(b||"").match(la)||[""];for(u=b.length;u--;){var I=zc.exec(b[u])||[];var T=C=I[1];var wa=(I[2]||"").split(".").sort();if(T){var fa=f.event.special[T]||{};T=(e?fa.delegateType:fa.bindType)||T;var Oa=w[T]||[];I=I[2]&&new RegExp("(^|\\.)"+wa.join("\\.(?:.*\\.|)")+"(\\.|$)");for(p=l=Oa.length;l--;){var Pa=
117Oa[l];!h&&C!==Pa.origType||d&&d.guid!==Pa.guid||I&&!I.test(Pa.namespace)||e&&e!==Pa.selector&&(e!=="**"||!Pa.selector)||(Oa.splice(l,1),Pa.selector&&Oa.delegateCount--,fa.remove&&fa.remove.call(a,Pa))}p&&!Oa.length&&(fa.teardown&&fa.teardown.call(a,wa,G.handle)!==!1||f.removeEvent(a,T,G.handle),delete w[T])}else for(T in w)f.event.remove(a,T+b[u],d,e,!0)}f.isEmptyObject(w)&&L.remove(a,"handle events")}},dispatch:function(a){var b,d,e,h=Array(arguments.length),l=f.event.fix(a);var p=(L.get(this,"events")||
118Object.create(null))[l.type]||[];var w=f.event.special[l.type]||{};h[0]=l;for(b=1;b<arguments.length;b++)h[b]=arguments[b];l.delegateTarget=this;if(!w.preDispatch||w.preDispatch.call(this,l)!==!1){var u=f.event.handlers.call(this,l,p);for(b=0;(e=u[b++])&&!l.isPropagationStopped();)for(l.currentTarget=e.elem,p=0;
118(d=e.handlers[p++])&&!l.isImmediatePropagationStopped();)if(!l.rnamespace||d.namespace===!1||l.rnamespace.test(d.namespace))l.handleObj=d,l.data=d.data,d=((f.event.special[d.origType]||{}).handle||
119d.handler).apply(e.elem,h),d!==void 0&&(l.result=d)===!1&&(l.preventDefault(),l.stopPropagation());w.postDispatch&&w.postDispatch.call(this,l);return l.result}},handlers:function(a,b){var d,e=[],h=b.delegateCount,l=a.target;if(h&&!(a.type==="click"&&a.button>=1))for(;l!==this;l=l.parentNode||this)if(l.nodeType===1&&(a.type!=="click"||l.disabled!==!0)){var p=[];var w={};for(d=0;d<h;d++){var u=b[d];var C=u.selector+" ";w[C]===void 0&&(w[C]=u.needsContext?f(C,this).index(l)>-1:f.find(C,this,null,[l]).length);
120w[C]&&p.push(u)}p.length&&e.push({elem:l,handlers:p})}h<b.length&&e.push({elem:this,handlers:b.slice(h)});return e},addProp:function(a,b){Object.defineProperty(f.Event.prototype,a,{enumerable:!0,configurable:!0,get:S(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(d){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:d})}})},fix:function(a){return a[f.expando]?a:new f.Event(a)},
121special:{load:{noBubble:!0},click:{setup:function(a){a=this||a;cc.test(a.type)&&a.click&&va(a,"input")&&Bb(a,"click",bb);return!1},trigger:function(a){a=this||a;cc.test(a.type)&&a.click&&va(a,"input")&&Bb(a,"click");return!0},_default:function(a){a=a.target;return cc.test(a.type)&&a.click&&va(a,"input")&&L.get(a,"click")||va(a,"a")}},beforeunload:{postDispatch:function(a){a.result!==void 0&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}};f.removeEvent=function(a,b,d){a.removeEventListener&&
122a.removeEventListener(b,d)};f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented?bb:cb,this.target=a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a;b&&f.extend(this,b);this.timeStamp=a&&a.timeStamp||Date.now();this[f.expando]=!0};f.Event.prototype={constructor:f.Event,isDefaultPrevented:cb,isPropagationStopped:cb,isImmediatePropagationStopped:cb,
123isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=bb;a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=bb;a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=bb;a&&!this.isSimulated&&a.stopImmediatePropagation();this.stopPropagation()}};f.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,
124detail:!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},f.event.addProp);f.each({focus:"focusin",blur:"focusout"},function(a,b){f.event.special[a]={setup:function(){Bb(this,a,Sb);return!1},trigger:function(){Bb(this,a);return!0},_default:function(d){return L.get(d.target,
125a)},delegateType:b}});
125f.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(d){var e=d.relatedTarget,h=d.handleObj;if(!e||e!==this&&!f.contains(this,e)){d.type=h.origType;var l=h.handler.apply(this,arguments);d.type=b}return l}}});f.fn.extend({on:function(a,b,d,e){return Ab(this,a,b,d,e)},one:function(a,b,d,e){return Ab(this,a,b,d,e,1)},off:function(a,b,d){if(a&&a.preventDefault&&
126a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if(typeof a==="object"){for(e in a)this.off(e,b,a[e]);return this}if(b===!1||typeof b==="function")d=b,b=void 0;d===!1&&(d=cb);return this.each(function(){f.event.remove(this,a,d,b)})}});var bd=/<script|<style|<link/i,Hc=/checked\s*(?:[^=]|=\s*.checked.)/i;f.extend({htmlPrefilter:function(a){return a},clone:function(a,b,d){var e=a.cloneNode(!0),h=zb(a);if(b)if(d){var l=
127l||Ka(a);var p=p||Ka(e);b=0;for(d=l.length;b<d;b++)Cb(l[b],p[b])}else Cb(a,e);p=Ka(e,"script");p.length>0&&yb(p,!h&&Ka(a,"script"));return e},cleanData:function(a){for(var b,d,e,h=f.event.special,l=0;(d=a[l])!==void 0;l++)if(ca(d)&&(b=d[L.expando])){if(b.events)for(e in b.events)h[e]?f.event.remove(d,e):f.removeEvent(d,e,b.handle);d[L.expando]=void 0}}});f.fn.extend({detach:function(a){return Tb(this,a,!0)},remove:function(a){return Tb(this,a)},text:function(a){return N(this,function(b){return b===
128void 0?f.text(this):this.empty().each(function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9)this.textContent=b})},null,a,arguments.length)},append:function(){return db(this,arguments,function(a){this.nodeType!==1&&this.nodeType!==11&&this.nodeType!==9||Kb(this,a).appendChild(a)})},prepend:function(){return db(this,arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=Kb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return db(this,
129arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return db(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;(a=this[b])!=null;b++)a.nodeType===1&&(f.cleanData(Ka(a,!1)),a.textContent="");return this},clone:function(a,b){a=a==null?!1:a;b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return N(this,function(b){var d=this[0]||{},e=0,h=this.length;
130if(b===void 0&&d.nodeType===1)return d.innerHTML;if(typeof b==="string"&&!bd.test(b)&&!Ya[(lc.exec(b)||["",""])[1].toLowerCase()]){b=f.htmlPrefilter(b);try{for(;e<h;e++)d=this[e]||{},d.nodeType===1&&(f.cleanData(Ka(d,!1)),d.innerHTML=b);d=0}catch(l){}}d&&this.empty().append(b)},null,a,arguments.length)},replaceWith:function(){var a=[];return db(this,arguments,function(b){var d=this.parentNode;f.inArray(this,a)<0&&(f.cleanData(Ka(this)),d&&d.replaceChild(b,this))},a)}});f.each({appendTo:"append",prependTo:"prepend",
131insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(d){for(var e=[],h=f(d),l=h.length-1,p=0;p<=l;p++)d=p===l?this:this.clone(!0),f(h[p])[b](d),B.apply(e,d.get());return this.pushStack(e)}});var ec=new RegExp("^("+ma+")(?!px)[a-z%]+$","i"),Ac=/^--/,Ub=function(a){var b=a.ownerDocument.defaultView;b&&b.opener||(b=K);return b.getComputedStyle(a)},Bc=function(a,b,d){var e,h={};for(e in b)h[e]=a.style[e],a.style[e]=b[e];d=d.call(a);for(e in b)a.style[e]=h[e];
132return d},Ic=new RegExp(La.join("|"),"i");(function(){function a(){if(u){w.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";tb.appendChild(w).appendChild(u);var C=K.getComputedStyle(u);b=C.top!=="1%";p=Math.round(parseFloat(C.marginLeft))===12;u.style.right="60%";h=Math.round(parseFloat(C.right))===36;d=Math.round(parseFloat(C.width))===
13336;u.style.position="absolute";e=Math.round(parseFloat(u.offsetWidth/3))===12;tb.removeChild(w);u=null}}var b,d,e,h,l,p,w=P.createElement("div"),u=P.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",V.clearCloneStyle=u.style.backgroundClip==="content-box",f.extend(V,{boxSizingReliable:function(){a();return d},pixelBoxStyles:function(){a();return h},pixelPosition:function(){a();return b},reliableMarginLeft:function(){a();return p},scrollboxSize:function(){a();
134return e},reliableTrDimensions:function(){if(l==null){var C=P.createElement("table");var G=P.createElement("tr");var I=P.createElement("div");C.style.cssText="position:absolute;
134left:-11111px;border-collapse:separate";G.style.cssText="box-sizing:content-box;border:1px solid";G.style.height="1px";I.style.height="9px";I.style.display="block";tb.appendChild(C).appendChild(G).appendChild(I);I=K.getComputedStyle(G);l=parseInt(I.height,10)+parseInt(I.borderTopWidth,10)+parseInt(I.borderBottomWidth,10)===
135G.offsetHeight;tb.removeChild(C)}return l}}))})();var pc=["Webkit","Moz","ms"],oc=P.createElement("div").style,nc={},cd=/^(none|table(?!-c[ea]).+)/,dd={position:"absolute",visibility:"hidden",display:"block"},Cc={letterSpacing:"0",fontWeight:"400"};f.extend({cssHooks:{opacity:{get:function(a,b){if(b)return a=ib(a,"opacity"),a===""?"1":a}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,
136gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(a,b,d,e){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var h,l=Ja(b),p=Ac.test(b),w=a.style;p||(b=Lb(l));var u=f.cssHooks[b]||f.cssHooks[l];if(d!==void 0){var C=typeof d;C==="string"&&(h=oa.exec(d))&&h[1]&&(d=xb(a,b,h),C="number");d!=null&&d===d&&
137(C!=="number"||p||(d+=h&&h[3]||(f.cssNumber[l]?"":"px")),V.clearCloneStyle||d!==""||b.indexOf("background")!==0||(w[b]="inherit"),u&&"set"in u&&(d=u.set(a,d,e))===void 0||(p?w.setProperty(b,d):w[b]=d))}else return u&&"get"in u&&(h=u.get(a,!1,e))!==void 0?h:w[b]}},css:function(a,b,d,e){var h;var l=Ja(b);Ac.test(b)||(b=Lb(l));(l=f.cssHooks[b]||f.cssHooks[l])&&"get"in l&&(h=l.get(a,!0,d));h===void 0&&(h=ib(a,b,e));h==="normal"&&b in Cc&&(h=Cc[b]);return d===""||d?(a=parseFloat(h),d===!0||isFinite(a)?
138a||0:h):h}});f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(d,e,h){if(e)return!cd.test(f.css(d,"display"))||d.getClientRects().length&&d.getBoundingClientRect().width?Ma(d,b,h):Bc(d,dd,function(){return Ma(d,b,h)})},set:function(d,e,h){var l,p=Ub(d),w=!V.scrollboxSize()&&p.position==="absolute",u=(w||h)&&f.css(d,"boxSizing",!1,p)==="border-box";h=h?jb(d,b,h,u,p):0;u&&w&&(h-=Math.ceil(d["offset"+b[0].toUpperCase()+b.slice(1)]-parseFloat(p[b])-jb(d,b,"border",!1,p)-.5));h&&(l=oa.exec(e))&&
139(l[3]||"px")!=="px"&&(d.style[b]=e,e=f.css(d,b));return ja(d,e,h)}}});f.cssHooks.marginLeft=Ua(V.reliableMarginLeft,function(a,b){if(b)return(parseFloat(ib(a,"marginLeft"))||a.getBoundingClientRect().left-Bc(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"});f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(d){var e=0,h={};for(d=typeof d==="string"?d.split(" "):[d];e<4;e++)h[a+La[e]+b]=d[e]||d[e-2]||d[0];return h}};a!=="margin"&&(f.cssHooks[a+
140b].set=ja)});f.fn.extend({css:function(a,b){return N(this,function(d,e,h){var l,p={},w=0;if(Array.isArray(e)){h=Ub(d);for(l=e.length;w<l;w++)p[e[w]]=f.css(d,e[w],!1,h);return p}return h!==void 0?f.style(d,e,h):f.css(d,e)},a,b,arguments.length>1)}});f.Tween=Ia;Ia.prototype={constructor:Ia,init:function(a,b,d,e,h,l){this.elem=a;this.prop=d;this.easing=h||f.easing._default;this.options=b;this.start=this.now=this.cur();this.end=e;this.unit=l||(f.cssNumber[d]?"":"px")},cur:function(){var a=Ia.propHooks[this.prop];
141return a&&a.get?a.get(this):Ia.propHooks._default.get(this)},run:function(a){var b,d=Ia.propHooks[this.prop];this.pos=this.options.duration?b=f.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):b=a;this.now=(this.end-this.start)*b+this.start;this.options.step&&this.options.step.call(this.elem,this.now,this);d&&d.set?d.set(this):Ia.propHooks._default.set(this);return this}};Ia.prototype.init.prototype=Ia.prototype;Ia.propHooks={_default:{get:function(a){return a.elem.nodeType!==
1421||a.elem[a.prop]!=null&&a.elem.style[a.prop]==null?a.elem[a.prop]:(a=f.css(a.elem,a.prop,""))&&a!=="auto"?a:0},set:function(a){if(f.fx.step[a.prop])f.fx.step[a.prop](a);else a.elem.nodeType!==1||!f.cssHooks[a.prop]&&a.elem.style[Lb(a.prop)]==null?a.elem[a.prop]=a.now:f.style(a.elem,a.prop,a.now+a.unit)}}};Ia.propHooks.scrollTop=Ia.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}};f.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*
143Math.PI)/2},_default:"swing"};f.fx=Ia.prototype.init;f.fx.step={};var Eb,Vb,ed=/^(?:toggle|show|hide)$/,fd=/queueHooks$/;f.Animation=f.extend(Na,{tweeners:{"*":[function(a,b){var d=this.createTween(a,b);xb(d.elem,a,oa.exec(b),d);return d}]},tweener:function(a,b){S(a)?(b=a,a=["*"]):a=a.match(la);for(var d,e=0,h=a.length;e<h;e++)d=a[e],Na.tweeners[d]=Na.tweeners[d]||[],Na.tweeners[d].unshift(b)},prefilters:[function(a,b,d){var e;var h="width"in b||"height"in b;var l=this,p={},w=a.style,u=a.nodeType&&
144Rb(a),C=L.get(a,"fxshow");if(!d.queue){var G=f._queueHooks(a,"fx");if(G.unqueued==null){G.unqueued=0;var I=G.empty.fire;G.empty.fire=function(){G.unqueued||I()}}G.unqueued++;l.always(function(){l.always(function(){G.unqueued--;f.queue(a,"fx").length||G.empty.fire()})})}for(e in b){var T=b[e];if(ed.test(T)){delete b[e];var wa=wa||T==="toggle";
144if(T===(u?"hide":"show"))if(T==="show"&&C&&C[e]!==void 0)u=!0;else continue;p[e]=C&&C[e]||f.style(a,e)}}if((b=!f.isEmptyObject(b))||!f.isEmptyObject(p)){if(h&&
145a.nodeType===1){d.overflow=[w.overflow,w.overflowX,w.overflowY];var fa=C&&C.display;fa==null&&(fa=L.get(a,"display"));h=f.css(a,"display");h==="none"&&(fa?h=fa:(Xa([a],!0),fa=a.style.display||fa,h=f.css(a,"display"),Xa([a])));(h==="inline"||h==="inline-block"&&fa!=null)&&f.css(a,"float")==="none"&&(b||(l.done(function(){w.display=fa}),fa==null&&(h=w.display,fa=h==="none"?"":h)),w.display="inline-block")}d.overflow&&(w.overflow="hidden",l.always(function(){w.overflow=d.overflow[0];w.overflowX=d.overflow[1];
146w.overflowY=d.overflow[2]}));b=!1;for(e in p)b||(C?"hidden"in C&&(u=C.hidden):C=L.access(a,"fxshow",{display:fa}),wa&&(C.hidden=!u),u&&Xa([a],!0),l.done(function(){u||Xa([a]);L.remove(a,"fxshow");for(e in p)f.style(a,e,p[e])})),b=Mb(u?C[e]:0,e,l),e in C||(C[e]=b.start,u&&(b.end=b.start,b.start=0))}}],prefilter:function(a,b){b?Na.prefilters.unshift(a):Na.prefilters.push(a)}});f.speed=function(a,b,d){var e=a&&typeof a==="object"?f.extend({},a):{complete:d||!d&&b||S(a)&&a,duration:a,easing:d&&b||b&&
147!S(b)&&b};f.fx.off?e.duration=0:typeof e.duration!=="number"&&(e.duration=e.duration in f.fx.speeds?f.fx.speeds[e.duration]:f.fx.speeds._default);if(e.queue==null||e.queue===!0)e.queue="fx";e.old=e.complete;e.complete=function(){S(e.old)&&e.old.call(this);e.queue&&f.dequeue(this,e.queue)};return e};f.fn.extend({fadeTo:function(a,b,d,e){return this.filter(Rb).css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){var h=f.isEmptyObject(a),l=f.speed(b,d,e);b=function(){var p=
148Na(this,f.extend({},a),l);(h||L.get(this,"finish"))&&p.stop(!0)};b.finish=b;return h||l.queue===!1?this.each(b):this.queue(l.queue,b)},stop:function(a,b,d){var e=function(h){var l=h.stop;delete h.stop;l(d)};typeof a!=="string"&&(d=b,b=a,a=void 0);b&&this.queue(a||"fx",[]);return this.each(function(){var h=!0,l=a!=null&&a+"queueHooks",p=f.timers,w=L.get(this);if(l)w[l]&&w[l].stop&&e(w[l]);else for(l in w)w[l]&&w[l].stop&&fd.test(l)&&e(w[l]);for(l=p.length;l--;)p[l].elem!==this||a!=null&&p[l].queue!==
149a||(p[l].anim.stop(d),h=!1,p.splice(l,1));!h&&d||f.dequeue(this,a)})},finish:function(a){a!==!1&&(a=a||"fx");return this.each(function(){var b=L.get(this),d=b[a+"queue"];var e=b[a+"queueHooks"];var h=f.timers,l=d?d.length:0;b.finish=!0;f.queue(this,a,[]);e&&e.stop&&e.stop.call(this,!0);for(e=h.length;e--;)h[e].elem===this&&h[e].queue===a&&(h[e].anim.stop(!0),h.splice(e,1));for(e=0;e<l;e++)d[e]&&d[e].finish&&d[e].finish.call(this);delete b.finish})}});f.each(["toggle","show","hide"],function(a,b){var d=
150f.fn[b];f.fn[b]=function(e,h,l){return e==null||typeof e==="boolean"?d.apply(this,arguments):this.animate(pb(b,!0),e,h,l)}});f.each({slideDown:pb("show"),slideUp:pb("hide"),slideToggle:pb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(d,e,h){return this.animate(b,d,e,h)}});f.timers=[];f.fx.tick=function(){var a=0,b=f.timers;for(Eb=Date.now();a<b.length;a++){var d=b[a];d()||b[a]!==d||b.splice(a--,1)}b.length||f.fx.stop();Eb=
151void 0};f.fx.timer=function(a){f.timers.push(a);f.fx.start()};f.fx.start=function(){Vb||(Vb=!0,Db())};f.fx.stop=function(){Vb=null};f.fx.speeds={slow:600,fast:200,_default:400};f.fn.delay=function(a,b){a=f.fx?f.fx.speeds[a]||a:a;return this.queue(b||"fx",function(d,e){var h=K.setTimeout(d,a);e.stop=function(){K.clearTimeout(h)}})};var Qb=f.expr.attrHandle;f.fn.extend({attr:function(a,b){return N(this,f.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,
152a)})}});f.extend({attr:function(a,b,d){var e,h,l=a.nodeType;if(l!==3&&l!==8&&l!==2){if(typeof a.getAttribute==="undefined")return f.prop(a,b,d);l===1&&f.isXMLDoc(a)||(h=f.expr.match.bool.test(b)?gd:void 0);if(d!==void 0){if(d===null){f.removeAttr(a,b);return}if(h&&"set"in h&&(e=h.set(a,d,b))!==void 0)return e;a.setAttribute(b,d+"");return d}if(h&&"get"in h&&(e=h.get(a,b))!==null)return e;e=f.find.attr(a,b);return e==null?void 0:e}},removeAttr:function(a,b){var d=0,e=b&&b.match(la);if(e&&a.nodeType===
1531)for(;b=e[d++];)a.removeAttribute(b)}});var gd={set:function(a,b,d){b===!1?f.removeAttr(a,d):a.setAttribute(d,d);return d}};f.each(f.expr.match.bool.source.match(/\w+/g),function(a,b){var d=Qb[b]||f.find.attr;Qb[b]=function(e,h,l){var p=h.toLowerCase();if(!l){var w=Qb[p];Qb[p]=u;var u=d(e,h,l)!=null?p:null;Qb[p]=w}return u}});f.fn.extend({prop:function(a,b){return N(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[f.propFix[a]||a]})}});f.extend({prop:function(a,
154b,d){var e=a.nodeType;if(e!==3&&e!==8&&e!==2)return e===1&&f.isXMLDoc(a)||(b=f.propFix[b]||b),d!==void 0?a[b]=d:a[b]},propFix:{"for":"htmlFor","class":"className"}});f.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){f.propFix[this.toLowerCase()]=this});f.fn.extend({addClass:function(a){var b,d,e,h,l;if(S(a))return this.each(function(w){f(this).addClass(a.call(this,w,g(this)))});var p=m(a);return p.length?this.each(function(){d=
155g(this);if(b=this.nodeType===1&&" "+c(d)+" "){for(h=0;h<p.length;h++)e=p[h],b.indexOf(" "+e+" ")<0&&(b+=e+" ");l=c(b);d!==l&&this.setAttribute("class",l)}}):this},removeClass:function(a){var b,d,e,h,l;if(S(a))return this.each(function(w){f(this).removeClass(a.call(this,w,g(this)))});if(!arguments.length)return this.attr("class","");var p=m(a);return p.length?this.each(function(){d=g(this);if(b=this.nodeType===1&&" "+c(d)+" "){for(h=0;h<p.length;h++)for(e=p[h];b.indexOf(" "+e+" ")>-1;)b=b.replace(" "+
156e+" "," ");l=c(b);d!==l&&this.setAttribute("class",l)}}):this},toggleClass:function(a,b){var d,e,h,l=typeof a,p=l==="string"||Array.isArray(a);if(S(a))return this.each(function(u){f(this).toggleClass(a.call(this,u,g(this),b),b)});if(typeof b==="boolean"&&p)return b?this.addClass(a):this.removeClass(a);var w=m(a);return this.each(function(){if(p)for(h=f(this),e=0;e<w.length;e++)d=w[e],h.hasClass(d)?h.removeClass(d):h.addClass(d);else if(a===void 0||l==="boolean")(d=g(this))&&L.set(this,"__className__",
157d),this.setAttribute&&this.setAttribute("class",d||a===!1?"":L.get(this,"__className__")||"")})},hasClass:function(a){var b,d=0;for(a=" "+a+" ";b=this[d++];)if(b.nodeType===1&&(" "+c(g(b))+" ").indexOf(a)>-1)return!0;return!1}});var hd=/\r/g;f.fn.extend({val:function(a){var b,d,e=this[0];if(arguments.length){var h=S(a);return this.each(function(l){this.nodeType===1&&(l=h?a.call(this,l,f(this).val()):a,l==null?l="":typeof l==="number"?l+="":Array.isArray(l)&&(l=f.map(l,function(p){return p==null?"":
158p+""})),b=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&b.set(this,l,"value")!==void 0||(this.value=l))})}if(e){if((b=f.valHooks[e.type]||f.valHooks[e.nodeName.toLowerCase()])&&"get"in b&&(d=b.get(e,"value"))!==void 0)return d;d=e.value;return typeof d==="string"?d.replace(hd,""):d==null?"":d}}});f.extend({valHooks:{option:{get:function(a){var b=f.find.attr(a,"value");return b!=null?b:c(f.text(a))}},select:{get:function(a){var b=a.options,d=a.selectedIndex,e=a.type===
159"select-one",h=e?null:[],l=e?d+1:b.length;for(a=d<0?l:e?d:0;a<l;a++){var p=b[a];if(!(!p.selected&&a!==d||p.disabled||p.parentNode.disabled&&va(p.parentNode,"optgroup"))){p=f(p).val();if(e)return p;h.push(p)}}return h},set:function(a,b){for(var d,e=a.options,h=f.makeArray(b),l=e.length;l--;)if(b=e[l],b.selected=f.inArray(f.valHooks.option.get(b),h)>-1)d=!0;d||(a.selectedIndex=-1);return h}}}});f.each(["radio","checkbox"],function(){f.valHooks[this]={set:function(a,b){if(Array.isArray(b))return a.checked=
160f.inArray(f(a).val(),b)>-1}}});V.focusin="onfocusin"in K;var Dc=/^(?:focusinfocus|focusoutblur)$/,Ec=function(a){a.stopPropagation()};f.extend(f.event,{trigger:function(a,b,d,e){var h,l,p,w=[d||P],u=M.call(a,"type")?a.type:a;var C=M.call(a,"namespace")?a.namespace.split("."):[];var G=p=h=d=d||P;if(d.nodeType!==3&&d.nodeType!==8&&!Dc.test(u+f.event.triggered)){u.indexOf(".")>-1&&(C=u.split("."),u=C.shift(),C.sort());var I=u.indexOf(":")<0&&"on"+u;a=a[f.expando]?a:new f.Event(u,typeof a==="object"&&
161a);a.isTrigger=e?2:3;a.namespace=C.join(".");a.rnamespace=a.namespace?new RegExp("(^|\\.)"+C.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;a.result=void 0;a.target||(a.target=d);b=b==null?[a]:f.makeArray(b,[a]);C=f.event.special[u]||{};if(e||!C.trigger||C.trigger.apply(d,b)!==!1){if(!e&&!C.noBubble&&!Ca(d)){var T=C.delegateType||u;Dc.test(T+u)||(G=G.parentNode);for(;G;G=G.parentNode)w.push(G),h=G;h===(d.ownerDocument||P)&&w.push(h.defaultView||h.parentWindow||K)}for(h=0;(G=w[h++])&&!a.isPropagationStopped();)p=
162G,a.type=h>1?T:C.bindType||u,(l=(L.get(G,"events")||Object.create(null))[a.type]&&L.get(G,"handle"))&&l.apply(G,b),(l=I&&G[I])&&l.apply&&ca(G)&&(a.result=l.apply(G,b),a.result===!1&&a.preventDefault());a.type=u;e||a.isDefaultPrevented()||C._default&&C._default.apply(w.pop(),b)!==!1||!ca(d)||!I||!S(d[u])||Ca(d)||((h=d[I])&&(d[I]=null),f.event.triggered=u,a.isPropagationStopped()&&p.addEventListener(u,Ec),d[u](),a.isPropagationStopped()&&p.removeEventListener(u,Ec),f.event.triggered=void 0,h&&(d[I]=
163h));return a.result}}},simulate:function(a,b,d){a=f.extend(new f.Event,d,{type:a,isSimulated:!0});f.event.trigger(a,null,b)}});f.fn.extend({trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){var d=this[0];if(d)return f.event.trigger(a,b,d,!0)}});V.focusin||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=function(e){f.event.simulate(b,e.target,f.event.fix(e))};f.event.special[b]={setup:function(){var e=this.ownerDocument||this.document||
164this,h=L.access(e,b);h||e.addEventListener(a,d,!0);L.access(e,b,(h||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,h=L.access(e,b)-1;h?L.access(e,b,h):(e.removeEventListener(a,d,!0),L.remove(e,b))}}});Date.now();var Jc=/\[\]$/,Fc=/\r?\n/g,id=/^(?:submit|button|image|reset|file)$/i,jd=/^(?:input|select|textarea|keygen)/i;f.param=function(a,b){var d,e=[],h=function(l,p){p=S(p)?p():p;e[e.length]=encodeURIComponent(l)+"="+encodeURIComponent(p==null?"":p)};if(a==null)return"";
165if(Array.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){h(this.name,this.value)});else for(d in a)n(d,a[d],b,h);return e.join("&")};f.fn.extend({serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=f.prop(this,"elements");return a?f.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!f(this).is(":disabled")&&jd.test(this.nodeName)&&!id.test(a)&&(this.checked||!cc.test(a))}).map(function(a,b){a=f(this).val();
166return a==null?null:Array.isArray(a)?f.map(a,function(d){return{name:b.name,value:d.replace(Fc,"\r\n")}}):{name:b.name,value:a.replace(Fc,"\r\n")}}).get()}});f.expr.pseudos.hidden=function(a){return!f.expr.pseudos.visible(a)};f.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)};f.parseHTML=function(a,b,d){if(typeof a!=="string")return[];typeof b==="boolean"&&(d=b,b=!1);if(!b){b=P.implementation.createHTMLDocument("");var e=b.createElement("base");
167e.href=P.location.href;b.head.appendChild(e)}e=Ba.exec(a);d=!d&&[];if(e)return[b.createElement(e[1])];e=Jb([a],b,d);d&&d.length&&f(d).remove();return f.merge([],e.childNodes)};f.offset={setOffset:function(a,b,d){var e=f.css(a,"position"),h=f(a),l={};e==="static"&&(a.style.position="relative");var p=h.offset();var w=f.css(a,"top");var u=f.css(a,"left");(e==="absolute"||e==="fixed")&&(w+u).indexOf("auto")>-1?(u=h.position(),w=u.top,u=u.left):(w=parseFloat(w)||0,u=parseFloat(u)||0);S(b)&&(b=b.call(a,
168d,f.extend({},p)));b.top!=null&&(l.top=b.top-p.top+w);b.left!=null&&(l.left=b.left-p.left+u);"using"in b?b.using.call(a,l):h.css(l)}};f.fn.extend({offset:function(a){if(arguments.length)return a===void 0?this:this.each(function(e){f.offset.setOffset(this,a,e)});var b;if(b=this[0]){if(!b.getClientRects().length)return{top:0,left:0};var d=b.getBoundingClientRect();b=b.ownerDocument.defaultView;return{top:d.top+b.pageYOffset,left:d.left+b.pageXOffset}}},position:function(){if(this[0]){var a,b=this[0],
169d={top:0,left:0};if(f.css(b,"position")==="fixed")var e=b.getBoundingClientRect();else{e=this.offset();var h=b.ownerDocument;for(a=b.offsetParent||h.documentElement;a&&(a===h.body||a===h.documentElement)&&f.css(a,"position")==="static";)a=a.parentNode;a&&a!==b&&a.nodeType===1&&(d=f(a).offset(),d.top+=f.css(a,"borderTopWidth",!0),d.left+=f.css(a,"borderLeftWidth",!0))}return{top:e.top-d.top-f.css(b,"marginTop",!0),left:e.left-d.left-f.css(b,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=
170this.offsetParent;a&&f.css(a,"position")==="static";)a=a.offsetParent;return a||tb})}});f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var d="pageYOffset"===b;f.fn[a]=function(e){return N(this,function(h,l,p){if(Ca(h))var w=h;else h.nodeType===9&&(w=h.defaultView);if(p===void 0)return w?w[b]:h[l];w?w.scrollTo(d?w.pageXOffset:p,d?p:w.pageYOffset):h[l]=p},a,e,arguments.length)}});f.each(["top","left"],function(a,b){f.cssHooks[b]=Ua(V.pixelPosition,function(d,e){if(e)return e=
171ib(d,b),ec.test(e)?f(d).position()[b]+"px":e})});f.each({Height:"height",Width:"width"},function(a,b){f.each({padding:"inner"+a,content:b,"":"outer"+a},function(d,e){f.fn[e]=function(h,l){var p=arguments.length&&(d||typeof h!=="boolean"),w=d||(h===!0||l===!0?"margin":"border");return N(this,function(u,C,G){return Ca(u)?e.indexOf("outer")===0?u["inner"+a]:u.document.documentElement["client"+a]:u.nodeType===9?(C=u.documentElement,Math.max(u.body["scroll"+a],C["scroll"+a],u.body["offset"+a],C["offset"+
172a],C["client"+a])):G===void 0?f.css(u,C,w):f.style(u,C,G,w)},b,p?h:void 0,p)}})});f.fn.extend({bind:function(a,b,d){return this.on(a,null,b,d)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,d,e){return this.on(b,a,d,e)},undelegate:function(a,b,d){return arguments.length===1?this.off(a,"**"):this.off(b,a||"**",d)},hover:function(a,b){return this.on("mouseenter",a).on("mouseleave",b||a)}});f.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),
173function(a,b){f.fn[b]=function(d,e){return arguments.length>0?this.on(b,null,d,e):this.trigger(b)}
173});var kd=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;f.isArray=Array.isArray;f.parseJSON=JSON.parse;f.nodeName=va;f.isFunction=S;f.isWindow=Ca;f.camelCase=Ja;f.type=da;f.now=Date.now;f.isNumeric=function(a){var b=f.type(a);return(b==="number"||b==="string")&&!isNaN(a-parseFloat(a))};f.trim=function(a){return a==null?"":(a+"").replace(kd,"$1")};typeof Y==="undefined"&&(K.jQuery=K.$=f);return f});
174$(function(){function K(c){this.handlers=[];c!=null&&this.attach(c)}function Y(c){return c instanceof $?c[0]:typeof c==="string"?document.querySelector(c):c}function U(c){function g(){function m(){c.style.padding=Fa;var O=getComputedStyle(c);parseInt(O.paddingRight,10)<6&&(c.style.paddingRight="6px");f=O.paddingTop+" "+O.paddingRight+" "+O.paddingBottom+" "+O.paddingLeft;ka=O.boxSizing==="border-box"?0:(parseInt(O.paddingLeft,10)||0)+(parseInt(O.paddingRight,10)||0);B===void 0?(c.style.overflow="hidden",
175c.style.padding="0",v=c.clientWidth+ka,E=c.clientHeight,B=document.createElement("div"),B.className="-b",B.style.padding=f,B.append(...c.childNodes),O=new ResizeObserver(m),O.observe(B),O.observe(c),D=document.createElement("div"),D.className="-a",D.appendChild(B),c.appendChild(D),D.style.overflowX="hidden",O=D.clientWidth,D.style.overflowY="scroll",sa=O-D.clientWidth,n(),B.addEventListener("focusin",Ba=>{["INPUT","TEXTAREA","SELECT","BUTTON","A"].includes(Ba.target.tagName)&&x(Ba.target,!1)}),D.addEventListener("scroll",
176y,{passive:!0})):(c.style.padding="0",B.style.padding=f,v=c.clientWidth+ka,E=c.clientHeight);D.style.width=`${v-ka+sa}px`;B.style.width=`${v-ka}px`;M=B.scrollHeight;Q=M/Math.ceil(E);(ya=Q>1)?(c.classList.add("fw-scrollable"),xa=Math.max(Math.ceil(1/Q*E),30),V.style.height=xa+"px",S=E-xa,y()):c.classList.remove("fw-scrollable")}function n(){P=document.createElement("div");P.className="-_";V=document.createElement("div");V.className="-c";P.appendChild(V);c.appendChild(P);V.addEventListener("pointerdown",
177O=>{const Ba=O.pageY-$(V).position().top,qa=ra=>{t(ra.pageY-Ba,!1)},X=()=>{V.releasePointerCapture(O.pointerId);V.removeEventListener("pointermove",qa);V.removeEventListener("pointerup",X)};V.setPointerCapture(O.pointerId);V.addEventListener("pointermove",qa);V.addEventListener("pointerup",X);return!1});P.addEventListener("mousedown",O=>{if(O.originalTarget===void 0||O.originalTarget==O.currentTarget){let Ba=$(P).offset(),qa=O.pageY-Ba.top-Ca,X,ra=!0;const ta=function(){var Ra=$(P).offset();Ra=O.pageY-
178Ra.top-xa/2;let Sa=E*.8,N=S*Sa/(M-E);if(qa<0)Ca-N>Ra?A(-Sa):t(Ra);else if(qa>0)Ca+N<Ra?A(Sa):t(Ra);else{la();return}X=setTimeout(ta,ra?300:70);ra=!1},la=()=>{X&&clearTimeout(X);X=null;document.removeEventListener("mouseup",la)};ta();document.addEventListener("mouseup",la);return!1}})}function t(O){ya&&(O<0?O=0:O>S&&(O=S),D.scrollTop=Math.round(O/S*(M-E)))}function y(){var O=D.scrollTop/(M-E)*S;O<0?O=0:O>S&&(O=S);V.style.top=O+"px";Ca=O||0;c.hasAttribute("x:scroll:fn")&&(O=c.getAttribute("x:scroll:fn").split("|"),
179ja.fn[O.shift()].apply(c,O))}function A(O){D.scrollTop+=O}function x(O,Ba){if(ya){let X=0;for(var qa=O;qa!==B;)if(X+=qa.offsetTop,qa=qa.offsetParent,qa===null||qa===document.documentElement||qa===document.body)return;const ra=D.scrollTop;qa=ra+E;X<ra||Ba?D.scrollTop=X:(O=O.offsetHeight,X+O>qa&&(D.scrollTop=X-E+O))}}let B,v,E,D,M,Q,ya,V,S,Ca=0,P,xa,f,ka,sa=0;const Fa=c.style.padding;m();c[Cb]={init:m,scrollToElement:x,scrollByY:A,scrollTop:function(O){if(O==null)return D.scrollTop;D.scrollTop=O}}}
180c[Cb]?c[Cb].init():g(c)}function da(c,g,m){let n,t,y,A,x;return function(){y=this;t=arguments;A=new Date;const B=()=>{const E=new Date-A;E<g?n=setTimeout(B,g-E):(n=null,m||(x=c.apply(y,t)))},v=m&&!n;n||(n=setTimeout(B,g));v&&(x=c.apply(y,t));return x}}function na(c,g){const m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};g&&(m["\n"]="<br />");return String(c).replace(RegExp('[&<>"\n]',"g"),n=>m[n]||n)}function va(c){return document.createRange().createContextualFragment(c)}function gb(){clearTimeout(Tb);
181const c=document.getElementById("progress-layer");c&&c.parentNode.removeChild(c)}function Ib(c){if(!c.id){let g=0,m;do m=`x${++g}`;while(document.getElementById(m));c.id=m}return c.id}function ab(c){c.success=c.success||Kb;c.result=c.result||Kb;c.enctype=c.enctype||"application/x-www-form-urlencoded";let g=c.data||"";if(c.snippets){const y=[];document.querySelectorAll(".x-controller").forEach(A=>{var x=(A||document).querySelectorAll(".-a2");x=x.length?$(x).serializeJSON():{};y.push(Object.assign({_id:[Number(A.getAttribute("x:controller:id")),
182Ib(A)]},JSON.parse(A.getAttribute("data-state")||"{}"),x))});g._controllers=y}typeof g==="object"&&(g=c.enctype==="application/json"?JSON.stringify(g):$.param(g));let m=c.url,n=(c.method||"GET").toUpperCase();n==="GET"&&g!=""&&(m+=(m.indexOf("?")>-1?"&":"?")+g);m+=(m.indexOf("?")>-1?"&":"?")+`_nonce=${Date.now()}`;const t={method:n,cache:"no-store",headers:{"X-Requested-With":"XMLHttpRequest"}};n==="POST"&&(t.headers["Content-Type"]=c.enctype,t.body=g);fetch(m,t).then(y=>{if(y.ok){let x=null;var A=
183y.headers.get("Content-Disposition");if(A!=null&&(A=A.split(";"),A[0]==="attachment")){A=A[1].trim();let B;(B=A.match(RegExp('^filename="?(.*?)"?$')))!=null?x=decodeURIComponent(escape(B[1])):(B=A.match(RegExp("^filename\\*=UTF-8''(.*?)$")))!=null&&(x=decodeURIComponent(B[1]))}
183x!==null?y.blob().then(B=>{const v=URL.createObjectURL(B);B=document.createElement("a");B.href=v;B.setAttribute("download",x);B.click();setTimeout(()=>{URL.revokeObjectURL(v)});c.result(c.success("[]"))}):y.headers.get("X-Action")===
184"Popup"?y.text().then(B=>{Ma.openFromHTML(B);c.success("")}):c.arrayBuffer?y.arrayBuffer().then(B=>{c.success(B)}):y.text().then(B=>{c.result(c.success(B))})}})}function Ta(c){c.data=c.data||{};c.method=c.method||"POST";c.success=c.success||Ja.bind(this);c.method==="POST"&&(c.enctype="application/json");ab(c)}function ub(c,g,m){typeof g==="function"&&(m=g,g="");ab({url:c,data:g,success:m})}function vb(c,g,m){typeof g==="function"&&(m=g,g="");ab({url:c,method:"POST",data:g,success:m})}function dc(c,
185g){if(c[0]==="["&&c[c.length-1]==="]")return Ja.call(this,c);g&&g()}function Ja(c){let g=void 0;try{c=JSON.parse(c)}catch(B){return}yb();this instanceof HTMLElement&&(Da(".error",this).remove(),Da(".mf-error",this).removeClass("mf-error"));let m=null,n=null;for(let B=0;B<c.length;B++){let v=c[B];switch(v[0]){case 1:let E=!1;for(let M in v[1]){var t=this instanceof HTMLFormElement?this.elements.namedItem(M):this.querySelector(`[name="${M}"]`);if(t){var y=Q=>{var ya=Q.closest(".fw-dropdown");ya&&ya.classList.add("mf-error");
186ya=Q.parentNode;if(ya.classList.contains("fw-dropdown")||ya.classList.contains("fw-select")||(Q.type==="checkbox"||Q.type==="radio")&&ya.tagName==="LABEL")Q=ya;Q.classList.contains("x-tagify")&&(Q=Q.previousElementSibling);Q.classList.add("mf-error");Q.parentNode.insertBefore(Object.assign(document.createElement("span"),{className:"error",textContent:v[1][M]}),Q.nextElementSibling);E=!0};t instanceof RadioNodeList?Array.from(t).forEach(y):y(t)}}E&&v[2]&&(t=this.querySelector(".mf-error"))&&(y=t.getBoundingClientRect(),
187y=(document.documentElement.scrollTop||document.body.scrollTop)+Math.floor(y.top+y.height/2-window.innerHeight/2),$([document.documentElement,document.body]).animate({scrollTop:y}),t.focus());break;case 2:m=[v[1],v[2]];break;case 3:v[1]?Ma.closeAll():Ma.close();break;case 4:n=[v[1],v[2]];break;case 5:document.querySelectorAll(v[1]).forEach(M=>{M.innerHTML=v[2];ja.run(M)});break;case 6:document.querySelectorAll(v[1]).forEach(M=>{const Q=va(v[2]);M.parentNode.replaceChild(Q,M);Q.children.forEach(ja.run)});
188break;case 7:Ma.openFromHTML(v[1],{});break;case 8:try{eval(v[1])}catch(M){}break;case 9:this.reset();break;case 10:ja.alert(v[1]);break;case 11:y=document.getElementById(v[1]);t=v[2];var A=y.hasAttribute("x:controller:keepscroll"),x=window.scrollY;const D=y.getAttribute("id");t=va(t).children[0];y.parentNode.replaceChild(t,y);D!==null&&t.setAttribute("id",D);A&&(document.documentElement.scrollTop=document.body.scrollTop=x);if(v[3]!=null)for(y=-t.getBoundingClientRect().top+(v[3]||0),A=t;y>0;){A===
189null&&(A=window);x=A.scrollTop;x>0&&(x=Math.max(x-y,0),y-=x,$(A).animate({scrollTop:x},500));if(A===window)break;A=A.parentNode}ja.run(t);break;case 12:t=v[2];t[0]==="?"&&(t=window.location.href.replace(/\?.*$/,"")+(t==="?"?"":t));history.pushState&&history.pushState(v[1]||{},"",t);break;case 13:document.querySelectorAll(v[1]).forEach(M=>{M.value=v[2]});break;case 14:v.shift();(t=ja.fn[v.shift()])&&t.apply(this,v);break;case 15:g=v[1]}}m!==null?(n!==null&&sessionStorage.setItem("toast",JSON.stringify(n)),
190m[0]===null?location.reload(!0):m[1]?window.top.location.href=m[0]:location.href=m[0]):n!==null&&Jb(n[0],n[1]);return g}function wb(c,g){ja.confirm(g.confirm,()=>{var m=g.void||"";if(m!=""){m=m.split(",");for(var n=0;n<m.length;n++)$(c.elements.namedItem(m[n])).remove()}(m=g.data)&&(jb+=`&${m}`);m=!1;n=$([]);if(g.elem)for(let t=0;t<g.elem.classList.length;t++)g.elem.classList[t].substr(0,3)==="ns-"&&(m=!0,n=n.add("."+g.elem.classList[t]));m&&(n=n.add(n.find("input,select,textarea")),$("input,select,textarea").not(n).removeAttr("name"));
191$(c).submit()});return!1}function xb(){let c;wb((c=this.closest("form"))!=null?c:this.form,{elem:this,confirm:this.getAttribute("data-confirm"),void:this.getAttribute("data-void"),data:this.getAttribute("data-submit")})}function Xa(c){const g=this,m={url:g.getAttribute("href"),success:Ja.bind(g)};c&&Object.assign(m,c);g.classList.contains("js-setstate")&&(m.setState=!0);for(c=0;c<g.attributes.length;c++){var n=g.attributes[c];n.nodeName.substr(0,5)=="data-"&&(m[n.nodeName.substr(5)]=n.value)}c=g;
192let t;do{if(c.hasAttribute("x:controller:context")){t=Bb(c.getAttribute("x:controller:context"));break}if(c.hasAttribute("x:controller:id")){t=c;break}}while(c=c.parentElement);if(t.hasAttribute("x:controller:exec:fn")&&(c=t.getAttribute("x:controller:exec:fn").split("|"),n=c.shift(),c.push(m),ja.fn[n].apply(t,c)===!1))return!1;ja.confirm(m.confirm,()=>{if(m.setState){let E=t.getAttribute("x:controller:id"),D=JSON.parse(t.getAttribute("data-state")||"{}");if(g.hasAttribute("data-state")){var y=Object,
193A=y.assign,x=D;var B=g.getAttribute("data-state");if(B[0]==="{")var v=JSON.parse(B);else{v={};B=B.split("=");let M;v[B[0]]=(M=B[1])!=null?M:null}A.call(y,x,v)}else A=g.getAttribute("x:state:group"),A!=null?A[0]==="<"?(y=$,A=(g.closest(A.substr(1))||document).querySelectorAll("input"),y=y(A),Object.assign(D,y.serializeJSON({inObject:D,useIntKeysAsArrayIndex:!0,reindexArrays:!0}))):Object.assign(D,$(A).serializeJSON({useIntKeysAsArrayIndex:!0,reindexArrays:!0}
193)):D=$(g).serializeJSON({inObject:D,useIntKeysAsArrayIndex:!0,
194reindexArrays:!0});D=JSON.stringify(D);ab({url:`inc/php/scripts/Controller.Call.php?id=${E}&selector_id=${Ib(t)}&sender=${g.getAttribute("data-sender")||g.name||""}`,method:"POST",enctype:"application/json",data:D,success:Ja.bind(t)})}else ab(m)})}function Ka(c){c=c.target;if(c.hasAttribute("x:formatter")&&c.getAttribute("x:formatter")==="number"){var g=Number(c.getAttribute("x:formatter:decimals")||0),m=g>0?c.value.replace(",","."):c.value,n=new RegExp(g>0?"[^0-9.-]":"[^0-9-]","g");let A=Number(m.replace(n,
195"")),x=c.selectionStart;var t=null,y=!1;let B=c.getAttribute("x:formatter:min"),v=c.getAttribute("x:formatter:max");B!==null&&A<B?(m=B,y=!0):v!==null&&A>v?m=v:(t=m.substr(0,x).replace(n,""),m=m.substr(x).replace(n,""),m=t+m);if(m.indexOf(".")>-1){let [E,D]=m.toString().split(".");E=E.replace(/\B(?=(\d{3})+(?!\d))/g," ");D.length>g&&(D=D.substr(0,g));m=E+"."+D}else m=m.replace(/\B(?=(\d{3})+(?!\d))/g," ");m!=c.value&&(c.value=m,$(c).trigger("input"));y&&c.select();if(t!==null&&document.activeElement===
196c){x=t.length;y=t=g=0;for(n=!1;g<x||n;)(n=m[t]===" ")?y++:g++,t++;x+=y;c.setSelectionRange(x,x)}}}function yb(){const c=document.getElementById("toast");c!==null&&c.parentNode.removeChild(c)}function Jb(c,g){yb();c=Object.assign(document.createElement("div"),{id:"toast",className:c,innerHTML:g});document.body.insertBefore(c,document.body.firstChild);bb(c,Math.ceil(g.length*70))}function bb(c,g){if(c=Y(c)){c.style.transition="opacity 0.4s";const m=()=>{c.style.opacity=0;setTimeout(()=>Da(c).remove(),
197500)};setTimeout(m,Math.max(g||0,3E3));c.addEventListener("click",m)}}function cb(c,g,m){for(let t in g)if(g.hasOwnProperty(t)&&t[0]!=="_"){var n=m?m+`[${t}]`:t;if(!ib.call(n,g[t]))if(typeof g[t]==="object"){if(Array.isArray(g[t])){const y=c.elements.namedItem(n+"[]");if(y instanceof RadioNodeList)for(let A=0;A<y.length;A++)for(let x=0;x<g[t].length;x++)if(String(g[t][x])==String(y[A].value)){y[A].checked=!0;$(y[A]).trigger("change");break}}cb(c,g[t],n)}else if(n=c.elements.namedItem(n))switch(n instanceof
198RadioNodeList&&(n.value=g[t],$(n).filter(":checked").trigger("change")),n.tagName){case "INPUT":switch(n.type){case "checkbox":n.checked=+g[t]?!0:!1;$(n).trigger("change",{state:"loading"});break;default:n.value=g[t],$(n).trigger("change",{state:"loading"})}break;case "TEXTAREA":n.value=g[t],$(n).trigger("change",{state:"loading"})}}}function Sb(c){$([document.body,document.documentElement]).animate({scrollTop:c.getBoundingClientRect().top+window.scrollY})}K.prototype={attach:function(c){this.handlers.push(c)},
199detach:function(c){this.handlers=this.handlers.filter(g=>g!==c)},call:function(){this.handlers.forEach(c=>c.apply(null,arguments))},length:function(){return this.handlers.length}};const Ab=$(document);$(window);$.fn.forEach=Array.prototype.forEach;const Bb=(c,g)=>(g||document).querySelector(c),Kb=()=>{};$.fn.serializeJSON=function(c){function g(M){return t.root?M.substr(0,t.root.length)==t.root?M.substr(t.root.length).replace("[","").replace("]",""):null:M}let m,n,t,y,A,x,B,v,E,D;m=$.serializeJSON;
200m.counters={};n=this;t=m.setupOpts(c);c=m.serializeArray.call(n,t);y=t.inObject||{};$.each(c,function(M,Q){A=Q.name;A!==""&&(x=Q.value,B=A,B=g(B),B!==null&&(v=Q.elem?Q.elem.getAttribute("x:type")||null:null,m.validateType(A,v,t),v!=="skip"&&(E=m.splitInputNameIntoKeysArray(B),typeof x==="object"&&x.hasOwnProperty("__undef")?x.__undef=m.parseValue(x.__undef,A,v,t):x=m.parseValue(x,A,v,t),(D=!x&&m.shouldSkipFalsy(n,B,Q.elem,v,t))||m.deepSet(y,E,x,t))))});n.find(".x-autoarray").each(function(){let M=
201g(this.getAttribute("x:autoarray:name"));M!=""&&m.deepSet(y,m.splitInputNameIntoKeysArray(M),[],t,!0)});t.extra&&$.each(t.extra,function(){let M=g(this.name);M!=""&&m.deepSet(y,m.splitInputNameIntoKeysArray(M),this.value,t,!0)});return y};$.serializeJSON={defaultOptions:{checkboxUncheckedValue:void 0,parseNumbers:!1,parseBooleans:!1,parseNulls:!1,parseAll:!1,parseWithFunction:null,skipFalsyValuesForTypes:[],customTypes:{},defaultTypes:{string:function(c){return String(c)},number:function(c){return Number(c.replace(/\s/g,
202"").trim())},"boolean":function(c){return["false","null","undefined","","0"].indexOf(c)===-1},"null":function(c){return["false","null","undefined","","0"].indexOf(c)===-1?c:null},list:function(c){return c!=""?c.split(","):[]},json:function(c){try{return JSON.parse(c)}catch(g){return[]}},array:function(c){try{return JSON.parse(c)}catch(g){return[]}},object:function(c){try{return JSON.parse(c)}catch(g){return{}}},auto:function(c){return $.serializeJSON.parseValue(c,null,null,{parseNumbers:!0,parseBooleans:!0,
203parseNulls:!0})},skip:null},useIntKeysAsArrayIndex:!1,reindexArrays:!1},serializeArray:function(c){const g=/^(?:INPUT|SELECT|TEXTAREA)/,m=/^(?:submit|button|image|reset|file)$/i,n=/^(?:checkbox|radio)$/i;return this.map(function(){let t=this.elements;return t?$.makeArray(t):this}
203).map(function(){var t=this.type;if(this.name&&!this.disabled&&g.test(this.nodeName)&&!m.test(t)){if(this.checked||!n.test(t))return t=$(this).val(),t==null?null:{elem:this,name:this.name,value:t.replace(/\r?\n/g,"\r\n")};
204if(this.type.toLowerCase()==="checkbox"&&!this.checked){t=this.getAttribute("data-unchecked-value");t==null&&(t=c.checkboxUncheckedValue);if(t!=null)return{elem:this,name:this.name,value:t};t=this.name;if(t.substring(t.length-2,t.length)==="[]")return{elem:this,name:t,value:{__undef:this.value}}}}return null}).get()},setupOpts:function(c){c=Object.assign({},$.serializeJSON.defaultOptions,c||{});return c=Object.assign(c,{checkboxUncheckedValue:c.checkboxUncheckedValue,parseNumbers:c.parseAll||c.parseNumbers,
205parseBooleans:c.parseAll||c.parseBooleans,parseNulls:c.parseAll||c.parseNulls,parseWithFunction:c.parseWithFunction,skipFalsyValuesForTypes:c.skipFalsyValuesForTypes,typeFunctions:$.extend({},c.defaultTypes,c.customTypes),useIntKeysAsArrayIndex:c.useIntKeysAsArrayIndex,reindexArrays:c.reindexArrays})},parseValue:function(c,g,m,n){let t=c;n.typeFunctions&&m&&n.typeFunctions[m]?t=n.typeFunctions[m](c):n.parseNumbers&&$.serializeJSON.isNumeric(c)?t=Number(c):!n.parseBooleans||c!=="true"&&c!=="false"?
206n.parseNulls&&c=="null"&&(t=null):t=c==="true";n.parseWithFunction&&!m&&(t=n.parseWithFunction(t,g));return t},isObject:function(c){return c===Object(c)},isUndefined:function(c){return c===void 0},isValidArrayIndex:function(c){return/^[0-9]+$/.test(String(c))},isNumeric:function(c){return c-parseFloat(c)>=0},shouldSkipFalsy:function(c,g,m,n,t){c=t.skipFalsyValuesForTypes;n==null&&(n="string");return c&&c.indexOf(n)!==-1},validateType:function(c,g,m){c=$.serializeJSON;m=Object.keys(m?m.typeFunctions:
207c.defaultOptions.defaultTypes);if(!g||m.indexOf(g)!==-1)return!0},splitInputNameIntoKeysArray:function(c){return c.replace(/\]/g,"").split("[")},deepSet:function(c,g,m,n,t,y){let A;let x;n==null&&(n={});x=$.serializeJSON;var B=g[0];y=`${y||""}/${B}`;if(g.length===1)B===""?typeof m==="object"&&m.hasOwnProperty("__undef")?(m=c.indexOf(m.__undef),m>-1&&c.splice(m,1)):c.push(m):t&&c[B]!==void 0||(c[B]=m);else{A=g[1];if(B===""){B=c.length-1;var v=c[B];B=x.isObject(v)&&(v[A]===void 0||g.length>2)?B:B+1}A===
208""?c[B]!==void 0&&Array.isArray(c[B])||(c[B]=[]):n.useIntKeysAsArrayIndex&&x.isValidArrayIndex(A)?(c[B]!==void 0&&Array.isArray(c[B])||(c[B]=[]),n.reindexArrays&&(v=x.counters[y]=x.counters[y]||{index:0,keys:{}},A in v.keys?A=v.keys[A]:(A=v.keys[A]=v.index,v.index++),g[1]=A)):c[B]!==void 0&&x.isObject(c[B])||(c[B]={});g=g.slice(1);x.deepSet(c[B],g,m,n,t,y)}}};const Da=function(c,g){return(new hb).add(c,g)},hb=function(){};hb.prototype={length:0,forEach:Array.prototype.forEach,add(c,g){if(c!=null){const m=
209this.length;
209if(typeof c==="string")c=(g!=null?g:document).querySelectorAll(c);else if(c instanceof Element)return this[m]=c,this.length++,this;g=c.length;if(g>0){for(let n=0;n<g;n++)this[n+m]=c[n];this.length+=g}}return this},slice(c,g){return Da(Array.prototype.slice.call(this,c,g))},css(c){for(let g=0;g<this.length;++g)Object.assign(this[g].style,c);return this},empty(){for(let c=0;c<this.length;++c)for(;this[c].lastChild;)this[c].removeChild(this[c].lastChild);return this},remove(){for(let c=0;c<
210this.length;++c){let g;(g=this[c].parentElement)==null||g.removeChild(this[c])}return this},addClass(...c){for(let g=0;g<this.length;++g)this[g].classList.add(...c);return this},removeClass(...c){for(let g=0;g<this.length;++g)this[g].classList.remove(...c);return this},toggleClass(c,g){for(let m=0;m<this.length;++m)this[m].classList.toggle(c,g);return this},hasClass(c){let g;return(g=this[0])==null?void 0:g.classList.contains(c)},attr(c,g){if(g!==void 0){for(var m=0;m<this.length;++m)g!==null?this[m].setAttribute(c,
211g):this[m].removeAttribute(c);return this}return(m=this[0])==null?void 0:m.getAttribute(c)},prop(c,g){if(g!==void 0){for(var m=0;m<this.length;++m)this[m][c]=g;return this}return(m=this[0])==null?void 0:m[c]},closest(c){const g=new hb;for(let m=0;m<this.length;++m)g.add(this[m].closest(c));return g},parent(){const c=new hb;for(let g=0;g<this.length;++g)c.add(this[g].parentElement);return c},find(c){const g=new hb;for(let m=0;m<this.length;++m)g.add(this[m].querySelectorAll(c));return g},html(c){if(c!==
212void 0){for(var g=0;g<this.length;++g)this[g].innerHTML=c;return this}return(g=this[0])==null?void 0:g.innerHTML},text(c){if(c!==void 0){for(var g=0;g<this.length;++g)this[g].textContent=c;return this}return(g=this[0])==null?void 0:g.textContent},reflow(){for(let c=0;c<this.length;++c)Da.reflow(this[c]);return this},listen(c,g,m){for(let n=0;n<this.length;++n)this[n].addEventListener(c,g,m)},triggerChange(){const c=new Event("change",{bubbles:!0,cancelable:!0});for(let g=0;g<this.length;++g)this[g].dispatchEvent(c)},
213set value(c){for(let g=0;g<this.length;++g)this[g].value=c},get innerHTML(){let c;return(c=this[0])==null?void 0:c.innerHTML},set innerHTML(c){for(let g=0;g<this.length;++g)this[g].innerHTML=c},get outerHTML(){let c;return(c=this[0])==null?void 0:c.outerHTML},set outerHTML(c){for(let g=0;g<this.length;++g)this[g].outerHTML=c},get textContent(){let c;return(c=this[0])==null?void 0:c.textContent},set textContent(c){for(let g=0;g<this.length;++g)this[g].textContent=c},serializeForm(){return $(this).serializeJSON()}};
214Da.on=(c,g,m,n)=>{c.addEventListener(g,t=>{const y=t.target.closest(m);y!==null&&c.contains(y)&&n.call(y,t)})};Da.offset=c=>{c=c.getBoundingClientRect();return{x:c.left+window.pageXOffset,y:c.top+window.pageYOffset}};Da.position=c=>{let g=c.offsetLeft,m=c.offsetTop;c=c.offsetParent;c!==null&&getComputedStyle(c).position==="static"&&(c=Da.position(c),g+=c.x,m+=c.y);return{x:g,y:m}};Da.reflow=c=>{c.offsetParent};(function(){function c(n){var t=n||window.event;const y=Array.prototype.slice.call(arguments,
2151);let A,x=0,B=0;n=$.event.fix(t);n.type="mousewheel";A=B===0?x:B;"deltaY"in t&&(A=B=t.deltaY*-1);"deltaX"in t&&(x=t.deltaX,B===0&&(A=x*-1));if(B!==0||x!==0){t.deltaMode===1?(A*=g,B*=g,x*=g):t.deltaMode===2&&(A*=m,B*=m,x*=m);t=Math.max(Math.abs(B),Math.abs(x));A=Math[A>=1?"floor":"ceil"](A/t);x=Math[x>=1?"floor":"ceil"](x/t);B=Math[B>=1?"floor":"ceil"](B/t);var v=this.getBoundingClientRect();n.offsetX=n.clientX-v.left;n.offsetY=n.clientY-v.top;n.deltaX=x;n.deltaY=B;n.deltaFactor=t;n.deltaMode=0;y.unshift(n,
216A,x,B);return($.event.dispatch||$.event.handle).apply(this,y)}}let g,m;$.event.special.mousewheel={setup:function(){this.addEventListener("wheel",c);let n=this.offsetParent;n===null&&(n=document.body);g=parseInt(getComputedStyle(n).fontSize,10)||parseInt(getComputedStyle(this).fontSize,10)||16;m=parseInt(getComputedStyle(this).height)},teardown:function(){this.removeEventListener("wheel",c)}}})();const Cb=Symbol();$.fn.jScrollPane=function(){return this.each(function(){U(this)})};const db=(c,g)=>
217{function m(){function N(ca){ca.normalize&&(ca=ca.normalize("NFD").replace(/[\u0300-\u036f]/g,""));try{return ca.replace(/\s+/g," ").replace(RegExp("(?<=[0-9]) (?=[0-9])","g"),"").trim().toLowerCase()}catch(L){return ca.replace(/\s+/g," ").replace(RegExp("([0-9]) ([0-9])","g"),"$1$2").trim().toLowerCase()}}var ea=this instanceof HTMLInputElement?this:O[0];const ha=N(ea.value);g.onsearch?g.onsearch.call(c,{value:ea.value,valueNormalized:ha}):(ha!=""?(ea=(P||document).querySelectorAll(".group"),ea.length?
218ea.forEach(ca=>{let L=0;(ca||document).querySelectorAll(".item").forEach(ma=>{var oa=N(ma.textContent);(oa=g.fulltext?oa.indexOf(ha)>-1:oa.startsWith(ha))&&L++;ma.classList.toggle("blind",!oa)});ca.classList.toggle("blind",!L)}):(P||document).querySelectorAll(".item").forEach(ca=>{var L=N(ca.textContent);L=g.fulltext?L.indexOf(ha)>-1:L.startsWith(ha);ca.classList.toggle("blind",!L)})):Da(".group.blind,.item.blind",P).removeClass("blind"),t())}function n(){Fa||(Fa=sa?Q:M.contains("select-filterable")?
219(c||document).querySelector(".select-input-filter"):null,O=Da(Fa).add(".select-input-filter-2",c),Fa&&O.forEach(N=>{N.addEventListener("input",m);N.addEventListener("keydown",ea=>{if(N.value!="")switch(ea.which){case 13:if(N!==Q){const ha=(P||document).querySelectorAll(".item");for(let ca=0;ca<ha.length;ca++){const L=ha[ca];if(!L.classList.contains("blind")){ra(L);break}}ea.stopPropagation()}break;case 27:N.value="",m(),ea.stopPropagation()}})}),(c||document).querySelectorAll(".x-select-change").forEach(N=>
220{N.addEventListener("input",X);N.addEventListener("change",X)}))}function t(){Q.classList.contains("bubble-opened")&&(Ua.position(S),S.classList.contains("scrollable")&&U(S))}function y(N){let ea=[],ha=[];const ca=g.onchoiceupdate;let L=!0;if(ca){const ma=[];(P||document).querySelectorAll(".item").forEach(oa=>
220{oa.classList.contains("item-selected")&&ma.push(oa)});ca(Q,ma)===!1&&(L=!1)}(P||document).querySelectorAll(".item").forEach(ma=>{var oa=ma.classList.contains("item-selected");oa&&(sa&&ea.push(ma.textContent),
221ha.push(ma.getAttribute("data-v")));if(L&&!sa)if(oa)if(ma[E])ma[E].parentElement||Q.appendChild(ma[E]);else{oa=ma[E]=document.createElement("span");oa[E]=ma;oa.setAttribute("class","input-choice");f&&oa.addEventListener("mousedown",B);const La=ma.getAttribute("xa");La==null?oa.innerHTML=ma.innerHTML:oa.textContent=La;Q.appendChild(oa)}else ma[E]&&ma[E].parentElement&&ma[E].parentElement.removeChild(ma[E])});sa&&(Q.value=ea.join(", "),Ba=!0);M.toggle("select-empty",ha.length==0);M.toggle("select-notempty",
222ha.length>0);ha=qa?JSON.stringify(ha):ha.join(",");N?V.value=ha:V.value!=ha&&(V.value=ha,Ba=!0)}function A(){if(Q!==V){let N=V.value;N=xa?qa?N==""?[]:JSON.parse(N):N.split(","):[N];N.length||(N=[""]);(P||document).querySelectorAll(".item").forEach(ea=>{ea.classList.toggle("item-selected",N.indexOf(ea.getAttribute("data-v"))>-1)});M.contains("select-deferred-load")||y(!0)}}function x(){Ra=!0;clearTimeout(Sa);Sa=setTimeout(()=>{Ra=!1},200)}function B(N){x();ra(this[E]);Ba&&($(V).trigger("change"),Ba=
223!1)}function v(N){Ra||ta||V.hasAttribute("readonly")||V.disabled||(Q.classList.contains("bubble-opened")?N.type!=="click"||la||Ua.close(S):(ta=!0,S.hasAttribute("x:fn:dropdown-open")&&(N=S.getAttribute("x:fn:dropdown-open").split("|"),ja.fn[N.shift()].apply(S,N)),Ua.open(S,ya,{onClose:()=>{ta=!1;O.forEach(ea=>{ea&&ea!==Q&&!g.keepfilter&&(ea.value="",m())});Ba&&($(V).trigger("change"),Ba=!1)}}),la=!0,setTimeout(()=>la=!1,250),setTimeout(()=>{Ca&&window.innerWidth<800?O[O.length-1].focus():Fa&&Fa.focus()})))}
224if(!c.$api){var E=Symbol(),D;g=Object.assign({fulltext:!0},(D=g)!=null?D:{});
224g.id&&(D=c.getAttribute("x:options:id"),g.id[D]&&(g=Object.assign(g,g.id[D])));var M=c.classList,Q=(c||document).querySelector(".input"),ya=g.isowner?c:Q,V=(c||document).querySelector(".input-value"),S=(c||document).querySelector(".dropdown"),Ca=S.classList.contains("dropdown-fullscreen"),P=Ca?(S||document).querySelector(".options")||S:S,xa=M.contains("select-multiple"),f=M.contains("select-bubblify"),ka=xa||M.contains("select-allowunselect"),
225sa=Q.tagName==="INPUT",Fa,O,Ba=!1;n();if(g.fullscreen){S.classList.add("dropdown-fullscreen");D=va('<div class="dropdown-header"><a class="close" href="javascript:" x:fn="bubbleClose"></a>Vyberte ...</div>').children[0];const N=P=document.createElement("div");N.classList.add("dropdown-content");N.append(...S.childNodes);S.append(D,N)}var qa=V.getAttribute("x:type")==="json";c.$api={rawValue:V.value,addOptions(N,ea){let ha="";for(let ca=0;ca<N.length;ca++){const L=N[ca],[ma,oa]=Array.isArray(L)?L:
226[L,L];ha+=`<li class="item" data-v="${na(ma)}">${ea?oa:na(oa)}</li>`}P.insertAdjacentHTML("beforeend",ha);return this},clearOptions(N,ea){let ha=Da(".item",P);if(N!=null||ea!=null)ha=ha.slice(N,ea);ha.remove();return this},clear(N,ea){this.clearOptions(N,ea);Da(".input-choice",Q).remove();y();return this},setFilter(N){Fa&&(Fa.value=N,m(),Fa.focus());return this},selectAll(N){(P||document).querySelectorAll(".item").forEach(ea=>{ea.classList.contains("blind")||ea.classList.add("item-selected")});y();
227Ua.position(S);N&&(Ba=!0);return this},load(){Da(".input-choice",Q).remove();A();return this},updateUI:function(){t();return this},setDropdownHTML(N){P.innerHTML=N;Fa=null;n();ja.run(P);this.load();return this},setOptionState(N,ea){(P||document).querySelectorAll(".item").forEach(ha=>{ha.getAttribute("data-v")==N&&(ha.classList.toggle("item-selected",ea>0),y())})},val(N,ea){return arguments.length>0?(V.value=N,A(),ea&&(Ba=!0),this):V.value}};var X=()=>{Ba=!0};$(V).on("change",A);var ra=N=>{const ea=
228N.classList.contains("item-selected");if(g.onbeforeselect&&g.onbeforeselect.call(c,{element:N,selected:ea,text:N.textContent.trim(),value:N.getAttribute("data-v")})===!1)return!1;ea?ka&&N.classList.remove("item-selected"):(xa||((P||document).querySelectorAll(".item-selected").forEach(ha=>{ha.classList.remove("item-selected")}),Da(".input-choice",Q).remove()),N.classList.add("item-selected"));y();ta&&(xa?Ua.position(S):Ua.close(S))};Da.on(P,"click",".item",function(){ra(this)});var ta=!1,la=!1,Ra=
229!1,Sa=null;V.hasAttribute("readonly")&&M.add("select-readonly");V.disabled&&M.add("select-disabled");Q.addEventListener("click",v);Q.addEventListener("focusin",v);A();g.oninit&&g.oninit.call(c)}};hb.prototype.select=function(c){this.forEach(g=>db(g,c))};NodeList.prototype.forEach||(NodeList.prototype.forEach=Array.prototype.forEach);HTMLCollection.prototype.forEach||(HTMLCollection.prototype.forEach=Array.prototype.forEach);let Tb;const ib=(()=>{const c={};return{create:function(g,m,n){g!==null?(g=
230$(g),g.on("$unserialize",n),c[m]=g):c[m]=n},call:function(g,m){if(c[g]){g=c[g];if(g.triggerHandler)return g.triggerHandler("$unserialize",[m]),!0;let n;return(n=g.call(null,null,m))!=null?n:!0}return!1}}})(),Ua=(()=>{function c(v){const E=v[y];E[n]===v&&delete E[n];E[t]===v&&delete E[t];delete v[y];E.classList.remove("bubble-opened");v=v[A];v.bodyClass&&document.body.classList.remove(v.bodyClass)}function g(v){v=Y(v);if(v[A]){v[y]&&c(v);v.classList.add("blind");const E=x.indexOf(v);E>-1&&x.splice(E,
2311);v.classList.remove("bub-l","bub-r","bub-t","bub-b");let D,M;(M=(D=v[A]).onClose)==null||M.call(D)}}function m(v){var E=v[y];var D=v[A];if(D.position!==!1){var M=E.getBoundingClientRect(),Q=M.left,ya=M.top,V=Math.round(M.width),S=Math.round(M.height);D.x!=null&&(Q+=D.x,V=0);D.y!=null&&(ya+=D.y,S=0);var Ca=document.documentElement.clientWidth;var P=document.documentElement.clientHeight;M={margin:v.style.margin,transform:v.style.transform};var xa={left:"0",top:"0",margin:"0",transform:"none"},f=v.getAttribute("x:dropdown:parent");
232var ka=document.documentElement;var sa=!1;if(f!=="parent")for(ka=v.parentNode;ka!==document.body;){f=getComputedStyle(ka);if(f.overflowX!=="visible"||f.overflowY!=="visible"||["paint","content","strict"].indexOf(f.contain)>-1||ka.classList.contains("fixed-bubbles")){sa=!0;xa.position="fixed";
232v.classList.contains("no-min-width")||(xa.minWidth=v.parentNode.offsetWidth+"px");break}ka=ka.parentNode}sa&&D.smartClipping?(P=ka.getBoundingClientRect(),ka=P.x,D=P.y,Ca=P.right,sa=P.bottom):(D=ka=0,sa=P);Object.assign(v.style,
233xa);xa=v.getBoundingClientRect();f=Math.ceil(xa.width);P=Math.ceil(xa.height);ka=Q+f>Ca&&Q+V-f>=ka;D=ya+S+P>sa&&ya-P>=D;E[n]===v&&delete E[n];E[t]===v&&delete E[t];E[D?n:t]&&(D=!D);E[D?n:t]=v;E=Q-xa.left+(ka?V-f:0);ya=ya-xa.top+(D?-P:S);Q=v.classList;Q.toggle("bub-l",ka);Q.toggle("bub-r",!ka);Q.toggle("bub-t",D);Q.toggle("bub-b",!D);M.left=`${E}px`;M.top=`${ya}px`;Object.assign(v.style,M);E>0&&(M=v.getBoundingClientRect(),M.right>window.innerWidth&&(E-=Math.min(E,M.right-window.innerWidth),v.style.left=
234`${E}px`))}}const n=Symbol(),t=Symbol(),y=Symbol(),A=Symbol(),x=[];let B=!1;Ab.on("mousedown focusin",v=>{if(v.type!=="focusin"||!B){var E=v.target,D=[],M=[];if(v.type!=="focusin"||!E.classList||!E.classList.contains("-b")){for(var Q=0;Q<x.length;Q++)x[Q].contains(E)||x[Q][y].contains(E)?M.push(x[Q][y]):D.push(x[Q]);v.type==="mousedown"&&(B=!0,setTimeout(()=>{B=!1},100));for(v=0;v<D.length;v++){E=!0;for(Q=0;Q<M.length;Q++)if(D[v].contains(M[Q])){E=!1;break}E&&g(D[v])}}}}).on("blur",()=>{for(let v=
235x.length-1;v>=0;v--)g(x[v])});window.addEventListener("resize",()=>{for(let v=0;v<x.length;v++)m(x[v])});return{open:function(v,E,D){v=Y(v);E=Y(E);let M;D!=null||(D=(M=v[A])!=null?M:{});if(v[y]){if(D.toggle){g(v);return}c(v)}D.bodyClass=E.getAttribute("x:bubble:bodyclass");v[y]=E;v[A]=D;v.classList.remove("blind");m(v);E.classList.add("bubble-opened");D.bodyClass&&document.body.classList.add(D.bodyClass);v.classList.contains("scrollable")&&U(v);v.querySelectorAll(".scrollable").forEach(U);x.indexOf(v)==
236-1&&x.push(v)},close:g,closeAll:()=>{for(;x.length;)g(x[x.length-1])},position:m}})();class Lb{constructor(c){const g=this;g.element=c;g.running=!1;g.queue=[];g.fileCount=0;c.addEventListener("dragover",n=>{n.preventDefault();n.dataTransfer.dropEffect="copy"});c.addEventListener("drop",n=>{n.preventDefault();n=n.dataTransfer;for(let t=0;t<n.files.length;t++)g.queue.push(n.files[t]);g.runQueue();return!1});let m;(m=c.closest("form"))==null||m.addEventListener("reset",()=>{g.onReset&&g.onReset(g)});
237(c||document).querySelectorAll('input[type="file"]').forEach(n=>{n.addEventListener("change",()=>{const t=+c.getAttribute("x:uploader:maxsize")||134217728;for(let y=0;y<n.files.length;y++){const A=n.files[y];A.size<=t?g.queue.push(A):ja.alert(`Maximální velikost souboru k uploadu je ${Math.floor(t/1048576)}\xa0MB.`)}n.value="";g.runQueue()})})}runQueue(){this.running||(this.queue.sort((c,g)=>c.name.localeCompare(g.name,void 0,{numeric:!0,sensitivity:"base"})),this.fileCount=this.queue.length,this.continueQueue())}continueQueue(){const c=
238this;if(c.queue.length){c.running=!0;const g=c.queue.shift(),m=new XMLHttpRequest;m.upload.onprogress=n=>{n=Math.round((c.fileCount-c.queue.length-1+n.loaded/n.total)/c.fileCount*100);let t;(t=c.onProgress)==null||t.call(c,c,`${n}%`,n)};m.onload=()=>{if(m.status==200){let n=m.responseText;if(n!=""){n=n[0]!="{"?{ok:!0,id:n}:JSON.parse(n);if(n.ok){let t;(t=c.onUpload)==null||t.call(c,c,Object.assign({name:g.name,size:g.size},n))}else ja.alert(n.errorMessage);c.continueQueue()}else m.onerror()}else m.onerror()};
239m.onerror=()=>{ja.confirm(`Chyba!\n\nSoubor "${g.name} se nepodařilo nahrát na server.\n\nChcete to zkusit znovu?`,()=>{c.queue.unshift(g);c.continueQueue()},()=>{c.continueQueue()})};m.open("POST","inc/php/ajax-upload.php?upload="+(c.element.getAttribute("x:uploader:id")||c.element.getAttribute("x:uploader:name")||"attachment")+"&type="+(c.element.getAttribute("x:uploader:type")||"file")+"&name="+encodeURIComponent(g.name),!0);m.setRequestHeader("Content-Type",g.type);m.send(g)}else if(c.running){c.running=
240!1;let g;(g=c.onFinish)==null||g.call(c,c)}}}const ja={alert:c=>
240{alert(c)},confirm:(c,g,m)=>{c?confirm(c)?g==null||g():m==null||m():g==null||g()},prompt:(c,g,m,n)=>{c=prompt(c,g);c!==null?m==null||m(c):n==null||n()},fn:{},event:{},templates:{},onContent:new K,run:c=>{if(c instanceof $)c.forEach(ja.run);else{c=c||document;(c||document).querySelectorAll(".scrollable").forEach(U);var g,m;(m=(g=ja).DOMChange)==null||m.call(g,c);ja.onContent.call(c);Ia.init(c);try{let n=sessionStorage.getItem("toast");
241n!=null&&(n=JSON.parse(n),Jb(n[0],n[1]),sessionStorage.removeItem("toast"))}catch(n){}}}};let jb="";const Ma=new function(){const c={canClose:!0};ja.fn.windowClose=()=>{Ma.close()};const g=this,m=[];this.open=n=>{n.success=(t,y)=>{gb();dc(t,()=>{t!==""&&g.openFromHTML(t,n)})};ab(n)};this.openFromHTML=(n,t)=>{Ua.closeAll();document.activeElement&&document.activeElement.blur();window.formData&&(window.formData=null);t=Object.assign({},c,t);n=n.replace('<div class="overlay"></div>','<div class="overlay"></div><div class="popup-wrapper">')+
242"</div>";var y=va(n),A=y.children;n=A[1];const x=n.children[0];A=t.element=Da(A).css({opacity:0,transition:"opacity 0.4s"});t.canClose||x.classList.add("popup-no-close");m.push(t);document.body.appendChild(y);ja.run(n);window.formData&&(y=(x||document).querySelector("form"),t.onBeforeFormLoad&&t.onBeforeFormLoad(y),y&&(cb(y,window.formData),window.formData=null));t.onCreate&&t.onCreate(x);t.onClose=new K(t.onClose);document.documentElement.style.overflow=document.body.style.overflow="hidden";A.css({opacity:1});
243return n};this.close=()=>{if(m.length){const n=m.pop();n.element.css({opacity:0});setTimeout(()=>{n.element.remove()},500);n.onClose.call();m.length||(document.documentElement.style.overflow=document.body.style.overflow="")}};this.closeAll=()=>{for(;m.length;)this.close()};this.current=()=>m.length?m[m.length-1]:null;window.addEventListener("keydown",n=>{if(n.which==27&&m.length)return m[m.length-1].canClose&&g.close(),!1})},Ia=(()=>{function c(A){return A.replace(RegExp("\\$([a-zA-Z0-9_\\[\\]])+",
244"g"),x=>x.replace(/[\[\]]/g,""))}function g(){if(t){const A={$set_in_set_all:(x,B)=>{Array.isArray(x)||(x=x===""||x==null?[]:String(x).split(","));Array.isArray(B)||(B=B===""||B==null?[]:String(B).split(","));for(let v=0;v<x.length;v++)if(B.indexOf(x[v])===-1)return!1;return!0},$set_in_set_any:(x,B,v)=>{Array.isArray(x)||(x=x===""||x==null?[]:String(x).split(","));Array.isArray(B)||(B=B===""||B==null?[]:String(B).split(","));if(v&&B.length===0)return!0;for(v=0;v<x.length;v++)if(B.indexOf(x[v])>-1)return!0;
245return!1}};n.forEach(x=>{const B=x.hasAttribute("x:hook:value")?x.getAttribute("x:hook:value"):x instanceof HTMLSelectElement?x.value:x instanceof HTMLInputElement?x.type==="checkbox"?x.checked?x.value==="on"?1:x.value:0:x.type==="radio"?x.checked?x.value:null:x.value:x.getElementsByTagName("input")[0].value;B!==null&&(A["$"+(x.getAttribute("x:hook")||x.getAttribute("name")).replace(/[\[\]]/g,"")]=B)});m.forEach(x=>{try{const B=new Function("$","return "+c(x.getAttribute("x:hook:if")).split("$").join("$.$"));
246let v=x.getAttribute("x:hook:fn");const E=x.getAttribute("x:hook:prop");if(v!=null){v=v.split("|");const D=v[0];v[0]=B(A);ja.fn[D].apply(x,v)}else if(E!=null)x[E]=B(A);else{const D=x.getAttribute("x:hook:class")||"blind";B(A)?(x.classList.remove(D),y.call(x)):x.classList.add(D)}}catch(B){}})}}let m,n,t=!1;const y=new K;return{onShow:y,init:A=>{m=document.querySelectorAll(".hook");n=document.querySelectorAll(".hook-change");t=!0;g()},update:g}})();let Db={};const eb=Symbol(),pb=(()=>{const c=Symbol();
247let g;const m={oninput:n=>{n[c]=!0},onchange:n=>{n[c]=!1},trigger:n=>{n[c]&&(clearTimeout(g),g=setTimeout(()=>{n[c]&&n.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},100))}};document.addEventListener("focusout",n=>{m.trigger(n.target)});document.addEventListener("keydown",n=>{n.which===13&&(n=n.target)&&m.trigger(n)});return m})(),Mb=c=>{var g=c.closest("form");g&&g.hasAttribute("x:modify:fn")&&(g=g.getAttribute("x:modify:fn").split("|"),ja.fn[g.shift()].apply(c,g))};Ab.on("input",
248c=>{Ka(c);c=c.target;Mb(c);if(c.hasAttribute("x:input:fn")){const g=c.getAttribute("x:input:fn").split("|");if(!ja.fn[g.shift()].apply(c,g))return!1}pb.oninput(c)}).on("change",(c,g)=>{Db=g||{};Ka(c);const m=c.target;Mb(m);pb.onchange(m);if(m.hasAttribute("x:change:fn")&&(c=m.getAttribute("x:change:fn").split("|"),!ja.fn[c.shift()].apply(m,c)))return!1;(m.classList.contains("x-change")||m.classList.contains("js-change-exec"))&&Xa.c
248all(m);if(m.classList.contains("js-change-exec-debounce")){let n;(m[eb]=
249(n=m[eb])!=null?n:da(()=>{Xa.call(m);m[eb]=null},100))()}m.classList.contains("x-autosubmit")&&Db.state!=="loading"&&xb.call(m);if(m.classList.contains("x-autosubmit-debounce")){let n;(m[eb]=(n=m[eb])!=null?n:da(()=>{xb.call(m);m[eb]=null},100))()}m.classList.contains("hook-change")&&Ia.update.call(m)}).on("click",c=>{if((c.which||0)<2){ja.event=c;let g=c.target;do{if(g.hasAttribute("x:fn"))return c=g.getAttribute("x:fn").split("|"),ja.fn[c.shift()].apply(g,c)||!1;g.classList.contains("x-nop")&&c.preventDefault();
250if(g.classList.contains("js-exec")){Xa.call(g);break}if(g.classList.contains("x-submit"))return xb.call(g),!1}while(g=g.parentElement)}}).on("focus",".mf-error",function(){const c=this.nextElementSibling;if(c.classList.contains("error")){const g=Da.position(this);g.x+=parseInt(getComputedStyle(this).marginTop);const m=this.classList.contains("fw-select")||this.classList.contains("fw-dropdown")||this.classList.contains("input-calendar");c.style.display="block";Object.assign(c.style,{opacity:0,left:`${g.x-
25140}px`,top:`${m?g.y-c.offsetHeight:g.y+this.offsetHeight}px`,transition:"left 0.25s, opacity 0.25s"});Da.reflow(c);Object.assign(c.style,{opacity:.85,left:`${g.x}px`})}}).on("blur",".mf-error",function(){const c=this.nextElementSibling;c.classList.contains("error")&&(Object.assign(c.style,{opacity:0,left:`${parseInt(c.style.left,10)-40}px`}),setTimeout(()=>{c.style.opacity<.01&&(c.style.display="none")},300))}).on("submit","form.dynamic",function(c){const g=this,m=$(g);if(g.hasAttribute("x:submit:fn")&&
252(c=g.getAttribute("x:submit:fn").split("|"),ja.fn[c.shift()].apply(g,c)===!1))return!1;c=g.getAttribute("data-confirm");ja.confirm(c,()=>{let n;window.tinyMCE&&tinyMCE.triggerSave();if(g.classList.contains("x-enctype-json")){var t=$.makeArray($(".x-autoarray",g)).map(A=>({name:A.getAttribute("x:autoarray:name"),value:[]}));const y=jb.split("&");for(let A=0;A<y.length;A++)if(y[A]!==""){let x=y[A].split("=");t.push({name:x[0],value:decodeURIComponent(x[1]||"")})}n=g.classList.contains("x-serialize-native")?
253m.serializeJSON({extra:t}):m.serializeJSON({useIntKeysAsArrayIndex:!0,reindexArrays:!0,extra:t});t="application/json"}else n=[],$.each(m.serializeArray(),function(){n.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value==null?"":this.value))}),n=n.join("&")+jb;ab({url:g.getAttribute("action"),method:g.getAttribute("method")||"GET",data:n,enctype:t,snippets:g.hasAttribute("x:controller:update"),success:Ja.bind(g)});jb=""});return!1});$(function(){function c(y){let A=y[1][0]-y[0][0];
254y=y[1][1]-y[0][1];return Math.sqrt(A*A+y*y)}function g(y){let A=[];for(let x=0;x<y.length;x++)A.push([y[x].clientX,y[x].clientY]);return A}function m(y){const A=document.createElement("div");A.innerHTML=y;return A.firstChild}function n(y,A,x){function B(){document.body.style.overflow="";document.body.removeChild(D);document.body.removeChild(M);$(E).fadeOut(400,function(){E.parentNode.removeChild(E)});document.onkeydown="";t!==null&&(window.removeEventListener("resize",t),t=null);return!1}function v(Q,
255ya,V,S){function Ca(X){X=Math.min(10,Math.max(1,X));O!=X&&(O=X,xa())}function P(X){X+=Fa;X>=0&&X<sa.length&&(document.onkeydown="",document.body.removeChild(D),document.body.removeChild(M),X=ka[X],v(X,X.href,V,!0))}function xa(){if(Ba){var X=window.innerWidth-20,ra=window.innerHeight-48;let ta=qa.naturalWidth,la=qa.naturalHeight;ta>X?(la=la*X/ta,ta=X,la>ra&&(ta=ta*ra/la,la=ra)):la>ra&&(ta=ta*ra/la,la=ra,ta>X&&(la=la*X/ta,ta=X));ta*=O;la*=O;qa.width=ta;qa.height=la;X=Math.min(ta,X);ra=Math.min(la,
256ra);D.style.marginLeft=`${-Math.floor(X/2)}px`;D.style.marginTop=`${14-Math.floor(ra/2)}px`;D.style.width=`${X}px`;D.style.height=`${ra}px`;D.style.display="block"}}const f=X=>{switch(X.which){case 27:X.stopPropagation();B();break;case 37:X.stopPropagation();P(-1);break;case 39:X.stopPropagation(),P(1)}};let ka,sa=[Q.href],Fa=0,O=1,Ba=!1;D=m('<div id="TB_window"></div>');M=m('<div id="TB_controls"></div>');document.body.appendChild(D);document.body.appendChild(M);const qa=new Image;S||window.addEventListener("resize",
257t=xa);if(V!=""){sa=[];ka=[];S=document.getElementsByClassName("thickbox");for(let X=0;X<S.length;X++){let ra=S[X];if(ra.getAttribute("data-g")===V){let ta=ra.href;sa.indexOf(ta)===-1&&(ka.push(ra),sa.push(ta))}}Fa=sa.indexOf(Q.href)}else ka=[Q];qa.id="TB_Image";qa.addEventListener("load",function(){Ba=!0;M.innerHTML=`<a href="javascript:" id="TB_prev"${Fa>0?"":' class="invisible"'}></a>`+`<div>${Fa+1}/${sa.length}</div>`+`<a href="javascript:" id="TB_next"${Fa<sa.length-1?"":' class="invisible"'}></a>`+
258'<a href="javascript:" id="TB_ZoomIn"></a><a href="javascript:" id="TB_ZoomOut"></a><a href="javascript:" id="TB_ImageOff"></a>';const [X,,ra,ta,la,Ra]=M.children;X.addEventListener("click",function(){P(-1);return!1});ra.addEventListener("click",function(){P(1);return!1});Ra.addEventListener("click",B);ta.addEventListener("click",function(){Ca(O+.5);return!1});la.addEventListener("click",function(){Ca(O-.5);return!1});D.appendChild(qa);xa();let Sa=!1,N=!0,ea=[],ha=[];$(D).on("dblclick",function(){Ca(O<
2591.01?2:1)}).on("mousewheel",function(ca){Ca(O+ca.deltaY*.1)}).on("touchstart",function(ca){Sa=!0;ea=g(ca.touches);ha.length!=ca.touches.length&&(ha=ea);N=ca.touches.length==1}).on("touchend",function(ca){ha=[];N=!ca.touches.length}
259).on("touchmove",function(ca){if(ha.length===ca.touches.length)switch(ca.touches.length){case 1:if(O>1.01){let [ma,oa]=ha[0];var L=oa-ca.touches[0].clientY;D.scrollLeft+=ma-ca.touches[0].clientX;D.scrollTop+=L}else if(N){L=ea[0][0]-ca.touches[0].clientX;let ma=Math.min(window.innerWidth,
260window.innerHeight)/4;L<-ma&&P(-1);L>ma&&P(1)}break;case 2:Ca(O+(c(g(ca.touches))-c(ha))*.01)}ha=g(ca.touches);return!1}).on("mousemove",function(ca){if(!Sa){let L=this.getBoundingClientRect(),ma=ca.clientY-L.top,oa=L.width,La=L.height;this.scrollLeft=(ca.clientX-L.left)/oa*(qa.width-oa);this.scrollTop=ma/La*(qa.height-La)}});document.onkeydown=f});qa.src=ya}document.body.style.overflow="hidden";const E=m('<div id="TB_overlay"></div>');document.body.appendChild(E);E.addEventListener("click",B);let D,
261M;v(y,A,x,!1)}let t=null;$(document).on("click",".thickbox",function(){n(this,this.href,this.getAttribute("data-g")||"");this.blur();return!1})});let Wb,Na=JSON.parse((Wb=sessionStorage.getItem("profileInfo"))!=null?Wb:"{}");(()=>{function c(){t=setTimeout(()=>{n.style.removeProperty("display")},100)}function g(){clearTimeout(t)}const m=document.querySelector(".header-category-link"),n=document.querySelector(".-_d");let t;m.addEventListener("mouseenter",()=>{g();n.style.display="block"});m.addEventListener("mouseleave",
262c);n.addEventListener("mouseenter",g);n.addEventListener("mouseleave",c)})();(()=>{const c=function(g){function m(){clearTimeout(n);n=null;g()}let n=null,t=!1;this.trigger=function(){t||n===null&&(n=setTimeout(m,100))};this.prevent=function(){t||(t=!0,setTimeout(function(){t=!1},100));n!==null&&(clearTimeout(n),n=null)}};document.querySelectorAll(".search-box").forEach(g=>{const m=(g||document).querySelector(".-z8"),n=new c(()=>{m.classList.remove("open");document.body.classList.remove("bubble-opened")});
263let t=!1,y=!1;const A=(g||document).querySelector(".search-input");A.addEventListener("focus",()=>{n.prevent();m.classList.add("open")});A.addEventListener("blur",n.trigger);A.addEventListener("input",()=>{function x(){const B=A.value;t?y=!0:(t=!0,y=!1,B!=""?vb("inc/php/scripts/Search.php",{q:B},v=>{m.innerHTML=v;m.classList.add("has-data");document.body.classList.add("bubble-opened");setTimeout(function(){t=!1;y&&x()},300)}):(m.innerHTML="",m.classList.remove("has-data"),document.body.classList.remove("bubble-opened"),
264t=!1,setTimeout(function(){t=!1;y&&x()},300)))}x()});m.addEventListener("mousedown",n.prevent);document.addEventListener("mousedown",n.trigger)})})();Object.assign(ja.fn,{addToCookbook:function(c){Ta({url:"inc/php/scripts/Cookbook.Add.php",data:{id_recipe:c},result:g=>{g===!0?this.classList.add("on"):g===!1&&this.classList.remove("on")}})},bubble:function(c){Ua.open(c!=null?this.parentNode.querySelector(c):this.nextElementSibling,this)},call:c=>{Ta({url:`inc/php/scripts/${c}.php`})},clearAnswering:()=>
265{const c=document.querySelector(".answering");c.classList.add("blind");c.querySelector("input").value=0},commentAnswer:function(c,g){if(c!=null){const m=document.querySelector(".answering");m.classList.remove("blind");m.querySelector(".username").innerHTML=g;m.querySelector("input").value=c;Sb(m);m.nextElementSibling.focus()}else c=document.querySelector(".answering"),c.classList.add("blind"),c.querySelector("input").value=0},commentVote:c=>{Ta({url:"inc/php/scripts/Recipe.Comment.Vote.php",data:{id_comment:c}})},
266instructionMark:function(){if(ja.event.target.closest("a"))return!0;this.classList.toggle("on")},login:()=>{Ma.open({url:"inc/php/scripts/Login.Popup.php"})},loginFB:()=>{function c(){FB.login(g=>{g.authResponse&&Ta({url:"inc/php/scripts/Login.Facebook.php",data:{token:g.authResponse.accessToken}})},{scope:"public_profile,email"})}window.fbAsyncInit=()=>{FB.init({appId:"1479693568980049",xfbml:!0,autoLogAppEvents:!0,version:"v15.0"});c()};window.FB?c():function(g,m,n){var t=g.getElementsByTagName(m)[0];
267g.getElementById(n)||(g=g.createElement(m),g.id=n,g.crossorigin="anonymouse",g.src="//connect.facebook.net/sk_SK/sdk.js",t.parentNode.insertBefore(g,t))}(document,"script","facebook-jssdk")},menuToggle:function(){const c=document.querySelector(".main-menu");(c.$open=!c.$open)?(c.style.display="block",this.classList.remove("off"),this.classList.add("on")):(c.style.display="",this.classList.add("off"),this.classList.remove("on"))},print:()=>{print()},recipeTopOrder:function(c){location.href=`${c}/${this.value}`},
268recipeAdd:()=>{Ma.open({url:"inc/php/scripts/Unavailable.Popup.php"})},recommend:function(c){Ta({url:"inc/php/scripts/Recommend.php",data:{id_recipe:c},result:g=>{this.classList.add("on")}})},register:()=>{Ma.close();Ma.open({url:"inc/php/scripts/Register.Popup.php"})},resetRequest:()=>{Ma.close();Ma.open({url:"inc/php/scripts/ResetRequest.Popup.php"})},share:c=>{switch(+c){case 0:c="https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(location.href);window.open(c,"share","width=600, height=400, scrollbars=no");
269window.dataLayer&&dataLayer.push({event:"share-facebook"});break;case 1:c="fb-messenger://share?link="+encodeURIComponent(location.href);location.href=c;break;case 2:c="whatsapp://send?text="+encodeURIComponent(location.href);location.href=c;break;case 3:c="https://www.pinterest.com/pin/create/button/?url="+encodeURIComponent(location.href),window.open(c,"share","width=600, height=400, scrollbars=no")}},search:()=>{const c=document.querySelector(".search-field");if(c.style.display==="flex")c.$blur();
270else{c.style.display="flex";const g=(c||document).querySelector("input");g.focus();c.$blur=m=>{m&&(m.target.closest(".search-field")||m.classList.contains("search"))||(g.removeEventListener("blur",c.$blur),c.style.display="")};document.addEventListener("mousedown",c.$blur)}},sort:function(){let c=location.href.split("?")[0];this.value>0&&(c+=`?order=${this.value}`);location.href=c},scrollTo:c=>{Sb(document.querySelector(c))},setProfileInfo:c=>{sessionStorage.setItem("profileInfo",c);Na=JSON.parse(c)},
271textMore:function(){const c=this.parentNode;c.classList.add("blind");c.nextElementSibling.classList.remove("blind")},userPhotoAdd:c=>{Ma.open({url:"inc/php/scripts/Recipe.Photo.Popup.php",method:"post",enctype:"application/json",data:{id_recipe:c}})}});ja.onContent.attach(c=>{(c||document).querySelectorAll(".fw-select").forEach(g=>{db(g)});$(".x-uploader-fe",c).each(function(){function g(E){switch(v){case "image":typeof E==="str
271ing"&&(E={path:E});var D=E.path?E.path:`tmp/${E.id}`;D=$('<div class="x-uploader-item">'+
272`<div class="image" style="background-image: url(${D})">`+'<a href="javascript:" class="remove" x:fn="attachmentDelete"></a>\n\t\t\t\t\t\t\t\t</div>'+`<input type="hidden" name="${B}[]" x:type="object" />`+"</div>");D.find("input").val(JSON.stringify(E))}y.append(D).removeClass("empty").addClass("not-empty")}function m(){y.empty().removeClass("not-empty").addClass("empty");t.hasClass("button-uploader")&&x.text("Nahrát soubor")}let n=new Lb(this),t=$(this),y=t.find(".files,.images"),A=t.find(".note"),
273x=A.find(".text"),B=this.getAttribute("x:uploader:name")||"attachment",v=this.getAttribute("x:uploader:type")||"file";this.getAttribute("x:uploader:template");n.onProgress=function(E,D){x.text(`Nahráno ${D}`);A.removeClass("blind")};n.onUpload=function(E,D){D.uploaded=!0;g(D)};n.onFinish=function(E){t.hasClass("button-uploader")?x.text(`${y.children().length} soubor(ů)`):A.addClass("blind")};n.onReset=function(){m()};ja.fn.attachmentDelete=function(){let E=$(this).closest(".files,.images");$(this).closest(".x-uploader-item").remove();
274E.children().length||E.removeClass("not-empty").addClass("empty")};this.$api={clear:function(){m()}};ib.create(t,B,function(E,D){m();for(E=0;E<D.length;E++)g(D[E])});t.addClass("x-autoarray").attr("x:autoarray:name",B);y.addClass("empty")})});window.checkFBLoginState=()=>{FB.getLoginStatus(c=>{ub("inc/php/facebook-login.php?token="+c.authResponse.accessToken,g=>{window.parent.location.href=g;window.parent.location.reload()})})};bb(document.querySelector("#toast"));Na.cookbook&&document.querySelectorAll(".-_o").forEach(c=>
275{const g=+c.getAttribute("data-id");Na.cookbook.indexOf(g)>-1&&c.classList.add("on")});document.querySelectorAll(".x-mousedrag").forEach(c=>{c.scrollLeft=0;let g=c.previousElementSibling;g&&!g.classList.contains("left")&&(g=null);c.addEventListener("dragstart",m=>m.preventDefault());c.addEventListener("mousedown",m=>{let n=!1;var t=c.scrollLeft,y=m.clientX;c.style.cursor="grabbing";c.style.userSelect="none";const A=v=>{v=v.clientX-y;c.scrollLeft=t-v;n=Math.abs(v)>4},x=v=>{document.removeEventListener("mousemove",
276A);document.removeEventListener("mouseup",x);setTimeout(()=>c.removeEventListener("click",B,!0));c.style.cursor="grab";c.style.removeProperty("user-select")},B=v=>{n&&v.preventDefault()};document.addEventListener("mousemove",A);document.addEventListener("mouseup",x);c.addEventListener("click",B,!0)});g&&c.addEventListener("scroll",()=>{g.classList.toggle("blind",c.scrollLeft<=0)})});(()=>{const c=document.querySelector(".-a0");if(c){const g=(c||document).querySelectorAll("video");let m=!1;function n(){g.forEach(y=>
277{y.play()});m=!0}function t(){if(!m){const y=c.getBoundingClientRect();y.y+y.height>0&&y.y-window.innerHeight<0&&n()}}window.addEventListener("scroll",t);t()}})();ja.run()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.