(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t
}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Ct=/^(?:checkbox|radio)$/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle);
u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=un(e,t),Pt.detach()),Gt[e]=n),n}function un(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}x.each(["height","width"],function(e,n){x.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(x.css(e,"display"))?x.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x.support.opacity||(x.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=x.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===x.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,n){return n?x.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,n){x.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?x(e).position()[n]+"px":r):t}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!x.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||x.css(e,"display"))},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(x.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Ct.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),x.param=function(e,n){var r,i=[],o=function(e,t){t=x.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var mn,yn,vn=x.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Cn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=x.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=o.href}catch(Ln){yn=a.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(T)||[];if(x.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(l){var u;return o[l]=!0,x.each(e[l]||[],function(e,l){var c=l(n,r,i);return"string"!=typeof c||a||o[c]?a?!(u=c):t:(n.dataTypes.unshift(c),s(c),!1)}),u}return s(n.dataTypes[0])||!o["*"]&&s("*")}function _n(e,n){var r,i,o=x.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&x.extend(!0,e,r),e}x.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,l=e.indexOf(" ");return l>=0&&(i=e.slice(l,e.length),e=e.slice(0,l)),x.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&x.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand (o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);
function t_onReady(t){"loading"!=document.readyState?t():document.addEventListener("DOMContentLoaded",t)}function t_addClass(t,e){document.body.classList?t.classList.add(e):t.className+=(t.className?" ":"")+e}function t_removeClass(t,e){document.body.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")}function t_removeEl(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function t_outerWidth(t){var e=getComputedStyle(t),n=e.width,o=e.marginLeft,i=e.marginRight;return"auto"===n&&(n=0),"auto"===o&&(o=0),"auto"===i&&(i=0),n=parseInt(n)+parseInt(o)+parseInt(i)}var version,version;(window.isSearchBot=!1,/Bot/i.test(navigator.userAgent)&&(window.isSearchBot=!0),window.isMobile=!1,window.$isMobile=!1,/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(window.isMobile=!0,window.$isMobile=!0),window.isTablet=/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/i.test(navigator.userAgent),window.isiOS=!1,/iPhone|iPad|iPod/i.test(navigator.userAgent)&&(window.isiOS=!0),window.isiOSChrome=!!navigator.userAgent.match("CriOS"),window.isFirefox=/firefox/i.test(navigator.userAgent),window.isOpera=!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,window.isiOSVersion="",window.isiOS)&&(null!==(version=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))&&(window.isiOSVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]));(window.isSafari=!1,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&(window.isSafari=!0),window.isIE=!!document.documentMode,window.isSafariVersion="",window.isSafari)&&(null!==(version=navigator.appVersion.match(/Version\/(\d+)\.(\d+)\.?(\d+)? Safari/))&&(window.isSafariVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]));function t_throttle(t,e,n){var o,i;return e||(e=250),function(){var r=n||this,a=+new Date,l=arguments;o&&a<o+e?(clearTimeout(i),i=setTimeout((function(){o=a,t.apply(r,l)}),e)):(o=a,t.apply(r,l))}}function t_onFuncLoad(t,e,n){var o=15e3,i=t_checkIsEditMode(),r=function t(){return!i||i&&t_checkEditorIsReady()},a=function t(e){return"function"==typeof window[e]||"object"==typeof window[e]};if(a(t)&&r())e();else{var l=Date.now(),d=new Error(t+" is undefined"),s=function t(){throw d};setTimeout((function i(){var d=Date.now();a(t)&&r()?e():("complete"===document.readyState&&d-l>o&&!a(t)&&s(),setTimeout(i,n||100))}))}}function t_checkIsEditMode(){var t=!1,e=document.getElementById("allrecords");if(!e)return!1;var n=e.getAttribute("data-tilda-mode");return!!(t=n&&"edit"===n)}function t_checkEditorIsReady(){var t=!1;if(!t_checkIsEditMode())return!1;var e=document.body.getAttribute("data-ready-status");return!!(t=e&&"ready"===e)}function t_scrollBarWidthCompensator__setObject(){window.scrollBarWidthCompensator={};var t=window.scrollBarWidthCompensator;t.isInited=!1,t.scrollBarWidth=Math.abs(window.innerWidth-document.documentElement.clientWidth),t.delay=0,t.cancelTimeout=null;var e=["t450","t282__container","t282__container__bg_opened","t282__menu__container","t830m","t830__panel","t451m","t204__menu","tn-atom__sbs-anim-wrapper"],n=document.querySelectorAll("*");n=Array.prototype.filter.call(n,(function(t){return!t.closest(".t1093")&&!e.some((function(e){return t.classList.contains(e)}))})),t.fixedElements=[],Array.prototype.forEach.call(n,(function(e){if(!e.classList.contains("t975")){var n=window.getComputedStyle(e),o=n.getPropertyValue("position"),i=n.getPropertyValue("width"),r=n.getPropertyValue("height"),a="100%"===i||i===window.innerWidth+"px"||i===window.innerWidth-t.scrollBarWidth+"px"||"100vw"===i,l="100%"===r||r===window.innerHeight+"px"||r===window.innerHeight-t.scrollBarWidth+"px"||"auto"===r||"100vh"===r;("fixed"===o||"absolute"===o&&a&&!l)&&t.fixedElements.push({el:e,computedStyle:n})}}))}function t_scrollBarWidthCompensator__init(){if(!window.isMobile){window.scrollBarWidthCompensator||t_scrollBarWidthCompensator__setObject();var t=window.scrollBarWidthCompensator;if(t.scrollBarWidth=Math.abs(window.innerWidth-document.documentElement.clientWidth),t.cancelTimeout&&(window.clearTimeout(t.cancelTimeout),t.cancelTimeout=null),!t.isInited&&t.scrollBarWidth){t.isInited=!0;var e=window.getComputedStyle(document.body).getPropertyValue("padding-right");e=parseInt(e.replace("px",""),10);var n=document.body.style.paddingRight;n&&document.body.setAttribute("data-tilda-initial-padding-right",n),document.body.style.paddingRight=t.scrollBarWidth+e+"px",document.body.style.height="100vh",document.body.style.minHeight="100vh",document.body.style.overflow="hidden";var o=[];Array.prototype.forEach.call(t.fixedElements,(function(e){var n=e.el;if(document.body.contains(n)&&!n.classList.contains("t975")&&!n.classList.contains("t975")){var i=e.computedStyle,r=i.getPropertyValue("position");if("fixed"===r||"absolute"===r){var a=i.getPropertyValue("transition-duration");a.indexOf("ms")+1?(a=parseInt(a.replace("ms",""),10),o.push(a)):a.indexOf("s")+1&&(a=1e3*parseFloat(a.replace("s","")),o.push(a));var l=i.getPropertyValue("right");l=parseInt(l.replace("px",""),10);var d=i.getPropertyValue("width"),s=i.getPropertyValue("height"),c=n.style.right;c&&n.setAttribute("data-tilda-initial-right",c);var u=n.style.width;u&&n.setAttribute("data-tilda-initial-width",u);var m="100%"===d||d===window.innerWidth+"px"||d===window.innerWidth-t.scrollBarWidth+"px"||"100vw"===d,p="100%"===s||s===window.innerHeight+"px"||s===window.innerHeight-t.scrollBarWidth+"px"||"auto"===s||"100vh"===s;!l&&0!==l||"auto"===n.style.right||"absolute"===r||m?m&&!p&&(n.style.width="calc(100vw - "+t.scrollBarWidth+"px)"):n.style.right=t.scrollBarWidth+l+"px"}}})),o.length&&(t.delay=Math.max.apply(null,o))}}}function t_scrollBarWidthCompensator__cancel(){var t=window.scrollBarWidthCompensator;t&&t.isInited&&(t.isInited=!1,t.delay=0,document.body.hasAttribute("data-tilda-initial-padding-right")?(document.body.style.paddingRight=document.body.getAttribute("data-tilda-initial-padding-right"),document.body.removeAttribute("data-tilda-initial-padding-right")):document.body.style.removeProperty("padding-right"),document.body.style.removeProperty("height"),document.body.style.removeProperty("min-height"),document.body.style.removeProperty("overflow"),Array.prototype.forEach.call(t.fixedElements,(function(t){var e=t.el,n=e.classList.contains("tn-atom__sticky-wrapper")||e.classList.contains("tn-atom__sbs-anim-wrapper");e.hasAttribute("data-tilda-initial-right")?(e.style.right=e.getAttribute("data-tilda-initial-right"),e.removeAttribute("data-tilda-initial-right")):e.style.removeProperty("right"),e.hasAttribute("data-tilda-initial-width")?(e.style.width=e.getAttribute("data-tilda-initial-width"),e.removeAttribute("data-tilda-initial-width")):(e.style.removeProperty("width"),n&&(e.style.width="inherit"))})))}function t_triggerEvent(t,e){var n;document.createEvent?(n=document.createEvent("HTMLEvents")).initEvent(e,!0,!1):document.createEventObject&&((n=document.createEventObject()).eventType=e),n.eventName=e,t.dispatchEvent?t.dispatchEvent(n):t.fireEvent?t.fireEvent("on"+n.eventType,n):t[e]?t[e]():t["on"+e]&&t["on"+e]()}function t_getRootZone(){var t=document.getElementById("allrecords"),e;return t&&t.getAttribute("data-tilda-root-zone")||"com"}function t_modifyRootZone(t){return t&&t.includes("static.tildacdn.com")?t.replace("static.tildacdn.com","static.tildacdn."+t_getRootZone()):t}function t_loadJsFile(t,e,n){void 0===n&&(n=0);var o=3,i=1e3,r=t_modifyRootZone(t);if(document.querySelector('script[src^="'+r+'"]'))e&&e();else{var a=document.createElement("script");a.type="text/javascript",a.src=r,e&&a.addEventListener("load",(function(){e()})),a.addEventListener("error",(function(t){if(!(n<=3)){var o=t.message||"<no error message>";throw new Error("Failed to load "+r+" script: "+o,{cause:t})}setTimeout((function(){a.remove(),t_loadJsFile(r,e,n+1),console.warn("Retrying to load "+r+". Retry: "+(n+1))}),n*i)})),document.head.appendChild(a)}}function t_loadCSSFile(t,e,n){void 0===n&&(n=0);var o=3,i=1e3,r=t_modifyRootZone(t);if(document.querySelector('link[href^="'+r+'"]'))e&&e();else{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.media="all",a.href=r,a.crossOrigin="anonymous",e&&a.addEventListener("load",e),a.addEventListener("error",(function(t){if(!(n<=3)){var o=t.message||"<no error message>";throw new Error("Failed to load "+r+" style: "+o,{cause:t})}setTimeout((function(){a.remove(),t_loadCSSFile(r,e,n+1),console.warn("Retrying to load "+r+". Retry: "+(n+1))}),n*i)})),document.head.appendChild(a)}}function t_scrollTo(t,e){if(t){var n=e||{},o=n.useNativeScrollTo,i=n.duration,r=n.behavior,a=void 0===r?"instant":r,l=n.offset,d=void 0===l?0:l,s=Math.max(parseInt(t.getBoundingClientRect().top+window.scrollY-d,10),0);o||"instant"===a?window.scrollTo({left:0,top:s,behavior:a}):t_smoothScrollTo(s,i)}}function t_smoothScrollTo(t,e){void 0===e&&(e=500);var n=document.body,o=window.scrollY||window.pageYOffset,i=t-o,r=performance.now();function a(t){return Math.pow(t,2)}function l(){var d=performance.now(),s=Math.min((d-r)/e,1),c=a(s);window.scrollTo(0,o+i*c),s<1?requestAnimationFrame(l):(n.removeAttribute("data-scroll"),n.removeAttribute("data-scrollable"),window.scrollTo(0,t))}n.setAttribute("data-scroll","true"),n.setAttribute("data-scrollable","true"),requestAnimationFrame(l)}window.browserLang=(window.navigator.userLanguage||window.navigator.language).toUpperCase().slice(0,2),window.tildaBrowserLang=window.browserLang,t_onReady((function(){var t=document.getElementById("allrecords");if(t)var e=t.getAttribute("data-tilda-project-lang");e&&(window.browserLang=e)})),t_onReady((function(){var t=window.navigator.userAgent,e=-1!==t.indexOf("Instagram"),n=-1!==t.indexOf("FBAV"),o=-1!==t.indexOf("YaSearchBrowser"),i=-1!==t.indexOf("SamsungBrowser"),r=-1!==t.indexOf("DuckDuckGo"),a;if(-1!==t.indexOf("Android")&&(n||e||o||i||r)){var l=document.createElement("p");l.style.lineHeight="100px",l.style.padding="0",l.style.margin="0",l.style.height="auto",l.style.position="absolute",l.style.opacity="0.001",l.innerText="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",document.body.appendChild(l);var d=100/l.getBoundingClientRect().height;l.parentNode.removeChild(l),d<.98&&document.body.insertAdjacentHTML("beforeend",'<style>.t396 [data-elem-type="text"] .tn-atom {zoom: '+100*d+"%;}</style>")}window.isiOS&&!window.MSStream&&(document.body.style.setProperty("-webkit-text-size-adjust","100%"),document.body.style.setProperty("text-size-adjust","100%"))})),t_onReady((function(){setTimeout((function(){var t=document.querySelector("html"),e=document.querySelector(".t-tildalabel"),n=t.offsetHeight;if(document.body&&(n=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.body.clientHeight,t.offsetHeight)),(document.getElementById("tildacopy")||e)&&e.querySelectorAll("div"))n+70>window.innerHeight&&e&&e.setAttribute("style","display: block !important; visibility: visible !important; position: relative !important; width: 100% !important; pointer-events: all !important; opacity: 1 !important; margin: 0 !important; z-index: 1 !important");else{for(var o=document.body.childNodes,i=[],r=0;r<o.length;r++){var a=o[r];8===a.nodeType&&i.push(a)}for(var r=0;r<i.length;r++)-1!==i[r].nodeValue.indexOf("'t remove this l")&&document.getElementById("allrecords").insertAdjacentHTML("afterend",'<div class="t-tildalabel t-tildalabel-free" style="display: block !important; visibility: visible !important; position: relative !important; width: 100% !important; pointer-events: all !important; opacity: 1 !important; margin: 0 !important; z-index: 99900 !important"><div class="t-tildalabel-free__main"><a href="https://tilda.cc" target="_blank" style="padding-bottom:12px; display: block;"><img style="width:40px;" src="https://static.tildacdn.'+t_getRootZone()+'/img/tildacopy.png"></a><div style="padding-bottom: 15px;">This site was made on <a href="https://tilda.cc" target="_blank" style="text-decoration: none; color:inherit;">Tilda — a website builder</a> that helps to&nbsp;create a&nbsp;website without any code</div><a href="https://tilda.cc/registration/" target="_blank" style="display: inline-block; padding: 10px 20px; font-size: 13px; border-radius: 50px; background-color: #fa8669; color: #fff; text-decoration: none;">Create a website</a></div><div class="t-tildalabel-free__links-wr"><a class="t-tildalabel-free__txt-link" href="https://help'+("RU"===window.browserLang?"-ru":"")+'.tilda.cc/white-label" target="_blank">'+("RU"===window.browserLang?"Как удалить этот лейбл":"How to remove this block")+"?</a></div></div>")}}),500)})),t_onReady((function(){var t=document.getElementById("allrecords");if(!window.isMobile&&t&&"yes"!==t.getAttribute("data-blocks-animationoff")&&!1===window.isSearchBot){for(var e=document.querySelectorAll(".r"),n=0;n<e.length;n++){var o,i=(o=e[n]).getAttribute("style");i&&-1!==i.indexOf("background-color")&&o.setAttribute("data-animationappear","off")}for(var r=Array.prototype.slice.call(e).filter((function(t){return!t.getAttribute("data-animationappear")&&!t.getAttribute("data-screen-min")&&!t.getAttribute("data-screen-max")})),n=0;n<r.length;n++){var o,a=(o=r[n]).getBoundingClientRect().top+window.pageYOffset,l=window.pageYOffset+window.innerHeight+300;t_addClass(o,a>1e3&&a>l?"r_hidden":"r_showed"),t_addClass(o,"r_anim")}if(r.length){function d(){for(var t=r.length-1;t>=0;t--){var e=r[t],n,o=0;e.getBoundingClientRect().top+window.pageYOffset<(o=e.offsetHeight<=100?window.pageYOffset+window.innerHeight:window.pageYOffset+window.innerHeight-100)&&(t_removeClass(e,"r_hidden"),t_addClass(e,"r_showed"),(r=Array.prototype.slice.call(r)).splice(t,1))}}var s=document.querySelectorAll('[data-record-type="400"], [data-parenttplid="400"]');if(s.length>0)var c=0,u=0,m=setInterval((function(){300===(u+=1)&&clearInterval(m);for(var t=0;t<s.length;t++){var e;"yes"===s[t].getAttribute("data-hiding-completed")&&(c+=1)}c===s.length&&(d(),clearInterval(m))}),100);window.addEventListener("scroll",t_throttle((function(){d()}),200)),window.addEventListener("tildatab:change",t_throttle((function(){d()}),200)),setTimeout((function(){d()}))}}var p=document.querySelector("html"),h=document.body;"none"===p.style.display&&(p.style.display="block");var w=document.querySelector(".t-tildalabel"),f;(f=h?Math.max(h.scrollHeight,h.offsetHeight,h.clientHeight,p.offsetHeight):p.offsetHeight)+70<window.innerHeight?w&&(w.style.display="none"):w&&w.setAttribute("style","display: block !important")})),function(){function t(){window.winWidth=window.innerWidth,window.winHeight=window.innerHeight}function e(){var t=window.isMobile?document.documentElement.clientWidth:window.innerWidth,e=document.querySelectorAll(".r[data-screen-max], .r[data-screen-min]"),n,o,i;-1!==navigator.userAgent.indexOf("Instagram")&&(t=screen.width);for(var r=0;r<e.length;r++){var a=e[r],l=a.id.replace("rec","");if("yes"===a.getAttribute("data-connect-with-tab")||document.querySelector('[data-popup-rec-ids="'+l+'"]'))return;i=getComputedStyle(a).display,(n=a.getAttribute("data-screen-max"))||(n=1e4),(o=a.getAttribute("data-screen-min"))||(o=0),n=parseInt(n),(o=parseInt(o))<=n&&(t<=n&&t>o?"block"!==i&&(a.style.display="block"):"none"!==i&&(a.style.display="none"))}}t_onReady((function(){t(),e(),window.addEventListener("resize",t_throttle((function(){t()}),200)),window.addEventListener("resize",t_throttle((function(){e()}),200))}))}(),function(){var t=-1!==navigator.userAgent.indexOf("Instagram");function e(){for(var t=document.querySelectorAll(".t-cover__carrier"),e=0,n=0;n<t.length;n++){var o,i;if((i=(o=t[n]).style).height.indexOf("vh")>-1){e=parseInt(i.height,10)/100;var r=document.createElement("div");r.id="tempDiv",r.style.cssText="position:absolute;top:0;left:0;width:100%;height:100vh;visibility:hidden;",document.body.appendChild(r);var a=document.getElementById("tempDiv"),l=parseInt(getComputedStyle(a).height.replace("px",""));t_removeEl(a);var d=Math.round(l*e)+"px",s=o.closest(".t-cover");if(s){var c=s.querySelector(".t-cover__filter"),u=s.querySelector(".t-cover__wrapper");s.style.height=d,c&&(c.style.height=d),u&&(u.style.height=d)}i.height=d}}var m=document.querySelectorAll("[data-height-correct-vh]"),p=window.innerHeight;e=0;for(var n=0;n<m.length;n++){var o,i;(i=(o=m[n]).style).height.indexOf("vh")>-1&&(e=parseInt(i.height)/100,d=p*(isNaN(e)?1:e)+"px",i.height=d)}}function n(){var e=t?screen.width:window.innerWidth;window.isMobile&&!t&&(e=document.documentElement.clientWidth);for(var n=document.querySelectorAll('.r:not([data-record-type="396"], [data-record-type="1003"], [data-parenttplid="396"], [data-parenttplid="1003"])'),o=[],i=0;i<n.length;i++){var r=n[i],a=getComputedStyle(r);"none"!==a.display&&"hidden"!==a.visibility&&"0"!==a.opacity&&o.push(r)}for(var l=0;l<o.length;l++)for(var d=o[l],s=d.querySelectorAll('div:not([data-auto-correct-mobile-width="false"]):not(.tn-elem):not(.tn-atom):not(.tn-atom__sbs-anim-wrapper):not(.tn-atom__prx-wrapper):not(.tn-atom__videoiframe):not(.tn-atom__sticky-wrapper):not(.t-catalog__relevants__container):not(.t-slds__items-wrapper):not(.js-product-controls-wrapper):not(.t-store__relevants__container):not(.t-slds__items-wrapper):not(.js-product-controls-wrapper):not(.js-product-edition-option):not(.t-product__option-variants)'),c=0;c<s.length;c++){var u=s[c];d.style.wordBreak="";var m=t_outerWidth(u);if(m>e){if("yes"===u.getAttribute("[data-customstyle]")&&"false"===u.parentNode.getAttribute("[data-auto-correct-mobile-width]"))return;console.log("Block not optimized for mobile width. Block width:"+m+" Block id:"+d.getAttribute("id")),console.log(u),d.style.overflow="auto",d.style.wordBreak=m-3>e?"break-word":""}}}function o(t){for(var e=document.querySelectorAll('.t-text:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-name:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-title:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-descr:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-heading:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-text-impact:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-subtitle:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-uptitle:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"])'),n=0;n<e.length;n++){var o=e[n],i=o.getAttribute("style");if(i){var r="rem"===o.getAttribute("data-auto-correct-font-size"),a;if(document.documentElement.clientWidth>t)a=(a=i.replace("lineheight","line-height")).replace("fontsize","font-size"),o.setAttribute("style",a);else{if(-1===i.indexOf("font-size"))continue;if(parseInt(getComputedStyle(o).fontSize.replace("px",""))<26)continue;a=i.replace("line-height","lineheight"),a=r?a.replace(/font-size.*px;/gi,"font-size: 1.6rem;"):a.replace("font-size","fontsize"),o.setAttribute("style",a)}}}}(window.isMobile||window.parent.isPagePreview)&&(t_onReady((function(){setTimeout(e,400)})),window.addEventListener("load",(function(){setTimeout(e,400)})),window.innerWidth<480||window.isMobile&&document.documentElement.clientWidth<480||t&&screen.width<480?(t_onReady((function(){for(var t=document.querySelectorAll('[data-customstyle="yes"]'),e=document.querySelectorAll("[field] span, [field] strong, [field] em, [field] a"),n=0;n<t.length;n++){var i=t[n];parseInt(getComputedStyle(i).fontSize.replace("px",""))>26&&(i.style.fontSize=null,i.style.lineHeight=null)}for(var n=0;n<e.length;n++){var i=e[n];parseInt(getComputedStyle(i).fontSize.replace("px",""))>26&&(i.style.fontSize=null)}o(480),window.addEventListener("orientationchange",(function(){setTimeout((function(){o(480)}),500)}))})),window.addEventListener("load",n),window.addEventListener("orientationchange",(function(){setTimeout((function(){n()}),500)}))):(window.innerWidth<900||window.isMobile&&document.documentElement.clientWidth<900||t&&screen.width<900)&&t_onReady((function(){for(var t=document.querySelectorAll('[data-customstyle="yes"]'),e=document.querySelectorAll("[field] span, [field] strong, [field] em, [field] a"),n=0;n<t.length;n++){var o=t[n];parseInt(getComputedStyle(o).fontSize.replace("px",""))>30&&(o.style.fontSize=null,o.style.lineHeight=null)}for(var n=0;n<e.length;n++){var o=e[n];parseInt(getComputedStyle(o).fontSize.replace("px",""))>30&&(o.style.fontSize=null)}for(var i=document.querySelectorAll('.t-text:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-name:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-title:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-descr:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-heading:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-text-impact:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-subtitle:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-uptitle:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"])'),n=0;n<i.length;n++){var o,r=(o=i[n]).getAttribute("style");if(r&&r.indexOf("font-size")>-1&&parseInt(getComputedStyle(o).fontSize.replace("px",""))>30)if("rem"===o.getAttribute("data-auto-correct-font-size")){var a=r.replace(/font-size.*px;/gi,"font-size: 1.6rem;").replace("line-height","lineheight");o.setAttribute("style",a)}else{var a=r.replace("font-size","fontsize").replace("line-height","lineheight");o.setAttribute("style",a)}}})))}(),t_onReady((function(){setTimeout((function(){for(var t=document.querySelectorAll('a[href^="http"][target="_blank"]'),e=0;e<t.length;e++){var n=t[e],o=n.getAttribute("rel")||"";""===o?n.setAttribute("rel","noopener"):-1===o.indexOf("noopener")&&n.setAttribute("rel",o+" noopener")}}),2500)})),function(t,e){t.onerror=function(e,n,o,i,r){"object"!=typeof t.t_jserrors&&(t.t_jserrors=[]),t.t_jserrors.push({message:e,filename:n,lineno:o,colno:i,error:r})}}(window,Math),t_onReady((function(){document.body.addEventListener("popupShowed",t_scrollBarWidthCompensator__init),document.body.addEventListener("popupHidden",(function(){var t=window.scrollBarWidthCompensator;t&&(t.cancelTimeout&&(window.clearTimeout(t.cancelTimeout),t.cancelTimeout=null),t.cancelTimeout=window.setTimeout((function(){t.cancelTimeout=null,t_scrollBarWidthCompensator__cancel()}),Math.min(300,t.delay)))}))})),window.scrollBarWidthCompensator;
window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0}
window.isSafari=!1;if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){window.isSafari=!0}
window.isSafariVersion='';if(window.isSafari){var version=(navigator.appVersion).match(/Version\/(\d+)\.(\d+)\.?(\d+)? Safari/);if(version!==null){window.isSafariVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]}}
function t1093__init(recID){var rec=document.getElementById('rec'+recID);if(!rec)return;var popup=rec.querySelector('.t-popup');if(!popup)return;t1093__processGlobalObj();t1093__updateGlobalObj('popupList',popup,'array');t1093__processPopupClassList(popup);var popupContainer=popup.querySelector('.t-popup__container');if(!popupContainer)return;var elementIds=popup.getAttribute('data-popup-rec-ids');if(!elementIds)return;elementIds=elementIds.split(',');elementIds.forEach(function(elementId){var pairedRecord=t1093__getBlockById(elementId);if(!pairedRecord)return;popupContainer.appendChild(pairedRecord);t1093__setPointerEventsToZeroBlock(pairedRecord);var blockId=pairedRecord.id&&pairedRecord.id.replace('rec','');t_onFuncLoad('t396_init',function(){t396_init(blockId)})});var currentEvent=t1093__getGlobalObjValue('isMobile')?'orientationchange':'resize';window.removeEventListener(currentEvent,t1093__resizeAllPopups);window.addEventListener(currentEvent,t1093__resizeAllPopups);t1093__processScrollablePopup(popup)}
function t1093__getBlockById(elementId){var pairedRecord=document.getElementById('rec'+elementId)||document.getElementById(elementId);if(!pairedRecord){var hookLink=document.querySelector('a[name="'+elementId+'"]');pairedRecord=hookLink&&hookLink.nextElementSibling}
if(!pairedRecord)return null;var recordType=pairedRecord.getAttribute('data-parenttplid')||pairedRecord.getAttribute('data-record-type');if(recordType!=='396'&&recordType!=='121')return null;return pairedRecord}
function t1093__processGlobalObj(){if(typeof window.t1093_popupList==='undefined')window.t1093_popupList=[];if(typeof window.t1093_resizeTimer==='undefined')window.t1093_resizeTimer=0;if(typeof window.t1093_hoverTimer==='undefined')window.t1093_hoverTimer=0;if(typeof window.t1093_activeHoverHook==='undefined')window.t1093_activeHoverHook='';if(typeof window.t1093_isMobile==='undefined'){window.t1093_isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||('ontouchend' in document&&navigator.userAgent.indexOf('AppleWebKit')!==-1)}
if(typeof window.t1093_windowWidth==='undefined')window.t1093_windowWidth=t1093__getWindowWidth();if(typeof window.t1093_isMobRes==='undefined')window.t1093_isMobRes=window.t1093_windowWidth<980;if(typeof window.t1093_isSafari==='undefined'){window.t1093_isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}}
function t1093__processScrollablePopup(popup){if(!popup)return;var popupContainer=popup.querySelector('.t-popup__container');if(!popupContainer)return;popup.style.display='block';var popupHeight=popupContainer.offsetHeight;popup.style.display='';var windowHeight=window.t1093_isMobile?document.documentElement.clientHeight:window.innerHeight;if(popupHeight>windowHeight){popupContainer.classList.add('t-popup__container-static')}}
function t1093__updateGlobalObj(key,value,type){switch(type){case 'array':window['t1093_'+key].push(value);break;case 'boolean':window['t1093_'+key]=value;break;case 'string':window['t1093_'+key]=value||'';break;case 'timeout':if(window['t1093_'+key])clearTimeout(window['t1093_'+key]);window['t1093_'+key]=value;break}}
function t1093__getGlobalObjValue(key){return window['t1093_'+key]}
function t1093__getWindowWidth(){return t1093__getGlobalObjValue('isMobile')?document.documentElement.clientWidth:window.innerWidth}
function t1093__resizeAllPopups(){var newTimeout=setTimeout(function(){var currentWindowWidth=t1093__getWindowWidth();var isMobile=currentWindowWidth<980;var isMobileResolution=t1093__getGlobalObjValue('isMobRes');if(isMobile===isMobileResolution)return;t1093__updateGlobalObj('isMobRes',isMobile,'boolean');t1093__getGlobalObjValue('popupList').forEach(function(popup){t1093__processPopupClassList(popup)});t1093__updateGlobalObj('resizeTimer',0,'timeout')},500);t1093__updateGlobalObj('resizeTimer',newTimeout,'timeout')}
function t1093__processPopupClassList(popup){t1093__clearPopupClassList(popup);var popupClassList=[];var safariDesktopClassName='t-popup-safari';var isMobileResolution=t1093__getGlobalObjValue('isMobRes');var isSafari=t1093__getGlobalObjValue('isSafari');if(!isMobileResolution&&isSafari&&!popup.classList.contains(safariDesktopClassName)){popupClassList.push(safariDesktopClassName)}
var animAttr='data-anim';var mobileAttr=animAttr+'-mobile';var attrValue=popup.getAttribute(animAttr);if(isMobileResolution){var mobileAttrValue=popup.getAttribute(mobileAttr);if(mobileAttrValue)attrValue=mobileAttrValue}
if((isMobileResolution&&attrValue!=='empty')||(!isMobileResolution&&attrValue)){popupClassList.push('t-popup-anim-'+attrValue);popupClassList.push('t-popup-transition')}
popupClassList.forEach(function(className){popup.classList.add(className)})}
function t1093__clearPopupClassList(popup){popup.classList.remove('t-popup-transition');for(var key=0;key<popup.classList.length;key++){var className=popup.classList[key];if(className.indexOf('t-popup-anim-')!==-1)popup.classList.remove(className)}}
function t1093__setPointerEventsToZeroBlock(rec){var artBoard=rec.querySelector('.t396__artboard');if(!artBoard)return;var abFilter=artBoard.querySelector('.t396__filter');var artBoardStyle=getComputedStyle(artBoard);var abFilterBG=abFilter?getComputedStyle(abFilter).backgroundImage:'';var hasBG=abFilterBG!=='none'||artBoardStyle.backgroundColor!=='rgba(0, 0, 0, 0)'||artBoardStyle.backgroundImage!=='none';if(hasBG)artBoard.classList.add('t396__artboard_pointer-events-auto')}
function t1093__initPopup(recID){var rec=document.getElementById('rec'+recID);if(!rec)return;rec.setAttribute('data-animationappear','off');rec.style.opacity='1';var popup=rec.querySelector('.t-popup');var hook=t1093__getHookFromPopup(popup);if(!popup||!hook)return;t1093__generatePopupObj();t1093__updatePopupObjValue('hookList',hook);var isMobile=t1093__getGlobalObjValue('isMobile');var isHoverTrigger=t1093__getBooleanPopupAttribute(popup,'hover-trigger')&&!isMobile;if(isHoverTrigger){t1093__updatePopupObjValue('hoverHookList',hook);popup.classList.add('t-popup_hover-trigger')}
t1093__setListenersForPopup(popup,isHoverTrigger);t1093__setListenersForDocument(isHoverTrigger);t_onFuncLoad('t_popup__addClassOnTriggerButton',function(){t_popup__addClassOnTriggerButton(document,hook)});t_onFuncLoad('t_popup__addAttributesForAccessibility',function(){t_popup__addAttributesForAccessibility(hook)});if(!isHoverTrigger)t1093__setAnalyticsListeners(popup);if(t1093__getBooleanPopupAttribute(popup,'open-on-page-load')){t1093__onReady(function(){setTimeout(function(){t1093__showCurrentPopup(popup)},1000)})}}
function t1093__onReady(callback){document.readyState!=='loading'?callback():document.addEventListener('DOMContentLoaded',callback)}
function t1093__generatePopupObj(){if(window.tPopupObj)return;window.tPopupObj={hookList:[],hoverHookList:[],openPopUpList:[],}}
function t1093__updatePopupObjValue(key,value){if(!window.tPopupObj||!window.tPopupObj[key])return;if(window.tPopupObj[key].indexOf(value)===-1)window.tPopupObj[key].push(value)}
function t1093__getPopupObjValue(key){return window.tPopupObj[key]}
function t1093__showOnHover(e){var popup=e.target.closest('.t-popup');if(!popup)e.preventDefault();if(popup&&!popup.classList.contains('t-popup_show'))return;t1093__updateGlobalObj('hoverTimer',0,'timeout');var targetHook=t1093__getHookOnHover(e);var activeHoverHook=t1093__getGlobalObjValue('activeHoverHook');if(targetHook&&targetHook===activeHoverHook)return;if(!popup)t1093__closePopup(!0,-1,!1);t1093__updateGlobalObj('activeHoverHook',targetHook,'string');t1093__processCurrentPopupOnShow(targetHook)}
function t1093__hideOnHover(e){var targetHook=t1093__getHookOnHover(e);var newTimeout=setTimeout(function(){t1093__updateGlobalObj('activeHoverHook','','string');var openPopupList=t1093__getPopupObjValue('openPopUpList');var openPopupIndex=openPopupList.indexOf(targetHook);if(openPopupIndex!==-1){t1093__closePopup(!1,openPopupIndex,!1)}
t1093__updateGlobalObj('hoverTimer',0,'timeout')},300);t1093__updateGlobalObj('hoverTimer',newTimeout,'timeout')}
function t1093__getHookOnHover(e){var target=e.currentTarget;var targetHref=target.getAttribute('href');var popup=target.closest('.t-popup');var hookList=t1093__getPopupObjValue('hoverHookList');if(hookList.length&&hookList.indexOf(targetHref)!==-1)return targetHref;return t1093__getHookFromPopup(popup)||targetHref||''}
function t1093__showOnClick(e){var hookList=t1093__getPopupObjValue('hookList');if(!hookList.length)return;var target=e.target;var hookListSelector=t1093__createSelectorFromHookList(!1);var targetLink=target.closest(hookListSelector);if(!targetLink)return;e.preventDefault();var targetHook=targetLink.getAttribute('href')||'';var openPopupList=t1093__getPopupObjValue('openPopUpList');var openPopupIndex=openPopupList.indexOf(targetHook);if(openPopupIndex!==-1&&e.isTrusted){t1093__closePopup(!1,openPopupIndex,!1);return}
var lastPopupIndex=openPopupList.length-1;var lastOpenedPopupHook=openPopupList[lastPopupIndex];if(lastOpenedPopupHook){var lastOpenedPopup=t1093__getPopupByHook(lastOpenedPopupHook);var shouldClosePopup=lastOpenedPopup&&lastOpenedPopup.getAttribute('data-popup-close-on-open-another')==='true';if(shouldClosePopup){t1093__closePopup(!1,lastPopupIndex,!1)}}
t1093__processCurrentPopupOnShow(targetHook)}
function t1093__getPopupByHook(hookName){if(!hookName)return null;return document.querySelector('[data-tooltip-hook="'+hookName+'"]')}
function t1093__getHookFromPopup(popup){return(popup&&popup.getAttribute('data-tooltip-hook'))||''}
function t1093__processCurrentPopupOnShow(targetHook){if(!targetHook)return;var currentPopup=t1093__getPopupByHook(targetHook);var currentPopupRec=currentPopup&&currentPopup.closest('.r');t1093__showCurrentPopup(currentPopup);if(currentPopupRec){t_onFuncLoad('t_popup__resizePopup',function(){t_popup__resizePopup(currentPopupRec.id.replace('rec',''))})}
var artBoard=currentPopup.querySelector('.t396__artboard');var artBoardOverflow=artBoard?getComputedStyle(artBoard).overflow:'hidden';var isScrollablePopup=currentPopup.querySelector('.t-popup__container-static');var isPopupHasDisabledBG=t1093__getBooleanPopupAttribute(currentPopup,'disabled-bg');var isPopupHasLockScroll=t1093__getBooleanPopupAttribute(currentPopup,'disable-lock-scroll');var isArtBoardScrollable=['auto','scroll'].some(overflow=>artBoardOverflow.includes(overflow));if(isArtBoardScrollable){currentPopup.classList.add('t-popup-scrollable-artboard')}
if(isScrollablePopup){if(isPopupHasLockScroll)t1093__updateBodyOnAction('add');if(isPopupHasDisabledBG)currentPopup.classList.remove('t-popup-disabled-bg')}else if(isPopupHasDisabledBG)currentPopup.classList.add('t-popup-disabled-bg')}
function t1093__getBooleanPopupAttribute(popup,attrName){return popup.getAttribute('data-popup-'+attrName)==='y'}
function t1093__createSelectorFromHookList(isHoverTrigger){var hookListName=isHoverTrigger?'hoverHookList':'hookList';var hookList=t1093__getPopupObjValue(hookListName);var selectorList=hookList.map(function(hook){return 'a[href="'+hook+'"]'});return selectorList.join(', ')}
function t1093__setListenersForPopup(popup,isHoverTrigger){if(!popup)return;if(isHoverTrigger){t1093__processEventsOnHover(popup)}else{popup.removeEventListener('click',t1093__closePopupOnClick);popup.addEventListener('click',t1093__closePopupOnClick)}
popup.removeEventListener('click',t1093__closePopupOnCloseButton);popup.addEventListener('click',t1093__closePopupOnCloseButton)}
function t1093__setListenersForDocument(isHoverTrigger){if(isHoverTrigger){var selectorList=t1093__createSelectorFromHookList(isHoverTrigger);var hookLinks=Array.prototype.slice.call(document.querySelectorAll(selectorList));hookLinks.forEach(function(link){t1093__processEventsOnHover(link)})}else{document.removeEventListener('click',t1093__showOnClick);document.addEventListener('click',t1093__showOnClick)}
document.removeEventListener('click',t1093__processCloseLink);document.removeEventListener('keydown',t1093__closeOnESC);document.addEventListener('keydown',t1093__closeOnESC);document.addEventListener('click',t1093__processCloseLink)}
function t1093__setAnalyticsListeners(popup){var popupAnalytics=popup.getAttribute('data-track-popup');if(!popupAnalytics)return;var currentHook=t1093__getHookFromPopup(popup);document.addEventListener('click',function(e){var hookLink=e.target.closest('a[href="'+currentHook+'"]');if(!hookLink)return;if(window.Tilda)Tilda.sendEventToStatistics(popupAnalytics,currentHook)})}
function t1093__processEventsOnHover(elem){elem.removeEventListener('mouseover',t1093__showOnHover);elem.removeEventListener('mouseout',t1093__hideOnHover);elem.addEventListener('mouseover',t1093__showOnHover);elem.addEventListener('mouseout',t1093__hideOnHover)}
function t1093__closeOnESC(e){if(e.keyCode===27){e.preventDefault();t1093__closePopup(!1,-1,!0)}}
function t1093__processCloseLink(e){var isCloseLink=e.target.closest('a[href="#closepopup"]');var isAllCloseLink=e.target.closest('a[href="#closeallpopup"]');if(!isCloseLink&&!isAllCloseLink)return;e.preventDefault();t1093__closePopup(Boolean(isAllCloseLink),-1,!0)}
function t1093__closeOnLink(e){var openPopupList=t1093__getPopupObjValue('openPopUpList');if(!openPopupList.length)return;var popupLink=e.target.closest('a[href*="#"]');if(!popupLink)return;var exceptionSelectors=['.t978__tm-link','.t966__tm-link','.t794__tm-link','a[href="#closepopup"]','a[href="#closeallpopup"]',];var isLinkHasSubmenu=exceptionSelectors.some(function(selector){return popupLink.closest(selector)});if(!isLinkHasSubmenu)t1093__closePopup(!0,-1,!0)}
function t1093__closePopupOnClick(e){var isPopupBackground=!e.target.closest('.t-popup__container');if(!isPopupBackground)return;var popup=e.target.closest('.t-popup');var currentPopupHook=t1093__getHookFromPopup(popup);var openPopupList=t1093__getPopupObjValue('openPopUpList');var currentPopupIndex=openPopupList.indexOf(currentPopupHook);t1093__closePopup(!1,currentPopupIndex,!0)}
function t1093__closePopupOnCloseButton(e){var isCloseButton=e.target.closest('.t-popup__close');if(!isCloseButton)return;t1093__closePopup(!1,-1,!0)}
function t1093__showCurrentPopup(popup){if(!popup)return;if(popup.closeTimerID)clearTimeout(popup.closeTimerID);var rec=popup.closest('.r');var windowWidth=window.innerWidth;var screenMin=rec.getAttribute('data-screen-min');var screenMax=rec.getAttribute('data-screen-max');if(screenMin&&windowWidth<parseInt(screenMin,10))return;if(screenMax&&windowWidth>parseInt(screenMax,10))return;var popupHook=t1093__getHookFromPopup(popup);t1093__updatePopupObjValue('openPopUpList',popupHook);document.removeEventListener('click',t1093__closeOnLink);document.addEventListener('click',t1093__closeOnLink);popup.style.display='block';var popupBG=popup.nextElementSibling;if(popupBG)popupBG.classList.add('t-popup__bg-active');var allRecords=document.getElementById('allrecords');var isLazy=allRecords?allRecords.getAttribute('data-tilda-lazy')==='yes':!1;if(window.lazy==='y'||isLazy){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}
var artBoard=popup.querySelector('.t396__artboard');if(artBoard&&!popup.resizeProcessed){var blockID=artBoard.getAttribute('data-artboard-recid')||'';t_onFuncLoad('t396_doResize',function(){t396_doResize(blockID);popup.resizeProcessed=!0})}
var galleryElems=Array.prototype.slice.call(popup.querySelectorAll('[data-elem-type="gallery"]'));if(galleryElems.length){t_onFuncLoad('t_slds_updateSlider',function(){galleryElems.forEach(function(element){t_slds_updateSlider([element])})})}
var formElems=Array.prototype.slice.call(popup.querySelectorAll('[data-elem-type="form"]'));formElems.forEach(function(elem){var form=elem.querySelector('.t-form');if(!form)return;form.removeAttribute('data-success-popup')});setTimeout(function(){popup.focus();var popupContainer=popup.querySelector('.t-popup__container');if(popupContainer)popupContainer.classList.add('t-popup__container-animated');popup.classList.add('t-popup_show');t_onFuncLoad('t_popup__trapFocus',function(){t_popup__trapFocus(popup)})},50);var popupTimer=t1093__getTimer(popup,'open');var needFadeOut=t1093__getResponsiveAttr(popup,'anim-close')==='fadein';if(needFadeOut){popup.openTimerID=setTimeout(function(){popup.classList.add('t-popup-fadeout');popup.openTimerID=0},popupTimer)}
if((popupTimer&&window.lazy==='y')||isLazy){setTimeout(function(){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})},popupTimer)}
if(!t1093__getBooleanPopupAttribute(popup,'disable-lock-scroll')){t1093__updateBodyOnAction('add')}}
function t1093__closePopup(closeAll,index,removeAnimOnCloseFromHook){var openPopupList=t1093__getPopupObjValue('openPopUpList');if(!openPopupList.length)return;var popupList=t1093__processClosedPopupList(closeAll,index);if(!popupList.length)return;openPopupList=t1093__getPopupObjValue('openPopUpList');var isLastPopup=openPopupList.length===0;popupList.forEach(function(popup){if(isLastPopup)t1093__updateBodyOnAction('remove');popup.classList.remove('t-popup_show');if(popup.openTimerID)clearTimeout(popup.openTimerID);t1093__removeAnimationOnClose(popup);if(removeAnimOnCloseFromHook)t1093__removeAnimFromHookLinkOnClose(popup);t_onFuncLoad('t_popup__addFocusOnTriggerButton',function(){t_popup__addFocusOnTriggerButton()});var popupCloseTimer=t1093__getTimer(popup,'close');popup.closeTimerID=setTimeout(function(){if(!popup.classList.contains('t-popup_show'))popup.style.display='none';var popupBG=popup.nextElementSibling;if(popupBG)popupBG.classList.remove('t-popup__bg-active');popup.classList.remove('t-popup-fadeout');t1093__pauseAllVideo(popup);popup.closeTimerID=0},popupCloseTimer)})}
function t1093__updateBodyOnAction(action){var triggeredEvent=action==='add'?'popupShowed':'popupHidden';var body=document.body;if(typeof t_triggerEvent==='function')t_triggerEvent(body,triggeredEvent);body.classList[action]('t-body_popupshowed')}
function t1093__pauseAllVideo(popup){if(!popup)return;var videoElems=Array.prototype.slice.call(popup.querySelectorAll('[data-elem-type="video"], [data-elem-type="gallery"]'));videoElems.forEach(function(element){var videoElem=element.querySelector('video, iframe');if(!videoElem)return;if(videoElem.tagName==='VIDEO')videoElem.pause();var videoSRC=videoElem.src;if(videoElem.tagName!=='IFRAME'||!videoSRC)return;if(videoSRC.indexOf('&enablejsapi=1')!==-1){videoElem.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}','*')}
if(videoSRC.indexOf('rutube')!==-1){videoElem.contentWindow.postMessage('{"type":"player:pause","data":"{}"}','*')}
if(videoSRC.indexOf('vk')!==-1){t_loadJsFile('https://vkvideo.ru/js/api/videoplayer.js',function(){const VKPlayer=VK.VideoPlayer(videoElem);VKPlayer.pause()})}
if(videoSRC.indexOf('vimeo')!==-1&&videoSRC.indexOf('&api=1')!==-1){videoElem.contentWindow.postMessage('{"method":"pause","value":"true"}','*')}
if(videoSRC.indexOf('kinescope')!==-1){t_onFuncLoad('t_loadJsFile',()=>{t_loadJsFile('https://player.kinescope.io/latest/iframe.player.js')});t_onFuncLoad('Kinescope',()=>{const id=videoElem.id;const url=videoElem.src;Kinescope.IframePlayer.create(id,{url}).then(KinescopePlayer=>{KinescopePlayer.pause()})})}})}
function t1093__getTimer(popup,action){var isMobileResolution=t1093__getGlobalObjValue('isMobRes');if(typeof isMobileResolution==='undefined')return 50;var isZeroTimer=t1093__getResponsiveAttr(popup,'anim-close')==='empty';if((isZeroTimer&&action==='close')||!popup.classList.contains('t-popup-transition'))return 0;var popupTimer=popup.getAttribute('data-anim-timeout');if(popupTimer)popupTimer*=1000;return popupTimer||0}
function t1093__getResponsiveAttr(popup,attr){var isMobileResolution=t1093__getGlobalObjValue('isMobRes');if(typeof isMobileResolution==='undefined')return null;var currentAttr='data-'+attr;if(isMobileResolution){var attrMob=popup.getAttribute(currentAttr+'-mobile');if(attrMob)return attrMob}
return popup.getAttribute(currentAttr)}
function t1093__removeAnimFromHookLinkOnClose(popup){var popupHook=t1093__getHookFromPopup(popup);var popupInitLinks=Array.prototype.slice.call(document.querySelectorAll('a[href="'+popupHook+'"]'));popupInitLinks.forEach(function(link){var animEl=link.closest('.js-sbs-anim-trigger_click');if(!animEl)return;var animElID=animEl.getAttribute('data-elem-id');var animElArtBoard=animEl.closest('.t396__artboard');var alreadyAnimatedEls=Array.prototype.slice.call(animElArtBoard.querySelectorAll('.t-sbs-anim_started'));alreadyAnimatedEls.forEach(function(animEl){var triggersList=animEl.getAttribute('data-animate-sbs-trgels');if(!triggersList||triggersList.indexOf(animElID)===-1)return;animEl.classList.remove('t-sbs-anim_started')})})}
function t1093__processClosedPopupList(closeAll,index){var openPopupList=t1093__getPopupObjValue('openPopUpList');var hookList=closeAll?openPopupList:openPopupList.slice(index);var popupSelectors=hookList.map(function(hook){return '[data-tooltip-hook="'+hook+'"]'});popupSelectors=popupSelectors.join(', ');t1093__clearPopupObjKey('openPopUpList',closeAll,index);return Array.prototype.slice.call(document.querySelectorAll(popupSelectors))}
function t1093__removeAnimationOnClose(popup){var popupAnimElems=Array.prototype.slice.call(popup.querySelectorAll('.t-animate_started'));var windowWidth=(window.tn&&window.tn.curResolution)||window.innerWidth;popupAnimElems.forEach(function(elem){if(windowWidth<1200&&elem.getAttribute('data-animate-mobile')!=='y')return;elem.classList.remove('t-animate_started');elem.classList.add('t-animate_wait')})}
function t1093__clearPopupObjKey(key,emptyAll,index){if(!window.tPopupObj||!window.tPopupObj[key])return;if(emptyAll){window.tPopupObj[key]=[]}else if(index===-1){window.tPopupObj[key].pop()}else{window.tPopupObj[key]=window.tPopupObj[key].slice(0,index)}}
function t868_initPopup(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;rec.setAttribute('data-animationappear','off');rec.style.opacity='1';var popup=rec.querySelector('.t-popup');if(!popup)return;var hook=popup.getAttribute('data-tooltip-hook');if(!hook)return;var analitics=popup.getAttribute('data-track-popup');var customCodeHTML=t868__readCustomCode(rec);var recBlocks=document.querySelectorAll('.r');for(var i=0;i<recBlocks.length;i++){recBlocks[i].addEventListener('click',function(event){var target=event.target;var href=target.closest('a[href$="'+hook+'"]')?target:!1;if(!href)return;event.preventDefault();t868_showPopup(rec,customCodeHTML);t_onFuncLoad('t_popup__resizePopup',function(){t_popup__resizePopup(recid)});if(hook.substring(0,7)==='#popup:'&&analitics&&window.Tilda){var virtTitle=hook;virtTitle=virtTitle.substring(7);Tilda.sendEventToStatistics(analitics,virtTitle)}})}
if(!popup.getAttribute('data-popup-inited')&&'MutationObserver' in window){popup.setAttribute('data-popup-inited','yes');var stores=document.querySelectorAll('body .t-store');Array.prototype.forEach.call(stores,function(store){new MutationObserver(function(mutationsList){for(var mutation in mutationsList){var event=mutationsList[mutation];if(event.type==='attributes'){if(event.target.className.indexOf('t-popup_show')!==-1){popup.style.zIndex='99999999';t868_initPopup(recid);}}}}).observe(store,{attributes:!0,attributeFilter:['class'],subtree:!0,})})}}
function t868__readCustomCode(rec){var codeWrap=rec.querySelector('.t868 .t868__code-wrap');if(!codeWrap)return;var customCode=codeWrap.innerHTML;return customCode}
function t868_showPopup(rec){var popup=rec.querySelector('.t-popup');if(!popup)return;var popupContainer=popup.querySelector('.t-popup__container');if(!popupContainer)return;var codeWrap=popup.querySelector('.t868__code-wrap');if(!codeWrap)return;var windowWidth=window.innerWidth;var screenMin=rec.getAttribute('data-screen-min');var screenMax=rec.getAttribute('data-screen-max');if(screenMin&&windowWidth<parseInt(screenMin,10))return;if(screenMax&&windowWidth>parseInt(screenMax,10))return;popup.style.display='block';codeWrap.style.display='block';t868_setHeight(rec);setTimeout(function(){popupContainer.classList.add('t-popup__container-animated');popup.classList.add('t-popup_show')},100);if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupShowed');document.body.classList.add('t-body_popupshowed');popup.addEventListener('click',function(event){var container=event.target.closest('.t-popup__container');if(!container)t868_closePopup(rec)});var closeButton=rec.querySelector('.t-popup__close');if(closeButton){closeButton.addEventListener('click',function(){t868_closePopup(rec)})}
var buttons=rec.querySelectorAll('a[href*="#"]');Array.prototype.forEach.call(buttons,function(button){button.addEventListener('click',function(){var url=button.getAttribute('href');if(url.indexOf('#order')!==-1){var popupContainer=rec.querySelector('.t-popup__container');setTimeout(function(){while(popupContainer.firstChild){popupContainer.removeChild(popupContainer.firstChild)}},600)}
if(!url||url.substring(0,7)!=='#price:'){t868_closePopup(rec);if(!url||url.substring(0,7)==='#popup:'){setTimeout(function(){if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupShowed');document.body.classList.add('t-body_popupshowed')},300)}}})});document.addEventListener('keydown',function(event){if(event.keyCode===27){t868_closePopup(rec)}})}
function t868_closePopup(rec){var popup=rec.querySelector('.t-popup');var codeWrap=rec.querySelector('.t868 .t868__code-wrap');if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');document.body.classList.remove('t-body_popupshowed');popup.classList.remove('t-popup_show');setTimeout(function(){if(!popup.classList.contains('.t-popup_show')){popup.style.display='none';if(codeWrap){codeWrap.style.display='none'}}},300)}
function t868_setHeight(rec){var videoCarier=rec.querySelector('.t868__video-carier');if(!videoCarier)return;var paddingLeft=parseInt(videoCarier.style.paddingLeft,10)||0;var paddingRight=parseInt(videoCarier.style.paddingRight,10)||0;var height=(videoCarier.clientWidth-(paddingLeft+paddingRight))/(16/9);videoCarier.style.height=height;Array.prototype.forEach.call(videoCarier.closest,function(parent){parent.style.height=height})}
if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector}
if(!Element.prototype.closest){Element.prototype.closest=function(s){var el=this;while(el&&el.nodeType===1){if(Element.prototype.matches.call(el,s)){return el}
el=el.parentElement||el.parentNode}
return null}};
function t_lazyload_update(){"undefined"!=typeof lazyload_cover&&lazyload_cover.update(),"undefined"!=typeof lazyload_img&&lazyload_img.update(),"undefined"!=typeof lazyload_bgimg&&lazyload_bgimg.update(),"undefined"!=typeof lazyload_iframe&&lazyload_iframe.update()}function t_lazyload_updateResize_elem(e){if(window.jQuery&&e instanceof jQuery){if(0==e.length)return;e=e.get(0)}if(null!=e){var t=e.tagName;if("IMG"==t)var o=e.getAttribute("src"),n="-/resize/";else if("undefined"!=typeof getComputedStyle){var o=getComputedStyle(e)["background-image"].replace("url(","").replace(")","").replace(/"/gi,""),i;if("contain"==getComputedStyle(e)["background-size"])var n="-/contain/";else var n="-/cover/"}else var n="-/cover/";if(!(null==o||-1===o.indexOf(n)||o.indexOf(".svg")>0||o.indexOf(".gif")>0||o.indexOf(".ico")>0||-1===o.indexOf("thumb.tildacdn.com")||o.indexOf("-/empty/")>0&&o.indexOf("-/resizeb/")>0)){var l=o.indexOf(n)+n.length,a=o.indexOf("/",l);if(l>0&&a>0){var r=o.slice(l,a).split("x"),s=e.clientWidth,c=e.clientHeight;if(s>0&&c>0&&(r[0]>0||r[1]>0)&&(r[0]>0&&s>r[0]||r[1]>0&&c>r[1])&&(r[0]>0&&s-r[0]>100||r[1]>0&&c-r[1]>100)){var d=o.slice(0,l)+(r[0]>0?s:"")+"x"+(r[1]>0?c:"")+o.substring(a);"IMG"==t?e.setAttribute("src",d):e.style.backgroundImage="url('"+d+"')"}}}}}!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.LazyLoad=t()}(window,(function(){function e(){m||(h={elements_selector:"img",container:window,threshold:300,throttle:50,data_src:"original",data_srcset:"original-set",class_loading:"loading",class_loaded:"loaded",skip_invisible:!0,show_while_loading:!0,callback_load:null,callback_error:null,callback_set:null,callback_processed:null,placeholder:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},p=!!window.addEventListener,f=!!window.attachEvent,g=!!document.body.classList,m=!0)}function t(e,t,o){var n;p?e.addEventListener(t,o):f&&(e.attachEvent("on"+t,(n=e,function(){o.call(n,window.event)})),e=null)}function o(e,t,o){p?e.removeEventListener(t,o):f&&e.detachEvent("on"+t,o)}function n(e,t,o){var n,i,l;function a(){return window.innerWidth||n.documentElement.clientWidth||document.body.clientWidth}function r(){return window.innerHeight||n.documentElement.clientHeight||document.body.clientHeight}function s(e){return e.getBoundingClientRect().top+i-n.documentElement.clientTop}function c(e){return e.getBoundingClientRect().left+l-n.documentElement.clientLeft}function d(){var n;return(n=t===window?r()+i:s(t)+t.offsetHeight)<=s(e)-o}function u(){var n;return(n=t===window?a()+window.pageXOffset:c(t)+a())<=c(e)-o}function _(){var o,n=1200;return(o=t===window?i:s(t))>=s(e)+n+e.offsetHeight}function h(){var n;return(n=t===window?l:c(t))>=c(e)+o+e.offsetWidth}return n=e.ownerDocument,i=window.pageYOffset||n.body.scrollTop,l=window.pageXOffset||n.body.scrollLeft,"fixed"===e.getAttribute("data-content-cover-parallax")&&e.closest&&e.closest(".t-cover__container")&&(e=e.closest(".t-cover__container")),!(d()||_()||u()||h())}function i(){var e;return(new Date).getTime()}function l(e,t){var o={},n;for(n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);for(n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);return o}function a(e){var t;try{t=Array.prototype.slice.call(e)}catch(l){var o=[],n,i=e.length;for(n=0;n<i;n++)o.push(e[n]);t=o}return t.forEach((function(e){e.isSkipByPosition=null===e.offsetParent&&0===r(e,".t396__carrier-wrapper").length&&"fixed"!==e.getAttribute("data-content-cover-parallax"),e.isNotUnderScreenRange=0===r(e,".t-rec[data-screen-max]").length&&0===r(e,".t-rec[data-screen-min]").length})),t}function r(e,t){for(var o=[];(e=e.parentNode)&&e!==document;)t&&!e.matches(t)||o.unshift(e);return o}function s(e,t){g?e.classList.add(t):e.className+=(e.className?" ":"")+t}function c(e,t){g?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")}function d(e,t,o,n){var i=t.getAttribute("data-"+n),l=t.getAttribute("data-"+o),a=e.tagName;return"IMG"===a?(l&&e.setAttribute("srcset",l),void(i&&e.setAttribute("src",i))):"IFRAME"===a?void(i&&e.setAttribute("src",i)):void(e.style.backgroundImage="url("+i+")")}function u(e,t){return function(){return e.apply(t,arguments)}}function _(o){e(),this._settings=l(h,o),this._queryOriginNode=this._settings.container===window?document:this._settings.container,this._previousLoopTime=0,this._loopTimeout=null,this._handleScrollFn=u(this.handleScroll,this),t(window,"resize",this._handleScrollFn),this.update()}window.t_lazyload_setSources=d;var h,p,f,g,m=!1;return _.prototype._showOnLoad=function(e){function n(){null!==l&&(l.callback_load&&l.callback_load(e),d(e,e,l.data_srcset,l.data_src),l.callback_set&&l.callback_set(e),c(e,l.class_loading),s(e,l.class_loaded),o(i,"load",n))}var i,l=this._settings;e.getAttribute("src")||e.setAttribute("src",l.placeholder),t(i=document.createElement("img"),"load",n),t(i,"error",(function(){c(e,l.class_loading),l.callback_error&&l.callback_error(e)})),s(e,l.class_loading),d(i,e,l.data_srcset,l.data_src)},_.prototype._showOnAppear=function(e){function n(){null!==i&&(i.callback_load&&i.callback_load(e),c(e,i.class_loading),s(e,i.class_loaded),o(e,"load",n))}var i=this._settings;("IMG"===e.tagName||"IFRAME"===e.tagName)&&(t(e,"load",n),t(e,"error",(function(){o(e,"load",n),c(e,i.class_loading),i.callback_error&&i.callback_error(e)})),s(e,i.class_loading)),d(e,e,i.data_srcset,i.data_src),i.callback_set&&i.callback_set(e)},_.prototype._loopThroughElements=function(){var e,t,o=this._settings,i=this._elements,l=i?i.length:0,a=[];for(e=0;l>e;e++)t=i[e],o.skip_invisible&&t.isSkipByPosition||n(t,o.container,o.threshold)&&(o.show_while_loading?this._showOnAppear(t):this._showOnLoad(t),a.push(e),t.wasProcessed=!0);for(;a.length>0;)i.splice(a.pop(),1),o.callback_processed&&o.callback_processed(i.length);0===l&&this._stopScrollHandler()},_.prototype._purgeElements=function(){var e,t,o=this._elements,n=o.length,i=[];for(e=0;n>e;e++)(t=o[e]).wasProcessed&&i.push(e);for(;i.length>0;)o.splice(i.pop(),1)},_.prototype._startScrollHandler=function(){this._isHandlingScroll||(this._isHandlingScroll=!0,t(this._settings.container,"scroll",this._handleScrollFn))},_.prototype._stopScrollHandler=function(){this._isHandlingScroll&&(this._isHandlingScroll=!1,o(this._settings.container,"scroll",this._handleScrollFn))},_.prototype.handleScroll=function(){var e,t,o;this._settings&&(t=i(),0!==(o=this._settings.throttle)?0>=(e=o-(t-this._previousLoopTime))||e>o?(this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._previousLoopTime=t,this._loopThroughElements()):this._loopTimeout||(this._loopTimeout=setTimeout(u((function(){this._previousLoopTime=i(),this._loopTimeout=null,this._loopThroughElements()}),this),e)):this._loopThroughElements())},_.prototype.update=function(){this._elements=a(this._queryOriginNode.querySelectorAll(this._settings.elements_selector)),this._purgeElements(),this._loopThroughElements(),this._startScrollHandler()},_.prototype.destroy=function(){o(window,"resize",this._handleScrollFn),this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._stopScrollHandler(),this._elements=null,this._queryOriginNode=null,this._settings=null},_})),window.lazy="y",t_onReady((function(){setTimeout((function(){lazyload_cover=new LazyLoad({elements_selector:".t-cover__carrier",show_while_loading:!1,data_src:"content-cover-bg",placeholder:"",threshold:700})}),100),setTimeout((function(){if(lazyload_img=new LazyLoad({elements_selector:".t-img",threshold:800}),lazyload_bgimg=new LazyLoad({elements_selector:".t-bgimg",show_while_loading:!1,placeholder:"",threshold:800}),lazyload_iframe=new LazyLoad({elements_selector:".t-iframe"}),document.addEventListener("slide.bs.carousel",(function(e){setTimeout((function(){lazyload_cover.update(),lazyload_img.update(),lazyload_bgimg.update()}),500)})),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&!document.body.classList){var e=document.createElement("div");e.classList.add("t-mbfix"),document.body.appendChild(e);var t=document.querySelector(".t-mbfix");setTimeout((function(){t.classList.add("t-mbfix_hide")}),50),setTimeout((function(){null!==t.parentNode&&t.parentNode.removeChild(t)}),1e3)}}),500)}));
function t_animate__init(){t_animate__checkAnimationAvailability()&&(t_animate__generateStyles(),t_animate__wrapTextWithOpacity(),t_animate__addNoHoverClassToBtns(),t_animate__preventHorizontalScroll(),document.documentElement.clientWidth>=1200&&t_animate__parseNumberText(),setTimeout((function(){t_animate__startAnimation()}),1500))}function t_animate__checkMobile(t){return t.filter((function(t){var e=t.closest(".t396__elem, .t396__group"),a,n;return!(!e||"y"!==e.getAttribute("data-animate-mobile"))||(t.classList.contains("r")?Array.prototype.forEach.call(t.querySelectorAll(".t-animate"),(function(t){t_animate__removeAnimationClass(t,"")})):t_animate__removeAnimationClass(t,""),!1)}))}function t_animate__removeAnimationClass(t,e){if(t){var a="t-animate";t.classList.remove(a),e&&("string"==typeof e&&(e=[e]),e.forEach((function(e){var n=a+"_"+e;t.classList.remove(n)})))}}function t_animate__preventHorizontalScroll(){var t,e=Array.from(document.querySelectorAll('[data-animate-style="fadeinleft"]')).filter((function(t){return!t.closest(".t396__artboard, .t-cover")&&t.getBoundingClientRect().right>window.innerWidth}));!e.length||window.innerWidth<980||e.forEach((function(t){var e;t.closest(".r").classList.add("t-animate__overflow-x-hidden")}))}function t_animate__checkAnimationAvailability(){var t=document.querySelector(".t-records"),e=t?t.getAttribute("data-blocks-animationoff"):null,a=t?t.getAttribute("data-tilda-mode"):null;if(/Bot/i.test(navigator.userAgent)||"yes"===e||t_animate__checkIE()||"edit"===a){var n=document.querySelectorAll(".t-animate");return Array.prototype.forEach.call(n,(function(t){t_animate__removeAnimationClass(t,"")})),!1}return!0}function t_animate__generateStyles(){var t;if(!!document.querySelector(".t396")){for(var e=t_animate__getBreakpointsArr(),a='.t396 .t-animate[data-animate-style="fadein"],.t396 .t-animate[data-animate-style="fadeinup"],.t396 .t-animate[data-animate-style="fadeindown"],.t396 .t-animate[data-animate-style="fadeinleft"],.t396 .t-animate[data-animate-style="fadeinright"],.t396 .t-animate[data-animate-style="zoomin"],.t396 .t-animate[data-animate-style="zoomout"] {opacity: 0;-webkit-transition-property: opacity, transform;transition-property: opacity, transform;-webkit-transition-duration: 1s;transition-duration: 1s;-webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);-webkit-backface-visibility: hidden;backface-visibility: hidden;}',n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+".t396 .t-animate[data-animate-style-res-"+i.minRes+'="fadein"],.t396 .t-animate[data-animate-style-res-'+i.minRes+'="fadeinup"],.t396 .t-animate[data-animate-style-res-'+i.minRes+'="fadeindown"],.t396 .t-animate[data-animate-style-res-'+i.minRes+'="fadeinleft"],.t396 .t-animate[data-animate-style-res-'+i.minRes+'="fadeinright"],.t396 .t-animate[data-animate-style-res-'+i.minRes+'="zoomin"],.t396 .t-animate[data-animate-style-res-'+i.minRes+'="zoomout"] {opacity: 0;-webkit-transition-property: opacity, transform;transition-property: opacity, transform;-webkit-transition-duration: 1s;transition-duration: 1s;-webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);-webkit-backface-visibility: hidden;backface-visibility: hidden;}}')}a+='.t396 .t-title.t-animate {-webkit-transition-duration: 1.2s;transition-duration: 1.2s;}.t396 .t-descr.t-animate,.t396 .t-uptitle.t-animate,.t396 .t-subtitle.t-animate,.t396 .t-text.t-animate {-webkit-transition-duration: 0.7s;transition-duration: 0.7s;}.t396 .t-item.t-animate {-webkit-transition-duration: 0.5s;transition-duration: 0.5s;}.t396 .t-animate[data-animate-style="fadein"] {opacity: 0;transform: none;}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate[data-animate-style-res-"+i.minRes+'="fadein"] {opacity: 0;transform: none;}}')}a+='.t396 .t-animate_started[data-animate-style="fadein"] {opacity: 1;}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate_started[data-animate-style-res-"+i.minRes+'="fadein"] {opacity: 1;}}')}a+='.t396 .t-animate[data-animate-style="fadeinup"] {-webkit-transform: translate(0, 100px);transform: translate(0, 100px);}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate[data-animate-style-res-"+i.minRes+'="fadeinup"] {-webkit-transform: translate(0, 100px);transform: translate(0, 100px);}}')}a+='.t396 .t-animate_started[data-animate-style="fadeinup"] {opacity: 1;-webkit-transform: none;transform: none;}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate_started[data-animate-style-res-"+i.minRes+'="fadeinup"] {opacity: 1;-webkit-transform: none;transform: none;}}')}a+='.t396 .t-animate[data-animate-style="fadeindown"] {-webkit-transform: translate(0, -100px);transform: translate(0, -100px);}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate[data-animate-style-res-"+i.minRes+'="fadeindown"] {-webkit-transform: translate(0, -100px);transform: translate(0, -100px);}}')}a+='.t396 .t-animate_started[data-animate-style="fadeindown"] {opacity: 1;-webkit-transform: none;transform: none;}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate_started[data-animate-style-res-"+i.minRes+'="fadeindown"] {opacity: 1;-webkit-transform: none;transform: none;}}')}a+='.t396 .t-animate[data-animate-style="fadeinleft"] {-webkit-transform: translate(100px, 0);transform: translate(100px, 0);}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate[data-animate-style-res-"+i.minRes+'="fadeinleft"] {-webkit-transform: translate(100px, 0);transform: translate(100px, 0);}}')}a+='.t396 .t-animate_started[data-animate-style="fadeinleft"] {opacity: 1;-webkit-transform: none;transform: none;}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate_started[data-animate-style-res-"+i.minRes+'="fadeinleft"] {opacity: 1;-webkit-transform: none;transform: none;}}')}a+='.t396 .t-animate[data-animate-style="fadeinright"] {-webkit-transform: translate(-100px, 0);transform: translate(-100px, 0);}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate[data-animate-style-res-"+i.minRes+'="fadeinright"] {-webkit-transform: translate(-100px, 0);transform: translate(-100px, 0);}}')}a+='.t396 .t-animate_started[data-animate-style="fadeinright"] {opacity: 1;-webkit-transform: none;transform: none;}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate_started[data-animate-style-res-"+i.minRes+'="fadeinright"] {opacity: 1;-webkit-transform: none;transform: none;}}')}a+='.t396 .t-animate[data-animate-style="zoomin"] {-webkit-transform: scale(0.9);transform: scale(0.9);}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate[data-animate-style-res-"+i.minRes+'="zoomin"] {-webkit-transform: scale(0.9);transform: scale(0.9);}}')}a+='.t396 .t-animate_started[data-animate-style="zoomin"] {opacity: 1;-webkit-transform: scale(1);transform: scale(1);}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate_started[data-animate-style-res-"+i.minRes+'="zoomin"] {opacity: 1;-webkit-transform: scale(1);transform: scale(1);}}')}a+='.t396 .t-animate[data-animate-style="zoomout"] {-webkit-transform: scale(1.2);transform: scale(1.2);}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate[data-animate-style-res-"+i.minRes+'="zoomout"] {-webkit-transform: scale(1.2);transform: scale(1.2);}}')}a+='.t396 .t-animate_started[data-animate-style="zoomout"] {opacity: 1;-webkit-transform: scale(1);transform: scale(1);}';for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate_started[data-animate-style-res-"+i.minRes+'="zoomout"] {opacity: 1;-webkit-transform: scale(1);transform: scale(1);}}')}a+=".t396 .t-animate_started[data-animate-distance],.t396 .t-animate_started[data-animate-scale]{-webkit-transform: none !important;transform: none !important;}";for(var n=0;n<e.length;n++){var i;(i=t_animate__getMediaQuery(e,n)).isContinue||(a+=i.text+"#allrecords .t396 .t-animate_started[data-animate-distance-res-"+i.minRes+"],#allrecords .t396 .t-animate_started[data-animate-style-res-"+i.minRes+'="zoomout"] {-webkit-transform: none !important;transform: none !important;}}')}var r=document.createElement("style"),o=document.head||document.querySelector("head");r.textContent=a,o.appendChild(r)}}function t_animate__getBreakpointsArr(){var t=[],e=Array.prototype.slice.call(document.querySelectorAll('.r[data-record-type="396"]:not(.t397__off, .t395__off, .t400__off) .t396__artboard, .r[data-parenttplid="396"]:not(.t397__off, .t395__off, .t400__off) .t396__artboard'));return Array.prototype.forEach.call(e,(function(e){if(e.classList.contains("t396__artboard")){var a=e.getAttribute("data-artboard-screens"),n=(a=(a=a?a.split(","):[1200,960,640,480,320]).map((function(t){return parseInt(t,10)}))).filter((function(e){return-1===t.indexOf(e)}));t=t.concat(n)}})),t=t_animate__sortArr(t)}function t_animate__getMediaQuery(t,e){var a="",n=!1,i=t[e+1],r=t[e]-1,o=e===t.length-1,s=e===t.length-2;return o?n=!0:a+=s?"@media screen and (max-width: "+r+"px){":"@media screen and (min-width: "+i+"px) and (max-width: "+r+"px){",{text:a,isContinue:n,minRes:i}}function t_animate__sortArr(t){return t.sort((function(t,e){return e-t}))}function t_animate__startAnimation(){var t=document.querySelectorAll(".r"),e=Array.prototype.filter.call(t,(function(t){return t.querySelector(".t-animate[data-animate-group=yes]")})),a=Array.prototype.filter.call(t,(function(t){return t.querySelector('.t-animate[data-animate-chain="yes"]')})),n=document.querySelectorAll(".t-animate");if(n=Array.prototype.filter.call(n,(function(t){return!("yes"===t.getAttribute("data-animate-group")||"yes"===t.getAttribute("data-animate-chain")||t.getAttribute("observer-ready"))})),window.innerWidth<1200&&(e=t_animate__checkMobile(e),a=t_animate__checkMobile(a),n=t_animate__checkMobile(n)),e.length||n.length||a.length){t_animate__setAnimationState(e,a,n),e=t_animate__hasWaitAnimation(e),n=t_animate__hasWaitAnimation(n),a=t_animate__hasWaitAnimation(a);var i="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)[4-9]/i.test(navigator.userAgent);if("IntersectionObserver"in window&&!i){if(e.length){var r=[];e.forEach((function(t){var e=t.querySelector(".t-animate"),a,n;if("fadeindown"===e.getAttribute("data-animate-style")&&e.closest(".t-cover")){var i=t.querySelector(".t-animate:not(:first-child)");i&&(e=i)}r.push(e)})),r.forEach((function(t){var e={rootMargin:t.offsetHeight/5*-1+"px 0px"},a;new IntersectionObserver((function(t,e){t.forEach((function(t){if(t.isIntersecting){var a=t.target;e.unobserve(a);var n=a.closest(".r").querySelectorAll(".t-animate");n=Array.prototype.filter.call(n,(function(t){return!(t.classList.contains("t-animate__btn-wait-chain")||"yes"===t.getAttribute("data-animate-chain"))})),t_animate__makeSectionButtonWait(a),t_animate__saveSectionHeaderStartTime(a),Array.prototype.forEach.call(n,(function(t){t.classList.remove("t-animate_wait"),t_animate__removeNoHoverClassFromBtns(t),t_animate__setStartAnimationClass(t,!1)}))}}))}),e).observe(t)}))}var o;if(n.length&&n.forEach((function(t){var e={},a=t_animate__getAttrByResBase(t,"trigger-offset");a&&(e.rootMargin="0px 0px "+-1*a.replace("px","")+"px 0px");var n=new IntersectionObserver((function(t,e){t.forEach((function(t){var a=t.target;if(!a.demandTransform&&a.style.transform)a.demandTransform=a.style.transform,a.style.transform="unset";else{var n=window.getComputedStyle(a).transform;a.style.transform||"none"===n||(a.demandTransform=n,a.style.transform="unset")}if(t.isIntersecting){a.closest(".t1093")||e.unobserve(a);var i=a.style.transitionDelay||"0ms";i=-1!==i.indexOf("ms")?parseInt(i)+250:1e3*parseFloat(i)+250;var r=function t(){a.classList.remove("t-animate_wait"),t_animate__removeNoHoverClassFromBtns(a),t_animate__setStartAnimationClass(a,!0),"animatednumber"===t_animate__getAttrByResBase(a,"style")&&t_animate__animateNumbers(a)};a.demandTransform&&-1!==a.demandTransform.indexOf("matrix")&&(a.style.transform=""),a.demandTransform&&"unset"===a.style.transform&&(a.style.transform=a.demandTransform,delete a.demandTransform),setTimeout((function(){r()}),i)}}))}),e);t.dataset.observerReady=!0,n.observe(t)})),a.length)(o=function t(){t_animate__getChainOffsets(a)})(),window.addEventListener("resize",t_throttle((function(){o()}))),setInterval(o,5e3),window.addEventListener("scroll",t_throttle((function(){var t,e=window.pageYOffset+window.innerHeight;t_animate__animateChainsBlocks(a,e)})))}else{var o;(o=function t(){t_animate__getGroupsOffsets(e),t_animate__getChainOffsets(a),t_animate__getElemsOffsets(n)})(),window.addEventListener("resize",t_throttle(o)),setInterval(o,5e3),window.addEventListener("scroll",t_throttle((function(){var t=t_animate__deleteAnimatedEls(e,n);n=t[0];var i=t_animate__animateOnScroll(e=t[1],a,n);i&&i.length&&(e=i[0],a=i[1],n=i[2])})))}Array.prototype.forEach.call(t,(function(t){var e=t.querySelector(".t-popup");e&&e.addEventListener("scroll",t_throttle((function(){var t=window.pageYOffset+window.innerHeight;if(e.classList.contains("t-animate")&&"yes"===e.getAttribute("data-animate-chain")||e.querySelector(".t-animate[data-animate-chain=yes]")){var a=[e];t_animate__setAnimationStateChains(a),t_animate__getChainOffsets(a=Array.prototype.filter.call(a,(function(t){return t.querySelector(".t-animate_wait")}))),t_animate__animateChainsBlocks(a,t)}})))}))}}function t_animate__animateOnScroll(t,e,a){if(t.length||e.length||a.length){var n=window.pageYOffset,i=n+window.innerHeight,r,o,s;return[t_animate__animateGroups(t,i,n),t_animate__animateChainsBlocks(e,i,n),t_animate__animateElems(a,i,n)]}}function t_animate__animateGroups(t,e){return t.forEach((function(t){if(t.curTopOffset<e){var a=t.querySelectorAll(".t-animate");a=Array.prototype.filter.call(a,(function(t){return!(t.classList.contains("t-animate__btn-wait-chain")||"yes"===t.getAttribute("data-animate-chain"))})),t_animate__makeSectionButtonWait(t),t_animate__saveSectionHeaderStartTime(t),Array.prototype.forEach.call(a,(function(t){t.classList.remove("t-animate_wait"),t_animate__removeNoHoverClassFromBtns(t),t_animate__setStartAnimationClass(t,!1)}))}})),t}function t_animate__animateChainsBlocks(t,e){return t.forEach((function(t){t.itemsOffsets[0]<e&&t.querySelectorAll(".t-animate_wait").length&&(t_animate__animateChainItemsOnScroll(t,e),t.itemsOffsets.length&&t_animate__checkSectionButtonAnimation__outOfTurn(t))})),t}function t_animate__animateElems(t,e,a){return Array.prototype.filter.call(t,(function(t){var n=t_animate__detectElemTriggerOffset(t,e);return t.curTopOffset<n?(t.classList.remove("t-animate_wait"),t_animate__removeNoHoverClassFromBtns(t),t_animate__setStartAnimationClass(t,!1),"animatednumber"===t_animate__getAttrByResBase(t,"style")&&t_animate__animateNumbers(t),!0):!(t.curTopOffset<a)&&void 0})),t}function t_animate__deleteAnimatedEls(t,e){var a=window.pageYOffset,n=[],i=[];return t.forEach((function(t){if(t.curTopOffset<=a){var e=t.querySelectorAll(".t-animate");Array.prototype.forEach.call(e,(function(t){t_animate__removeAnimationClass(t,["wait","no-hover"])}))}else n.push(t)})),e.forEach((function(t){t.curTopOffset<=a?(t_animate__removeAnimationClass(t,["wait","no-hover"]),t_animate__setStartAnimationClass(t,!1)):i.push(t)})),[i,n]}function t_animate__animateChainItemsOnScroll(t,e){var a=t.querySelectorAll(".t-animate_wait[data-animate-chain=yes]");a=Array.prototype.slice.call(a);var n=0,i=0,r=t.itemsOffsets[0],o=.16,s=t_animate__getDelayFromPreviousScrollEvent(t,o),l=t_animate__getSectionHeadDealy(t);a.length&&a[0].classList.add("t-animate__chain_first-in-row");for(var m=0;m<a.length;m++){var c=a[m],_=t.itemsOffsets[m];if(!(_<e))break;_!==r&&(c.classList.add("t-animate__chain_first-in-row"),n=++i,r=_);var f=n*o+s+l;c.style.transitionDelay=f+"s",c.classList.remove("t-animate_wait"),t_animate__setStartAnimationClass(c,!1),c.setAttribute("data-animate-start-time",Date.now()+1e3*f),c[0]===a[a.length-1]&&t_animate__checkSectionButtonAnimation(t,f),+_==+r&&n++,a.splice(m,1),t.itemsOffsets.splice(m,1),m--}t_animate__catchTransitionEndEvent(t)}function t_animate__getSectionHeadDealy(t){var e=t.querySelector(".t-section__title.t-animate"),a=t.querySelector(".t-section__descr.t-animate"),n=0;if(e){var i=e.getAttribute("data-animate-start-time")||0;if(Date.now()-i<=160)return n=.16}if(a){var r=a.getAttribute("data-animate-start-time")||0;if(Date.now()-r<=160)return n=.16}return n}function t_animate__getDelayFromPreviousScrollEvent(t,e){var a=!t.querySelectorAll(".t-animate_started").length,n=t.querySelectorAll(".t-animate__chain_first-in-row.t-animate_started");if(n=Array.prototype.filter.call(n,(function(t){return!t.classList.contains("t-animate__chain_showed")})),a||!n.length)return 0;if(n.length){var i,r,o=(n[n.length-1].getAttribute("data-animate-start-time")||0)-Date.now();return o<=0?e:o/1e3+e}}function t_animate__setStartAnimationClass(t,e){if(t){if(e){var a="t-animate-for-wrapper",n=t.closest("."+a);n&&n.classList.remove(a)}var i;if(t.classList.add("t-animate_started"),"fadeinleft"===t.getAttribute("data-animate-style")){var r=t.closest(".t-animate__overflow-x-hidden");r&&!r.querySelector('[data-animate-style="fadeinleft"]:not(.t-animate_started)')&&r.classList.remove("t-animate__overflow-x-hidden")}}}function t_animate__catchTransitionEndEvent(t){var e=t.querySelectorAll(".t-animate__chain_first-in-row.t-animate_started");e=Array.prototype.filter.call(e,(function(t){return!t.classList.contains("t-animate__chain_showed")})),Array.prototype.forEach.call(e,(function(t){var e;["transitionend","webkitTransitionEnd","oTransitionEnd","otransitionend","MSTransitionEnd"].forEach((function(e){t.addEventListener(e,(function(){t_animate__addEventOnAnimateChain(t)})),t.removeEventListener(e,(function(){t_animate__addEventOnAnimateChain(t)}))}))}))}function t_animate__parseNumberText(){var t=window.pageYOffset,e=document.querySelectorAll(".t-animate[data-animate-style='animatednumber']");Array.prototype.forEach.call(e,(function(e){var a,n="",i=e.querySelectorAll("span");if(Array.prototype.forEach.call(i,(function(t){n+=t.getAttribute("style")||"",t.removeAttribute("style"),t.removeAttribute("data-redactor-style")})),e.querySelectorAll('div[data-customstyle="yes"]').length){var r=e.querySelector('div[data-customstyle="yes"]');a=r?r.innerHTML:"";var o=e.getAttribute("style")||"",s=e.querySelector("div[data-customstyle]"),l=s?s.getAttribute("style"):"";l&&(o+=l),e.setAttribute("style",o)}else a=e.innerHTML;if(n=n.split(";").filter((function(t,e){return n.split(";").indexOf(t)===e})).join(";"),!(e.getBoundingClientRect().top+window.pageYOffset<t-500)&&a.length){var m=a.replace(/<br>/g," ").replace(/[^\d., ]+/g,"").replace(/ (\.|,)/g,"").replace(/(\d)(?=\d) /g,"$1").trim(),c=m;if(-1===a.indexOf(m)&&(c=m=m.split(" ")[0]),""!==m){e.setAttribute("data-animate-number-count",a),t_animate__changeNumberOnZero(e,a.replace(c,"num"));var _=e.querySelectorAll("span");_=Array.prototype.filter.call(_,(function(t){return!t.classList.contains(".t-animate__number")})),Array.prototype.forEach.call(_,(function(t){t.setAttribute("style",n)}))}}}))}function t_animate__changeNumberOnZero(t,e){t.innerHTML=e.replace(/num/g,'<span class="t-animate__number">0</span>')}function t_animate__animateNumbers(t){if(!t)return!1;var e=t.getAttribute("data-animate-number-count"),a=[],n=t.querySelectorAll("span");(n=Array.prototype.filter.call(n,(function(t){return!t.classList.contains(".t-animate__number")}))).length&&(a=n[0].getAttribute("style")||"");var i=[],r=null;if(e){r=e.match(/\d+\.\d+|\d+,\d+/g);var o=e.match(/\d+/g),s,l;e.replace(/(\d)(?=\d) /g,"$1").split(" ").forEach((function(t){isNaN(parseInt(t.replace(/[^\d., ]+/g,""),10))||i.push(t.replace(/[^\d., ]+/g,""))}))}var m=0,c=!1,_=!1;t.removeAttribute("data-animate-number-count"),null!==r&&(_=-1!==r[0].indexOf(",")),i.forEach((function(t,e){var a;null!==r&&(-1!==t.indexOf(",")&&(a=t.split(",")),-1!==t.indexOf(".")&&(a=t.split(".")),-1===t.indexOf(",")&&-1===t.indexOf(".")||(m=a[1].length,i[e]=+a.join("."),c=!0))}));var f=t.querySelector(".t-animate__number");if(i[0]){var d=Number(i[0])||0,u=0,y=Math.pow(10,m);c&&(d*=y,u*=y);var p=12,h=0,g=setInterval((function(){if(u+=d/108,h=c?(Math.round(u)/y).toFixed(m)+"":Math.floor(u)+"",o.length>1&&(h=h.replace(/(\d)(?=(\d{3})+([^\d]|$))/g,"$1 ")),_&&(h=h.replace(/\./g,",")),f&&(f.textContent=h),u>=d){clearInterval(g),t.innerHTML=e;var n=t.querySelectorAll("span");Array.prototype.forEach.call(n,(function(t){t.setAttribute("style",a)}))}}),p)}}function t_animate__setAnimationState(t,e,a){var n=window.pageYOffset,i=n+window.innerHeight;t_animate__setGroupsBlocksState(t,n,i),e.forEach((function(t){t_animate__assignChainDelay(t,i,n),t_animate__checkSectionButtonAnimation__outOfTurn(t)})),t_animate__setAnimELemsState(a,n,i),window.addEventListener("resize",t_throttle(t_animate__removeInlineAnimStyles))}function t_animate__setAnimELemsState(t,e,a){t.forEach((function(t){var n=t.getBoundingClientRect().top+window.pageYOffset;if(n<e-500)return t_animate__removeAnimationClass(t,"no-hover"),"animatednumber"===t_animate__getAttrByResBase(t,"style")&&t_animate__animateNumbers(t),!0;var i=t_animate__detectElemTriggerOffset(t,a);t_animate__setCustomAnimSettings(t,n,a),n<i&&!t.closest(".t1093")&&(t_animate__removeNoHoverClassFromBtns(t),t_animate__setStartAnimationClass(t,!0),"animatednumber"===t_animate__getAttrByResBase(t,"style")&&t_animate__animateNumbers(t)),(n>=i||t.closest(".t1093"))&&t.classList.add("t-animate_wait")}))}function t_animate__setGroupsBlocksState(t,e,a){t.forEach((function(t){var n=t.querySelectorAll(".t-animate");n=Array.prototype.filter.call(n,(function(t){return!("yes"===t.getAttribute("data-animate-chain"))}));var i=t.getBoundingClientRect().top+window.pageYOffset;t_animate__removeAnimFromHiddenSlides(t);var r=t_animate__assignSectionDelay(t);t_animate__assignGroupDelay(t,r),Array.prototype.forEach.call(n,(function(n){var r=n.closest(".t397__off")||n.closest(".t395__off")||n.closest(".t400__off");if(n.classList.contains("t-animate_no-hover")&&r&&n.classList.remove("t-animate_no-hover"),i<=e-100)return t_animate__saveSectionHeaderStartTime(t),t_animate__removeAnimationClass(n,"no-hover"),n.style.transitionDelay="",!0;i<a&&i>e-100&&(t_animate__makeSectionButtonWait(t),n.classList.contains(".t-animate__btn-wait-chain")||(t_animate__removeNoHoverClassFromBtns(n),r?n.classList.add("t-animate_wait"):t_animate__setStartAnimationClass(n,!1))),i>=a&&n.classList.add("t-animate_wait")}))}))}function t_animate__setAnimationStateChains(t){if(!t||!t.length)return!1;var e=window.pageYOffset,a=e+window.innerHeight;Array.prototype.forEach.call(t,(function(t){t_animate__assignChainDelay(t,a,e),t_animate__checkSectionButtonAnimation__outOfTurn(t)}))}function t_animate__assignSectionDelay(t){var e=0,a=t.querySelectorAll(".t-section__title.t-animate"),n=t.querySelectorAll(".t-section__descr.t-animate");return a.length&&(e=.16),n.length&&(Array.prototype.forEach.call(n,(function(t){t.style.transitionDelay=e+"s"})),e+=.16),e}function t_animate__assignGroupDelay(t,e){var a=0;if(t.querySelectorAll("[data-animate-order]").length)t_animate__assignOrderedElemsDelay(t,e);else{var n=t.querySelectorAll(".t-img.t-animate"),i=t.querySelectorAll(".t-uptitle.t-animate"),r=t.querySelectorAll(".t-title.t-animate");r=Array.prototype.filter.call(r,(function(t){return!t.classList.contains("t-section__title")}));var o=t.querySelectorAll(".t-descr.t-animate");o=Array.prototype.filter.call(o,(function(t){return!t.classList.contains("t-section__descr")}));var s=t.querySelectorAll(".t-btn.t-animate, .t-btnwrapper.t-animate");s=Array.prototype.filter.call(s,(function(t){return!t.closest(".t-section__bottomwrapper")}));var l=t.querySelectorAll(".t-timer.t-animate"),m=t.querySelectorAll("form.t-animate");n.length&&(a=.5),r.length&&Array.prototype.forEach.call(r,(function(t){t.style.transitionDelay=a+"s"})),r.length&&(a+=.3),o.length&&Array.prototype.forEach.call(o,(function(t){t.style.transitionDelay=a+"s"})),o.length&&(a+=.3),i.length&&Array.prototype.forEach.call(i,(function(t){t.style.transitionDelay=a+"s"})),i.length&&(a+=.3),(i.length||r.length||o.length)&&(a+=.2),l.length&&Array.prototype.forEach.call(l,(function(t){t.style.transitionDelay=a+"s"})),l.length&&(a+=.5),s.length&&(s[0].style.transitionDelay=a+"s"),2===s.length&&(a+=.4),2===s.length&&(s[1].style.transitionDelay=a+"s"),0!==m.length&&Array.prototype.forEach.call(m,(function(t){t.style.transitionDelay=a+"s"}))}}function t_animate__assignOrderedElemsDelay(t,e){var a=0;e&&(a=e);var n=t.querySelectorAll('.t-animate[data-animate-order="1"]'),i=t.querySelectorAll('.t-animate[data-animate-order="2"]'),r=t.querySelectorAll('.t-animate[data-animate-order="3"]'),o=t.querySelectorAll('.t-animate[data-animate-order="4"]'),s=t.querySelectorAll('.t-animate[data-animate-order="5"]'),l=t.querySelectorAll('.t-animate[data-animate-order="6"]'),m=t.querySelectorAll('.t-animate[data-animate-order="7"]'),c=t.querySelectorAll('.t-animate[data-animate-order="8"]'),_=t.querySelectorAll('.t-animate[data-animate-order="9"]');n.length&&Array.prototype.forEach.call(n,(function(t){t.style.transitionDelay=a+"s"})),n.length&&i.length&&(a+=1*t_animate__getAttrByResBase(i[0],"delay"),Array.prototype.forEach.call(i,(function(t){t.style.transitionDelay=a+"s"}))),(n.length||i.length)&&r.length&&(a+=1*t_animate__getAttrByResBase(r[0],"delay"),Array.prototype.forEach.call(r,(function(t){t.style.transitionDelay=a+"s"}))),(n.length||i.length||r.length)&&o.length&&(a+=1*t_animate__getAttrByResBase(o[0],"delay"),Array.prototype.forEach.call(o,(function(t){t.style.transitionDelay=a+"s"}))),(n.length||i.length||r.length||o.length)&&s.length&&(a+=1*t_animate__getAttrByResBase(s[0],"delay"),Array.prototype.forEach.call(s,(function(t){t.style.transitionDelay=a+"s"}))),(n.length||i.length||r.length||o.length||s.length)&&l.length&&(a+=1*t_animate__getAttrByResBase(l[0],"delay"),Array.prototype.forEach.call(l,(function(t){t.style.transitionDelay=a+"s"}))),(n.length||i.length||r.length||o.length||s.length||l.length)&&m.length&&(a+=1*t_animate__getAttrByResBase(m[0],"delay"),Array.prototype.forEach.call(m,(function(t){t.style.transitionDelay=a+"s"}))),(n.length||i.length||r.length||o.length||s.length||l.length||m.length)&&c.length&&(a+=1*t_animate__getAttrByResBase(c[0],"delay"),Array.prototype.forEach.call(c,(function(t){t.style.transitionDelay=a+"s"}))),(n.length||i.length||r.length||o.length||s.length||l.length||m.length||c.length)&&_.length&&(a+=1*t_animate__getAttrByResBase(_[0],"delay"),Array.prototype.forEach.call(_,(function(t){t.style.transitionDelay=a+"s"})))}function t_animate__assignChainDelay(t,e,a){var n=t.querySelectorAll(".t-animate[data-animate-chain=yes]"),i=0;if(n.length){var r=n[0],o=r.getBoundingClientRect().top+window.pageYOffset;r.classList.add("t-animate__chain_first-in-row");var s=t_animate__getCurBlockSectionHeadDelay(t);Array.prototype.forEach.call(n,(function(l){var m=l.getBoundingClientRect().top+window.pageYOffset;if(m<a)return t_animate__removeAnimationClass(l,""),!0;if(m<e){m!==o&&(l.classList.add("t-animate__chain_first-in-row"),o=m);var c=.16*i+s,_;l.style.transitionDelay=c+"s",t_animate__setStartAnimationClass(l,!1),l.setAttribute("data-animate-start-time",Date.now()+1e3*c),r===n[n.length-1]&&t_animate__checkSectionButtonAnimation(t,c),i++,["transitionend","webkitTransitionEnd","oTransitionEnd","otransitionend","MSTransitionEnd"].forEach((function(t){l.addEventListener(t,(function(){t_animate__addEventOnAnimateChain(l)})),l.removeEventListener(t,(function(){t_animate__addEventOnAnimateChain(l)}))}))}else l.classList.add("t-animate_wait")}))}}function t_animate__getAttrByResBase(t,e){var a,n=t.closest(".t396__artboard");if(!n)return t.getAttribute("data-animate-"+e);var i,r="ab"+n.getAttribute("data-artboard-recid"),o,s,l;void 0!==window.tn[r]?(o=window.tn[r].curResolution,s=window.tn[r].curResolution_max,l=window.tn[r].screens.slice()):(o=window.tn.curResolution,s=1200,l=[320,480,640,960,1200]);var m=t.closest(".t396__elem, .t396__group"),c=m&&m.getAttribute("data-animate-mobile");if(o===s)a=t.getAttribute("data-animate-"+e);else{if("y"!==c&&o<1200)return t.style.transition="none",null;a=t.getAttribute("data-animate-"+e+"-res-"+o)}if(!a&&""!==a)for(var _=0;_<l.length;_++){var f=l[_];if(!(f<=o)&&(a=f===s?t.getAttribute("data-animate-"+e):t.getAttribute("data-animate-"+e+"-res-"+f)))break}return a}function t_animate__hasWaitAnimation(t){return t.filter((function(t){return t.classList.contains("t-animate_wait")||t.querySelector(".t-animate_wait")}))}function t_animate__addEventOnAnimateChain(t){t.classList.add("t-animate__chain_showed")}function t_animate__setCustomAnimSettings(t,e,a){var n=t_animate__getAttrByResBase(t,"style"),i=t_animate__getAttrByResBase(t,"distance");if(i&&""!==i){switch(i=i.replace("px",""),t.style.transitionDuration="0s",t.style.transitionDelay="0s",n){case"fadeinup":t.style.transform="translate3d(0,"+i+"px,0)";break;case"fadeindown":t.style.transform="translate3d(0,-"+i+"px,0)";break;case"fadeinleft":t.style.transform="translate3d("+i+"px,0,0)";break;case"fadeinright":t.style.transform="translate3d(-"+i+"px,0,0)"}t_animate__forceElemInViewPortRepaint(t,e,a),t.style.transitionDuration="",t.style.transitionDelay=""}var r=t_animate__getAttrByResBase(t,"scale");r&&(t.style.transitionDuration="0s",t.style.transitionDelay="0s",t.style.transform="scale("+r+")",t_animate__forceElemInViewPortRepaint(t,e,a),t.style.transitionDuration="",t.style.transitionDelay="");var o=t_animate__getAttrByResBase(t,"delay");o&&(t.style.transitionDelay=o+"s");var s=t_animate__getAttrByResBase(t,"duration");s&&(t.style.transitionDuration=s+"s")}function t_animate__removeInlineAnimStyles(){if(window.innerWidth<980){var t=document.querySelectorAll(".t396__elem.t-animate:not(.t-animate_wait)");Array.prototype.forEach.call(t,(function(t){t.style.transform="",t.style.transitionDuration="",t.style.transitionDelay=""}))}}function t_animate__forceElemInViewPortRepaint(t,e,a){t&&e<a+500&&t.offsetHeight}function t_animate__detectElemTriggerOffset(t,e){var a=t_animate__getAttrByResBase(t,"trigger-offset"),n=e;return a&&(n=e-1*(a=a.replace("px",""))),n}function t_animate__saveSectionHeaderStartTime(t){var e=t.querySelectorAll(".t-section__title.t-animate"),a=t.querySelectorAll(".t-section__descr.t-animate");e.length&&Array.prototype.forEach.call(e,(function(t){t.setAttribute("data-animate-start-time",Date.now())})),a.length&&Array.prototype.forEach.call(a,(function(t){t.setAttribute("data-animate-start-time",Date.now()+160)}))}function t_animate__getCurBlockSectionHeadDelay(t){var e=0;return t.querySelectorAll(".t-section__title.t-animate").length&&(e+=.16),t.querySelectorAll(".t-section__descr.t-animate").length&&(e+=.16),e}function t_animate__makeSectionButtonWait(t){var e=t.querySelectorAll(".t-animate[data-animate-chain=yes]").length,a=t.querySelectorAll(".t-section__bottomwrapper .t-btn.t-animate");e.length&&a.length&&Array.prototype.forEach.call(a,(function(t){t.classList.add("t-animate__btn-wait-chain")}))}function t_animate__checkSectionButtonAnimation(t,e){var a=t.querySelectorAll(".t-animate__btn-wait-chain");a.length&&Array.prototype.forEach.call(a,(function(t){t.style.transitionDelay=e+.16+"s",t_animate__removeNoHoverClassFromBtns(t),t.classList.remove("t-animate__btn-wait-chain"),t_animate__setStartAnimationClass(t,!1)}))}function t_animate__checkSectionButtonAnimation__outOfTurn(t){var e=t.querySelectorAll(".t-animate[data-animate-chain=yes]"),a;(e=Array.prototype.filter.call(e,(function(t){return!t.classList.contains("t-animate_started")}))).length||t_animate__checkSectionButtonAnimation(t,.16)}function t_animate__addNoHoverClassToBtns(){var t=document.querySelectorAll(".t-btn.t-animate");Array.prototype.forEach.call(t,(function(t){t.classList.add("t-animate_no-hover")}))}function t_animate__removeNoHoverClassFromBtns(t){if(!t)return!1;var e=t.classList.contains("t-btn")?t:null;e&&(e.ontransitionend=function(t){"opacity"!==t.propertyName&&"transform"!==t.propertyName||(e.classList.remove("t-animate_no-hover"),e.style.transitionDelay="",e.style.transitionDuration="",this.ontransitionend=null)})}function t_animate__getGroupsOffsets(t){t.forEach((function(t){var e=t.querySelector(".t-animate");if(e){t.curTopOffset=e.getBoundingClientRect().top+window.pageYOffset;var a=t_animation__getZoom(t);window.isOnlyScalable||(t.curTopOffset*=a)}}))}function t_animation__getZoom(t){if(void 0!==t.scaleFactor)return t.scaleFactor;var e=t.closest(".t396__artboard");if(!e)return 1;var a=document.querySelector('script[src*="tilda-blocks-2.7"]');return e.classList.contains("t396__artboard_scale")||!a&&"undefined"!=typeof t396_ab__getFieldValue&&"window"===t396_ab__getFieldValue(e,"upscale")?window.tn_scale_factor:1}function t_animate__getChainOffsets(t){t.forEach((function(t){var e=t.querySelectorAll(".t-animate_wait[data-animate-chain=yes]");t.itemsOffsets=[],Array.prototype.forEach.call(e,(function(e,a){t.itemsOffsets[a]=e.getBoundingClientRect().top+window.pageYOffset}))}))}function t_animate__getElemsOffsets(t){t.forEach((function(t){t.curTopOffset=window.pageYOffset+t.getBoundingClientRect().top;var e=t_animation__getZoom(t);window.isOnlyScalable||(t.curTopOffset*=e)}))}function t_animate__removeAnimFromHiddenSlides(t){var e;if(t.querySelectorAll(".t-slides").length){var a=t.querySelectorAll(".t-slides__item");a=Array.prototype.filter.call(a,(function(t){return!t.classList.contains("t-slides__item_active")}));var n=[];a.forEach((function(t){var e=t.querySelector(".t-animate");e&&n.push(e)})),n.forEach((function(t){t_animate__removeAnimationClass(t,"no-hover")}))}}function t_animate__wrapTextWithOpacity(){var t=document.querySelectorAll(".t-title.t-animate, .t-descr.t-animate, .t-uptitle.t-animate, .t-text.t-animate");Array.prototype.forEach.call(t,(function(t){var e=t.getAttribute("style");if(e&&-1!==e.indexOf("opacity")){var a=t.style.opacity;if(a&&a>0){t.style.opacity="";var n=document.createElement("div");n.style.opacity=a;var i=t.childNodes;Array.prototype.forEach.call(i,(function(t){var e=t.cloneNode(!0);n.appendChild(e)})),t.innerHTML="",t.appendChild(n)}}}))}function t_animate__checkIE(){var t=window.navigator.userAgent,e=t.indexOf("MSIE"),a="",n=!1;return e>0&&(8!==(a=parseInt(t.substring(e+5,t.indexOf(".",e))))&&9!==a||(n=!0)),n}"loading"!==document.readyState?t_animate__init():document.addEventListener("DOMContentLoaded",t_animate__init);
function t396__parseGlobalStyleCSSVar(t){try{var e,i=/var\((--uc-([^-]+)-([^-]+)-([^,]+)),\s?(.*)\)/.exec(t);if(!i)return;var r=i[0],o=i[1],n=i[2],a=i[3],l=i[4],d=i[5],_,s;if(!(r&&n&&a&&l&&d))return;return{parent:{id:l,type:n},fallback:window.getComputedStyle(document.body).getPropertyValue(o)||d,field:a}}catch(u){console.error("Error trying to parse CSS Variable")}}function t396__hex2rgba(t,e){if(!t)return!1;var i=t396__parseGlobalStyleCSSVar(t);i&&(t=i.fallback);var r=t.replace(/#/,"");if(3===r.length){var o=r[0],n=r[1],a=r[2];t="#"+o+o+n+n+a+a}var l=parseInt(t.substring(1),16),d,_,s;return[(16711680&l)>>16,(65280&l)>>8,255&l,parseFloat(e)]}function t396__isElementUsingCalcZoom(t){var e=["gallery"],i=t.getAttribute("data-elem-type");return e.includes(i)}function t396__isFlex(t){var e=t.classList.contains("t396__artboard-flex"),i=t.classList.contains("t396__group-flex");return e||i}function t396__setOverflowToAllRecords(){var t=document.getElementById("allrecords");if(t){var e=[".t951__sidebar_sticky",".t1206__content_sticky",".t754__col_fixed",".t776__col_fixed",".t786__col_fixed",".t-store__prod-popup__col_fixed"];t396__generateOverflowStyle();var i=Boolean(document.querySelector(e.join(", ")));t.classList.remove("t-records__overflow-clip","t-records__overflow-hidden"),t.classList.add(i?"t-records__overflow-clip":"t-records__overflow-hidden")}}function t396__generateOverflowStyle(){if(!document.getElementById("t396__overflow-styles")){var t=document.createElement("style");t.id="t396__overflow-styles",t.innerHTML=".t-records__overflow-clip { overflow: clip; }\n\t\t\t\t\t\t.t-records__overflow-hidden { overflow: hidden; }",document.head.appendChild(t)}}function t396__getArtboards(t){var e=document.getElementById("allrecords"),i,r=e&&"edit"===e.getAttribute("data-tilda-mode")?'.record[data-record-type="'+t+'"] .r:not(.t397__off, .t395__off, .t400__off) .t396__artboard, .record[data-parenttplid="'+t+'"] .r:not(.t397__off, .t395__off, .t400__off) .t396__artboard':'.r[data-record-type="'+t+'"]:not(.t397__off, .t395__off, .t400__off) .t396__artboard, .r[data-parenttplid="'+t+'"]:not(.t397__off, .t395__off, .t400__off) .t396__artboard';return Array.from(document.querySelectorAll(r))}function t396__getZeroBlocks(){var t=[].concat(t396__getArtboards("396"),t396__getArtboards("121")),e;return t.length?t.map((function(t){return{record:t.closest(".r:not(.t397__off):not(.t395__off):not(.t400__off)"),artboard:t}})).filter((function(t){return t.record})):[]}function t396__isInsideGroupWithZoom(t){for(var e=t.closest(".t396__group");e;){var i;if(e.style.zoom)return!0;e=null==(i=e.parentElement)?void 0:i.closest(".t396__group")}return!1}var t396__uniqueId__generator=function t(){var e=0;return function(){var t=String(e+=1).padStart(6,"0");return""+Date.now()+t}},t396__getUniqueId=t396__uniqueId__generator();function t396_init(t){var e=document.getElementById("rec"+t),i=e?e.querySelector(".t396"):null,r=e?e.querySelector(".t396__artboard"):null;if(r){t396_initTNobj(t,r),t396__initOnlyScalable();var o="",n=t396_detectResolution(t),a=document.getElementById("allrecords"),l=a&&"edit"===a.getAttribute("data-tilda-mode");void 0===window.tn.isEditMode&&(window.tn.isEditMode=l),t396_switchResolution(t,n);var d="window"===t396_ab__getFieldValue(r,"upscale"),_=t396__setGlobalScaleVariables(t,n,d);if(t396__setScaleFactorForElements(t,_),t396_updateTNobj(t),t396_artboard_build(o,t),window.addEventListener("load",(function(){t396_allelems__renderView(r),t396_allgroups__renderView(r),t396__initializeArtboardOverflow(a,r)})),window.tildaMembers&&"MutationObserver"in window){var s=new MutationObserver((function(e){e.forEach((function(e){"attributes"===e.type&&"class"===e.attributeName&&e.target.classList.contains("tlk-courses_page")&&(t396_doResize(t,!0),s.disconnect())}))}));s.observe(document.body,{attributes:!0})}document.querySelector(".t830")&&t_onReady((function(){var e,i;["t830__allrecords_padd","t830__allrecords_padd-small"].some((function(t){return a.classList.contains(t)}))?t396_doResize(t,!0):a.addEventListener("allRecPaddingInit",(function(){t396_doResize(t,!0)}))})),e&&i&&r&&"yes"===e.getAttribute("data-connect-with-tab")&&i.addEventListener("displayChanged",(function(){t396_allelems__renderView(r),t396_allgroups__renderView(r),t396_doResize(t,!0)}));var u="hug"===r.getAttribute("data-artboard-heightmode"),c;if(u){var f=t_throttle((function(){t396__updateAutoHeight(r)}),100);f(),setInterval(f,3e3),document.fonts&&document.fonts.ready.then(f),r.querySelectorAll("img").forEach((function(t){t.onload=f})),new MutationObserver(f).observe(r,{subtree:!0,characterData:!0,characterDataOldValue:!0}),new MutationObserver((function(t){t.forEach((function(t){var e;"childList"===t.type&&(Array.from(t.addedNodes).concat(Array.from(t.removedNodes)).some((function(t){return 3!==t.nodeType&&(t.classList.contains("t396__elem")||t.classList.contains("t396__group"))}))&&f())}))})).observe(r,{subtree:!0,childList:!0})}(a.classList.contains("t235__beforeready")||e&&e.closest("#allrecordstable")||a.querySelector('[data-record-type="263"]'))&&i&&r&&i.addEventListener("displayChanged",(function(){t396_allelems__renderView(r),t396_allgroups__renderView(r),t396_doResize(t,!0)}));var g=!!document.querySelector(".t635__textholder");e&&g&&i&&r&&i.addEventListener("animationInited",(function(){t396_allelems__renderView(r),t396_allgroups__renderView(r),t396_doResize(t,!0)})),e&&document.querySelector(".t431")&&i&&r&&t_onReady((function(){setTimeout((function(){t396_doResize(t,!0)}))})),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&i&&i.classList.add("t396_safari"),d&&!l&&t_onFuncLoad("t396_scaleBlock",(function(){t396_scaleBlock(t)})),l||"y"!==t396_ab__getFieldValue(r,"fixed-need-js")||t_onFuncLoad("t396__processFixedArtBoard",(function(){t396__processFixedArtBoard(r)})),t396__processAbsoluteArtBoard(r),t396__processTopShift(r,t,!1),window.t396__isMobile||u||t396__removeInlineHeight([r,r.querySelector(".t396__carrier"),r.querySelector(".t396__filter")]),l||t396__intializeUndercut(e)}}window.t396__isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||navigator.userAgent.indexOf("Instagram")>-1,window.t396__isIPad="ontouchend"in document&&-1!==navigator.userAgent.indexOf("AppleWebKit"),window.t396__isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),window.t396__isTouchDevice="ontouchend"in document,window.t396__isInAppBrowser=/WebView|(iPhone|iPod|iPad)(?!.*Safari)/gi.test(navigator.userAgent),window.t396__isFacebookMessengerInApp=/FBAN|FBAV/gi.test(navigator.userAgent)&&window.t396__isInAppBrowser,window.t396__isInstagramInApp=/\bInstagram/gi.test(navigator.userAgent)&&window.t396__isInAppBrowser,t_onReady(t396__globalInit);var t396_waitForFinalEvent=function(){var t={};return function(e,i,r){var o=r||"Don't call this twice without a uniqueId";t[o]&&clearTimeout(t[o]),t[o]=setTimeout(e,i)}}();function t396__handleResizeOpenedPopup(){t396__waitForPopup().then((function(t){if(t){var e=t.querySelector(".t396__artboard");e&&t396_doResize(e.getAttribute("data-artboard-recid"))}}))}function t396__initPopupResize(){document.body.removeEventListener("popupShowed",t396__handleResizeOpenedPopup),document.body.addEventListener("popupShowed",t396__handleResizeOpenedPopup)}function t396_ab__getWindowHeight(t){return t396__shouldUseVisualViewportHeight()&&t396__isInPopup(t)?window.visualViewport.height:t396__getWindowDimensions().height;var e,i}function t396_ab__getWindowWidth(t){return t396__isInPopup(t)?document.documentElement.clientWidth:t396__getWindowDimensions().width;var e,i}function t396__getTNWindowHeight(){return window.t396__isMobile||window.t396__isIPad?document.documentElement.clientHeight:window.innerHeight}function t396__getTNWindowWidth(){var t=t396__getBlockEditorWidth();if(t)return t;var e=document.documentElement.clientWidth,i=t396__getAxisXPadding();return i&&(e-=i),e}function t396__getCSSWindowWidth(){var t=t396__getBlockEditorWidth(),e;return t||(window.t396__isMobile||window.t396__isIPad||window.t396__isSafari?document.documentElement.clientWidth:window.innerWidth)}function t396__getWindowDimensions(t){var e,i=(t||{}).forceUpdate,r=void 0!==i&&i,o=!window.tn.window_width||!window.tn.window_height||!window.tn.window_width_css,n;return(r||o)&&t396__updateWindowDimensions(),{width:window.tn.window_width,height:window.tn.window_height,cssWidth:window.tn.window_width_css}}function t396__updateWindowDimensions(){window.tn.window_width=t396__getTNWindowWidth(),window.tn.window_height=t396__getTNWindowHeight(),window.tn.window_width_css=t396__getCSSWindowWidth()}function t396__removeInlineHeight(t){"1.0"!==window.TN_SCALE_INITIAL_VER&&t.filter(Boolean).forEach((function(t){t&&(t.style.height="")}))}function t396__clearInitialScaleStyles(){if("1.0"===window.TN_SCALE_INITIAL_VER){var t=function t(e){var i;e&&("var(--initial-scale-height)"===e.style.getPropertyValue("height")&&e.style.removeProperty("height"))},e;t396__getZeroBlocks().forEach((function(e){var i=e.artboard;i&&(i.style.removeProperty("--initial-scale-height"),t(i),t(i.querySelector(".t396__carrier")),t(i.querySelector(".t396__filter")))}))}}function t396__globalInit(){window.tn||t396_initTNobj__createDefault(),t396__isAllZeroBlocksRendered((function(){t396__applyFixesForAllElements(),t396__initializeAnchorLinkOverflowFix(),t396__initPopupResize(),t396__clearInitialScaleStyles(),window.addEventListener("resize",t396__onResize),window.addEventListener("orientationchange",t396__onOrientationChange)}))}function t396__onResize(){t396_waitForFinalEvent((function(){var t,e=t396__getWindowDimensions().width;t396__updateWindowDimensions();var i,r,o=e!==t396__getWindowDimensions().width;t396__getZeroBlocks().forEach((function(t){var e=t.artboard,i=t.record;if(e.classList.add("t396_resizechange"),window.t396__isMobile||window.t396__isTouchDevice){if(o){if(!i)return;if(!t396_isBlockVisible(i))return;t396_doResize(i.id.replace("rec","")),e.classList.remove("t396_resizechange")}}else{if(!i)return;if(!t396_isBlockVisible(i))return;t396_doResize(i.id.replace("rec","")),e.classList.remove("t396_resizechange")}}))}),500,"global_resize_zero_unique_id")}function t396__onOrientationChange(){t396_waitForFinalEvent((function(){t396__updateWindowDimensions(),t396__getZeroBlocks().forEach((function(t){var e=t.record;e&&t396_isBlockVisible(e)&&t396_doResize(e.id.replace("rec",""))}))}),600,"global_orientationchange_zero_unique_id")}function t396_isOnlyScalableBrowser(){return window.isOnlyScalable}function t396__initOnlyScalable(){if(void 0===window.isOnlyScalable){var t=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./),e=t?parseInt(t[1],10):126,i=window.navigator.userAgent.match(/Chrome\/([0-9]+)\./),r=i&&parseInt(i[1],10)||0;window.isOnlyScalable=e<126,window.shouldUseScaleFactor=!window.isOnlyScalable&&!t&&r<=127}}function t396__setGlobalScaleVariables(t,e,i){var r=1,o=document.getElementById("rec"+t),n=o?o.querySelector(".t396__artboard"):null;if(!n)return 1;var a=t396_ab__getWindowWidth(n),l=i?parseFloat((a/e).toFixed(3)):1,d="ab"+t;window.tn[d].scaleFactor=l,window.tn_scale_factor=l;var _=document.getElementById("rec"+t);return _&&!window.tn.isEditMode&&_.style.setProperty("--zoom",l.toString()),l}function t396__processTopShift(t,e,i){"function"!=typeof window.t396__updateTopShift||"y"!==t396_ab__getFieldValue(t,"shift-processed")&&"y"!==t396_ab__getFieldValue(t,"fixed-shift")||window.t396__updateTopShift(e,i)}function t396_doResize(t,e){e&&t396__updateWindowDimensions();var i=t396_isOnlyScalableBrowser(),r=document.getElementById("rec"+t),o=document.getElementById("allrecords"),n=t396_detectResolution(t),a;if(t396_removeElementFromDOM(r?r.querySelector(".t396__scale-style"):null),i){var l=r?r.querySelectorAll(".tn-molecule, .tn-atom"):[];Array.prototype.forEach.call(l,(function(t){if(!t.classList.contains("tn-atom")||!t.closest(".tn-molecule")){var e=t.closest(".tn-atom__scale-wrapper"),i=e?e.parentNode:null;i&&i.removeChild(e),i&&i.appendChild(t)}}))}else{var d=r?r.querySelectorAll(".t396__elem, .t396__group"):[];Array.prototype.forEach.call(d,(function(t){t.style.zoom="";var e=t.querySelector(".tn-atom");e&&(e.style.transformOrigin="",e.style.fontSize="",e.style.webkitTextSizeAdjust="")}))}t396_switchResolution(t,n);var _=r?r.querySelector(".t396__artboard"):null,s="window"===t396_ab__getFieldValue(_,"upscale"),u=t396__setGlobalScaleVariables(t,n,s);t396__setScaleFactorForElements(t,u),t396_updateTNobj(t),t396_ab__renderView(_);var c=o?o.getAttribute("data-tilda-mode"):"";s&&"edit"!==c&&t_onFuncLoad("t396_scaleBlock",(function(){t396_scaleBlock(t)})),"edit"!==c&&"y"===t396_ab__getFieldValue(_,"fixed-need-js")&&t_onFuncLoad("t396__processFixedArtBoard",(function(){t396__processFixedArtBoard(_)})),t396__processAbsoluteArtBoard(_),t396__processTopShift(_,t,!0),t396_allelems__renderView(_),t396_allgroups__renderView(_),t396__applyFixesForAllElements(),t396__updateAutoHeight(_),_&&_.dispatchEvent(new CustomEvent("artBoardResized"));var f="hug"===_.getAttribute("data-artboard-heightmode");_&&!f&&(window.t396__isMobile||t396__removeInlineHeight([_,_.querySelector(".t396__carrier"),_.querySelector(".t396__filter")]))}function t396__updateAutoHeight(t){var e,i;if("hug"===t.getAttribute("data-artboard-heightmode")){var r=t396__getAutoHeight(t),o=t.offsetHeight;if(!(Math.abs(r-o)<=.7)){var n,a="ab"+t.getAttribute("data-artboard-recid"),l=window.tn[a].curResolution,d;l===window.tn[a].curResolution_max?t.setAttribute("data-artboard-height",r):t.setAttribute("data-artboard-height-res-"+l,r),t396_ab__renderView(t),null==(e=t.closest(".t396"))||e.dispatchEvent(new CustomEvent("zero:height-changed"))}}}function t396__getAutoHeight(t){var e,i=t.classList.contains("t396__artboard-flex"),r=Array.from(t.querySelectorAll(":scope > .tn-group, :scope > .tn-elem")),o=r.some((function(t){return"gallery"===t.getAttribute("data-elem-type")})),n=t.style.height;if(i&&!o&&n){var a=t.style.height;t.style.height="auto",e=t.offsetHeight,t.style.height=a}else e=r.reduce((function(e,r){var o=t396_core__getFieldValue(r,"axisy"),n=t396_core__getFieldValue(r,"topunits"),a=t396_core__getFieldValue(r,"heightunits");if("%"===n||"%"===a||"bottom"===o||"center"===o)return e;var l=0;if("gallery"===r.getAttribute("data-elem-type")&&(l=t396__autoHeight__getAdditionalOffsetForGallery(r)),i){var d=t396__ab__getPaddingValue(t,"paddingbottom");l+=parseInt(d,10)}var _=r.offsetTop+r.offsetHeight+l,s,u,c;"window"!==t396_ab__getFieldValue(t,"upscale")||window.tn.isEditMode||(_*=t396__getCurrentScaleFactor(t.getAttribute("data-artboard-recid")));return _>e?_:e}),-1/0);return e===-1/0?0:e}function t396__autoHeight__getAdditionalOffsetForGallery(t){var e=0,i=t.querySelector(".t-slds__title"),r="none"!==t396_core__getFieldValue(t,"slds_dotscontrols"),o="under"===t396_core__getFieldValue(t,"slds_arrowcontrols");if(i||r||o){var n=t.querySelector(".t-slds__title"),a=n?n.offsetHeight:0,l=t.querySelector(".t-slds__caption.t-slds__caption-active"),d=getComputedStyle(l),_;e+=parseInt(d.marginTop,10)+a}return i||!r&&!o||(e-=20),e}function t396__ab__getPaddingValue(t,e){var i=(t396_ab__getFieldValue(t,"padding")||"0px 0px 0px 0px").split(" "),r={paddingtop:i[0],paddingright:i[1],paddingbottom:i[2],paddingleft:i[3]};return parseInt(r[e],10)||0}function t396__processAbsoluteArtBoard(t){if(t){var e=t396_ab__getFieldValue(t,"pos");if("fixed"!==e){var i="t396__artboard-fixed-no-bg";if("absolute"===e){var r=getComputedStyle(t),o=t.querySelector(".t396__filter"),n=!o||"none"===getComputedStyle(o).backgroundImage,a,l="rgba(0, 0, 0, 0)"===r.backgroundColor&&"none"===r.backgroundImage&&n?"add":"remove";t.classList[l](i)}else t.classList.remove(i)}}}function t396_detectResolution(t){if(!t)return null;var e,i=t396__getWindowDimensions().cssWidth,r="ab"+t,o;return window.tn[r].screens.forEach((function(t){i>=t&&(o=t)})),void 0===o&&(o=window.tn[r].screens[0]),o}function t396_initTNobj__createDefault(){window.tn={},window.tn.ab_fields=["height","width","bgcolor","bgimg","bgattachment","bgposition","filteropacity","filtercolor","filteropacity2","filtercolor2","height_vh","valign"]}function t396_initTNobj(t,e){e&&(window.tn||t396_initTNobj__createDefault(),t396_setScreensTNobj(t,e))}function t396_setScreensTNobj(t,e){var i="ab"+t;window.tn[i]={},window.tn[i].screens=[];var r=e.getAttribute("data-artboard-screens");r?(r=r.split(",")).forEach((function(t){window.tn[i].screens.push(parseInt(t,10))})):window.tn[i].screens=[320,480,640,960,1200]}function t396__getAxisXPadding(){var t=document.getElementById("allrecords"),e=Boolean(window.tildaMembers)||"allrecords"===window.zero_window_width_hook,i,r;return t&&e&&[document.body,t].reduce((function(t,e){var i=window.getComputedStyle(e).paddingLeft,r=window.getComputedStyle(e).paddingRight;return t+parseInt(i,10)+parseInt(r,10)}),0)||0}function t396_updateTNobj(t){for(var e,i=t396__getWindowDimensions().width,r="ab"+t,o=window.tn[r].screens.slice().reverse(),n=0;n<o.length;n++)window.tn[r].curResolution===o[n]&&(window.tn[r].canvas_min_width=o[n],window.tn[r].canvas_max_width=0===n?i:o[n-1]);var a="allrecords"===window.zero_window_width_hook;window.tn[r].grid_width=window.tn[r].canvas_min_width;var l=(i-window.tn[r].grid_width)/2;window.tn[r].grid_offset_left=l<0&&a?0:l}function t396_switchResolution(t,e){var i="ab"+t,r=window.tn[i].screens[window.tn[i].screens.length-1];window.tn[i].curResolution=e,window.tn[i].curResolution_max=r,window.tn.curResolution=e,window.tn.curResolution_max=r}function t396_artboard_build(t,e){var i=document.getElementById("rec"+e),r=i?i.querySelector(".t396__artboard"):null;if(r){t396_ab__renderView(r),t396_allgroups__renderView(r);var o=r.querySelectorAll(".tn-elem");Array.prototype.forEach.call(o,(function(t){var i;switch(t.getAttribute("data-elem-type")){case"text":t396_addText(r,t);break;case"image":t396_addImage(r,t);break;case"shape":t396_addShape(r,t);break;case"button":t396_addButton(r,t);break;case"video":t396_addVideo(r,t);break;case"html":t396_addHtml(r,t);break;case"tooltip":t396_addTooltip(r,t);break;case"form":t396_addForm(r,t,e);break;case"gallery":t396_addGallery(r,t,e);break;case"vector":t396_addVector(r,t)}})),r.classList.remove("rendering"),r.classList.add("rendered"),r.dispatchEvent(new Event("artBoardRendered",{bubbles:!0,cancelable:!0}));var n=r.getAttribute("data-artboard-ovrflw");if(["visible","visibleX"].includes(n)&&(t396__setOverflowToAllRecords(),document.body.addEventListener("tStoreGalleryInitialized",(function(){t396__setOverflowToAllRecords()}))),"auto"===n){var a=Math.abs(r.offsetHeight-r.clientHeight);0!==a&&(r.style.paddingBottom=a+"px")}if(window.t396__isMobile||window.t396__isIPad){var l=document.createElement("style");l.textContent="@media only screen and (min-width:1366px) and (orientation:landscape) and (-webkit-min-device-pixel-ratio:2){.t396__carrier {background-attachment:scroll!important;}}",i.insertAdjacentElement("beforeend",l)}}}function t396_ab__renderView(t){if(t){for(var e=window.tn.ab_fields,i=document.getElementById("allrecords"),r,o=0;o<e.length;o++)t396_ab__renderViewOneField(t,e[o]);var n=t396_ab__getFieldValue(t,"height"),a=t396_ab__getHeight(t),l,d=t396__getCurrentScaleFactor(t.getAttribute("data-artboard-recid")),_=!!i&&"edit"===i.getAttribute("data-tilda-mode"),s="window"===t396_ab__getFieldValue(t,"upscale"),u,c,f;if(r=t396_ab__getFieldValue(t,"height_vh"),s&&!_&&r&&(u=parseInt(n,10)*d),n===a||u&&u>=a)c=0;else switch(t396_ab__getFieldValue(t,"valign")){case"top":default:c=0;break;case"center":c=u?parseFloat(((a-u)/2).toFixed(1)):parseFloat(((a-n)/2).toFixed(1));break;case"bottom":c=u?parseFloat((a-u).toFixed(1)):parseFloat((a-n).toFixed(1));break;case"stretch":c=0,n=a}t.setAttribute("data-artboard-proxy-min-offset-top",c),t.setAttribute("data-artboard-proxy-min-height",n),t.setAttribute("data-artboard-proxy-max-height",a);var g=t.querySelector(".t396__filter"),w=t.querySelector(".t396__carrier"),p;if(r=t396_ab__getFieldValue(t,"height_vh"),r=parseFloat(r),(window.t396__isMobile||window.t396__isIPad)&&r){var h=t396_ab__getWindowHeight(t)*r/100;t.style.height=h+"px",g&&(g.style.height=h+"px"),w&&(w.style.height=h+"px")}"hug"===t.getAttribute("data-artboard-heightmode")&&!r&&(t.style.height=n+"px",g&&(g.style.height=n+"px"),w&&(w.style.height=n+"px"))}}function t396__getCurrentScaleFactor(t){var e="ab"+t,i;return window.tn&&window.tn[e]&&window.tn[e].scaleFactor||window.tn_scale_factor}function t396__setScaleFactorForElements(t,e){var i=document.getElementById("rec"+t),r=i?i.querySelector(".t396__artboard"):null;if(r){var o=r.querySelectorAll(".t396__elem, .tn-group");Array.prototype.forEach.call(o,(function(t){t.scaleFactor=e}))}}function t396_addText(t,e){var i=t396_getEl(e);if(i){var r="top,left,width,height,container,axisx,axisy,widthunits,leftunits,topunits";i.setAttribute("data-fields",r),t396_elem__renderView(i)}}function t396_addImage(t,e){var i=t396_getEl(e);if(i){var r="img,width,filewidth,fileheight,top,left,container,axisx,axisy,widthunits,leftunits,topunits";i.setAttribute("data-fields",r),t396_elem__renderView(i);var o=i.querySelector("img");o&&(o.addEventListener("load",(function(){document.contains(o)&&(t396_elem__renderViewOneField(i,"top"),o.src&&setTimeout((function(){document.contains(o)&&(t396_elem__renderViewOneField(i,"top"),t396__updateAutoHeight(t))}),2e3))})),o.complete&&(t396_elem__renderViewOneField(i,"top"),o.src&&setTimeout((function(){document.contains(o)&&(t396_elem__renderViewOneField(i,"top"),t396__updateAutoHeight(t))}),2e3)),o.addEventListener("tuwidget_done",(function(){t396_elem__renderViewOneField(i,"top")})),setTimeout((function(){t396_changeFilterOnSafari(i)})))}}function t396_addShape(t,e){var i=t396_getEl(e);if(i){var r="width,height,top,left,";r+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits",i.setAttribute("data-fields",r),t396_elem__renderView(i)}}function t396_changeFilterOnSafari(t){var e;if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&(t396__checkContainBackdropFilter(t)&&"IntersectionObserver"in window)){var i=t.querySelector(".tn-atom"),r;new IntersectionObserver((function(e,i){e.forEach((function(e){if(e.isIntersecting){var r=e.target;i.unobserve(r),t396__processBackdropFilterOnImage(t)}}))})).observe(i)}}function t396__checkContainBackdropFilter(t){if(!t)return!1;var e=window.getComputedStyle(t).webkitBackdropFilter;if(e&&"none"!==e)return!0;var i=t.querySelector(".tn-atom__sbs-anim-wrapper, .tn-atom__prx-wrapper, .tn-atom__sticky-wrapper");if(!i)return!1;var r=window.getComputedStyle(i).webkitBackdropFilter;return r&&"none"!==r}function t396__processBackdropFilterOnImage(t){if(t){var e=t.getAttribute("data-animate-sbs-opts"),i=t.getAttribute("data-animate-prx")||t.getAttribute("data-animate-fix"),r=e||i,o=t.classList.contains("t396__elem--backdrop-filter-img-wrappered");r&&o||!r?t396__updateBackdropFilterOnImage(t):t.addEventListener("backdropFilterImgWrappered",(function(){t396__updateBackdropFilterOnImage(t)}))}}function t396__updateBackdropFilterOnImage(t){if(t){var e=t,i=e.querySelector("img"),r=e.querySelector(".tn-atom__sbs-anim-wrapper, .tn-atom__prx-wrapper, .tn-atom__sticky-wrapper"),o="";r&&(e=r,o=window.getComputedStyle(e).webkitBackdropFilter||""),e.style.webkitBackdropFilter="none",t396_waitForUploadImg(i,(function(){e.style.webkitBackdropFilter=o}))}}function t396_waitForUploadImg(t,e){if("y"===window.lazy)var i=setTimeout((function(){t.classList.contains("loaded")&&t.clientWidth&&t.src?(e(),clearTimeout(i)):t396_waitForUploadImg(t,e)}),300);else e()}function t396_addButton(t,e){var i=t396_getEl(e);if(!i)return null;var r="top,left,width,height,container,axisx,axisy,caption,leftunits,topunits";return i.setAttribute("data-fields",r),t396_elem__renderView(i),i}function t396_addVideo(t,e){var i=t396_getEl(e);if(i){var r="width,height,top,left,";r+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits",i.setAttribute("data-fields",r),t396_elem__renderView(i),t_onFuncLoad("t396_initVideo",(function(){t396_initVideo(i)}))}}function t396_addHtml(t,e){var i=t396_getEl(e);if(i){var r="width,height,top,left,";r+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits",i.setAttribute("data-fields",r),t396_elem__renderView(i)}}function t396_addTooltip(t,e){var i=t396_getEl(e);if(i){var r="width,height,top,left,";r+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits,tipposition",i.setAttribute("data-fields",r),t396_elem__renderView(i),t_onFuncLoad("t396_initTooltip",(function(){t396_initTooltip(i)}))}}function t396_addForm(t,e,i){var r=t396_getEl(e);if(r){var o="width,top,left,",n;o+="inputs,container,axisx,axisy,widthunits,leftunits,topunits",r.setAttribute("data-fields",o);var a=r.getAttribute("data-elem-id"),l=r.querySelector(".tn-atom__inputs-textarea");l&&(n=l.value),t_onFuncLoad("t_zeroForms__init",(function(){t396_elem__renderView(r),t_zeroForms__init(i,a,n),t396_elem__renderView(r)}))}}function t396_addGallery(t,e,i){var r=t396_getEl(e);if(r){var o="width,height,top,left,";o+="imgs,container,axisx,axisy,widthunits,heightunits,leftunits,topunits",r.setAttribute("data-fields",o),t396_elem__renderView(r);var n=r.getAttribute("data-elem-id");t_onFuncLoad("t_zeroGallery__init",(function(){t_zeroGallery__init(i,n)}))}}function t396_addVector(t,e){var i=t396_getEl(e);if(i){var r="width,filewidth,fileheight,top,left,container,axisx,axisy,widthunits,leftunits,topunits";i.setAttribute("data-fields",r),t396_elem__renderView(i)}}function t396_elem__getFieldValue(t,e){var i=t396_getEl(t);if(!i)return null;if(i.classList.contains("tn-group"))return t396_group__getFieldValue(i,e);var r=i.closest(".t396__artboard"),o=r.getAttribute("data-artboard-recid"),n="ab"+o,a;void 0===window.tn[n]&&(t396_initTNobj(o,r),t396_switchResolution(o,t396_detectResolution(o)));var l=window.tn[n].curResolution,d=window.tn[n].curResolution_max,_=window.tn[n].screens,s;if(!(s=l===d?i.getAttribute("data-field-"+e+"-value"):i.getAttribute("data-field-"+e+"-res-"+l+"-value"))&&""!==s)for(var u=0;u<_.length;u++){var c=_[u];if(!(c<=l)&&(s=c===d?i.getAttribute("data-field-"+e+"-value"):i.getAttribute("data-field-"+e+"-res-"+c+"-value")))break}var f=t396__parseGlobalStyleCSSVar(s);return f&&(s=f.fallback),s}function t396_elem__renderView(t){var e=t396_getEl(t),i=e?e.getAttribute("data-fields"):"";i&&(i=i.split(",")).forEach((function(t){t396_elem__renderViewOneField(e,t)}))}function t396_group__renderView(t){var e=t?t.getAttribute("data-fields"):"";e&&(e=e.split(",")).forEach((function(e){var i=t396_group__getFieldValue(t,e);switch(e){case"left":i=t396_elem__convertPosition__Local__toAbsolute(t,e,i),t.style.left=parseFloat(i).toFixed(1)+"px";break;case"top":i=t396_elem__convertPosition__Local__toAbsolute(t,e,i),t.style.top=parseFloat(i).toFixed(1)+"px";break;case"container":t396_elem__renderViewOneField(t,"left"),t396_elem__renderViewOneField(t,"top")}}))}function t396_elem__renderViewOneField(t,e){var i=t396_getEl(t);if(i){var r=document.getElementById("allrecords"),o=r?r.getAttribute("data-tilda-mode"):"",n,a="window"===t396_ab__getFieldValue(i.closest(".t396__artboard"),"upscale");if("yes"!==i.getAttribute("data-scale-off")||!a||"edit"===o){var l=t396_elem__getFieldValue(i,e),d,_=["fill","hug"],s=t396__isElementUsingCalcZoom(i);switch(e){case"left":l=t396_elem__convertPosition__Local__toAbsolute(i,e,l),l=s?t396__zoomifyValue(i,l):parseFloat(l).toFixed(1)+"px",i.style.left=l;break;case"top":l=t396_elem__convertPosition__Local__toAbsolute(i,e,l),l=s?t396__zoomifyValue(i,l):parseFloat(l).toFixed(1)+"px",i.style.top=l;break;case"width":d=i.getAttribute("data-elem-type");var u=t396_elem__getFieldValue(i,"widthmode"),c;if((c=t396_elem__getFieldValue(i,"textfit"))||("button"===d?c="fixedsize":"text"===d&&(c="autoheight")),("text"===d||"button"===d)&&"autowidth"===c)return void(i.style.width="auto");if(_.includes(u))return void(i.style.width="");switch(l=t396_elem__getWidth(i,l),i.style.width=parseFloat(l).toFixed(1)+"px",d){case"tooltip":var f=i.querySelectorAll(".tn-atom__pin-icon");Array.prototype.forEach.call(f,(function(t){var e=parseFloat(l).toFixed(1)+"px";t.style.width=e,t.style.height=e})),i.style.height=parseInt(l).toFixed(1)+"px";break;case"gallery":t396_elem__setGallerySize(i,"width",l)}break;case"height":d=i.getAttribute("data-elem-type");var g=t396_elem__getFieldValue(i,"heightmode"),c;if((c=t396_elem__getFieldValue(i,"textfit"))||("button"===d?c="fixedsize":"text"===d&&(c="autoheight")),("text"===d||"button"===d)&&["autowidth","autoheight","singleline"].includes(c))return void(i.style.height="auto");if(_.includes(g)&&"tooltip"!==d)return void(i.style.height="");if("tooltip"===d)return;l=t396_elem__getHeight(i,l),i.style.height=parseFloat(l).toFixed(1)+"px","gallery"===d&&t396_elem__setGallerySize(i,"height",l);break;case"container":t396_elem__renderViewOneField(i,"left"),t396_elem__renderViewOneField(i,"top");break;case"inputs":var w=i.querySelector(".tn-atom__inputs-textarea");l=w?w.value:"";try{window.t_zeroForms__renderForm(i,l)}catch(p){}}"width"!==e&&"height"!==e&&"fontsize"!==e&&"fontfamily"!==e&&"letterspacing"!==e&&"fontweight"!==e&&"img"!==e||(t396_elem__renderViewOneField(i,"left"),t396_elem__renderViewOneField(i,"top"))}}}function t396_elem__setGallerySize(t,e,i){var r=i,o=t396_elem__getFieldValue(t,"borderwidth"),n=t396_elem__getFieldValue(t,"borderstyle");n&&o&&"none"!==n||(o=0),r-=2*o;var a=Math.round(parseFloat(r))+"px";a="width"===e||"height"===e?t396__zoomifyValue(t,a,{round:!0}):t396__zoomifyValue(t,a);var l=t.querySelector(".t-slds__main"),d=t.querySelectorAll(".tn-atom__slds-img");t.style[e]=a,l&&(l.style[e]=a),Array.prototype.forEach.call(d,(function(t){t.style[e]=a}))}function t396_elem__convertPosition__Local__toAbsolute(t,e,i){var r=t396_getEl(t);if(!r)return null;var o=r.closest(".t396__artboard"),n=o.getAttribute("data-artboard-recid"),a="ab"+n,l=t396_ab__getFieldValue(o,"valign"),d="window"===t396_ab__getFieldValue(o,"upscale"),_=document.getElementById("allrecords"),s,u="edit"===(_?_.getAttribute("data-tilda-mode"):""),c=t396_isOnlyScalableBrowser(),f=!u&&d&&c,g=!u&&d&&!c,w=t396_elem__getFieldValue(r,"axisy"),p=t396_elem__getFieldValue(r,"axisx"),h=t396_elem__getFieldValue(r,"container"),m=r.classList.contains("tn-group")&&"physical"===t396_group__getFieldValue(r,"type"),b=r.parentNode.closest(".tn-group"),v="physical"===t396_group__getFieldValue(b,"type");m&&(h=h||"grid");var y=parseInt(i),F,A,S,x,V,E,z,k=t396__getCurrentScaleFactor(n);switch(e){case"left":var I,B=t396__getWindowDimensions().width,L;if(F="grid"===h?"grid":"window",A="grid"===h?window.tn[a].grid_offset_left:0,V="grid"===h?window.tn[a].grid_width:B,"%"===t396_elem__getFieldValue(r,"leftunits")&&(y=t396_roundFloat(V*y/100)),v){var O=parseInt(t396_group__getFieldValue(b,"left"),10),q;"%"===t396_group__getFieldValue(b,"leftunits")&&(O=t396_roundFloat(V*O/100)),y-=O;break}!u&&d?"grid"===h&&c&&(y*=k):y=A+y,"center"===p&&(x=t396_elem__getWidth(r),f&&"window"!==F&&(V*=k,x*=k),y=V/2-x/2+y),"right"===p&&(x=t396_elem__getWidth(r),f&&"window"!==F&&(V*=k,x*=k),y=V-x+y),f&&"window"!==F&&(y+=((x=t396_elem__getWidth(r))*k-x)/2);break;case"top":var T=r.closest(".t396__artboard"),R=T?T.getAttribute("data-artboard-proxy-min-offset-top"):"0",W=T?T.getAttribute("data-artboard-proxy-min-height"):"0",C=T?T.getAttribute("data-artboard-proxy-max-height"):"0",H=function t(e){var i=t396_elem__getHeight(e);if(e&&"image"===e.getAttribute("data-elem-type")){var r=t396_elem__getWidth(e),o=t396_elem__getFieldValue(e,"filewidth"),n=t396_elem__getFieldValue(e,"fileheight"),a;if(o&&n)i=r/(parseInt(o)/parseInt(n))}return i},P;if(F="grid"===h?"grid":"window",S="grid"===h?parseFloat(R):0,z="grid"===h?parseFloat(W):parseFloat(C),"%"===t396_elem__getFieldValue(r,"topunits")&&(y=z*(y/100)),v){var M=parseInt(t396_group__getFieldValue(b,"top"),10),N;"%"===t396_group__getFieldValue(b,"topunits")&&(M=t396_roundFloat(z*M/100)),y-=M;break}f&&"window"!==F&&(y*=k),g&&"window"!==F&&(S="stretch"===l?0:S/k),y=S+y;var D=t396_ab__getFieldValue(T,"height_vh"),j=t396_ab__getFieldValue(T,"height"),G=t396_ab__getHeight(T),Z;if(d&&!u&&D&&(Z=parseInt(j,10)*k),"center"===w&&(E=H(r),f&&"window"!==F&&("stretch"!==l?z*=k:z=Z?Z>G?Z:G:T.clientHeight,E*=k),u||!d||c||"window"===F||"stretch"!==l||(z=Z?Z>G?Z:G:T.clientHeight,z/=k),y=z/2-E/2+y),"bottom"===w&&(E=H(r),f&&"window"!==F&&("stretch"!==l?z*=k:z=Z?Z>G?Z:G:T.clientHeight,E*=k),u||!d||c||"window"===F||"stretch"!==l||(z=Z?Z>G?Z:G:T.clientHeight,z/=k),y=z-E+y),f&&"window"!==F){var U=((E=H(r))*k-E)/2;y+=U=Math.round(U)}}return y}function t396_elem_findFirstLevelParentGroup(t){for(var e=t.closest(".t396__group");e;){var i=e.parentElement.closest(".t396__group");if(!i)break;e=i}return e}function t396_ab__getFieldValue(t,e){if(!t)return null;var i,r=t.getAttribute("data-artboard-recid"),o="ab"+r,n;void 0===window.tn[o]&&(t396_initTNobj(r,t),t396_switchResolution(r,t396_detectResolution(r)));var a=window.tn[o].curResolution,l=window.tn[o].curResolution_max,d=window.tn[o].screens;if(null===(i=a===l?t.getAttribute("data-artboard-"+e):t.getAttribute("data-artboard-"+e+"-res-"+a)))for(var _=0;_<d.length;_++){var s=d[_];if(!(s<=a)&&null!==(i=s===l?t.getAttribute("data-artboard-"+e):t.getAttribute("data-artboard-"+e+"-res-"+s)))break}var u=t396__parseGlobalStyleCSSVar(i);return u&&(i=u.fallback),i}function t396_ab__renderViewOneField(t,e){t396_ab__getFieldValue(t,e)}function t396_core__getFieldValue(t,e){return t.classList.contains("t396__elem")?t396_elem__getFieldValue(t,e):t396_group__getFieldValue(t,e)}function t396_group__getFieldValue(t,e){if(!t)return null;var i,r,o="ab"+t.closest(".t396__artboard").getAttribute("data-artboard-recid"),n=window.tn[o].curResolution,a=window.tn[o].curResolution_max,l=window.tn[o].screens,d=["widthmode","heightmode","flex"].includes(e)?"":"-value";if(null===(i=n===a?t.getAttribute("data-group-"+e+d):t.getAttribute("data-group-"+e+"-res-"+n+d)))for(var _=0;_<l.length;_++){var s=l[_];if(!(s<=n)&&null!==(i=s===a?t.getAttribute("data-group-"+e+d):t.getAttribute("data-group-"+e+"-res-"+s+d)))break}var u=t396__parseGlobalStyleCSSVar(i);return u&&(i=u.fallback),i}function t396_allgroups__renderView(t){if(t){var e=t.querySelectorAll(".tn-group"),i=Array.prototype.filter.call(e,(function(t){return"physical"===t396_group__getFieldValue(t,"type")}));Array.prototype.forEach.call(i,(function(t){t396_group__renderView(t),t396_allgroups__renderViewAutolayout(t)}))}}function t396_allgroups__renderViewAutolayout(t){if(t&&t.classList.contains("t396__group-flex")){var e=t396_group__getFieldValue(t,"widthmode"),i=t396_group__getFieldValue(t,"heightmode");"fill"===e?(t.style.width="100%",t.style.flexShrink="1"):(t.style.width="hug"===e?"min-content":"",t.style.height="hug"===i?"initial":"",t.style.flexShrink="")}}function t396_allelems__renderView(t){if(t){var e=t.querySelectorAll(".tn-elem");Array.prototype.forEach.call(e,(function(t){t396_elem__renderView(t)}))}}function t396_ab__getHeight(t,e){var i=e;i||(i=t396_ab__getFieldValue(t,"height")),i=parseFloat(i);var r=t396_ab__getFieldValue(t,"height_vh");if(r&&(r=parseFloat(r),!isNaN(r))){var o=t396_ab__getWindowHeight(t)*r/100;i<o&&(i=o)}return i}function t396_elem__getWidth(t,e){var i=t396_getEl(t),r,o,n="ab"+i.closest(".t396__artboard").getAttribute("data-artboard-recid"),a=e,l,d,_,s;(a||(a=t396_elem__getFieldValue(i,"width")),a=parseFloat(a),"%"===t396_elem__getFieldValue(i,"widthunits"))&&(a="window"===t396_elem__getFieldValue(i,"container")?t396__getWindowDimensions().width*a/100:window.tn[n].grid_width*a/100);return a}function t396_elem__getHeight(t,e){var i=t396_getEl(t),r=e;r||(r=t396_elem__getFieldValue(i,"height")),r=parseFloat(r);var o=i.getAttribute("data-elem-type"),n=t396_elem__getFieldValue(i,"textfit"),a;if(n||("button"===o?n="fixedsize":"text"===o&&(n="autoheight")),"shape"===o||"video"===o||"html"===o||"gallery"===o||("text"===o||"button"===o)&&"fixedsize"===n){var l;if("%"===t396_elem__getFieldValue(i,"heightunits")){var d=i.closest(".t396__artboard"),_=d?d.getAttribute("data-artboard-proxy-min-height"):"0",s=d?d.getAttribute("data-artboard-proxy-max-height"):"0",u=parseFloat(_),c=parseFloat(s),f;r="window"===t396_elem__getFieldValue(i,"container")?c*(r/100):u*(r/100)}return r}if("text"===o){var g=i.querySelector(".tn-atom");g&&(g.style.lineHeight="")}return i.clientHeight}function t396_roundFloat(t){return Math.round(100*t)/100}function t396_removeElementFromDOM(t){var e=t396_getEl(t);e&&e.parentNode&&e.parentNode.removeChild(e)}function t396_getEl(t){return window.jQuery&&t instanceof jQuery?t.length?t.get(0):null:t}function t396_isBlockVisible(t){var e=window.innerWidth,i=t.getAttribute("data-screen-min"),r=t.getAttribute("data-screen-max");return!(i&&e<parseInt(i,10))&&!(r&&e>parseInt(r,10))}function t396__getBlockEditorWidth(){if(!window.tn.isEditMode)return 0;var t,e=window.getComputedStyle(document.body).getPropertyValue("--page-view-width");return e&&"100%"!==e?parseInt(e,10):0}function t396__isAllZeroBlocksRendered(t,e){void 0===e&&(e=0);var i=t396__getZeroBlocks(),r=document.getElementById("allrecords"),o=r&&"edit"===r.getAttribute("data-tilda-mode"),n="ready"===document.body.getAttribute("data-ready-status"),a=!1;if(i.length||!o||n){if(!i.length&&o&&n)return e>30?void t():void setTimeout((function(){t396__isAllZeroBlocksRendered(t,e+1)}),100);var l=i.map((function(t){return t.artboard})),d;if(l.length>0&&l.every((function(t){return t.classList.contains("rendered")})))t();else{var _=l.filter((function(t){return t.classList.contains("rendered")}));l.forEach((function(e){e.classList.contains("rendered")||e.addEventListener("artBoardRendered",(function(){_.push(e),_.length!==l.length||a||t()}))})),setTimeout((function(){a=!0,_.length!==l.length&&t()}),3e3)}}else{var s=new MutationObserver((function(e){e.forEach((function(e){"ready"===e.target.getAttribute("data-ready-status")&&(s.disconnect(),t396__isAllZeroBlocksRendered(t))}))}));s.observe(document.body,{attributes:!0,attributeFilter:["data-ready-status"]})}}function t396__processElementsTransform(t){var e=t396__initFastDOM(),i=[];e.read((function(){Array.prototype.forEach.call(t,(function(t){var e=t.getAttribute("data-elem-type");if("text"===e||"image"===e||"shape"===e||"button"===e||"vector"===e){var r=getComputedStyle(t),o=r.backdropFilter&&"none"!==r.backdropFilter||r.webkitBackdropFilter&&"none"!==r.webkitBackdropFilter,n=t.getAttribute("data-animate-style");if(o&&!n){var a=t.querySelector(".tn-atom"),l=a?window.getComputedStyle(a).transform:"none";"matrix(1, 0, 0, 1, 0, 0)"===l&&(l="none"),"none"!==l&&i.push({element:t,atom:a,atomTransform:l})}}}))})),e.write((function(){i.forEach((function(t){t.atom.style.transform="none",t.element.style.transform=t.atomTransform}))}))}function t396__fixElementsLineHeights(t){var e=t396__initFastDOM(),i=[];e.read((function(){Array.prototype.forEach.call(t,(function(t){var e;if("text"===t.getAttribute("data-elem-type")){var r=t.querySelector(".tn-atom");if(r&&!t396__isInsideGroupWithZoom(t)){var o=t.style.zoom,n=r.style.webkitTextSizeAdjust,a=r.style.fontSize;i.push({element:t,atom:r,zoom:o,textSizeAdjust:n,fontSize:a})}}}))})),e.write((function(){i.forEach((function(t){t.atom.style.removeProperty("line-height"),window.t396__isSafari&&t.zoom&&(t.atom.style.webkitTextSizeAdjust="none",t.atom.style.fontSize="",t.element.style.zoom="")}))})),e.read((function(){i.forEach((function(t){t.computedLineHeight=parseFloat(window.getComputedStyle(t.atom).lineHeight)}))})),e.write((function(){i.forEach((function(t){var e=t.computedLineHeight;window.t396__isSafari&&t.zoom&&(t.atom.style.webkitTextSizeAdjust=t.textSizeAdjust,t.atom.style.fontSize=t.fontSize,t.zoom&&(t.element.style.zoom=t.zoom)),e&&!isNaN(e)&&(t.atom.style.lineHeight=Math.round(e)+"px")}))}))}function t396__fixElementsFontSizes(t){var e;if(!window.t396__isMobile&&window.t396__isIPad||window.t396__isFacebookMessengerInApp||window.t396__isInstagramInApp){var i=t396__initFastDOM(),r=[];i.read((function(){Array.prototype.forEach.call(t,(function(t){var e=t.getAttribute("data-elem-type");if("text"===e||"button"===e){var i=t.querySelector(".tn-atom");if(i){var o=t396_elem_findFirstLevelParentGroup(t),n={element:t,atom:i,zoom:1,elementType:e};if(o&&o.style.zoom&&(n.zoom=parseFloat(o.style.zoom)),1!==n.zoom){var a=t396_elem__getFieldValue(t,"fontsize");a&&(n.fieldFontSize=parseFloat(a)),r.push(n)}}}}))})),i.write((function(){r.forEach((function(t){t.atom.style.fontSize=""}))})),i.read((function(){r.forEach((function(t){var e=parseFloat(window.getComputedStyle(t.atom).fontSize),i=t.fieldFontSize&&Math.abs(t.fieldFontSize-e)<=.01,r=Number.isInteger(e);t.correctFontSize=i||r?"calc("+e+"px * var(--zoom, 1))":"calc("+e+"px * var(--zoom, 1) * var(--zoom, 1))"}))})),i.write((function(){r.forEach((function(t){t.atom.style.fontSize=t.correctFontSize}))}))}}function t396__initFastDOM(){return{read:function t(e){e()},write:function t(e){e()}}}function t396__applyFixesForAllElements(){var t=document.querySelectorAll(".t396__elem"),e=window.t396__isSafari||window.t396__isFacebookMessengerInApp||window.t396__isInstagramInApp;document.fonts&&e?document.fonts.ready.then((function(){t396__fixElementsFontSizes(t),t396__fixElementsLineHeights(t)})):t396__fixElementsLineHeights(t),t396__processElementsTransform(t)}function t396__zoomifyValue(t,e,i){void 0===i&&(i={});var r,o=e+(String(e).endsWith("px")?"":"px"),n;if(t396__isInsideGroupWithZoom(t))return o;var a=window.CSS&&window.CSS.supports&&CSS.supports("width","round(10px, 1px)");return i.round&&a?"round("+o+" * var(--zoom, 1), 1px)":"calc("+o+" * var(--zoom, 1))"}function t396__isInPopup(t){if(!t)return!1;var e=t.getAttribute("data-artboard-recid"),i,r;return document.getElementById("rec"+e).parentNode.classList.contains("t-popup__container")}function t396__waitForPopup(){return new Promise((function(t){var e=0,i=5;function r(){var i=document.querySelector(".t-popup_show");i?t(i):e>=5?t(null):(e++,setTimeout(r,100*e))}r()}))}function t396__shouldUseVisualViewportHeight(){return"visualViewport"in window&&window.t396__isMobile&&window.t396__isSafari}function t396__getRootZone(){var t=document.getElementById("allrecords"),e;return t&&t.getAttribute("data-tilda-root-zone")||"com"}function t396__intializeUndercut(t){if(t&&t.querySelector(".ql-undercut")){var e,i="https://static.tildacdn."+t396__getRootZone()+"/js/tilda-undercut-1.0.min.js";t_onFuncLoad("t_loadJsFile",(function(){t_loadJsFile(i,(function(){t_onFuncLoad("t_quillUndercut_parseNodes",(function(){t_quillUndercut_parseNodes(t)}))}))}))}}function t396__initializeArtboardOverflow(t,e){if(e&&t){var i=window.getComputedStyle(e).getPropertyValue("overflow");if("auto"===i){var r=t.getAttribute("data-tilda-lazy");"y"!==window.lazy&&"yes"!==r||t_onFuncLoad("t_lazyload_update",(function(){e.addEventListener("scroll",t_throttle(window.t_lazyload_update,500))}))}""!==window.location.hash&&"visible"===i&&(e.style.overflow="hidden",setTimeout((function(){e.style.overflow="visible"}),1))}}function t396__initializeAnchorLinkOverflowFix(){var t=document.querySelectorAll('[data-artboard-ovrflw="visible"]');t.length&&document.addEventListener("click",(function(e){var i;e.target.closest('a[href^="#"]')&&(t.forEach((function(t){t.style.overflow="hidden"})),setTimeout((function(){t.forEach((function(t){t.style.overflow="visible"}))})))}))};
function t_popup__trapFocus(t){var e=t.querySelectorAll('a, button, input:not([type="hidden"]):not(.js-form-spec-comments), select, textarea, embed, video, iframe, [tabindex="0"]'),o=e[0],p=e[e.length-1];document.addEventListener("keydown",(function(t){if(document.body.classList.contains("t-body_popupshowed")){var e="Tab"===t.key||9===t.keyCode,n;(e||e&&t.shiftKey)&&(t.shiftKey&&document.activeElement.classList.contains("t-popup_show")&&p.focus(),"Tab"!==t.key||t.shiftKey||document.activeElement!==p||(t.preventDefault(),o.focus()),"Tab"===t.key&&t.shiftKey&&document.activeElement===o&&(t.preventDefault(),p.focus()))}}))}function t_popup__addAttributesForAccessibility(t){var e=document.querySelectorAll('a[href="'+t+'"]');Array.prototype.forEach.call(e,(function(t){t&&(t.setAttribute("role","button"),t.setAttribute("aria-haspopup","dialog"))}))}function t_popup__resizePopup(t){var e=document.getElementById("rec"+t);if(e){var o=e.querySelector(".t-popup__container");if(o){var p=getComputedStyle(o,null),n=parseInt(p.paddingTop)||0,r=parseInt(p.paddingBottom)||0,s=o.clientHeight-(n+r),c=120,u=e.getAttribute("data-parenttplid")||e.getAttribute("data-record-type"),a,i="1093"===u||"121"===u&&e.querySelector(".t1093");"364"!==u&&"365"!==u||(c=30),("868"===u||"331"===u||"358"===u||"1013"===u||"746"===u||i)&&(c=0),s>window.innerHeight-c?o.classList.add("t-popup__container-static"):o.classList.remove("t-popup__container-static")}}}function t_popup__showPopup(t){t&&(t.style.display="block"),setTimeout((function(){t.focus();var e=t?t.querySelector(".t-popup__container"):null;e&&e.classList.add("t-popup__container-animated"),t&&t.classList.add("t-popup_show"),t_onFuncLoad("t_popup__trapFocus",(function(){t_popup__trapFocus(t)}))}),50)}function t_popup__closePopup(t){var e=document.querySelector(".t-popup.t-popup_show"),o=t.querySelector(".t-popup__container");if(t===e){var p=document.body;p.dispatchEvent(new CustomEvent("popupHidden")),p.classList.remove("t-body_popupshowed"),p.classList.remove("t-quiz__body_popupshowed")}t.classList.remove("t-popup_show"),o.style.removeProperty("transition"),o.classList.remove("t-popup__container_no-transform"),setTimeout((function(){var t;document.querySelectorAll(".t-popup:not(.t-popup_show)").forEach((function(t){t.style.display="none"}))}),300),t_popup__addFocusOnTriggerButton()}function t_popup__addClassOnTriggerButton(t,e){var o=document.querySelectorAll(".t-popup__triggered-btn");Array.prototype.forEach.call(o,(function(t){t.classList.remove("t-popup__triggered-btn")})),t.addEventListener("keydown",(function(t){if(13===t.keyCode){var o=t.target,p=!!o.closest('a[href="'+e+'"]')&&o;if(!p)return;window.isMobile||p.classList.add("t-popup__triggered-btn")}}))}function t_popup__addFocusOnTriggerButton(){var t=document.querySelector(".t-popup__triggered-btn");t&&!t.classList.contains("t724__opener")&&(t.focus(),t.classList.remove("t-popup__triggered-btn"))}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(Element.prototype.matches.call(e,t))return e;e=e.parentElement||e.parentNode}return null});
function t_sldsInit(t,e){var s=t_slds__getRec(t);if(s){var r=s.querySelector(".t-slds__items-wrapper"),i;if(r)if(!r.getAttribute("data-slider-initialized")){var a=r.classList.contains("js-feed-container"),l=s.querySelectorAll(".t-slds__item:not(.t-slds__item_dummy)");if(l){e&&e.randomSort&&(l=t_slds_randomSortElements(l));var d=l.length,o=l[0],n=l[l.length-1],c=window.innerWidth,_=parseInt(r.getAttribute("data-slider-items-in-row"),10)||0,u=r.getAttribute("data-slider-with-cycle"),p=parseFloat(r.getAttribute("data-slider-transition")),f;if(Array.prototype.forEach.call(l,(function(t,e){t.setAttribute("data-slide-index",e+1)})),"true"!==r.getAttribute("data-slider-stop")){p||0===p||(p=300),isNaN(p)&&r.setAttribute("data-slider-transition","300"),r.classList.contains("t-slds_animated-fast")||r.classList.contains("t-slds_animated-slow")||r.classList.contains("t-slds_animated-none")||r.classList.add("t-slds_animated-fast");var m=_;t_slds_setItemsInRow(t),t_slds_changeImageUrl(t);var y=8===document.documentMode||9===document.documentMode;y&&(r.classList.remove("t-slds_animated-fast"),r.classList.remove("t-slds_animated-slow"),r.classList.add("t-slds_animated-none"),r.classList.add("t-slds_ie"),r.setAttribute("data-slider-correct-height","true"),r.setAttribute("data-slider-items-in-row",1)),r.setAttribute("data-slider-initialized","true"),r.getAttribute("data-slider-totalslides")||r.setAttribute("data-slider-totalslides",d);var v=1,g=r.getAttribute("data-slider-pos");g?v=parseInt(g,10):r.setAttribute("data-slider-pos",1),r.setAttribute("data-slider-cycle",""),r.setAttribute("data-slider-animated",""),a||t_slds__createDummies(o,n,r),_=parseInt(r.getAttribute("data-slider-items-in-row"),10)||0;var b=s.querySelectorAll(".t-slds__arrow_wrapper-right");b.length&&Array.prototype.forEach.call(b,(function(t){t.style.display="false"===u&&d-_<=0?"none":""})),a||t_slds_SliderWidth(t),"true"==r.getAttribute("data-slider-correct-height")&&t_slds_SliderHeight(t),t_slds_SliderArrowsHeight(t),t_slds_ActiveSlide(t,v,d),t_slds_ActiveCaption(t,v,d),a?c>960&&("true"===r.getAttribute("data-feeds-posts-loaded")?(t_slds__initFeedsSlider(t,s,e),t_slds_initSliderControls(t,e)):document.addEventListener("feedsLoadPosts",(function(){t_slds__initFeedsSlider(t,s,e),t_slds_initSliderControls(t,e)}))):(y||t_slds_onHammerLoad("Hammer",(function(){t_slds_initSliderSwipe(t,d,c)})),t_slds_initSliderControls(t,e),t_slds_updateSlider(t)),r.getAttribute("data-slider-timeout")>0?t_slds_initAutoPlay(t,v,d,e):r.addEventListener("slideAutoplayTimerReady",(function(){r.getAttribute("data-slider-timeout")>0&&t_slds_initAutoPlay(t,v,d,e)})),s.querySelectorAll(".t-slds__item-loaded").length<d+2&&t_slds_UpdateImages(t,v),"yes"==r.getAttribute("data-slider-arrows-nearpic")&&t_slds_positionArrows(t);var h=s.querySelectorAll(".t-slds");h.length&&Array.prototype.forEach.call(h,(function(t){t.style.visibility=""})),t_slds__setTabindexForFocusableElements(t),s.removeEventListener("displayChanged",t_slds_updateOnDisplayChange),s.addEventListener("displayChanged",t_slds_updateOnDisplayChange(t,m)),a&&(s.removeEventListener("displayChanged",t_slds_updateFeedsSliderOnResize),s.addEventListener("displayChanged",(function(){t_slds_updateFeedsSliderOnResize(t,s,e)}))),window.addEventListener("resize",t_throttle((function(){setTimeout((function(){t_slds_setItemsInRow(t,m),t_slds_updateSlider(t),t_slds_positionArrows(t),a&&t_slds_updateFeedsSliderOnResize(t,s,e)}),100)}))),window.t_slds__isiOS&&("complete"===document.readyState?t_slds__hideMobileSlides(s.querySelector(".t-slds__item_active")):window.addEventListener("load",(function(){t_slds__hideMobileSlides(s.querySelector(".t-slds__item_active"))}))),window.addEventListener("load",(function(){"true"==r.getAttribute("data-slider-correct-height")&&t_slds_UpdateSliderHeight(t),t_slds_UpdateSliderArrowsHeight(t)})),setTimeout((function(){t_slds_UpdateSliderArrowsHeight(t)}),500);var A=document.querySelector("#allrecords");A&&A.addEventListener("allRecPaddingInit",(function(){t_slds_updateSlider(t)})),document.removeEventListener("click",t_slds__removeAutoplayByVideo),document.addEventListener("click",t_slds__removeAutoplayByVideo)}}}}}function t_slds__removeAutoplayByVideo(t){var e=t.target.closest(".t-slds__item"),s=null==e?void 0:e.querySelector("[data-slider-video-type], [data-videolazy-type], iframe");if(s){var r=s.closest(".t-slds__items-wrapper"),i;if(r)r.getAttribute("data-slider-interval-id")&&(r.setAttribute("data-slider-stopped","yes"),r.setAttribute("data-slider-stopped-by-video","y"))}}function t_slds__initFeedsSlider(t,e){var s=e.querySelector(".t-slds__items-wrapper");if(s){var r=e.querySelectorAll(".t-slds__item:not(.t-slds__item_dummy)"),i=parseInt(s.getAttribute("data-slider-totalslides"),10)||0,a=r[0],l=r[r.length-1],d=s.getAttribute("data-slider-with-cycle");t_slds__createDummies(a,l,s),t_slds_updateSlider(t);var o=parseInt(s.getAttribute("data-slider-items-in-row"),10)||0,n=e.querySelectorAll(".t-slds__arrow_wrapper-right");n.length&&Array.prototype.forEach.call(n,(function(t){t.style.display="false"===d&&i-o<=0?"none":""})),"true"==s.getAttribute("data-slider-correct-height")&&t_slds_SliderHeight(t)}}function t_slds__createDummies(t,e,s){var r,i=s.querySelectorAll(".t-slds__item:not(.t-slds__item_dummy)").length,a=parseInt(s.getAttribute("data-slider-items-in-row"),10)||0,l=s.getAttribute("data-slider-with-cycle"),d=s.classList.contains("js-feed-container"),o=!1,n=!1,c,_;if(t&&(c=t.querySelector('[data-zoomable="yes"]'))&&(o=!0,c.classList.contains("t-zoomable")&&c.classList.remove("t-zoomable"),c.removeAttribute("data-zoomable")),e&&(_=e.querySelector('[data-zoomable="yes"]'))&&(n=!0,_.classList.contains("t-zoomable")&&_.classList.remove("t-zoomable"),_.removeAttribute("data-zoomable")),e&&0==s.querySelectorAll('.t-slds__item[data-slide-index="0"]').length){var u=e.cloneNode(!0);u.setAttribute("data-slide-index","0"),u.setAttribute("aria-hidden","true");var p=t.parentNode;p.insertBefore(u,t);var f=p.querySelectorAll('[data-slide-index="0"] [field]');f.length&&Array.prototype.forEach.call(f,(function(t){t.removeAttribute("field")}))}if(!d&&t&&!s.querySelector('.t-slds__item[data-slide-index="'+(i+1)+'"]')){var m=t.cloneNode(!0);if(m.setAttribute("data-slide-index",i+1),m.classList.remove("t-slds__item_active"),m.setAttribute("aria-hidden","true"),e.insertAdjacentElement("afterend",m),e.classList.add("t-slds__item-loaded"),a>0&&"true"===l)for(var y=t,v=e,g=0;g<a-1;g++){var b=y.nextElementSibling.cloneNode(!0);b.setAttribute("data-slide-index",i+g+1),v.nextElementSibling.insertAdjacentElement("afterend",b),v=v.nextElementSibling,y=y.nextElementSibling}}o&&c&&(c.classList.add("t-zoomable"),c.setAttribute("data-zoomable","yes")),n&&_&&(_.classList.add("t-zoomable"),_.setAttribute("data-zoomable","yes"))}function t_slds__hideMobileSlides(t){if(t){var e=t.closest(".t-slds__items-wrapper"),s=e&&getComputedStyle(e);if(!s||"scroll"!==s.overflowX||"flex"!==s.display){var r=Array.prototype.slice.call(e.querySelectorAll(".t-slds__item:not(.t-slds__item_dummy)")),i=document.documentElement.clientWidth>960?5:3;if(!(r.length<=2*i)){for(var a=t.getAttribute("data-slide-index"),l=[a=parseInt(a,10)],d=1;d<i;d++)a+d<=r.length?l.push(a+d):l.push(d),a-d>0?l.push(a-d):l.push(r.length+1-d);var o="t-slds__item-innactive";r.forEach((function(t){var e;l.some((function(e){return parseInt(t.getAttribute("data-slide-index"),10)===e}))?t.classList.remove(o):t.classList.add(o)}))}}}}function t_slds_updateOnDisplayChange(t,e){t_throttle((function(){t_slds_setItemsInRow(t,e),t_slds_updateSlider(t),t_slds_positionArrows(t)}))}function t_slds_updateFeedsSliderOnResize(t,e,s){var r=e.querySelector(".t-slds__items-wrapper"),i;r&&(r.classList.contains("js-feed-container")&&(window.innerWidth>960?"true"===r.getAttribute("data-feeds-posts-loaded")?(t_slds__initFeedsSlider(t,e,s),t_slds_initSliderControls(t,s)):document.addEventListener("feedsLoadPosts",(function(){t_slds__initFeedsSlider(t,e,s),t_slds_initSliderControls(t,s)})):r.style.transform="translateX(0)"))}function t_slds_setItemsInRow(t,e){var s=t_slds__getRec(t);if(s){var r=s.querySelector(".t-slds__items-wrapper"),i,a;if(r)(r.getAttribute("data-slider-items-in-row")||0)&&(window.innerWidth<=960&&(a=2),window.innerWidth<=640&&(a=1),window.innerWidth>960&&(a=e)),a&&r.setAttribute("data-slider-items-in-row",a)}}function t_slds_initSliderControls(t,e){var s=t_slds__getRec(t);if(s){var r=s.querySelector(".t-slds__items-wrapper");if(r){var i=r.getAttribute("data-slider-items-in-row")||0,a=s.querySelector(".t-slds__container .t-slds__item"),l=s.querySelector(".t-slds__container"),d=i>0&&a&&l?a.offsetWidth:l.offsetWidth,o;if("true"!==r.getAttribute("data-slider-stop")){r.style.transform="translateX(-"+d+"px)";var n=s.querySelectorAll(".t-slds__arrow_wrapper");n.length&&Array.prototype.forEach.call(n,(function(i){i.addEventListener("click",(function(){var i=t_slds_getCurrentTranslate(s),a=r.getAttribute("data-slider-animated"),l=parseFloat(r.getAttribute("data-slider-pos")),d=parseFloat(r.getAttribute("data-slider-totalslides")),o=r.getAttribute("data-slider-with-cycle"),n="",c;""==a&&(r.setAttribute("data-slider-animated","yes"),"left"===this.getAttribute("data-slide-direction")?"false"==o&&1==l?l=1:l--:"false"==o&&l==d?l=d:l++,r.setAttribute("data-slider-pos",l),l!=d+1&&0!=l||(n="yes"),r.setAttribute("data-slider-cycle",n),t_slideMoveWithoutAnimation(t,!1,e,i));t_slds_updateSlider(t)}))}));var c=s.querySelectorAll(".t-slds__bullet");c.length&&Array.prototype.forEach.call(c,(function(i){i.addEventListener("click",(function(){var a=parseInt(i.getAttribute("data-slide-bullet-for"),10),l;if(parseInt(r.getAttribute("data-slider-pos"),10)!==a){var d=t_slds_getCurrentTranslate(s);r.setAttribute("data-slider-pos",a),t_slideMoveWithoutAnimation(t,!1,e,d),t_slds_updateSlider(t)}}))}))}}}}function t_slds_animate(t,e,s){var r=performance.now();requestAnimationFrame((function i(a){var l=(a-r)/s;l>1&&(l=1);var d=t(l);e(d),l<1?requestAnimationFrame(i):"y"!==window.lazy&&"yes"!==document.querySelector("#allrecords").getAttribute("data-tilda-lazy")||t_slds_onHammerLoad("t_lazyload_update",(function(){t_lazyload_update()}))}))}function t_slide_MoveAnimation(t,e,s,r){if(t){t.style.transition="height ease-in-out .5s, transform ease-in-out 0s";var i=-Math.abs(e*s),a=-parseInt(getComputedStyle(t).transform.match(/\d+/)[0]),l=a-i;0!==l&&t_slds_animate((function(t){return t}),(function(e){t.style.transform="translateX("+(a-l*e)+"px)"}),r)}}function t_slideMoveWithoutAnimation(t,e,s){var r=t_slds__getRec(t);if(r){var i=r.querySelector(".t-slds__items-wrapper");if(i){var a=parseFloat(i.getAttribute("data-slider-pos")),l,d=(i.getAttribute("data-slider-items-in-row")||0)>0?r.querySelector(".t-slds__container .t-slds__item").offsetWidth:r.querySelector(".t-slds__container").offsetWidth,o=parseFloat(i.getAttribute("data-slider-totalslides")),n=i.classList.contains("t-slds_animated-none"),c,_;a>o+1&&(a=1);var u=r.classList.contains("t396__elem");if(u&&("function"==typeof window.CustomEvent?(c=new CustomEvent("tildaSldsMoveSlideStart"),_=new CustomEvent("tildaSldsMoveSlideEnd")):((c=document.createEvent("CustomEvent")).initCustomEvent("tildaSldsMoveSlideStart",!0,!0),(_=document.createEvent("CustomEvent")).initCustomEvent("tildaSldsMoveSlideEnd",!0,!0)),r.dispatchEvent(c)),n){var p=r.querySelector(".t-slds__item_active"),f=r.querySelectorAll(".t-slds__item");if(p&&0===r.querySelectorAll(".t-slds__item_dummy").length){var m=p.cloneNode(!0),y;m.classList.add("t-slds__item_dummy"),m.style.position="absolute",m.style.left=d*a+"px",i.appendChild(m),(y=r.classList.contains("js-product")?r:r.querySelector(".t-catalog, .t-store")||r.querySelector(".js-product"))?(t_slds_fadeOut(m,150,(function(){null!==m.parentNode&&m.parentNode.removeChild(m)})),Array.prototype.forEach.call(f,(function(t){t_slds_fadeIn(t,150)}))):(Array.prototype.forEach.call(f,(function(t){t.style.opacity=0})),t_slds_fadeOut(m,400,(function(){null!==m.parentNode&&m.parentNode.removeChild(m)})),setTimeout((function(){Array.prototype.forEach.call(f,(function(t){t_slds_fadeIn(t)})),u&&r.dispatchEvent(_)}),50))}i.classList.add("t-slds_animated-cancel")}t_slideMove(t,e,s),n&&i.classList.remove("t-slds_animated-cancel"),u&&r.dispatchEvent(_)}}}function t_slideMoveInstantly(t,e,s){var r=t_slds__getRec(t);if(r){var i=r.querySelector(".t-slds__items-wrapper");if(i){var a=parseFloat(i.getAttribute("data-slider-pos")),l,d=(i.getAttribute("data-slider-items-in-row")||0)>0?r.querySelector(".t-slds__container .t-slds__item").offsetWidth:r.querySelector(".t-slds__container").offsetWidth,o=parseFloat(i.getAttribute("data-slider-totalslides")),n=i.classList.contains("t-slds_animated-none");if(a>o+1&&(a=1),n){var c=r.querySelector(".t-slds__item_active");if(c&&0===r.querySelectorAll(".t-slds__item_dummy").length){var _=c.cloneNode(!0);_.classList.add("t-slds__item_dummy"),_.style.position="absolute",_.style.left=d*a+"px",i.appendChild(_),t_slds_fadeOut(_,400,(function(){null!==_.parentNode&&_.parentNode.removeChild(_)}))}i.classList.add("t-slds_animated"),i.classList.add("t-slds_animated-cancel")}else i.classList.add("t-slds_animated"),i.classList.add("t-slds_animated-cancel");t_slideMove(t,e,s),i.classList.remove("t-slds_animated"),i.classList.remove("t-slds_animated-cancel")}}}function t_slideMove(t,e,s){var r=t_slds__getRec(t);if(r){var i=r.querySelector(".t-slds__items-wrapper");if(i){var a=r.querySelectorAll(".t-slds__item:not(.t-slds__item_dummy)"),l=i.classList.contains("js-feed-container"),d=parseInt(i.getAttribute("data-slider-items-in-row")||0),o=parseInt(i.getAttribute("data-feed-show-count")||0),n=d>0?r.querySelector(".t-slds__container .t-slds__item").offsetWidth:r.querySelector(".t-slds__container").offsetWidth,c=parseFloat(i.getAttribute("data-slider-transition")),_=parseFloat(i.getAttribute("data-slider-pos")),u=parseFloat(i.getAttribute("data-slider-totalslides")),p=i.getAttribute("data-slider-cycle"),f=i.classList.contains("t-slds_animated-none"),m=i.getAttribute("data-slider-timeout")>0,y=r.querySelector(".t-slds__arrow_wrapper-right"),v=r.querySelector(".t-slds__arrow_wrapper-left"),g;"off"===i.getAttribute("aria-live")&&i.setAttribute("aria-live","polite");var b=0;if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){var h=navigator.appVersion.match(/Version\/(\d+)\.(\d+)\.?(\d+)? Safari/);null!==h&&(b=parseInt(h[1],10))}var A=!!navigator.userAgent.match("CriOS"),S;if(c||0===c||(c=300),_>u+1&&(_=1,i.setAttribute("data-slider-pos",1)),"true"!==i.getAttribute("data-slider-stop")){if(y)if(l){var w=a[a.length-1],q=parseInt(w.getAttribute("data-slide-index"),10);if(d<u&&t_slds_fadeIn(y,300),q<u&&d>0&&(_==q-o+1||q===o)){var E=document.createEvent("Event");E.initEvent("feedsLastSlide",!0,!0),i.dispatchEvent(E),document.addEventListener("feedsLoadSlide",(function(){t_slds_updateSlider(t),"function"==typeof t_animate__startAnimation&&t_animate__startAnimation()})),t_slds_fadeIn(y,300)}else q===u&&_===u-d+1&&t_slds_fadeOut(y,300)}else"false"==i.getAttribute("data-slider-with-cycle")&&(_==u||d>1&&_==u-d+1)?t_slds_fadeOut(y,300):t_slds_fadeIn(y,300);v&&("false"==i.getAttribute("data-slider-with-cycle")&&1==_?t_slds_fadeOut(v,300):t_slds_fadeIn(v,300)),i.classList.add("t-slds_animated"),b>=13&&A&&!f?t_slide_MoveAnimation(i,_,n,c):i.style.transform="translateX(-"+n*_+"px)",t_triggerEvent(i,"slideChangeStart"),setTimeout((function(){i.classList.remove("t-slds_animated"),i.setAttribute("data-slider-animated",""),"yes"==(p=i.getAttribute("data-slider-cycle"))&&(_==u+1&&(_=1),0==_&&(_=u),b>=13&&A&&!f?t_slide_MoveAnimation(i,_,n,0):i.style.transform="translateX(-"+n*_+"px)",!0!==f&&t_slds_ActiveSlide(t,_,u,s),i.setAttribute("data-slider-pos",_)),("y"===window.lazy||document.querySelector("#allrecords")&&"yes"===document.querySelector("#allrecords").getAttribute("data-tilda-lazy"))&&t_slds_onHammerLoad("t_lazyload_update",(function(){t_lazyload_update()})),!e&&m&&t_slds_initAutoPlay(t,_,u,s)}),c),t_slds_ActiveBullet(t,_,u,s),t_slds_ActiveSlide(t,_,u),"true"==i.getAttribute("data-slider-correct-height")&&t_slds_SliderHeight(t),t_slds_SliderArrowsHeight(t),t_slds_ActiveCaption(t,_,u),r.querySelectorAll(".t-slds__item-loaded").length<u+2&&t_slds_UpdateImages(t,_),t_triggerEvent(i,"slideChangeEnd")}}}}function t_slds_updateSlider(t){var e=t_slds__getRec(t);if(e){t_slds_SliderWidth(t);var s=e.querySelector(".t-slds__items-wrapper");if(s){var r=parseInt(s.getAttribute("data-slider-items-in-row"),10)||1,i=e.querySelector(".t-slds__container .t-slds__item"),a=e.querySelector(".t-slds__container"),l=r>0&&a&&i?i.offsetWidth:a.offsetWidth,d=parseInt(s.getAttribute("data-slider-pos"),10),o=parseInt(s.getAttribute("data-slider-totalslides"),10),n=s.getAttribute("data-slider-with-cycle"),c=e.querySelector(".t-slds__arrow_wrapper-right");if(d>o+1&&(d=1,s.setAttribute("data-slider-pos",1)),c&&"false"===n){var _,u=o-r<=0||d+r-1===o;c.style.display=u?"none":""}s.style.transform="translateX(-"+l*d+"px)","true"==s.getAttribute("data-slider-correct-height")&&t_slds_UpdateSliderHeight(t),t_slds_UpdateSliderArrowsHeight(t),"y"===s.getAttribute("data-slider-stopped-by-video")&&s.setAttribute("data-slider-stopped-by-video","")}}}function t_slds_UpdateImages(t,e){var s=t_slds__getRec(t);if(s){var r=s.querySelector('.t-slds__item[data-slide-index="'+e+'"]');r&&(r.classList.add("t-slds__item-loaded"),r.nextElementSibling&&r.nextElementSibling.classList.add("t-slds__item-loaded"),r.previousElementSibling&&r.previousElementSibling.classList.add("t-slds__item-loaded"))}}function t_slds_ActiveCaption(t,e,s){var r=t_slds__getRec(t);if(r){var i=r.querySelectorAll(".t-slds__caption"),a=r.querySelector('.t-slds__caption[data-slide-caption="'+e+'"]');Array.prototype.forEach.call(i,(function(t){t.classList.remove("t-slds__caption-active")})),0==e?a=r.querySelector('.t-slds__caption[data-slide-caption="'+s+'"]'):e==s+1&&(a=r.querySelector('.t-slds__caption[data-slide-caption="1"]')),a&&a.classList.add("t-slds__caption-active")}}function t_slds_scrollImages(t,e){var s=t_slds__getRec(t);if(s){var r=(e<0?"":"-")+Math.abs(e).toString();s.querySelector(".t-slds__items-wrapper").style.transform="translateX("+r+"px)"}}function t_slds_ActiveBullet(t,e,s,r){var i;if(r&&r.thumbsbulletGallery){var a=parseInt(r.storeOptions.popup_opts.columns),l=+r.storeOptions.slider_slidesOpts.ratio;"t_store_prodPopup_gallery_calcMaxThumbsCount"in window?i=t_store_prodPopup_gallery_calcMaxThumbsCount(a,l,60,10):"t_catalog_prodPopup_gallery_calcMaxThumbsCount"in window&&(i=t_catalog_prodPopup_gallery_calcMaxThumbsCount(a,l,60,10))}var d=t_slds__getRec(t);if(d){var o=d.querySelectorAll(".t-slds__bullet"),n=d.querySelector('.t-slds__bullet[data-slide-bullet-for="'+e+'"]');if(Array.prototype.forEach.call(o,(function(t){t.classList.remove("t-slds__bullet_active");var e=t.querySelector(".t-slds__bullet_body");e&&e.removeAttribute("aria-current")})),r&&r.thumbsbulletGallery&&e>=i&&e!=s+1||s>=i&&0==e?n=d.querySelector('.t-slds__bullet[data-slide-bullet-for="'+i+'"]'):0==e?n=d.querySelector('.t-slds__bullet[data-slide-bullet-for="'+s+'"]'):e==s+1&&(n=d.querySelector('.t-slds__bullet[data-slide-bullet-for="1"]')),n){n.classList.add("t-slds__bullet_active");var c=n.querySelector(".t-slds__bullet_body");c&&c.setAttribute("aria-current",!0)}}}function t_slds_ActiveSlide(t,e,s){var r=t_slds__getRec(t);if(r){var i=r.querySelector(".t-slds__items-wrapper"),a=r.querySelectorAll(".t-slds__item"),l=r.querySelector('.t-slds__item[data-slide-index="'+e+'"]'),d=!!i&&i.classList.contains("t-slds_animated-none"),o=r.querySelectorAll(".t-video-lazyload");if(o.length)t_onFuncLoad("t_video__getPlayer",(function(){o.forEach((function(t){var e;if("false"!==t.getAttribute("data-videolazy-load")){var s=t.closest(".t-slds__item:not(.t-slds__item_dummy)");if(s){var r=t_video__getPlayer(s);r?r.pause():t_slds__proccessVideo(s).then((function(t){return t.pause()})).catch((function(t){return t}))}}}))}));else{var n=r.querySelectorAll("iframe"),c=r.querySelectorAll("video");Array.prototype.forEach.call(n,(function(t){t.src&&(-1!==t.src.indexOf("&enablejsapi=1")&&t.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),-1===t.src.indexOf("vimeo")||-1===t.src.indexOf("&amp;api=1")&&-1===t.src.indexOf("&api=1")||t.contentWindow.postMessage('{"method":"pause","value":"true"}',"*"))})),Array.prototype.forEach.call(c,(function(t){t.pause()}))}if(Array.prototype.forEach.call(a,(function(t){t.classList.remove("t-slds__item_active"),t.setAttribute("aria-hidden","true")})),0==e&&!1===d)r.querySelector('.t-slds__item[data-slide-index="'+s+'"]').classList.add("t-slds__item_active"),r.setAttribute("aria-hidden","false");else if(0==e&&!0===d)l=r.querySelector('.t-slds__item[data-slide-index="'+s+'"]');else if(e==s+1&&!1===d){var _=r.querySelector('.t-slds__item[data-slide-index="1"]');_&&(_.classList.add("t-slds__item_active"),_.setAttribute("aria-hidden","false"))}else e==s+1&&!0===d&&(l=r.querySelector('.t-slds__item[data-slide-index="1"]'));l&&(l.classList.add("t-slds__item_active"),l.setAttribute("aria-hidden","false")),window.t_slds__isiOS&&t_slds__hideMobileSlides(l),t_slds__setTabindexForFocusableElements(t)}}function t_slds__setTabindexForFocusableElements(t){var e=t_slds__getRec(t);if(e){var s=e.querySelector(".t-slds__items-wrapper"),r=e.querySelector(".t-slds__item_active");if(r){var i='a, button, input:not([type="hidden"]), select, textarea, video, iframe',a=s.querySelectorAll(i);Array.prototype.forEach.call(a,(function(t){t.setAttribute("tabindex","-1")}));var l=r.querySelectorAll(i);Array.prototype.forEach.call(l,(function(t){t.setAttribute("tabindex","0")}))}}}function t_slds_SliderWidth(t){var e=t_slds__getRec(t);if(e){var s=e.querySelector(".t-slds__container");if(s){var r=getComputedStyle(s),i=parseInt(r.paddingLeft)||0,a=parseInt(r.paddingRight)||0,l=s.clientWidth-(i+a),d=e.querySelectorAll(".t-slds__item:not(.t-slds__item_dummy)").length,o=e.querySelector(".t-slds__items-wrapper"),n;if("true"!=o.getAttribute("data-slider-stop")){var c=0;o&&(c=o.getAttribute("data-slider-items-in-row"),o.style.width=l*d+"px"),window.innerWidth<=640?c=1:window.innerWidth<=960&&c>1&&(c=2);var _=c>1?l/c:l;if(_>0){var u=e.querySelectorAll(".t-slds__item");o&&(u=o.querySelectorAll(".t-slds__item")),Array.prototype.forEach.call(u,(function(t){t.style.width=_+"px"}))}}}}}function t_slds_SliderHeight(t){var e=t_slds__getRec(t);if(e){var s=e.querySelector('.t-slds__items-wrapper:not([data-slider-correct-height="false"])');if(s){var r=s.classList.contains("js-feed-container"),i=e.querySelector(".t-slds__item_active"),a;if(i){var l=parseInt(getComputedStyle(i).paddingTop)||0,d=parseInt(getComputedStyle(i).paddingBottom)||0;a=i.clientHeight-(l+d)}a&&s&&(s.style.height=r?"":a+"px")}}}function t_slds_UpdateSliderHeight(t){var e=t_slds__getRec(t);if(e){var s=e.querySelector('.t-slds__items-wrapper:not([data-slider-correct-height="false"])');if(s){var r=s.classList.contains("js-feed-container"),i=e.querySelector(".t-slds__item_active"),a;if(i){var l=parseInt(getComputedStyle(i).paddingTop)||0,d=parseInt(getComputedStyle(i).paddingBottom)||0;a=i.clientHeight-(l+d)}0!==a&&s&&(s.style.height=r?"":a+"px")}}}function t_slds_SliderArrowsHeight(t){var e=t_slds__getRec(t);if(e){var s=e.querySelector(".t-slds__item_active"),r=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),i,a=0;if(s){var l;s.querySelector("[data-slider-video-type]")&&r&&(a=40);var d=parseInt(getComputedStyle(s).paddingTop)||0,o=parseInt(getComputedStyle(s).paddingBottom)||0;i=s.clientHeight-(d+o)-a}var n=e.querySelectorAll(".t-slds__arrow_wrapper");i&&n.length&&Array.prototype.forEach.call(n,(function(t){t.style.height=i+"px";var e=t.querySelector(".t-slds__arrow");e&&(e.style.marginTop=a/2+"px")})),t_slds_fixArrowsInCatalog(e,s,n,r)}}function t_slds_UpdateSliderArrowsHeight(t){var e=t_slds__getRec(t);if(e){var s=e.querySelector(".t-slds__item_active"),r=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),i,a=0;if(s){var l;s.querySelector("[data-slider-video-type]")&&r&&(a=40);var d=parseInt(getComputedStyle(s).paddingTop)||0,o=parseInt(getComputedStyle(s).paddingBottom)||0;i=s.clientHeight-(d+o)-a}var n=e.querySelectorAll(".t-slds__arrow_wrapper");i&&n.length&&Array.prototype.forEach.call(n,(function(t){t.style.height=i+"px";var e=t.querySelector(".t-slds__arrow");e&&(e.style.marginTop=a/2+"px")})),t_slds_fixArrowsInCatalog(e,s,n,r)}}function t_slds_fixArrowsInCatalog(t,e,s,r){if(e&&r&&(t.classList.contains("t-catalog__relevants-grid-cont")||t.classList.contains("t-store__relevants-grid-cont"))){var i=e.querySelector(".js-product-img");if(i){var a=window.getComputedStyle(i),l=(parseFloat(a.marginTop)||0)+(parseFloat(a.marginBottom)||0),d=Math.ceil(i.offsetHeight+l);Array.prototype.forEach.call(s,(function(t){var e=t.offsetHeight,s=(d-e)/2;t.style.top=s+"px",t.style.transform="translateY(0)"}))}}}function t_slds_initAutoPlay(t,e,s,r){var i="object"==typeof t,a=i?t[0]:document.querySelector("#rec"+t);if(a){var l=a.querySelector(".t-slds"),d=a.querySelector(".t-slds__items-wrapper");if(d){var o=parseFloat(d.getAttribute("data-slider-timeout")),n="",c=d.getAttribute("data-slider-interval-id"),_=e,u;if(c&&clearInterval(c),"true"!==d.getAttribute("data-slider-stop")){var p;!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&l&&(l.addEventListener("mouseover",(function(){d.setAttribute("data-slider-stopped","yes")})),l.addEventListener("mouseout",(function(){"y"!==d.getAttribute("data-slider-stopped-by-video")&&d.setAttribute("data-slider-stopped","")})));var f=a.getBoundingClientRect().top+window.pageYOffset,m=f+a.offsetHeight,y,v;window.addEventListener("resize",t_throttle((function(){f=a.getBoundingClientRect().top+window.pageYOffset,m=f+a.offsetHeight}))),void 0!==document.hidden?(y="hidden",v="visibilitychange"):void 0!==document.msHidden?(y="msHidden",v="msvisibilitychange"):void 0!==document.webkitHidden&&(y="webkitHidden",v="webkitvisibilitychange"),document.addEventListener(v,(function(){if(document[y])d.setAttribute("data-slider-stopped","yes");else{var t=getComputedStyle(a).display,e=window.pageYOffset,s=e+window.innerHeight;f=a.getBoundingClientRect().top+window.pageYOffset,(m=f+a.offsetHeight)>e&&f<s&&"none"!==t&&"y"!==d.getAttribute("data-slider-stopped-by-video")&&d.setAttribute("data-slider-stopped","")}}),!1),1===a.length&&window.bind("scroll",t_throttle((function(){var t=getComputedStyle(a).display,e=window.pageYOffset,s=e+window.innerHeight;"none"!==t?(f=a.getBoundingClientRect().top+window.pageYOffset,(m=f+a.offsetHeight)>e&&f<s&&"y"!==d.getAttribute("data-slider-stopped-by-video")?d.setAttribute("data-slider-stopped",""):""===d.getAttribute("data-slider-stopped")&&d.setAttribute("data-slider-stopped","yes")):i||d.setAttribute("data-slider-stopped","yes")})));var g=setInterval((function(){var e=d.getAttribute("data-slider-stopped"),i=d.getAttribute("data-slider-autoplay-ignore-hover"),l=d.getAttribute("data-slider-touch"),o=t_slds_getCurrentTranslate(a);"yes"!=e&&"yes"!=i&&"yes"!=l&&("false"==d.getAttribute("data-slider-with-cycle")&&_==s?_=s:_++,d.setAttribute("data-slider-pos",_),_!=s+1&&0!=_||(n="yes"),t_slideMoveWithoutAnimation(t,!0,r,o),t_slds_updateSlider(t),"yes"==n&&(_==s+1&&(_=1),0==_&&(_=s),d.setAttribute("data-slider-pos",_)),d.setAttribute("data-slider-cycle",n))}),o);d.setAttribute("data-slider-interval-id",g)}}}}function t_slds_positionArrows(t){var e=t_slds__getRec(t);if(e){var s=e.querySelector(".t-slds__arrow_container-outside"),r=e.querySelector(".t-slds__item");if(r){var i=r.offsetWidth,a=e.querySelector(".t-slds__arrow-left")?e.querySelector(".t-slds__arrow-left").offsetWidth:0,l=e.querySelector(".t-slds__arrow-right")?e.querySelector(".t-slds__arrow-right").offsetWidth:0;s&&(s.style.maxWidth=a+l+i+120+"px")}}}function t_slds_initSliderSwipe(t,e,s,r){var i=t_slds__getRec(t);if(i){var a=i.querySelector(".t-slds__main");if(a){var l=i.querySelector(".t-slds__items-wrapper");if(l){var d,o=!1,n=!1,c,_;if("true"!==l.getAttribute("data-slider-stop"))if("true"!==l.getAttribute("data-swiper-initialized")){delete Hammer.defaults.cssProps.userSelect,window.hammer=new Hammer(a,{domEvents:!0,inputClass:Hammer.TouchInput,recognizers:[[Hammer.Pan,{direction:Hammer.DIRECTION_HORIZONTAL}]]}),l.setAttribute("data-swiper-initialized","true");var u=function t(e){window.pageYOffset>i.getBoundingClientRect().bottom+window.pageYOffset||window.pageYOffset+document.documentElement.clientHeight<i.getBoundingClientRect().top+window.pageYOffset?l.setAttribute(e,"yes"):"y"!==l.getAttribute("data-slider-stopped-by-video")&&l.setAttribute(e,"")},p="ontouchend"in document?"data-slider-touch":"data-slider-stopped",f;if("IntersectionObserver"in window)new IntersectionObserver((function(t){var e=t[0];l.setAttribute(p,e.isIntersecting?"":"yes")})).observe(i);else u(p),window.addEventListener("scroll",(function(){o=!0,clearTimeout(d),d=setTimeout((function(){u(p),o=!1}),250)}));if(1!=e){var m=function t(e){return!n||(e.preventDefault(),!1)};window.removeEventListener("touchmove",m,{passive:!1}),window.addEventListener("touchmove",m,{passive:!1}),window.hammer.on("pan",(function(e){if(o)return!1;n=!0;var s=i.querySelector(".t-slds__items-wrapper"),a=s.getAttribute("data-slider-items-in-row")||0,l=a>1,d=l?i.querySelector(".t-slds__container .t-slds__item").offsetWidth:i.querySelector(".t-slds__container").offsetWidth,c=parseFloat(s.getAttribute("data-slider-pos")),_=parseFloat(s.getAttribute("data-slider-totalslides")),u="",p=e.deltaX,f=100/_*e.deltaX/window.innerWidth,m=30,y;if("true"===s.getAttribute("data-slider-stop"))return!1;if(s.setAttribute("data-slider-touch","yes"),t_slds_scrollImages(t,d*c-p),e.isFinal){if(e.velocityX>.4)"false"==s.getAttribute("data-slider-with-cycle")&&1==c?c=1:c--,s.setAttribute("data-slider-pos",c),0==c&&(u="yes"),s.setAttribute("data-slider-cycle",u),t_slideMove(t,!1,r);else if(e.velocityX<-.4){if("false"==s.getAttribute("data-slider-with-cycle")&&(c==_||l&&c==_-a+1))c=l?_-a:_;else{var v=i.querySelectorAll(".t-slds__item:not(.t-slds__item_dummy)"),g=v[v.length-1],b=parseFloat(g.getAttribute("data-slide-index"),10);if(b<_&&c==b){var h=document.createEvent("Event");h.initEvent("feedsLastSlide",!0,!0),s.dispatchEvent(h),document.addEventListener("feedsLoadSlide",(function(){t_slds_updateSlider(t)}))}c++}s.setAttribute("data-slider-pos",c),c==_+1&&(u="yes"),s.setAttribute("data-slider-cycle",u),t_slideMove(t,!1,r)}else f<=-30/_?("false"==s.getAttribute("data-slider-with-cycle")&&(c==_||l&&c==_-a+1)?c=l?_-a:_:c++,s.setAttribute("data-slider-pos",c),c==_+1&&(u="yes"),s.setAttribute("data-slider-cycle",u),t_slideMove(t,!1,r)):f>=m/_?("false"==s.getAttribute("data-slider-with-cycle")&&1==c?c=1:c--,s.setAttribute("data-slider-pos",c),0==c&&(u="yes"),s.setAttribute("data-slider-cycle",u),t_slideMove(t,!1,r)):t_slideMove(t,!1,r);s.setAttribute("data-slider-touch",""),n=!1}return!0})),window.hammer.on("panend",(function(){t_slideMove(t,!1,r),n=!1}))}}}}}}function t_slds_getCurrentTranslate(t){var e=t.querySelector(".t-slds__items-wrapper");if(e){var s=getComputedStyle(e).transform;if(void 0!==s&&""!==s){var r=s.match(/\d+/g);if(null!==r)return parseInt(r[0],10)}}}function t_slds_changeImageUrl(t){var e=document.getElementById("allrecords"),s=e&&"yes"===e.getAttribute("data-tilda-lazy"),r=t_slds__getRec(t),i;r&&(i=s?r.querySelectorAll(".t-slds__img:not([data-original])"):r.querySelectorAll(".t-slds__img"),Array.prototype.forEach.call(i,(function(t){var e=t.getAttribute("data-src");e&&(t.setAttribute("src",e),t.removeAttribute("data-src"))})))}function t_slds_onHammerLoad(t,e,s){if("function"==typeof window[t])e();else var r=Date.now(),i=setTimeout((function a(){var l=Date.now();if("function"!=typeof window[t]){if(l-r>7e3)throw new Error(t+" is undefined");i=setTimeout(a,s||100)}else e()}))}function t_slds_fadeOut(t,e,s){if("none"!==t.style.display&&!t.getAttribute("data-fadeout-timeout")){var r=1,i=parseInt(e),a,l=setInterval((function(){t.style.opacity=r,(r-=.1)<=.1&&(clearInterval(l),t.removeAttribute("data-fadeout-timeout"),t.style.display="none","function"==typeof s&&s())}),i>0?i/10:40);t.setAttribute("data-fadeout-timeout",l)}}function t_slds_fadeIn(t,e,s){if(("1"!==getComputedStyle(t).opacity&&""!==getComputedStyle(t).opacity||"none"===getComputedStyle(t).display)&&!t.getAttribute("data-fadein-timeout")){var r=0,i=parseInt(e),a=i>0?i/10:40;t.style.opacity=r,t.style.display="block";var l=setInterval((function(){t.style.opacity=r,(r+=.1)>=1&&(clearInterval(l),t.removeAttribute("data-fadein-timeout"),"function"==typeof s&&s())}),a);t.setAttribute("data-fadein-timeout",l)}}function t_slds_randomSortElements(t){var e=Array.prototype.slice.call(t);if(!e.length)return[];e.sort((function(){return.5-Math.random()}));var s=t[0].parentNode;return e.forEach((function(t){s.appendChild(t)})),e}function t_slds__proccessVideo(t){return new Promise((function(e,s){t_onFuncLoad("t_video__createPlayer",(function(){t_video__createPlayer(t).then((function(t){return e(t)})).catch((function(t){return s(t)}))}))}))}function t_slds__getRec(t){return"string"==typeof t?document.querySelector("#rec"+t):t instanceof Element?t:t[0]}function t_triggerEvent(t,e){var s;document.createEvent?(s=document.createEvent("HTMLEvents")).initEvent(e,!0,!1):document.createEventObject&&((s=document.createEventObject()).eventType=e),s.eventName=e,t.dispatchEvent?t.dispatchEvent(s):t.fireEvent?t.fireEvent("on"+s.eventType,s):t[e]?t[e]():t["on"+e]&&t["on"+e]()}window.t_slds__isiOS=/iPhone|iPad|iPod/i.test(navigator.userAgent)||navigator.userAgent.indexOf("Macintosh")&&"ontouchend"in document;var DEBUG=!1;function setImportantStyle(t,e,s){t.style.setProperty(e,s,"important")}function getGalleryContainer(){var t=document.querySelector(".t-popup");if(t){var e=t.querySelector(".t-catalog__relevants__container, .t-store__relevants__container");if(e)return e}return document.querySelector(".t-catalog__relevants__container, .t-store__relevants__container")}function applyBaseStyles(t){for(var e=t.querySelectorAll(".js-product"),s=0;s<e.length;s++)for(var r,i=e[s].querySelectorAll(".t-catalog__card__textwrapper, .t-store__card__textwrapper"),a=0;a<i.length;a++){var l=i[a];setImportantStyle(l,"margin-bottom","0px"),setImportantStyle(l,"margin-top","auto"),setImportantStyle(l,"justify-content","flex-start");var d=l.querySelector(".js-catalog-prod-name, .js-store-prod-name");d&&(setImportantStyle(d,"display","-webkit-box"),setImportantStyle(d,"-webkit-box-orient","vertical"),setImportantStyle(d,"-webkit-line-clamp","2"),setImportantStyle(d,"overflow","hidden"),setImportantStyle(d,"text-overflow","ellipsis"),setImportantStyle(d,"line-height","1.5"),setImportantStyle(d,"max-height","calc(1.5em * 2)"),setImportantStyle(d,"padding-bottom","unset"));var o=l.querySelector(".js-catalog-prod-descr, .js-store-prod-descr");o&&(setImportantStyle(o,"display","-webkit-box"),setImportantStyle(o,"-webkit-box-orient","vertical"),setImportantStyle(o,"-webkit-line-clamp","1"),setImportantStyle(o,"overflow","hidden"),setImportantStyle(o,"text-overflow","ellipsis"),setImportantStyle(o,"padding-bottom","unset"))}DEBUG&&console.info("Базовые стили применены.")}function getReferenceHeight(){var t=getGalleryContainer();if(!t)return 0;t.offsetHeight;for(var e=t.querySelectorAll(".js-product"),s=0;s<e.length;s++){var r=e[s];if("none"!==window.getComputedStyle(r).display&&0!==r.offsetHeight&&r.querySelector(".js-product-img")){var i=r.getBoundingClientRect().height;return DEBUG&&console.info("Опорная карточка найдена. Высота:",i),i}}return DEBUG&&console.info("Не найдена видимая карточка с изображением."),0}function updateNoImageCardHeights(){requestAnimationFrame((function(){var t=getReferenceHeight();if(!(t<=0)){var e=getGalleryContainer();if(e)for(var s=e.querySelectorAll(".js-product"),r=0;r<s.length;r++){var i=s[r];i.querySelector(".js-product-img")?i.style.height="":(i.style.cssText+="; height: "+t+"px !important;",DEBUG&&console.info("Установлена высота для карточки без изображения:",t))}}}))}function attachImageLoadListeners(){var t=getGalleryContainer();if(t)for(var e=t.querySelectorAll(".js-product-img"),s=0;s<e.length;s++){var r=e[s];r.complete||r.addEventListener("load",(function(){DEBUG&&console.info("Изображение загрузилось, обновляем высоту"),updateNoImageCardHeights()}))}}function addEmptyDescrPlaceholder(t){var e=t.querySelector(".js-catalog-prod-descr.t-catalog__card__descr, .js-store-prod-descr.t-store__card__descr");if(e){var s=getComputedStyle(e),r=e.getBoundingClientRect().height,i=s.paddingTop;t.querySelectorAll(".js-product").forEach((function(t){if(!t.querySelector(".js-catalog-prod-descr.t-catalog__card__descr, .js-store-prod-descr.t-store__card__descr")){var s=t.querySelector(".t-catalog__card__textwrapper, .t-store__card__textwrapper"),a=s&&s.querySelector(".js-catalog-price-wrapper, .js-store-price-wrapper");if(s&&a){var l=document.createElement("div");l.className=e.className,l.style.setProperty("height",r+"px","important"),l.style.setProperty("padding-top",i,"important"),l.style.setProperty("margin-bottom","0px","important"),l.style.setProperty("display","-webkit-box","important"),l.style.setProperty("-webkit-box-orient","vertical","important"),l.style.setProperty("-webkit-line-clamp","1","important"),l.style.setProperty("overflow","hidden","important"),l.style.setProperty("text-overflow","ellipsis","important"),s.insertBefore(l,a)}}}))}}function initGallery(){var t=getGalleryContainer();if(t){t.removeAttribute("data-styles-applied"),applyBaseStyles(t),t.dataset.stylesApplied="true",addEmptyDescrPlaceholder(t),DEBUG&&console.info("Инициализация галереи завершена.");for(var e=[500,1e3,1500],s=0;s<e.length;s++){var r;setTimeout((function(){attachImageLoadListeners(),updateNoImageCardHeights()}),e[s])}}else DEBUG&&console.info("Контейнер галереи не найден.")}function observePopup(){var t=document.querySelector(".t-popup"),e;t&&("IntersectionObserver"in window?new IntersectionObserver((function(t,e){for(var s=0;s<t.length;s++){var r;if(t[s].isIntersecting){DEBUG&&console.info("Попап видим. Инициализация галереи через 1500 мс"),e.disconnect(),setTimeout(initGallery,1500);break}}})).observe(t):setTimeout(initGallery,1500))}function onResize(){DEBUG&&console.info("Resize – обновление высоты карточек"),updateNoImageCardHeights()}function onPopstate(){DEBUG&&console.info("Popstate – инициализация галереи"),setTimeout(initGallery,500)}function onPageshow(t){t.persisted&&(DEBUG&&console.info("Pageshow (из кэша) – инициализация галереи"),initGallery())}function onWindowLoad(){initGallery(),observePopup()}if(window.addEventListener("resize",onResize),window.addEventListener("popstate",onPopstate),window.addEventListener("pageshow",onPageshow),window.addEventListener("load",onWindowLoad),document.body&&"MutationObserver"in window){var domObserver=new MutationObserver((function(){initGallery()}));domObserver.observe(document.body,{childList:!0,subtree:!0})}var pollCount=0,pollInterval=setInterval((function(){initGallery(),++pollCount>=20&&clearInterval(pollInterval)}),500);
function t396__parseGlobalStyleCSSVar(e){try{var t,r=/var\((--uc-([^-]+)-([^-]+)-([^,]+)),\s?(.*)\)/.exec(e);if(!r)return;var l=r[0],a=r[1],o=r[2],s=r[3],_=r[4],n=r[5],i,d;if(!(l&&o&&s&&_&&n))return;return{parent:{id:_,type:o},fallback:window.getComputedStyle(document.body).getPropertyValue(a)||n,field:s}}catch(c){console.error("Error trying to parse CSS Variable")}}function t396__hex2rgba(e,t){if(!e)return!1;var r=t396__parseGlobalStyleCSSVar(e);r&&(e=r.fallback);var l=e.replace(/#/,"");if(3===l.length){var a=l[0],o=l[1],s=l[2];e="#"+a+a+o+o+s+s}var _=parseInt(e.substring(1),16),n,i,d;return[(16711680&_)>>16,(65280&_)>>8,255&_,parseFloat(t)]}function t396__isElementUsingCalcZoom(e){var t=["gallery"],r=e.getAttribute("data-elem-type");return t.includes(r)}function t396__isFlex(e){var t=e.classList.contains("t396__artboard-flex"),r=e.classList.contains("t396__group-flex");return t||r}function t396__setOverflowToAllRecords(){var e=document.getElementById("allrecords");if(e){var t=[".t951__sidebar_sticky",".t1206__content_sticky",".t754__col_fixed",".t776__col_fixed",".t786__col_fixed",".t-store__prod-popup__col_fixed"];t396__generateOverflowStyle();var r=Boolean(document.querySelector(t.join(", ")));e.classList.remove("t-records__overflow-clip","t-records__overflow-hidden"),e.classList.add(r?"t-records__overflow-clip":"t-records__overflow-hidden")}}function t396__generateOverflowStyle(){if(!document.getElementById("t396__overflow-styles")){var e=document.createElement("style");e.id="t396__overflow-styles",e.innerHTML=".t-records__overflow-clip { overflow: clip; }\n\t\t\t\t\t\t.t-records__overflow-hidden { overflow: hidden; }",document.head.appendChild(e)}}function t396__getArtboards(e){var t=document.getElementById("allrecords"),r,l=t&&"edit"===t.getAttribute("data-tilda-mode")?'.record[data-record-type="'+e+'"] .r:not(.t397__off, .t395__off, .t400__off) .t396__artboard, .record[data-parenttplid="'+e+'"] .r:not(.t397__off, .t395__off, .t400__off) .t396__artboard':'.r[data-record-type="'+e+'"]:not(.t397__off, .t395__off, .t400__off) .t396__artboard, .r[data-parenttplid="'+e+'"]:not(.t397__off, .t395__off, .t400__off) .t396__artboard';return Array.from(document.querySelectorAll(l))}function t396__getZeroBlocks(){var e=[].concat(t396__getArtboards("396"),t396__getArtboards("121")),t;return e.length?e.map((function(e){return{record:e.closest(".r:not(.t397__off):not(.t395__off):not(.t400__off)"),artboard:e}})).filter((function(e){return e.record})):[]}function t396__isInsideGroupWithZoom(e){for(var t=e.closest(".t396__group");t;){var r;if(t.style.zoom)return!0;t=null==(r=t.parentElement)?void 0:r.closest(".t396__group")}return!1}var t396__uniqueId__generator=function e(){var t=0;return function(){var e=String(t+=1).padStart(6,"0");return""+Date.now()+e}},t396__getUniqueId=t396__uniqueId__generator();function t_zeroGallery__init(e,t){var r=document.getElementById("rec"+e),l=r?r.querySelector('.tn-elem[data-elem-id="'+t+'"]'):null;if(!l)return!1;var a="function"==typeof jQuery;t_onFuncLoad("t_sldsInit",(function(){t_onFuncLoad("t396_elem__getFieldValue",(function(){t_zeroGallery__processGalleryWithGeoLanding(r,(function(){t_zeroGallery__render(l=r.querySelector('.tn-elem[data-elem-id="'+t+'"]')),t396_elem__renderView(a?$(l):l),t_sldsInit(a?$(l):[l]),t_onFuncLoad("t_slds_updateSlider",(function(){setTimeout((function(){t_slds_updateSlider(a?$(l):[l]),t_zeroGallery__render_next(l,e)}))}))}))})),["edit","zero"].includes(window.tildamode)||"y"!==l.getAttribute("data-field-zoomable-value")||document.querySelectorAll(".t-zoomer__wrapper").length||t_onFuncLoad("t_initZoom",(function(){t_initZoom()})),t_zeroGallery__handleMoveSlider(l),window.addEventListener("resize",(function(){t396_waitForFinalEvent((function(){setTimeout((function(){t_slds_updateSlider(a?$(l):[l]),t_zeroGallery__render_next(l,e)}),200)}),500,"slds_resizeruniqueid"+e+t)}));var o=r.querySelector(".t396");o&&("undefined"!=typeof jQuery?($(o).unbind("displayChanged",t_zeroGallery__updateSliderHandler),$(o).bind("displayChanged",t_zeroGallery__updateSliderHandler)):(o.removeEventListener("displayChanged",t_zeroGallery__updateSliderHandler),o.addEventListener("displayChanged",t_zeroGallery__updateSliderHandler)));var s=l.querySelector(".t-slds");s&&(s.style.visibility="visible")}))}function t_zeroGallery__handleMoveSlider(e){var t;if(!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"ontouchend"in document)){var r=e.querySelector(".t-slds__items-wrapper"),l=r.querySelectorAll(".t-slds__item"),a=parseFloat(r.getAttribute("data-slider-transition"));a||0===a||(a=300);var o=140;t_zeroGallery__setSlidesOpacity(l,"0"),e.addEventListener("tildaSldsMoveSlideStart",(function(){t_zeroGallery__setSlidesOpacity(l,"1")})),e.addEventListener("tildaSldsMoveSlideEnd",(function(){setTimeout((function(){t_zeroGallery__setSlidesOpacity(l,"0")}),a+o)}))}}function t_zeroGallery__setSlidesOpacity(e,t){Array.prototype.forEach.call(e,(function(e){e.classList.contains("t-slds__item_active")||(e.style.opacity=t)}))}function t_zeroGallery__processGalleryWithGeoLanding(e,t){var r=document.querySelector(".t804"),l=!!e.textContent&&-1!==e.textContent.indexOf("%%"),a=e.querySelector("[data-replace-key]"),o="published"!==t_zeroGallery__getTildaMode();!r||!l||a||o?t():document.addEventListener("replacingCompleted",t)}function t_zeroGallery__updateSliderHandler(e){t_slds_updateSlider(e.target)}function t_zeroGallery__getTildaMode(){if(void 0!==window.tildamode)return window.tildamode;var e=document.getElementById("allrecords"),t;switch(e?e.getAttribute("data-tilda-mode"):""){case"edit":window.tildamode="edit";break;case"preview":window.tildamode="preview";break;default:window.tildamode="published"}return window.tildamode}function t_zeroGallery__render(e){window.jQuery&&e instanceof jQuery&&(e=e.length?e.get(0):null);var t=e?e.getAttribute("data-field-imgs-value"):"";if(!t){var r=e?e.querySelector(".tn-atom__slds-imgs-textarea"):null;t=r?r.value:""}var l="function"==typeof jQuery,a=t?JSON.parse(t):[];a=a.filter((function(e){return!t_zeroGallery__isEmptyObj(e)}));var o=e?e.querySelector(".tn-atom"):null;o&&(o.innerHTML='<div class="t-slds" style="visibility: hidden;"><div class="t-slds__main"><div class="t-slds__container"><div class="t-slds__items-wrapper" data-slider-transition="" data-slider-with-cycle="true" data-slider-correct-height="true" data-auto-correct-mobile-width="false"  data-slider-is-preview="true"></div></div></div><div class="t-slds__bullet_wrapper"></div><div class="t-slds__caption__container"></div><div class="t-slds__arrow_container"><div class="t-slds__arrow_wrapper t-slds__arrow_wrapper-left" data-slide-direction="left" style="height: 488px;"><div class="t-slds__arrow t-slds__arrow-left"><div class="t-slds__arrow_body t-slds__arrow_body-left"><svg class="t-null__slds-arrow t-null__slds-arrow_1" width="94" height="94" viewBox="0 0 94 94" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M39 68L60 47L39 26" stroke="black" vector-effect="non-scaling-stroke"/></svg><svg class="t-null__slds-arrow t-null__slds-arrow_2"  width="94" height="94" viewBox="0 0 94 94" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M63 47.917H30" stroke="black" vector-effect="non-scaling-stroke"/><path d="M46.917 64L63 47.917L46.917 31.834" stroke="black" vector-effect="non-scaling-stroke"/></svg></div></div></div><div class="t-slds__arrow_wrapper t-slds__arrow_wrapper-right" data-slide-direction="right" style="height: 488px;"><div class="t-slds__arrow t-slds__arrow-right "><div class="t-slds__arrow_body t-slds__arrow_body-right"><svg class="t-null__slds-arrow t-null__slds-arrow_1" width="94" height="94" viewBox="0 0 94 94" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M39 68L60 47L39 26" stroke="black" vector-effect="non-scaling-stroke"/></svg><svg class="t-null__slds-arrow t-null__slds-arrow_2"  width="94" height="94" viewBox="0 0 94 94" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M63 47.917H30" stroke="black" vector-effect="non-scaling-stroke"/><path d="M46.917 64L63 47.917L46.917 31.834" stroke="black" vector-effect="non-scaling-stroke"/></svg></div></div></div></div></div>');for(var s=e.querySelector(".t-slds__items-wrapper"),_="published"===t_zeroGallery__getTildaMode()&&"y"===t396_elem__getFieldValue(l?$(e):e,"zoomable"),n=!1,i=t_zeroGallery__isLazyLoadingOnElem(e,l),d=0;d<a.length;d++){var c=a[d],u=t_zeroGallery__getVideoKeys().some((function(e){return c[e]}));(u||c.li_imgurl)&&(n=!0),_=_&&!c.li_imgurl&&!u,c.zoomable=_,c.withLazy=i;var y=t_zeroGallery__generateSlide(c,d);y&&(null==s||s.appendChild(y));var m=e.querySelector(".t-slds__bullet_wrapper");if(m){var p='<div class="t-slds__bullet'+(0===d?" t-slds__bullet_active":"")+'" data-slide-bullet-for="'+(d+1)+'"><div class="t-slds__bullet_body" style="width: 10px; height: 10px;background-color: white;"></div></div>';m.insertAdjacentHTML("beforeend",p)}t_zeroGallery__appendCaption(e,c,d)}if(!_&&!n){var g=e.querySelectorAll(".t-slds__container");Array.prototype.forEach.call(g,(function(e){e.removeEventListener("click",t_zeroGallery__setSideHandlers),e.addEventListener("click",t_zeroGallery__setSideHandlers)}))}i&&t_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))}function t_zeroGallery__appendCaption(e,t,r){var l=e.querySelector(".t-slds__caption__container");null==l||l.appendChild(t_zeroGallery__createCaption(t,r))}function t_zeroGallery__createCaption(e,t){var r=e.li_imgtitle||"",l=document.createElement("div");l.classList.add("t-slds__caption"),0===t&&l.classList.add("t-slds__caption-active"),l.setAttribute("data-slide-caption",t+1);var a,o=r.startsWith("<span data-replace-key")&&r.endsWith("</span>")?r:t_zeroGallery__escapeHtml(r);return l.innerHTML=o?'<div class="t-slds__caption_wrapper"><div class="t-slds__title">'+o+"</div></div>":"",l}function t_zeroGallery__generateSlide(e,t){var r,l=document.createElement("div"),a=["t-slds__item"];0===t&&a.push("t-slds__item_active"),(r=l.classList).add.apply(r,a),l.setAttribute("data-slide-index",t+1);var o=document.createElement("div");return o.classList.add("t-width","t-null__slds-wrapper","t-slds__wrapper","t-slds__wrapper_100","t-align_center"),l.appendChild(o),e.li_imgalt&&(o.innerHTML='<meta itemprop="image" content="'+t_zeroGallery__escapeHtml(e.li_img)+'">\n\t\t\t<meta itemprop="caption" content="'+t_zeroGallery__escapeHtml(e.li_imgalt)+'">\n\t\t\t'),o.appendChild(t_zeroGallery__generateSlideContent(e,t)),l}function t_zeroGallery__generateSlideContent(e,t){var r=t_zeroGallery__getVideoKeys().some((function(t){return e[t]})),l=e.li_imgurl&&!r,a=e.li_imgtarget&&!r,o=e.li_imgnofollow&&!r,s=document.createElement(l?"a":"div");if(s.setAttribute("data-img-lid",e.lid),l&&s.setAttribute("href",e.li_imgurl),a&&s.setAttribute("target","_blank"),o&&s.setAttribute("rel","nofollow"),e.zoomable&&(s.setAttribute("data-zoom-target",t+1),s.setAttribute("data-zoomable","yes"),s.setAttribute("data-img-zoom-url",e.li_img),s.classList.add("t-zoomable")),e.withLazy&&(s.classList.add("t-bgimg"),s.setAttribute("data-original",e.li_img)),s.classList.add("tn-atom__slds-img"),s.style.backgroundImage=t_zeroGallery__parseImageUrl(e.li_img,e.withLazy),r){var _=document.createElement("div");_.classList.add("tn-elem__gallery__video-wrapper"),_.appendChild(s);var n=t_zeroGallery__createPlayButtonForVideo(e);return n&&_.appendChild(n),_}return s}function t_zeroGallery__parseImageUrl(e,t){if(!e)return"";if(!t||e.includes(".svg")||!e.includes("https://static.tildacdn."))return"url("+e+")";var r=e.split("/");return r.splice(-1,0,"-/resize/20x/"),"url("+r.join("/")+")"}function t_zeroGallery__createPlayButtonForVideo(e){var t=t_zeroGallery__getVideoKeys().find((function(t){return e[t]})),r=(null==t?void 0:t.replace("li_",""))||"",l=e[t]||"";if(!r||!l)return null;var a=document.createElement("div");return a.classList.add("tn-elem__gallery__play"),a.setAttribute("data-slider-video-type",r),a.setAttribute("data-slider-video-url",l),a.innerHTML='<svg viewBox="0 0 60 60">\n\t\t\t\t\t\t\t\t\t<g stroke="none" stroke-width="1" fill="" fill-rule="evenodd">\n\t\t\t\t\t\t\t\t\t\t<g class="tn-elem__gallery__play_icon__color-holder" transform="translate(-691.000000, -3514.000000)" fill="#FFFFFF">\n\t\t\t\t\t\t\t\t\t\t\t<path d="M721,3574 C737.568542,3574 751,3560.56854 751,3544 C751,3527.43146 737.568542,3514 721,3514 C704.431458,3514 691,3527.43146 691,3544 C691,3560.56854 704.431458,3574 721,3574 Z M715,3534 L732,3544.5 L715,3555 L715,3534 Z"></path>\n\t\t\t\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t\t</svg>',a.addEventListener("click",t_zeroGallery__playVideo),a}function t_zeroGallery__setSideHandlers(e){var t=e.target,r=t.closest(".t-slds"),l=e.offsetX,a=t.offsetWidth,o=r?r.querySelector(".t-slds__arrow-left"):null,s=r?r.querySelector(".t-slds__arrow-right"):null;l<=60&&o&&o.click(),a-l<=60&&s.click()}function t_zeroGallery__isEmptyObj(e){if(!e)return!0;var t=[];for(var r in e)e[r]||t.push("y");return t.length===Object.keys(e).length}function t_zeroGallery__render_next(e,t){var r;["slds_arrowsize","slds_arrowlinesize","slds_arrowcolor","slds_arrowcolorhover","slds_arrowbgcolor","slds_arrowbgcolorhover","slds_arrowbgopacity","slds_arrowbgopacityhover","slds_dotssize","slds_dotsbgcolor","slds_dotsbgcoloractive","slds_loop","slds_speed","slds_autoplay","slds_arrowcontrols","slds_dotscontrols","slds_stretch","slds_playiconsize","slds_playiconcolor","slds_captiontopmargin","slds_dotsvmargin","slds_captionwidth","slds_arrowhmargin","slds_arrowvmargin","slds_dotshmargin","slds_arrowalign","slds_arrowbetweenmargin","slds_arrowtype","slds_cursorcontrol","slds_imgposition","slds_arrowborder"].forEach((function(r){t_zeroGallery__renderViewOneField(e,t,r)}))}function t_zeroGallery__getArrowSize(e){var t;return{s:30,m:40,l:45,xl:50}[e]}function t_zeroGallery__renderViewOneField(e,t,r){var l="function"==typeof jQuery;if(document.contains(e)){var a=t396_elem__getFieldValue(l?$(e):e,r),o=e.querySelector(".t-slds__container"),s=e.querySelector(".t-slds__arrow_container"),_=e.querySelector(".t-slds__bullet_wrapper"),n=e.querySelector(".t-slds__items-wrapper"),i=e.querySelectorAll(".t-slds__arrow"),d=e.querySelector(".t-slds__arrow-right"),c=e.querySelector(".t-slds__arrow-left"),u=e.querySelectorAll(".t-slds__bullet_body"),y,m,p,g,v,f,w;switch(void 0===a&&(a=""),r){case"slds_imgposition":var b;a||(a="center center"),t_zeroGallery__removeElement(e.querySelector(".tn-elem__gallery__position-styles")),o&&((w=document.createElement("style")).classList.add("tn-elem__gallery__position-styles"),w.textContent="#rec"+t+' .tn-elem[data-elem-id="'+e.getAttribute("data-elem-id")+'"] .tn-atom__slds-img{background-position: '+a+";}",o.insertAdjacentElement("beforeend",w));break;case"slds_stretch":var h;a||(a="cover"),t_zeroGallery__removeElement(e.querySelector(".tn-elem__gallery__stretch-styles")),o&&((w=document.createElement("style")).classList.add("tn-elem__gallery__stretch-styles"),w.textContent="#rec"+t+' .tn-elem[data-elem-id="'+e.getAttribute("data-elem-id")+'"] .tn-atom__slds-img {background-size: '+a+";}",o.insertAdjacentElement("beforeend",w));break;case"slds_cursorcontrol":a||(a="none"),e.classList.remove("tn-elem__gallery_arrows-cursor"),"on"===a&&e.classList.add("tn-elem__gallery_arrows-cursor");break;case"slds_arrowcontrols":if(a||(a="near"),e.classList.remove("tn-elem__gallery_arrows-in","tn-elem__gallery_arrows-near","tn-elem__gallery_arrows-none","tn-elem__gallery_arrows-above","tn-elem__gallery_arrows-under"),e.classList.add("tn-elem__gallery_arrows-"+a),"above"===a||"under"===a){y=t396_elem__getFieldValue(l?$(e):e,"slds_arrowsize");var z=t396_elem__getFieldValue(l?$(e):e,"slds_arrowbetweenmargin");if(z||(z="10"),y||(y="s"),y=t_zeroGallery__getArrowSize(y),s){var G=2*y+parseInt(z,10);s.style.width=t396__zoomifyValue(e,G)}}else s&&(s.style.width="100%"),t396_elem__renderViewOneField(l?$(e):e,"borderwidth");"in"===a&&e.querySelector("[data-slider-video-type]")&&e.classList.add("tn-elem__with-video"),t_zeroGallery__renderViewOneField(e,t,"slds_arrowhmargin"),t_zeroGallery__renderViewOneField(e,t,"slds_arrowvmargin"),"under"===a&&t_zeroGallery__renderViewOneField(e,t,"slds_captiontopmargin");break;case"slds_dotshmargin":var A;a||(a="20"),t_zeroGallery__removeElement(e.querySelector(".tn-elem__gallery__bullet-hmargin-styles")),o&&((w=document.createElement("style")).classList.add("tn-elem__gallery__bullet-hmargin-styles"),w.textContent="#rec"+t+' .tn-elem[data-elem-id="'+e.getAttribute("data-elem-id")+'"] .t-slds__bullet {padding: 10px '+a/2+"px;margin: 0px;}",o.insertAdjacentElement("beforeend",w));break;case"slds_dotscontrols":a||(a="none"),_&&(_.style.display="block"),v=parseInt(t396_elem__getFieldValue(l?$(e):e,"slds_dotssize"),10),"near"===a&&_&&(_.style.bottom=-20-v+"px"),"in"===a&&_&&(_.style.bottom="0"),"none"===a&&_&&(_.style.display="none"),t_zeroGallery__renderViewOneField(e,t,"slds_dotsvmargin"),t_zeroGallery__renderViewOneField(e,t,"slds_arrowvmargin");break;case"slds_playiconsize":var S;a||(a="70"),t_zeroGallery__removeElement(e.querySelector(".tn-elem__gallery__icon-size-styles")),o&&((w=document.createElement("style")).classList.add("tn-elem__gallery__icon-size-styles"),w.textContent="#rec"+t+' .tn-elem[data-elem-id="'+e.getAttribute("data-elem-id")+'"] .tn-elem__gallery__play {width: '+parseInt(a,10)+"px;height: "+parseInt(a,10)+"px;left: calc(50% - "+parseInt(a,10)/2+"px);top: calc(50% - "+parseInt(a,10)/2+"px);}",o.insertAdjacentElement("beforeend",w));break;case"slds_playiconcolor":var L;a||(a="#fff"),t_zeroGallery__removeElement(e.querySelector(".tn-elem__gallery__icon-color-styles")),o&&((w=document.createElement("style")).classList.add("tn-elem__gallery__icon-color-styles"),w.textContent="#rec"+t+' .tn-elem[data-elem-id="'+e.getAttribute("data-elem-id")+'"] .tn-elem__gallery__play_icon__color-holder {fill: '+a+";}",o.insertAdjacentElement("beforeend",w));break;case"slds_arrowtype":a||(a="1");var E=e.querySelectorAll(".t-null__slds-arrow");Array.prototype.forEach.call(E,(function(e){e.style.display="none"}));var k=e.querySelectorAll(".t-null__slds-arrow_"+a);Array.prototype.forEach.call(k,(function(e){e.style.display="block"})),t_zeroGallery__renderViewOneField(e,t,"slds_arrowsize");break;case"slds_arrowborder":var V;if(a||(a="none"),t_zeroGallery__removeElement(e.querySelector(".tn-elem__gallery__arrow-border-styles")),"none"!==a){var F=t396_elem__getFieldValue(l?$(e):e,"slds_arrowlinesize")||"1",x=t396_elem__getFieldValue(l?$(e):e,"slds_arrowcolor")||"#222",q=t396_elem__getFieldValue(l?$(e):e,"slds_arrowcolorhover")||x;o&&((w=document.createElement("style")).classList.add("tn-elem__gallery__arrow-border-styles"),w.textContent='.tn-elem[data-elem-id="'+e.getAttribute("data-elem-id")+'"] .t-slds__arrow_body:before {border: '+F+"px solid "+x+';}.tn-elem[data-elem-id="'+e.getAttribute("data-elem-id")+'"] .t-slds__arrow_body:hover:before {border: '+F+"px solid "+q+";}",o.insertAdjacentElement("beforeend",w))}break;case"slds_arrowsize":a||(a="s"),a=t_zeroGallery__getArrowSize(a);var C=e.querySelectorAll(".t-slds__arrow_body");Array.prototype.forEach.call(C,(function(t){t.style.setProperty("width",t396__zoomifyValue(e,parseInt(a,10)),"important")})),t_zeroGallery__renderViewOneField(e,t,"slds_arrowbgcolor"),t_zeroGallery__renderViewOneField(e,t,"slds_arrowbetweenmargin"),t_zeroGallery__renderViewOneField(e,t,"slds_arrowvmargin");break;case"slds_arrowlinesize":a||(a="1");var O=e.querySelectorAll(".t-slds__arrow_body polyline, .t-slds__arrow_body path");Array.prototype.forEach.call(O,(function(e){e.style.strokeWidth=parseInt(a,10)+"px"})),t_zeroGallery__renderViewOneField(e,t,"slds_arrowborder");break;case"slds_arrowcolor":a||(a="#222");var I=e.querySelectorAll(".t-slds__arrow_container polyline, .t-slds__arrow_container path");Array.prototype.forEach.call(I,(function(e){e.style.stroke=a})),t_zeroGallery__renderViewOneField(e,t,"slds_arrowborder"),t_zeroGallery__renderViewOneField(e,t,"slds_arrowcolorhover"),t_zeroGallery__renderViewOneField(e,t,"slds_arrowbgcolor");break;case"slds_dotsbgcolor":a||(a="#fff"),f=-1!==a.indexOf("-gradient("),Array.prototype.forEach.call(u,(function(e){f?e.style.backgroundImage=a:e.style.backgroundColor=a}));break;case"slds_dotsbgcoloractive":var M;if(a||(a="#222"),f=-1!==a.indexOf("-gradient("),t_zeroGallery__removeElement(e.querySelector(".t-slds__bullet_wrapper style")),_){w=document.createElement("style");var j="#rec"+t+' .tn-elem[data-elem-id="'+e.getAttribute("data-elem-id")+'"]',B=(j+=" .t-slds__bullet_active .t-slds__bullet_body")+"{";B+=f?"background-image: "+a+" !important; background-color: transparent !important;":"background-color: "+a+" !important; background-image: none !important;",B+="}",w.textContent=B,_.insertAdjacentElement("beforeend",w)}break;case"slds_autoplay":if(a||(a="0"),n&&(n.setAttribute("data-slider-timeout",(1e3*parseFloat(a)).toString()),t_onFuncLoad("t_slideMove",(function(){t_slideMove(l?$(e):e)})),1e3*parseFloat(a))){var H=document.createEvent("Event");H.initEvent("slideAutoplayTimerReady",!0,!0),n.dispatchEvent(H)}break;case"slds_arrowbgcolor":var T=t_zeroGallery__getArrowSize(y=t396_elem__getFieldValue(l?$(e):e,"slds_arrowsize")),P=t396_elem__getFieldValue(l?$(e):e,"slds_arrowbgopacity");Array.prototype.forEach.call(i,(function(t){a?(t.style.width=t396__zoomifyValue(e,T),t.style.height=t396__zoomifyValue(e,T),t.style.backgroundColor=P?"rgba("+t396__hex2rgba(a,P)+")":a):(t.style.width=t396__zoomifyValue(e,T),t.style.height=t396__zoomifyValue(e,T),t.style.backgroundColor="transparent")})),t_zeroGallery__renderViewOneField(e,t,"slds_arrowbgcolorhover");break;case"slds_arrowbgopacity":t_zeroGallery__renderViewOneField(e,t,"slds_arrowbgcolor");break;case"slds_arrowalign":a||(a="center"),s&&(s.classList.remove("t-slds__arrow_container-left","t-slds__arrow_container-center","t-slds__arrow_container-right"),s.classList.add("t-slds__arrow_container-"+a));break;case"slds_dotssize":a||(a="10"),Array.prototype.forEach.call(u,(function(t){t.style.width=t396__zoomifyValue(e,a),t.style.height=t396__zoomifyValue(e,a)})),t_zeroGallery__renderViewOneField(e,t,"slds_dotscontrols");break;case"slds_loop":a||(a="loop"),"none"===a&&(n&&n.setAttribute("data-slider-with-cycle","false"),s&&s.classList.add("t-slds__nocycle")),"loop"===a&&(n&&n.setAttribute("data-slider-with-cycle","true"),s&&s.classList.remove("t-slds__nocycle"));break;case"slds_speed":a||(a="none"),"none"===a&&n&&(n.setAttribute("data-slider-transition",""),n.classList.remove("t-slds_animated-slow"),n.classList.remove("t-slds_animated-fast"),n.classList.add("t-slds_animated-none")),"slow"===a&&n&&(n.setAttribute("data-slider-transition","500"),n.classList.remove("t-slds_animated-fast"),n.classList.remove("t-slds_animated-none"),n.classList.add("t-slds_animated-slow")),"fast"===a&&n&&(n.setAttribute("data-slider-transition","300"),n.classList.remove("t-slds_animated-slow"),n.classList.remove("t-slds_animated-none"),n.classList.add("t-slds_animated-fast"));break;case"slds_arrowcolorhover":t_zeroGallery__renderViewOneField(e,t,"slds_arrowborder"),Array.prototype.forEach.call(i,(function(t){var r=t.querySelectorAll("polyline, path");t.addEventListener("mouseenter",(function(){a||(a=t396_elem__getFieldValue(l?$(e):e,"slds_arrowcolorhover")),a||(a=t396_elem__getFieldValue(l?$(e):e,"slds_arrowcolor")),a||(a="#222"),Array.prototype.forEach.call(r,(function(e){e.style.stroke=a}))})),t.addEventListener("mouseleave",(function(){var t=t396_elem__getFieldValue(l?$(e):e,"slds_arrowcolor");t||(t="#222"),Array.prototype.forEach.call(r,(function(e){e.style.stroke=t}))}))}));break;case"slds_arrowbgcolorhover":Array.prototype.forEach.call(i,(function(t){t.addEventListener("mouseenter",(function(){var r=t396_elem__getFieldValue(l?$(e):e,"slds_arrowbgopacityhover");r||(r="1.0"),a||(a=t396_elem__getFieldValue(l?$(e):e,"slds_arrowbgcolor")),a||(a="transparent");var o=a;"transparent"!==a&&(o="rgba("+t396__hex2rgba(a,r)+")"),t.style.backgroundColor=o})),t.addEventListener("mouseleave",(function(){var r=t396_elem__getFieldValue(l?$(e):e,"slds_arrowbgcolor");if(r||(r="transparent"),"transparent"!==r){var a=t396_elem__getFieldValue(l?$(e):e,"slds_arrowbgopacity");a||(a="1.0"),r="rgba("+t396__hex2rgba(r,a)+")"}t.style.backgroundColor=r}))}));break;case"slds_dotsvmargin":a||(a="16"),p=t396_elem__getFieldValue(l?$(e):e,"slds_dotscontrols"),_&&("near"===p?(_.style.marginBottom=-a+"px",_.style.paddingBottom="0"):(_.style.marginBottom="0",_.style.paddingBottom=a+"px")),t_zeroGallery__renderViewOneField(e,t,"slds_captiontopmargin"),t_zeroGallery__renderViewOneField(e,t,"slds_arrowvmargin");break;case"slds_captiontopmargin":var W=t396_getEl(l?$(e):e),Z=null==W?void 0:W.querySelector(".t-slds__title");a&&Z||(a="20"),p=t396_elem__getFieldValue(l?$(e):e,"slds_dotscontrols"),m=t396_elem__getFieldValue(l?$(e):e,"slds_arrowcontrols");var Q=0,U;if("near"===p&&((g=t396_elem__getFieldValue(l?$(e):e,"slds_dotsvmargin"))||(g="16"),(v=t396_elem__getFieldValue(l?$(e):e,"slds_dotssize"))||(v="10"),Q=20+parseInt(v,10)+parseInt(g,10)),"under"===m){var R=t396_elem__getFieldValue(l?$(e):e,"slds_arrowsize"),K=t396_elem__getFieldValue(l?$(e):e,"slds_arrowvmargin");K||(K="10"),R||(R="s"),R=t_zeroGallery__getArrowSize(R),Q=Q+parseInt(R,10)+parseInt(K,10)}t_zeroGallery__removeElement(e.querySelector(".tn-elem__gallery__caption-position-styles")),o&&((w=document.createElement("style")).classList.add("tn-elem__gallery__caption-position-styles"),w.textContent="#rec"+t+' .tn-elem[data-elem-id="'+e.getAttribute("data-elem-id")+'"] .t-slds__caption {margin-top: '+(Q+parseInt(a,10))+"px;}",o.insertAdjacentElement("beforeend",w));break;case"slds_captionwidth":var N;a||(a="80"),t_zeroGallery__removeElement(e.querySelector(".tn-elem__gallery__caption-width-styles")),o&&((w=document.createElement("style")).classList.add("tn-elem__gallery__caption-width-styles"),w.textContent="#rec"+t+' .tn-elem[data-elem-id="'+e.getAttribute("data-elem-id")+'"] .t-slds__caption {width: '+parseInt(a,10)+"%;}",o.insertAdjacentElement("beforeend",w));break;case"slds_arrowhmargin":a||(a="30"),m=t396_elem__getFieldValue(l?$(e):e,"slds_arrowcontrols"),d&&c&&("near"===m?(d.style.left=t396__zoomifyValue(e,a),d.style.right="auto",c.style.left="auto",c.style.right=t396__zoomifyValue(e,a)):(d.style.left="auto",d.style.right=t396__zoomifyValue(e,a),c.style.left=t396__zoomifyValue(e,a),c.style.right="auto"));break;case"slds_arrowvmargin":a||(a="10");var D={};if("above"===(m=t396_elem__getFieldValue(l?$(e):e,"slds_arrowcontrols")))D.top=-a+"px",D.bottom="auto",Array.prototype.forEach.call(i,(function(e){e.style.marginTop="0"}));else if("under"===m){var J=0;"near"===(p=t396_elem__getFieldValue(l?$(e):e,"slds_dotscontrols"))&&(g=t396_elem__getFieldValue(l?$(e):e,"slds_dotsvmargin"),v=t396_elem__getFieldValue(l?$(e):e,"slds_dotssize"),J=20+parseInt(v,10)+parseInt(g,10)),a=parseInt(a,10)+J,D.bottom=-a+"px",D.top="auto",Array.prototype.forEach.call(i,(function(e){e.style.marginTop="0"}))}else D.top="",D.bottom="";s&&(s.style.top=D.top,s.style.bottom=D.bottom),t_zeroGallery__renderViewOneField(e,t,"slds_captiontopmargin");break;case"slds_arrowbetweenmargin":a||(a="10"),("above"===(m=t396_elem__getFieldValue(l?$(e):e,"slds_arrowcontrols"))||"under"===m)&&d&&c&&(d.style.marginLeft=a/2+"px",c.style.marginRight=a/2+"px",t_zeroGallery__renderViewOneField(e,t,"slds_arrowcontrols"))}}}function t_zeroGallery__removeElement(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function t_zeroGallery__playVideo(e){var t=e.currentTarget;if(t){var r,l,a=t_zeroGallery__generateVideo(t.getAttribute("data-slider-video-type"),t.getAttribute("data-slider-video-url"));a&&t.parentElement.appendChild(a),t.removeEventListener("click",t_zeroGallery__playVideo)}}function t_zeroGallery__generateVideo(e,t){if(!e||!t)return null;var r=["youtube","vimeo"].includes(e),l=document.createElement("div");l.classList.add("tn-elem__gallery__frame");var a=document.createElement(r?"iframe":"video");return a.classList.add(r?"tn-elem__gallery__iframe":"tn-elem__gallery__video"),a.src=t_zeroGallery__getURLByVideoType(t,e),r?(a.allow="autoplay",a.setAttribute("allowfullscreen","")):(a.setAttribute("controls","controls"),a.setAttribute("autoplay","autoplay"),a.setAttribute("playsinline","playsinline")),l.appendChild(a),l}function t_zeroGallery__getURLByVideoType(e,t){return"vimeo"===t?"https://player.vimeo.com/video/"+e+"?h=&api=1&autoplay=1":"youtube"===t?"https://www.youtube.com/embed/"+e+"?autoplay=1&enablejsapi=1":e||""}function t_zeroGallery__isLazyLoadingOnElem(e,t){var r="y"===window.lazy;if(!r){var l=document.getElementById("allrecords");r=!!l&&"yes"===l.getAttribute("data-tilda-lazy")}return!!r&&"y"!==t396_elem__getFieldValue(t?$(e):e,"lazyoff")}function t_zeroGallery__getVideoKeys(){return["li_vimeo","li_youtube","li_mp4","li_webm"]}function t_zeroGallery__escapeHtml(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}window.tilda_zero_gallery_js_ver=1;
!function(a,b,c,d){"use strict";function e(a,b,c){return setTimeout(j(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e<a.length;)b.call(c,a[e],e,a),e++;else for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)}function h(b,c,d){var e="DEPRECATED METHOD: "+c+"\n"+d+" AT \n";return function(){var c=new Error("get-stack-trace"),d=c&&c.stack?c.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",f=a.console&&(a.console.warn||a.console.log);return f&&f.call(a.console,e,d),b.apply(this,arguments)}}function i(a,b,c){var d,e=b.prototype;d=a.prototype=Object.create(e),d.constructor=a,d._super=e,c&&la(d,c)}function j(a,b){return function(){return a.apply(b,arguments)}}function k(a,b){return typeof a==oa?a.apply(b?b[0]||d:d,b):a}function l(a,b){return a===d?b:a}function m(a,b,c){g(q(b),function(b){a.addEventListener(b,c,!1)})}function n(a,b,c){g(q(b),function(b){a.removeEventListener(b,c,!1)})}function o(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function p(a,b){return a.indexOf(b)>-1}function q(a){return a.trim().split(/\s+/g)}function r(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;d<a.length;){if(c&&a[d][c]==b||!c&&a[d]===b)return d;d++}return-1}function s(a){return Array.prototype.slice.call(a,0)}function t(a,b,c){for(var d=[],e=[],f=0;f<a.length;){var g=b?a[f][b]:a[f];r(e,g)<0&&d.push(a[f]),e[f]=g,f++}return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d}function u(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g<ma.length;){if(c=ma[g],e=c?c+f:b,e in a)return e;g++}return d}function v(){return ua++}function w(b){var c=b.ownerDocument||b;return c.defaultView||c.parentWindow||a}function x(a,b){var c=this;this.manager=a,this.callback=b,this.element=a.element,this.target=a.options.inputTarget,this.domHandler=function(b){k(a.options.enable,[a])&&c.handler(b)},this.init()}function y(a){var b,c=a.options.inputClass;return new(b=c?c:xa?M:ya?P:wa?R:L)(a,z)}function z(a,b,c){var d=c.pointers.length,e=c.changedPointers.length,f=b&Ea&&d-e===0,g=b&(Ga|Ha)&&d-e===0;c.isFirst=!!f,c.isFinal=!!g,f&&(a.session={}),c.eventType=b,A(a,c),a.emit("hammer.input",c),a.recognize(c),a.session.prevInput=c}function A(a,b){var c=a.session,d=b.pointers,e=d.length;c.firstInput||(c.firstInput=D(b)),e>1&&!c.firstMultiple?c.firstMultiple=D(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=E(d);b.timeStamp=ra(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=I(h,i),b.distance=H(h,i),B(c,b),b.offsetDirection=G(b.deltaX,b.deltaY);var j=F(b.deltaTime,b.deltaX,b.deltaY);b.overallVelocityX=j.x,b.overallVelocityY=j.y,b.overallVelocity=qa(j.x)>qa(j.y)?j.x:j.y,b.scale=g?K(g.pointers,d):1,b.rotation=g?J(g.pointers,d):0,b.maxPointers=c.prevInput?b.pointers.length>c.prevInput.maxPointers?b.pointers.length:c.prevInput.maxPointers:b.pointers.length,C(c,b);var k=a.element;o(b.srcEvent.target,k)&&(k=b.srcEvent.target),b.target=k}function B(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};b.eventType!==Ea&&f.eventType!==Ga||(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function C(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Ha&&(i>Da||h.velocity===d)){var j=b.deltaX-h.deltaX,k=b.deltaY-h.deltaY,l=F(i,j,k);e=l.x,f=l.y,c=qa(l.x)>qa(l.y)?l.x:l.y,g=G(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function D(a){for(var b=[],c=0;c<a.pointers.length;)b[c]={clientX:pa(a.pointers[c].clientX),clientY:pa(a.pointers[c].clientY)},c++;return{timeStamp:ra(),pointers:b,center:E(b),deltaX:a.deltaX,deltaY:a.deltaY}}function E(a){var b=a.length;if(1===b)return{x:pa(a[0].clientX),y:pa(a[0].clientY)};for(var c=0,d=0,e=0;b>e;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:pa(c/b),y:pa(d/b)}}function F(a,b,c){return{x:b/a||0,y:c/a||0}}function G(a,b){return a===b?Ia:qa(a)>=qa(b)?0>a?Ja:Ka:0>b?La:Ma}function H(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function I(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function J(a,b){return I(b[1],b[0],Ra)+I(a[1],a[0],Ra)}function K(a,b){return H(b[0],b[1],Ra)/H(a[0],a[1],Ra)}function L(){this.evEl=Ta,this.evWin=Ua,this.pressed=!1,x.apply(this,arguments)}function M(){this.evEl=Xa,this.evWin=Ya,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=$a,this.evWin=_a,this.started=!1,x.apply(this,arguments)}function O(a,b){var c=s(a.touches),d=s(a.changedTouches);return b&(Ga|Ha)&&(c=t(c.concat(d),"identifier",!0)),[c,d]}function P(){this.evTarget=bb,this.targetIds={},x.apply(this,arguments)}function Q(a,b){var c=s(a.touches),d=this.targetIds;if(b&(Ea|Fa)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=s(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return o(a.target,i)}),b===Ea)for(e=0;e<f.length;)d[f[e].identifier]=!0,e++;for(e=0;e<g.length;)d[g[e].identifier]&&h.push(g[e]),b&(Ga|Ha)&&delete d[g[e].identifier],e++;return h.length?[t(f.concat(h),"identifier",!0),h]:void 0}function R(){x.apply(this,arguments);var a=j(this.handler,this);this.touch=new P(this.manager,a),this.mouse=new L(this.manager,a),this.primaryTouch=null,this.lastTouches=[]}function S(a,b){a&Ea?(this.primaryTouch=b.changedPointers[0].identifier,T.call(this,b)):a&(Ga|Ha)&&T.call(this,b)}function T(a){var b=a.changedPointers[0];if(b.identifier===this.primaryTouch){var c={x:b.clientX,y:b.clientY};this.lastTouches.push(c);var d=this.lastTouches,e=function(){var a=d.indexOf(c);a>-1&&d.splice(a,1)};setTimeout(e,cb)}}function U(a){for(var b=a.srcEvent.clientX,c=a.srcEvent.clientY,d=0;d<this.lastTouches.length;d++){var e=this.lastTouches[d],f=Math.abs(b-e.x),g=Math.abs(c-e.y);if(db>=f&&db>=g)return!0}return!1}function V(a,b){this.manager=a,this.set(b)}function W(a){if(p(a,jb))return jb;var b=p(a,kb),c=p(a,lb);return b&&c?jb:b||c?b?kb:lb:p(a,ib)?ib:hb}function X(){if(!fb)return!1;var b={},c=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(d){b[d]=c?a.CSS.supports("touch-action",d):!0}),b}function Y(a){this.options=la({},this.defaults,a||{}),this.id=v(),this.manager=null,this.options.enable=l(this.options.enable,!0),this.state=nb,this.simultaneous={},this.requireFail=[]}function Z(a){return a&sb?"cancel":a&qb?"end":a&pb?"move":a&ob?"start":""}function $(a){return a==Ma?"down":a==La?"up":a==Ja?"left":a==Ka?"right":""}function _(a,b){var c=b.manager;return c?c.get(a):a}function aa(){Y.apply(this,arguments)}function ba(){aa.apply(this,arguments),this.pX=null,this.pY=null}function ca(){aa.apply(this,arguments)}function da(){Y.apply(this,arguments),this._timer=null,this._input=null}function ea(){aa.apply(this,arguments)}function fa(){aa.apply(this,arguments)}function ga(){Y.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ha(a,b){return b=b||{},b.recognizers=l(b.recognizers,ha.defaults.preset),new ia(a,b)}function ia(a,b){this.options=la({},ha.defaults,b||{}),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=a,this.input=y(this),this.touchAction=new V(this,this.options.touchAction),ja(this,!0),g(this.options.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function ja(a,b){var c=a.element;if(c.style){var d;g(a.options.cssProps,function(e,f){d=u(c.style,f),b?(a.oldCssProps[d]=c.style[d],c.style[d]=e):c.style[d]=a.oldCssProps[d]||""}),b||(a.oldCssProps={})}}function ka(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}var la,ma=["","webkit","Moz","MS","ms","o"],na=b.createElement("div"),oa="function",pa=Math.round,qa=Math.abs,ra=Date.now;la="function"!=typeof Object.assign?function(a){if(a===d||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1;c<arguments.length;c++){var e=arguments[c];if(e!==d&&null!==e)for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])}return b}:Object.assign;var sa=h(function(a,b,c){for(var e=Object.keys(b),f=0;f<e.length;)(!c||c&&a[e[f]]===d)&&(a[e[f]]=b[e[f]]),f++;return a},"extend","Use `assign`."),ta=h(function(a,b){return sa(a,b,!0)},"merge","Use `assign`."),ua=1,va=/mobile|tablet|ip(ad|hone|od)|android/i,wa="ontouchstart"in a,xa=u(a,"PointerEvent")!==d,ya=wa&&va.test(navigator.userAgent),za="touch",Aa="pen",Ba="mouse",Ca="kinect",Da=25,Ea=1,Fa=2,Ga=4,Ha=8,Ia=1,Ja=2,Ka=4,La=8,Ma=16,Na=Ja|Ka,Oa=La|Ma,Pa=Na|Oa,Qa=["x","y"],Ra=["clientX","clientY"];x.prototype={handler:function(){},init:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(w(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&n(this.element,this.evEl,this.domHandler),this.evTarget&&n(this.target,this.evTarget,this.domHandler),this.evWin&&n(w(this.element),this.evWin,this.domHandler)}};var Sa={mousedown:Ea,mousemove:Fa,mouseup:Ga},Ta="mousedown",Ua="mousemove mouseup";i(L,x,{handler:function(a){var b=Sa[a.type];b&Ea&&0===a.button&&(this.pressed=!0),b&Fa&&1!==a.which&&(b=Ga),this.pressed&&(b&Ga&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:Ba,srcEvent:a}))}});var Va={pointerdown:Ea,pointermove:Fa,pointerup:Ga,pointercancel:Ha,pointerout:Ha},Wa={2:za,3:Aa,4:Ba,5:Ca},Xa="pointerdown",Ya="pointermove pointerup pointercancel";a.MSPointerEvent&&!a.PointerEvent&&(Xa="MSPointerDown",Ya="MSPointerMove MSPointerUp MSPointerCancel"),i(M,x,{handler:function(a){var b=this.store,c=!1,d=a.type.toLowerCase().replace("ms",""),e=Va[d],f=Wa[a.pointerType]||a.pointerType,g=f==za,h=r(b,a.pointerId,"pointerId");e&Ea&&(0===a.button||g)?0>h&&(b.push(a),h=b.length-1):e&(Ga|Ha)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Za={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},$a="touchstart",_a="touchstart touchmove touchend touchcancel";i(N,x,{handler:function(a){var b=Za[a.type];if(b===Ea&&(this.started=!0),this.started){var c=O.call(this,a,b);b&(Ga|Ha)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}}});var ab={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},bb="touchstart touchmove touchend touchcancel";i(P,x,{handler:function(a){var b=ab[a.type],c=Q.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}});var cb=2500,db=25;i(R,x,{handler:function(a,b,c){var d=c.pointerType==za,e=c.pointerType==Ba;if(!(e&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(d)S.call(this,b,c);else if(e&&U.call(this,c))return;this.callback(a,b,c)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var eb=u(na.style,"touchAction"),fb=eb!==d,gb="compute",hb="auto",ib="manipulation",jb="none",kb="pan-x",lb="pan-y",mb=X();V.prototype={set:function(a){a==gb&&(a=this.compute()),fb&&this.manager.element.style&&mb[a]&&(this.manager.element.style[eb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){k(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),W(a.join(" "))},preventDefaults:function(a){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=p(d,jb)&&!mb[jb],f=p(d,lb)&&!mb[lb],g=p(d,kb)&&!mb[kb];if(e){var h=1===a.pointers.length,i=a.distance<2,j=a.deltaTime<250;if(h&&i&&j)return}return g&&f?void 0:e||f&&c&Na||g&&c&Oa?this.preventSrc(b):void 0},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var nb=1,ob=2,pb=4,qb=8,rb=qb,sb=16,tb=32;Y.prototype={defaults:{},set:function(a){return la(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=_(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=_(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=_(a,this),-1===r(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=_(a,this);var b=r(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(b,a)}var c=this,d=this.state;qb>d&&b(c.options.event+Z(d)),b(c.options.event),a.additionalEvent&&b(a.additionalEvent),d>=qb&&b(c.options.event+Z(d))},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=tb)},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(tb|nb)))return!1;a++}return!0},recognize:function(a){var b=la({},a);return k(this.options.enable,[this,b])?(this.state&(rb|sb|tb)&&(this.state=nb),this.state=this.process(b),void(this.state&(ob|pb|qb|sb)&&this.tryEmit(b))):(this.reset(),void(this.state=tb))},process:function(a){},getTouchAction:function(){},reset:function(){}},i(aa,Y,{defaults:{pointers:1},attrTest:function(a){var b=this.options.pointers;return 0===b||a.pointers.length===b},process:function(a){var b=this.state,c=a.eventType,d=b&(ob|pb),e=this.attrTest(a);return d&&(c&Ha||!e)?b|sb:d||e?c&Ga?b|qb:b&ob?b|pb:ob:tb}}),i(ba,aa,{defaults:{event:"pan",threshold:10,pointers:1,direction:Pa},getTouchAction:function(){var a=this.options.direction,b=[];return a&Na&&b.push(lb),a&Oa&&b.push(kb),b},directionTest:function(a){var b=this.options,c=!0,d=a.distance,e=a.direction,f=a.deltaX,g=a.deltaY;return e&b.direction||(b.direction&Na?(e=0===f?Ia:0>f?Ja:Ka,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Ia:0>g?La:Ma,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return aa.prototype.attrTest.call(this,a)&&(this.state&ob||!(this.state&ob)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=$(a.direction);b&&(a.additionalEvent=this.options.event+b),this._super.emit.call(this,a)}}),i(ca,aa,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&ob)},emit:function(a){if(1!==a.scale){var b=a.scale<1?"in":"out";a.additionalEvent=this.options.event+b}this._super.emit.call(this,a)}}),i(da,Y,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[hb]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime>b.time;if(this._input=a,!d||!c||a.eventType&(Ga|Ha)&&!f)this.reset();else if(a.eventType&Ea)this.reset(),this._timer=e(function(){this.state=rb,this.tryEmit()},b.time,this);else if(a.eventType&Ga)return rb;return tb},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===rb&&(a&&a.eventType&Ga?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=ra(),this.manager.emit(this.options.event,this._input)))}}),i(ea,aa,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&ob)}}),i(fa,aa,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Na|Oa,pointers:1},getTouchAction:function(){return ba.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Na|Oa)?b=a.overallVelocity:c&Na?b=a.overallVelocityX:c&Oa&&(b=a.overallVelocityY),this._super.attrTest.call(this,a)&&c&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&qa(b)>this.options.velocity&&a.eventType&Ga},emit:function(a){var b=$(a.offsetDirection);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),i(ga,Y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ib]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime<b.time;if(this.reset(),a.eventType&Ea&&0===this.count)return this.failTimeout();if(d&&f&&c){if(a.eventType!=Ga)return this.failTimeout();var g=this.pTime?a.timeStamp-this.pTime<b.interval:!0,h=!this.pCenter||H(this.pCenter,a.center)<b.posThreshold;this.pTime=a.timeStamp,this.pCenter=a.center,h&&g?this.count+=1:this.count=1,this._input=a;var i=this.count%b.taps;if(0===i)return this.hasRequireFailures()?(this._timer=e(function(){this.state=rb,this.tryEmit()},b.interval,this),ob):rb}return tb},failTimeout:function(){return this._timer=e(function(){this.state=tb},this.options.interval,this),tb},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==rb&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ha.VERSION="2.0.8",ha.defaults={domEvents:!1,touchAction:gb,enable:!0,inputTarget:null,inputClass:null,preset:[[ea,{enable:!1}],[ca,{enable:!1},["rotate"]],[fa,{direction:Na}],[ba,{direction:Na},["swipe"]],[ga],[ga,{event:"doubletap",taps:2},["tap"]],[da]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ub=1,vb=2;ia.prototype={set:function(a){return la(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?vb:ub},recognize:function(a){var b=this.session;if(!b.stopped){this.touchAction.preventDefaults(a);var c,d=this.recognizers,e=b.curRecognizer;(!e||e&&e.state&rb)&&(e=b.curRecognizer=null);for(var f=0;f<d.length;)c=d[f],b.stopped===vb||e&&c!=e&&!c.canRecognizeWith(e)?c.reset():c.recognize(a),!e&&c.state&(ob|pb|qb)&&(e=b.curRecognizer=c),f++}},get:function(a){if(a instanceof Y)return a;for(var b=this.recognizers,c=0;c<b.length;c++)if(b[c].options.event==a)return b[c];return null},add:function(a){if(f(a,"add",this))return this;var b=this.get(a.options.event);return b&&this.remove(b),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(f(a,"remove",this))return this;if(a=this.get(a)){var b=this.recognizers,c=r(b,a);-1!==c&&(b.splice(c,1),this.touchAction.update())}return this},on:function(a,b){if(a!==d&&b!==d){var c=this.handlers;return g(q(a),function(a){c[a]=c[a]||[],c[a].push(b)}),this}},off:function(a,b){if(a!==d){var c=this.handlers;return g(q(a),function(a){b?c[a]&&c[a].splice(r(c[a],b),1):delete c[a]}),this}},emit:function(a,b){this.options.domEvents&&ka(a,b);var c=this.handlers[a]&&this.handlers[a].slice();if(c&&c.length){b.type=a,b.preventDefault=function(){b.srcEvent.preventDefault()};for(var d=0;d<c.length;)c[d](b),d++}},destroy:function(){this.element&&ja(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},la(ha,{INPUT_START:Ea,INPUT_MOVE:Fa,INPUT_END:Ga,INPUT_CANCEL:Ha,STATE_POSSIBLE:nb,STATE_BEGAN:ob,STATE_CHANGED:pb,STATE_ENDED:qb,STATE_RECOGNIZED:rb,STATE_CANCELLED:sb,STATE_FAILED:tb,DIRECTION_NONE:Ia,DIRECTION_LEFT:Ja,DIRECTION_RIGHT:Ka,DIRECTION_UP:La,DIRECTION_DOWN:Ma,DIRECTION_HORIZONTAL:Na,DIRECTION_VERTICAL:Oa,DIRECTION_ALL:Pa,Manager:ia,Input:x,TouchAction:V,TouchInput:P,MouseInput:L,PointerEventInput:M,TouchMouseInput:R,SingleTouchInput:N,Recognizer:Y,AttrRecognizer:aa,Tap:ga,Pan:ba,Swipe:fa,Pinch:ca,Rotate:ea,Press:da,on:m,off:n,each:g,merge:ta,extend:sa,assign:la,inherit:i,bindFn:j,prefixed:u});var wb="undefined"!=typeof a?a:"undefined"!=typeof self?self:{};wb.Hammer=ha,"function"==typeof define&&define.amd?define(function(){return ha}):"undefined"!=typeof module&&module.exports?module.exports=ha:a[c]=ha}(window,document,"Hammer");