PageSourceSearch

https://www.fulda.de/typo3temp/assets/compressed/merged-e96330aa9fbcfd16d2785e7e69ceebdc-min.js.gz?1790895738

js fulda.de collected 2026-10-02 07:43:30 UTC 796,468 bytes, 1,407 lines download raw bytes

1document.addEventListener('DOMContentLoaded',function(){onClickAndEnter(document.querySelectorAll('.print-on-click'),function(e){e.preventDefault();window.print();return!1})});
vendor: 89,947 bytes, lines 2-3
2/*! jQuery v3.6.3 | (c) OpenJS Foundation and other contributors | jquery.org/license */
3!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},S=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||S).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.3",E=function(e,t){return new E.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}E.fn=E.prototype={jquery:f,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(n){return this.pushStack(E.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(E.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},E.extend=E.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(E.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||E.isPlainObject(n)?n:{},i=!1,a[t]=E.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},E.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=y.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?E.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:v}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=t[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,S,y,s,c,v,E="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",$=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,S)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&v(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!y||!y.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ve(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=E)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{if(d.cssSupportsSelector&&!CSS.supports("selector(:is("+c+"))"))throw new Error;return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===E&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[E]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ye(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,S=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.cssSupportsSelector=ce(function(){return CSS.supports("selector(*)")&&C.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=E,!C.getElementsByName||!C.getElementsByName(E).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&S){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&S){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}: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},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&S)return t.getElementsByClassName(e)},s=[],y=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+E+"-]").length||y.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||y.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),d.cssSupportsSelector||y.push(":has"),y=y.length&&new RegExp(y.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),v=t||K.test(a.contains)?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},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&v(p,e)?-1:t==C||t.ownerDocument==p&&v(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&S&&!N[t+" "]&&(!s||!s.test(t))&&(!y||!y.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),v(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&D.call(b.attrHandle,t.toLowerCase())?n(e,t,!S):void 0;return void 0!==r?r:d.attributes||!S?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(j),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.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+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace($," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,y){var v="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===y?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=v!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(v){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[E]||(a[E]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[E]||(a[E]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[E]||(a[E]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=y)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[E]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace(B,"$1"));return s[E]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=S?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ye(function(){return[0]}),last:ye(function(e,t){return[t-1]}),eq:ye(function(e,t,n){return[n<0?n+t:n]}),even:ye(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ye(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ye(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ye(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[E]||(e[E]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,y,v,e){return y&&!y[E]&&(y=Ce(y)),v&&!v[E]&&(v=Ce(v,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?v||(e?d:l||y)?[]:t:f;if(g&&g(f,p,n,r),y){i=Te(p,u),y(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(v||d){if(v){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);v(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=v?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),v?v(null,t,p,r):H.apply(t,p)})}function Se(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[E]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(B,"$1"),t,s<n&&Se(e.slice(s,n)),n<r&&Se(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(B," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,y,v,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Se(t[n]))[E]?i.push(a):o.push(a);(a=A(e,(y=o,m=0<(v=i).length,x=0<y.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!S);while(s=y[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=v[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+v.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&S&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ve(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!S,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},d.sortStable=E.split("").sort(j).join("")===E,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);E.find=d,E.expr=d.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=d.uniqueSort,E.text=d.getText,E.isXMLDoc=d.isXML,E.contains=d.contains,E.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&E(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=E.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?E.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?E.grep(e,function(e){return e===n!==r}):"string"!=typeof n?E.grep(e,function(e){return-1<i.call(n,e)!==r}):E.filter(n,e,r)}E.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?E.find.matchesSelector(r,e)?[r]:[]:E.find.matches(e,E.grep(t,function(e){return 1===e.nodeType}))},E.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(E(e).filter(function(){for(t=0;t<r;t++)if(E.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)E.find(e,i[t],n);return 1<r?E.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&k.test(e)?E(e):e||[],!1).length}});var D,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),N.test(r[1])&&E.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=S.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,D=E(S);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(E.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&E(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&E.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?E.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(E(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},function(r,i){E.fn[r]=function(e,t){var n=E.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=E.filter(t,n)),1<this.length&&(H[r]||E.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}E.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},E.each(e.match(P)||[],function(e,t){n[t]=!0}),n):E.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){E.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return E.each(arguments,function(e,t){var n;while(-1<(n=E.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<E.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},E.extend({Deferred:function(e){var o=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return E.Deferred(function(r){E.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(E.Deferred.getStackHook&&(t.stackTrace=E.Deferred.getStackHook()),C.setTimeout(t))}}return E.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?E.extend(e,a):a}},s={};return E.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=E.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},E.readyException=function(e){C.setTimeout(function(){throw e})};var F=E.Deferred();function $(){S.removeEventListener("DOMContentLoaded",$),C.removeEventListener("load",$),E.ready()}E.fn.ready=function(e){return F.then(e)["catch"](function(e){E.readyException(e)}),this},E.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0)!==e&&0<--E.readyWait||F.resolveWith(S,[E])}}),E.ready.then=F.then,"complete"===S.readyState||"loading"!==S.readyState&&!S.documentElement.doScroll?C.setTimeout(E.ready):(S.addEventListener("DOMContentLoaded",$),C.addEventListener("load",$));var B=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)B(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(E(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=E.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||E.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}E.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),E.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):B(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),E.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),r=n.length,i=n.shift(),o=E._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){E.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:E.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),E.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?E.queue(this[0],t):void 0===n?this:this.each(function(){var e=E.queue(this,t,n);E._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&E.dequeue(this,t)})},dequeue:function(e){return this.each(function(){E.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=E.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=S.documentElement,ie=function(e){return E.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return E.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===E.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return E.css(e,t,"")},u=s(),l=n&&n[3]||(E.cssNumber[t]?"":"px"),c=e.nodeType&&(E.cssNumber[t]||"px"!==l&&+u)&&te.exec(E.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)E.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,E.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=E.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}E.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?E(this).show():E(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=S.createDocumentFragment().appendChild(S.createElement("div")),(fe=S.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),v.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",v.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ye(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?E.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,v.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))E.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+E.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;E.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<E.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ye(f.appendChild(o),"script"),l&&ve(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return S.activeElement}catch(e){}}()==("focus"===t)}function Se(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Se(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return E().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=E.guid++)),e.each(function(){E.event.add(this,t,i,r,n)})}function Ee(e,i,o){o?(Y.set(e,i,!1),E.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(E.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(Y.set(this,i,{value:E.event.trigger(E.extend(r[0],E.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&E.event.add(e,i,we)}E.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,y=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&E.find.matchesSelector(re,i),n.guid||(n.guid=E.guid++),(u=y.events)||(u=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(e){return"undefined"!=typeof E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=be.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=E.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=E.event.special[d]||{},c=E.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),E.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,y=Y.hasData(e)&&Y.get(e);if(y&&(u=y.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=be.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=E.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,y.handle)||E.removeEvent(e,d,y.handle),delete u[d])}else for(d in u)E.event.remove(e,d+t[l],n,r,!0);E.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=E.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=E.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=E.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((E.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<E(i,this).index(l):E.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(E.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[E.expando]?e:new E.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ee(t,"click",we),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ee(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},E.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},function(t,e){E.event.special[t]={setup:function(){return Ee(this,t,Ce),!1},trigger:function(){return Ee(this,t),!0},_default:function(e){return Y.get(e.target,t)},delegateType:e}}),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){E.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||E.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),E.fn.extend({on:function(e,t,n,r){return Se(this,e,t,n,r)},one:function(e,t,n,r){return Se(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,E(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){E.event.remove(this,e,n,t)})}});var ke=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)E.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=E.extend({},o),Q.set(t,a))}}function He(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!v.checkClone&&Ae.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),He(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=E.map(ye(e,"script"),De)).length;c<f;c++)u=e,c!==p&&(u=E.clone(u,!0,!0),s&&E.merge(a,ye(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,E.map(a,qe),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&E.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?E._evalUrl&&!u.noModule&&E._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(Ne,""),u,l))}return n}function Oe(e,t,n){for(var r,i=t?E.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||E.cleanData(ye(r)),r.parentNode&&(n&&ie(r)&&ve(ye(r,"script")),r.parentNode.removeChild(r));return e}E.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||E.isXMLDoc(e)))for(a=ye(c),r=0,i=(o=ye(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ye(e),a=a||ye(c),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,c);return 0<(a=ye(c,"script")).length&&ve(a,!f&&ye(e,"script")),c},cleanData:function(e){for(var t,n,r,i=E.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?E.event.remove(n,r):E.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),E.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return B(this,function(e){return void 0===e?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(E.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return E.clone(this,e,t)})},html:function(e){return B(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;E.inArray(this,n)<0&&(E.cleanData(ye(this)),t&&t.replaceChild(e,this))},n)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){E.fn[e]=function(e){for(var t,n=[],r=E(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),E(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=/^--/,Me=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Ie=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},We=new RegExp(ne.join("|"),"i"),Fe="[\\x20\\t\\r\\n\\f]",$e=new RegExp("^"+Fe+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Fe+"+$","g");function Be(e,t,n){var r,i,o,a,s=Re.test(t),u=e.style;return(n=n||Me(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace($e,"$1")||void 0),""!==a||ie(e)||(a=E.style(e,t)),!v.pixelBoxStyles()&&Pe.test(a)&&We.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function _e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=S.createElement("div"),l=S.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===l.style.backgroundClip,E.extend(v,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=S.createElement("table"),t=S.createElement("tr"),n=S.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var ze=["Webkit","Moz","ms"],Ue=S.createElement("div").style,Xe={};function Ve(e){var t=E.cssProps[e]||Xe[e];return t||(e in Ue?e:Xe[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=ze.length;while(n--)if((e=ze[n]+t)in Ue)return e}(e)||e)}var Ge=/^(none|table(?!-c[ea]).+)/,Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=E.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=E.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=E.css(e,"border"+ne[a]+"Width",!0,i))):(u+=E.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=E.css(e,"border"+ne[a]+"Width",!0,i):s+=E.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Ze(e,t,n){var r=Me(e),i=(!v.boxSizingReliable()||n)&&"border-box"===E.css(e,"boxSizing",!1,r),o=i,a=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Pe.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===E.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(i?"border":"content"),o,r,a)+"px"}function et(e,t,n,r,i){return new et.prototype.init(e,t,n,r,i)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Re.test(t),l=e.style;if(u||(t=Ve(s)),a=E.cssHooks[t]||E.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(E.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Re.test(t)||(t=Ve(s)),(a=E.cssHooks[t]||E.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),E.each(["height","width"],function(e,u){E.cssHooks[u]={get:function(e,t,n){if(t)return!Ge.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,u,n):Ie(e,Ye,function(){return Ze(e,u,n)})},set:function(e,t,n){var r,i=Me(e),o=!v.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===E.css(e,"boxSizing",!1,i),s=n?Ke(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Ke(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=E.css(e,u)),Je(0,t,s)}}}),E.cssHooks.marginLeft=_e(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-Ie(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(i,o){E.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(E.cssHooks[i+o].set=Je)}),E.fn.extend({css:function(e,t){return B(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Me(e),i=t.length;a<i;a++)o[t[a]]=E.css(e,t[a],!1,r);return o}return void 0!==n?E.style(e,t,n):E.css(e,t)},e,t,1<arguments.length)}}),((E.Tween=et).prototype={constructor:et,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=E.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=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):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||!E.cssHooks[e.prop]&&null==e.elem.style[Ve(e.prop)]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=et.prototype.init,E.fx.step={};var tt,nt,rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===S.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(st):C.setTimeout(st,E.fx.interval),E.fx.tick())}function ut(){return C.setTimeout(function(){tt=void 0}),tt=Date.now()}function lt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(o,e,t){var n,a,r=0,i=ft.prefilters.length,s=E.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=tt||ut(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:E.extend({},e),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},t),originalProperties:e,originalOptions:t,startTime:tt||ut(),duration:t.duration,tweens:[],createTween:function(e,t){var n=E.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=E.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=ft.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(E._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return E.map(c,ct,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),E.fx.timer(E.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}E.Animation=E.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),y=Y.get(e,"fxshow");for(r in n.queue||(null==(a=E._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,E.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ot.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!y||void 0===y[r])continue;g=!0}d[r]=y&&y[r]||E.style(e,r)}if((u=!E.isEmptyObject(t))||!E.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=y&&y.display)&&(l=Y.get(e,"display")),"none"===(c=E.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=E.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===E.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(y?"hidden"in y&&(g=y.hidden):y=Y.access(e,"fxshow",{display:l}),o&&(y.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)E.style(e,r,d[r])})),u=ct(g?y[r]:0,r,p),r in y||(y[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),E.speed=function(e,t,n){var r=e&&"object"==typeof e?E.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return E.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in E.fx.speeds?r.duration=E.fx.speeds[r.duration]:r.duration=E.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&E.dequeue(this,r.queue)},r},E.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=E.isEmptyObject(t),o=E.speed(e,n,r),a=function(){var e=ft(this,E.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=E.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&at.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||E.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=E.timers,o=n?n.length:0;for(t.finish=!0,E.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),E.each(["toggle","show","hide"],function(e,r){var i=E.fn[r];E.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(lt(r,!0),e,t,n)}}),E.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){E.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),E.timers=[],E.fx.tick=function(){var e,t=0,n=E.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||E.fx.stop(),tt=void 0},E.fx.timer=function(e){E.timers.push(e),E.fx.start()},E.fx.interval=13,E.fx.start=function(){nt||(nt=!0,st())},E.fx.stop=function(){nt=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(r,e){return r=E.fx&&E.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},rt=S.createElement("input"),it=S.createElement("select").appendChild(S.createElement("option")),rt.type="checkbox",v.checkOn=""!==rt.value,v.optSelected=it.selected,(rt=S.createElement("input")).value="t",rt.type="radio",v.radioValue="t"===rt.value;var pt,dt=E.expr.attrHandle;E.fn.extend({attr:function(e,t){return B(this,E.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){E.removeAttr(this,e)})}}),E.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?E.prop(e,t,n):(1===o&&E.isXMLDoc(e)||(i=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=E.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(e,t){var a=dt[t]||E.find.attr;dt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=dt[o],dt[o]=r,r=null!=a(e,t,n)?o:null,dt[o]=i),r}});var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function yt(e){return(e.match(P)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}E.fn.extend({prop:function(e,t){return B(this,E.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[E.propFix[e]||e]})}}),E.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(e)||(t=E.propFix[t]||t,i=E.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),v.optSelected||(E.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(t){var e,n,r,i,o,a;return m(t)?this.each(function(e){E(this).addClass(t.call(this,e,vt(this)))}):(e=mt(t)).length?this.each(function(){if(r=vt(this),n=1===this.nodeType&&" "+yt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=yt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return m(t)?this.each(function(e){E(this).removeClass(t.call(this,e,vt(this)))}):arguments.length?(e=mt(t)).length?this.each(function(){if(r=vt(this),n=1===this.nodeType&&" "+yt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=yt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return m(t)?this.each(function(e){E(this).toggleClass(t.call(this,e,vt(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=mt(t),this.each(function(){if(s)for(o=E(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=vt(this))&&Y.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":Y.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+yt(vt(n))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;E.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,E(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=E.map(t,function(e){return null==e?"":e+""})),(r=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=E.valHooks[t.type]||E.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(xt,""):null==e?"":e:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:yt(E.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=E(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=E.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<E.inArray(E.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<E.inArray(E(e).val(),t)}},v.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in C;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||S],d=y.call(e,"type")?e.type:e,h=y.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||S,3!==n.nodeType&&8!==n.nodeType&&!bt.test(d+E.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[E.expando]?e:new E.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),c=E.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,bt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||S)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),E.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,wt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,wt),E.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(r,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each(function(){E.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}}),v.focusin||E.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){E.event.simulate(r,e.target,E.event.fix(e))};E.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var Tt=C.location,Ct={guid:Date.now()},St=/\?/;E.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||E.error("Invalid XML: "+(n?E.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Et=/\[\]$/,kt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function jt(n,e,r,i){var t;if(Array.isArray(e))E.each(e,function(e,t){r||Et.test(n)?i(n,t):jt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)jt(n+"["+t+"]",e[t],r,i)}E.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,function(){i(this.name,this.value)});else for(n in e)jt(n,e[n],t,i);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}});var Dt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},Mt={},It="*/".concat("*"),Wt=S.createElement("a");function Ft(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function $t(t,i,o,a){var s={},u=t===Mt;function l(e){var r;return s[e]=!0,E.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Bt(e,t){var n,r,i=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&E.extend(!0,e,r),e}Wt.href=Tt.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,E.ajaxSettings),t):Bt(E.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,y=E.ajaxSetup({},t),v=y.context||y,m=y.context&&(v.nodeType||v.jquery)?E(v):E.event,x=E.Deferred(),b=E.Callbacks("once memory"),w=y.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Ht.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(y.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),y.url=((e||y.url||Tt.href)+"").replace(Pt,Tt.protocol+"//"),y.type=t.method||t.type||y.method||y.type,y.dataTypes=(y.dataType||"*").toLowerCase().match(P)||[""],null==y.crossDomain){r=S.createElement("a");try{r.href=y.url,r.href=r.href,y.crossDomain=Wt.protocol+"//"+Wt.host!=r.protocol+"//"+r.host}catch(e){y.crossDomain=!0}}if(y.data&&y.processData&&"string"!=typeof y.data&&(y.data=E.param(y.data,y.traditional)),$t(Rt,y,t,T),h)return T;for(i in(g=E.event&&y.global)&&0==E.active++&&E.event.trigger("ajaxStart"),y.type=y.type.toUpperCase(),y.hasContent=!Ot.test(y.type),f=y.url.replace(qt,""),y.hasContent?y.data&&y.processData&&0===(y.contentType||"").indexOf("application/x-www-form-urlencoded")&&(y.data=y.data.replace(Dt,"+")):(o=y.url.slice(f.length),y.data&&(y.processData||"string"==typeof y.data)&&(f+=(St.test(f)?"&":"?")+y.data,delete y.data),!1===y.cache&&(f=f.replace(Lt,"$1"),o=(St.test(f)?"&":"?")+"_="+Ct.guid+++o),y.url=f+o),y.ifModified&&(E.lastModified[f]&&T.setRequestHeader("If-Modified-Since",E.lastModified[f]),E.etag[f]&&T.setRequestHeader("If-None-Match",E.etag[f])),(y.data&&y.hasContent&&!1!==y.contentType||t.contentType)&&T.setRequestHeader("Content-Type",y.contentType),T.setRequestHeader("Accept",y.dataTypes[0]&&y.accepts[y.dataTypes[0]]?y.accepts[y.dataTypes[0]]+("*"!==y.dataTypes[0]?", "+It+"; q=0.01":""):y.accepts["*"]),y.headers)T.setRequestHeader(i,y.headers[i]);if(y.beforeSend&&(!1===y.beforeSend.call(v,T,y)||h))return T.abort();if(u="abort",b.add(y.complete),T.done(y.success),T.fail(y.error),c=$t(Mt,y,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,y]),h)return T;y.async&&0<y.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},y.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(y,T,n)),!i&&-1<E.inArray("script",y.dataTypes)&&E.inArray("json",y.dataTypes)<0&&(y.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(y,s,T,i),i?(y.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(E.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(E.etag[f]=u)),204===e||"HEAD"===y.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(v,[o,l,T]):x.rejectWith(v,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,y,i?o:a]),b.fireWith(v,[T,l]),g&&(m.trigger("ajaxComplete",[T,y]),--E.active||E.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],function(e,i){E[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),E.ajax(E.extend({url:e,type:i,dataType:r,data:t,success:n},E.isPlainObject(e)&&e))}}),E.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),E._evalUrl=function(e,t,n){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){E.globalEval(e,t,n)}})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){E(this).wrapInner(n.call(this,e))}):this.each(function(){var e=E(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){E(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=E.ajaxSettings.xhr();v.cors=!!zt&&"withCredentials"in zt,v.ajax=zt=!!zt,E.ajaxTransport(function(i){var o,a;if(v.cors||zt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(_t[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),E.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),E.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=E("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),S.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||E.expando+"_"+Ct.guid++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||E.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?E(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),v.createHTMLDocument=((Ut=S.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=S.implementation.createHTMLDocument("")).createElement("base")).href=S.location.href,t.head.appendChild(r)):t=S),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=yt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&E.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?E("<div>").append(E.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=E.css(e,"position"),c=E(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=E.css(e,"top"),u=E.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),i.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-E.css(r,"marginTop",!0),left:t.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===E.css(e,"position"))e=e.offsetParent;return e||re})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;E.fn[t]=function(e){return B(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),E.each(["top","left"],function(e,n){E.cssHooks[n]=_e(v.pixelPosition,function(e,t){if(t)return t=Be(e,n),Pe.test(t)?E(e).position()[n]+"px":t})}),E.each({Height:"height",Width:"width"},function(a,s){E.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){E.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return B(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?E.css(e,t,i):E.style(e,t,n,i)},s,n?e:void 0,n)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){E.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Gt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;E.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||E.guid++,i},E.holdReady=function(e){e?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=A,E.isFunction=m,E.isWindow=x,E.camelCase=X,E.type=w,E.now=Date.now,E.isNumeric=function(e){var t=E.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},E.trim=function(e){return null==e?"":(e+"").replace(Gt,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return E});var Yt=C.jQuery,Qt=C.$;return E.noConflict=function(e){return C.$===E&&(C.$=Qt),e&&C.jQuery===E&&(C.jQuery=Yt),E},"undefined"==typeof e&&(C.jQuery=C.$=E),E});
vendor: 1,730 bytes, lines 4-5
4/*! js-cookie v3.0.5 | MIT */
5!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});return t}));
5function topIsVisible(element){const $el=element&&element.jquery?element.get(0):element;if(!$el)return;const rect=$el.getBoundingClientRect();const viewportHeight=window.innerHeight||document.documentElement.clientHeight;return rect.top>=0&&rect.top<=viewportHeight}
6function getCssVarNumber(name){const v=getCssVar(name);return v?parseFloat(v):0}
7function getCssVar(name){return getComputedStyle(document.documentElement).getPropertyValue(name).trim()}
8function waitForLayout(){return new Promise(resolve=>{requestAnimationFrame(()=>{requestAnimationFrame(resolve)})})}
9function waitForTransitions($elements,buffer=50){let maxTime=getMaxTransitionTime($elements);return new Promise(resolve=>{setTimeout(resolve,maxTime+buffer)})}
10function getMaxTransitionTime($elements,stopEl=null,stopSelector=null){let $els=(!isIterable($elements))?[$elements]:$elements;$els=Array.from($els);let maxTime=0;$els.forEach($root=>{if(!$root)return;const walker=document.createTreeWalker($root,NodeFilter.SHOW_ELEMENT,{acceptNode(node){if(stopEl&&node===stopEl){return NodeFilter.FILTER_REJECT}
11if(stopSelector&&node.matches(stopSelector)){return NodeFilter.FILTER_REJECT}
12return NodeFilter.FILTER_ACCEPT}});processEl($root);let node;while((node=walker.nextNode())){processEl(node)}});return maxTime;function processEl($el){const style=getComputedStyle($el);const durations=style.transitionDuration.split(',').map(parseTime);const delays=style.transitionDelay.split(',').map(parseTime);const totalTimes=durations.map((d,i)=>d+(delays[i]||0));const longest=Math.max(...totalTimes,0);if(longest>maxTime)maxTime=longest}
13function parseTime(str){const val=str.trim();return val.endsWith('ms')?parseFloat(val):parseFloat(val)*1000}}
14function thisIsBrowser(name){let isBrowser=!1;let arr=name.trim().split(',');let isIE11=!!window.MSInputMethodContext&&!!document.documentMode;for(i=0;i<arr.length;i++){if(navigator.appVersion.toLowerCase().indexOf(arr[i].trim())!=-1||(isIE11&&arr[i].trim()=='ie')){isBrowser=!0}}
15return isBrowser}
16const KEY_ENTER='Enter';const KEY_TAB='Tab';const KEY_ESC='Escape';function isNativelyFocusable($el){if(['A'].includes($el.nodeName)&&$el.href){return!0}
17return['BUTTON'].includes($el.nodeName)}
18function makeFocusable($elements,options){options=Object.assign({mode:!0,index:0},options);$elements=(!isIterable($elements))?[$elements]:$elements;$elements.forEach(($el)=>{if(!$el)return;if($el.nodeType===Node.ELEMENT_NODE){if(options.mode&&!$el.getAttribute('tabindex')){$el.setAttribute('tabindex',options.index);$el.removeAttribute('aria-hidden')}else if(!options.mode){$el.removeAttribute('tabindex');$el.setAttribute('aria-hidden',!0)}}});return $elements}
19function enterKey($elements,fnc){function handleKeyDown(ev){if(ev.target===ev.currentTarget){let key=ev.key?ev.key:ev.which;if(key===KEY_ENTER){fnc.call(this,ev)}}}
20$elements=(!isIterable($elements))?[$elements]:$elements;$elements.forEach(($el)=>{if(!$el)return;$el.addEventListener('keydown',handleKeyDown);makeFocusable($el);$el.addEventListener("rmEnter",(e)=>{$el.removeEventListener('keydown',handleKeyDown);makeFocusable($el,{mode:!1})},!1,)})}
21function onClickAndEnter($elements,fnc){$elements=(!isIterable($elements))?[$elements]:$elements;$elements.forEach(($el)=>{if(!$el)return;$el.addEventListener('click',fnc);if(!isNativelyFocusable($el))enterKey($el,fnc);$el.addEventListener("rmClickAndEnter",(e)=>{$el.removeEventListener('click',fnc);$el.dispatchEvent(new Event('rmEnter'))},!1,)})}
22function onClick($elements,fnc){$elements=(!isIterable($elements))?[$elements]:$elements;$elements.forEach(($el)=>{if(!$el)return;$el.addEventListener('click',fnc);$el.addEventListener("rmClick",(e)=>{$el.removeEventListener('click',fnc)},!1,)})}
23function tabKey($elements,fnc){function handleKeyDown(ev){if(ev.target===ev.currentTarget){let key=ev.key?ev.key:ev.which;if(key===KEY_TAB){fnc.call(this,ev)}}}
24$elements=(!isIterable($elements))?[$elements]:$elements;$elements.forEach(($el)=>{if(!$el)return;$el.addEventListener('keyup',handleKeyDown);if(!isNativelyFocusable($el))makeFocusable($el);$el.addEventListener("rmTab",(e)=>{$el.removeEventListener('keyup',handleKeyDown);makeFocusable($el,{mode:!1})},!1,)})}
25function escKey($elements,fnc){function handleKeyDown(ev){if(ev.target===ev.currentTarget){let key=ev.key?ev.key:ev.which;if(key===KEY_ESC){fnc.call(this,ev)}}}
26$elements=(!isIterable($elements))?[$elements]:$elements;
26$elements.forEach(($el)=>{if(!$el)return;$el.addEventListener('keydown',handleKeyDown);if(!isNativelyFocusable($el))makeFocusable($el);$el.addEventListener("rmEsc",(e)=>{$el.removeEventListener('keydown',handleKeyDown);makeFocusable($el,{mode:!1})},!1,)})}(function($){$.fn.enterKey=function(fnc){enterKey(this.toArray(),fnc);return this};$.fn.onClickAndEnter=function(fnc){onClickAndEnter(this.toArray(),fnc);return this};$.fn.tabKey=function(fnc){tabKey(this.toArray(),fnc);return this};$.fn.escKey=function(fnc){escKey(this.toArray(),fnc);return this};$.fn.makeFocusable=function(options){makeFocusable(this.toArray(),options);return this}})(jQuery);function convertRemToPixels(rem){return parseFloat(rem)*parseFloat(getComputedStyle(document.documentElement).fontSize)}
27function getPosition($el,respectPageScroll){let rect=$el.getBoundingClientRect();let left=(respectPageScroll)?rect.left+document.body.scrollLeft:rect.left;let top=(respectPageScroll)?rect.top+document.body.scrollTop:rect.top;return{x:left,y:top}}
28function ensureBool(val,defaultIfEmpty=undefined){if(val===''||val===null||val===undefined){return defaultIfEmpty}
29if(typeof val==='boolean')return val;if(typeof val==='number')return val!==0;const s=String(val).trim().toLowerCase();if(s==='true'||s==='1')return!0;if(s==='false'||s==='0')return!1;return Boolean(s)}
30function ensureNumber(val,convertEmpty=!0){if(!convertEmpty&&['',null,undefined].includes(val))return val;const trimmed=typeof val==='string'?val.trim():val;const num=parseFloat(trimmed);if(!isNaN(num)&&num>=0)return num;return null}
31function isHidden($el,elIsFixed=!1){if(elIsFixed)return(window.getComputedStyle($el).display==='none');return($el.offsetParent===null)}
32function onVisibilityChange($el,callback,unobserveOnVisible=!0,customEventOnly=!1){if(typeof callback==='function'){if(!customEventOnly){var observer=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{let isVisible=entry.isIntersecting;callback(isVisible);if(isVisible&&unobserveOnVisible){observer.unobserve(entry.target)}})},{root:document.documentElement});observer.observe($el)}
33$el.addEventListener('isVisible',(e)=>{if(!customEventOnly)observer.unobserve($el);callback(!0)},{once:!0})}}
34function mergeObjects(...args){let customizer=null;let defaultCustomizer=function(objValue,srcValue,key){if(['',null,undefined].includes(srcValue))return objValue;if([0].includes(srcValue))return srcValue;return undefined}
35let fnc=args.slice(-1)[0];if(typeof fnc==='function'){args=args.slice(0,-1);customizer=fnc}else{customizer=defaultCustomizer}
36return _mergeObjects(args,customizer);function _mergeObjects(objects,customizer){let args=_.flatten([{},objects,customizer]);return _.mergeWith.apply(_,args)}}
37function isIterable(obj){if(obj==null||typeof obj==='string'){return!1}
38return typeof obj[Symbol.iterator]==='function'}
39function strReplace(search,replace,str){search=(!isIterable(search))?[search]:search;str=(str)?str:'';let i=0;for(const x of search){let replaceV=null;if(isIterable(replace)){replaceV=replace[i]}else{replaceV=replace}
40if(typeof replaceV==='string'){str=str.replace(x,replaceV)}
41i++}
42return str}
43function onOutsideClick($el,options){options={...{outsideExclude:null,callback:null},...options};if($el){addMultipleListeners(document,['click','keyup'],function(e){let outsideExcluded=!0;if(options.outsideExclude){let excluded=document.querySelectorAll(options.outsideExclude);outsideExcluded=Array.from(excluded).every(function(excludedElement){return!excludedElement.contains(e.target)})}
44if(!$el.contains(e.target)&&!e.target.isSameNode($el)&&outsideExcluded){if(typeof options.callback==='function'){options.callback()}}},!0)}}
45function getOuterWidth($el,includeMargin=!1){if($el===window)$el=document.querySelector('html');let width=$el.offsetWidth;if(includeMargin){let style=window.getComputedStyle($el);width+=parseFloat(style.marginLeft)+parseFloat(style.marginRight)}
46return width}
47function getOuterHeight($el,includeMargin=!1){if($el===window)$el=document.querySelector('html');let height=$el.offsetHeight;if(includeMargin){let style=window.getComputedStyle($el);height+=parseFloat(style.marginTop)+parseFloat(style.marginBottom)}
48return height}
49function getInnerWidth($el){if($el===window)$el=document.querySelector('html');let style=window.getComputedStyle($el);let width=$el.clientWidth;width-=parseFloat(style.paddingLeft)+parseFloat(style.paddingRight);return width}
50function getInnerHeight($el){if($el===window)$el=document.querySelector('html');let style=window.getComputedStyle($el);let height=$el.clientHeight;height-=parseFloat(style.paddingTop)+parseFloat(style.paddingBottom);return height}
51function siblings($el){return Array.from($el.parentNode.children).filter(function(node){return node.nodeType===1&&node!==$el})}
52function getParents($el,parentSelector){let parents=[];if(parentSelector){let $p=$el.parentElement;while($p!==null){let $o=$p;$p=$o.parentElement.closest(parentSelector);if($p)parents.push($p);}}
53return parents}
54function getTopMostParent($el,parentSelector){let $top=null;let $current=$el.closest(parentSelector);while($current){$top=$current;$current=$current.parentElement?.closest(parentSelector)}
55return $top}
56function addMultipleListeners($el,events,handler,useCapture,args){if(!(events instanceof Array)){throw 'addMultipleListeners: '+'please supply an array of eventstrings '+'(like ["click", "mouseover"])'}
57let handlerFn=function(e){handler.call(this,e,args&&args instanceof Array?args:[])}
58for(let i=0;i<events.length;i+=1){$el.addEventListener(events[i],handlerFn,useCapture)}}
59function removeMultipleListeners($el,events,handler,useCapture,args){if(!(events instanceof Array)){throw 'addMultipleListeners: '+'please supply an array of eventstrings '+'(like ["click", "mouseover"])'}
60let handlerFn=function(e){handler.call(this,e,args&&args instanceof Array?args:[])}
61for(let i=0;i<events.length;i+=1){$el.removeEventListener(events[i],handlerFn,useCapture)}}
62function querySelectorAllWithExclude(selector,exclude,referenceElement=document){const allElements=referenceElement.querySelectorAll(selector);if(!exclude){return allElements}
63let excludeElements;if(typeof exclude==='string'){excludeElements=new Set(document.querySelectorAll(exclude))}else if(Array.isArray(exclude)||exclude instanceof NodeList){excludeElements=new Set(exclude)}else if(exclude instanceof Element){excludeElements=new Set([exclude])}else{throw new Error("The exclude parameter must be a string selector, an array, a NodeList, or a single Element.")}
64const filteredElements=Array.from(allElements).filter(element=>!excludeElements.has(element));return filteredElements}
65function lockScrolling(options,$el){options=Object.assign({mode:!0},options);$el=($el===undefined)?document.querySelector('html'):$el;if(options.mode=='toggle'){$el.classList.toggle('disable-scrolling')}else if(options.mode){$el.classList.add('disable-scrolling')}else{$el.classList.remove('disable-scrolling')}}
66function disableDoubleClickSelection($elements){$elements=(!isIterable($elements))?[$elements]:$elements;
66$elements.forEach(($el)=>{if(!$el)return;$el.addEventListener('mousedown',function(e){if(e.detail>1){e.preventDefault()}},!1)})}
67function getClassByName(componentName){let isUndefined=!1;if(typeof componentName!=='string'){throw new Error('Class name must be a string')}
68const classObject=window[componentName];if(typeof classObject==='function'&&/^\s*class\s+/.test(classObject.toString())){return classObject}
69throw new Error(`Class with name ${componentName} does not exist or is not a class.`)}
70class ComponentConfig{static conf(componentName){let DEFAULT_CONFIG={debug:!1};let CONFIG={};if(CONFIG[componentName]){return CONFIG[componentName]}else{return DEFAULT_CONFIG}}}
71class Component{constructor($el,componentName,index,paramOptions,options){const _this=this;if($el&&componentName){_this.$el=$el;_this.componentName=componentName;_this.index=index;_this.conf=ComponentConfig.conf(componentName);_this.paramOptions=paramOptions;_this.options=_this._options({debug:ensureBool($el.dataset.debug,!1)||_this.conf.debug,debugIndex:$el.dataset.debugIndex||!1,debugId:$el.dataset.debugId||!1,initBreakpoint:$el.dataset.initBreakpoint||0,initBreakpointInvert:ensureBool($el.dataset.initBreakpointInvert,!1),breakpoint:ensureNumber($el.dataset.breakpoint)||0,waitForTransitions:ensureBool($el.dataset.waitForTransitions,!1),},options,paramOptions);_this.debug=_this.options.debug;_this._validateBreakpoint();_this._log('REGISTERED')}else{_this._log('CLASS COMPONENT ERROR: required arguments $el or componentName not provided')}}
72_validateBreakpoint(){const _this=this;let val=_this.options.initBreakpoint;if(typeof val==='string'&&(val.startsWith('<')||val.startsWith('>'))){_this.options.initBreakpoint=parseFloat(val.slice(1));_this.options.initBreakpointInvert=!!(val.startsWith('>'))}}
73_options(generalOptions,options,paramOptions){let mergedOptions=mergeObjects(generalOptions,options,paramOptions);return mergedOptions}
74_initWithBreakpoint(mod={}){let _this=this,options=_this.options;_this.initMod=mod;if(!options.initBreakpoint){_this._init();return}
75_this._bpWas=_this._isInitBreakpoint();if(_this._bpWas){_this._onInitialBreakpointPass()}else{_this._onInitialBreakpointFail()}
76if(!_this._bpResizeHandler){_this._bpResizeHandler=function(){const curr=_this._isInitBreakpoint();if(curr===_this._bpWas)return;_this._bpWas=curr;if(curr){_this._onEnterInitBreakpoint()}else{_this._onLeaveInitBreakpoint()}};window.addEventListener('resize',_this._bpResizeHandler)}}
77_isInitBreakpoint(custom={}){const _this=this;const options=_this.options||{};const initBreakpoint=custom.initBreakpoint!=null?custom.initBreakpoint:options.initBreakpoint;const initBreakpointInvert=custom.initBreakpointInvert!=null?custom.initBreakpointInvert:options.initBreakpointInvert;if(!initBreakpointInvert){return matchMedia("(width < "+initBreakpoint+"px)").matches}else{return matchMedia("(width >= "+initBreakpoint+"px)").matches}}
78_onInitialBreakpointPass(){this._init()}
79_onInitialBreakpointFail(){let _this=this;_this._log('NOT INITIALIZED: breakpoint check false',{initBreakpoint:_this.options.initBreakpoint,initBreakpointInvert:_this.options.initBreakpointInvert});_this.initialInitDisabledByBreakpoint=!0;const mod=_this.initMod||{};if(typeof mod.onNotBreakpoint==='function'){mod.onNotBreakpoint()}}
80_onEnterInitBreakpoint(){let _this=this;if(!_this._isActive())_this._init();}
81_onLeaveInitBreakpoint(){let _this=this;if(_this._isActive())_this._reset();}
82async _init(forced=!1){const _this=this,$el=_this.$el,options=_this.options;await waitForLayout();if(options.waitForTransitions){_this._log('wait for transitions');waitForTransitions($el.querySelectorAll('*')).then(()=>{_this.__init()})}else{_this.__init()}}
83__init(forced){const _this=this,$el=_this.$el,options=_this.options;if(_this.isReseted)_this.isReinit=!0;_this._runLifecycle('init');let hasResizeMethod=typeof _this.resize==='function';let hasResizeOpt=typeof options.onResize==='function';if(hasResizeMethod||hasResizeOpt){_this.resizeObserver?.disconnect();let rafId=0;const lastSize={width:undefined,height:undefined};const ro=new ResizeObserver(([entry])=>{if(rafId)cancelAnimationFrame(rafId);rafId=requestAnimationFrame(()=>{const box=entry.borderBoxSize||entry.contentBoxSize;const boxItem=Array.isArray(box)?box[0]:box;const width=boxItem?.inlineSize??entry.contentRect.width;const height=boxItem?.blockSize??entry.contentRect.height;if(width===lastSize.width&&height===lastSize.height)return;lastSize.width=width;lastSize.height=height;if(hasResizeMethod)_this.resize();if(hasResizeOpt)options.onResize();_this._emit('resize');_this._log('el resized',{width:width,height:height});rafId=0})});try{ro.observe(_this.$el,{box:'border-box'})}catch(error){ro.observe(_this.$el)}
84_this.resizeObserver=ro}
85_this.isInitialized=!0;if(_this.isReseted)_this.isReseted=!1;if(forced){_this.initForced=!0;_this._log('INITIALIZED (forced by option)')}else{_this._log('INITIALIZED');_this.initForced=!1}
86if(typeof _this.windowResize==='function'&&!_this._boundWinResize){_this._boundWinResize=()=>{clearTimeout(_this._winRID);_this._winRID=setTimeout(()=>{_this.windowResize();_this._log('window resized')},80)};window.addEventListener('resize',_this._boundWinResize)}
87if(typeof _this.afterInit==='function')_this.afterInit();if(typeof options.afterInit==='function')options.afterInit.call(this);if(typeof options.onAfterInit==='function')options.onAfterInit.call(this);}
88_reset(){const _this=this,$el=_this.$el,options=_this.options;_this.resetLog='RESET';_this.resizeObserver?.disconnect();_this.resizeObserver=null;if(_this._boundWinResize){window.removeEventListener('resize',_this._boundWinResize);_this._boundWinResize=null}
89_this._runLifecycle('reset');_this.isReseted=!0;_this._log('RESET: '+_this.resetLog)}
90_isActive(){return this.isInitialized&&!this.isReseted}
91_runLifecycle(name){const opts=this.options||{};const cap=s=>(s?s[0].toUpperCase()+s.slice(1):s);const before=opts[`before${cap(name)}`];const after=opts[`on${cap(name)}`];const method=(typeof this[name]==='function'&&this[name])||(typeof opts[name]==='function'&&opts[name])||null;if(typeof before==='function')before.call(this);if(typeof method==='function')method.call(this);if(typeof after==='function')after.call(this);this._emit(name)}
92_emit(name,detail){this.$el.dispatchEvent(new CustomEvent(`${this.componentName}:${name}`,{detail,bubbles:!0,composed:!0}))}
93_isDebug(){const _this=this,options=_this.options;let noFilter=options.debugIndex==null||options.debugIndex===!1||options.debugIndex==='';let debugIndexTrue=noFilter?!0:options.debugIndex.toString().split(',').includes(_this.index.toString());let debugIdTrue=(options.debugId&&options.debugId.split(',').includes(_this.$el.id))||!options.debugId;return _this.debug&&debugIndexTrue&&debugIdTrue}
94_log(title,values,trueState){const _this=this;if(_this._isDebug()){if(trueState){try{console.log(JSON.parse(JSON.stringify({title:'Log ('+_this.componentName+' '+_this.index+' ['+_this.$el.id+']): '+title,component:_this,debugValues:values})))}catch(error){_this._log('[_logTrueState ERROR]: '+title,{values:values,_logTrueStateError:error})}}else{console.log({title:'Log ('+_this.componentName+' '+_this.index+' ['+_this.$el.id+']): '+title,component:_this,debugValues:values})}}}
95_logTrueState(title,values){this._log(title,values,!0)}
96_listenOnController($ctrlElement,componentName,varName,onRdy=null,debug=!1){const _this=this;if($ctrlElement){_this[varName]=null;let $elements=(!isIterable($ctrlElement))?[$ctrlElement]:$ctrlElement;
96$elements.forEach(($el)=>{let ctrl=_this._getComponent($el,componentName);if(!ctrl){$el.addEventListener(componentName+'-rdy',function(){let ctrl=_this._getComponent(this,componentName);if(ctrl){if($elements.length>1){if(!Array.isArray(_this[varName]))_this[varName]=[];_this[varName].push(_this._getComponent(this,componentName))}else{_this[varName]=_this._getComponent(this,componentName)}
97if(typeof onRdy==='function'){onRdy(ctrl)}}})}else{if($elements.length>1){if(!Array.isArray(_this[varName]))_this[varName]=[];_this[varName].push(ctrl)}else{_this[varName]=ctrl}
98if(typeof onRdy==='function'){onRdy(ctrl)}}})}}
99_getComponent($el,componentName){return($el[componentName])?$el[componentName]:$($el).data(componentName)}}
100document.prototypoComponents={};class ComponentRegistry{static initComponent(componentElements,componentName,paramOptions){if(componentElements&&(componentElements.length||componentElements.nodeType)){let $elements=null;if(componentElements.nodeType===Node.ELEMENT_NODE){$elements=[componentElements]}else if(Object.prototype.isPrototypeOf.call(NodeList.prototype,componentElements)){$elements=componentElements}else if(typeof componentElements==='string'){$elements=document.querySelectorAll(componentElements)}
101if($elements&&$elements.length){let i=0;let componentsArr=[];if(document.prototypoComponents[componentName]){i=document.prototypoComponents[componentName].length}
102$elements.forEach(function($el){if(!$el[componentName]){try{let ComponentClass=getClassByName(componentName);if(ComponentClass){if(!$el.id){$el.id=componentName.toLowerCase()+i}
103let instance=new ComponentClass($el,componentName,i,paramOptions);$el[componentName]=instance;$el.dispatchEvent(new Event(componentName+'-rdy'));componentsArr.push(instance)}}catch(error){console.error({$el:$el,componentName:componentName,error:error.message})}}else{console.log({$el:$el,message:'Warning: '+componentName+' for element does already exist'})}
104i++});if(componentsArr.length){if(document.prototypoComponents[componentName]){document.prototypoComponents[componentName].push(...componentsArr)}else{document.prototypoComponents[componentName]=componentsArr}
105return(componentsArr.length===1)?componentsArr[0]:componentsArr}
106return null}}}}
107new ComponentRegistry();
108/*!
109 * GSAP 3.13.0
110 * https://gsap.com
111 *
112 * @license Copyright 2025, GreenSock. All rights reserved.
113 * Subject to the terms at https://gsap.com/standard-license.
114 * @author: Jack Doyle, [email protected]
115 */
116!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return"string"==typeof t}function s(t){return"function"==typeof t}function t(t){return"number"==typeof t}function u(t){return void 0===t}function v(t){return"object"==typeof t}function w(t){return!1!==t}function x(){return"undefined"!=typeof window}function y(t){return s(t)||r(t)}function P(t){return(i=yt(t,ot))&&ze}function Q(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function R(t,e){return!e&&console.warn(t)}function S(t,e){return t&&(ot[t]=e)&&i&&(i[t]=e)||ot}function T(){return 0}function ea(t){var e,r,i=t[0];if(v(i)||s(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=gt.length;r--&&!gt[r].targetTest(i););e=gt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Zt(t[r],e)))||t.splice(r,1);return t}function fa(t){return t._gsap||ea(Ot(t))[0]._gsap}function ga(t,e,r){return(r=t[e])&&s(r)?t[e]():u(r)&&t.getAttribute&&t.getAttribute(e)||r}function ha(t,e){return(t=t.split(",")).forEach(e)||t}function ia(t){return Math.round(1e5*t)/1e5||0}function ja(t){return Math.round(1e7*t)/1e7||0}function ka(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));
vendor: 4,586 bytes, line 116
116return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i}function la(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}function ma(){var t,e,r=dt.length,i=dt.slice(0);for(ct={},t=dt.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function na(t){return!!(t._initted||t._startAt||t.add)}function oa(t,e,r,i){dt.length&&!L&&ma(),t.render(e,r,i||!!(L&&e<0&&na(t))),dt.length&&!L&&ma()}function pa(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(at).length<2?e:r(t)?t.trim():t}function qa(t){return t}function ra(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function ua(t,e){for(var r in e)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=v(e[r])?ua(t[r]||(t[r]={}),e[r]):e[r]);return t}function va(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function wa(t){var e=t.parent||I,r=t.keyframes?function _setKeyframeDefaults(i){return function(t,e){for(var r in e)r in t||"duration"===r&&i||"ease"===r||(t[r]=e[r])}}($(t.keyframes)):ra;if(w(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t}function ya(t,e,r,i,n){void 0===r&&(r="_first"),void 0===i&&(i="_last");var a,s=t[i];if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t,e}function za(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,a=e._next;n?n._next=a:t[r]===e&&(t[r]=a),a?a._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function Aa(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0}function Ba(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function Da(t,e,r,i){return t._startAt&&(L?t._startAt.revert(ht):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))}function Fa(t){return t._repeat?Tt(t._tTime,t=t.duration()+t._rDelay)*t:0}function Ha(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function Ia(t){return t._end=ja(t._start+(t._tDur/Math.abs(t._ts||t._rts||U)||0))}function Ja(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=ja(r._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ia(t),r._dirty||Ba(r,t)),t}function Ka(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Ha(t.rawTime(),e),(!e._dur||Mt(0,e.totalDuration(),r)-e._tTime>U)&&e.render(r,!0)),Ba(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-U}}function La(e,r,i,n){return r.parent&&Aa(r),r._start=ja((t(i)?i:i||e!==I?xt(e,i,r):e._time)+r._delay),r._end=ja(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),ya(e,r,"_first","_last",e._sort?"_start":0),bt(r)||(e._recent=r),n||Ka(e,r),e._ts<0&&Ja(e,e._tTime),e}function Ma(t,e){return(ot.ScrollTrigger||Q("scrollTrigger",e))&&ot.ScrollTrigger.create(e,t)}function Na(t,e,r,i,n){return Wt(t,e,n),t._initted?!r&&t._pt&&!L&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==Rt.frame?(dt.push(t),t._lazy=[n,i],1):void 0:1}function Sa(t,e,r,i){var n=t._repeat,a=ja(e)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=a/t._dur),t._dur=a,t._tDur=n?n<0?1e10:ja(a*(n+1)+t._rDelay*n):a,0<s&&!i&&Ja(t,t._tTime=t._tDur*s),t.parent&&Ia(t),r||Ba(t.parent,t),t}function Ta(t){return t instanceof Qt?Ba(t):Sa(t,t._dur)}function Wa(e,r,i){var n,a,s=t(r[1]),o=(s?2:1)+(e<2?0:1),u=r[o];if(s&&(u.duration=r[1]),u.parent=i,e){for(n=u,a=i;a&&!("immediateRender"in n);)n=a.vars.defaults||{},a=w(a.vars.inherit)&&a.parent;u.immediateRender=w(n.immediateRender),e<2?u.runBackwards=1:u.startAt=r[o-1]}return new Jt(r[0],u,r[1+o])}function Xa(t,e){return t||0===t?e(t):e}function Za(t,e){return r(t)&&(e=st.exec(t))?e[1]:""}function ab(t,e){return t&&v(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&v(t[0]))&&!t.nodeType&&t!==h}function db(r){return r=Ot(r)[0]||R("Invalid scope")||{},function(t){var e=r.current||r.nativeElement||r;return Ot(t,e.querySelectorAll?e:e===r?R("Invalid scope")||a.createElement("div"):r)}}function eb(t){return t.sort(function(){return.5-Math.random()})}function fb(t){if(s(t))return t;var p=v(t)?t:{each:t},_=Yt(p.ease),m=p.from||0,g=parseFloat(p.base)||0,y={},e=0<m&&m<1,T=isNaN(m)||e,b=p.axis,w=m,x=m;return r(m)?w=x={center:.5,edges:.5,end:1}[m]||0:!e&&T&&(w=m[0],x=m[1]),function(t,e,r){var i,n,a,s,o,u,h,l,f,d=(r||p).length,c=y[d];if(!c){if(!(f="auto"===p.grid?0:(p.grid||[1,N])[1])){for(h=-N;h<(h=r[f++].getBoundingClientRect().left)&&f<d;);f<d&&f--}
vendor: 6,465 bytes, line 116
116for(c=y[d]=[],i=T?Math.min(f,d)*w-.5:m%f,n=f===N?0:T?d*x/f-.5:m/f|0,l=N,u=h=0;u<d;u++)a=u%f-i,s=n-(u/f|0),c[u]=o=b?Math.abs("y"===b?s:a):G(a*a+s*s),h<o&&(h=o),o<l&&(l=o);"random"===m&&eb(c),c.max=h-l,c.min=l,c.v=d=(parseFloat(p.amount)||parseFloat(p.each)*(d<f?d-1:b?"y"===b?d/f:f:Math.max(f,d/f))||0)*("edges"===m?-1:1),c.b=d<0?g-d:g,c.u=Za(p.amount||p.each)||0,_=_&&d<0?jt(_):_}return d=(c[t]-c.min)/c.max||0,ja(c.b+(_?_(d):d)*c.v)+c.u}}function gb(i){var n=Math.pow(10,((i+"").split(".")[1]||"").length);return function(e){var r=ja(Math.round(parseFloat(e)/i)*i*n);return(r-r%1)/n+(t(e)?0:Za(e))}}function hb(h,e){var l,f,r=$(h);return!r&&v(h)&&(l=r=h.radius||N,h.values?(h=Ot(h.values),(f=!t(h[0]))&&(l*=l)):h=gb(h.increment)),Xa(e,r?s(h)?function(t){return f=h(t),Math.abs(f-t)<=l?f:t}:function(e){for(var r,i,n=parseFloat(f?e.x:e),a=parseFloat(f?e.y:0),s=N,o=0,u=h.length;u--;)(r=f?(r=h[u].x-n)*r+(i=h[u].y-a)*i:Math.abs(h[u]-n))<s&&(s=r,o=u);return o=!l||s<=l?h[o]:e,f||o===e||t(e)?o:o+Za(e)}:gb(h))}function ib(t,e,r,i){return Xa($(t)?!e:!0===r?!!(r=0):!i,function(){return $(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*i)/i})}function mb(e,r,t){return Xa(t,function(t){return e[~~r(t)]})}function pb(t){for(var e,r,i,n,a=0,s="";~(e=t.indexOf("random(",a));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?at:tt),s+=t.substr(a,e-a)+ib(n?r:+r[0],n?0:+r[1],+r[2]||1e-5),a=i+1;return s+t.substr(a,t.length-a)}function sb(t,e,r){var i,n,a,s=t.labels,o=N;for(i in s)(n=s[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(a=i,o=n);return a}function ub(t){return Aa(t),t.scrollTrigger&&t.scrollTrigger.kill(!!L),t.progress()<1&&Pt(t,"onInterrupt"),t}function xb(t){if(t)if(t=!t.name&&t.default||t,x()||t.headless){var e=t.name,r=s(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:T,render:ue,add:Vt,kill:de,modifier:he,rawVars:0},a={targetTest:0,get:0,getSetter:ie,aliases:{},register:0};if(Ft(),t!==i){if(pt[e])return;ra(i,ra(va(t,n),a)),yt(i.prototype,yt(n,va(t,a))),pt[i.prop=e]=i,t.targetTest&&(gt.push(i),ft[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}S(e,i),t.register&&t.register(ze,i,ge)}else Ct.push(t)}function Ab(t,e,r){return(6*(t+=t<0?1:1<t?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*St+.5|0}function Bb(e,r,i){var n,a,s,o,u,h,l,f,d,c,p=e?t(e)?[e>>16,e>>8&St,e&St]:0:Dt.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),Dt[e])p=Dt[e];else if("#"===e.charAt(0)){if(e.length<6&&(e="#"+(n=e.charAt(1))+n+(a=e.charAt(2))+a+(s=e.charAt(3))+s+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&St,p&St,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&St,e&St]}else if("hsl"===e.substr(0,3))if(p=c=e.match(tt),r){if(~e.indexOf("="))return p=e.match(et),i&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,u=p[1]/100,n=2*(h=p[2]/100)-(a=h<=.5?h*(u+1):h+u-h*u),3<p.length&&(p[3]*=1),p[0]=Ab(o+1/3,n,a),p[1]=Ab(o,n,a),p[2]=Ab(o-1/3,n,a);else p=e.match(tt)||Dt.transparent;p=p.map(Number)}return r&&!c&&(n=p[0]/St,a=p[1]/St,s=p[2]/St,h=((l=Math.max(n,a,s))+(f=Math.min(n,a,s)))/2,l===f?o=u=0:(d=l-f,u=.5<h?d/(2-l-f):d/(l+f),o=l===n?(a-s)/d+(a<s?6:0):l===a?(s-n)/d+2:(n-a)/d+4,o*=60),p[0]=~~(o+.5),p[1]=~~(100*u+.5),p[2]=~~(100*h+.5)),i&&p.length<4&&(p[3]=1),p}function Cb(t){var r=[],i=[],n=-1;return t.split(zt).forEach(function(t){var e=t.match(rt)||[];r.push.apply(r,e),i.push(n+=e.length+1)}),r.c=i,r}function Db(t,e,r){var i,n,a,s,o="",u=(t+o).match(zt),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map(function(t){return(t=Bb(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(a=Cb(t),(i=r.c).join(o)!==a.c.join(o)))for(s=(n=t.replace(zt,"1").split(rt)).length-1;l<s;l++)o+=n[l]+(~i.indexOf(l)?u.shift()||h+"0,0,0,0)":(a.length?a:u.length?u:r).shift());if(!n)for(s=(n=t.split(zt)).length-1;l<s;l++)o+=n[l]+u[l];return o+n[s]}function Gb(t){var e,r=t.join(" ");if(zt.lastIndex=0,zt.test(r))return e=Et.test(r),t[1]=Db(t[1],e),t[0]=Db(t[0],e,Cb(t[1])),!0}function Pb(t){var e=(t+"").split("("),r=Lt[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf("{")?[function _parseObjectInString(t){for(var e,r,i,n={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)r=a[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[s]=isNaN(i)?i.replace(Bt,"").trim():+i,s=r.substr(e+1).trim();return n}(e[1])]:function _valueInParentheses(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<r?t.indexOf(")",r+1):r)}(t).split(",").map(pa)):Lt._CE&&It.test(t)?Lt._CE("",t):r}function Rb(t,e){for(var r,i=t._first;i;)i instanceof Qt?Rb(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?Rb(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next}function Tb(t,e,r,i){void 0===r&&(r=function easeOut(t){return 1-e(1-t)}),void 0===i&&(i=function easeInOut(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,a={easeIn:e,easeOut:r,easeInOut:i};return ha(t,function(t){for(var e in Lt[t]=ot[t]=a,Lt[n=t.toLowerCase()]=r,a)Lt[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Lt[t+"."+e]=a[e]}),a}function Ub(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Vb(r,t,e){function Lm(t){return 1===t?1:i*Math.pow(2,-10*t)*K((t-a)*n)+1}var i=1<=t?t:1,n=(e||(r?.3:.45))/(t<1?t:1),a=n/q*(Math.asin(1/i)||0),s="out"===r?Lm:"in"===r?function(t){return 1-Lm(1-t)}:Ub(Lm);return n=q/n,s.config=function(t,e){return Vb(r,t,e)},s}function Wb(e,r){function Tm(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t="out"===e?Tm:"in"===e?function(t){return 1-Tm(1-t)}:Ub(Tm);return t.config=function(t){return Wb(e,t)},t}var F,L,l,I,h,n,a,i,o,f,d,c,p,_,m,g,b,M,k,O,A,C,D,z,E,B,j,Y,X={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Z={duration:.5,overwrite:!1,delay:0},N=1e8,U=1/N,q=2*Math.PI,V=q/4,W=0,G=Math.sqrt,H=Math.cos,K=Math.sin,J="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},$=Array.isArray,tt=/(?:-?\.?\d|\.)+/gi,et=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,rt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,it=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,nt=/[+-]=-?[.\d]+/,at=/[^,'"\[\]\s]+/gi,st=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ot={},ut={suppressEvents:!0,isStart:!0,kill:!1},ht={suppressEvents:!0,kill:!1},lt={suppressEvents:!0},ft={},dt=[],ct={},pt={},_t={}
vendor: 4,356 bytes, line 116
116,mt=30,gt=[],vt="",yt=function _merge(t,e){for(var r in e)t[r]=e[r];return t},Tt=function _animationCycle(t,e){var r=Math.floor(t=ja(t/e));return t&&r===t?r-1:r},bt=function _isFromOrFromStart(t){var e=t.data;return"isFromStart"===e||"isStart"===e},wt={_start:0,endTime:T,totalDuration:T},xt=function _parsePosition(t,e,i){var n,a,s,o=t.labels,u=t._recent||wt,h=t.duration()>=N?u.endTime(!1):t._dur;return r(e)&&(isNaN(e)||e in o)?(a=e.charAt(0),s="%"===e.substr(-1),n=e.indexOf("="),"<"===a||">"===a?(0<=n&&(e=e.replace(/=/,"")),("<"===a?u._start:u.endTime(0<=u._repeat))+(parseFloat(e.substr(1))||0)*(s?(n<0?u:i).totalDuration()/100:1)):n<0?(e in o||(o[e]=h),o[e]):(a=parseFloat(e.charAt(n-1)+e.substr(n+1)),s&&i&&(a=a/100*($(i)?i[0]:i).totalDuration()),1<n?_parsePosition(t,e.substr(0,n-1),i)+a:h+a)):null==e?h:+e},Mt=function _clamp(t,e,r){return r<t?t:e<r?e:r},kt=[].slice,Ot=function toArray(t,e,i){return l&&!e&&l.selector?l.selector(t):!r(t)||i||!n&&Ft()?$(t)?function _flatten(t,e,i){return void 0===i&&(i=[]),t.forEach(function(t){return r(t)&&!e||ab(t,1)?i.push.apply(i,Ot(t)):i.push(t)})||i}(t,i):ab(t)?kt.call(t,0):t?[t]:[]:kt.call((e||a).querySelectorAll(t),0)},At=function mapRange(e,t,r,i,n){var a=t-e,s=i-r;return Xa(n,function(t){return r+((t-e)/a*s||0)})},Pt=function _callback(t,e,r){var i,n,a,s=t.vars,o=s[e],u=l,h=t._ctx;if(o)return i=s[e+"Params"],n=s.callbackScope||t,r&&dt.length&&ma(),h&&(l=h),a=i?o.apply(n,i):o.call(n),l=u,a},Ct=[],St=255,Dt={aqua:[0,St,St],lime:[0,St,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,St],navy:[0,0,128],white:[St,St,St],olive:[128,128,0],yellow:[St,St,0],orange:[St,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[St,0,0],pink:[St,192,203],cyan:[0,St,St],transparent:[St,St,St,0]},zt=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Dt)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Et=/hsl[a]?\(/,Rt=(k=Date.now,O=500,A=33,C=k(),D=C,E=z=1e3/240,g={time:0,frame:0,tick:function tick(){Al(!0)},deltaRatio:function deltaRatio(t){return b/(1e3/(t||60))},wake:function wake(){o&&(!n&&x()&&(h=n=window,a=h.document||{},ot.gsap=ze,(h.gsapVersions||(h.gsapVersions=[])).push(ze.version),P(i||h.GreenSockGlobals||!h.gsap&&h||{}),Ct.forEach(xb)),m="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,p&&g.sleep(),_=m||function(t){return setTimeout(t,E-1e3*g.time+1|0)},c=1,Al(2))},sleep:function sleep(){(m?cancelAnimationFrame:clearTimeout)(p),c=0,_=T},lagSmoothing:function lagSmoothing(t,e){O=t||1/0,A=Math.min(e||33,O)},fps:function fps(t){z=1e3/(t||240),E=1e3*g.time+z},add:function add(n,t,e){var a=t?function(t,e,r,i){n(t,e,r,i),g.remove(a)}:n;return g.remove(n),B[e?"unshift":"push"](a),Ft(),a},remove:function remove(t,e){~(e=B.indexOf(t))&&B.splice(e,1)&&e<=M&&M--},_listeners:B=[]}),Ft=function _wake(){return!c&&Rt.wake()},Lt={},It=/^[\d.\-M][\d.\-,\s]/,Bt=/["']/g,jt=function _invertEase(e){return function(t){return 1-e(1-t)}},Yt=function _parseEase(t,e){return t&&(s(t)?t:Lt[t]||Pb(t))||e};function Al(t){var e,r,i,n,a=k()-D,s=!0===t;if((O<a||a<0)&&(C+=a-A),(0<(e=(i=(D+=a)-C)-E)||s)&&(n=++g.frame,b=i-1e3*g.time,g.time=i/=1e3,E+=e+(z<=e?4:z-e),r=1),s||(p=_(Al)),r)for(M=0;M<B.length;M++)B[M](i,b,n,t)}function jn(t){return t<Y?j*t*t:t<.7272727272727273?j*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?j*(t-=2.25/2.75)*t+.9375:j*Math.pow(t-2.625/2.75,2)+.984375}ha("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Tb(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),Lt.Linear.easeNone=Lt.none=Lt.Linear.easeIn,Tb("Elastic",Vb("in"),Vb("out"),Vb()),j=7.5625,Y=1/2.75,Tb("Bounce",function(t){return 1-jn(1-t)},jn),Tb("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Tb("Circ",function(t){return-(G(1-t*t)-1)}),Tb("Sine",function(t){return 1===t?1:1-H(t*V)}),Tb("Back",Wb("in"),Wb("out"),Wb()),Lt.SteppedEase=Lt.steps=ot.SteppedEase={config:function config(t,e){void 0===t&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0;return function(t){return((i*Mt(0,.99999999,t)|0)+n)*r}}},Z.ease=Lt["quad.out"],ha("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return vt+=t+","+t+"Param
116s,"});var Xt,Zt=function GSCache(t,e){this.id=W++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:ga,this.set=e?e.getSetter:ie},Nt=((Xt=Animation.prototype).delay=function delay(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},Xt.duration=function duration(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},Xt.totalDuration=function totalDuration(t){return arguments.length?(this._dirty=0,Sa(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},Xt.totalTime=function totalTime(t,e){if(Ft(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ja(this,t),!r._dp||r.parent||Ka(r,this);r&&r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&La(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===U||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),oa(this,t,e)),this},Xt.time=function time(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Fa(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},Xt.totalProgress=function totalProgress(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):0<=this.rawTime()&&this._initted?1:0},Xt.progress=function progress(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Fa(this),e):this.duration()?Math.min(1,this._time/this._dur):0<this.rawTime()?1:0},Xt.iteration=function iteration(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Tt(this._tTime,r)+1:1},Xt.timeScale=function timeScale(t,e){if(!arguments.length)return this._rts===-U?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?Ha(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-U?0:this._rts,this.totalTime(Mt(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Ia(this),function _recacheAncestors(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},Xt.paused=function paused(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ft(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==U&&(this._tTime-=U)))),this):this._ps},Xt.startTime=function startTime(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||La(e,this,t-this._delay),this}return this._start},Xt.endTime=function endTime(t){return this._start+(w(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},Xt.rawTime=function rawTime(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ha(e.rawTime(t),this):this._tTime:this._tTime},Xt.revert=function revert(t){void 0===t&&(t=lt);var e=L;return L=t,na(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),L=e,this},Xt.globalTime=function globalTime(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},Xt.repeat=function repeat(t){return arguments.length?(this._repeat=t===1/0?-2:t,Ta(this)):-2===this._repeat?1/0:this._repeat},Xt.repeatDelay=function repeatDelay(t){if(arguments.length){var e=this._time;return this._rDelay=t,Ta(this),e?this.time(e):this}return this._rDelay},Xt.yoyo=function yoyo(t){return arguments.length?(this._yoyo=t,this):this._yoyo},Xt.seek=function seek(t,e){return this.totalTime(xt(this,t),w(e))},Xt.restart=function restart(t,e){return this.play().totalTime(t?-this._delay:0,w(e)),this._dur||(this._zTime=-U),this},Xt.play=function play(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},Xt.reverse=function reverse(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},Xt.pause=function pause(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},Xt.resume=function resume(){return this.paused(!1)},Xt.reversed=function reversed(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-U:0)),this):this._rts<0}
vendor: 40,968 bytes, line 116
116,Xt.invalidate=function invalidate(){return this._initted=this._act=0,this._zTime=-U,this},Xt.isActive=function isActive(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-U))},Xt.eventCallback=function eventCallback(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},Xt.then=function then(t){var i=this;return new Promise(function(e){function Eo(){var t=i.then;i.then=null,s(r)&&(r=r(i))&&(r.then||r===i)&&(i.then=t),e(r),i.then=t}var r=s(t)?t:qa;i._initted&&1===i.totalProgress()&&0<=i._ts||!i._tTime&&i._ts<0?Eo():i._prom=Eo})},Xt.kill=function kill(){ub(this)},Animation);function Animation(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Sa(this,+t.duration,1,1),this.data=t.data,l&&(this._ctx=l).data.push(this),c||Rt.wake()}ra(Nt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-U,_prom:0,_ps:!1,_rts:1});var Qt=function(i){function Timeline(t,e){var r;return void 0===t&&(t={}),(r=i.call(this,t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=w(t.sortChildren),I&&La(t.parent||I,_assertThisInitialized(r),e),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&Ma(_assertThisInitialized(r),t.scrollTrigger),r}_inheritsLoose(Timeline,i);var e=Timeline.prototype;return e.to=function to(t,e,r){return Wa(0,arguments,this),this},e.from=function from(t,e,r){return Wa(1,arguments,this),this},e.fromTo=function fromTo(t,e,r,i){return Wa(2,arguments,this),this},e.set=function set(t,e,r){return e.duration=0,e.parent=this,wa(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Jt(t,e,xt(this,r),1),this},e.call=function call(t,e,r){return La(this,Jt.delayedCall(0,t,e),r)},e.staggerTo=function staggerTo(t,e,r,i,n,a,s){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new Jt(t,r,xt(this,n)),this},e.staggerFrom=function staggerFrom(t,e,r,i,n,a,s){return r.runBackwards=1,wa(r).immediateRender=w(r.immediateRender),this.staggerTo(t,e,r,i,n,a,s)},e.staggerFromTo=function staggerFromTo(t,e,r,i,n,a,s,o){return i.startAt=r,wa(i).immediateRender=w(i.immediateRender),this.staggerTo(t,e,i,n,a,s,o)},e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d,c,p,_=this._time,m=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=t<=0?0:ja(t),y=this._zTime<0!=t<0&&(this._initted||!g);if(this!==I&&m<v&&0<=t&&(v=m),v!==this._tTime||r||y){if(_!==this._time&&g&&(v+=this._time-_,t+=this._time-_),i=v,f=this._start,u=!(l=this._ts),y&&(g||(_=this._zTime),!t&&e||(this._zTime=t)),this._repeat){if(c=this._yoyo,o=g+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(i=ja(v%o),v===m?(s=this._repeat,i=g):((s=~~(d=ja(v/o)))&&s===d&&(i=g,s--),g<i&&(i=g)),d=Tt(this._tTime,o),!_&&this._tTime&&d!==s&&this._tTime-d*o-this._dur<=0&&(d=s),c&&1&s&&(i=g-i,p=1),s!==d&&!this._lock){var T=c&&1&d,b=T===(c&&1&s);if(s<d&&(T=!T),_=T?0:v%g?g:v,this._lock=1,this.render(_||(p?0:ja(s*o)),e,!g)._lock=0,this._tTime=v,!e&&this.parent&&Pt(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),_&&_!==this._time||u!=!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(g=this._dur,m=this._tDur,b&&(this._lock=2,_=T?g:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Rb(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function _findNextPauseTween(t,e,r){var i;if(e<r)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,ja(_),ja(i)))&&(v-=i-(i=h._start)),this._tTime=v,this._time=i,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,_=0),!_&&v&&!e&&!d&&(Pt(this,"onStart"),this._tTime!==v))return this;if(_<=i&&0<=t)for(n=this._first;n;){if(a=n._next,(n._act||i>=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=-U);break}}n=a}else{n=this._last;for(var w=t<0?t:i;n;){if(a=n._prev,(n._act||w<=n._end)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(w-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(w-n._start)*n._ts,e,r||L&&na(n)),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=w?-U:U);break}}n=a}}if(h&&!e&&(this.pause(),h.render(_<=i?0:-U)._zTime=_<=i?1:-1,this._ts))return this._start=f,Ia(this),this.render(t,e,r);this._onUpdate&&!e&&Pt(this,"onUpdate",!0),(v===m&&this._tTime>=this.totalDuration()||!v&&_)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0<this._ts||!v&&this._ts<0)||Aa(this,1),e||t<0&&!_||!v&&!_&&m||(Pt(this,v===m&&0<=t?"onComplete":"onReverseComplete",!0),!this._prom||v<m&&0<this.timeScale()||this._prom())))}return this},e.add=function add(e,i){var n=this;if(t(i)||(i=xt(this,i,e)),!(e instanceof Nt)){if($(e))return e.forEach(function(t){return n.add(t,i)}),this;if(r(e))return this.addLabel(e,i);if(!s(e))return this;e=Jt.delayedCall(0,e)}return this!==e?La(this,e,i):this},e.getChildren=function getChildren(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-N);for(var n=[],a=this._first;a;)a._start>=i&&(a instanceof Jt?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},e.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function remove(t){return r(t)?this.removeLabel(t):s(t)?this.killTweensOf(t):(t.parent===this&&za(this,t),t===this._recent&&(this._recent=this._last),Ba(this))},e.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ja(Rt.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),i.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},e.addLabel=function addLabel(t,e){return this.labels[t]=xt(this,e),this},e.removeLabel=function removeLabel(t){return delete this.labels[t],this},e.addPause=function addPause(t,e,r){var i=Jt.delayedCall(0,e||T,r);return i.data="isPause",this._hasPause=1,La(this,i,xt(this,t))},e.removePause=function removePause(t){var e=this._first;for(t=xt(this,t);e;)e._start===t&&"isPause"===e.data&&Aa(e),e=e._next},e.killTweensOf=function killTweensOf(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)Ut!==i[n]&&i[n].kill(t,e);return this},e.getTweensOf=function getTweensOf(e,r){for(var i,n=[],a=Ot(e),s=this._first,o=t(r);s;)s instanceof Jt?la(s._targets,a)&&(o?(!Ut||s._initted&&s._ts)&&s.globalTime(0)<=r&&s.globalTime(s.totalDuration())>r:!r||s.isActive())&&n.push(s):(i=s.getTweensOf(a,r)).length&&n.push.apply(n,i),s=s._next;return n},e.tweenTo=function tweenTo(t,e){e=e||{};var r,i=this,n=xt(i,t),a=e.startAt,s=e.onStart,o=e.onStartParams,u=e.immediateRender,h=Jt.to(i,ra({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||U,onStart:function onStart(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());h._dur!==t&&Sa(h,t,0,1).render(h._time,!0,!0),r=1}s&&s.apply(h,o||[])}},e));return u?h.render(0):h},e.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,ra({startAt:{time:xt(this,t)}},r))},e.recent=function recent(){return this._recent},e.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),sb(this,xt(this,t))},e.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),sb(this,xt(this,t),1)},e.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+U)},e.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return Ba(this)},e.invalidate=function invalidate(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return i.prototype.invalidate.call(this,t)},e.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Ba(this)},e.totalDuration=function totalDuration(t){var e,r,i,n=0,a=this,s=a._last,o=N;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),o<(r=s._start)&&a._sort&&s._ts&&!a._lock?(a._lock=1,La(a,s,r-s._delay,1)._lock=0):o=r,r<0&&s._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),o=0),s._end>n&&s._ts&&(n=s._end),s=e;Sa(a,a===I&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},Timeline.updateRoot=function updateRoot(t){if(I._ts&&(oa(I,Ha(t,I)),f=Rt.frame),Rt.frame>=mt){mt+=X.autoSleep||120;var e=I._first;if((!e||!e._ts)&&X.autoSleep&&Rt._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Rt.sleep()}}},Timeline}(Nt);ra(Qt.prototype,{_lock:0,_hasPause:0,_forcing:0});function bc(t,e,i,n,a,o){var u,h,l,f;if(pt[t]&&!1!==(u=new pt[t]).init(a,u.rawVars?e[t]:function _processVars(t,e,i,n,a){if(s(t)&&(t=Gt(t,a,e,i,n)),!v(t)||t.style&&t.nodeType||$(t)||J(t))return r(t)?Gt(t,a,e,i,n):t;var o,u={};for(o in t)u[o]=Gt(t[o],a,e,i,n);return u}(e[t],n,a,o,i),i,n,o)&&(i._pt=h=new ge(i._pt,a,t,0,1,u.render,u,0,u.priority),i!==d))for(l=i._ptLookup[i._targets.indexOf(a)],f=u._props.length;f--;)l[u._props[f]]=h;return u}function hc(t,r,e,i){var n,a,s=r.ease||i||"power1.inOut";if($(r))a=e[t]||(e[t]=[]),r.forEach(function(t,e){return a.push({t:e/(r.length-1)*100,v:t,e:s})});else for(n in r)a=e[n]||(e[n]=[]),"ease"===n||a.push({t:parseFloat(t),v:r[n],e:s})}var Ut,qt,Vt=function _addPropTween(t,e,i,n,a,o,u,h,l,f){s(n)&&(n=n(a||0,t,o));var d,c=t[e],p="get"!==i?i:s(c)?l?t[e.indexOf("set")||!s(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():c,_=s(c)?l?re:te:$t;if(r(n)&&(~n.indexOf("random(")&&(n=pb(n)),"="===n.charAt(1)&&(!(d=ka(p,n)+(Za(p)||0))&&0!==d||(n=d))),!f||p!==n||qt)return isNaN(p*n)||""===n?(c||e in t||Q(e,n),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,d,c,p,_=new ge(this._pt,t,e,0,1,oe,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(c=~(i+="").indexOf("random("))&&(i=pb(i)),a&&(a(p=[r,i],t,e),r=p[0],i=p[1]),u=r.match(it)||[];o=it.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(d=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:d,c:"="===l.charAt(1)?ka(d,l)-d:parseFloat(l)-d,m:h&&h<4?Math.round:0},m=it.lastIndex);return _.c=m<i.length?i.substring(m,i.length):"",_.fp=s,(nt.test(i)||c)&&(_.e=0),this._pt=_}.call(this,t,e,p,n,_,h||X.stringFilter,l)):(d=new ge(this._pt,t,e,+p||0,n-(p||0),"boolean"==typeof c?se:ne,0,_),l&&(d.fp=l),u&&d.modifier(u,this,t),this._pt=d)},Wt=function _initTween(t,e,r){var i,n,a,s,o,u,h,l,f,d,c,p,_,m=t.vars,g=m.ease,v=m.startAt,y=m.immediateRender,T=m.lazy,b=m.onUpdate,x=m.runBackwards,M=m.yoyoEase,k=m.keyframes,O=m.autoRevert,A=t._dur,P=t._startAt,C=t._targets,S=t.parent,D=S&&"nested"===S.data?S.vars.targets:C,z="auto"===t._overwrite&&!F,E=t.timeline;if(!E||k&&g||(g="none"),t._ease=Yt(g,Z.ease),t._yEase=M?jt(Yt(!0===M?g:M,Z.ease)):0,M&&t._yoyo&&!t._repeat&&(M=t._yEase,t._yEase=t._ease,t._ease=M),t._from=!E&&!!m.runBackwards,!E||k&&!m.stagger){if(p=(l=C[0]?fa(C[0]).harness:0)&&m[l.prop],i=va(m,ft),P&&(P._zTime<0&&P.progress(1),e<0&&x&&y&&!O?P.render(-1,!0):P.revert(x&&A?ht:ut),P._lazy=0),v){if(Aa(t._startAt=Jt.set(C,ra({data:"isStart",overwrite:!1,parent:S,immediateRender:!0,lazy:!P&&w(T),startAt:null,delay:0,onUpdate:b&&function(){return Pt(t,"onUpdate")},stagger:0},v))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(L||!y&&!O)&&t._startAt.revert(ht),y&&A&&e<=0&&r<=0)return void(e&&(t._zTime=e))}else if(x&&A&&!P)if(e&&(y=!1),a=ra({overwrite:!1,data:"isFromStart",lazy:y&&!P&&w(T),immediateRender:y,stagger:0,parent:S},i),p&&(a[l.prop]=p),Aa(t._startAt=Jt.set(C,a)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(L?t._startAt.revert(ht):t._startAt.render(-1,!0)),t._zTime=e,y){if(!e)return}else _initTween(t._startAt,U,U);for(t._pt=t._ptCache=0,T=A&&w(T)||T&&!A,n=0;n<C.length;n++){if(h=(o=C[n])._gsap||ea(C)[n]._gsap,t._ptLookup[n]=d={},ct[h.id]&&dt.length&&ma(),c=D===C?n:D.indexOf(o),l&&!1!==(f=new l).init(o,p||i,t,c,D)&&(t._pt=s=new ge(t._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){d[t]=s}),f.priority&&(u=1)),!l||p)for(a in i)pt[a]&&(f=bc(a,i,t,c,o,D))?f.priority&&(u=1):d[a]=s=Vt.call(t,o,a,"get",i[a],c,D,0,m.stringFilter);t._op&&t._op[n]&&t.kill(o,t._op[n]),z&&t._pt&&(Ut=t,I.killTweensOf(o,d,t.globalTime(e)),_=!t.parent,Ut=0),t._pt&&T&&(ct[h.id]=1)}u&&_e(t),t._onInit&&t._onInit(t)}t._onUpdate=b,t._initted=(!t._op||t._pt)&&!_,k&&e<=0&&E.render(N,!0,!0)},Gt=function _parseFuncOrString(t,e,i,n,a){return s(t)?t.call(e,i,n,a):r(t)&&~t.indexOf("random(")?pb(t):t},Ht=vt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Kt={};ha(Ht+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Kt[t]=1});var Jt=function(E){function Tween(e,r,i,n){var a;"number"==typeof r&&(i.duration=r,r=i,i=null);var s,o,u,h,l,f,d,c,p=(a=E.call(this,n?r:wa(r))||this).vars,_=p.duration,m=p.delay,g=p.immediateRender,T=p.stagger,b=p.overwrite,x=p.keyframes,M=p.defaults,k=p.scrollTrigger,O=p.yoyoEase,A=r.parent||I,P=($(e)||J(e)?t(e[0]):"length"in r)?[e]:Ot(e);if(a._targets=P.length?ea(P):R("GSAP target "+e+" not found. https://gsap.com",!X.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,x||T||y(_)||y(m)){if(r=a.vars,(s=a.timeline=new Qt({data:"nested",defaults:M||{},targets:A&&"nested"===A.data?A.vars.targets:P})).kill(),s.parent=s._dp=_assertThisInitialized(a),s._start=0,T||y(_)||y(m)){if(h=P.length,d=T&&fb(T),v(T))for(l in T)~Ht.indexOf(l)&&((c=c||{})[l]=T[l]);for(o=0;o<h;o++)(u=va(r,Kt)).stagger=0,O&&(u.yoyoEase=O),c&&yt(u,c),f=P[o],u.duration=+Gt(_,_assertThisInitialized(a),o,f,P),u.delay=(+Gt(m,_assertThisInitialized(a),o,f,P)||0)-a._delay,!T&&1===h&&u.delay&&(a._delay=m=u.delay,a._start+=m,u.delay=0),s.to(f,u,d?d(o,f,P):0),s._ease=Lt.none;s.duration()?_=m=0:a.timeline=0}else if(x){wa(ra(s.vars.defaults,{ease:"none"})),s._ease=Yt(x.ease||r.ease||"none");var C,S,D,z=0;if($(x))x.forEach(function(t){return s.to(P,t,">")}),s.duration();else{for(l in u={},x)"ease"===l||"easeEach"===l||hc(l,x[l],u,x.easeEach);for(l in u)for(C=u[l].sort(function(t,e){return t.t-e.t}),o=z=0;o<C.length;o++)(D={ease:(S=C[o]).e,duration:(S.t-(o?C[o-1].t:0))/100*_})[l]=S.v,s.to(P,D,z),z+=D.duration;s.duration()<_&&s.to({},{duration:_-s.duration()})}}_||a.duration(_=s.duration())}else a.timeline=0;return!0!==b||F||(Ut=_assertThisInitialized(a),I.killTweensOf(P),Ut=0),La(A,_assertThisInitialized(a),i),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(g||!_&&!x&&a._start===ja(A._time)&&w(g)&&function _hasNoPausedAncestors(t){return!t||t._ts&&_hasNoPausedAncestors(t.parent)}(_assertThisInitialized(a))&&"nested"!==A.data)&&(a._tTime=-U,a.render(Math.max(0,-m)||0)),k&&Ma(_assertThisInitialized(a),k),a}_inheritsLoose(Tween,E);var e=Tween.prototype;return e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d=this._time,c=this._tDur,p=this._dur,_=t<0,m=c-U<t&&!_?c:t<U?0:t;if(p){if(m!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=_||this._lazy){if(i=m,l=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&_)return this.totalTime(100*s+t,e,r);if(i=ja(m%s),m===c?(a=this._repeat,i=p):(a=~~(o=ja(m/s)))&&a===o?(i=p,a--):p<i&&(i=p),(u=this._yoyo&&1&a)&&(f=this._yEase,i=p-i),o=Tt(this._tTime,s),i===d&&!r&&this._initted&&a===o)return this._tTime=m,this;a!==o&&(l&&this._yEase&&Rb(l,u),this.vars.repeatRefresh&&!u&&!this._lock&&i!==s&&this._initted&&(this._lock=r=1,this.render(ja(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Na(this,_?t:i,r,e,m))return this._tTime=0,this;if(!(d===this._time||r&&this.vars.repeatRefresh&&a!==o))return this;if(p!==this._dur)return this.render(t,e,r)}if(this._tTime=m,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(i/p),this._from&&(this.ratio=h=1-h),!d&&m&&!e&&!o&&(Pt(this,"onStart"),this._tTime!==m))return this;for(n=this._pt;n;)n.r(h,n.d),n=n._next;l&&l.render(t<0?t:l._dur*l._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(_&&Da(this,t,0,r),Pt(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&Pt(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(_&&!this._onUpdate&&Da(this,t,0,!0),!t&&p||!(m===this._tDur&&0<this._ts||!m&&this._ts<0)||Aa(this,1),e||_&&!d||!(m||d||u)||(Pt(this,m===c?"onComplete":"onReverseComplete",!0),!this._prom||m<c&&0<this.timeScale()||this._prom()))}}else!function _renderZeroDurationTween(t,e,r,i){var n,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&function _parentPlayheadIsBeforeStart(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||_parentPlayheadIsBeforeStart(e))}(t)&&(t._initted||!bt(t))||(t._ts<0||t._dp._ts<0)&&!bt(t))?0:1,h=t._rDelay,l=0;if(h&&t._repeat&&(l=Mt(0,t._tDur,e),a=Tt(l,h),t._yoyo&&1&a&&(u=1-u),a!==Tt(t._tTime,h)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||L||i||t._zTime===U||!e&&t._zTime){if(!t._initted&&Na(t,e,i,r,l))return;for(s=t._zTime,t._zTime=e||(r?U:0),r=r||e&&!s,t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,n=t._pt;n;)n.r(u,n.d),n=n._next;e<0&&Da(t,e,0,!0),t._onUpdate&&!r&&Pt(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&Pt(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Aa(t,1),r||L||(Pt(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},e.targets=function targets(){return this._targets},e.invalidate=function invalidate(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),E.prototype.invalidate.call(this,t)},e.resetTo=function resetTo(t,e,r,i,n){c||Rt.wake(),this._ts||this.play();var a,s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Wt(this,s),a=this._ease(s/this._dur),function _updatePropTweens(t,e,r,i,n,a,s,o){var u,h,l,f,d=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!d)for(d=t._ptCache[e]=[],l=t._ptLookup,f=t._targets.length;f--;){if((u=l[f][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return qt=1,t.vars[e]="+=0",Wt(t,s),qt=0,o?R(e+" not eligible for reset"):1;d.push(u)}for(f=d.length;f--;)(u=(h=d[f])._pt||h).s=!i&&0!==i||n?u.s+(i||0)+a*u.c:i,u.c=r-u.s,h.e&&(h.e=ia(r)+Za(h.e)),h.b&&(h.b=u.s+Za(h.b))}(this,t,e,r,i,a,s,n)?this.resetTo(t,e,r,i,1):(Ja(this,0),this.parent||ya(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?ub(this):this.scrollTrigger&&this.scrollTrigger.kill(!!L),this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ut&&!0!==Ut.vars.overwrite)._first||ub(this),this.parent&&i!==this.timeline.totalDuration()&&Sa(this,this._dur*this.timeline._tDur/i,0,1),this}var n,a,s,o,u,h,l,f=this._targets,d=t?Ot(t):f,c=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,d))return"all"===e&&(this._pt=0),ub(this);for(n=this._op=this._op||[],"all"!==e&&(r(e)&&(u={},ha(e,function(t){return u[t]=1}),e=u),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?fa(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=yt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~d.indexOf(f[l]))for(u in a=c[l],"all"===e?(n[l]=e,o=a,s={}):(s=n[l]=n[l]||{},o=e),o)(h=a&&a[u])&&("kill"in h.d&&!0!==h.d.kill(u)||za(this,h,"_pt"),delete a[u]),"all"!==s&&(s[u]=1);return this._initted&&!this._pt&&p&&ub(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return Wa(1,arguments)},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return Wa(2,arguments)},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return I.killTweensOf(t,e,r)},Tween}(Nt);ra(Jt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ha("staggerTo,staggerFrom,staggerFromTo",function(r){Jt[r]=function(){var t=new Qt,e=kt.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function pc(t,e,r){return t.setAttribute(e,r)}function xc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var $t=function _setterPlain(t,e,r){return t[e]=r},te=function _setterFunc(t,e,r){return t[e](r)},re=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},ie=function _getSetter(t,e){return s(t[e])?te:u(t[e])&&t.setAttribute?pc:$t},ne=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},se=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},oe=function _renderComplexString(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},ue=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},he=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},de=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?za(this,i,"_pt"):i.dep||(e=1),i=r;return!e},_e=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},ge=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=xc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||ne,this.d=s||this,this.set=o||$t,this.pr=u||0,(this._next=t)&&(t._prev=this)}ha(vt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return ft[t]=1}),ot.TweenMax=ot.TweenLite=Jt,ot.TimelineLite=ot.TimelineMax=Qt,I=new Qt({sortChildren:!1,defaults:Z,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),X.stringFilter=Gb;function Fc(t){return(be[t]||Me).map(function(t){return t()})}function Gc(){var t=Date.now(),o=[];2<t-Oe&&(Fc("matchMediaInit"),Te.forEach(function(t){var e,r,i,n,a=t.queries,s=t.conditions;for(r in a)(e=h.matchMedia(a[r]).matches)&&(i=1),e!==s[r]&&(s[r]=e,n=1);n&&(t.revert(),i&&o.push(t))}),Fc("matchMediaRevert"),o.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Oe=t,Fc("matchMedia"))}var ve,Te=[],be={},Me=[],Oe=0,Ae=0,Pe=((ve=Context.prototype).add=function add(t,i,n){function Iw(){var t,e=l,r=a.selector;return e&&e!==a&&e.data.push(a),n&&(a.selector=db(n)),l=a,t=i.apply(a,arguments),s(t)&&a._r.push(t),l=e,a.selector=r,a.isReverted=!1,t}s(t)&&(n=i,i=t,t=s);var a=this;return a.last=Iw,t===s?Iw(a,function(t){return a.add(null,t)}):t?a[t]=Iw:Iw},ve.ignore=function ignore(t){var e=l;l=null,t(this),l=e},ve.getTweens=function getTweens(){var e=[];return this.data.forEach(function(t){return t instanceof Context?e.push.apply(e,t.getTweens()):t instanceof Jt&&!(t.parent&&"nested"===t.parent.data)&&e.push(t)}),e},ve.clear=function clear(){this._r.length=this.data.length=0},ve.kill=function kill(i,t){var n=this;if(i?function(){for(var t,e=n.getTweens(),r=n.data.length;r--;)"isFlip"===(t=n.data[r]).data&&(t.revert(),t.getChildren(!0,!0,!1).forEach(function(t){return e.splice(e.indexOf(t),1)}));for(e.map(function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}}).sort(function(t,e){return e.g-t.g||-1/0}).forEach(function(t){return t.t.revert(i)}),r=n.data.length;r--;)(t=n.data[r])instanceof Qt?"nested"!==t.data&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):t instanceof Jt||!t.revert||t.revert(i);n._r.forEach(function(t){return t(i,n)}),n.isReverted=!0}():this.data.forEach(function(t){return t.kill&&t.kill()}),this.clear(),t)for(var e=Te.length;e--;)Te[e].id===this.id&&Te.splice(e,1)},ve.revert=function revert(t){this.kill(t||{})},Context);function Context(t,e){this.selector=e&&db(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Ae++,t&&this.add(t)}var Ce,Se=((Ce=MatchMedia.prototype).add=function add(t,e,r){v(t)||(t={matches:t});var i,n,a,s=new Pe(0,r||this.scope),o=s.conditions={};for(n in l&&!s.selector&&(s.selector=l.selector),this.contexts.push(s),e=s.add("onMatch",e),s.queries=t)"all"===n?a=1:(i=h.matchMedia(t[n]))&&(Te.indexOf(s)<0&&Te.push(s),(o[n]=i.matches)&&(a=1),i.addListener?i.addListener(Gc):i.addEventListener("change",Gc));return a&&e(s,function(t){return s.add(null,t)}),this},Ce.revert=function revert(t){this.kill(t||{})},Ce.kill=function kill(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},MatchMedia);function MatchMedia(t){this.contexts=[],this.scope=t,l&&l.data.push(this)}var De={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return xb(t)})},timeline:function timeline(t){return new Qt(t)},getTweensOf:function getTweensOf(t,e){return I.getTweensOf(t,e)},getProperty:function getProperty(i,t,e,n){r(i)&&(i=Ot(i)[0]);var a=fa(i||{}).get,s=e?qa:pa;return"native"===e&&(e=""),i?t?s((pt[t]&&pt[t].get||a)(i,t,e,n)):function(t,e,r){return s((pt[t]&&pt[t].get||a)(i,t,e,r))}:i},quickSetter:function quickSetter(r,e,i){if(1<(r=Ot(r)).length){var n=r.map(function(t){return ze.quickSetter(t,e,i)}),a=n.length;return function(t){for(var e=a;e--;)n[e](t)}}r=r[0]||{};var s=pt[e],o=fa(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=s?function(t){var e=new s;d._pt=0,e.init(r,i?t+i:t,d,0,[r]),e.render(1,e),d._pt&&ue(1,d)}:o.set(r,u);return s?h:function(t){return h(r,u,i?t+i:t,o,1)}},quickTo:function quickTo(t,i,e){function ay(t,e,r){return n.resetTo(i,t,e,r)}var r,n=ze.to(t,ra(((r={})[i]="+=0.1",r.paused=!0,r.stagger=0,r),e||{}));return ay.tween=n,ay},isTweening:function isTweening(t){return 0<I.getTweensOf(t,!0).length},defaults:function defaults(t){return t&&t.ease&&(t.ease=Yt(t.ease,Z.ease)),ua(Z,t||{})},config:function config(t){return ua(X,t||{})},registerEffect:function registerEffect(t){var i=t.name,n=t.effect,e=t.plugins,a=t.defaults,r=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!pt[t]&&!ot[t]&&R(i+" effect requires "+t+" plugin.")}),_t[i]=function(t,e,r){return n(Ot(t),ra(e||{},a),r)},r&&(Qt.prototype[i]=function(t,e,r){return this.add(_t[i](t,v(e)?e:(r=e)&&{},this),r)})},registerEase:function registerEase(t,e){Lt[t]=Yt(e)},parseEase:function parseEase(t,e){return arguments.length?Yt(t,e):Lt},getById:function getById(t){return I.getById(t)},exportRoot:function exportRoot(t,e){void 0===t&&(t={});var r,i,n=new Qt(t);for(n.smoothChildTiming=w(t.smoothChildTiming),I.remove(n),n._dp=0,n._time=n._tTime=I._time,r=I._first;r;)i=r._next,!e&&!r._dur&&r instanceof Jt&&r.vars.onComplete===r._targets[0]||La(n,r,r._start-r._delay),r=i;return La(I,n,0),n},context:function context(t,e){return t?new Pe(t,e):l},matchMedia:function matchMedia(t){return new Se(t)},matchMediaRefresh:function matchMediaRefresh(){return Te.forEach(function(t){var e,r,i=t.conditions;for(r in i)i[r]&&(i[r]=!1,e=1);e&&t.revert()})||Gc()},addEventListener:function addEventListener(t,e){var r=be[t]||(be[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function removeEventListener(t,e){var r=be[t],i=r&&r.indexOf(e);0<=i&&r.splice(i,1)},utils:{wrap:function wrap(e,t,r){var i=t-e;return $(e)?mb(e,wrap(0,e.length),t):Xa(r,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function wrapYoyo(e,t,r){var i=t-e,n=2*i;return $(e)?mb(e,wrapYoyo(0,e.length-1),t):Xa(r,function(t){return e+(i<(t=(n+(t-e)%n)%n||0)?n-t:t)})},distribute:fb,random:ib,snap:hb,normalize:function normalize(t,e,r){return At(t,e,0,1,r)},getUnit:Za,clamp:function clamp(e,r,t){return Xa(t,function(t){return Mt(e,r,t)})},splitColor:Bb,toArray:Ot,selector:db,mapRange:At,pipe:function pipe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function unitize(e,r){return function(t){return e(parseFloat(t))+(r||Za(t))}},interpolate:function interpolate(e,i,t,n){var a=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!a){var s,o,u,h,l,f=r(e),d={};if(!0===t&&(n=1)&&(t=null),f)e={p:e},i={p:i};else if($(e)&&!$(i)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(interpolate(e[o-1],e[o]));h--,a=function func(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},t=i}else n||(e=yt($(e)?[]:{},e));if(!u){for(s in i)Vt.call(d,e,s,"get",i[s]);a=function func(t){return ue(t,d)||(f?e.p:e)}}}return Xa(t,a)},shuffle:eb},install:P,effects:_t,ticker:Rt,updateRoot:Qt.updateRoot,plugins:pt,globalTimeline:I,core:{PropTween:ge,globals:S,Tween:Jt,Timeline:Qt,Animation:Nt,getCache:fa,_removeLinkedListItem:za,reverting:function reverting(){return L},context:function context(t){return t&&l&&(l.data.push(t),t._ctx=l),l},suppressOverwrites:function suppressOverwrites(t){return F=t}}};ha("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return De[t]=Jt[t]}),Rt.add(Qt.updateRoot),d=De.to({},{duration:0});function Kc(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}function Mc(t,a){return{name:t,headless:1,rawVars:1,init:function init(t,n,e){e._onInit=function(t){var e,i;if(r(n)&&(e={},ha(n,function(t){return e[t]=1}),n=e),a){for(i in e={},n)e[i]=a(n[i]);n=e}!function _addModifiers(t,e){var r,i,n,a=t._targets;for(r in e)for(i=a.length;i--;)(n=(n=t._ptLookup[i][r])&&n.d)&&(n._pt&&(n=Kc(n,r)),n&&n.modifier&&n.modifier(e[r],t,a[i],r))}(t,n)}}}}var ze=De.registerPlugin({name:"attr",init:function init(t,e,r,i,n){var a,s,o;for(a in this.tween=r,e)o=t.getAttribute(a)||"",(s=this.add(t,"setAttribute",(o||0)+"",e[a],i,n,0,0,a)).op=a,s.b=o,this._props.push(a)},render:function render(t,e){for(var r=e._pt;r;)L?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function init(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Mc("roundProps",gb),Mc("modifiers"),Mc("snap",hb))||De;Jt.version=Qt.version=ze.version="3.13.0",o=1,x()&&Ft();function wd(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function xd(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function yd(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function zd(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)}function Ad(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function Bd(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function Cd(t,e,r){return t.style[e]=r}function Dd(t,e,r){return t.style.setProperty(e,r)}function Ed(t,e,r){return t._gsap[e]=r}function Fd(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function Gd(t,e,r,i,n){var a=t._gsap;a.scaleX=a.scaleY=r,a.renderTransform(n,a)}function Hd(t,e,r,i,n){var a=t._gsap;a[e]=r,a.renderTransform(n,a)}function Kd(t,e){var r=this,i=this.target,n=i.style,a=i._gsap;if(t in sr&&n){if(this.tfm=this.tfm||{},"transform"===t)return cr.transform.split(",").forEach(function(t){return Kd.call(r,t,e)});if(~(t=cr[t]||t).indexOf(",")?t.split(",").forEach(function(t){return r.tfm[t]=Tr(i,t)}):this.tfm[t]=a.x?a[t]:Tr(i,t),t===_r&&(this.tfm.zOrigin=a.zOrigin),0<=this.props.indexOf(pr))return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(_r,e,"")),t=pr}(n||e)&&this.props.push(t,e,n[t])}function Ld(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))}function Md(){var t,e,r=this.props,i=this.target,n=i.style,a=i._gsap;for(t=0;t<r.length;t+=3)r[t+1]?2===r[t+1]?i[r[t]](r[t+2]):i[r[t]]=r[t+2]:r[t+2]?n[r[t]]=r[t+2]:n.removeProperty("--"===r[t].substr(0,2)?r[t]:r[t].replace(lr,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),(t=Ye())&&t.isStart||n[pr]||(Ld(n),a.zOrigin&&n[_r]&&(n[_r]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}}function Nd(t,e){var r={target:t,props:[],revert:Md,save:Kd};return t._gsap||ze.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r}function Pd(t,e){var r=Re.createElementNS?Re.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Re.createElement(t);return r&&r.style?r:Re.createElement(t)}function Qd(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(lr,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&Qd(t,gr(e)||e,1)||""}function Td(){(function _windowExists(){return"undefined"!=typeof window})()&&window.document&&(Ee=window,Re=Ee.document,Fe=Re.documentElement,Ie=Pd("div")||{style:{}},Pd("div"),pr=gr(pr),_r=pr+"Origin",Ie.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Xe=!!gr("perspective"),Ye=ze.core.reverting,Le=1)}function Ud(t){var e,r=t.ownerSVGElement,i=Pd("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=t.cloneNode(!0);n.style.display="block",i.appendChild(n),Fe.appendChild(i);try{e=n.getBBox()}catch(t){}return i.removeChild(n),Fe.removeChild(i),e}function Vd(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function Wd(e){var r,i;try{r=e.getBBox()}catch(t){r=Ud(e),i=1}return r&&(r.width||r.height)||i||(r=Ud(e)),!r||r.width||r.x||r.y?r:{x:+Vd(e,["x","cx","x1"])||0,y:+Vd(e,["y","cy","y1"])||0,width:0,height:0}}function Xd(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Wd(t))}function Yd(t,e){if(e){var r,i=t.style;e in sr&&e!==_r&&(e=pr),i.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),i.removeProperty("--"===r?e:e.replace(lr,"-$1").toLowerCase())):i.removeAttribute(e)}}function Zd(t,e,r,i,n,a){var s=new ge(t._pt,e,r,0,1,a?Bd:Ad);return(t._pt=s).b=i,s.e=n,t._props.push(r),s}function ae(t,e,r,i){var n,a,s,o,u=parseFloat(r)||0,h=(r+"").trim().substr((u+"").length)||"px",l=Ie.style,f=fr.test(e),d="svg"===t.tagName.toLowerCase(),c=(d?"client":"offset")+(f?"Width":"Height"),p="px"===i,_="%"===i;if(i===h||!u||vr[i]||vr[h])return u;if("px"===h||p||(u=ae(t,e,r,"px")),o=t.getCTM&&Xd(t),(_||"%"===h)&&(sr[e]||~e.indexOf("adius")))return n=o?t.getBBox()[f?"width":"height"]:t[c],ia(_?u/n*100:u/100*n);if(l[f?"width":"height"]=100+(p?h:i),a="rem"!==i&&~e.indexOf("adius")||"em"===i&&t.appendChild&&!d?t:t.parentNode,o&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==Re&&a.appendChild||(a=Re.body),(s=a._gsap)&&_&&s.width&&f&&s.time===Rt.time&&!s.uncache)return ia(u/s.width*100);if(!_||"height"!==e&&"width"!==e)!_&&"%"!==h||yr[Qd(a,"display")]||(l.position=Qd(t,"position")),a===t&&(l.position="static"),a.appendChild(Ie),n=Ie[c],a.removeChild(Ie),l.position="absolute";else{var m=t.style[e];t.style[e]=100+i,n=t[c],m?t.style[e]=m:Yd(t,e)}return f&&_&&((s=fa(a)).time=Rt.time,s.width=a[c]),ia(p?n*u/100:n&&u?100/n*u:0)}function ce(t,e,r,i){if(!r||"none"===r){var n=gr(e,t,1),a=n&&Qd(t,n,1);a&&a!==r?(e=n,r=a):"borderColor"===e&&(r=Qd(t,"borderTopColor"))}var s,o,u,h,l,f,d,c,p,_,m,g=new ge(this._pt,t.style,e,0,1,oe),v=0,y=0;if(g.b=r,g.e=i,r+="","var(--"===(i+="").substring(0,6)&&(i=Qd(t,i.substring(4,i.indexOf(")")))),"auto"===i&&(f=t.style[e],t.style[e]=i,i=Qd(t,e)||i,f?t.style[e]=f:Yd(t,e)),Gb(s=[r,i]),i=s[1],u=(r=s[0]).match(rt)||[],(i.match(rt)||[]).length){for(;o=rt.exec(i);)d=o[0],p=i.substring(v,o.index),l?l=(l+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(l=1),d!==(f=u[y++]||"")&&(h=parseFloat(f)||0,m=f.substr((h+"").length),"="===d.charAt(1)&&(d=ka(h,d)+m),c=parseFloat(d),_=d.substr((c+"").length),v=rt.lastIndex-_.length,_||(_=_||X.units[e]||m,v===i.length&&(i+=_,g.e+=_)),m!==_&&(h=ae(t,e,f,_)||0),g._pt={_next:g._pt,p:p||1===y?p:",",s:h,c:c-h,m:l&&l<4||"zIndex"===e?Math.round:0});g.c=v<i.length?i.substring(v,i.length):""}else g.r="display"===e&&"none"===i?Bd:Ad;return nt.test(i)&&(g.e=0),this._pt=g}function ee(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==i&&"right"!==i||(t=r,r=i,i=t),e[0]=br[r]||r,e[1]=br[i]||i,e.join(" ")}function fe(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",i=1;else for(n=(o=o.split(",")).length;-1<--n;)r=o[n],sr[r]&&(i=1,r="transformOrigin"===r?_r:pr),Yd(a,r);i&&(Yd(a,pr),u&&(u.svg&&a.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",kr(a,1),u.uncache=1,Ld(s)))}}function je(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function ke(t){var e=Qd(t,pr);return je(e)?xr:e.substr(7).match(et).map(ia)}function le(t,e){var r,i,n,a,s=t._gsap||fa(t),o=t.style,u=ke(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?xr:u:(u!==xr||t.offsetParent||t===Fe||s.svg||(n=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(a=1,i=t.nextElementSibling,Fe.appendChild(t)),u=ke(t),n?o.display=n:Yd(t,"display"),a&&(i?r.insertBefore(t,i):r?r.appendChild(t):Fe.removeChild(t))),e&&6<u.length?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)}function me(t,e,r,i,n,a){var s,o,u,h=t._gsap,l=n||le(t,!0),f=h.xOrigin||0,d=h.yOrigin||0,c=h.xOffset||0,p=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],T=l[5],b=e.split(" "),w=parseFloat(b[0])||0,x=parseFloat(b[1])||0;r?l!==xr&&(o=_*v-m*g)&&(u=w*(-m/o)+x*(_/o)-(_*T-m*y)/o,w=w*(v/o)+x*(-g/o)+(g*T-v*y)/o,x=u):(w=(s=Wd(t)).x+(~b[0].indexOf("%")?w/100*s.width:w),x=s.y+(~(b[1]||b[0]).indexOf("%")?x/100*s.height:x)),i||!1!==i&&h.smooth?(y=w-f,T=x-d,h.xOffset=c+(y*_+T*g)-y,h.yOffset=p+(y*m+T*v)-T):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=x,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[_r]="0px 0px",a&&(Zd(a,h,"xOrigin",f,w),Zd(a,h,"yOrigin",d,x),Zd(a,h,"xOffset",c,h.xOffset),Zd(a,h,"yOffset",p,h.yOffset)),t.setAttribute("data-svg-origin",w+" "+x)}function pe(t,e,r){var i=Za(e);return ia(parseFloat(e)+parseFloat(ae(t,"x",r+"px",i)))+i}function we(t,e,i,n,a){var s,o,u=360,h=r(a),l=parseFloat(a)*(h&&~a.indexOf("rad")?or:1)-n,f=n+l+"deg";return h&&("short"===(s=a.split("_")[1])&&(l%=u)!==l%180&&(l+=l<0?u:-u),"cw"===s&&l<0?l=(l+36e9)%u-~~(l/u)*u:"ccw"===s&&0<l&&(l=(l-36e9)%u-~~(l/u)*u)),t._pt=o=new ge(t._pt,e,i,n,l,xd),o.e=f,o.u="deg",t._props.push(i),o}function xe(t,e){for(var r in e)t[r]=e[r];return t}function ye(t,e,r){var i,n,a,s,o,u,h,l=xe({},r._gsap),f=r.style;for(n in l.svg?(a=r.getAttribute("transform"),r.setAttribute("transform",""),f[pr]=e,i=kr(r,1),Yd(r,pr),r.setAttribute("transform",a)):(a=getComputedStyle(r)[pr],f[pr]=e,i=kr(r,1),f[pr]=a),sr)(a=l[n])!==(s=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=Za(a)!==(h=Za(s))?ae(r,n,a,h):parseFloat(a),u=parseFloat(s),t._pt=new ge(t._pt,i,n,o,u-o,wd),t._pt.u=h||0,t._props.push(n));xe(i,l)}var Ee,Re,Fe,Le,Ie,Be,Ye,Xe,Ze=Lt.Power0,Ne=Lt.Power1,Qe=Lt.Power2,Ue=Lt.Power3,qe=Lt.Power4,Ve=Lt.Linear,We=Lt.Quad,Ge=Lt.Cubic,He=Lt.Quart,Ke=Lt.Quint,Je=Lt.Strong,$e=Lt.Elastic,tr=Lt.Back,er=Lt.SteppedEase,rr=Lt.Bounce,ir=Lt.Sine,nr=Lt.Expo,ar=Lt.Circ,sr={},or=180/Math.PI,ur=Math.PI/180,hr=Math.atan2,lr=/([A-Z])/g,fr=/(left|right|width|margin|padding|x)/i,dr=/[\s,\(]\S/,cr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},pr="transform",_r=pr+"Origin",mr="O,Moz,ms,Ms,Webkit".split(","),gr=function _checkPropPrefix(t,e,r){var i=(e||Ie).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(mr[n]+t in i););return n<0?null:(3===n?"ms":0<=n?mr[n]:"")+t},vr={deg:1,rad:1,turn:1},yr={grid:1,flex:1},Tr=function _get(t,e,r,i){var n;return Le||Td(),e in cr&&"transform"!==e&&~(e=cr[e]).indexOf(",")&&(e=e.split(",")[0]),sr[e]&&"transform"!==e?(n=kr(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:Or(Qd(t,_r))+" "+n.zOrigin+"px"):(n=t.style[e])&&"auto"!==n&&!i&&!~(n+"").indexOf("calc(")||(n=wr[e]&&wr[e](t,e,r)||Qd(t,e)||ga(t,e)||("op
116acity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?ae(t,e,n,r)+r:n},br={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},wr={clearProps:function clearProps(t,e,r,i,n){if("isFromStart"!==n.data){var a=t._pt=new ge(t._pt,e,r,0,0,fe);return a.u=i,a.pr=-10,a.tween=n,t._props.push(r),1}}},xr=[1,0,0,1,0,0],Mr={},kr=function _parseTransform(t,e){var r=t._gsap||new Zt(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,a,s,o,u,h,l,f,d,c,p,_,m,g,v,y,T,b,w,x,M,k,O,A,P,C,S,D,z,E,R,F=t.style,L=r.scaleX<0,I="deg",B=getComputedStyle(t),j=Qd(t,_r)||"0";return i=n=a=u=h=l=f=d=c=0,s=o=1,r.svg=!(!t.getCTM||!Xd(t)),B.translate&&("none"===B.translate&&"none"===B.scale&&"none"===B.rotate||(F[pr]=("none"!==B.translate?"translate3d("+(B.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==B.rotate?"rotate("+B.rotate+") ":"")+("none"!==B.scale?"scale("+B.scale.split(" ").join(",")+") ":"")+("none"!==B[pr]?B[pr]:"")),F.scale=F.rotate=F.translate="none"),m=le(t,r.svg),r.svg&&(O=r.uncache?(A=t.getBBox(),j=r.xOrigin-A.x+"px "+(r.yOrigin-A.y)+"px",""):!e&&t.getAttribute("data-svg-origin"),me(t,O||j,!!O||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,_=r.yOrigin||0,m!==xr&&(T=m[0],b=m[1],w=m[2],x=m[3],i=M=m[4],n=k=m[5],6===m.length?(s=Math.sqrt(T*T+b*b),o=Math.sqrt(x*x+w*w),u=T||b?hr(b,T)*or:0,(f=w||x?hr(w,x)*or+u:0)&&(o*=Math.abs(Math.cos(f*ur))),r.svg&&(i-=p-(p*T+_*w),n-=_-(p*b+_*x))):(R=m[6],z=m[7],C=m[8],S=m[9],D=m[10],E=m[11],i=m[12],n=m[13],a=m[14],h=(g=hr(R,D))*or,g&&(O=M*(v=Math.cos(-g))+C*(y=Math.sin(-g)),A=k*v+S*y,P=R*v+D*y,C=M*-y+C*v,S=k*-y+S*v,D=R*-y+D*v,E=z*-y+E*v,M=O,k=A,R=P),l=(g=hr(-w,D))*or,g&&(v=Math.cos(-g),E=x*(y=Math.sin(-g))+E*v,T=O=T*v-C*y,b=A=b*v-S*y,w=P=w*v-D*y),u=(g=hr(b,T))*or,g&&(O=T*(v=Math.cos(g))+b*(y=Math.sin(g)),A=M*v+k*y,b=b*v-T*y,k=k*v-M*y,T=O,M=A),h&&359.9<Math.abs(h)+Math.abs(u)&&(h=u=0,l=180-l),s=ia(Math.sqrt(T*T+b*b+w*w)),o=ia(Math.sqrt(k*k+R*R)),g=hr(M,k),f=2e-4<Math.abs(g)?g*or:0,c=E?1/(E<0?-E:E):0),r.svg&&(O=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!je(Qd(t,pr)),O&&t.setAttribute("transform",O))),90<Math.abs(f)&&Math.abs(f)<270&&(L?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),e=e||r.uncache,r.x=i-((r.xPercent=i&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+"px",r.y=n-((r.yPercent=n&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=ia(s),r.scaleY=ia(o),r.rotation=ia(u)+I,r.rotationX=ia(h)+I,r.rotationY=ia(l)+I,r.skewX=f+I,r.skewY=d+I,r.transformPerspective=c+"px",(r.zOrigin=parseFloat(j.split(" ")[2])||!e&&r.zOrigin||0)&&(F[_r]=Or(j)),r.xOffset=r.yOffset=0,r.force3D=X.force3D,r.renderTransform=r.svg?zr:Xe?Dr:Ar,r.uncache=0,r},Or=function _firstTwoOnly(t){return(t=t.split(" "))[0]+" "+t[1]},Ar=function _renderNon3DTransforms(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Dr(t,e)},Pr="0deg",Cr="0px",Sr=") ",Dr=function _renderCSSTransforms(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,d=r.skewY,c=r.scaleX,p=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",T="auto"===m&&t&&1!==t||!0===m;if(v&&(l!==Pr||h!==Pr)){var b,w=parseFloat(h)*ur,x=Math.sin(w),M=Math.cos(w);w=parseFloat(l)*ur,b=Math.cos(w),a=pe(g,a,x*b*-v),s=pe(g,s,-Math.sin(w)*-v),o=pe(g,o,M*b*-v+v)}_!==Cr&&(y+="perspective("+_+Sr),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),!T&&a===Cr&&s===Cr&&o===Cr||(y+=o!==Cr||T?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+Sr),u!==Pr&&(y+="rotate("+u+Sr),h!==Pr&&(y+="rotateY("+h+Sr),l!==Pr&&(y+="rotateX("+l+Sr),f===Pr&&d===Pr||(y+="skew("+f+", "+d+Sr),1===c&&1===p||(y+="scale("+c+", "+p+Sr),g.style[pr]=y||"translate(0, 0)"},zr=function _renderSVGTransforms(t,e){var r,i,n,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,d=o.rotation,c=o.skewX,p=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,T=o.xOffset,b=o.yOffset,w=o.forceCSS,x=parseFloat(l),M=parseFloat(f);d=parseFloat(d),c=parseFloat(c),(p=parseFloat(p))&&(c+=p=parseFloat(p),d+=p),d||c?(d*=ur,c*=ur,r=Math.cos(d)*_,i=Math.sin(d)*_,n=Math.sin(d-c)*-m,a=Math.cos(d-c)*m,c&&(p*=ur,s=Math.tan(c-p),n*=s=Math.sqrt(1+s*s),a*=s,p&&(s=Math.tan(p),r*=s=Math.sqrt(1+s*s),i*=s)),r=ia(r),i=ia(i),n=ia(n),a=ia(a)):(r=_,a=m,i=n=0),(x&&!~(l+"").indexOf("px")||M&&!~(f+"").indexOf("px"))&&(x=ae(g,"x",l,"px"),M=ae(g,"y",f,"px")),(v||y||T||b)&&(x=ia(x+v-(v*r+y*n)+T),M=ia(M+y-(v*i+y*a)+b)),(u||h)&&(s=g.getBBox(),x=ia(x+u/100*s.width),M=ia(M+h/100*s.height)),s="matrix("+r+","+i+","+n+","+a+","+x+","+M+")",g.setAttribute("transform",s),w&&(g.style[pr]=s)};ha("padding,margin,Width,Radius",function(e,r){var t="Right",i="Bottom",n="Left",o=(r<3?["Top",t,i,n]:["Top"+n,"Top"+t,i+t,i+n]).map(function(t){return r<2?e+t:"border"+t+e});wr[1<r?"border"+e:e]=function(e,t,r,i,n){var a,s;if(arguments.length<4)return a=o.map(function(t){return Tr(e,t,r)}),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(i+"").split(" "),s={},o.forEach(function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]}),e.init(t,s,n)}});var Er,Rr,Fr,Lr={name:"css",register:Td,targetTest:function targetTest(t){return t.style&&t.nodeType},init:function init(t,e,i,n,a){var s,o,u,h,l,f,d,c,p,_,m,g,v,y,T,b,w=this._props,x=t.style,M=i.vars.startAt;for(d in Le||Td(),this.styles=this.styles||Nd(t),b=this.styles.props,this.tween=i,e)if("autoRound"!==d&&(o=e[d],!pt[d]||!bc(d,e,i,n,t,a)))if(l=typeof o,f=wr[d
vendor: 1,638 bytes, line 116
116],"function"===l&&(l=typeof(o=o.call(i,n,t,a))),"string"===l&&~o.indexOf("random(")&&(o=pb(o)),f)f(this,t,d,o,i)&&(T=1);else if("--"===d.substr(0,2))s=(getComputedStyle(t).getPropertyValue(d)+"").trim(),o+="",zt.lastIndex=0,zt.test(s)||(c=Za(s),p=Za(o)),p?c!==p&&(s=ae(t,d,s,p)+p):c&&(o+=c),this.add(x,"setProperty",s,o,n,a,0,0,d),w.push(d),b.push(d,0,x[d]);else if("undefined"!==l){if(M&&d in M?(s="function"==typeof M[d]?M[d].call(i,n,t,a):M[d],r(s)&&~s.indexOf("random(")&&(s=pb(s)),Za(s+"")||"auto"===s||(s+=X.units[d]||Za(Tr(t,d))||""),"="===(s+"").charAt(1)&&(s=Tr(t,d))):s=Tr(t,d),h=parseFloat(s),(_="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),u=parseFloat(o),d in cr&&("autoAlpha"===d&&(1===h&&"hidden"===Tr(t,"visibility")&&u&&(h=0),b.push("visibility",0,x.visibility),Zd(this,x,"visibility",h?"inherit":"hidden",u?"inherit":"hidden",!u)),"scale"!==d&&"transform"!==d&&~(d=cr[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in sr)if(this.styles.save(d),"string"===l&&"var(--"===o.substring(0,6)&&(o=Qd(t,o.substring(4,o.indexOf(")"))),u=parseFloat(o)),g||((v=t._gsap).renderTransform&&!e.parseTransform||kr(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new ge(this._pt,x,pr,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===d)this._pt=new ge(this._pt,v,"scaleY",v.scaleY,(_?ka(v.scaleY,_+u):u)-v.scaleY||0,wd),this._pt.u=0,w.push("scaleY",d),d+="X";else{if("transformOrigin"===d){b.push(_r,0,x[_r]),o=ee(o),v.svg?me(t,o,0,y,0,this):((p=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&Zd(this,v,"zOrigin",v.zOrigin,p),Zd(this,x,d,Or(s),Or(o)));continue}if("svgOrigin"===d){me(t,o,1,y,0,this);continue}
116if(d in Mr){we(this,v,d,h,_?ka(h,_+o):o);continue}if("smoothOrigin"===d){Zd(this,v,"smooth",v.smooth,o);continue}if("force3D"===d){v[d]=o;continue}if("transform"===d){ye(this,o,t);continue}}else d in x||(d=gr(d)||d);if(m||(u||0===u)&&(h||0===h)&&!dr.test(o)&&d in x)u=u||0,(c=(s+"").substr((h+"").length))!==(p=Za(o)||(d in X.units?X.units[d]:c))&&(h=ae(t,d,s,p)),this._pt=new ge(this._pt,m?v:x,d,h,(_?ka(h,_+u):u)-h,m||"px"!==p&&"zIndex"!==d||!1===e.autoRound?wd:zd),this._pt.u=p||0,c!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=yd);else if(d in x)ce.call(this,t,d,s,_?_+o:o);else if(d in t)this.add(t,d,s||t[d],_?_+o:o,n,a);else if("parseTransform"!==d){Q(d,o);continue}m||(d in x?b.push(d,0,x[d]):"function"==typeof t[d]?b.push(d,2,t[d]()):b.push(d,1,s||t[d])),w.push(d)}T&&_e(this)},render:function render(t,e){if(e.tween._time||!Ye())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Tr,aliases:cr,getSetter:function getSetter(t,e,r){var i=cr[e];return i&&i.indexOf(",")<0&&(e=i),e in sr&&e!==_r&&(t._gsap.x||Tr(t,"x"))?r&&Be===r?"scale"===e?Fd:Ed:(Be=r||{})&&("scale"===e?Gd:Hd):t.style&&!u(t.style[e])?Cd:~e.indexOf("-")?Dd:ie(t,e)},core:{_removeProperty:Yd,_getMatrix:le}};ze.utils.checkPrefix=gr,ze.core.getStyleSaver=Nd,Fr=ha((Er="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Rr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){sr[t]=1}),ha(Rr,function(t){X.units[t]="deg",Mr[t]=1}),cr[Fr[13]]=Er+","+Rr,ha("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");cr[e[1]]=Fr[e[0]]}),ha("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){X.units[t]="px"}),ze.registerPlugin(Lr);var Ir=ze.registerPlugin(Lr)||ze,Br=Ir.core.Tween;e.Back=tr,e.Bounce=rr,e.CSSPlugin=Lr,e.Circ=ar,e.Cubic=Ge,e.Elastic=$e,e.Expo=nr,e.Linear=Ve,e.Power0=Ze,e.Power1=Ne,e.Power2=Qe,e.Power3=Ue,e.Power4=qe,e.Quad=We,e.Quart=He,e.Quint=Ke,e.Sine=ir,e.SteppedEase=er,e.Strong=Je,e.TimelineLite=Qt,e.TimelineMax=Qt,e.TweenLite=Jt,e.TweenMax=Br,e.default=Ir,e.gsap=Ir;if(typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})}else{delete e.default}});
117/*! VelocityJS.org (1.5.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
118
119/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */
120(function(window){"use strict";if(window.jQuery){return}
121var $=function(selector,context){return new $.fn.init(selector,context)};$.isWindow=function(obj){return obj&&obj===obj.window};$.type=function(obj){if(!obj){return obj+""}
122return typeof obj==="object"||typeof obj==="function"?class2type[toString.call(obj)]||"object":typeof obj};$.isArray=Array.isArray||function(obj){return $.type(obj)==="array"};function isArraylike(obj){var length=obj.length,type=$.type(obj);if(type==="function"||$.isWindow(obj)){return!1}
123if(obj.nodeType===1&&length){return!0}
124return type==="array"||length===0||typeof length==="number"&&length>0&&(length-1)in obj}
125$.isPlainObject=function(obj){var key;if(!obj||$.type(obj)!=="object"||obj.nodeType||$.isWindow(obj)){return!1}
126try{if(obj.constructor&&!hasOwn.call(obj,"constructor")&&!hasOwn.call(obj.constructor.prototype,"isPrototypeOf")){return!1}}catch(e){return!1}
127for(key in obj){}
128return key===undefined||hasOwn.call(obj,key)};$.each=function(obj,callback,args){var value,i=0,length=obj.length,isArray=isArraylike(obj);if(args){if(isArray){for(;i<length;i++){value=callback.apply(obj[i],args);if(value===!1){break}}}else{for(i in obj){if(!obj.hasOwnProperty(i)){continue}
129value=callback.apply(obj[i],args);if(value===!1){break}}}}else{if(isArray){for(;i<length;i++){value=callback.call(obj[i],i,obj[i]);if(value===!1){break}}}else{for(i in obj){if(!obj.hasOwnProperty(i)){continue}
130value=callback.call(obj[i],i,obj[i]);if(value===!1){break}}}}
131return obj};$.data=function(node,key,value){if(value===undefined){var getId=node[$.expando],store=getId&&cache[getId];if(key===undefined){return store}else if(store){if(key in store){return store[key]}}}else if(key!==undefined){var setId=node[$.expando]||(node[$.expando]=++$.uuid);
131cache[setId]=cache[setId]||{};cache[setId][key]=value;return value}};$.removeData=function(node,keys){var id=node[$.expando],store=id&&cache[id];if(store){if(!keys){delete cache[id]}else{$.each(keys,function(_,key){delete store[key]})}}};$.extend=function(){var src,copyIsArray,copy,name,options,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=!1;if(typeof target==="boolean"){deep=target;target=arguments[i]||{};i++}
132if(typeof target!=="object"&&$.type(target)!=="function"){target={}}
133if(i===length){target=this;i--}
134for(;i<length;i++){if((options=arguments[i])){for(name in options){if(!options.hasOwnProperty(name)){continue}
135src=target[name];copy=options[name];if(target===copy){continue}
136if(deep&&copy&&($.isPlainObject(copy)||(copyIsArray=$.isArray(copy)))){if(copyIsArray){copyIsArray=!1;clone=src&&$.isArray(src)?src:[]}else{clone=src&&$.isPlainObject(src)?src:{}}
137target[name]=$.extend(deep,clone,copy)}else if(copy!==undefined){target[name]=copy}}}}
138return target};$.queue=function(elem,type,data){function $makeArray(arr,results){var ret=results||[];if(arr){if(isArraylike(Object(arr))){(function(first,second){var len=+second.length,j=0,i=first.length;while(j<len){first[i++]=second[j++]}
139if(len!==len){while(second[j]!==undefined){first[i++]=second[j++]}}
140first.length=i;return first})(ret,typeof arr==="string"?[arr]:arr)}else{[].push.call(ret,arr)}}
141return ret}
142if(!elem){return}
143type=(type||"fx")+"queue";var q=$.data(elem,type);if(!data){return q||[]}
144if(!q||$.isArray(data)){q=$.data(elem,type,$makeArray(data))}else{q.push(data)}
145return q};$.dequeue=function(elems,type){$.each(elems.nodeType?[elems]:elems,function(i,elem){type=type||"fx";var queue=$.queue(elem,type),fn=queue.shift();if(fn==="inprogress"){fn=queue.shift()}
146if(fn){if(type==="fx"){queue.unshift("inprogress")}
147fn.call(elem,function(){$.dequeue(elem,type)})}})};$.fn=$.prototype={init:function(selector){if(selector.nodeType){this[0]=selector;return this}else{throw new Error("Not a DOM node.")}},offset:function(){var box=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:box.top+(window.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:box.left+(window.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function offsetParentFn(elem){var offsetParent=elem.offsetParent;while(offsetParent&&(offsetParent.nodeName.toLowerCase()!=="html"&&offsetParent.style&&offsetParent.style.position.toLowerCase()==="static")){offsetParent=offsetParent.offsetParent}
148return offsetParent||document}
149var elem=this[0],offsetParent=offsetParentFn(elem),offset=this.offset(),parentOffset=/^(?:body|html)$/i.test(offsetParent.nodeName)?{top:0,left:0}:$(offsetParent).offset();offset.top-=parseFloat(elem.style.marginTop)||0;offset.left-=parseFloat(elem.style.marginLeft)||0;if(offsetParent.style){parentOffset.top+=parseFloat(offsetParent.style.borderTopWidth)||0;parentOffset.left+=parseFloat(offsetParent.style.borderLeftWidth)||0}
150return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}};var cache={};$.expando="velocity"+(new Date().getTime());$.uuid=0;var class2type={},hasOwn=class2type.hasOwnProperty,toString=class2type.toString;var types="Boolean Number String Function Array Date RegExp Object Error".split(" ");for(var i=0;i<types.length;i++){class2type["[object "+types[i]+"]"]=types[i].toLowerCase()}
151$.fn.init.prototype=$.fn;window.Velocity={Utilities:$}})(window);(function(factory){"use strict";if(typeof module==="object"&&typeof module.exports==="object"){module.exports=factory()}else if(typeof define==="function"&&define.amd){define(factory)}else{factory()}}(function(){"use strict";return function(global,window,document,undefined){var IE=(function(){if(document.documentMode){return document.documentMode}else{for(var i=7;i>4;i--){var div=document.createElement("div");div.innerHTML="<!--[if IE "+i+"]><span></span><![endif]-->";if(div.getElementsByTagName("span").length){div=null;return i}}}
152return undefined})();var rAFShim=(function(){var timeLast=0;return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(callback){var timeCurrent=(new Date()).getTime(),timeDelta;timeDelta=Math.max(0,16-(timeCurrent-timeLast));timeLast=timeCurrent+timeDelta;return setTimeout(function(){callback(timeCurrent+timeDelta)},timeDelta)}})();var performance=(function(){var perf=window.performance||{};if(typeof perf.now!=="function"){var nowOffset=perf.timing&&perf.timing.navigationStart?perf.timing.navigationStart:(new Date()).getTime();perf.now=function(){return(new Date()).getTime()-nowOffset}}
153return perf})();function compactSparseArray(array){var index=-1,length=array?array.length:0,result=[];while(++index<length){var value=array[index];if(value){result.push(value)}}
154return result}
155var _slice=(function(){var slice=Array.prototype.slice;try{slice.call(document.documentElement);return slice}catch(e){return function(begin,end){var len=this.length;if(typeof begin!=="number"){begin=0}
156if(typeof end!=="number"){end=len}
157if(this.slice){return slice.call(this,begin,end)}
158var i,cloned=[],start=(begin>=0)?begin:Math.max(0,len+begin),upTo=end<0?len+end:Math.min(end,len),size=upTo-start;if(size>0){cloned=new Array(size);if(this.charAt){for(i=0;i<size;i++){cloned[i]=this.charAt(start+i)}}else{for(i=0;i<size;i++){cloned[i]=this[start+i]}}}
159return cloned}}})();var _inArray=(function(){if(Array.prototype.includes){return function(arr,val){return arr.includes(val)}}
160if(Array.prototype.indexOf){return function(arr,val){return arr.indexOf(val)>=0}}
161return function(arr,val){for(var i=0;i<arr.length;i++){if(arr[i]===val){return!0}}
162return!1}});function sanitizeElements(elements){if(Type.isWrapped(elements)){elements=_slice.call(elements)}else if(Type.isNode(elements)){elements=[elements]}
163return elements}
164var Type={isNumber:function(variable){return(typeof variable==="number")},isString:function(variable){return(typeof variable==="string")},isArray:Array.isArray||function(variable){return Object.prototype.toString.call(variable)==="[object Array]"},isFunction:function(variable){return Object.prototype.toString.call(variable)==="[object Function]"},isNode:function(variable){return variable&&variable.nodeType},isWrapped:function(variable){return variable&&variable!==window&&Type.isNumber(variable.length)&&!Type.isString(variable)&&!Type.isFunction(variable)&&!Type.isNode(variable)&&(variable.length===0||Type.isNode(variable[0]))},isSVG:function(variable){return window.SVGElement&&(variable instanceof window.SVGElement)},isEmptyObject:function(variable){for(var name in variable){if(variable.hasOwnProperty(name)){return!1}}
165return!0}};var $,isJQuery=!1;if(global.fn&&global.fn.jquery){$=global;isJQuery=!0}else{$=window.Velocity.Utilities}
166if(IE<=8&&!isJQuery){throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.")}else if(IE<=7){jQuery.fn.velocity=jQuery.fn.animate;return}
167var DURATION_DEFAULT=400,EASING_DEFAULT="swing";var Velocity={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent),isAndroid:/Android/i.test(window.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(window.navigator.userAgent),isChrome:window.chrome,isFirefox:/Firefox/i.test(window.navigator.userAgent),prefixElement:document.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,
167calls:[],delayedElements:{count:0}},CSS:{},Utilities:$,Redirects:{},Easings:{},Promise:window.Promise,defaults:{queue:"",duration:DURATION_DEFAULT,easing:EASING_DEFAULT,begin:undefined,complete:undefined,progress:undefined,display:undefined,visibility:undefined,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(element){$.data(element,"velocity",{isSVG:Type.isSVG(element),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:2},debug:!1,timestamp:!0,pauseAll:function(queueName){var currentTime=(new Date()).getTime();$.each(Velocity.State.calls,function(i,activeCall){if(activeCall){if(queueName!==undefined&&((activeCall[2].queue!==queueName)||(activeCall[2].queue===!1))){return!0}
168activeCall[5]={resume:!1}}});$.each(Velocity.State.delayedElements,function(k,element){if(!element){return}
169pauseDelayOnElement(element,currentTime)})},resumeAll:function(queueName){var currentTime=(new Date()).getTime();$.each(Velocity.State.calls,function(i,activeCall){if(activeCall){if(queueName!==undefined&&((activeCall[2].queue!==queueName)||(activeCall[2].queue===!1))){return!0}
170if(activeCall[5]){activeCall[5].resume=!0}}});$.each(Velocity.State.delayedElements,function(k,element){if(!element){return}
171resumeDelayOnElement(element,currentTime)})}};if(window.pageYOffset!==undefined){Velocity.State.scrollAnchor=window;Velocity.State.scrollPropertyLeft="pageXOffset";Velocity.State.scrollPropertyTop="pageYOffset"}else{Velocity.State.scrollAnchor=document.documentElement||document.body.parentNode||document.body;Velocity.State.scrollPropertyLeft="scrollLeft";Velocity.State.scrollPropertyTop="scrollTop"}
172function Data(element){var response=$.data(element,"velocity");return response===null?undefined:response}
173function pauseDelayOnElement(element,currentTime){var data=Data(element);if(data&&data.delayTimer&&!data.delayPaused){data.delayRemaining=data.delay-currentTime+data.delayBegin;data.delayPaused=!0;clearTimeout(data.delayTimer.setTimeout)}}
174function resumeDelayOnElement(element,currentTime){var data=Data(element);if(data&&data.delayTimer&&data.delayPaused){data.delayPaused=!1;data.delayTimer.setTimeout=setTimeout(data.delayTimer.next,data.delayRemaining)}}
175function generateStep(steps){return function(p){return Math.round(p*steps)*(1/steps)}}
176function generateBezier(mX1,mY1,mX2,mY2){var NEWTON_ITERATIONS=4,NEWTON_MIN_SLOPE=0.001,SUBDIVISION_PRECISION=0.0000001,SUBDIVISION_MAX_ITERATIONS=10,kSplineTableSize=11,kSampleStepSize=1.0/(kSplineTableSize-1.0),float32ArraySupported="Float32Array" in window;if(arguments.length!==4){return!1}
177for(var i=0;i<4;++i){if(typeof arguments[i]!=="number"||isNaN(arguments[i])||!isFinite(arguments[i])){return!1}}
178mX1=Math.min(mX1,1);mX2=Math.min(mX2,1);mX1=Math.max(mX1,0);mX2=Math.max(mX2,0);var mSampleValues=float32ArraySupported?new Float32Array(kSplineTableSize):new Array(kSplineTableSize);function A(aA1,aA2){return 1.0-3.0*aA2+3.0*aA1}
179function B(aA1,aA2){return 3.0*aA2-6.0*aA1}
180function C(aA1){return 3.0*aA1}
181function calcBezier(aT,aA1,aA2){return((A(aA1,aA2)*aT+B(aA1,aA2))*aT+C(aA1))*aT}
182function getSlope(aT,aA1,aA2){return 3.0*A(aA1,aA2)*aT*aT+2.0*B(aA1,aA2)*aT+C(aA1)}
183function newtonRaphsonIterate(aX,aGuessT){for(var i=0;i<NEWTON_ITERATIONS;++i){var currentSlope=getSlope(aGuessT,mX1,mX2);if(currentSlope===0.0){return aGuessT}
184var currentX=calcBezier(aGuessT,mX1,mX2)-aX;aGuessT-=currentX/currentSlope}
185return aGuessT}
186function calcSampleValues(){for(var i=0;i<kSplineTableSize;++i){mSampleValues[i]=calcBezier(i*kSampleStepSize,mX1,mX2)}}
187function binarySubdivide(aX,aA,aB){var currentX,currentT,i=0;do{currentT=aA+(aB-aA)/2.0;currentX=calcBezier(currentT,mX1,mX2)-aX;if(currentX>0.0){aB=currentT}else{aA=currentT}}while(Math.abs(currentX)>SUBDIVISION_PRECISION&&++i<SUBDIVISION_MAX_ITERATIONS);return currentT}
188function getTForX(aX){var intervalStart=0.0,currentSample=1,lastSample=kSplineTableSize-1;for(;currentSample!==lastSample&&mSampleValues[currentSample]<=aX;++currentSample){intervalStart+=kSampleStepSize}
189--currentSample;var dist=(aX-mSampleValues[currentSample])/(mSampleValues[currentSample+1]-mSampleValues[currentSample]),guessForT=intervalStart+dist*kSampleStepSize,initialSlope=getSlope(guessForT,mX1,mX2);if(initialSlope>=NEWTON_MIN_SLOPE){return newtonRaphsonIterate(aX,guessForT)}else if(initialSlope===0.0){return guessForT}else{return binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize)}}
190var _precomputed=!1;function precompute(){_precomputed=!0;if(mX1!==mY1||mX2!==mY2){calcSampleValues()}}
191var f=function(aX){if(!_precomputed){precompute()}
192if(mX1===mY1&&mX2===mY2){return aX}
193if(aX===0){return 0}
194if(aX===1){return 1}
195return calcBezier(getTForX(aX),mY1,mY2)};f.getControlPoints=function(){return[{x:mX1,y:mY1},{x:mX2,y:mY2}]};var str="generateBezier("+[mX1,mY1,mX2,mY2]+")";f.toString=function(){return str};return f}
196var generateSpringRK4=(function(){function springAccelerationForState(state){return(-state.tension*state.x)-(state.friction*state.v)}
197function springEvaluateStateWithDerivative(initialState,dt,derivative){var state={x:initialState.x+derivative.dx*dt,v:initialState.v+derivative.dv*dt,tension:initialState.tension,friction:initialState.friction};return{dx:state.v,dv:springAccelerationForState(state)}}
198function springIntegrateState(state,dt){var a={dx:state.v,dv:springAccelerationForState(state)},b=springEvaluateStateWithDerivative(state,dt*0.5,a),c=springEvaluateStateWithDerivative(state,dt*0.5,b),d=springEvaluateStateWithDerivative(state,dt,c),dxdt=1.0/6.0*(a.dx+2.0*(b.dx+c.dx)+d.dx),dvdt=1.0/6.0*(a.dv+2.0*(b.dv+c.dv)+d.dv);state.x=state.x+dxdt*dt;state.v=state.v+dvdt*dt;return state}
199return function springRK4Factory(tension,friction,duration){var initState={x:-1,v:0,tension:null,friction:null},path=[0],time_lapsed=0,tolerance=1/10000,DT=16/1000,have_duration,dt,last_state;tension=parseFloat(tension)||500;friction=parseFloat(friction)||20;duration=duration||null;initState.tension=tension;initState.friction=friction;have_duration=duration!==null;
199if(have_duration){time_lapsed=springRK4Factory(tension,friction);dt=time_lapsed/duration*DT}else{dt=DT}
200while(!0){last_state=springIntegrateState(last_state||initState,dt);path.push(1+last_state.x);time_lapsed+=16;if(!(Math.abs(last_state.x)>tolerance&&Math.abs(last_state.v)>tolerance)){break}}
201return!have_duration?time_lapsed:function(percentComplete){return path[(percentComplete*(path.length-1))|0]}}}());Velocity.Easings={linear:function(p){return p},swing:function(p){return 0.5-Math.cos(p*Math.PI)/2},spring:function(p){return 1-(Math.cos(p*4.5*Math.PI)*Math.exp(-p*6))}};$.each([["ease",[0.25,0.1,0.25,1.0]],["ease-in",[0.42,0.0,1.00,1.0]],["ease-out",[0.00,0.0,0.58,1.0]],["ease-in-out",[0.42,0.0,0.58,1.0]],["easeInSine",[0.47,0,0.745,0.715]],["easeOutSine",[0.39,0.575,0.565,1]],["easeInOutSine",[0.445,0.05,0.55,0.95]],["easeInQuad",[0.55,0.085,0.68,0.53]],["easeOutQuad",[0.25,0.46,0.45,0.94]],["easeInOutQuad",[0.455,0.03,0.515,0.955]],["easeInCubic",[0.55,0.055,0.675,0.19]],["easeOutCubic",[0.215,0.61,0.355,1]],["easeInOutCubic",[0.645,0.045,0.355,1]],["easeInQuart",[0.895,0.03,0.685,0.22]],["easeOutQuart",[0.165,0.84,0.44,1]],["easeInOutQuart",[0.77,0,0.175,1]],["easeInQuint",[0.755,0.05,0.855,0.06]],["easeOutQuint",[0.23,1,0.32,1]],["easeInOutQuint",[0.86,0,0.07,1]],["easeInExpo",[0.95,0.05,0.795,0.035]],["easeOutExpo",[0.19,1,0.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[0.6,0.04,0.98,0.335]],["easeOutCirc",[0.075,0.82,0.165,1]],["easeInOutCirc",[0.785,0.135,0.15,0.86]]],function(i,easingArray){Velocity.Easings[easingArray[0]]=generateBezier.apply(null,easingArray[1])});function getEasing(value,duration){var easing=value;if(Type.isString(value)){if(!Velocity.Easings[value]){easing=!1}}else if(Type.isArray(value)&&value.length===1){easing=generateStep.apply(null,value)}else if(Type.isArray(value)&&value.length===2){easing=generateSpringRK4.apply(null,value.concat([duration]))}else if(Type.isArray(value)&&value.length===4){easing=generateBezier.apply(null,value)}else{easing=!1}
202if(easing===!1){if(Velocity.Easings[Velocity.defaults.easing]){easing=Velocity.defaults.easing}else{easing=EASING_DEFAULT}}
203return easing}
204var CSS=Velocity.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/ig},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{"aliceblue":"240,248,255","antiquewhite":"250,235,215","aquamarine":"127,255,212","aqua":"0,255,255","azure":"240,255,255","beige":"245,245,220","bisque":"255,228,196","black":"0,0,0","blanchedalmond":"255,235,205","blueviolet":"138,43,226","blue":"0,0,255","brown":"165,42,42","burlywood":"222,184,135","cadetblue":"95,158,160","chartreuse":"127,255,0","chocolate":"210,105,30","coral":"255,127,80","cornflowerblue":"100,149,237","cornsilk":"255,248,220","crimson":"220,20,60","cyan":"0,255,255","darkblue":"0,0,139","darkcyan":"0,139,139","darkgoldenrod":"184,134,11","darkgray":"169,169,169","darkgrey":"169,169,169","darkgreen":"0,100,0","darkkhaki":"189,183,107","darkmagenta":"139,0,139","darkolivegreen":"85,107,47","darkorange":"255,140,0","darkorchid":"153,50,204","darkred":"139,0,0","darksalmon":"233,150,122","darkseagreen":"143,188,143","darkslateblue":"72,61,139","darkslategray":"47,79,79","darkturquoise":"0,206,209","darkviolet":"148,0,211","deeppink":"255,20,147","deepskyblue":"0,191,255","dimgray":"105,105,105","dimgrey":"105,105,105","dodgerblue":"30,144,255","firebrick":"178,34,34","floralwhite":"255,250,240","forestgreen":"34,139,34","fuchsia":"255,0,255","gainsboro":"220,220,220","ghostwhite":"248,248,255","gold":"255,215,0","goldenrod":"218,165,32","gray":"128,128,128","grey":"128,128,128","greenyellow":"173,255,47","green":"0,128,0","honeydew":"240,255,240","hotpink":"255,105,180","indianred":"205,92,92","indigo":"75,0,130","ivory":"255,255,240","khaki":"240,230,140","lavenderblush":"255,240,245","lavender":"230,230,250","lawngreen":"124,252,0","lemonchiffon":"255,250,205","lightblue":"173,216,230","lightcoral":"240,128,128","lightcyan":"224,255,255","lightgoldenrodyellow":"250,250,210","lightgray":"211,211,211","lightgrey":"211,211,211","lightgreen":"144,238,144","lightpink":"255,182,193","lightsalmon":"255,160,122","lightseagreen":"32,178,170","lightskyblue":"135,206,250","lightslategray":"119,136,153","lightsteelblue":"176,196,222","lightyellow":"255,255,224","limegreen":"50,205,50","lime":"0,255,0","linen":"250,240,230","magenta":"255,0,255","maroon":"128,0,0","mediumaquamarine":"102,205,170","mediumblue":"0,0,205","mediumorchid":"186,85,211","mediumpurple":"147,112,219","mediumseagreen":"60,179,113","mediumslateblue":"123,104,238","mediumspringgreen":"0,250,154","mediumturquoise"
204:"72,209,204","mediumvioletred":"199,21,133","midnightblue":"25,25,112","mintcream":"245,255,250","mistyrose":"255,228,225","moccasin":"255,228,181","navajowhite":"255,222,173","navy":"0,0,128","oldlace":"253,245,230","olivedrab":"107,142,35","olive":"128,128,0","orangered":"255,69,0","orange":"255,165,0","orchid":"218,112,214","palegoldenrod":"238,232,170","palegreen":"152,251,152","paleturquoise":"175,238,238","palevioletred":"219,112,147","papayawhip":"255,239,213","peachpuff":"255,218,185","peru":"205,133,63","pink":"255,192,203","plum":"221,160,221","powderblue":"176,224,230","purple":"128,0,128","red":"255,0,0","rosybrown":"188,143,143","royalblue":"65,105,225","saddlebrown":"139,69,19","salmon":"250,128,114","sandybrown":"244,164,96","seagreen":"46,139,87","seashell":"255,245,238","sienna":"160,82,45","silver":"192,192,192","skyblue":"135,206,235","slateblue":"106,90,205","slategray":"112,128,144","snow":"255,250,250","springgreen":"0,255,127","steelblue":"70,130,180","tan":"210,180,140","teal":"0,128,128","thistle":"216,191,216","tomato":"255,99,71","turquoise":"64,224,208","violet":"238,130,238","wheat":"245,222,179","whitesmoke":"245,245,245","white":"255,255,255","yellowgreen":"154,205,50","yellow":"255,255,0"}},Hooks:{templates:{"textShadow":["Color X Y Blur","black 0px 0px 0px"],"boxShadow":["Color X Y Blur Spread","black 0px 0px 0px 0px"],"clip":["Top Right Bottom Left","0px 0px 0px 0px"],"backgroundPosition":["X Y","0% 0%"],"transformOrigin":["X Y Z","50% 50% 0px"],"perspectiveOrigin":["X Y","50% 50%"]},registered:{},register:function(){for(var i=0;i<CSS.Lists.colors.length;i++){var rgbComponents=(CSS.Lists.colors[i]==="color")?"0 0 0 1":"255 255 255 1";CSS.Hooks.templates[CSS.Lists.colors[i]]=["Red Green Blue Alpha",rgbComponents]}
205var rootProperty,hookTemplate,hookNames;if(IE){for(rootProperty in CSS.Hooks.templates){if(!CSS.Hooks.templates.hasOwnProperty(rootProperty)){continue}
206hookTemplate=CSS.Hooks.templates[rootProperty];hookNames=hookTemplate[0].split(" ");var defaultValues=hookTemplate[1].match(CSS.RegEx.valueSplit);if(hookNames[0]==="Color"){hookNames.push(hookNames.shift());defaultValues.push(defaultValues.shift());CSS.Hooks.templates[rootProperty]=[hookNames.join(" "),defaultValues.join(" ")]}}}
207for(rootProperty in CSS.Hooks.templates){if(!CSS.Hooks.templates.hasOwnProperty(rootProperty)){continue}
208hookTemplate=CSS.Hooks.templates[rootProperty];hookNames=hookTemplate[0].split(" ");for(var j in hookNames){if(!hookNames.hasOwnProperty(j)){continue}
209var fullHookName=rootProperty+hookNames[j],hookPosition=j;CSS.Hooks.registered[fullHookName]=[rootProperty,hookPosition]}}},getRoot:function(property){var hookData=CSS.Hooks.registered[property];if(hookData){return hookData[0]}else{return property}},getUnit:function(str,start){var unit=(str.substr(start||0,5).match(/^[a-z%]+/)||[])[0]||"";if(unit&&_inArray(CSS.Lists.units,unit)){return unit}
210return""},fixColors:function(str){return str.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function($0,$1,$2){if(CSS.Lists.colorNames.hasOwnProperty($2)){return($1?$1:"rgba(")+CSS.Lists.colorNames[$2]+($1?"":",1)")}
211return $1+$2})},cleanRootPropertyValue:function(rootProperty,rootPropertyValue){if(CSS.RegEx.valueUnwrap.test(rootPropertyValue)){rootPropertyValue=rootPropertyValue.match(CSS.RegEx.valueUnwrap)[1]}
212if(CSS.Values.isCSSNullValue(rootPropertyValue)){rootPropertyValue=CSS.Hooks.templates[rootProperty][1]}
213return rootPropertyValue},extractValue:function(fullHookName,rootPropertyValue){var hookData=CSS.Hooks.registered[fullHookName];if(hookData){var hookRoot=hookData[0],hookPosition=hookData[1];rootPropertyValue=CSS.Hooks.cleanRootPropertyValue(hookRoot,rootPropertyValue);return rootPropertyValue.toString().match(CSS.RegEx.valueSplit)[hookPosition]}else{return rootPropertyValue}},injectValue:function(fullHookName,hookValue,rootPropertyValue){var hookData=CSS.Hooks.registered[fullHookName];if(hookData){var hookRoot=hookData[0],hookPosition=hookData[1],rootPropertyValueParts,rootPropertyValueUpdated;rootPropertyValue=CSS.Hooks.cleanRootPropertyValue(hookRoot,rootPropertyValue);rootPropertyValueParts=rootPropertyValue.toString().match(CSS.RegEx.valueSplit);rootPropertyValueParts[hookPosition]=hookValue;rootPropertyValueUpdated=rootPropertyValueParts.join(" ");return rootPropertyValueUpdated}else{return rootPropertyValue}}},Normalizations:{registered:{clip:function(type,element,propertyValue){switch(type){case "name":return"clip";case "extract":var extracted;if(CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)){extracted=propertyValue}else{extracted=propertyValue.toString().match(CSS.RegEx.valueUnwrap
213);extracted=extracted?extracted[1].replace(/,(\s+)?/g," "):propertyValue}
214return extracted;case "inject":return"rect("+propertyValue+")"}},blur:function(type,element,propertyValue){switch(type){case "name":return Velocity.State.isFirefox?"filter":"-webkit-filter";case "extract":var extracted=parseFloat(propertyValue);if(!(extracted||extracted===0)){var blurComponent=propertyValue.toString().match(/blur\(([0-9]+[A-z]+)\)/i);if(blurComponent){extracted=blurComponent[1]}else{extracted=0}}
215return extracted;case "inject":if(!parseFloat(propertyValue)){return"none"}else{return"blur("+propertyValue+")"}}},opacity:function(type,element,propertyValue){if(IE<=8){switch(type){case "name":return"filter";case "extract":var extracted=propertyValue.toString().match(/alpha\(opacity=(.*)\)/i);if(extracted){propertyValue=extracted[1]/100}else{propertyValue=1}
216return propertyValue;case "inject":element.style.zoom=1;if(parseFloat(propertyValue)>=1){return""}else{return"alpha(opacity="+parseInt(parseFloat(propertyValue)*100,10)+")"}}}else{switch(type){case "name":return"opacity";case "extract":return propertyValue;case "inject":return propertyValue}}}},register:function(){if((!IE||IE>9)&&!Velocity.State.isGingerbread){CSS.Lists.transformsBase=CSS.Lists.transformsBase.concat(CSS.Lists.transforms3D)}
217for(var i=0;i<CSS.Lists.transformsBase.length;i++){(function(){var transformName=CSS.Lists.transformsBase[i];CSS.Normalizations.registered[transformName]=function(type,element,propertyValue){switch(type){case "name":return"transform";case "extract":if(Data(element)===undefined||Data(element).transformCache[transformName]===undefined){return/^scale/i.test(transformName)?1:0}
218return Data(element).transformCache[transformName].replace(/[()]/g,"");case "inject":var invalid=!1;switch(transformName.substr(0,transformName.length-1)){case "translate":invalid=!/(%|px|em|rem|vw|vh|\d)$/i.test(propertyValue);break;case "scal":case "scale":if(Velocity.State.isAndroid&&Data(element).transformCache[transformName]===undefined&&propertyValue<1){propertyValue=1}
219invalid=!/(\d)$/i.test(propertyValue);break;case "skew":invalid=!/(deg|\d)$/i.test(propertyValue);break;case "rotate":invalid=!/(deg|\d)$/i.test(propertyValue);break}
220if(!invalid){Data(element).transformCache[transformName]="("+propertyValue+")"}
221return Data(element).transformCache[transformName]}}})()}
222for(var j=0;j<CSS.Lists.colors.length;j++){(function(){var colorName=CSS.Lists.colors[j];CSS.Normalizations.registered[colorName]=function(type,element,propertyValue){switch(type){case "name":return colorName;case "extract":var extracted;if(CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)){extracted=propertyValue}else{var converted,colorNames={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};if(/^[A-z]+$/i.test(propertyValue)){if(colorNames[propertyValue]!==undefined){converted=colorNames[propertyValue]}else{converted=colorNames.black}}else if(CSS.RegEx.isHex.test(propertyValue)){converted="rgb("+CSS.Values.hexToRgb(propertyValue).join(" ")+")"}else if(!(/^rgba?\(/i.test(propertyValue))){converted=colorNames.black}
223extracted=(converted||propertyValue).toString().match(CSS.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}
224if((!IE||IE>8)&&extracted.split(" ").length===3){extracted+=" 1"}
225return extracted;case "inject":if(/^rgb/.test(propertyValue)){return propertyValue}
226if(IE<=8){if(propertyValue.split(" ").length===4){propertyValue=propertyValue.split(/\s+/).slice(0,3).join(" ")}}else if(propertyValue.split(" ").length===3){propertyValue+=" 1"}
227return(IE<=8?"rgb":"rgba")+"("+propertyValue.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}})()}
228function augmentDimension(name,element,wantInner){var isBorderBox=CSS.getPropertyValue(element,"boxSizing").toString().toLowerCase()==="border-box";if(isBorderBox===(wantInner||!1)){var i,value,augment=0,sides=name==="width"?["Left","Right"]:["Top","Bottom"],fields=["padding"+sides[0],"padding"+sides[1],"border"+sides[0]+"Width","border"+sides[1]+"Width"];for(i=0;i<fields.length;i++){value=parseFloat(CSS.getPropertyValue(element,fields[i]));if(!isNaN(value)){augment+=value}}
229return wantInner?-augment:augment}
230return 0}
231function getDimension(name,wantInner){return function(type,element,propertyValue){switch(type){case "name":return name;case "extract":return parseFloat(propertyValue)+augmentDimension(name,element,wantInner);case "inject":return(parseFloat(propertyValue)-augmentDimension(name,element,wantInner))+"px"}}}
232CSS.Normalizations.registered.innerWidth=getDimension("width",!0);CSS.Normalizations.registered.innerHeight=getDimension("height",!0);CSS.Normalizations.registered.outerWidth=getDimension("width");CSS.Normalizations.registered.outerHeight=getDimension("height")}},Names:{camelCase:function(property){return property.replace(/-(\w)/g,function(match,subMatch){return subMatch.toUpperCase()})},SVGAttribute:function(property){var SVGAttributes="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";if(IE||(Velocity.State.isAndroid&&!Velocity.State.isChrome)){SVGAttributes+="|transform"}
233return new RegExp("^("+SVGAttributes+")$","i").test(property)},prefixCheck:function(property){if(Velocity.State.prefixMatches[property]){return[Velocity.State.prefixMatches[property],!0]}else{var vendors=["","Webkit","Moz","ms","O"];for(var i=0,vendorsLength=vendors.length;i<vendorsLength;i++){var propertyPrefixed;if(i===0){propertyPrefixed=property}else{propertyPrefixed=vendors[i]+property.replace(/^\w/,function(match){return match.toUpperCase()})}
234if(Type.isString(Velocity.State.prefixElement.style[propertyPrefixed])){Velocity.State.prefixMatches[property]=propertyPrefixed;return[propertyPrefixed,!0]}}
235return[property,!1]}}},Values:{hexToRgb:function(hex){var shortformRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,longformRegex=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgbParts;hex=hex.replace(shortformRegex,function(m,r,g,b){return r+r+g+g+b+b});rgbParts=longformRegex.exec(hex);return rgbParts?[parseInt(rgbParts[1],16),parseInt(rgbParts[2],16),parseInt(rgbParts[3],16)]:[0,0,0]},isCSSNullValue:function(value){return(!value||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(value))},getUnitType:function(property){if(/^(rotate|skew)/i.test(property)){return"deg"}else if(/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(property)){return""}else{return"px"}},getDisplayType:function(element){var tagName=element&&element.tagName.toString().toLowerCase();if(/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(tagName)){return"inline"}else if(/^(li)$/i.test(tagName)){return"list-item"}else if(/^(tr)$/i.test(tagName)){return"table-row"}else if(/^(table)$/i.test(tagName)){return"table"}else if(/^(tbody)$/i.test(tagName)){return"table-row-group"}else{return"block"}},addClass:function(element,className){if(element){if(element.classList){element.classList.add(className)}else if(Type.isString(element.className)){element.className+=(element.className.length?" ":"")+className}else{var currentClass=element.getAttribute(IE<=7?"className":"class")||"";element.setAttribute("class",currentClass+(currentClass?" ":"")+className)}}},removeClass:function(element,className){if(element){if(element.classList){element.classList.remove(className)}else if(Type.isString(element.className)){element.className=element.className.toString().replace(new RegExp("(^|\\s)"+className.split(" ").join("|")+"(\\s|$)","gi")," ")}else{var currentClass=element.getAttribute(IE<=7?"className":"class")||"";element.setAttribute("class",currentClass.replace(new RegExp("(^|\s)"+className.split(" ").join("|")+"(\s|$)","gi")," "))}}}},getPropertyValue:function(element,property,rootPropertyValue,forceStyleLookup){function computePropertyValue(element,property){var computedValue=0;if(IE<=8){computedValue=$.css(element,property)}else{var toggleDisplay=!1;
235if(/^(width|height)$/.test(property)&&CSS.getPropertyValue(element,"display")===0){toggleDisplay=!0;CSS.setPropertyValue(element,"display",CSS.Values.getDisplayType(element))}
236var revertDisplay=function(){if(toggleDisplay){CSS.setPropertyValue(element,"display","none")}};if(!forceStyleLookup){if(property==="height"&&CSS.getPropertyValue(element,"boxSizing").toString().toLowerCase()!=="border-box"){var contentBoxHeight=element.offsetHeight-(parseFloat(CSS.getPropertyValue(element,"borderTopWidth"))||0)-(parseFloat(CSS.getPropertyValue(element,"borderBottomWidth"))||0)-(parseFloat(CSS.getPropertyValue(element,"paddingTop"))||0)-(parseFloat(CSS.getPropertyValue(element,"paddingBottom"))||0);revertDisplay();return contentBoxHeight}else if(property==="width"&&CSS.getPropertyValue(element,"boxSizing").toString().toLowerCase()!=="border-box"){var contentBoxWidth=element.offsetWidth-(parseFloat(CSS.getPropertyValue(element,"borderLeftWidth"))||0)-(parseFloat(CSS.getPropertyValue(element,"borderRightWidth"))||0)-(parseFloat(CSS.getPropertyValue(element,"paddingLeft"))||0)-(parseFloat(CSS.getPropertyValue(element,"paddingRight"))||0);revertDisplay();return contentBoxWidth}}
237var computedStyle;if(Data(element)===undefined){computedStyle=window.getComputedStyle(element,null)}else if(!Data(element).computedStyle){computedStyle=Data(element).computedStyle=window.getComputedStyle(element,null)}else{computedStyle=Data(element).computedStyle}
238if(property==="borderColor"){property="borderTopColor"}
239if(IE===9&&property==="filter"){computedValue=computedStyle.getPropertyValue(property)}else{computedValue=computedStyle[property]}
240if(computedValue===""||computedValue===null){computedValue=element.style[property]}
241revertDisplay()}
242if(computedValue==="auto"&&/^(top|right|bottom|left)$/i.test(property)){var position=computePropertyValue(element,"position");if(position==="fixed"||(position==="absolute"&&/top|left/i.test(property))){computedValue=$(element).position()[property]+"px"}}
243return computedValue}
244var propertyValue;if(CSS.Hooks.registered[property]){var hook=property,hookRoot=CSS.Hooks.getRoot(hook);if(rootPropertyValue===undefined){rootPropertyValue=CSS.getPropertyValue(element,CSS.Names.prefixCheck(hookRoot)[0])}
245if(CSS.Normalizations.registered[hookRoot]){rootPropertyValue=CSS.Normalizations.registered[hookRoot]("extract",element,rootPropertyValue)}
246propertyValue=CSS.Hooks.extractValue(hook,rootPropertyValue)}else if(CSS.Normalizations.registered[property]){var normalizedPropertyName,normalizedPropertyValue;normalizedPropertyName=CSS.Normalizations.registered[property]("name",element);if(normalizedPropertyName!=="transform"){normalizedPropertyValue=computePropertyValue(element,CSS.Names.prefixCheck(normalizedPropertyName)[0]);if(CSS.Values.isCSSNullValue(normalizedPropertyValue)&&CSS.Hooks.templates[property]){normalizedPropertyValue=CSS.Hooks.templates[property][1]}}
247propertyValue=CSS.Normalizations.registered[property]("extract",element,normalizedPropertyValue)}
248if(!/^[\d-]/.test(propertyValue)){var data=Data(element);if(data&&data.isSVG&&CSS.Names.SVGAttribute(property)){if(/^(height|width)$/i.test(property)){try{propertyValue=element.getBBox()[property]}catch(error){propertyValue=0}}else{propertyValue=element.getAttribute(property)}}else{propertyValue=computePropertyValue(element,CSS.Names.prefixCheck(property)[0])}}
249if(CSS.Values.isCSSNullValue(propertyValue)){propertyValue=0}
250if(Velocity.debug>=2){console.log("Get "+property+": "+propertyValue)}
251return propertyValue},setPropertyValue:function(element,property,propertyValue,rootPropertyValue,scrollData){var propertyName=property;if(property==="scroll"){if(scrollData.container){scrollData.container["scroll"+scrollData.direction]=propertyValue}else{if(scrollData.direction==="Left"){window.scrollTo(propertyValue,scrollData.alternateValue)}else{window.scrollTo(scrollData.alternateValue,propertyValue)}}}else{if(CSS.Normalizations.registered[property]&&CSS.Normalizations.registered[property]("name",element)==="transform"){CSS.Normalizations.registered[property]("inject",element,propertyValue);propertyName="transform";propertyValue=Data(element).transformCache[property]}else{if(CSS.Hooks.registered[property]){var hookName=property,hookRoot=CSS.Hooks.getRoot(property);rootPropertyValue=rootPropertyValue||CSS.getPropertyValue(element,hookRoot);
251propertyValue=CSS.Hooks.injectValue(hookName,propertyValue,rootPropertyValue);property=hookRoot}
252if(CSS.Normalizations.registered[property]){propertyValue=CSS.Normalizations.registered[property]("inject",element,propertyValue);property=CSS.Normalizations.registered[property]("name",element)}
253propertyName=CSS.Names.prefixCheck(property)[0];if(IE<=8){try{element.style[propertyName]=propertyValue}catch(error){if(Velocity.debug){console.log("Browser does not support ["+propertyValue+"] for ["+propertyName+"]")}}}else{var data=Data(element);if(data&&data.isSVG&&CSS.Names.SVGAttribute(property)){element.setAttribute(property,propertyValue)}else{element.style[propertyName]=propertyValue}}
254if(Velocity.debug>=2){console.log("Set "+property+" ("+propertyName+"): "+propertyValue)}}}
255return[propertyName,propertyValue]},flushTransformCache:function(element){var transformString="",data=Data(element);if((IE||(Velocity.State.isAndroid&&!Velocity.State.isChrome))&&data&&data.isSVG){var getTransformFloat=function(transformProperty){return parseFloat(CSS.getPropertyValue(element,transformProperty))};var SVGTransforms={translate:[getTransformFloat("translateX"),getTransformFloat("translateY")],skewX:[getTransformFloat("skewX")],skewY:[getTransformFloat("skewY")],scale:getTransformFloat("scale")!==1?[getTransformFloat("scale"),getTransformFloat("scale")]:[getTransformFloat("scaleX"),getTransformFloat("scaleY")],rotate:[getTransformFloat("rotateZ"),0,0]};$.each(Data(element).transformCache,function(transformName){if(/^translate/i.test(transformName)){transformName="translate"}else if(/^scale/i.test(transformName)){transformName="scale"}else if(/^rotate/i.test(transformName)){transformName="rotate"}
256if(SVGTransforms[transformName]){transformString+=transformName+"("+SVGTransforms[transformName].join(" ")+")"+" ";delete SVGTransforms[transformName]}})}else{var transformValue,perspective;$.each(Data(element).transformCache,function(transformName){transformValue=Data(element).transformCache[transformName];if(transformName==="transformPerspective"){perspective=transformValue;return!0}
257if(IE===9&&transformName==="rotateZ"){transformName="rotate"}
258transformString+=transformName+transformValue+" "});if(perspective){transformString="perspective"+perspective+" "+transformString}}
259CSS.setPropertyValue(element,"transform",transformString)}};CSS.Hooks.register();CSS.Normalizations.register();Velocity.hook=function(elements,arg2,arg3){var value;elements=sanitizeElements(elements);$.each(elements,function(i,element){if(Data(element)===undefined){Velocity.init(element)}
260if(arg3===undefined){if(value===undefined){value=CSS.getPropertyValue(element,arg2)}}else{var adjustedSet=CSS.setPropertyValue(element,arg2,arg3);if(adjustedSet[0]==="transform"){Velocity.CSS.flushTransformCache(element)}
261value=adjustedSet}});return value};var animate=function(){var opts;function getChain(){if(isUtility){return promiseData.promise||null}else{return elementsWrapped}}
262var syntacticSugar=(arguments[0]&&(arguments[0].p||(($.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names)||Type.isString(arguments[0].properties)))),isUtility,elementsWrapped,argumentIndex;var elements,propertiesMap,options;if(Type.isWrapped(this)){isUtility=!1;argumentIndex=0;elements=this;elementsWrapped=this}else{isUtility=!0;argumentIndex=1;elements=syntacticSugar?(arguments[0].elements||arguments[0].e):arguments[0]}
263var promiseData={promise:null,resolver:null,rejecter:null};if(isUtility&&Velocity.Promise){promiseData.promise=new Velocity.Promise(function(resolve,reject){promiseData.resolver=resolve;promiseData.rejecter=reject})}
264if(syntacticSugar){propertiesMap=arguments[0].properties||arguments[0].p;options=arguments[0].options||arguments[0].o}else{propertiesMap=arguments[argumentIndex];options=arguments[argumentIndex+1]}
265elements=sanitizeElements(elements);if(!elements){if(promiseData.promise){if(!propertiesMap||!options||options.promiseRe
265jectEmpty!==!1){promiseData.rejecter()}else{promiseData.resolver()}}
266return}
267var elementsLength=elements.length,elementsIndex=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(propertiesMap)&&!$.isPlainObject(options)){var startingArgumentPosition=argumentIndex+1;options={};for(var i=startingArgumentPosition;i<arguments.length;i++){if(!Type.isArray(arguments[i])&&(/^(fast|normal|slow)$/i.test(arguments[i])||/^\d/.test(arguments[i]))){options.duration=arguments[i]}else if(Type.isString(arguments[i])||Type.isArray(arguments[i])){options.easing=arguments[i]}else if(Type.isFunction(arguments[i])){options.complete=arguments[i]}}}
268var action;switch(propertiesMap){case "scroll":action="scroll";break;case "reverse":action="reverse";break;case "pause":var currentTime=(new Date()).getTime();$.each(elements,function(i,element){pauseDelayOnElement(element,currentTime)});$.each(Velocity.State.calls,function(i,activeCall){var found=!1;if(activeCall){$.each(activeCall[1],function(k,activeElement){var queueName=(options===undefined)?"":options;if(queueName!==!0&&(activeCall[2].queue!==queueName)&&!(options===undefined&&activeCall[2].queue===!1)){return!0}
269$.each(elements,function(l,element){if(element===activeElement){activeCall[5]={resume:!1};found=!0;return!1}});if(found){return!1}})}});return getChain();case "resume":$.each(elements,function(i,element){resumeDelayOnElement(element,currentTime)});$.each(Velocity.State.calls,function(i,activeCall){var found=!1;if(activeCall){$.each(activeCall[1],function(k,activeElement){var queueName=(options===undefined)?"":options;if(queueName!==!0&&(activeCall[2].queue!==queueName)&&!(options===undefined&&activeCall[2].queue===!1)){return!0}
270if(!activeCall[5]){return!0}
271$.each(elements,function(l,element){if(element===activeElement){activeCall[5].resume=!0;found=!0;return!1}});if(found){return!1}})}});return getChain();case "finish":case "finishAll":case "stop":$.each(elements,function(i,element){if(Data(element)&&Data(element).delayTimer){clearTimeout(Data(element).delayTimer.setTimeout);if(Data(element).delayTimer.next){Data(element).delayTimer.next()}
272delete Data(element).delayTimer}
273if(propertiesMap==="finishAll"&&(options===!0||Type.isString(options))){$.each($.queue(element,Type.isString(options)?options:""),function(_,item){if(Type.isFunction(item)){item()}});$.queue(element,Type.isString(options)?options:"",[])}});var callsToStop=[];$.each(Velocity.State.calls,function(i,activeCall){if(activeCall){$.each(activeCall[1],function(k,activeElement){var queueName=(options===undefined)?"":options;if(queueName!==!0&&(activeCall[2].queue!==queueName)&&!(options===undefined&&activeCall[2].queue===!1)){return!0}
274$.each(elements,function(l,element){if(element===activeElement){if(options===!0||Type.isString(options)){$.each($.queue(element,Type.isString(options)?options:""),function(_,item){if(Type.isFunction(item)){item(null,!0)}});$.queue(element,Type.isString(options)?options:"",[])}
275if(propertiesMap==="stop"){var data=Data(element);if(data&&data.tweensContainer&&(queueName===!0||queueName==="")){$.each(data.tweensContainer,function(m,activeTween){activeTween.endValue=activeTween.currentValue})}
276callsToStop.push(i)}else if(propertiesMap==="finish"||propertiesMap==="finishAll"){activeCall[2].duration=1}}})})}});if(propertiesMap==="stop"){$.each(callsToStop,function(i,j){completeCall(j,!0)});if(promiseData.promise){promiseData.resolver(elements)}}
277return getChain();default:if($.isPlainObject(propertiesMap)&&!Type.isEmptyObject(propertiesMap)){action="start"}else if(Type.isString(propertiesMap)&&Velocity.Redirects[propertiesMap]){opts=$.extend({},options);var durationOriginal=opts.duration,delayOriginal=opts.delay||0;if(opts.backwards===!0){elements=$.extend(!0,[],elements).reverse()}
278$.each(elements,function(elementIndex,element){if(parseFloat(opts.stagger)){opts.delay=delayOriginal+(parseFloat(opts.stagger)*elementIndex)}else if(Type.isFunction(opts.stagger)){opts.delay=delayOriginal+opts.stagger.call(element,elementIndex,elementsLength)}
279if(opts.drag){opts.duration=parseFloat(durationOriginal)||(/^(callout|transition)/.test(propertiesMap)?1000:DURATION_DEFAULT);opts.duration=Math.max(opts.duration*(opts.backwards?1-elementIndex/elementsLength:(elementIndex+1)/elementsLength),opts.duration*0.75,200)}
280Velocity.Redirects[propertiesMap].call(element,element,opts||{},elementIndex,elementsLength,elements,promiseData.promise?promiseData:undefined)});return getChain()}else{var abortError="Velocity: First argument ("+propertiesMap+") was not a property map, a known action, or a registered redirect. Aborting.";if(promiseData.promise){promiseData.rejecter(new Error(abortError))}else if(window.console){console.log(abortError)}
281return getChain()}}
282var callUnitConversionData={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null};var call=[];function processElement(element,elementArrayIndex){var
283opts=$.extend({},Velocity.defaults,options),tweensContainer={},elementUnitConversionData;if(Data(element)===undefined){Velocity.init(element)}
284if(parseFloat(opts.delay)&&opts.queue!==!1){$.queue(element,opts.queue,function(next,clearQueue){if(clearQueue===!0){return!0}
285Velocity.velocityQueueEntryFlag=!0;var callIndex=Velocity.State.delayedElements.count++;Velocity.State.delayedElements[callIndex]=element;var delayComplete=(function(index){return function(){Velocity.State.delayedElements[index]=!1;next()}})(callIndex);Data(element).delayBegin=(new Date()).getTime();Data(element).delay=parseFloat(opts.delay);
285Data(element).delayTimer={setTimeout:setTimeout(next,parseFloat(opts.delay)),next:delayComplete}})}
286switch(opts.duration.toString().toLowerCase()){case "fast":opts.duration=200;break;case "normal":opts.duration=DURATION_DEFAULT;break;case "slow":opts.duration=600;break;default:opts.duration=parseFloat(opts.duration)||1}
287if(Velocity.mock!==!1){if(Velocity.mock===!0){opts.duration=opts.delay=1}else{opts.duration*=parseFloat(Velocity.mock)||1;opts.delay*=parseFloat(Velocity.mock)||1}}
288opts.easing=getEasing(opts.easing,opts.duration);if(opts.begin&&!Type.isFunction(opts.begin)){opts.begin=null}
289if(opts.progress&&!Type.isFunction(opts.progress)){opts.progress=null}
290if(opts.complete&&!Type.isFunction(opts.complete)){opts.complete=null}
291if(opts.display!==undefined&&opts.display!==null){opts.display=opts.display.toString().toLowerCase();if(opts.display==="auto"){opts.display=Velocity.CSS.Values.getDisplayType(element)}}
292if(opts.visibility!==undefined&&opts.visibility!==null){opts.visibility=opts.visibility.toString().toLowerCase()}
293opts.mobileHA=(opts.mobileHA&&Velocity.State.isMobile&&!Velocity.State.isGingerbread);function buildQueue(next){var data,lastTweensContainer;if(opts.begin&&elementsIndex===0){try{opts.begin.call(elements,elements)}catch(error){setTimeout(function(){throw error},1)}}
294if(action==="scroll"){var scrollDirection=(/^x$/i.test(opts.axis)?"Left":"Top"),scrollOffset=parseFloat(opts.offset)||0,scrollPositionCurrent,scrollPositionCurrentAlternate,scrollPositionEnd;if(opts.container){if(Type.isWrapped(opts.container)||Type.isNode(opts.container)){opts.container=opts.container[0]||opts.container;scrollPositionCurrent=opts.container["scroll"+scrollDirection];scrollPositionEnd=(scrollPositionCurrent+$(element).position()[scrollDirection.toLowerCase()])+scrollOffset}else{opts.container=null}}else{scrollPositionCurrent=Velocity.State.scrollAnchor[Velocity.State["scrollProperty"+scrollDirection]];scrollPositionCurrentAlternate=Velocity.State.scrollAnchor[Velocity.State["scrollProperty"+(scrollDirection==="Left"?"Top":"Left")]];scrollPositionEnd=$(element).offset()[scrollDirection.toLowerCase()]+scrollOffset}
295tweensContainer={scroll:{rootPropertyValue:!1,startValue:scrollPositionCurrent,currentValue:scrollPositionCurrent,endValue:scrollPositionEnd,unitType:"",easing:opts.easing,scrollData:{container:opts.container,direction:scrollDirection,alternateValue:scrollPositionCurrentAlternate}},element:element};if(Velocity.debug){console.log("tweensContainer (scroll): ",tweensContainer.scroll,element)}}else if(action==="reverse"){data=Data(element);if(!data){return}
296if(!data.tweensContainer){$.dequeue(element,opts.queue);return}else{if(data.opts.display==="none"){data.opts.display="auto"}
297if(data.opts.visibility==="hidden"){data.opts.visibility="visible"}
298data.opts.loop=!1;data.opts.begin=null;data.opts.complete=null;if(!options.easing){delete opts.easing}
299if(!options.duration){delete opts.duration}
300opts=$.extend({},data.opts,opts);lastTweensContainer=$.extend(!0,{},data?data.tweensContainer:null);for(var lastTween in lastTweensContainer){if(lastTweensContainer.hasOwnProperty(lastTween)&&lastTween!=="element"){var lastStartValue=lastTweensContainer[lastTween].startValue;lastTweensContainer[lastTween].startValue=lastTweensContainer[lastTween].currentValue=lastTweensContainer[lastTween].endValue;lastTweensContainer[lastTween].endValue=lastStartValue;if(!Type.isEmptyObject(options)){lastTweensContainer[lastTween].easing=opts.easing}
301if(Velocity.debug){console.log("reverse tweensContainer ("+lastTween+"): "+JSON.stringify(lastTweensContainer[lastTween]),element)}}}
302tweensContainer=lastTweensContainer}}else if(action==="start"){data=Data(element);if(data&&data.tweensContainer&&data.isAnimating===!0){lastTweensContainer=data.tweensContainer}
303var parsePropertyValue=function(valueData,skipResolvingEasing){var endValue,easing,startValue;if(Type.isFunction(valueData)){valueData=valueData.call(element,elementArrayIndex,elementsLength)}
304if(Type.isArray(valueData)){endValue=valueData[0];if((!Type.isArray(valueData[1])&&/^[\d-]/.test(valueData[1]))||Type.isFunction(valueData[1])||CSS.RegEx.isHex.test(valueData[1])){startValue=valueData[1]}else if((Type.isString(valueData[1])&&!CSS.RegEx.isHex.test(valueData[1])&&Velocity.Easings[valueData[1]])||Type.isArray(valueData[1])){easing=skip
304ResolvingEasing?valueData[1]:getEasing(valueData[1],opts.duration);startValue=valueData[2]}else{startValue=valueData[1]||valueData[2]}}else{endValue=valueData}
305if(!skipResolvingEasing){easing=easing||opts.easing}
306if(Type.isFunction(endValue)){endValue=endValue.call(element,elementArrayIndex,elementsLength)}
307if(Type.isFunction(startValue)){startValue=startValue.call(element,elementArrayIndex,elementsLength)}
308return[endValue||0,easing,startValue]};var fixPropertyValue=function(property,valueData){var rootProperty=CSS.Hooks.getRoot(property),rootPropertyValue=!1,endValue=valueData[0],easing=valueData[1],startValue=valueData[2],pattern;if((!data||!data.isSVG)&&rootProperty!=="tween"&&CSS.Names.prefixCheck(rootProperty)[1]===!1&&CSS.Normalizations.registered[rootProperty]===undefined){if(Velocity.debug){console.log("Skipping ["+rootProperty+"] due to a lack of browser support.")}
309return}
310if(((opts.display!==undefined&&opts.display!==null&&opts.display!=="none")||(opts.visibility!==undefined&&opts.visibility!=="hidden"))&&/opacity|filter/.test(property)&&!startValue&&endValue!==0){startValue=0}
311if(opts._cacheValues&&lastTweensContainer&&lastTweensContainer[property]){if(startValue===undefined){startValue=lastTweensContainer[property].endValue+lastTweensContainer[property].unitType}
312rootPropertyValue=data.rootPropertyValueCache[rootProperty]}else{if(CSS.Hooks.registered[property]){if(startValue===undefined){rootPropertyValue=CSS.getPropertyValue(element,rootProperty);startValue=CSS.getPropertyValue(element,property,rootPropertyValue)}else{rootPropertyValue=CSS.Hooks.templates[rootProperty][1]}}else if(startValue===undefined){startValue=CSS.getPropertyValue(element,property)}}
313var separatedValue,endValueUnitType,startValueUnitType,operator=!1;var separateValue=function(property,value){var unitType,numericValue;numericValue=(value||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(match){unitType=match;return""});if(!unitType){unitType=CSS.Values.getUnitType(property)}
314return[numericValue,unitType]};if(startValue!==endValue&&Type.isString(startValue)&&Type.isString(endValue)){pattern="";var iStart=0,iEnd=0,aStart=[],aEnd=[],inCalc=0,inRGB=0,inRGBA=0;startValue=CSS.Hooks.fixColors(startValue);endValue=CSS.Hooks.fixColors(endValue);while(iStart<startValue.length&&iEnd<endValue.length){var cStart=startValue[iStart],cEnd=endValue[iEnd];if(/[\d\.-]/.test(cStart)&&/[\d\.-]/.test(cEnd)){var tStart=cStart,tEnd=cEnd,dotStart=".",dotEnd=".";while(++iStart<startValue.length){cStart=startValue[iStart];if(cStart===dotStart){dotStart=".."}else if(!/\d/.test(cStart)){break}
315tStart+=cStart}
316while(++iEnd<endValue.length){cEnd=endValue[iEnd];if(cEnd===dotEnd){dotEnd=".."}else if(!/\d/.test(cEnd)){break}
317tEnd+=cEnd}
318var uStart=CSS.Hooks.getUnit(startValue,iStart),uEnd=CSS.Hooks.getUnit(endValue,iEnd);iStart+=uStart.length;iEnd+=uEnd.length;if(uStart===uEnd){if(tStart===tEnd){pattern+=tStart+uStart}else{pattern+="{"+aStart.length+(inRGB?"!":"")+"}"+uStart;aStart.push(parseFloat(tStart));aEnd.push(parseFloat(tEnd))}}else{var nStart=parseFloat(tStart),nEnd=parseFloat(tEnd);pattern+=(inCalc<5?"calc":"")+"("+(nStart?"{"+aStart.length+(inRGB?"!":"")+"}":"0")+uStart+" + "+(nEnd?"{"+(aStart.length+(nStart?1:0))+(inRGB?"!":"")+"}":"0")+uEnd+")";if(nStart){aStart.push(nStart);aEnd.push(0)}
319if(nEnd){aStart.push(0);aEnd.push(nEnd)}}}else if(cStart===cEnd){pattern+=cStart;iStart++;iEnd++;if(inCalc===0&&cStart==="c"||inCalc===1&&cStart==="a"||inCalc===2&&cStart==="l"||inCalc===3&&cStart==="c"||inCalc>=4&&cStart==="("){inCalc++}else if((inCalc&&inCalc<5)||inCalc>=4&&cStart===")"&&--inCalc<5){inCalc=0}
320if(inRGB===0&&cStart==="r"||inRGB===1&&cStart==="g"||inRGB===2&&cStart==="b"||inRGB===3&&cStart==="a"||inRGB>=3&&cStart==="("){if(inRGB===3&&cStart==="a"){inRGBA=1}
321inRGB++}else if(inRGBA&&cStart===","){if(++inRGBA>3){inRGB=inRGBA=0}}else if((inRGBA&&inRGB<(inRGBA?5:4))||inRGB>=(inRGBA?4:3)&&cStart===")"&&--inRGB<(inRGBA?5:4)){inRGB=inRGBA=0}}else{inCalc=0;break}}
322if(iStart!==startValue.length||iEnd!==endValue.length){if(Velocity.debug){console.error("Trying to pattern match mis-matched strings [\""+endValue+"\", \""+startValue+"\"]")}
323pattern=undefined}
324if(pattern){if(aStart.length){if(Velocity.debug){console.log("Pattern found \""+pattern+"\" -> ",aStart,aEnd,"["+startValue+","+endValue+"]")}
325startValue=aStart;endValue=aEnd;endValueUnitType=startValueUnitType=""}else{pattern=undefined}}}
326if(!pattern){separatedValue=separateValue(property,startValue);startValue=separatedValue[0];startValueUnitType=separatedValue[1];separatedValue=separateValue(property,endValue);endValue=separatedValue[0].replace(/^([+-\/*])=/,function(match,subMatch){operator=subMatch;return""});endValueUnitType=separatedValue[1];startValue=parseFloat(startValue)||0;endValue=parseFloat(endValue)||0;if(endValueUnitType==="%"){if(/^(fontSize|lineHeight)$/.test(property)){endValue=endValue/100;endValueUnitType="em"}else if(/^scale/.test(property)){endValue=endValue/100;endValueUnitType=""}else if(/(Red|Green|Blue)$/i.test(property)){endValue=(endValue/100)*255;endValueUnitType=""}}}
327var calculateUnitRatios=function(){var sameRatioIndicators={myParent:element.parentNode||document.body,position:CSS.getPropertyValue(element,"position"),fontSize:CSS.getPropertyValue(element,"fontSize")},samePercentRatio=((sameRatioIndicators.position===callUnitConversionData.lastPosition)&&(sameRatioIndicators.myParent===callUnitConversionData.lastParent)),sameEmRatio=(sameRatioIndicators.fontSize===callUnitConversionData.lastFontSize);callUnitConversionData.lastParent=sameRatioIndicators.myParent;callUnitConversionData.lastPosition=sameRatioIndicators.position;callUnitConversionData.lastFontSize=sameRatioIndicators.fontSize;var measurement=100,unitRatios={};if(!sameEmRatio||!samePercentRatio){var dummy=data&&data.isSVG?document.createElementNS("http://www.w3.org/2000/svg","rect"):document.createElement("div");Velocity.init(dummy);sameRatioIndicators.myParent.appendChild(dummy);$.each(["overflow","overflowX","overflowY"],function(i,property){Velocity.CSS.setPropertyValue(dummy,property,"hidden")});Velocity.CSS.setPropertyValue(dummy,"position",sameRatioIndicators.position);Velocity.CSS.setPropertyValue(dummy,"fontSize",sameRatioIndicators.fontSize);Velocity.CSS.setPropertyValue(dummy,"boxSizing","content-box");$.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(i,property){Velocity.CSS.setPropertyValue(dummy,property,measurement+"%")});Velocity.CSS.setPropertyValue(dummy,"paddingLeft",measurement+"em");unitRatios.percentToPxWidth=callUnitConversionData.lastPercentToPxWidth=(parseFloat(CSS.getPropertyValue(dummy,"width",null,!0))||1)/measurement;unitRatios.percentToPxHeight=callUnitConversionData.lastPercentToPxHeight=(parseFloat(CSS.getPropertyValue(dummy,"height",null,!0))||1)/measurement;unitRatios.emToPx=callUnitConversionData.lastEmToPx=(parseFloat(CSS.getPropertyValue(dummy,"paddingLeft"))||1)/measurement;sameRatioIndicators.myParent.removeChild(dummy)}else{unitRatios.emToPx=callUnitConversionData.lastEmToPx;unitRatios.percentToPxWidth=callUnitConversionData.lastPercentToPxWidth;unitRatios.percentToPxHeight=callUnitConversionData.lastPercentToPxHeight}
328if(callUnitConversionData.remToPx===null){callUnitConversionData.remToPx=parseFloat(CSS.getPropertyValue(document.body,"fontSize"))||16}
329if(callUnitConversionData.vwToPx===null){callUnitConversionData.vwToPx=parseFloat(window.innerWidth)/100;callUnitConversionData.vhToPx=parseFloat(window.innerHeight)/100}
330unitRatios.remToPx=callUnitConversionData.remToPx;unitRatios.vwToPx=callUnitConversionData.vwToPx;unitRatios.vhToPx=callUnitConversionData.vhToPx;if(Velocity.debug>=1){console.log("Unit ratios: "+JSON.stringify(unitRatios),element)}
331return unitRatios};if(/[\/*]/.test(operator)){endValueUnitType=startValueUnitType}else if((startValueUnitType!==endValueUnitType)&&startValue!==0){if(endValue===0){endValueUnitType=startValueUnitType}else{elementUnitConversionData=elementUnitConversionData||calculateUnitRatios();var axis=(/margin|padding|left|right|width|text|word|letter/i.test(property)||/X$/.test(property)||property==="x")?"x":"y";switch(startValueUnitType){case "%":startValue*=(axis==="x"?elementUnitConversionData.percentToPxWidth:elementUnitConversionData.percentToPxHeight);break;case "px":break;default:startValue*=elementUnitConversionData[startValueUnitType+"ToPx"]}
332switch(endValueUnitType){case "%":startValue*=1/(axis==="x"?elementUnitConversionData.percentToPxWidth:elementUnitConversionData.percentToPxHeight);break;case "px":break;default:startValue*=1/elementUnitConversionData[endValueUnitType+"ToPx"]}}}
333switch(operator){case "+":endValue=startValue+endValue;break;case "-":endValue=startValue-endValue;break;case "*":endValue=startValue*endValue;break;case "/":endValue=startValue/endValue;break}
334tweensContainer[property]={rootPropertyValue:rootPropertyValue,startValue:startValue,currentValue:startValue,endValue:endValue,unitType:endValueUnitType,easing:easing};if(pattern){tweensContainer[property].pattern=pattern}
335if(Velocity.debug){console.log("tweensContainer ("+property+"): "+JSON.stringify(tweensContainer[property]),element)}};for(var property in propertiesMap){if(!propertiesMap.hasOwnProperty(property)){continue}
336var propertyName=CSS.Names.camelCase(property),valueData=parsePropertyValue(propertiesMap[property]);if(_inArray(CSS.Lists.colors,propertyName)){var endValue=valueData[0],easing=valueData[1],startValue=valueData[2];if(CSS.RegEx.isHex.test(endValue)){var colorComponents=["Red","Green","Blue"],endValueRGB=CSS.Values.hexToRgb(endValue),startValueRGB=startValue?CSS.Values.hexToRgb(startValue):undefined;for(var i=0;i<colorComponents.length;i++){var dataArray=[endValueRGB[i]];if(easing){dataArray.push(easing)}
337if(startValueRGB!==undefined){dataArray.push(startValueRGB[i])}
338fixPropertyValue(propertyName+colorComponents[i],dataArray)}
339continue}}
340fixPropertyValue(propertyName,valueData)}
341tweensContainer.element=element}
342if(tweensContainer.element){CSS.Values.addClass(element,"velocity-animating");call.push(tweensContainer);data=Data(element);if(data){if(opts.queue===""){data.tweensContainer=tweensContainer;data.opts=opts}
343data.isAnimating=!0}
344if(elementsIndex===elementsLength-1){Velocity.State.calls.push([call,elements,opts,null,promiseData.resolver,null,0]);if(Velocity.State.isTicking===!1){Velocity.State.isTicking=!0;tick()}}else{elementsIndex++}}}
345if(opts.queue===!1){if(opts.delay){var callIndex=Velocity.State.delayedElements.count++;Velocity.State.delayedElements[callIndex]=element;var delayComplete=(function(index){return function(){Velocity.State.delayedElements[index]=!1;buildQueue()}})(callIndex);Data(element).delayBegin=(new Date()).getTime();Data(element).delay=parseFloat(opts.delay);Data(element).delayTimer={setTimeout:setTimeout(buildQueue,parseFloat(opts.delay)),next:delayComplete}}else{buildQueue()}}else{$.queue(element,opts.queue,function(next,clearQueue){if(clearQueue===!0){if(promiseData.promise){promiseData.resolver(elements)}
346return!0}
347Velocity.velocityQueueEntryFlag=!0;buildQueue(next)})}
348if((opts.queue===""||opts.queue==="fx")&&$.queue(element)[0]!=="inprogress"){$.dequeue(element)}}
349$.each(elements,function(i,element){if(Type.isNode(element)){processElement(element,i)}});opts=$.extend({},Velocity.defaults,options);opts.loop=parseInt(opts.loop,10);var reverseCallsCount=(opts.loop*2)-1;if(opts.loop){for(var x=0;x<reverseCallsCount;x++){var reverseOptions={delay:opts.delay,progress:opts.progress};if(x===reverseCallsCount-1){reverseOptions.display=opts.display;reverseOptions.visibility=opts.visibility;reverseOptions.complete=opts.complete}
350animate(elements,"reverse",reverseOptions)}}
351return getChain()};Velocity=$.extend(animate,Velocity);Velocity.animate=animate;var ticker=window.requestAnimationFrame||rAFShim;if(!Velocity.State.isMobile&&document.hidden!==undefined){var updateTicker=function(){if(document.hidden){ticker=function(callback){return setTimeout(function(){callback(!0)},16)};tick()}else{ticker=window.requestAnimationFrame||rAFShim}};updateTicker();document.addEventListener("visibilitychange",updateTicker)}
352function tick(timestamp){if(timestamp){var timeCurrent=Velocity.timestamp&&timestamp!==!0?timestamp:performance.now();var callsLength=Velocity.State.calls.length;if(callsLength>10000){Velocity.State.calls=compactSparseArray(Velocity.State.calls);callsLength=Velocity.State.calls.length}
353for(var i=0;i<callsLength;i++){if(!Velocity.State.calls[i]){continue}
354var callContainer=Velocity.State.calls[i],call=callContainer[0],opts=callContainer[2],timeStart=callContainer[3],firstTick=!timeStart,tweenDummyValue=null,pauseObject=callContainer[5],millisecondsEllapsed=callContainer[6];if(!timeStart){timeStart=Velocity.State.calls[i][3]=timeCurrent-16}
355if(pauseObject){if(pauseObject.resume===!0){timeStart=callContainer[3]=Math.round(timeCurrent-millisecondsEllapsed-16);callContainer[5]=null}else{continue}}
356millisecondsEllapsed=callContainer[6]=timeCurrent-timeStart;var percentComplete=Math.min((millisecondsEllapsed)/opts.duration,1);for(var j=0,callLength=call.length;j<callLength;j++){var tweensContainer=call[j],element=tweensContainer.element;if(!Data(element)){continue}
357var transformPropertyExists=!1;if(opts.display!==undefined&&opts.display!==null&&opts.display!=="none"){if(opts.display==="flex"){var flexValues=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];$.each(flexValues,function(i,flexValue){CSS.setPropertyValue(element,"display",flexValue)})}
358CSS.setPropertyValue(element,"display",opts.display)}
359if(opts.visibility!==undefined&&opts.visibility!=="hidden"){CSS.setPropertyValue(element,"visibility",opts.visibility)}
360for(var property in tweensContainer){if(tweensContainer.hasOwnProperty(property)&&property!=="element"){var tween=tweensContainer[property],currentValue,easing=Type.isString(tween.easing)?Velocity.Easings[tween.easing]:tween.easing;if(Type.isString(tween.pattern)){var patternReplace=percentComplete===1?function($0,index,round){var result=tween.endValue[index];return round?Math.round(result):result}:function($0,index,round){var startValue=tween.startValue[index],tweenDelta=tween.endValue[index]-startValue,result=startValue+(tweenDelta*easing(percentComplete,opts,tweenDelta));return round?Math.round(result):result};currentValue=tween.pattern.replace(/{(\d+)(!)?}/g,patternReplace)}else if(percentComplete===1){currentValue=tween.endValue}else{var tweenDelta=tween.endValue-tween.startValue;currentValue=tween.startValue+(tweenDelta*easing(percentComplete,opts,tweenDelta))}
361if(!firstTick&&(currentValue===tween.currentValue)){continue}
362tween.currentValue=currentValue;if(property==="tween"){tweenDummyValue=currentValue}else{var hookRoot;if(CSS.Hooks.registered[property]){hookRoot=CSS.Hooks.getRoot(property);var rootPropertyValueCache=Data(element).rootPropertyValueCache[hookRoot];if(rootPropertyValueCache){tween.rootPropertyValue=rootPropertyValueCache}}
363var adjustedSetData=CSS.setPropertyValue(element,property,tween.currentValue+(IE<9&&parseFloat(currentValue)===0?"":tween.unitType),tween.rootPropertyValue,tween.scrollData);if(CSS.Hooks.registered[property]){if(CSS.Normalizations.registered[hookRoot]){Data(element).rootPropertyValueCache[hookRoot]=CSS.Normalizations.registered[hookRoot]("extract",null,adjustedSetData[1])}else{Data(element).rootPropertyValueCache[hookRoot]=adjustedSetData[1]}}
364if(adjustedSetData[0]==="transform"){transformPropertyExists=!0}}}}
365if(opts.mobileHA){if(Data(element).transformCache.translate3d===undefined){Data(element).transformCache.translate3d="(0px, 0px, 0px)";transformPropertyExists=!0}}
366if(transformPropertyExists){CSS.flushTransformCache(element)}}
367if(opts.display!==undefined&&opts.display!=="none"){Velocity.State.calls[i][2].display=!1}
368if(opts.visibility!==undefined&&opts.visibility!=="hidden"){Velocity.State.calls[i][2].visibility=!1}
369if(opts.progress){opts.progress.call(callContainer[1],callContainer[1],percentComplete,Math.max(0,(timeStart+opts.duration)-timeCurrent),timeStart,tweenDummyValue)}
370if(percentComplete===1){completeCall(i)}}}
371if(Velocity.State.isTicking){ticker(tick)}}
372function completeCall(callIndex,isStopped){if(!Velocity.State.calls[callIndex]){return!1}
373var call=Velocity.State.calls[callIndex][0],elements=Velocity.State.calls[callIndex][1],opts=Velocity.State.calls[callIndex][2],resolver=Velocity.State.calls[callIndex][4];var remainingCallsExist=!1;for(var i=0,callLength=call.length;i<callLength;i++){var element=call[i].element;if(!isStopped&&!opts.loop){if(opts.display==="none"){CSS.setPropertyValue(element,"display",opts.display)}
374if(opts.visibility==="hidden"){CSS.setPropertyValue(element,"visibility",opts.visibility)}}
375var data=Data(element);if(opts.loop!==!0&&($.queue(element)[1]===undefined||!/\.velocityQueueEntryFlag/i.test($.queue(element)[1]))){if(data){data.isAnimating=!1;data.rootPropertyValueCache={};var transformHAPropertyExists=!1;$.each(CSS.Lists.transforms3D,function(i,transformName){var defaultValue=/^scale/.test(transformName)?1:0,currentValue=data.transformCache[transformName];if(data.transformCache[transformName]!==undefined&&new RegExp("^\\("+defaultValue+"[^.]").test(currentValue)){transformHAPropertyExists=!0;delete data.transformCache[transformName]}});if(opts.mobileHA){transformHAPropertyExists=!0;delete data.transformCache.translate3d}
376if(transformHAPropertyExists){CSS.flushTransformCache(element)}
377CSS.Values.removeClass(element,"velocity-animating")}}
378if(!isStopped&&opts.complete&&!opts.loop&&(i===callLength-1)){try{opts.complete.call(elements,elements)}catch(error){setTimeout(function(){throw error},1)}}
379if(resolver&&opts.loop!==!0){resolver(elements)}
380if(data&&opts.loop===!0&&!isStopped){$.each(data.tweensContainer,function(propertyName,tweenContainer){if(/^rotate/.test(propertyName)&&((parseFloat(tweenContainer.startValue)-parseFloat(tweenContainer.endValue))%360===0)){var oldStartValue=tweenContainer.startValue;tweenContainer.startValue=tweenContainer.endValue;tweenContainer.endValue=oldStartValue}
381if(/^backgroundPosition/.test(propertyName)&&parseFloat(tweenContainer.endValue)===100&&tweenContainer.unitType==="%"){tweenContainer.endValue=0;tweenContainer.startValue=100}});Velocity(element,"reverse",{loop:!0,delay:opts.delay})}
382if(opts.queue!==!1){$.dequeue(element,opts.queue)}}
383Velocity.State.calls[callIndex]=!1;for(var j=0,callsLength=Velocity.State.calls.length;j<callsLength;j++){if(Velocity.State.calls[j]!==!1){remainingCallsExist=!0;break}}
384if(remainingCallsExist===!1){Velocity.State.isTicking=!1;delete Velocity.State.calls;Velocity.State.calls=[]}}
385global.Velocity=Velocity;if(global!==window){global.fn.velocity=animate;global.fn.velocity.defaults=Velocity.defaults}
386$.each(["Down","Up"],function(i,direction){Velocity.Redirects["slide"+direction]=function(element,options,elementsIndex,elementsSize,elements,promiseData){var opts=$.extend({},options),begin=opts.begin,complete=opts.complete,inlineValues={},computedValues={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};if(opts.display===undefined){opts.display=(direction==="Down"?(Velocity.CSS.Values.getDisplayType(element)==="inline"?"inline-block":"block"):"none")}
387opts.begin=function(){if(elementsIndex===0&&begin){begin.call(elements,elements)}
388for(var property in computedValues){if(!computedValues.hasOwnProperty(property)){continue}
389inlineValues[property]=element.style[property];var propertyValue=CSS.getPropertyValue(element,property);computedValues[property]=(direction==="Down")?[propertyValue,0]:[0,propertyValue]}
390inlineValues.overflow=element.style.overflow;element.style.overflow="hidden"};opts.complete=function(){for(var property in inlineValues){if(inlineValues.hasOwnProperty(property)){element.style[property]=inlineValues[property]}}
391if(elementsIndex===elementsSize-1){if(complete){complete.call(elements,elements)}
392if(promiseData){promiseData.resolver(elements)}}};Velocity(element,computedValues,opts)}});$.each(["In","Out"],function(i,direction){Velocity.Redirects["fade"+direction]=function(element,options,elementsIndex,elementsSize,elements,promiseData){var opts=$.extend({},options),complete=opts.complete,propertiesMap={opacity:(direction==="In")?1:0};if(elementsIndex!==0){opts.begin=null}
393if(elementsIndex!==elementsSize-1){opts.complete=null}else{opts.complete=function(){if(complete){complete.call(elements,elements)}
394if(promiseData){promiseData.resolver(elements)}}}
vendor: 3,927 bytes, lines 395-400
395if(opts.display===undefined){opts.display=(direction==="In"?"auto":"none")}
396Velocity(this,propertiesMap,opts)}});return Velocity}((window.jQuery||window.Zepto||window),window,(window?window.document:undefined))}));/**
397 * @license
398 * Lodash lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
399 */
400;(function(){function n(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function t(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function r(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&t(n[r],r,n)!==!1;);return n}function e(n,t){for(var r=null==n?0:n.length;r--&&t(n[r],r,n)!==!1;);return n}function u(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return!1;return!0}function i(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function o(n,t){return!!(null==n?0:n.length)&&y(n,t,0)>-1}function f(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return!0;return!1}function c(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function a(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function l(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);return r}function s(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function h(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}function p(n){return n.split("")}function _(n){return n.match(Dt)||[]}function v(n,t,r){var e;return r(n,function(n,r,u){if(t(n,r,u))return e=r,!1}),e}function g(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function y(n,t,r){return t===t?Z(n,t,r):g(n,b,r)}function d(n,t,r,e){for(var u=r-1,i=n.length;++u<i;)if(e(n[u],t))return u;return-1}function b(n){return n!==n}function w(n,t){var r=null==n?0:n.length;return r?k(n,t)/r:Un}function m(n){return function(t){return null==t?X:t[n]}}function x(n){return function(t){return null==n?X:n[t]}}function j(n,t,r,e,u){return u(n,function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)}),r}function A(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].c;return n}function k(n,t){for(var r,e=-1,u=n.length;++e<u;){var i=t(n[e]);i!==X&&(r=r===X?i:r+i)}return r}function I(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function O(n,t){return c(t,function(t){return[t,n[t]]})}function R(n){return n?n.slice(0,H(n)+1).replace(Ct,""):n}function z(n){return function(t){return n(t)}}function E(n,t){return c(t,function(t){return n[t]})}function S(n,t){return n.has(t)}function W(n,t){for(var r=-1,e=n.length;++r<e&&y(t,n[r],0)>-1;);return r}function L(n,t){for(var r=n.length;r--&&y(t,n[r],0)>-1;);return r}function C(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}function U(n){return"\\"+Yr[n]}function B(n,t){return null==n?X:n[t]}function T(n){return Pr.test(n)}function $(n){return qr.test(n)}function D(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}function M(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function F(n,t){return function(r){return n(t(r))}}function N(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&o!==an||(n[r]=an,i[u++]=r)}return i}function P(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=n}),r}function q(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=[n,n]}),r}function Z(n,t,r){for(var e=r-1,u=n.length;++e<u;)if(n[e]===t)return e;return-1}function K(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}function V(n){return T(n)?J(n):_e(n)}function G(n){return T(n)?Y(n):p(n)}function H(n){for(var t=n.length;t--&&Ut.test(n.charAt(t)););return t}function J(n){for(var t=Fr.lastIndex=0;Fr.test(n);)++t;return t}function Y(n){return n.match(Fr)||[]
vendor: 4,183 bytes, line 400
400}function Q(n){return n.match(Nr)||[]}var X,nn="4.18.1",tn=200,rn="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",en="Expected a function",un="Invalid `variable` option passed into `_.template`",on="Invalid `imports` option passed into `_.template`",fn="__lodash_hash_undefined__",cn=500,an="__lodash_placeholder__",ln=1,sn=2,hn=4,pn=1,_n=2,vn=1,gn=2,yn=4,dn=8,bn=16,wn=32,mn=64,xn=128,jn=256,An=512,kn=30,In="...",On=800,Rn=16,zn=1,En=2,Sn=3,Wn=1/0,Ln=9007199254740991,Cn=1.7976931348623157e308,Un=NaN,Bn=4294967295,Tn=Bn-1,$n=Bn>>>1,Dn=[["ary",xn],["bind",vn],["bindKey",gn],["curry",dn],["curryRight",bn],["flip",An],["partial",wn],["partialRight",mn],["rearg",jn]],Mn="[object Arguments]",Fn="[object Array]",Nn="[object AsyncFunction]",Pn="[object Boolean]",qn="[object Date]",Zn="[object DOMException]",Kn="[object Error]",Vn="[object Function]",Gn="[object GeneratorFunction]",Hn="[object Map]",Jn="[object Number]",Yn="[object Null]",Qn="[object Object]",Xn="[object Promise]",nt="[object Proxy]",tt="[object RegExp]",rt="[object Set]",et="[object String]",ut="[object Symbol]",it="[object Undefined]",ot="[object WeakMap]",ft="[object WeakSet]",ct="[object ArrayBuffer]",at="[object DataView]",lt="[object Float32Array]",st="[object Float64Array]",ht="[object Int8Array]",pt="[object Int16Array]",_t="[object Int32Array]",vt="[object Uint8Array]",gt="[object Uint8ClampedArray]",yt="[object Uint16Array]",dt="[object Uint32Array]",bt=/\b__p\+='';/g,wt=/\b(__p\+=)''\+/g,mt=/(__e\(.*?\)|\b__t\))\+'';/g,xt=/&(?:amp|lt|gt|quot|#39);/g,jt=/[&<>"']/g,At=RegExp(xt.source),kt=RegExp(jt.source),It=/<%-([\s\S]+?)%>/g,Ot=/<%([\s\S]+?)%>/g,Rt=/<%=([\s\S]+?)%>/g,zt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Et=/^\w*$/,St=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wt=/[\\^$.*+?()[\]{}|]/g,Lt=RegExp(Wt.source),Ct=/^\s+/,Ut=/\s/,Bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Tt=/\{\n\/\* \[wrapped with (.+)\] \*/,$t=/,? & /,Dt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mt=/[()=,{}\[\]\/\s]/,Ft=/\\(\\)?/g,Nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pt=/\w*$/,qt=/^[-+]0x[0-9a-f]+$/i,Zt=/^0b[01]+$/i,Kt=/^\[object .+?Constructor\]$/,Vt=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,Ht=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jt=/($^)/,Yt=/['\n\r\u2028\u2029\\]/g,Qt="\\ud800-\\udfff",Xt="\\u0300-\\u036f",nr="\\ufe20-\\ufe2f",tr="\\u20d0-\\u20ff",rr=Xt+nr+tr,er="\\u2700-\\u27bf",ur="a-z\\xdf-\\xf6\\xf8-\\xff",ir="\\xac\\xb1\\xd7\\xf7",or="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fr="\\u2000-\\u206f",cr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ar="A-Z\\xc0-\\xd6\\xd8-\\xde",lr="\\ufe0e\\ufe0f",sr=ir+or+fr+cr,hr="['\u2019]",pr="["+Qt+"]",_r="["+sr+"]",vr="["+rr+"]",gr="\\d+",yr="["+er+"]",dr="["+ur+"]",br="[^"+Qt+sr+gr+er+ur+ar+"]",wr="\\ud83c[\\udffb-\\udfff]",mr="(?:"+vr+"|"+wr+")",xr="[^"+Qt+"]",jr="(?:\\ud83c[\\udde6-\\uddff]){2}",Ar="[\\ud800-\\udbff][\\udc00-\\udfff]",kr="["+ar+"]",Ir="\\u200d",Or="(?:"+dr+"|"+br+")",Rr="(?:"+kr+"|"+br+")",zr="(?:"+hr+"(?:d|ll|m|re|s|t|ve))?",Er="(?:"+hr+"(?:D|LL|M|RE|S|T|VE))?",Sr=mr+"?",Wr="["+lr+"]?",Lr="(?:"+Ir+"(?:"+[xr,jr,Ar].join("|")+")"+Wr+Sr+")*",Cr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ur="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Br=Wr+Sr+Lr,Tr="(?:"+[yr,jr,Ar].join("|")+")"+Br,$r="(?:"+[xr+vr+"?",vr,jr,Ar,pr].join("|")+")",Dr=RegExp(hr,"g"),Mr=RegExp(vr,"g"),Fr=RegExp(wr+"(?="+wr+")|"+$r+Br,"g"),Nr=RegExp([kr+"?"+dr+"+"+zr+"(?="+[_r,kr,"$"].join("|")+")",Rr+"+"+Er+"(?="+[_r,kr+Or,"$"].join("|")+")",kr+"?"+Or+"+"+zr,kr+"+"+Er,Ur,Cr,gr,Tr].join("|"),"g"),Pr=RegExp("["+Ir+Qt+rr+lr+"]"),qr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zr=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Kr={};
vendor: 3,277 bytes, line 400
400Kr[lt]=Kr[st]=Kr[ht]=Kr[pt]=Kr[_t]=Kr[vt]=Kr[gt]=Kr[yt]=Kr[dt]=!0,Kr[Mn]=Kr[Fn]=Kr[ct]=Kr[Pn]=Kr[at]=Kr[qn]=Kr[Kn]=Kr[Vn]=Kr[Hn]=Kr[Jn]=Kr[Qn]=Kr[tt]=Kr[rt]=Kr[et]=Kr[ot]=!1;var Vr={};Vr[Mn]=Vr[Fn]=Vr[ct]=Vr[at]=Vr[Pn]=Vr[qn]=Vr[lt]=Vr[st]=Vr[ht]=Vr[pt]=Vr[_t]=Vr[Hn]=Vr[Jn]=Vr[Qn]=Vr[tt]=Vr[rt]=Vr[et]=Vr[ut]=Vr[vt]=Vr[gt]=Vr[yt]=Vr[dt]=!0,Vr[Kn]=Vr[Vn]=Vr[ot]=!1;var Gr={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"},Hr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Jr={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Yr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qr=parseFloat,Xr=parseInt,ne=typeof global=="object"&&global&&global.Object===Object&&global,te=typeof self=="object"&&self&&self.Object===Object&&self,re=ne||te||Function("return this")(),ee=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ue=ee&&typeof module=="object"&&module&&!module.nodeType&&module,ie=ue&&ue.exports===ee,oe
vendor: 5,051 bytes, line 400
400=ie&&ne.process,fe=function(){try{var n=ue&&ue.require&&ue.require("util").types;return n?n:oe&&oe.binding&&oe.binding("util")}catch(n){}}(),ce=fe&&fe.isArrayBuffer,ae=fe&&fe.isDate,le=fe&&fe.isMap,se=fe&&fe.isRegExp,he=fe&&fe.isSet,pe=fe&&fe.isTypedArray,_e=m("length"),ve=x(Gr),ge=x(Hr),ye=x(Jr),de=function p(x){function Z(n){if(cc(n)&&!bh(n)&&!(n instanceof Ut)){if(n instanceof Y)return n;if(bl.call(n,"__wrapped__"))return eo(n)}return new Y(n)}function J(){}function Y(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=X}function Ut(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Bn,this.__views__=[]}function Dt(){var n=new Ut(this.__wrapped__);return n.__actions__=Tu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Tu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Tu(this.__views__),n}function Qt(){if(this.__filtered__){var n=new Ut(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Xt(){var n=this.__wrapped__.value(),t=this.__dir__,r=bh(n),e=t<0,u=r?n.length:0,i=Ii(0,u,this.__views__),o=i.start,f=i.end,c=f-o,a=e?f:o-1,l=this.__iteratees__,s=l.length,h=0,p=Hl(c,this.__takeCount__);if(!r||!e&&u==c&&p==c)return wu(n,this.__actions__);var _=[];n:for(;c--&&h<p;){a+=t;for(var v=-1,g=n[a];++v<s;){var y=l[v],d=y.iteratee,b=y.type,w=d(g);if(b==En)g=w;else if(!w){if(b==zn)continue n;break n}}_[h++]=g}return _}function nr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function tr(){this.__data__=is?is(null):{},this.size=0}function rr(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}function er(n){var t=this.__data__;if(is){var r=t[n];return r===fn?X:r}return bl.call(t,n)?t[n]:X}function ur(n){var t=this.__data__;return is?t[n]!==X:bl.call(t,n)}function ir(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=is&&t===X?fn:t,this}function or(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function fr(){this.__data__=[],this.size=0}function cr(n){var t=this.__data__,r=Lr(t,n);return!(r<0)&&(r==t.length-1?t.pop():Ll.call(t,r,1),--this.size,!0)}function ar(n){var t=this.__data__,r=Lr(t,n);return r<0?X:t[r][1]}function lr(n){return Lr(this.__data__,n)>-1}function sr(n,t){var r=this.__data__,e=Lr(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this}function hr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function pr(){this.size=0,this.__data__={hash:new nr,map:new(ts||or),string:new nr}}function _r(n){var t=xi(this,n).delete(n);return this.size-=t?1:0,t}function vr(n){return xi(this,n).get(n)}function gr(n){return xi(this,n).has(n)}function yr(n,t){var r=xi(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this}function dr(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new hr;++t<r;)this.add(n[t])}function br(n){return this.__data__.set(n,fn),this}function wr(n){return this.__data__.has(n)}function mr(n){this.size=(this.__data__=new or(n)).size}function xr(){this.__data__=new or,this.size=0}function jr(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r}function Ar(n){return this.__data__.get(n)}function kr(n){return this.__data__.has(n)}function Ir(n,t){var r=this.__data__;if(r instanceof or){var e=r.__data__;if(!ts||e.length<tn-1)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new hr(e)}return r.set(n,t),this.size=r.size,this}function Or(n,t){var r=bh(n),e=!r&&dh(n),u=!r&&!e&&mh(n),i=!r&&!e&&!u&&Ih(n),o=r||e||u||i,f=o?I(n.length,hl):[],c=f.length;for(var a in n)!t&&!bl.call(n,a)||o&&("length"==a||u&&("offset"==a||"parent"==a)||i&&("buffer"==a||"byteLength"==a||"byteOffset"==a)||Ci(a,c))||f.push(a);return f}function Rr(n){var t=n.length;return t?n[tu(0,t-1)]:X}function zr(n,t){return Xi(Tu(n),Fr(t,0,n.length))}function Er(n){return Xi(Tu(n))}function Sr(n,t,r){(r===X||Gf(n[t],r))&&(r!==X||t in n)||Tr(n,t,r)}function Wr(n,t,r){var e=n[t];bl.call(n,t)&&Gf(e,r)&&(r!==X||t in n)||Tr(n,t,r)}function Lr(n,t){for(var r=n.length;r--;)if(Gf(n[r][0],t))return r;return-1}function Cr(n,t,r,e){return ys(n,function(n,u,i){t(e,n,r(n),i)}),e}function Ur(n,t){return n&&$u(t,Pc(t),n)}function Br(n,t){return n&&$u(t,qc(t),n)}function Tr(n,t,r){"__proto__"==t&&Tl?Tl(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function $r(n,t){for(var r=-1,e=t.length,u=il(e),i=null==n;++r<e;)u[r]=i?X:Mc(n,t[r]);return u}function Fr(n,t,r){return n===n&&(r!==X&&(n=n<=r?n:r),t!==X&&(n=n>=t?n:t)),n}function Nr(n,t,e,u,i,o){var f,c=t&ln,a=t&sn,l=t&hn;if(e&&(f=i?e(n,u,i,o):e(n)),f!==X)return f;if(!fc(n))return n;var s=bh(n);if(s){if(f=zi(n),!c)return Tu(n,f)}else{var h=zs(n),p=h==Vn||h==Gn;if(mh(n))return Ou(n,c);if(h==Qn||h==Mn||p&&!i){if(f=a||p?{}:Ei(n),!c)return a?Mu(n,Br(f,n)):Du(n,Ur(f,n))}else{if(!Vr[h])return i?n:{};f=Si(n,h,c)}}o||(o=new mr);var _=o.get(n);if(_)return _;
vendor: 3,027 bytes, line 400
400o.set(n,f),kh(n)?n.forEach(function(r){f.add(Nr(r,t,e,r,n,o))}):jh(n)&&n.forEach(function(r,u){f.set(u,Nr(r,t,e,u,n,o))});var v=l?a?di:yi:a?qc:Pc,g=s?X:v(n);return r(g||n,function(r,u){g&&(u=r,r=n[u]),Wr(f,u,Nr(r,t,e,u,n,o))}),f}function Pr(n){var t=Pc(n);return function(r){return qr(r,n,t)}}function qr(n,t,r){var e=r.length;if(null==n)return!e;for(n=ll(n);e--;){var u=r[e],i=t[u],o=n[u];if(o===X&&!(u in n)||!i(o))return!1}return!0}function Gr(n,t,r){if(typeof n!="function")throw new pl(en);return Ws(function(){n.apply(X,r)},t)}function Hr(n,t,r,e){var u=-1,i=o,a=!0,l=n.length,s=[],h=t.length;if(!l)return s;r&&(t=c(t,z(r))),e?(i=f,a=!1):t.length>=tn&&(i=S,a=!1,t=new dr(t));n:for(;++u<l;){var p=n[u],_=null==r?p:r(p);if(p=e||0!==p?p:0,a&&_===_){for(var v=h;v--;)if(t[v]===_)continue n;s.push(p)}else i(t,_,e)||s.push(p)}return s}function Jr(n,t){var r=!0;return ys(n,function(n,e,u){return r=!!t(n,e,u)}),r}function Yr(n,t,r){for(var e=-1,u=n.length;++e<u;){var i=n[e],o=t(i);if(null!=o&&(f===X?o===o&&!bc(o):r(o,f)))var f=o,c=i}return c}function ne(n,t,r,e){var u=n.length;for(r=kc(r),r<0&&(r=-r>u?0:u+r),e=e===X||e>u?u:kc(e),e<0&&(e+=u),e=r>e?0:Ic(e);r<e;)n[r++]=t;return n}function te(n,t){var r=[];return ys(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function ee(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=Li),u||(u=[]);++i<o;){var f=n[i];t>0&&r(f)?t>1?ee(f,t-1,r,e,u):a(u,f):e||(u[u.length]=f)}return u}function ue(n,t){return n&&bs(n,t,Pc)}function oe(n,t){return n&&ws(n,t,Pc)}function fe(n,t){return i(t,function(t){return uc(n[t])})}function _e(n,t){t=ku(t,n);for(var r=0,e=t.length;null!=n&&r<e;)n=n[no(t[r++])];return r&&r==e?n:X}function de(n,t,r){var e=t(n);return bh(n)?e:a(e,r(n))}function we(n){return null==n?n===X?it:Yn:Bl&&Bl in ll(n)?ki(n):Ki(n)}function me(n,t){return n>t}function xe(n,t){return null!=n&&bl.call(n,t)}function je(n,t){return null!=n&&t in ll(n)}function Ae(n,t,r){return n>=Hl(t,r)&&n<Gl(t,r)}function ke(n,t,r){for(var e=r?f:o,u=n[0].length,i=n.length,a=i,l=il(i),s=1/0,h=[];a--;){var p=n[a];a&&t&&(p=c(p,z(t))),s=Hl(p.length,s),l[a]=!r&&(t||u>=120&&p.length>=120)?new dr(a&&p):X}p=n[0];var _=-1,v=l[0];n:for(;++_<u&&h.length<s;){var g=p[_],y=t?t(g):g;if(g=r||0!==g?g:0,!(v?S(v,y):e(h,y,r))){for(a=i;--a;){var d=l[a];if(!(d?S(d,y):e(n[a],y,r)))continue n}v&&v.push(y),h.push(g)}}return h}function Ie(n,t,r,e){return ue(n,function(n,u,i){t(e,r(n),u,i)}),e}function Oe(t,r,e){r=ku(r,t),t=Gi(t,r);var u=null==t?t:t[no(jo(r))];return null==u?X:n(u,t,e)}function Re(n){return cc(n)&&we(n)==Mn}function ze(n){return cc(n)&&we(n)==ct}function Ee(n){return cc(n)&&we(n)==qn}function Se(n,t,r,e,u){return n===t||(null==n||null==t||!cc(n)&&!cc(t)?n!==n&&t!==t:We(n,t,r,e,Se,u))}function We(n,t,r,e,u,i){var o=bh(n),f=bh(t),c=o?Fn:zs(n),a=f?Fn:zs(t);c=c==Mn?Qn:c,a=a==Mn?Qn:a;var l=c==Qn,s=a==Qn,h=c==a;if(h&&mh(n)){if(!mh(t))return!1;o=!0,l=!1}if(h&&!l)return i||(i=new mr),o||Ih(n)?pi(n,t,r,e,u,i):_i(n,t,c,r,e,u,i);if(!(r&pn)){var p=l&&bl.call(n,"__wrapped__"),_=s&&bl.call(t,"__wrapped__");
vendor: 9,537 bytes, lines 400-401
400if(p||_){var v=p?n.value():n,g=_?t.value():t;return i||(i=new mr),u(v,g,r,e,i)}}return!!h&&(i||(i=new mr),vi(n,t,r,e,u,i))}function Le(n){return cc(n)&&zs(n)==Hn}function Ce(n,t,r,e){var u=r.length,i=u,o=!e;if(null==n)return!i;for(n=ll(n);u--;){var f=r[u];if(o&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return!1}for(;++u<i;){f=r[u];var c=f[0],a=n[c],l=f[1];if(o&&f[2]){if(a===X&&!(c in n))return!1}else{var s=new mr;if(e)var h=e(a,l,c,n,t,s);if(!(h===X?Se(l,a,pn|_n,e,s):h))return!1}}return!0}function Ue(n){return!(!fc(n)||Di(n))&&(uc(n)?kl:Kt).test(to(n))}function Be(n){return cc(n)&&we(n)==tt}function Te(n){return cc(n)&&zs(n)==rt}function $e(n){return cc(n)&&oc(n.length)&&!!Kr[we(n)]}function De(n){return typeof n=="function"?n:null==n?La:typeof n=="object"?bh(n)?Ze(n[0],n[1]):qe(n):Fa(n)}function Me(n){if(!Mi(n))return Vl(n);var t=[];for(var r in ll(n))bl.call(n,r)&&"constructor"!=r&&t.push(r);return t}function Fe(n){if(!fc(n))return Zi(n);var t=Mi(n),r=[];for(var e in n)("constructor"!=e||!t&&bl.call(n,e))&&r.push(e);return r}function Ne(n,t){return n<t}function Pe(n,t){var r=-1,e=Hf(n)?il(n.length):[];return ys(n,function(n,u,i){e[++r]=t(n,u,i)}),e}function qe(n){var t=ji(n);return 1==t.length&&t[0][2]?Ni(t[0][0],t[0][1]):function(r){return r===n||Ce(r,n,t)}}function Ze(n,t){return Bi(n)&&Fi(t)?Ni(no(n),t):function(r){var e=Mc(r,n);return e===X&&e===t?Nc(r,n):Se(t,e,pn|_n)}}function Ke(n,t,r,e,u){n!==t&&bs(t,function(i,o){if(u||(u=new mr),fc(i))Ve(n,t,o,r,Ke,e,u);else{var f=e?e(Ji(n,o),i,o+"",n,t,u):X;f===X&&(f=i),Sr(n,o,f)}},qc)}function Ve(n,t,r,e,u,i,o){var f=Ji(n,r),c=Ji(t,r),a=o.get(c);if(a)return Sr(n,r,a),X;var l=i?i(f,c,r+"",n,t,o):X,s=l===X;if(s){var h=bh(c),p=!h&&mh(c),_=!h&&!p&&Ih(c);l=c,h||p||_?bh(f)?l=f:Jf(f)?l=Tu(f):p?(s=!1,l=Ou(c,!0)):_?(s=!1,l=Wu(c,!0)):l=[]:gc(c)||dh(c)?(l=f,dh(f)?l=Rc(f):fc(f)&&!uc(f)||(l=Ei(c))):s=!1}s&&(o.set(c,l),u(l,c,e,i,o),o.delete(c)),Sr(n,r,l)}function Ge(n,t){var r=n.length;if(r)return t+=t<0?r:0,Ci(t,r)?n[t]:X}function He(n,t,r){t=t.length?c(t,function(n){return bh(n)?function(t){return _e(t,1===n.length?n[0]:n)}:n}):[La];var e=-1;return t=c(t,z(mi())),A(Pe(n,function(n,r,u){return{a:c(t,function(t){return t(n)}),b:++e,c:n}}),function(n,t){return Cu(n,t,r)})}function Je(n,t){return Ye(n,t,function(t,r){return Nc(n,r)})}function Ye(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=_e(n,o);r(f,o)&&fu(i,ku(o,n),f)}return i}function Qe(n){return function(t){return _e(t,n)}}function Xe(n,t,r,e){var u=e?d:y,i=-1,o=t.length,f=n;for(n===t&&(t=Tu(t)),r&&(f=c(n,z(r)));++i<o;)for(var a=0,l=t[i],s=r?r(l):l;(a=u(f,s,a,e))>-1;)f!==n&&Ll.call(f,a,1),Ll.call(n,a,1);return n}function nu(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;Ci(u)?Ll.call(n,u,1):yu(n,u)}}return n}function tu(n,t){return n+Nl(Ql()*(t-n+1))}function ru(n,t,r,e){for(var u=-1,i=Gl(Fl((t-n)/(r||1)),0),o=il(i);i--;)o[e?i:++u]=n,n+=r;return o}function eu(n,t){var r="";if(!n||t<1||t>Ln)return r;do t%2&&(r+=n),t=Nl(t/2),t&&(n+=n);while(t);return r}function uu(n,t){return Ls(Vi(n,t,La),n+"")}function iu(n){return Rr(ra(n))}function ou(n,t){var r=ra(n);return Xi(r,Fr(t,0,r.length))}function fu(n,t,r,e){if(!fc(n))return n;t=ku(t,n);for(var u=-1,i=t.length,o=i-1,f=n;null!=f&&++u<i;){var c=no(t[u]),a=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return n;if(u!=o){var l=f[c];a=e?e(l,c,f):X,a===X&&(a=fc(l)?l:Ci(t[u+1])?[]:{})}Wr(f,c,a),f=f[c]}return n}function cu(n){return Xi(ra(n))}function au(n,t,r){var e=-1,u=n.length;t<0&&(t=-t>u?0:u+t),r=r>u?u:r,r<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=il(u);++e<u;)i[e]=n[e+t];return i}function lu(n,t){var r;return ys(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function su(n,t,r){var e=0,u=null==n?e:n.length;if(typeof t=="number"&&t===t&&u<=$n){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!bc(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return hu(n,t,La,r)}function hu(n,t,r,e){var u=0,i=null==n?0:n.length;if(0===i)return 0;t=r(t);for(var o=t!==t,f=null===t,c=bc(t),a=t===X;u<i;){var l=Nl((u+i)/2),s=r(n[l]),h=s!==X,p=null===s,_=s===s,v=bc(s);if(o)var g=e||_;else g=a?_&&(e||h):f?_&&h&&(e||!p):c?_&&h&&!p&&(e||!v):!p&&!v&&(e?s<=t:s<t);g?u=l+1:i=l}return Hl(i,Tn)}function pu(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r],f=t?t(o):o;if(!r||!Gf(f,c)){var c=f;i[u++]=0===o?0:o}}return i}function _u(n){return typeof n=="number"?n:bc(n)?Un:+n}function vu(n){if(typeof n=="string")return n;if(bh(n))return c(n,vu)+"";if(bc(n))return vs?vs.call(n):"";var t=n+"";return"0"==t&&1/n==-Wn?"-0":t}function gu(n,t,r){var e=-1,u=o,i=n.length,c=!0,a=[],l=a;if(r)c=!1,u=f;else if(i>=tn){var s=t?null:ks(n);if(s)return P(s);c=!1,u=S,l=new dr}else l=t?[]:a;n:for(;++e<i;){var h=n[e],p=t?t(h):h;if(h=r||0!==h?h:0,c&&p===p){for(var _=l.length;_--;)if(l[_]===p)continue n;t&&l.push(p),a.push(h)}else u(l,p,r)||(l!==a&&l.push(p),a.push(h))}return a}function yu(n,t){t=ku(t,n);var r=-1,e=t.length;if(!e)return!0;for(;++r<e;){var u=no(t[r]);if("__proto__"===u&&!bl.call(n,"__proto__"))return!1;if(("constructor"===u||"prototype"===u)&&r<e-1)return!1}var i=Gi(n,t);return null==i||delete i[no(jo(t))]}function du(n,t,r,e){return fu(n,t,r(_e(n,t)),e)}function bu(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?au(n,e?0:i,e?i+1:u):au(n,e?i+1:0,e?u:i)}
401function wu(n,t){var r=n;return r instanceof Ut&&(r=r.value()),l(t,function(n,t){return t.func.apply(t.thisArg,a([n],t.args))},r)}function mu(n,t,r){var e=n.length;if(e<2)return e?gu(n[0]):[];for(var u=-1,i=il(e);++u<e;)for(var o=n[u],f=-1;++f<e;)f!=u&&(i[u]=Hr(i[u]||o,n[f],t,r));return gu(ee(i,1),t,r)}function xu(n,t,r){for(var e=-1,u=n.length,i=t.length,o={};++e<u;){r(o,n[e],e<i?t[e]:X)}return o}function ju(n){return Jf(n)?n:[]}function Au(n){return typeof n=="function"?n:La}function ku(n,t){return bh(n)?n:Bi(n,t)?[n]:Cs(Ec(n))}function Iu(n,t,r){var e=n.length;return r=r===X?e:r,!t&&r>=e?n:au(n,t,r)}function Ou(n,t){if(t)return n.slice();var r=n.length,e=zl?zl(r):new n.constructor(r);return n.copy(e),e}function Ru(n){var t=new n.constructor(n.byteLength);return new Rl(t).set(new Rl(n)),t}function zu(n,t){return new n.constructor(t?Ru(n.buffer):n.buffer,n.byteOffset,n.byteLength)}function Eu(n){var t=new n.constructor(n.source,Pt.exec(n));return t.lastIndex=n.lastIndex,t}function Su(n){return _s?ll(_s.call(n)):{}}function Wu(n,t){return new n.constructor(t?Ru(n.buffer):n.buffer,n.byteOffset,n.length)}function Lu(n,t){if(n!==t){var r=n!==X,e=null===n,u=n===n,i=bc(n),o=t!==X,f=null===t,c=t===t,a=bc(t);if(!f&&!a&&!i&&n>t||i&&o&&c&&!f&&!a||e&&o&&c||!r&&c||!u)return 1;if(!e&&!i&&!a&&n<t||a&&r&&u&&!e&&!i||f&&r&&u||!o&&u||!c)return-1}return 0}function Cu(n,t,r){for(var e=-1,u=n.a,i=t.a,o=u.length,f=r.length;++e<o;){var c=Lu(u[e],i[e]);if(c){if(e>=f)return c;return c*("desc"==r[e]?-1:1)}}return n.b-t.b}function Uu(n,t,r,e){for(var u=-1,i=n.length,o=r.length,f=-1,c=t.length,a=Gl(i-o,0),l=il(c+a),s=!e;++f<c;)l[f]=t[f];for(;++u<o;)(s||u<i)&&(l[r[u]]=n[u]);for(;a--;)l[f++]=n[u++];return l}function Bu(n,t,r,e){for(var u=-1,i=n.length,o=-1,f=r.length,c=-1,a=t.length,l=Gl(i-f,0),s=il(l+a),h=!e;++u<l;)s[u]=n[u];for(var p=u;++c<a;)s[p+c]=t[c];for(;++o<f;)(h||u<i)&&(s[p+r[o]]=n[u++]);return s}function Tu(n,t){var r=-1,e=n.length;for(t||(t=il(e));++r<e;)t[r]=n[r];return t}function $u(n,t,r,e){var u=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var f=t[i],c=e?e(r[f],n[f],f,r,n):X;c===X&&(c=n[f]),u?Tr(r,f,c):Wr(r,f,c)}return r}function Du(n,t){return $u(n,Os(n),t)}function Mu(n,t){return $u(n,Rs(n),t)}function Fu(n,r){return function(e,u){var i=bh(e)?t:Cr,o=r?r():{};return i(e,n,mi(u,2),o)}}function Nu(n){return uu(function(t,r){var e=-1,u=r.length,i=u>1?r[u-1]:X,o=u>2?r[2]:X;for(i=n.length>3&&typeof i=="function"?(u--,i):X,o&&Ui(r[0],r[1],o)&&(i=u<3?X:i,u=1),t=ll(t);++e<u;){var f=r[e];f&&n(t,f,e,i)}return t})}function Pu(n,t){return function(r,e){if(null==r)return r;if(!Hf(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=ll(r);(t?i--:++i<u)&&e(o[i],i,o)!==!1;);return r}}function qu(n){return function(t,r,e){for(var u=-1,i=ll(t),o=e(t),f=o.length;f--;){var c=o[n?f:++u];if(r(i[c],c,i)===!1)break}return t}}function Zu(n,t,r){function e(){return(this&&this!==re&&this instanceof e?i:n).apply(u?r:this,arguments)}var u=t&vn,i=Gu(n);return e}function Ku(n){return function(t){t=Ec(t);var r=T(t)?G(t):X,e=r?r[0]:t.charAt(0),u=r?Iu(r,1).join(""):t.slice(1);return e[n]()+u}}function Vu(n){return function(t){return l(Ra(ca(t).replace(Dr,"")),n,"")}}function Gu(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=gs(n.prototype),e=n.apply(r,t);return fc(e)?e:r}}function Hu(t,r,e){function u(){for(var o=arguments.length,f=il(o),c=o,a=wi(u);c--;)f[c]=arguments[c];var l=o<3&&f[0]!==a&&f[o-1]!==a?[]:N(f,a);return o-=l.length,o<e?oi(t,r,Qu,u.placeholder,X,f,l,X,X,e-o):n(this&&this!==re&&this instanceof u?i:t,this,f)}var i=Gu(t);return u}function Ju(n){return function(t,r,e){var u=ll(t);if(!Hf(t)){var i=mi(r,3);t=Pc(t),r=function(n){return i(u[n],n,u)}}var o=n(t,r,e);return o>-1?u[i?t[o]:o]:X}}function Yu(n){return gi(function(t){var r=t.length,e=r,u=Y.prototype.thru;for(n&&t.reverse();e--;){var i=t[e];if(typeof i!="function")throw new pl(en);if(u&&!o&&"wrapper"==bi(i))var o=new Y([],!0)}for(e=o?e:r;
vendor: 4,572 bytes, line 401
401++e<r;){i=t[e];var f=bi(i),c="wrapper"==f?Is(i):X;o=c&&$i(c[0])&&c[1]==(xn|dn|wn|jn)&&!c[4].length&&1==c[9]?o[bi(c[0])].apply(o,c[3]):1==i.length&&$i(i)?o[f]():o.thru(i)}return function(){var n=arguments,e=n[0];if(o&&1==n.length&&bh(e))return o.plant(e).value();for(var u=0,i=r?t[u].apply(this,n):e;++u<r;)i=t[u].call(this,i);return i}})}function Qu(n,t,r,e,u,i,o,f,c,a){function l(){for(var y=arguments.length,d=il(y),b=y;b--;)d[b]=arguments[b];if(_)var w=wi(l),m=C(d,w);if(e&&(d=Uu(d,e,u,_)),i&&(d=Bu(d,i,o,_)),y-=m,_&&y<a){return oi(n,t,Qu,l.placeholder,r,d,N(d,w),f,c,a-y)}var x=h?r:this,j=p?x[n]:n;return y=d.length,f?d=Hi(d,f):v&&y>1&&d.reverse(),s&&c<y&&(d.length=c),this&&this!==re&&this instanceof l&&(j=g||Gu(j)),j.apply(x,d)}var s=t&xn,h=t&vn,p=t&gn,_=t&(dn|bn),v=t&An,g=p?X:Gu(n);return l}function Xu(n,t){return function(r,e){return Ie(r,n,t(e),{})}}function ni(n,t){return function(r,e){var u;if(r===X&&e===X)return t;if(r!==X&&(u=r),e!==X){if(u===X)return e;typeof r=="string"||typeof e=="string"?(r=vu(r),e=vu(e)):(r=_u(r),e=_u(e)),u=n(r,e)}return u}}function ti(t){return gi(function(r){return r=c(r,z(mi())),uu(function(e){var u=this;return t(r,function(t){return n(t,u,e)})})})}function ri(n,t){t=t===X?" ":vu(t);var r=t.length;if(r<2)return r?eu(t,n):t;var e=eu(t,Fl(n/V(t)));return T(t)?Iu(G(e),0,n).join(""):e.slice(0,n)}function ei(t,r,e,u){function i(){for(var r=-1,c=arguments.length,a=-1,l=u.length,s=il(l+c),h=this&&this!==re&&this instanceof i?f:t;++a<l;)s[a]=u[a];for(;c--;)s[a++]=arguments[++r];return n(h,o?e:this,s)}var o=r&vn,f=Gu(t);return i}function ui(n){return function(t,r,e){return e&&typeof e!="number"&&Ui(t,r,e)&&(r=e=X),t=Ac(t),r===X?(r=t,t=0):r=Ac(r),e=e===X?t<r?1:-1:Ac(e),ru(t,r,e,n)}}function ii(n){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Oc(t),r=Oc(r)),n(t,r)}}function oi(n,t,r,e,u,i,o,f,c,a){var l=t&dn,s=l?o:X,h=l?X:o,p=l?i:X,_=l?X:i;t|=l?wn:mn,t&=~(l?mn:wn),t&yn||(t&=~(vn|gn));var v=[n,t,u,p,s,_,h,f,c,a],g=r.apply(X,v);return $i(n)&&Ss(g,v),g.placeholder=e,Yi(g,n,t)}function fi(n){var t=al[n];return function(n,r){if(n=Oc(n),r=null==r?0:Hl(kc(r),292),r&&Zl(n)){var e=(Ec(n)+"e").split("e");return e=(Ec(t(e[0]+"e"+(+e[1]+r)))+"e").split("e"),+(e[0]+"e"+(+e[1]-r))}return t(n)}}function ci(n){return function(t){var r=zs(t);return r==Hn?M(t):r==rt?q(t):O(t,n(t))}}function ai(n,t,r,e,u,i,o,f){var c=t&gn;if(!c&&typeof n!="function")throw new pl(en);var a=e?e.length:0;if(a||(t&=~(wn|mn),e=u=X),o=o===X?o:Gl(kc(o),0),f=f===X?f:kc(f),a-=u?u.length:0,t&mn){var l=e,s=u;e=u=X}var h=c?X:Is(n),p=[n,t,r,e,u,l,s,i,o,f];if(h&&qi(p,h),n=p[0],t=p[1],r=p[2],e=p[3],u=p[4],f=p[9]=p[9]===X?c?0:n.length:Gl(p[9]-a,0),!f&&t&(dn|bn)&&(t&=~(dn|bn)),t&&t!=vn)_=t==dn||t==bn?Hu(n,t,f):t!=wn&&t!=(vn|wn)||u.length?Qu.apply(X,p):ei(n,t,r,e);else var _=Zu(n,t,r);return Yi((h?ms:Ss)(_,p),n,t)}function li(n,t,r,e){return n===X||Gf(n,gl[r])&&!bl.call(e,r)?t:n}function si(n,t,r,e,u,i){return fc(n)&&fc(t)&&(i.set(t,n),Ke(n,t,X,si,i),i.delete(t)),n}function hi(n){return gc(n)?X:n}function pi(n,t,r,e,u,i){var o=r&pn,f=n.length,c=t.length;if(f!=c&&!(o&&c>f))return!1;var a=i.get(n),l=i.get(t);if(a&&l)return a==t&&l==n;var s=-1,p=!0,_=r&_n?new dr:X;for(i.set(n,t),i.set(t,n);++s<f;){var v=n[s],g=t[s];if(e)var y=o?e(g,v,s,t,n,i):e(v,g,s,n,t,i);if(y!==X){if(y)continue;p=!1;break}if(_){if(!h(t,function(n,t){if(!S(_,t)&&(v===n||u(v,n,r,e,i)))return _.push(t)})){p=!1;break}}else if(v!==g&&!u(v,g,r,e,i)){p=!1;break}}return i.delete(n),i.delete(t),p}function _i(n,t,r,e,u,i,o){switch(r){case at:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case ct:return!(n.byteLength!=t.byteLength||!i(new Rl(n),new Rl(t)));case Pn:case qn:case Jn:return Gf(+n,+t);case Kn:return n.name==t.name&&n.message==t.message;case tt:case et:return n==t+"";case Hn:var f=M;case rt:var c=e&pn;if(f||(f=P),n.size!=t.size&&!c)return!1;var a=o.get(n);if(a)return a==t;e|=_n,o.set(n,t);var l=pi(f(n),f(t),e,u,i,o);return o.delete(n),l;case ut:if(_s)return _s.call(n)==_s.call(t)}return!1}function vi(n,t,r,e,u,i){var o=r&pn,f=yi(n),c=f.length;if(c!=yi(t).length&&!o)return!1;for(var a=c;a--;){var l=f[a];if(!(o?l in t:bl.call(t,l)))return!1}var s=i.get(n),h=i.get(t);if(s&&h)return s==t&&h==n;var p=!0;i.set(n,t),i.set(t,n);for(var _=o;++a<c;){l=f[a];var v=n[l],g=t[l];if(e)var y=o?e(g,v,l,t,n,i):e(v,g,l,n,t,i);if(!(y===X?v===g||u(v,g,r,e,i):y)){p=!1;break}_||(_="constructor"==l)}if(p&&!_){var d=n.constructor,b=t.constructor;d!=b&&"constructor"in n&&"constructor"in t&&!(typeof d=="function"&&d 
vendor: 3,071 bytes, line 401
401instanceof d&&typeof b=="function"&&b instanceof b)&&(p=!1)}return i.delete(n),i.delete(t),p}function gi(n){return Ls(Vi(n,X,_o),n+"")}function yi(n){return de(n,Pc,Os)}function di(n){return de(n,qc,Rs)}function bi(n){for(var t=n.name+"",r=fs[t],e=bl.call(fs,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function wi(n){return(bl.call(Z,"placeholder")?Z:n).placeholder}function mi(){var n=Z.iteratee||Ca;return n=n===Ca?De:n,arguments.length?n(arguments[0],arguments[1]):n}function xi(n,t){var r=n.__data__;return Ti(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ji(n){for(var t=Pc(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,Fi(u)]}return t}function Ai(n,t){var r=B(n,t);return Ue(r)?r:X}function ki(n){var t=bl.call(n,Bl),r=n[Bl];try{n[Bl]=X;var e=!0}catch(n){}var u=xl.call(n);return e&&(t?n[Bl]=r:delete n[Bl]),u}function Ii(n,t,r){for(var e=-1,u=r.length;++e<u;){var i=r[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":t-=o;break;case"take":t=Hl(t,n+o);break;case"takeRight":n=Gl(n,t-o)}}return{start:n,end:t}}function Oi(n){var t=n.match(Tt);return t?t[1].split($t):[]}function Ri(n,t,r){t=ku(t,n);for(var e=-1,u=t.length,i=!1;++e<u;){var o=no(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:(u=null==n?0:n.length,!!u&&oc(u)&&Ci(o,u)&&(bh(n)||dh(n)))}function zi(n){var t=n.length,r=new n.constructor(t);return t&&"string"==typeof n[0]&&bl.call(n,"index")&&(r.index=n.index,r.input=n.input),r}function Ei(n){return typeof n.constructor!="function"||Mi(n)?{}:gs(El(n))}function Si(n,t,r){var e=n.constructor;switch(t){case ct:return Ru(n);case Pn:case qn:return new e(+n);case at:return zu(n,r);case lt:case st:case ht:case pt:case _t:case vt:case gt:case yt:case dt:return Wu(n,r);case Hn:return new e;case Jn:case et:return new e(n);case tt:return Eu(n);case rt:return new e;case ut:return Su(n)}}function Wi(n,t){var r=t.length;if(!r)return n;var e=r-1;return t[e]=(r>1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(Bt,"{\n/* [wrapped with "+t+"] */\n")}function Li(n){return bh(n)||dh(n)||!!(Cl&&n&&n[Cl])}function Ci(n,t){var r=typeof n;return t=null==t?Ln:t,!!t&&("number"==r||"symbol"!=r&&Gt.test(n))&&n>-1&&n%1==0&&n<t}function Ui(n,t,r){if(!fc(r))return!1;var e=typeof t;return!!("number"==e?Hf(r)&&Ci(t,r.length):"string"==e&&t in r)&&Gf(r[t],n)}function Bi(n,t){if(bh(n))return!1;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!bc(n))||(Et.test(n)||!zt.test(n)||null!=t&&n in ll(t))}function Ti(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}function $i(n){var t=bi(n),r=Z[t];if(typeof r!="function"||!(t in Ut.prototype))return!1;if(n===r)return!0;var e=Is(r);return!!e&&n===e[0]}function Di(n){return!!ml&&ml in n}function Mi(n){var t=n&&n.constructor;return n===(typeof t=="function"&&t.prototype||gl)}function Fi(n){return n===n&&!fc(n)}function Ni(n,t){return function(r){return null!=r&&(r[n]===t&&(t!==X||n in ll(r)))}}function Pi(n){var t=Cf(n,function(n){return r.size===cn&&r.clear(),n}
vendor: 8,441 bytes, line 401
401),r=t.cache;return t}function qi(n,t){var r=n[1],e=t[1],u=r|e,i=u<(vn|gn|xn),o=e==xn&&r==dn||e==xn&&r==jn&&n[7].length<=t[8]||e==(xn|jn)&&t[7].length<=t[8]&&r==dn;if(!i&&!o)return n;e&vn&&(n[2]=t[2],u|=r&vn?0:yn);var f=t[3];if(f){var c=n[3];n[3]=c?Uu(c,f,t[4]):f,n[4]=c?N(n[3],an):t[4]}return f=t[5],f&&(c=n[5],n[5]=c?Bu(c,f,t[6]):f,n[6]=c?N(n[5],an):t[6]),f=t[7],f&&(n[7]=f),e&xn&&(n[8]=null==n[8]?t[8]:Hl(n[8],t[8])),null==n[9]&&(n[9]=t[9]),n[0]=t[0],n[1]=u,n}function Zi(n){var t=[];if(null!=n)for(var r in ll(n))t.push(r);return t}function Ki(n){return xl.call(n)}function Vi(t,r,e){return r=Gl(r===X?t.length-1:r,0),function(){for(var u=arguments,i=-1,o=Gl(u.length-r,0),f=il(o);++i<o;)f[i]=u[r+i];i=-1;for(var c=il(r+1);++i<r;)c[i]=u[i];return c[r]=e(f),n(t,this,c)}}function Gi(n,t){return t.length<2?n:_e(n,au(t,0,-1))}function Hi(n,t){for(var r=n.length,e=Hl(t.length,r),u=Tu(n);e--;){var i=t[e];n[e]=Ci(i,r)?u[i]:X}return n}function Ji(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]}function Yi(n,t,r){var e=t+"";return Ls(n,Wi(e,ro(Oi(e),r)))}function Qi(n){var t=0,r=0;return function(){var e=Jl(),u=Rn-(e-r);if(r=e,u>0){if(++t>=On)return arguments[0]}else t=0;return n.apply(X,arguments)}}function Xi(n,t){var r=-1,e=n.length,u=e-1;for(t=t===X?e:t;++r<t;){var i=tu(r,u),o=n[i];n[i]=n[r],n[r]=o}return n.length=t,n}function no(n){if(typeof n=="string"||bc(n))return n;var t=n+"";return"0"==t&&1/n==-Wn?"-0":t}function to(n){if(null!=n){try{return dl.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function ro(n,t){return r(Dn,function(r){var e="_."+r[0];t&r[1]&&!o(n,e)&&n.push(e)}),n.sort()}function eo(n){if(n instanceof Ut)return n.clone();var t=new Y(n.__wrapped__,n.__chain__);return t.__actions__=Tu(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function uo(n,t,r){t=(r?Ui(n,t,r):t===X)?1:Gl(kc(t),0);var e=null==n?0:n.length;if(!e||t<1)return[];for(var u=0,i=0,o=il(Fl(e/t));u<e;)o[i++]=au(n,u,u+=t);return o}function io(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u}function oo(){var n=arguments.length;if(!n)return[];for(var t=il(n-1),r=arguments[0],e=n;e--;)t[e-1]=arguments[e];return a(bh(r)?Tu(r):[r],ee(t,1))}function fo(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===X?1:kc(t),au(n,t<0?0:t,e)):[]}function co(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===X?1:kc(t),t=e-t,au(n,0,t<0?0:t)):[]}function ao(n,t){return n&&n.length?bu(n,mi(t,3),!0,!0):[]}function lo(n,t){return n&&n.length?bu(n,mi(t,3),!0):[]}function so(n,t,r,e){var u=null==n?0:n.length;return u?(r&&typeof r!="number"&&Ui(n,t,r)&&(r=0,e=u),ne(n,t,r,e)):[]}function ho(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:kc(r);return u<0&&(u=Gl(e+u,0)),g(n,mi(t,3),u)}function po(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e-1;return r!==X&&(u=kc(r),u=r<0?Gl(e+u,0):Hl(u,e-1)),g(n,mi(t,3),u,!0)}function _o(n){return(null==n?0:n.length)?ee(n,1):[]}function vo(n){return(null==n?0:n.length)?ee(n,Wn):[]}function go(n,t){return(null==n?0:n.length)?(t=t===X?1:kc(t),ee(n,t)):[]}function yo(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];Tr(e,u[0],u[1])}return e}function bo(n){return n&&n.length?n[0]:X}function wo(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:kc(r);return u<0&&(u=Gl(e+u,0)),y(n,t,u)}function mo(n){return(null==n?0:n.length)?au(n,0,-1):[]}function xo(n,t){return null==n?"":Kl.call(n,t)}function jo(n){var t=null==n?0:n.length;return t?n[t-1]:X}function Ao(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;return r!==X&&(u=kc(r),u=u<0?Gl(e+u,0):Hl(u,e-1)),t===t?K(n,t,u):g(n,b,u,!0)}function ko(n,t){return n&&n.length?Ge(n,kc(t)):X}function Io(n,t){return n&&n.length&&t&&t.length?Xe(n,t):n}function Oo(n,t,r){return n&&n.length&&t&&t.length?Xe(n,t,mi(r,2)):n}function Ro(n,t,r){return n&&n.length&&t&&t.length?Xe(n,t,X,r):n}function zo(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=mi(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return nu(n,u),r}function Eo(n){return null==n?n:Xl.call(n)}function So(n,t,r){var e=null==n?0:n.length;return e?(r&&typeof r!="number"&&Ui(n,t,r)?(t=0,r=e):(t=null==t?0:kc(t),r=r===X?e:kc(r)),au(n,t,r)):[]}function Wo(n,t){return su(n,t)}function Lo(n,t,r){return hu(n,t,mi(r,2))}function Co(n,t){var r=null==n?0:n.length;if(r){var e=su(n,t);if(e<r&&Gf(n[e],t))return e}return-1}function Uo(n,t){return su(n,t,!0)}function Bo(n,t,r){return hu(n,t,mi(r,2),!0)}function To(n,t){if(null==n?0:n.length){var r=su(n,t,!0)-1;if(Gf(n[r],t))return r}return-1}function $o(n){return n&&n.length?pu(n):[]}function Do(n,t){return n&&n.length?pu(n,mi(t,2)):[]}function Mo(n){var t=null==n?0:n.length;return t?au(n,1,t):[]}function Fo(n,t,r){return n&&n.length?(t=r||t===X?1:kc(t),au(n,0,t<0?0:t)):[]}function No(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===X?1:kc(t),t=e-t,au(n,t<0?0:t,e)):[]}function Po(n,t){return n&&n.length?bu(n,mi(t,3),!1,!0):[]}function qo(n,t){return n&&n.length?bu(n,mi(t,3)):[]}function Zo(n){return n&&n.length?gu(n):[]}function Ko(n,t){return n&&n.length?gu(n,mi(t,2)):[]}function Vo(n,t){return t=typeof t=="function"?t:X,n&&n.length?gu(n,X,t):[]}function Go(n){if(!n||!n.length)return[];var t=0;return n=i(n,function(n){if(Jf(n))return t=Gl(n.length,t),!0}),I(t,function(t){return c(n,m(t))})}function Ho(t,r){if(!t||!t.length)return[];var e=Go(t);return null==r?e:c(e,function(t){return n(r,X,t)})}function Jo(n,t){return xu(n||[],t||[],Wr)}function Yo(n,t){return xu(n||[],t||[],fu)}function Qo(n){var t=Z(n);return t.__chain__=!0,t}function Xo(n,t){return t(n),n}function nf(n,t){return t(n)}function tf(){return Qo(this)}function rf(){return new Y(this.value(),this.__chain__)}function ef(){this.__values__===X&&(this.__values__=jc(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?X:this.__values__[this.__index__++]}}function uf(){return this}function of(n){for(var t,r=this;r instanceof J;){var e=eo(r);e.__index__=0,e.__values__=X,t?u.__wrapped__=e:t=e;var u=e;r=r.__wrapped__}return u.__wrapped__=n,t}function ff(){var n=this.__wrapped__;if(n instanceof Ut){var t=n;return this.__actions__.length&&(t=new Ut(this)),t=t.reverse(),t.__actions__.push({func:nf,args:[Eo],thisArg:X}),new Y(t,this.__chain__)}return this.thru(Eo)}function cf(){return wu(this.__wrapped__,this.__actions__)}function af(n,t,r){var e=bh(n)?u:Jr;return r&&Ui(n,t,r)&&(t=X),e(n,mi(t,3))}function lf(n,t){return(bh(n)?i:te)(n,mi(t,3))}function sf(n,t){return ee(yf(n,t),1)}function hf(n,t){return ee(yf(n,t),Wn)}function pf(n,t,r){return r=r===X?1:kc(r),ee(yf(n,t),r)}function _f(n,t){return(bh(n)?r:ys)(n,mi(t,3))}function vf(n,t){return(bh(n)?e:ds)(n,mi(t,3))}function gf(n,t,r,e){n=Hf(n)?n:ra(n),r=r&&!e?kc(r):0;var u=n.length;return r<0&&(r=Gl(u+r,0)),dc(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&y(n,t,r)>-1}function yf(n,t){return(bh(n)?c:Pe)(n,mi(t,3))}function df(n,t,r,e){return null==n?[]:(bh(t)||(t=null==t?[]:[t]),r=e?X:r,bh(r)||(r=null==r?[]:[r]),He(n,t,r))}function bf(n,t,r){var e=bh(n)?l:j,u=arguments.length<3;return e(n,mi(t,4),r,u,ys)}function wf(n,t,r){var e=bh(n)?s:j,u=arguments.length<3;return e(n,mi(t,4),r,u,ds)}function mf(n,t){return(bh(n)?i:te)(n,Uf(mi(t,3)))}function xf(n){return(bh(n)?Rr:iu)(n)}function jf(n,t,r){return t=(r?Ui(n,t,r):t===X)?1:kc(t),(bh(n)?zr:ou)(n,t)}function Af(n){return(bh(n)?Er:cu)(n)}function kf(n){if(null==n)return 0;if(Hf(n))return dc(n)?V(n):n.length;var t=zs(n);return t==Hn||t==rt?n.size:Me(n).length}function If(n,t,r){var e=bh(n)?h:lu;return r&&Ui(n,t,r)&&(t=X),e(n,mi(t,3))}function Of(n,t){if(typeof t!="function")throw new pl(en);return n=kc(n),function(){if(--n<1)return t.apply(this,arguments)}}function Rf(n,t,r){return t=r?X:t,t=n&&null==t?n.length:t,ai(n,xn,X,X,X,X,t)}function zf(n,t){var r;if(typeof t!="function")throw new pl(en);return n=kc(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=X),r}}function Ef(n,t,r){t=r?X:t;var e=ai(n,dn,X,X,X,X,X,t);return e.placeholder=Ef.placeholder,e}function Sf(n,t,r){t=r?X:t;var e=ai(n,bn,X,X,X,X,X,t);return e.placeholder=Sf.placeholder,e}function Wf(n,t,r){function e(t){var r=h,e=p;return h=p=X,d=t,v=n.apply(e,r)}function u(n){return d=n,g=Ws(f,t),b?e(n):v}function i(n){var r=n-y,e=n-d,u=t-r;return w?Hl(u,_-e):u}function o(n){var r=n-y,e=n-d;return y===X||r>=t||r<0||w&&e>=_}function f(){var n=fh();return o(n)?c(n):(g=Ws(f,i(n)),X)}
vendor: 13,437 bytes, line 401
401function c(n){return g=X,m&&h?e(n):(h=p=X,v)}function a(){g!==X&&As(g),d=0,h=y=p=g=X}function l(){return g===X?v:c(fh())}function s(){var n=fh(),r=o(n);if(h=arguments,p=this,y=n,r){if(g===X)return u(y);if(w)return As(g),g=Ws(f,t),e(y)}return g===X&&(g=Ws(f,t)),v}var h,p,_,v,g,y,d=0,b=!1,w=!1,m=!0;if(typeof n!="function")throw new pl(en);return t=Oc(t)||0,fc(r)&&(b=!!r.leading,w="maxWait"in r,_=w?Gl(Oc(r.maxWait)||0,t):_,m="trailing"in r?!!r.trailing:m),s.cancel=a,s.flush=l,s}function Lf(n){return ai(n,An)}function Cf(n,t){if(typeof n!="function"||null!=t&&typeof t!="function")throw new pl(en);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Cf.Cache||hr),r}function Uf(n){if(typeof n!="function")throw new pl(en);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function Bf(n){return zf(2,n)}function Tf(n,t){if(typeof n!="function")throw new pl(en);return t=t===X?t:kc(t),uu(n,t)}function $f(t,r){if(typeof t!="function")throw new pl(en);return r=null==r?0:Gl(kc(r),0),uu(function(e){var u=e[r],i=Iu(e,0,r);return u&&a(i,u),n(t,this,i)})}function Df(n,t,r){var e=!0,u=!0;if(typeof n!="function")throw new pl(en);return fc(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Wf(n,t,{leading:e,maxWait:t,trailing:u})}function Mf(n){return Rf(n,1)}function Ff(n,t){return ph(Au(t),n)}function Nf(){if(!arguments.length)return[];var n=arguments[0];return bh(n)?n:[n]}function Pf(n){return Nr(n,hn)}function qf(n,t){return t=typeof t=="function"?t:X,Nr(n,hn,t)}function Zf(n){return Nr(n,ln|hn)}function Kf(n,t){return t=typeof t=="function"?t:X,Nr(n,ln|hn,t)}function Vf(n,t){return null==t||qr(n,t,Pc(t))}function Gf(n,t){return n===t||n!==n&&t!==t}function Hf(n){return null!=n&&oc(n.length)&&!uc(n)}function Jf(n){return cc(n)&&Hf(n)}function Yf(n){return n===!0||n===!1||cc(n)&&we(n)==Pn}function Qf(n){return cc(n)&&1===n.nodeType&&!gc(n)}function Xf(n){if(null==n)return!0;if(Hf(n)&&(bh(n)||typeof n=="string"||typeof n.splice=="function"||mh(n)||Ih(n)||dh(n)))return!n.length;var t=zs(n);if(t==Hn||t==rt)return!n.size;if(Mi(n))return!Me(n).length;for(var r in n)if(bl.call(n,r))return!1;return!0}function nc(n,t){return Se(n,t)}function tc(n,t,r){r=typeof r=="function"?r:X;var e=r?r(n,t):X;return e===X?Se(n,t,X,r):!!e}function rc(n){if(!cc(n))return!1;var t=we(n);return t==Kn||t==Zn||typeof n.message=="string"&&typeof n.name=="string"&&!gc(n)}function ec(n){return typeof n=="number"&&Zl(n)}function uc(n){if(!fc(n))return!1;var t=we(n);return t==Vn||t==Gn||t==Nn||t==nt}function ic(n){return typeof n=="number"&&n==kc(n)}function oc(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Ln}function fc(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function cc(n){return null!=n&&typeof n=="object"}function ac(n,t){return n===t||Ce(n,t,ji(t))}function lc(n,t,r){return r=typeof r=="function"?r:X,Ce(n,t,ji(t),r)}function sc(n){return vc(n)&&n!=+n}function hc(n){if(Es(n))throw new fl(rn);return Ue(n)}function pc(n){return null===n}function _c(n){return null==n}function vc(n){return typeof n=="number"||cc(n)&&we(n)==Jn}function gc(n){if(!cc(n)||we(n)!=Qn)return!1;var t=El(n);if(null===t)return!0;var r=bl.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&dl.call(r)==jl}function yc(n){return ic(n)&&n>=-Ln&&n<=Ln}function dc(n){return typeof n=="string"||!bh(n)&&cc(n)&&we(n)==et}function bc(n){return typeof n=="symbol"||cc(n)&&we(n)==ut}function wc(n){return n===X}function mc(n){return cc(n)&&zs(n)==ot}function xc(n){return cc(n)&&we(n)==ft}function jc(n){if(!n)return[];if(Hf(n))return dc(n)?G(n):Tu(n);if(Ul&&n[Ul])return D(n[Ul]());var t=zs(n);return(t==Hn?M:t==rt?P:ra)(n)}function Ac(n){if(!n)return 0===n?n:0;if(n=Oc(n),n===Wn||n===-Wn){return(n<0?-1:1)*Cn}return n===n?n:0}function kc(n){var t=Ac(n),r=t%1;return t===t?r?t-r:t:0}function Ic(n){return n?Fr(kc(n),0,Bn):0}function Oc(n){if(typeof n=="number")return n;if(bc(n))return Un;if(fc(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=fc(t)?t+"":t}if(typeof n!="string")return 0===n?n:+n;n=R(n);var r=Zt.test(n);return r||Vt.test(n)?Xr(n.slice(2),r?2:8):qt.test(n)?Un:+n}function Rc(n){return $u(n,qc(n))}function zc(n){return n?Fr(kc(n),-Ln,Ln):0===n?n:0}function Ec(n){return null==n?"":vu(n)}function Sc(n,t){var r=gs(n);return null==t?r:Ur(r,t)}function Wc(n,t){return v(n,mi(t,3),ue)}function Lc(n,t){return v(n,mi(t,3),oe)}function Cc(n,t){return null==n?n:bs(n,mi(t,3),qc)}function Uc(n,t){return null==n?n:ws(n,mi(t,3),qc)}function Bc(n,t){return n&&ue(n,mi(t,3))}function Tc(n,t){return n&&oe(n,mi(t,3))}function $c(n){return null==n?[]:fe(n,Pc(n))}function Dc(n){return null==n?[]:fe(n,qc(n))}function Mc(n,t,r){var e=null==n?X:_e(n,t);return e===X?r:e}function Fc(n,t){return null!=n&&Ri(n,t,xe)}function Nc(n,t){return null!=n&&Ri(n,t,je)}function Pc(n){return Hf(n)?Or(n):Me(n)}function qc(n){return Hf(n)?Or(n,!0):Fe(n)}function Zc(n,t){var r={};return t=mi(t,3),ue(n,function(n,e,u){Tr(r,t(n,e,u),n)}),r}function Kc(n,t){var r={};return t=mi(t,3),ue(n,function(n,e,u){Tr(r,e,t(n,e,u))}),r}function Vc(n,t){return Gc(n,Uf(mi(t)))}function Gc(n,t){if(null==n)return{};var r=c(di(n),function(n){return[n]});return t=mi(t),Ye(n,r,function(n,r){return t(n,r[0])})}function Hc(n,t,r){t=ku(t,n);var e=-1,u=t.length;for(u||(u=1,n=X);++e<u;){var i=null==n?X:n[no(t[e])];i===X&&(e=u,i=r),n=uc(i)?i.call(n):i}return n}function Jc(n,t,r){return null==n?n:fu(n,t,r)}function Yc(n,t,r,e){return e=typeof e=="function"?e:X,null==n?n:fu(n,t,r,e)}function Qc(n,t,e){var u=bh(n),i=u||mh(n)||Ih(n);if(t=mi(t,4),null==e){var o=n&&n.constructor;e=i?u?new o:[]:fc(n)&&uc(o)?gs(El(n)):{}}return(i?r:ue)(n,function(n,r,u){return t(e,n,r,u)}),e}function Xc(n,t){return null==n||yu(n,t)}function na(n,t,r){return null==n?n:du(n,t,Au(r))}function ta(n,t,r,e){return e=typeof e=="function"?e:X,null==n?n:du(n,t,Au(r),e)}function ra(n){return null==n?[]:E(n,Pc(n))}function ea(n){return null==n?[]:E(n,qc(n))}function ua(n,t,r){return r===X&&(r=t,t=X),r!==X&&(r=Oc(r),r=r===r?r:0),t!==X&&(t=Oc(t),t=t===t?t:0),Fr(Oc(n),t,r)}function ia(n,t,r){return t=Ac(t),r===X?(r=t,t=0):r=Ac(r),n=Oc(n),Ae(n,t,r)}function oa(n,t,r){if(r&&typeof r!="boolean"&&Ui(n,t,r)&&(t=r=X),r===X&&(typeof t=="boolean"?(r=t,t=X):typeof n=="boolean"&&(r=n,n=X)),n===X&&t===X?(n=0,t=1):(n=Ac(n),t===X?(t=n,n=0):t=Ac(t)),n>t){var e=n;n=t,t=e}if(r||n%1||t%1){var u=Ql();return Hl(n+u*(t-n+Qr("1e-"+((u+"").length-1))),t)}return tu(n,t)}function fa(n){return Qh(Ec(n).toLowerCase())}function ca(n){return n=Ec(n),n&&n.replace(Ht,ve).replace(Mr,"")}function aa(n,t,r){n=Ec(n),t=vu(t);var e=n.length;r=r===X?e:Fr(kc(r),0,e);var u=r;return r-=t.length,r>=0&&n.slice(r,u)==t}function la(n){return n=Ec(n),n&&kt.test(n)?n.replace(jt,ge):n}function sa(n){return n=Ec(n),n&&Lt.test(n)?n.replace(Wt,"\\$&"):n}function ha(n,t,r){n=Ec(n),t=kc(t);var e=t?V(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return ri(Nl(u),r)+n+ri(Fl(u),r)}function pa(n,t,r){n=Ec(n),t=kc(t);var e=t?V(n):0;return t&&e<t?n+ri(t-e,r):n}function _a(n,t,r){n=Ec(n),t=kc(t);var e=t?V(n):0;return t&&e<t?ri(t-e,r)+n:n}function va(n,t,r){return r||null==t?t=0:t&&(t=+t),Yl(Ec(n).replace(Ct,""),t||0)}function ga(n,t,r){return t=(r?Ui(n,t,r):t===X)?1:kc(t),eu(Ec(n),t)}function ya(){var n=arguments,t=Ec(n[0]);return n.length<3?t:t.replace(n[1],n[2])}function da(n,t,r){return r&&typeof r!="number"&&Ui(n,t,r)&&(t=r=X),(r=r===X?Bn:r>>>0)?(n=Ec(n),n&&(typeof t=="string"||null!=t&&!Ah(t))&&(t=vu(t),!t&&T(n))?Iu(G(n),0,r):n.split(t,r)):[]}function ba(n,t,r){return n=Ec(n),r=null==r?0:Fr(kc(r),0,n.length),t=vu(t),n.slice(r,r+t.length)==t}function wa(n,t,e){var u=Z.templateSettings;e&&Ui(n,t,e)&&(t=X),n=Ec(n),t=Wh({},t,u,li);var i=Wh({},t.imports,u.imports,li),o=Pc(i),f=E(i,o);r(o,function(n){if(Mt.test(n))throw new fl(on)});var c,a,l=0,s=t.interpolate||Jt,h="__p+='",p=sl((t.escape||Jt).source+"|"+s.source+"|"+(s===Rt?Nt:Jt).source+"|"+(t.evaluate||Jt).source+"|$","g"),_=bl.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";n.replace(p,function(t,r,e,u,i,o){return e||(e=u),h+=n.slice(l,o).replace(Yt,U),r&&(c=!0,h+="'+__e("+r+")+'"),i&&(a=!0,h+="';"+i+";\n__p+='"),e&&(h+="'+((__t=("+e+"))==null?'':__t)+'"),l=o+t.length,t}),h+="';";var v=bl.call(t,"variable")&&t.variable;if(v){if(Mt.test(v))throw new fl(un)}else h="with(obj){"+h+"}";h=(a?h.replace(bt,""):h).replace(wt,"$1").replace(mt,"$1;"),h="function("+(v||"obj")+"){"+(v?"":"obj||(obj={});")+"var __t,__p=''"+(c?",__e=_.escape":"")+(a?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+h+"return __p}";var g=Xh(function(){return cl(o,_+"return "+h).apply(X,f)});if(g.source=h,rc(g))throw g;return g}function ma(n){return Ec(n).toLowerCase()}function xa(n){return Ec(n).toUpperCase()}function ja(n,t,r){if(n=Ec(n),n&&(r||t===X))return R(n);if(!n||!(t=vu(t)))return n;var e=G(n),u=G(t);return Iu(e,W(e,u),L(e,u)+1).join("")}function Aa(n,t,r){if(n=Ec(n),n&&(r||t===X))return n.slice(0,H(n)+1);if(!n||!(t=vu(t)))return n;var e=G(n);return Iu(e,0,L(e,G(t))+1).join("")}function ka(n,t,r){if(n=Ec(n),n&&(r||t===X))return n.replace(Ct,"");if(!n||!(t=vu(t)))return n;var e=G(n);return Iu(e,W(e,G(t))).join("")}function Ia(n,t){var r=kn,e=In;if(fc(t)){var u="separator"in t?t.separator:u;r="length"in t?kc(t.length):r,e="omission"in t?vu(t.omission):e}n=Ec(n);var i=n.length;if(T(n)){var o=G(n);i=o.length}if(r>=i)return n;var f=r-V(e);if(f<1)return e;var c=o?Iu(o,0,f).join(""):n.slice(0,f);if(u===X)return c+e;if(o&&(f+=c.length-f),Ah(u)){if(n.slice(f).search(u)){var a,l=c;for(u.global||(u=sl(u.source,Ec(Pt.exec(u))+"g")),u.lastIndex=0;a=u.exec(l);)var s=a.index;c=c.slice(0,s===X?f:s)}}else if(n.indexOf(vu(u),f)!=f){var h=c.lastIndexOf(u);h>-1&&(c=c.slice(0,h))}return c+e}function Oa(n){return n=Ec(n),n&&At.test(n)?n.replace(xt,ye):n}function Ra(n,t,r){return n=Ec(n),t=r?X:t,t===X?$(n)?Q(n):_(n):n.match(t)||[]}function za(t){var r=null==t?0:t.length,e=mi();return t=r?c(t,function(n){if("function"!=typeof n[1])throw new pl(en);return[e(n[0]),n[1]]}):[],uu(function(e){for(var u=-1;++u<r;){var i=t[u];if(n(i[0],this,e))return n(i[1],this,e)}})}function Ea(n){return Pr(Nr(n,ln))}function Sa(n){return function(){return n}}function Wa(n,t){return null==n||n!==n?t:n}function La(n){return n}function Ca(n){return De(typeof n=="function"?n:Nr(n,ln))}function Ua(n){return qe(Nr(n,ln))}function Ba(n,t){return Ze(n,Nr(t,ln))}function Ta(n,t,e){var u=Pc(t),i=fe(t,u);null!=e||fc(t)&&(i.length||!u.length)||(e=t,t=n,n=this,i=fe(t,Pc(t)));var o=!(fc(e)&&"chain"in e&&!e.chain),f=uc(n);return r(i,function(r){var e=t[r];n[r]=e,f&&(n.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=n(this.__wrapped__);return(r.__actions__=Tu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,a([this.value()],arguments))})}),n}function $a(){return re._===this&&(re._=Al),this}function Da(){}function Ma(n){return n=kc(n),uu(function(t){return Ge(t,n)})}function Fa(n){return Bi(n)?m(no(n)):Qe(n)}function Na(n){return function(t){return null==n?X:_e(n,t)}}function Pa(){return[]}function qa(){return!1}function Za(){return{}}function Ka(){return""}function Va(){return!0}function Ga(n,t){if(n=kc(n),n<1||n>Ln)return[];var r=Bn,e=Hl(n,Bn);t=mi(t),n-=Bn;for(var u=I(e,t);++r<n;)t(r);return u}function Ha(n){return bh(n)?c(n,no):bc(n)?[n]:Tu(Cs(Ec(n)))}function Ja(n){var t=++wl;return Ec(n)+t}function Ya(n){return n&&n.length?Yr(n,La,me):X}function Qa(n,t){return n&&n.length?Yr(n,mi(t,2),me):X}function Xa(n){return w(n,La)}function nl(n,t){return w(n,mi(t,2))}function tl(n){return n&&n.length?Yr(n,La,Ne):X}function rl(n,t){return n&&n.length?Yr(n,mi(t,2),Ne):X}function el(n){return n&&n.length?k(n,La):0}function ul(n,t){return n&&n.length?k(n,mi(t,2)):0}x=null==x?re:be.defaults(re.Object(),x,be.pick(re,Zr));var il=x.Array,ol=x.Date,fl=x.Error,cl=x.Function,al=x.Math,ll=x.Object,sl=x.RegExp,hl=x.String,pl=x.TypeError,_l=il.prototype,vl=cl.prototype,gl=ll.prototype,yl=x["__core-js_shared__"],dl=vl.toString,bl=gl.hasOwnProperty,wl=0,ml=function(){var n=/[^.]+$/.exec(yl&&yl.keys&&yl.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),xl=gl.toString,jl=dl.call(ll),Al=re._,kl=sl("^"+dl.call(bl).replace(Wt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Il=ie?x.Buffer:X,Ol=x.Symbol,Rl=x.Uint8Array,zl=Il?Il.allocUnsafe:X,El=F(ll.getPrototypeOf,ll),Sl=ll.create,Wl=gl.propertyIsEnumerable,Ll=_l.splice,Cl=Ol?Ol.isConcatSpreadable:X,Ul=Ol?Ol.iterator:X,Bl=Ol?Ol.toStringTag:X,Tl=function(){try{var n=Ai(ll,"defineProperty");return n({},"",{}),n}catch(n){}}(),$l=x.clearTimeout!==re.clearTimeout&&x.clearTimeout,Dl=ol&&ol.now!==re.Date.now&&ol.now,Ml=x.setTimeout!==re.setTimeout&&x.setTimeout,Fl=al.ceil,Nl=al.floor,Pl=ll.getOwnPropertySymbols,ql=Il?Il.isBuffer:X,Zl=x.isFinite,Kl=_l.join,Vl=F(ll.keys,ll),Gl=al.max,Hl=al.min,Jl=ol.now,Yl=x.parseInt,Ql=al.random,Xl=_l.reverse,ns=Ai(x,"DataView"),ts=Ai(x,"Map"),rs=Ai(x,"Promise"),es=Ai(x,"Set"),us=Ai(x,"WeakMap"),is=Ai(ll,"create"),os=us&&new us,fs={},cs=to(ns),as=to(ts),ls=to(rs),ss=to(es),hs=to(us),ps=Ol?Ol.prototype:X,_s=ps?ps.valueOf
vendor: 4,310 bytes, line 401
401:X,vs=ps?ps.toString:X,gs=function(){function n(){}return function(t){if(!fc(t))return{};if(Sl)return Sl(t);n.prototype=t;var r=new n;return n.prototype=X,r}}();Z.templateSettings={escape:It,evaluate:Ot,interpolate:Rt,variable:"",imports:{_:Z}},Z.prototype=J.prototype,Z.prototype.constructor=Z,Y.prototype=gs(J.prototype),Y.prototype.constructor=Y,Ut.prototype=gs(J.prototype),Ut.prototype.constructor=Ut,nr.prototype.clear=tr,nr.prototype.delete=rr,nr.prototype.get=er,nr.prototype.has=ur,nr.prototype.set=ir,or.prototype.clear=fr,or.prototype.delete=cr,or.prototype.get=ar,or.prototype.has=lr,or.prototype.set=sr,hr.prototype.clear=pr,hr.prototype.delete=_r,hr.prototype.get=vr,hr.prototype.has=gr,hr.prototype.set=yr,dr.prototype.add=dr.prototype.push=br,dr.prototype.has=wr,mr.prototype.clear=xr,mr.prototype.delete=jr,mr.prototype.get=Ar,mr.prototype.has=kr,mr.prototype.set=Ir;var ys=Pu(ue),ds=Pu(oe,!0),bs=qu(),ws=qu(!0),ms=os?function(n,t){return os.set(n,t),n}:La,xs=Tl?function(n,t){return Tl(n,"toString",{configurable:!0,enumerable:!1,value:Sa(t),writable:!0})}:La,js=uu,As=$l||function(n){return re.clearTimeout(n)},ks=es&&1/P(new es([,-0]))[1]==Wn?function(n){return new es(n)}:Da,Is=os?function(n){return os.get(n)}:Da,Os=Pl?function(n){return null==n?[]:(n=ll(n),i(Pl(n),function(t){return Wl.call(n,t)}))}:Pa,Rs=Pl?function(n){for(var t=[];n;)a(t,Os(n)),n=El(n);return t}:Pa,zs=we;(ns&&zs(new ns(new ArrayBuffer(1)))!=at||ts&&zs(new ts)!=Hn||rs&&zs(rs.resolve())!=Xn||es&&zs(new es)!=rt||us&&zs(new us)!=ot)&&(zs=function(n){var t=we(n),r=t==Qn?n.constructor:X,e=r?to(r):"";if(e)switch(e){case cs:return at;case as:return Hn;case ls:return Xn;case ss:return rt;case hs:return ot}return t});var Es=yl?uc:qa,Ss=Qi(ms),Ws=Ml||function(n,t){return re.setTimeout(n,t)},Ls=Qi(xs),Cs=Pi(function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(St,function(n,r,e,u){t.push(e?u.replace(Ft,"$1"):r||n)}),t}),Us=uu(function(n,t){return Jf(n)?Hr(n,ee(t,1,Jf,!0)):[]}),Bs=uu(function(n,t){var r=jo(t);return Jf(r)&&(r=X),Jf(n)?Hr(n,ee(t,1,Jf,!0),mi(r,2)):[]}),Ts=uu(function(n,t){var r=jo(t);return Jf(r)&&(r=X),Jf(n)?Hr(n,ee(t,1,Jf,!0),X,r):[]}),$s=uu(function(n){var t=c(n,ju);return t.length&&t[0]===n[0]?ke(t):[]}),Ds=uu(function(n){var t=jo(n),r=c(n,ju);return t===jo(r)?t=X:r.pop(),r.length&&r[0]===n[0]?ke(r,mi(t,2)):[]}),Ms=uu(function(n){var t=jo(n),r=c(n,ju);return t=typeof t=="function"?t:X,t&&r.pop(),r.length&&r[0]===n[0]?ke(r,X,t):[]}),Fs=uu(Io),Ns=gi(function(n,t){var r=null==n?0:n.length,e=$r(n,t);return nu(n,c(t,function(n){return Ci(n,r)?+n:n}).sort(Lu)),e}),Ps=uu(function(n){return gu(ee(n,1,Jf,!0))}),qs=uu(function(n){var t=jo(n);return Jf(t)&&(t=X),gu(ee(n,1,Jf,!0),mi(t,2))}),Zs=uu(function(n){var t=jo(n);return t=typeof t=="function"?t:X,gu(ee(n,1,Jf,!0),X,t)}),Ks=uu(function(n,t){return Jf(n)?Hr(n,t):[]}),Vs=uu(function(n){return mu(i(n,Jf))}),Gs=uu(function(n){var t=jo(n);return Jf(t)&&(t=X),mu(i(n,Jf),mi(t,2))}),Hs=uu(function(n){var t=jo(n);return t=typeof t=="function"?t:X,mu(i(n,Jf),X,t)}),Js=uu(Go),Ys=uu(function(n){var t=n.length,r=t>1?n[t-1]:X;return r=typeof r=="function"?(n.pop(),r):X,Ho(n,r)}),Qs=gi(function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,u=function(t){return $r(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Ut&&Ci(r)?(e=e.slice(r,+r+(t?1:0)),e.__actions__.push({func:nf,args:[u],thisArg:X}),new Y(e,this.__chain__).thru(function(n){return t&&!n.length&&n.push(X),n})):this.thru(u)}),Xs=Fu(function(n,t,r){bl.call(n,r)?++n[r]:Tr(n,r,1)}),nh=Ju(ho),th=Ju(po),rh=Fu(function(n,t,r){bl.call(n,r)?n[r].push(t):Tr(n,r,[t])}),eh=uu(function(t,r,e){var u=-1,i=typeof r=="function",o=Hf(t)?il(t.length):[];return ys(t,function(t){o[++u]=i?n(r,t,e):Oe(t,r,e)}),o}),uh=Fu(function(n,t,r){Tr(n,r,t)}),ih=Fu(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),oh=uu(function(n,t){if(null==n)return[];var r=t.length;return r>1&&Ui(n,t[0],t[1])?t=[]:r>2&&Ui(t[0],t[1],t[2])&&(t=[t[0]]),He(n,ee(t,1),[])}),fh=Dl||function(){return re.Date.now()},ch=uu(function(n,t,r){var e=vn;if(r.length){var u=N(r,wi(ch));e|=wn}return ai(n,e,t,r,u)}),ah=uu(function(n,t,r){var e=vn|gn;if(r.length){var u=N(r,wi(ah));e|=wn}return ai(t,e,n,r,u)}),lh=uu(function(n,t){return Gr(n,1,t)}),sh=uu(function(n,t,r){return Gr(n,Oc(t)||0,r)});
vendor: 3,123 bytes, line 401
401Cf.Cache=hr;var hh=js(function(t,r){r=1==r.length&&bh(r[0])?c(r[0],z(mi())):c(ee(r,1),z(mi()));var e=r.length;return uu(function(u){for(var i=-1,o=Hl(u.length,e);++i<o;)u[i]=r[i].call(this,u[i]);return n(t,this,u)})}),ph=uu(function(n,t){return ai(n,wn,X,t,N(t,wi(ph)))}),_h=uu(function(n,t){return ai(n,mn,X,t,N(t,wi(_h)))}),vh=gi(function(n,t){return ai(n,jn,X,X,X,t)}),gh=ii(me),yh=ii(function(n,t){return n>=t}),dh=Re(function(){return arguments}())?Re:function(n){return cc(n)&&bl.call(n,"callee")&&!Wl.call(n,"callee")},bh=il.isArray,wh=ce?z(ce):ze,mh=ql||qa,xh=ae?z(ae):Ee,jh=le?z(le):Le,Ah=se?z(se):Be,kh=he?z(he):Te,Ih=pe?z(pe):$e,Oh=ii(Ne),Rh=ii(function(n,t){return n<=t}),zh=Nu(function(n,t){if(Mi(t)||Hf(t))return $u(t,Pc(t),n),X;for(var r in t)bl.call(t,r)&&Wr(n,r,t[r])}),Eh=Nu(function(n,t){$u(t,qc(t),n)}),Sh=Nu(function(n,t,r,e){$u(t,qc(t),n,e)}),Wh=Nu(function(n,t,r,e){$u(t,Pc(t),n,e)}),Lh=gi($r),Ch=uu(function(n,t){n=ll(n);var r=-1,e=t.length,u=e>2?t[2]:X;for(u&&Ui(t[0],t[1],u)&&(e=1);++r<e;)for(var i=t[r],o=qc(i),f=-1,c=o.length;++f<c;){var a=o[f],l=n[a];(l===X||Gf(l,gl[a])&&!bl.call(n,a))&&(n[a]=i[a])}return n}),Uh=uu(function(t){return t.push(X,si),n(Mh,X,t)}),Bh=Xu(function(n,t,r){null!=t&&typeof t.toString!="function"&&(t=xl.call(t)),n[t]=r},Sa(La)),Th=Xu(function(n,t,r){null!=t&&typeof t.toString!="function"&&(t=xl.call(t)),bl.call(n,t)?n[t].push(r):n[t]=[r]},mi),$h=uu(Oe),Dh=Nu(function(n,t,r){Ke(n,t,r)}),Mh=Nu(function(n,t,r,e){Ke(n,t,r,e)}),Fh=gi(function(n,t){var r={};if(null==n)return r;var e=!1;t=c(t,function(t){return t=ku(t,n),e||(e=t.length>1),t}),$u(n,di(n),r),e&&(r=Nr(r,ln|sn|hn,hi));for(var u=t.length;u--;)yu(r,t[u]);return r}),Nh=gi(function(n,t){return null==n?{}:Je(n,t)}),Ph=ci(Pc),qh=ci(qc),Zh=Vu(function(n,t,r){return t=t.toLowerCase(),n+(r?fa(t):t)}),Kh=Vu(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Vh=Vu(function(n,t,r){return n+(r?" ":"")+t.toLowerCase()}),Gh=Ku("toLowerCase"),Hh=Vu(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),Jh=Vu(function(n,t,r){return n+(r?" ":"")+Qh(t)}),Yh=Vu(function(n,t,r){return n+(r?" ":"")+t.toUpperCase()}),Qh=Ku("toUpperCase"),Xh=uu(function(t,r){try{return n(t,X,r)}catch(n){return rc(n)?n:new fl(n)}}),np=gi(function(n,t){return r(t,function(t){t=no(t),Tr(n,t,ch(n[t],n))}),n}),tp=Yu(),rp=Yu(!0),ep=uu(function(n,t){return function(r){return Oe(r,n,t)}}),up=uu(function(n,t){return function(r){return Oe(n,r,t)}}),ip=ti(c),op=ti(u),fp=ti(h),cp=ui(),ap=ui(!0),lp=ni(function(n,t){return n+t},0),sp=fi("ceil"),hp=ni(function(n,t){return n/t},1),pp=fi("floor"),_p=ni(function(n,t){return n*t},1),vp=fi("round"),gp=ni(function(n,t){return n-t},0);return Z.after=Of,Z.ary=Rf,Z.assign=zh,Z.assignIn=Eh,Z.assignInWith=Sh,Z.assignWith=Wh,Z.at=Lh,Z.before=zf,Z.bind=ch,Z.bindAll=np,Z.bindKey=ah,Z.castArray=Nf,Z.chain=Qo,Z.chunk=uo,Z.compact=io,Z.concat=oo,Z.cond=za,Z.conforms=Ea,Z.constant=Sa,Z.countBy=Xs,Z.create=Sc,Z.curry=Ef,Z.curryRight=Sf,Z.debounce=Wf,Z.defaults=Ch,Z.defaultsDeep=Uh,Z.defer=lh,Z.delay=sh,Z.difference=Us,Z.differenceBy=Bs,Z.differenceWith=Ts,Z.drop=fo,Z.dropRight=co,Z.dropRightWhile=a
vendor: 4,507 bytes, line 401
401o,Z.dropWhile=lo,Z.fill=so,Z.filter=lf,Z.flatMap=sf,Z.flatMapDeep=hf,Z.flatMapDepth=pf,Z.flatten=_o,Z.flattenDeep=vo,Z.flattenDepth=go,Z.flip=Lf,Z.flow=tp,Z.flowRight=rp,Z.fromPairs=yo,Z.functions=$c,Z.functionsIn=Dc,Z.groupBy=rh,Z.initial=mo,Z.intersection=$s,Z.intersectionBy=Ds,Z.intersectionWith=Ms,Z.invert=Bh,Z.invertBy=Th,Z.invokeMap=eh,Z.iteratee=Ca,Z.keyBy=uh,Z.keys=Pc,Z.keysIn=qc,Z.map=yf,Z.mapKeys=Zc,Z.mapValues=Kc,Z.matches=Ua,Z.matchesProperty=Ba,Z.memoize=Cf,Z.merge=Dh,Z.mergeWith=Mh,Z.method=ep,Z.methodOf=up,Z.mixin=Ta,Z.negate=Uf,Z.nthArg=Ma,Z.omit=Fh,Z.omitBy=Vc,Z.once=Bf,Z.orderBy=df,Z.over=ip,Z.overArgs=hh,Z.overEvery=op,Z.overSome=fp,Z.partial=ph,Z.partialRight=_h,Z.partition=ih,Z.pick=Nh,Z.pickBy=Gc,Z.property=Fa,Z.propertyOf=Na,Z.pull=Fs,Z.pullAll=Io,Z.pullAllBy=Oo,Z.pullAllWith=Ro,Z.pullAt=Ns,Z.range=cp,Z.rangeRight=ap,Z.rearg=vh,Z.reject=mf,Z.remove=zo,Z.rest=Tf,Z.reverse=Eo,Z.sampleSize=jf,Z.set=Jc,Z.setWith=Yc,Z.shuffle=Af,Z.slice=So,Z.sortBy=oh,Z.sortedUniq=$o,Z.sortedUniqBy=Do,Z.split=da,Z.spread=$f,Z.tail=Mo,Z.take=Fo,Z.takeRight=No,Z.takeRightWhile=Po,Z.takeWhile=qo,Z.tap=Xo,Z.throttle=Df,Z.thru=nf,Z.toArray=jc,Z.toPairs=Ph,Z.toPairsIn=qh,Z.toPath=Ha,Z.toPlainObject=Rc,Z.transform=Qc,Z.unary=Mf,Z.union=Ps,Z.unionBy=qs,Z.unionWith=Zs,Z.uniq=Zo,Z.uniqBy=Ko,Z.uniqWith=Vo,Z.unset=Xc,Z.unzip=Go,Z.unzipWith=Ho,Z.update=na,Z.updateWith=ta,Z.values=ra,Z.valuesIn=ea,Z.without=Ks,Z.words=Ra,Z.wrap=Ff,Z.xor=Vs,Z.xorBy=Gs,Z.xorWith=Hs,Z.zip=Js,Z.zipObject=Jo,Z.zipObjectDeep=Yo,Z.zipWith=Ys,Z.entries=Ph,Z.entriesIn=qh,Z.extend=Eh,Z.extendWith=Sh,Ta(Z,Z),Z.add=lp,Z.attempt=Xh,Z.camelCase=Zh,Z.capitalize=fa,Z.ceil=sp,Z.clamp=ua,Z.clone=Pf,Z.cloneDeep=Zf,Z.cloneDeepWith=Kf,Z.cloneWith=qf,Z.conformsTo=Vf,Z.deburr=ca,Z.defaultTo=Wa,Z.divide=hp,Z.endsWith=aa,Z.eq=Gf,Z.escape=la,Z.escapeRegExp=sa,Z.every=af,Z.find=nh,Z.findIndex=ho,Z.findKey=Wc,Z.findLast=th,Z.findLastIndex=po,Z.findLastKey=Lc,Z.floor=pp,Z.forEach=_f,Z.forEachRight=vf,Z.forIn=Cc,Z.forInRight=Uc,Z.forOwn=Bc,Z.forOwnRight=Tc,Z.get=Mc,Z.gt=gh,Z.gte=yh,Z.has=Fc,Z.hasIn=Nc,Z.head=bo,Z.identity=La,Z.includes=gf,Z.indexOf=wo,Z.inRange=ia,Z.invoke=$h,Z.isArguments=dh,Z.isArray=bh,Z.isArrayBuffer=wh,Z.isArrayLike=Hf,Z.isArrayLikeObject=Jf,Z.isBoolean=Yf,Z.isBuffer=mh,Z.isDate=xh,Z.isElement=Qf,Z.isEmpty=Xf,Z.isEqual=nc,Z.isEqualWith=tc,Z.isError=rc,Z.isFinite=ec,Z.isFunction=uc,Z.isInteger=ic,Z.isLength=oc,Z.isMap=jh,Z.isMatch=ac,Z.isMatchWith=lc,Z.isNaN=sc,Z.isNative=hc,Z.isNil=_c,Z.isNull=pc,Z.isNumber=vc,Z.isObject=fc,Z.isObjectLike=cc,Z.isPlainObject=gc,Z.isRegExp=Ah,Z.isSafeInteger=yc,Z.isSet=kh,Z.isString=dc,Z.isSymbol=bc,Z.isTypedArray=Ih,Z.isUndefined=wc,Z.isWeakMap=mc,Z.isWeakSet=xc,Z.join=xo,Z.kebabCase=Kh,Z.last=jo,Z.lastIndexOf=Ao,Z.lowerCase=Vh,Z.lowerFirst=Gh,Z.lt=Oh,Z.lte=Rh,Z.max=Ya,Z.maxBy=Qa,Z.mean=Xa,Z.meanBy=nl,Z.min=tl,Z.minBy=rl,Z.stubArray=Pa,Z.stubFalse=qa,Z.stubObject=Za,Z.stubString=Ka,Z.stubTrue=Va,Z.multiply=_p,Z.nth=ko,Z.noConflict=$a,Z.noop=Da,Z.now=fh,Z.pad=ha,Z.padEnd=pa,Z.padStart=_a,Z.parseInt=va,Z.random=oa,Z.reduce=bf,Z.reduceRight=wf,Z.repeat=ga,Z.replace=ya,Z.result=Hc,Z.round=vp,Z.runInContext=p,Z.sample=xf,Z.size=kf,Z.snakeCase=Hh,Z.some=If,Z.sortedIndex=Wo,Z.sortedIndexBy=Lo,Z.sortedIndexOf=Co,Z.sortedLastIndex=Uo,Z.sortedLastIndexBy=Bo,Z.sortedLastIndexOf=To,Z.startCase=Jh,Z.startsWith=ba,Z.subtract=gp,Z.sum=el,Z.sumBy=ul,Z.template=wa,Z.times=Ga,Z.toFinite=Ac,Z.toInteger=kc,Z.toLength=Ic,Z.toLower=ma,Z.toNumber=Oc,Z.toSafeInteger=zc,Z.toString=Ec,Z.toUpper=xa,Z.trim=ja,Z.trimEnd=Aa,Z.trimStart=ka,Z.truncate=Ia,Z.unescape=Oa,Z.uniqueId=Ja,Z.upperCase=Yh,Z.upperFirst=Qh,Z.each=_f,Z.eachRight=vf,Z.first=bo,Ta(Z,function(){var n={};return ue(Z,function(t,r){bl.call(Z.prototype,r)||(n[r]=t)}),n}(),{chain:!1}),Z.VERSION=nn,r(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){Z[n].placeholder=Z}),r(["drop","take"],function(n,t){Ut.prototype[n]=function(r){r=r===X?1:Gl(kc(r),0);var e=this.__filtered__&&!t?new Ut(this):this.clone();return e.__filtered__?e.__takeCount__=Hl(r,e.__takeCount__):e.__views__.push({size:Hl(r,Bn),type:n+(e.__dir__<0?"Right":"")}),e},Ut.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),r(["filter","map","takeWhile"],function(n,t){var r=t+1,e=r==zn||r==Sn;Ut.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:mi(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),r(["head","last"],function(n,t){var r="take"+(t?"Right":"");
401Ut.prototype[n]=function(){return this[r](1).value()[0]}}),r(["initial","tail"],function(n,t){var r="drop"+(t?"":"Right");Ut.prototype[n]=function(){return this.__filtered__?new Ut(this):this[r](1)}}),Ut.prototype.compact=function(){return this.filter(La)},Ut.prototype.find=function(n){return this.filter(n).head()},Ut.prototype.findLast=function(n){return this.reverse().find(n)},Ut.prototype.invokeMap=uu(function(n,t){return typeof n=="function"?new Ut(this):this.map(function(r){return Oe(r,n,t)})}),Ut.prototype.reject=function(n){return this.filter(Uf(mi(n)))},Ut.prototype.slice=function(n,t){n=kc(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Ut(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==X&&(t=kc(t),r=t<0?r.dropRight(-t):r.take(t-n)),r)},Ut.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ut.prototype.toArray=function(){return this.take(Bn)},ue(Ut.prototype,function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),u=Z[e?"take"+("last"==t?"Right":""):t],i=e||/^find/.test(t);u&&(Z.prototype[t]=function(){var t=this.__wrapped__,o=e?[1]:arguments,f=t instanceof Ut,c=o[0],l=f||bh(t),s=function(n){var t=u.apply(Z,a([n],o));return e&&h?t[0]:t};l&&r&&typeof c=="function"&&1!=c.length&&(f=l=!1);var h=this.__chain__,p=!!this.__actions__.length,_=i&&!h,v=f&&!p;if(!i&&l){t=v?t:new Ut(this);var g=n.apply(t,o);return g.__actions__.push({func:nf,args:[s],thisArg:X}),new Y(g,h)}return _&&v?n.apply(this,o):(g=this.thru(s),_?e?g.value()[0]:g.value():g)})}),r(["pop","push","shift","sort","splice","unshift"],function(n){var t=_l[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Z.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(bh(u)?u:[],n)}return this[r](function(r){return t.apply(bh(r)?r:[],n)})}}),ue(Ut.prototype,function(n,t){var r=Z[t];if(r){var e=r.name+"";bl.call(fs,e)||(fs[e]=[]),fs[e].push({name:t,func:r})}}),fs[Qu(X,gn).name]=[{name:"wrapper",func:X}],Ut.prototype.clone=Dt,Ut.prototype.reverse=Qt,Ut.prototype.value=Xt,Z.prototype.at=Qs,Z.prototype.chain=tf,Z.prototype.commit=rf,Z.prototype.next=ef,Z.prototype.plant=of,Z.prototype.reverse=ff,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=cf,Z.prototype.first=Z.prototype.head,Ul&&(Z.prototype[Ul]=uf),Z},be=de();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(re._=be,define(function(){return be})):ue?((ue.exports=be)._=be,ee._=be):re._=be}).call(this);if(typeof Object.assign!='function'){Object.defineProperty(Object,"assign",{value:function assign(target,varArgs){'use strict';if(target==null){throw new TypeError('Cannot convert undefined or null to object')}
402var to=Object(target);for(var index=1;index<arguments.length;index++){var nextSource=arguments[index];if(nextSource!=null){for(var nextKey in nextSource){if(Object.prototype.hasOwnProperty.call(nextSource,nextKey)){to[nextKey]=nextSource[nextKey]}}}}
403return to},writable:!0,configurable:!0})}
404/*
405 * Loading attribute polyfill - https://github.com/mfranzke/loading-attribute-polyfill
406 * @license Copyright(c) 2019 by Maximilian Franzke
407 * Credits for the initial kickstarter / script to @Sora2455, and supported by @cbirdsong, @eklingen, @DaPo, @nextgenthemes, @diogoterremoto, @dracos, @Flimm, @TomS- and @vinyfc93 - many thanks for that !
408 */
409(function(noscriptClass,rootMargin){'use strict';var config={rootMargin:rootMargin||'0px 0px 256px 0px',threshold:0.01,lazyImage:'img[loading="lazy"]',lazyIframe:'iframe[loading="lazy"]'};var capabilities={loading:'loading' in HTMLImageElement.prototype&&'loading' in HTMLIFrameElement.prototype,scrolling:'onscroll' in window};if(typeof NodeList!=='undefined'&&NodeList.prototype&&!NodeList.prototype.forEach){NodeList.prototype.forEach=Array.prototype.forEach}
410var intersectionObserver;if('IntersectionObserver' in window){intersectionObserver=new IntersectionObserver(onIntersection,config)}
411var rAFWrapper;if('requestAnimationFrame' in window){rAFWrapper=window.requestAnimationFrame}else{rAFWrapper=function(func){func()}}
412function restoreSource(lazyItem){var srcsetItems=[];if(lazyItem.parentNode.tagName.toLowerCase()==='picture'){removePlaceholderSource(lazyItem.parentNode);srcsetItems=Array.prototype.slice.call(lazyItem.parentNode.querySelectorAll('source'))}
413srcsetItems.push(lazyItem);
413srcsetItems.forEach(function(item){if(item.hasAttribute('data-lazy-srcset')){item.setAttribute('srcset',item.getAttribute('data-lazy-srcset'));item.removeAttribute('data-lazy-srcset')}});lazyItem.setAttribute('src',lazyItem.getAttribute('data-lazy-src'));lazyItem.removeAttribute('data-lazy-src')}
414function removePlaceholderSource(lazyItemPicture){var placeholderSource=lazyItemPicture.querySelector('source[data-lazy-remove]');if(placeholderSource){lazyItemPicture.removeChild(placeholderSource)}}
415function onIntersection(entries,observer){entries.forEach(function(entry){if(entry.intersectionRatio===0){return}
416var lazyItem=entry.target;observer.unobserve(lazyItem);restoreSource(lazyItem)})}
417function onPrinting(){if(typeof window.matchMedia==='undefined'){return}
418var mediaQueryList=window.matchMedia('print');mediaQueryList.addListener(function(mql){if(mql.matches){document.querySelectorAll(config.lazyImage+'[data-lazy-src],'+config.lazyIframe+'[data-lazy-src]').forEach(function(lazyItem){restoreSource(lazyItem)})}})}
419function getAndPrepareHTMLCode(noScriptTag){var lazyAreaHtml=noScriptTag.textContent||noScriptTag.innerHTML;var getImageWidth=lazyAreaHtml.match(/width=['"](\d+)['"]/)||!1;var temporaryImageWidth=getImageWidth[1]||1;var getImageHeight=lazyAreaHtml.match(/height=['"](\d+)['"]/)||!1;var temporaryImageHeight=getImageHeight[1]||1;var temporaryImage='data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 '+temporaryImageWidth+' '+temporaryImageHeight+'%27%3E%3C/svg%3E';if(!capabilities.loading&&capabilities.scrolling){if(typeof intersectionObserver==='undefined'){lazyAreaHtml=lazyAreaHtml.replace(/(?:\r\n|\r|\n|\t| )src=/g,' lazyload="1" src=')}else{if(noScriptTag.parentNode.tagName.toLowerCase()==='picture'){lazyAreaHtml='<source srcset="'+temporaryImage+'" data-lazy-remove="true"></source>'+lazyAreaHtml}
420lazyAreaHtml=lazyAreaHtml.replace(/(?:\r\n|\r|\n|\t| )srcset=/g,' data-lazy-srcset=').replace(/(?:\r\n|\r|\n|\t| )src=/g,' src="'+temporaryImage+'" data-lazy-src=')}}
421return lazyAreaHtml}
422function prepareElement(noScriptTag){var lazyArea=document.createElement('div');lazyArea.innerHTML=getAndPrepareHTMLCode(noScriptTag);while(lazyArea.firstChild){if(!capabilities.loading&&capabilities.scrolling&&typeof intersectionObserver!=='undefined'&&lazyArea.firstChild.tagName&&(lazyArea.firstChild.tagName.toLowerCase()==='img'||lazyArea.firstChild.tagName.toLowerCase()==='iframe')){intersectionObserver.observe(lazyArea.firstChild)}
423noScriptTag.parentNode.insertBefore(lazyArea.firstChild,noScriptTag)}
424noScriptTag.parentNode.removeChild(noScriptTag)}
425function prepareElements(){var lazyLoadAreas=document.querySelectorAll('noscript.'+noscriptClass);lazyLoadAreas.forEach(prepareElement);onPrinting()}
426if(/comp|inter/.test(document.readyState)){rAFWrapper(prepareElements)}else if('addEventListener' in document){document.addEventListener('DOMContentLoaded',function(){rAFWrapper(prepareElements)})}else{document.attachEvent('onreadystatechange',function(){if(document.readyState==='c
426omplete'){prepareElements()}})}})('loading-lazy','256px 0px');(function(){'use strict';if(typeof window!=='object'){return}
427if('IntersectionObserver' in window&&'IntersectionObserverEntry' in window&&'intersectionRatio' in window.IntersectionObserverEntry.prototype){if(!('isIntersecting' in window.IntersectionObserverEntry.prototype)){Object.defineProperty(window.IntersectionObserverEntry.prototype,'isIntersecting',{get:function(){return this.intersectionRatio>0}})}
428return}
429function getFrameElement(doc){try{return doc.defaultView&&doc.defaultView.frameElement||null}catch(e){return null}}
430var document=(function(startDoc){var doc=startDoc;var frame=getFrameElement(doc);while(frame){doc=frame.ownerDocument;frame=getFrameElement(doc)}
431return doc})(window.document);var registry=[];var crossOriginUpdater=null;var crossOriginRect=null;function IntersectionObserverEntry(entry){this.time=entry.time;this.target=entry.target;this.rootBounds=ensureDOMRect(entry.rootBounds);this.boundingClientRect=ensureDOMRect(entry.boundingClientRect);this.intersectionRect=ensureDOMRect(entry.intersectionRect||getEmptyRect());this.isIntersecting=!!entry.intersectionRect;var targetRect=this.boundingClientRect;var targetArea=targetRect.width*targetRect.height;var intersectionRect=this.intersectionRect;var intersectionArea=intersectionRect.width*intersectionRect.height;if(targetArea){this.intersectionRatio=Number((intersectionArea/targetArea).toFixed(4))}else{this.intersectionRatio=this.isIntersecting?1:0}}
432function IntersectionObserver(callback,opt_options){var options=opt_options||{};if(typeof callback!='function'){throw new Error('callback must be a function')}
433if(options.root&&options.root.nodeType!=1&&options.root.nodeType!=9){throw new Error('root must be a Document or Element')}
434this._checkForIntersections=throttle(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT);this._callback=callback;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(options.rootMargin);this.thresholds=this._initThresholds(options.threshold);this.root=options.root||null;this.rootMargin=this._rootMarginValues.map(function(margin){return margin.value+margin.unit}).join(' ');this._monitoringDocuments=[];this._monitoringUnsubscribes=[]}
435IntersectionObserver.prototype.THROTTLE_TIMEOUT=100;IntersectionObserver.prototype.POLL_INTERVAL=null;IntersectionObserver.prototype.USE_MUTATION_OBSERVER=!0;IntersectionObserver._setupCrossOriginUpdater=function(){if(!crossOriginUpdater){crossOriginUpdater=function(boundingClientRect,intersectionRect){if(!boundingClientRect||!intersectionRect){crossOriginRect=getEmptyRect()}else{crossOriginRect=convertFromParentRect(boundingClientRect,intersectionRect)}
436registry.forEach(function(observer){observer._checkForIntersections()})}}
437return crossOriginUpdater};IntersectionObserver._resetCrossOriginUpdater=function(){crossOriginUpdater=null;crossOriginRect=null};IntersectionObserver.prototype.observe=function(target){var isTargetAlreadyObserved=this._observationTargets.some(function(item){return item.element==target});if(isTargetAlreadyObserved){return}
438if(!(target&&target.nodeType==1)){throw new Error('target must be an Element')}
439this._registerInstance();this._observationTargets.push({element:target,entry:null});this._monitorIntersections(target.ownerDocument);this._checkForIntersections()};IntersectionObserver.prototype.unobserve=function(target){this._observationTargets=this._observationTargets.filter(function(item){return item.element!=target});this._unmonitorIntersections(target.ownerDocument);if(this._observationTargets.length==0){this._unregisterInstance()}};IntersectionObserver.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorAllIntersections();this._unregisterInstance()};IntersectionObserver.prototype.takeRecords=function(){var records=this._queuedEntries.slice();this._queuedEntries=[];return records};IntersectionObserver.prototype._initThresholds=function(opt_threshold){var threshold=opt_threshold||[0];if(!Array.isArray(threshold))threshold=[threshold];return threshold.sort().filter(function(t,i,a){if(typeof t!='number'||isNaN(t)||t<0||t>1){throw new Error('threshold must be a number between 0 and 1 inclusively')}
440return t!==a[i-1]})};IntersectionObserver.prototype._parseRootMargin=function(opt_rootMargin){var marginString=opt_rootMargin||'0px';var margins=marginString.split(/\s+/).map(function(margin){var parts=/^(-?\d*\.?\d+)(px|%)$/.exec(margin);if(!parts){throw new Error('rootMargin must be specified in pixels or percent')}
441return{value:parseFloat(parts[1]),unit:parts[2]}});margins[1]=margins[1]||margins[0];margins[2]=margins[2]||margins[0];margins[3]=margins[3]||margins[1];return margins};IntersectionObserver.prototype._monitorIntersections=function(doc){var win=doc.defaultView;if(!win){return}
442if(this._monitoringDocuments.indexOf(doc)!=-1){return}
443var callback=this._checkForIntersections;var monitoringInterval=null;var domObserver=null;if(this.POLL_INTERVAL){monitoringInterval=win.setInterval(callback,this.POLL_INTERVAL)}else{addEvent(win,'resize',callback,!0);addEvent(doc,'scroll',callback,!0);if(this.USE_MUTATION_OBSERVER&&'MutationObserver' in win){domObserver=new win.MutationObserver(callback);domObserver.observe(doc,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}}
444this._monitoringDocuments.push(doc);this._monitoringUnsubscribes.push(function(){var win=doc.defaultView;if(win){if(monitoringInterval){win.clearInterval(monitoringInterval)}
445removeEvent(win,'resize',callback,!0)}
446removeEvent(doc,'scroll',callback,!0);if(domObserver){domObserver.disconnect()}});var rootDoc=(this.root&&(this.root.ownerDocument||this.root))||document;if(doc!=rootDoc){var frame=getFrameElement(doc);if(frame){this._monitorIntersections(frame.ownerDocument)}}};IntersectionObserver.prototype._unmonitorIntersections=function(doc){var index=this._monitoringDocuments.indexOf(doc);if(index==-1){return}
447var rootDoc=(this.root&&(this.root.ownerDocument||this.root))||document;var hasDependentTargets=this._observationTargets.some(function(item){var itemDoc=item.element.ownerDocument;if(itemDoc==doc){return!0}
448while(itemDoc&&itemDoc!=rootDoc){var frame=getFrameElement(itemDoc);itemDoc=frame&&frame.ownerDocument;if(itemDoc==doc){return!0}}
449return!1});if(hasDependentTargets){return}
450var unsubscribe=this._monitoringUnsubscribes[index];this._monitoringDocuments.splice(index,1);this._monitoringUnsubscribes.splice(index,1);unsubscribe();if(doc!=rootDoc){var frame=getFrameElement(doc);if(frame){this._unmonitorIntersections(frame.ownerDocument)}}};IntersectionObserver.prototype._unmonitorAllIntersections=function(){var unsubscribes=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0;this._monitoringUnsubscribes.length=0;for(var i=0;i<unsubscribes.length;i++){unsubscribes[i]()}};IntersectionObserver.prototype._checkForIntersections=function(){if(!this.root&&crossOriginUpdater&&!crossOriginRect){return}
451var rootIsInDom=this._rootIsInDom();var rootRect=rootIsInDom?this._getRootRect():getEmptyRect();
451this._observationTargets.forEach(function(item){var target=item.element;var targetRect=getBoundingClientRect(target);var rootContainsTarget=this._rootContainsTarget(target);var oldEntry=item.entry;var intersectionRect=rootIsInDom&&rootContainsTarget&&this._computeTargetAndRootIntersection(target,targetRect,rootRect);var rootBounds=null;if(!this._rootContainsTarget(target)){rootBounds=getEmptyRect()}else if(!crossOriginUpdater||this.root){rootBounds=rootRect}
452var newEntry=item.entry=new IntersectionObserverEntry({time:now(),target:target,boundingClientRect:targetRect,rootBounds:rootBounds,intersectionRect:intersectionRect});if(!oldEntry){this._queuedEntries.push(newEntry)}else if(rootIsInDom&&rootContainsTarget){if(this._hasCrossedThreshold(oldEntry,newEntry)){this._queuedEntries.push(newEntry)}}else{if(oldEntry&&oldEntry.isIntersecting){this._queuedEntries.push(newEntry)}}},this);if(this._queuedEntries.length){this._callback(this.takeRecords(),this)}};IntersectionObserver.prototype._computeTargetAndRootIntersection=function(target,targetRect,rootRect){if(window.getComputedStyle(target).display=='none')return;var intersectionRect=targetRect;var parent=getParentNode(target);var atRoot=!1;while(!atRoot&&parent){var parentRect=null;var parentComputedStyle=parent.nodeType==1?window.getComputedStyle(parent):{};if(parentComputedStyle.display=='none')return null;if(parent==this.root||parent.nodeType==9){atRoot=!0;if(parent==this.root||parent==document){if(crossOriginUpdater&&!this.root){if(!crossOriginRect||crossOriginRect.width==0&&crossOriginRect.height==0){parent=null;parentRect=null;intersectionRect=null}else{parentRect=crossOriginRect}}else{parentRect=rootRect}}else{var frame=getParentNode(parent);var frameRect=frame&&getBoundingClientRect(frame);var frameIntersect=frame&&this._computeTargetAndRootIntersection(frame,frameRect,rootRect);if(frameRect&&frameIntersect){parent=frame;parentRect=convertFromParentRect(frameRect,frameIntersect)}else{parent=null;intersectionRect=null}}}else{var doc=parent.ownerDocument;if(parent!=doc.body&&parent!=doc.documentElement&&parentComputedStyle.overflow!='visible'){parentRect=getBoundingClientRect(parent)}}
453if(parentRect){intersectionRect=computeRectIntersection(parentRect,intersectionRect)}
454if(!intersectionRect)break;parent=parent&&getParentNode(parent)}
455return intersectionRect};IntersectionObserver.prototype._getRootRect=function(){var rootRect;if(this.root&&!isDoc(this.root)){rootRect=getBoundingClientRect(this.root)}else{var doc=isDoc(this.root)?this.root:document;var html=doc.documentElement;var body=doc.body;rootRect={top:0,left:0,right:html.clientWidth||body.clientWidth,width:html.clientWidth||body.clientWidth,bottom:html.clientHeight||body.clientHeight,height:html.clientHeight||body.clientHeight}}
456return this._expandRectByRootMargin(rootRect)};IntersectionObserver.prototype._expandRectByRootMargin=function(rect){var margins=this._rootMarginValues.map(function(margin,i){return margin.unit=='px'?margin.value:margin.value*(i%2?rect.width:rect.height)/100});var newRect={top:rect.top-margins[0],right:rect.right+margins[1],bottom:rect.bottom+margins[2],left:rect.left-margins[3]};newRect.width=newRect.right-newRect.left;newRect.height=newRect.bottom-newRect.top;return newRect};IntersectionObserver.prototype._hasCrossedThreshold=function(oldEntry,newEntry){var oldRatio=oldEntry&&oldEntry.isIntersecting?oldEntry.intersectionRatio||0:-1;var newRatio=newEntry.isIntersecting?newEntry.intersectionRatio||0:-1;if(oldRatio===newRatio)return;for(var i=0;i<this.thresholds.length;i++){var threshold=this.thresholds[i];if(threshold==oldRatio||threshold==newRatio||threshold<oldRatio!==threshold<newRatio){return!0}}};IntersectionObserver.prototype._rootIsInDom=function(){return!this.root||containsDeep(document,this.root)};IntersectionObserver.prototype._rootContainsTarget=function(target){var rootDoc=(this.root&&(this.root.ownerDocument||this.root))||document;return(containsDeep(rootDoc,target)&&(!this.root||rootDoc==target.ownerDocument))};IntersectionObserver.prototype._registerInstance=function(){if(registry.indexOf(this)<0){registry.push(this)}};IntersectionObserver.prototype._unregisterInstance=function(){var index=registry.indexOf(this);if(index!=-1)registry.splice(index,1);};function now(){return window.performance&&performance.now&&performance.now()}
457function throttle(fn,timeout){var timer=null;return function(){if(!timer){timer=setTimeout(function(){fn();timer=null},timeout)}}}
458function addEvent(node,event,fn,opt_useCapture){if(typeof node.addEventListener=='function'){node.addEventListener(event,fn,opt_useCapture||!1)}else if(typeof node.attachEvent=='function'){node.attachEvent('on'+event,fn)}}
459function removeEvent(node,event,fn,opt_useCapture){if(typeof node.removeEventListener=='function'){node.removeEventListener(event,fn,opt_useCapture||!1)}else if(typeof node.detatchEvent=='function'){node.detatchEvent('on'+event,fn)}}
460function computeRectIntersection(rect1,rect2){var top=Math.max(rect1.top,rect2.top);var bottom=Math.min(rect1.bottom,rect2.bottom);var left=Math.max(rect1.left,rect2.left);var right=Math.min(rect1.right,rect2.right);var width=right-left;var height=bottom-top;return(width>=0&&height>=0)&&{top:top,bottom:bottom,left:left,right:right,width:width,height:height}||null}
461function getBoundingClientRect(el){var rect;try{rect=el.getBoundingClientRect()}catch(err){}
462if(!rect)return getEmptyRect();if(!(rect.width&&rect.height)){rect={top:rect.top,right:rect.right,bottom:rect.bottom,left:rect.left,width:rect.right-rect.left,height:rect.bottom-rect.top}}
463return rect}
464function getEmptyRect(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}
465function ensureDOMRect(rect){if(!rect||'x' in rect){return rect}
466return{top:rect.top,y:rect.top,bottom:rect.bottom,left:rect.left,x:rect.left,right:rect.right,width:rect.width,height:rect.height}}
467function convertFromParentRect(parentBoundingRect,parentIntersectionRect){var top=parentIntersectionRect.top-parentBoundingRect.top;var left=parentIntersectionRect.left-parentBoundingRect.left;return{top:top,left:left,height:parentIntersectionRect.height,width:parentIntersectionRect.width,bottom:top+parentIntersectionRect.height,right:left+parentIntersectionRect.width}}
468function containsDeep(parent,child){var node=child;while(node){if(node==parent)return!0;node=getParentNode(node)}
469return!1}
470function getParentNode(node){var parent=node.parentNode;if(node.nodeType==9&&node!=document){return getFrameElement(node)}
471if(parent&&parent.assignedSlot){parent=parent.assignedSlot.parentNode}
472if(parent&&parent.nodeType==11&&parent.host){return parent.host}
473return parent}
474function isDoc(node){return node&&node.nodeType===9}
475window.IntersectionObserver=IntersectionObserver;window.IntersectionObserverEntry=IntersectionObserverEntry}());
476/*!
477 * ScrollMagic v2.0.8 (2020-08-14)
478 * The javascript library for magical scroll interactions.
479 * (c) 2020 Jan Paepke (@janpaepke)
480 * Project Website: http://scrollmagic.io
481 * 
482 * @version 2.0.8
483 * @license Dual licensed under MIT license and GPL.
484 * @author Jan Paepke - [email protected]
485 *
486 * @file ScrollMagic main library.
487 */
488(function(root,factory){if(typeof define==='function'&&define.amd){define(factory)}else if(typeof exports==='object'){module.exports=factory()}else{root.ScrollMagic=factory()}}(this,function(){"use strict";var ScrollMagic=function(){_util.log(2,'(COMPATIBILITY NOTICE) -> As of ScrollMagic 2.0.0 you need to use \'new ScrollMagic.Controller()\' to create a new controller instance. Use \'new ScrollMagic.Scene()\' to instance a scene.')};ScrollMagic.version="2.0.8";if(typeof(window)!=='undefined'){window.addEventListener("mousewheel",void(0))}
489var PIN_SPACER_ATTRIBUTE="data-scrollmagic-pin-spacer";ScrollMagic.Controller=function(options){var
490NAMESPACE='ScrollMagic.Controller',SCROLL_DIRECTION_FORWARD='FORWARD',SCROLL_DIRECTION_REVERSE='REVERSE',SCROLL_DIRECTION_PAUSED='PAUSED',DEFAULT_OPTIONS=CONTROLLER_OPTIONS.defaults;var Controller=this,_options=_util.extend({},DEFAULT_OPTIONS,options),_sceneObjects=[],_updateScenesOnNextCycle=!1,_scrollPos=0,_scrollDirection=SCROLL_DIRECTION_PAUSED,_isDocument=!0,_viewPortSize=0,_enabled=!0,_updateTimeout,_refreshTimeout;var construct=function(){for(var key in _options){if(!DEFAULT_OPTIONS.hasOwnProperty(key)){log(2,"WARNING: Unknown option \""+key+"\"");delete _options[key]}}
491_options.container=_util.get.elements(_options.container)[0];if(!_options.container){log(1,"ERROR creating object "+NAMESPACE+": No valid scroll container supplied");throw NAMESPACE+" init failed."}
492_isDocument=_options.container===window||_options.container===document.body||!document.body.contains(_options.container);if(_isDocument){_options.container=window}
493_viewPortSize=getViewportSize();
493_options.container.addEventListener("resize",onChange);_options.container.addEventListener("scroll",onChange);var ri=parseInt(_options.refreshInterval,10);_options.refreshInterval=_util.type.Number(ri)?ri:DEFAULT_OPTIONS.refreshInterval;scheduleRefresh();log(3,"added new "+NAMESPACE+" controller (v"+ScrollMagic.version+")")};var scheduleRefresh=function(){if(_options.refreshInterval>0){_refreshTimeout=window.setTimeout(refresh,_options.refreshInterval)}};var getScrollPos=function(){return _options.vertical?_util.get.scrollTop(_options.container):_util.get.scrollLeft(_options.container)};var getViewportSize=function(){return _options.vertical?_util.get.height(_options.container):_util.get.width(_options.container)};var setScrollPos=this._setScrollPos=function(pos){if(_options.vertical){if(_isDocument){window.scrollTo(_util.get.scrollLeft(),pos)}else{_options.container.scrollTop=pos}}else{if(_isDocument){window.scrollTo(pos,_util.get.scrollTop())}else{_options.container.scrollLeft=pos}}};var updateScenes=function(){if(_enabled&&_updateScenesOnNextCycle){var scenesToUpdate=_util.type.Array(_updateScenesOnNextCycle)?_updateScenesOnNextCycle:_sceneObjects.slice(0);_updateScenesOnNextCycle=!1;var oldScrollPos=_scrollPos;_scrollPos=Controller.scrollPos();var deltaScroll=_scrollPos-oldScrollPos;if(deltaScroll!==0){_scrollDirection=(deltaScroll>0)?SCROLL_DIRECTION_FORWARD:SCROLL_DIRECTION_REVERSE}
494if(_scrollDirection===SCROLL_DIRECTION_REVERSE){scenesToUpdate.reverse()}
495scenesToUpdate.forEach(function(scene,index){log(3,"updating Scene "+(index+1)+"/"+scenesToUpdate.length+" ("+_sceneObjects.length+" total)");scene.update(!0)});if(scenesToUpdate.length===0&&_options.loglevel>=3){log(3,"updating 0 Scenes (nothing added to controller)")}}};var debounceUpdate=function(){_updateTimeout=_util.rAF(updateScenes)};var onChange=function(e){log(3,"event fired causing an update:",e.type);if(e.type=="resize"){_viewPortSize=getViewportSize();_scrollDirection=SCROLL_DIRECTION_PAUSED}
496if(_updateScenesOnNextCycle!==!0){_updateScenesOnNextCycle=!0;debounceUpdate()}};var refresh=function(){if(!_isDocument){if(_viewPortSize!=getViewportSize()){var resizeEvent;
496try{resizeEvent=new Event('resize',{bubbles:!1,cancelable:!1})}catch(e){resizeEvent=document.createEvent("Event");resizeEvent.initEvent("resize",!1,!1)}
497_options.container.dispatchEvent(resizeEvent)}}
498_sceneObjects.forEach(function(scene,index){scene.refresh()});scheduleRefresh()};var log=this._log=function(loglevel,output){if(_options.loglevel>=loglevel){Array.prototype.splice.call(arguments,1,0,"("+NAMESPACE+") ->");_util.log.apply(window,arguments)}};this._options=_options;var sortScenes=function(ScenesArray){if(ScenesArray.length<=1){return ScenesArray}else{var scenes=ScenesArray.slice(0);scenes.sort(function(a,b){return a.scrollOffset()>b.scrollOffset()?1:-1});return scenes}};this.addScene=function(newScene){if(_util.type.Array(newScene)){newScene.forEach(function(scene,index){Controller.addScene(scene)})}else if(newScene instanceof ScrollMagic.Scene){if(newScene.controller()!==Controller){newScene.addTo(Controller)}else if(_sceneObjects.indexOf(newScene)<0){_sceneObjects.push(newScene);_sceneObjects=sortScenes(_sceneObjects);newScene.on("shift.controller_sort",function(){_sceneObjects=sortScenes(_sceneObjects)});for(var key in _options.globalSceneOptions){if(newScene[key]){newScene[key].call(newScene,_options.globalSceneOptions[key])}}
499log(3,"adding Scene (now "+_sceneObjects.length+" total)")}}else{log(1,"ERROR: invalid argument supplied for '.addScene()'")}
500return Controller};this.removeScene=function(Scene){if(_util.type.Array(Scene)){Scene.forEach(function(scene,index){Controller.removeScene(scene)})}else{var index=_sceneObjects.indexOf(Scene);if(index>-1){Scene.off("shift.controller_sort");_sceneObjects.splice(index,1);log(3,"removing Scene (now "+_sceneObjects.length+" left)");Scene.remove()}}
501return Controller};this.updateScene=function(Scene,immediately){if(_util.type.Array(Scene)){Scene.forEach(function(scene,index){Controller.updateScene(scene,immediately)})}else{if(immediately){Scene.update(!0)}else if(_updateScenesOnNextCycle!==!0&&Scene instanceof ScrollMagic.Scene){_updateScenesOnNextCycle=_updateScenesOnNextCycle||[];if(_updateScenesOnNextCycle.indexOf(Scene)==-1){_updateScenesOnNextCycle.push(Scene)}
502_updateScenesOnNextCycle=sortScenes(_updateScenesOnNextCycle);debounceUpdate()}}
503return Controller};this.update=function(immediately){onChange({type:"resize"});if(immediately){updateScenes()}
504return Controller};this.scrollTo=function(scrollTarget,additionalParameter){if(_util.type.Number(scrollTarget)){setScrollPos.call(_options.container,scrollTarget,additionalParameter)}else if(scrollTarget instanceof ScrollMagic.Scene){if(scrollTarget.controller()===Controller){Controller.scrollTo(scrollTarget.scrollOffset(),additionalParameter)}else{log(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",scrollTarget)}}else if(_util.type.Function(scrollTarget)){setScrollPos=scrollTarget}else{var elem=_util.get.elements(scrollTarget)[0];if(elem){while(elem.parentNode.hasAttribute(PIN_SPACER_ATTRIBUTE)){elem=elem.parentNode}
505var param=_options.vertical?"top":"left",containerOffset=_util.get.offset(_options.container),elementOffset=_util.get.offset(elem);if(!_isDocument){containerOffset[param]-=Controller.scrollPos()}
506Controller.scrollTo(elementOffset[param]-containerOffset[param],additionalParameter)}else{log(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",scrollTarget)}}
507return Controller};this.scrollPos=function(scrollPosMethod){if(!arguments.length){return getScrollPos.call(Controller)}else{if(_util.type.Function(scrollPosMethod)){getScrollPos=scrollPosMethod}else{log(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'.")}}
508return Controller};this.info=function(about){var values={size:_viewPortSize,vertical:_options.vertical,scrollPos:_scrollPos,scrollDirection:_scrollDirection,container:_options.container,isDocument:_isDocument};if(!arguments.length){return values}else if(values[about]!==undefined){return values[about]}else{log(1,"ERROR: option \""+about+"\" is not available");return}};this.loglevel=function(newLoglevel){if(!arguments.length){return _options.loglevel}else if(_options.loglevel!=newLoglevel){_options.loglevel=newLoglevel}
509return Controller};this.enabled=function(newState){if(!arguments.length){return _enabled}else if(_enabled!=newState){_enabled=!!newState;Controller.updateScene(_sceneObjects,!0)}
510return Controller};this.destroy=function(resetScenes){window.clearTimeout(_refreshTimeout);var i=_sceneObjects.length;while(i--){_sceneObjects[i].destroy(resetScenes)}
511_options.container.removeEventListener("resize",onChange);_options.container.removeEventListener("scroll",onChange);_util.cAF(_updateTimeout);log(3,"destroyed "+NAMESPACE+" (reset: "+(resetScenes?"true":"false")+")");return null};construct();return Controller};var CONTROLLER_OPTIONS={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};ScrollMagic.Controller.addOption=function(name,defaultValue){CONTROLLER_OPTIONS.defaults[name]=defaultValue};ScrollMagic.Controller.extend=function(extension){var oldClass=this;ScrollMagic.Controller=function(){oldClass.apply(this,arguments);this.$super=_util.extend({},this);return extension.apply(this,arguments)||this};_util.extend(ScrollMagic.Controller,oldClass);ScrollMagic.Controller.prototype=oldClass.prototype;ScrollMagic.Controller.prototype.constructor=ScrollMagic.Controller};ScrollMagic.Scene=function(options){var
512NAMESPACE='ScrollMagic.Scene',SCENE_STATE_BEFORE='BEFORE',SCENE_STATE_DURING='DURING',SCENE_STATE_AFTER='AFTER',DEFAULT_OPTIONS=SCENE_OPTIONS.defaults;var Scene=this,_options=_util.extend({},DEFAULT_OPTIONS,options),_state=SCENE_STATE_BEFORE,_progress=0,_scrollOffset={start:0,end:0},_triggerPos=0,_enabled=!0,_durationUpdateMethod,_controller;var construct=function(){for(var key in _options){if(!DEFAULT_OPTIONS.hasOwnProperty(key)){log(2,"WARNING: Unknown option \""+key+"\"");delete _options[key]}}
513for(var optionName in DEFAULT_OPTIONS){addSceneOption(optionName)}
514validateOption()};var _listeners={};this.on=function(names,callback){if(_util.type.Function(callback)){names=names.trim().split(' ');names.forEach(function(fullname){var
515nameparts=fullname.split('.'),eventname=nameparts[0],namespace=nameparts[1];if(eventname!="*"){if(!_listeners[eventname]){_listeners[eventname]=[]}
516_listeners[eventname].push({namespace:namespace||'',callback:callback})}})}else{log(1,"ERROR when calling '.on()': Supplied callback for '"+names+"' is not a valid function!")}
517return Scene};this.off=function(names,callback){if(!names){log(1,"ERROR: Invalid event name supplied.");return Scene}
518names=names.trim().split(' ');names.forEach(function(fullname,key){var
519nameparts=fullname.split('.'),eventname=nameparts[0],namespace=nameparts[1]||'',removeList=eventname==='*'?Object.keys(_listeners):[eventname];removeList.forEach(function(remove){var
520list=_listeners[remove]||[],i=list.length;while(i--){var listener=list[i];if(listener&&(namespace===listener.namespace||namespace==='*')&&(!callback||callback==listener.callback)){list.splice(i,1)}}
521if(!list.length){delete _listeners[remove]}})});return Scene};this.trigger=function(name,vars){if(name){var
522nameparts=name.trim().split('.'),eventname=nameparts[0],namespace=nameparts[1],listeners=_listeners[eventname];log(3,'event fired:',eventname,vars?"->":'',vars||'');if(listeners){listeners.forEach(function(listener,key){if(!namespace||namespace===listener.namespace){listener.callback.call(Scene,new ScrollMagic.Event(eventname,listener.namespace,Scene,vars))}})}}else{log(1,"ERROR: Invalid event name supplied.")}
523return Scene};Scene.on("change.internal",function(e){if(e.what!=="loglevel"&&e.what!=="tweenChanges"){if(e.what==="triggerElement"){updateTriggerElementPosition()}else if(e.what==="reverse"){Scene.update()}}}).on("shift.internal",function(e){updateScrollOffset();Scene.update()});var log=this._log=function(loglevel,output){if(_options.loglevel>=loglevel){Array.prototype.splice.call(arguments,1,0,"("+NAMESPACE+") ->");_util.log.apply(window,arguments)}};this.addTo=function(controller){if(!(controller instanceof ScrollMagic.Controller)){log(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller")}else if(_controller!=controller){if(_controller){_controller.removeScene(Scene)}
524_controller=controller;validateOption();updateDuration(!0);updateTriggerElementPosition(!0);updateScrollOffset();_controller.info("container").addEventListener('resize',onContainerResize);controller.addScene(Scene);Scene.trigger("add",{controller:_controller});log(3,"added "+NAMESPACE+" to controller");Scene.update()}
525return Scene};this.enabled=function(newState){if(!arguments.length){return _enabled}else if(_enabled!=newState){_enabled=!!newState;Scene.update(!0)}
526return Scene};this.remove=function(){if(_controller){_controller.info("container").removeEventListener('resize',onContainerResize);var tmpParent=_controller;_controller=undefined;tmpParent.removeScene(Scene);Scene.trigger("remove");log(3,"removed "+NAMESPACE+" from controller")}
527return Scene};this.destroy=function(reset){Scene.trigger("destroy",{reset:reset});Scene.remove();Scene.off("*.*");log(3,"destroyed "+NAMESPACE+" (reset: "+(reset?"true":"false")+")");return null};this.update=function(immediately){if(_controller){if(immediately){if(_controller.enabled()&&_enabled){var
528scrollPos=_controller.info("scrollPos"),newProgress;if(_options.duration>0){newProgress=(scrollPos-_scrollOffset.start)/(_scrollOffset.end-_scrollOffset.start)}else{newProgress=scrollPos>=_scrollOffset.start?1:0}
529Scene.trigger("update",{startPos:_scrollOffset.start,endPos:_scrollOffset.end,scrollPos:scrollPos});Scene.progress(newProgress)}else if(_pin&&_state===SCENE_STATE_DURING){updatePinState(!0)}}else{_controller.updateScene(Scene,!1)}}
530return Scene};this.refresh=function(){updateDuration();updateTriggerElementPosition();return Scene};this.progress=function(progress){if(!arguments.length){return _progress}else{var
531doUpdate=!1,oldState=_state,scrollDirection=_controller?_controller.info("scrollDirection"):'PAUSED',reverseOrForward=_options.reverse||progress>=_progress;if(_options.duration===0){doUpdate=_progress!=progress;_progress=progress<1&&reverseOrForward?0:1;_state=_progress===0?SCENE_STATE_BEFORE:SCENE_STATE_DURING}else{if(progress<0&&_state!==SCENE_STATE_BEFORE&&reverseOrForward){_progress=0;_state=SCENE_STATE_BEFORE;doUpdate=!0}else if(progress>=0&&progress<1&&reverseOrForward){_progress=progress;_state=SCENE_STATE_DURING;doUpdate=!0}else if(progress>=1&&_state!==SCENE_STATE_AFTER){_progress=1;_state=SCENE_STATE_AFTER;doUpdate=!0}else if(_state===SCENE_STATE_DURING&&!reverseOrForward){updatePinState()}}
532if(doUpdate){var
533eventVars={progress:_progress,state:_state,scrollDirection:scrollDirection},stateChanged=_state!=oldState;var trigger=function(eventName){Scene.trigger(eventName,eventVars)};if(stateChanged){if(oldState!==SCENE_STATE_DURING){trigger("enter");trigger(oldState===SCENE_STATE_BEFORE?"start":"end")}}
534trigger("progress");if(stateChanged){if(_state!==SCENE_STATE_DURING){trigger(_state===SCENE_STATE_BEFORE?"start":"end");trigger("leave")}}}
535return Scene}};var updateScrollOffset=function(){_scrollOffset={start:_triggerPos+_options.offset};if(_controller&&_options.triggerElement){_scrollOffset.start-=_controller.info("size")*_options.triggerHook}
536_scrollOffset.end=_scrollOffset.start+_options.duration};var updateDuration=function(suppressEvents){if(_durationUpdateMethod){var varname="duration";if(changeOption(varname,_durationUpdateMethod.call(Scene))&&!suppressEvents){Scene.trigger("change",{what:varname,newval:_options[varname]});Scene.trigger("shift",{reason:varname})}}};var updateTriggerElementPosition=function(suppressEvents){var
537elementPos=0,telem=_options.triggerElement;if(_controller&&(telem||_triggerPos>0)){if(telem){if(telem.parentNode){var
538controllerInfo=_controller.info(),containerOffset=_util.get.offset(controllerInfo.container),param=controllerInfo.vertical?"top":"left";while(telem.parentNode.hasAttribute(PIN_SPACER_ATTRIBUTE)){telem=telem.parentNode}
539var elementOffset=_util.get.offset(telem);if(!controllerInfo.isDocument){containerOffset[param]-=_controller.scrollPos()}
540elementPos=elementOffset[param]-containerOffset[param]}else{log(2,"WARNING: triggerElement was removed from DOM and will be reset to",undefined);Scene.triggerElement(undefined)}}
541var changed=elementPos!=_triggerPos;_triggerPos=elementPos;if(changed&&!suppressEvents){Scene.trigger("shift",{reason:"triggerElementPosition"})}}};var onContainerResize=function(e){if(_options.triggerHook>0){Scene.trigger("shift",{reason:"containerResize"})}};var _validate=_util.extend(SCENE_OPTIONS.validate,{duration:function(val){if(_util.type.String(val)&&val.match(/^(\.|\d)*\d+%$/)){var perc=parseFloat(val)/100;val=function(){return _controller?_controller.info("size")*perc:0}}
542if(_util.type.Function(val)){_durationUpdateMethod=val;try{val=parseFloat(_durationUpdateMethod.call(Scene))}catch(e){val=-1}}
543val=parseFloat(val);if(!_util.type.Number(val)||val<0){if(_durationUpdateMethod){_durationUpdateMethod=undefined;throw["Invalid return value of supplied function for option \"duration\":",val]}else{throw["Invalid value for option \"duration\":",val]}}
544return val}});var validateOption=function(check){check=arguments.length?[check]:Object.keys(_validate);check.forEach(function(optionName,key){var value;if(_validate[optionName]){try{value=_validate[optionName](_options[optionName])}catch(e){value=DEFAULT_OPTIONS[optionName];var logMSG=_util.type.String(e)?[e]:e;if(_util.type.Array(logMSG)){logMSG[0]="ERROR: "+logMSG[0];logMSG.unshift(1);log.apply(this,logMSG)}else{log(1,"ERROR: Problem executing validation callback for option '"+optionName+"':",e.message)}}finally{_options[optionName]=value}}})};var changeOption=function(varname,newval){var
545changed=!1,oldval=_options[varname];if(_options[varname]!=newval){_options[varname]=newval;validateOption(varname);changed=oldval!=_options[varname]}
546return changed};var addSceneOption=function(optionName){if(!Scene[optionName]){Scene[optionName]=function(newVal){if(!arguments.length){return _options[optionName]}else{if(optionName==="duration"){_durationUpdateMethod=undefined}
547if(changeOption(optionName,newVal)){Scene.trigger("change",{what:optionName,newval:_options[optionName]});if(SCENE_OPTIONS.shifts.indexOf(optionName)>-1){Scene.trigger("shift",{reason:optionName})}}}
548return Scene}}};this.controller=function(){return _controller};this.state=function(){return _state};this.scrollOffset=function(){return _scrollOffset.start};this.triggerPosition=function(){var pos=_options.offset;if(_controller){if(_options.triggerElement){pos+=_triggerPos}else{pos+=_controller.info("size")*Scene.triggerHook()}}
549return pos};var _pin,_pinOptions;Scene.on("shift.internal",function(e){var durationChanged=e.reason==="duration";if((_state===SCENE_STATE_AFTER&&durationChanged)||(_state===SCENE_STATE_DURING&&_options.duration===0)){updatePinState()}
550if(durationChanged){updatePinDimensions()}}).on("progress.internal",function(e){updatePinState()}).on("add.internal",function(e){updatePinDimensions()}
550).on("destroy.internal",function(e){Scene.removePin(e.reset)});var updatePinState=function(forceUnpin){if(_pin&&_controller){var
551containerInfo=_controller.info(),pinTarget=_pinOptions.spacer.firstChild;if(!forceUnpin&&_state===SCENE_STATE_DURING){if(_util.css(pinTarget,"position")!="fixed"){_util.css(pinTarget,{"position":"fixed"});updatePinDimensions()}
552var fixedPos=_util.get.offset(_pinOptions.spacer,!0),scrollDistance=_options.reverse||_options.duration===0?containerInfo.scrollPos-_scrollOffset.start:Math.round(_progress*_options.duration*10)/10;fixedPos[containerInfo.vertical?"top":"left"]+=scrollDistance;_util.css(_pinOptions.spacer.firstChild,{top:fixedPos.top,left:fixedPos.left})}else{var
553newCSS={position:_pinOptions.inFlow?"relative":"absolute",top:0,left:0},change=_util.css(pinTarget,"position")!=newCSS.position;if(!_pinOptions.pushFollowers){newCSS[containerInfo.vertical?"top":"left"]=_options.duration*_progress}else if(_options.duration>0){if(_state===SCENE_STATE_AFTER&&parseFloat(_util.css(_pinOptions.spacer,"padding-top"))===0){change=!0}else if(_state===SCENE_STATE_BEFORE&&parseFloat(_util.css(_pinOptions.spacer,"padding-bottom"))===0){change=!0}}
554_util.css(pinTarget,newCSS);if(change){updatePinDimensions()}}}};var updatePinDimensions=function(){if(_pin&&_controller&&_pinOptions.inFlow){var
555after=(_state===SCENE_STATE_AFTER),before=(_state===SCENE_STATE_BEFORE),during=(_state===SCENE_STATE_DURING),vertical=_controller.info("vertical"),pinTarget=_pinOptions.spacer.firstChild,marginCollapse=_util.isMarginCollapseType(_util.css(_pinOptions.spacer,"display")),css={};if(_pinOptions.relSize.width||_pinOptions.relSize.autoFullWidth){if(during){_util.css(_pin,{"width":_util.get.width(_pinOptions.spacer)})}else{_util.css(_pin,{"width":"100%"})}}else{css["min-width"]=_util.get.width(vertical?_pin:pinTarget,!0,!0);css.width=during?css["min-width"]:"auto"}
556if(_pinOptions.relSize.height){if(during){_util.css(_pin,{"height":_util.get.height(_pinOptions.spacer)-(_pinOptions.pushFollowers?_options.duration:0)})}else{_util.css(_pin,{"height":"100%"})}}else{css["min-height"]=_util.get.height(vertical?pinTarget:_pin,!0,!marginCollapse);css.height=during?css["min-height"]:"auto"}
557if(_pinOptions.pushFollowers){css["padding"+(vertical?"Top":"Left")]=_options.duration*_progress;css["padding"+(vertical?"Bottom":"Right")]=_options.duration*(1-_progress)}
558_util.css(_pinOptions.spacer,css)}};var updatePinInContainer=function(){if(_controller&&_pin&&_state===SCENE_STATE_DURING&&!_controller.info("isDocument")){updatePinState()}};var updateRelativePinSpacer=function(){if(_controller&&_pin&&_state===SCENE_STATE_DURING&&(((_pinOptions.relSize.width||_pinOptions.relSize.autoFullWidth)&&_util.get.width(window)!=_util.get.width(_pinOptions.spacer.parentNode))||(_pinOptions.relSize.height&&_util.get.height(window)!=_util.get.height(_pinOptions.spacer.parentNode)))){updatePinDimensions()}};var onMousewheelOverPin=function(e){if(_controller&&_pin&&_state===SCENE_STATE_DURING&&!_controller.info("isDocument")){e.preventDefault();_controller._setScrollPos(_controller.info("scrollPos")-((e.wheelDelta||e[_controller.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||-e.detail*30))}};this.setPin=function(element,settings){var
559defaultSettings={pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"};var pushFollowersActivelySet=settings&&settings.hasOwnProperty('pushFollowers');settings=_util.extend({},defaultSettings,settings);element=_util.get.elements(element)[0];if(!element){log(1,"ERROR calling method 'setPin()': Invalid pin element supplied.");return Scene}else if(_util.css(element,"position")==="fixed"){log(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'.");return Scene}
560if(_pin){if(_pin===element){return Scene}else{Scene.removePin()}}
561_pin=element;var parentDisplay=_pin.parentNode.style.display,boundsParams=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];_pin.parentNode.style.display='none';var inFlow=_util.css(_pin,"position")!="absolute",pinCSS=_util.css(_pin,boundsParams.concat(["display"])),sizeCSS=_util.css(_pin,["width","height"]);_pin.parentNode.style.display=parentDisplay;
561if(!inFlow&&settings.pushFollowers){log(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled.");settings.pushFollowers=!1}
562window.setTimeout(function(){if(_pin&&_options.duration===0&&pushFollowersActivelySet&&settings.pushFollowers){log(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")}},0);var spacer=_pin.parentNode.insertBefore(document.createElement('div'),_pin),spacerCSS=_util.extend(pinCSS,{position:inFlow?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(!inFlow){_util.extend(spacerCSS,_util.css(_pin,["width","height"]))}
563_util.css(spacer,spacerCSS);spacer.setAttribute(PIN_SPACER_ATTRIBUTE,"");_util.addClass(spacer,settings.spacerClass);_pinOptions={spacer:spacer,relSize:{width:sizeCSS.width.slice(-1)==="%",height:sizeCSS.height.slice(-1)==="%",autoFullWidth:sizeCSS.width==="auto"&&inFlow&&_util.isMarginCollapseType(pinCSS.display)},pushFollowers:settings.pushFollowers,inFlow:inFlow,};if(!_pin.___origStyle){_pin.___origStyle={};var pinInlineCSS=_pin.style,copyStyles=boundsParams.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]);copyStyles.forEach(function(val){_pin.___origStyle[val]=pinInlineCSS[val]||""})}
564if(_pinOptions.relSize.width){_util.css(spacer,{width:sizeCSS.width})}
565if(_pinOptions.relSize.height){_util.css(spacer,{height:sizeCSS.height})}
566spacer.appendChild(_pin);_util.css(_pin,{position:inFlow?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"});if(_pinOptions.relSize.width||_pinOptions.relSize.autoFullWidth){_util.css(_pin,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})}
567window.addEventListener('scroll',updatePinInContainer);window.addEventListener('resize',updatePinInContainer);window.addEventListener('resize',updateRelativePinSpacer);_pin.addEventListener("mousewheel",onMousewheelOverPin);_pin.addEventListener("DOMMouseScroll",onMousewheelOverPin);log(3,"added pin");updatePinState();return Scene};this.removePin=function(reset){if(_pin){if(_state===SCENE_STATE_DURING){updatePinState(!0)}
568if(reset||!_controller){var pinTarget=_pinOptions.spacer.firstChild;if(pinTarget.hasAttribute(PIN_SPACER_ATTRIBUTE)){var
569style=_pinOptions.spacer.style,values=["margin","marginLeft","marginRight","marginTop","marginBottom"],margins={};values.forEach(function(val){margins[val]=style[val]||""});_util.css(pinTarget,margins)}
570_pinOptions.spacer.parentNode.insertBefore(pinTarget,_pinOptions.spacer);_pinOptions.spacer.parentNode.removeChild(_pinOptions.spacer);if(!_pin.parentNode.hasAttribute(PIN_SPACER_ATTRIBUTE)){_util.css(_pin,_pin.___origStyle);delete _pin.___origStyle}}
571window.removeEventListener('scroll',updatePinInContainer);window.removeEventListener('resize',updatePinInContainer);window.removeEventListener('resize',updateRelativePinSpacer);_pin.removeEventListener("mousewheel",onMousewheelOverPin);_pin.removeEventListener("DOMMouseScroll",onMousewheelOverPin);_pin=undefined;log(3,"removed pin (reset: "+(reset?"true":"false")+")")}
572return Scene};var _cssClasses,_cssClassElems=[];Scene.on("destroy.internal",function(e){Scene.removeClassToggle(e.reset)});this.setClassToggle=function(element,classes){var elems=_util.get.elements(element);if(elems.length===0||!_util.type.String(classes)){log(1,"ERROR calling method 'setClassToggle()': Invalid "+(elems.length===0?"element":"classes")+" supplied.");return Scene}
573if(_cssClassElems.length>0){Scene.removeClassToggle()}
574_cssClasses=classes;_cssClassElems=elems;Scene.on("enter.internal_class leave.internal_class",function(e){var toggle=e.type==="enter"?_util.addClass:_util.removeClass;_cssClassElems.forEach(function(elem,key){toggle(elem,_cssClasses)})});return Scene};this.removeClassToggle=function(reset){if(reset){_cssClassElems.forEach(function(elem,key){_util.removeClass(elem,_cssClasses)})}
575Scene.off("start.internal_class end.internal_class");_cssClasses=undefined;_cssClassElems=[];return Scene};construct();return Scene};var SCENE_OPTIONS={defaults:{duration:0,offset:0,triggerElement:undefined,triggerHook:0.5,reverse:!0,loglevel:2},validate:{offset:function(val){val=parseFloat(val);if(!_util.type.Number(val)){throw["Invalid value for option \"offset\":",val]}
576return val},triggerElement:function(val){val=val||undefined;if(val){var elem=_util.get.elements(val)[0];if(elem&&elem.parentNode){val=elem}else{throw["Element defined in option \"triggerElement\" was not found:",val]}
576}
577return val},triggerHook:function(val){var translate={"onCenter":0.5,"onEnter":1,"onLeave":0};if(_util.type.Number(val)){val=Math.max(0,Math.min(parseFloat(val),1))}else if(val in translate){val=translate[val]}else{throw["Invalid value for option \"triggerHook\": ",val]}
578return val},reverse:function(val){return!!val},loglevel:function(val){val=parseInt(val);if(!_util.type.Number(val)||val<0||val>3){throw["Invalid value for option \"loglevel\":",val]}
579return val}},shifts:["duration","offset","triggerHook"],};ScrollMagic.Scene.addOption=function(name,defaultValue,validationCallback,shifts){if(!(name in SCENE_OPTIONS.defaults)){SCENE_OPTIONS.defaults[name]=defaultValue;SCENE_OPTIONS.validate[name]=validationCallback;if(shifts){SCENE_OPTIONS.shifts.push(name)}}else{ScrollMagic._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+name+"', because it already exists.")}};ScrollMagic.Scene.extend=function(extension){var oldClass=this;ScrollMagic.Scene=function(){oldClass.apply(this,arguments);this.$super=_util.extend({},this);return extension.apply(this,arguments)||this};_util.extend(ScrollMagic.Scene,oldClass);ScrollMagic.Scene.prototype=oldClass.prototype;ScrollMagic.Scene.prototype.constructor=ScrollMagic.Scene};ScrollMagic.Event=function(type,namespace,target,vars){vars=vars||{};for(var key in vars){this[key]=vars[key]}
580this.type=type;this.target=this.currentTarget=target;this.namespace=namespace||'';this.timeStamp=this.timestamp=Date.now();return this};var _util=ScrollMagic._util=(function(window){var U={},i;var floatval=function(number){return parseFloat(number)||0};var _getComputedStyle=function(elem){return elem.currentStyle?elem.currentStyle:window.getComputedStyle(elem)};var _dimension=function(which,elem,outer,includeMargin){elem=(elem===document)?window:elem;if(elem===window){includeMargin=!1}else if(!_type.DomElement(elem)){return 0}
581which=which.charAt(0).toUpperCase()+which.substr(1).toLowerCase();var dimension=(outer?elem['offset'+which]||elem['outer'+which]:elem['client'+which]||elem['inner'+which])||0;if(outer&&includeMargin){var style=_getComputedStyle(elem);dimension+=which==='Height'?floatval(style.marginTop)+floatval(style.marginBottom):floatval(style.marginLeft)+floatval(style.marginRight)}
582return dimension};var _camelCase=function(str){return str.replace(/^[^a-z]+([a-z])/g,'$1').replace(/-([a-z])/g,function(g){return g[1].toUpperCase()})};U.extend=function(obj){obj=obj||{};for(i=1;i<arguments.length;i++){if(!arguments[i]){continue}
583for(var key in arguments[i]){if(arguments[i].hasOwnProperty(key)){obj[key]=arguments[i][key]}}}
584return obj};U.isMarginCollapseType=function(str){return["block","flex","list-item","table","-webkit-box"].indexOf(str)>-1};var lastTime=0,vendors=['ms','moz','webkit','o'];var _requestAnimationFrame=window.requestAnimationFrame;var _cancelAnimationFrame=window.cancelAnimationFrame;for(i=0;!_requestAnimationFrame&&i<vendors.length;++i){_requestAnimationFrame=window[vendors[i]+'RequestAnimationFrame'];_cancelAnimationFrame=window[vendors[i]+'CancelAnimationFrame']||window[vendors[i]+'CancelRequestAnimationFrame']}
585if(!_requestAnimationFrame){_requestAnimationFrame=function(callback){var
586currTime=new Date().getTime(),timeToCall=Math.max(0,16-(currTime-lastTime)),id=window.setTimeout(function(){callback(currTime+timeToCall)},timeToCall);lastTime=currTime+timeToCall;return id}}
587if(!_cancelAnimationFrame){_cancelAnimationFrame=function(id){window.clearTimeout(id)}}
588U.rAF=_requestAnimationFrame.bind(window);U.cAF=_cancelAnimationFrame.bind(window);var loglevels=["error","warn","log"],console=window.console||{};console.log=console.log||function(){};for(i=0;i<loglevels.length;i++){var method=loglevels[i];if(!console[method]){console[method]=console.log}}
589U.log=function(loglevel){if(loglevel>loglevels.length||loglevel<=0)loglevel=loglevels.length;var now=new Date(),time=("0"+now.getHours()).slice(-2)+":"+("0"+now.getMinutes()).slice(-2)+":"+("0"+now.getSeconds()).slice(-2)+":"+("00"+now.getMilliseconds()).slice(-3),method=loglevels[loglevel-1],args=Array.prototype.splice.call(arguments,1
589),func=Function.prototype.bind.call(console[method],console);args.unshift(time);func.apply(console,args)};var _type=U.type=function(v){return Object.prototype.toString.call(v).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};_type.String=function(v){return _type(v)==='string'};_type.Function=function(v){return _type(v)==='function'};_type.Array=function(v){return Array.isArray(v)};_type.Number=function(v){return!_type.Array(v)&&(v-parseFloat(v)+1)>=0};_type.DomElement=function(o){return(typeof HTMLElement==="object"||typeof HTMLElement==="function"?o instanceof HTMLElement||o instanceof SVGElement:o&&typeof o==="object"&&o!==null&&o.nodeType===1&&typeof o.nodeName==="string")};var _get=U.get={};_get.elements=function(selector){var arr=[];if(_type.String(selector)){try{selector=document.querySelectorAll(selector)}catch(e){return arr}}
590if(_type(selector)==='nodelist'||_type.Array(selector)||selector instanceof NodeList){for(var i=0,ref=arr.length=selector.length;i<ref;i++){var elem=selector[i];arr[i]=_type.DomElement(elem)?elem:_get.elements(elem)}}else if(_type.DomElement(selector)||selector===document||selector===window){arr=[selector]}
591return arr};_get.scrollTop=function(elem){return(elem&&typeof elem.scrollTop==='number')?elem.scrollTop:window.pageYOffset||0};_get.scrollLeft=function(elem){return(elem&&typeof elem.scrollLeft==='number')?elem.scrollLeft:window.pageXOffset||0};_get.width=function(elem,outer,includeMargin){return _dimension('width',elem,outer,includeMargin)};_get.height=function(elem,outer,includeMargin){return _dimension('height',elem,outer,includeMargin)};_get.offset=function(elem,relativeToViewport){var offset={top:0,left:0};if(elem&&elem.getBoundingClientRect){var rect=elem.getBoundingClientRect();offset.top=rect.top;offset.left=rect.left;if(!relativeToViewport){offset.top+=_get.scrollTop();offset.left+=_get.scrollLeft()}}
592return offset};U.addClass=function(elem,classname){if(classname){if(elem.classList)
593elem.classList.add(classname);else elem.className+=' '+classname}};U.removeClass=function(elem,classname){if(classname){if(elem.classList)
594elem.classList.remove(classname);else elem.className=elem.className.replace(new RegExp('(^|\\b)'+classname.split(' ').join('|')+'(\\b|$)','gi'),' ')}};U.css=function(elem,options){if(_type.String(options)){return _getComputedStyle(elem)[_camelCase(options)]}else if(_type.Array(options)){var
595obj={},style=_getComputedStyle(elem);options.forEach(function(option,key){obj[option]=style[_camelCase(option)]});return obj}else{for(var option in options){var val=options[option];if(val==parseFloat(val)){val+='px'}
596elem.style[_camelCase(option)]=val}}};return U}(window||{}));ScrollMagic.Scene.prototype.addIndicators=function(){ScrollMagic._util.log(1,'(ScrollMagic.Scene) -> ERROR calling addIndicators() due to missing Plugin \'debug.addIndicators\'. Please make sure to include plugins/debug.addIndicators.js');return this}
597ScrollMagic.Scene.prototype.removeIndicators=function(){ScrollMagic._util.log(1,'(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin \'debug.addIndicators\'. Please make sure to include plugins/debug.addIndicators.js');return this}
598ScrollMagic.Scene.prototype.setTween=function(){ScrollMagic._util.log(1,'(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin \'animation.gsap\'. Please make sure to include plugins/animation.gsap.js');return this}
599ScrollMagic.Scene.prototype.removeTween=function(){ScrollMagic._util.log(1,'(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin \'animation.gsap\'. Please make sure to include plugins/animation.gsap.js');return this}
600ScrollMagic.Scene.prototype.setVelocity=function(){ScrollMagic._util.log(1,'(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin \'animation.velocity\'. Please make sure to include plugins/animation.velocity.js');return this}
601ScrollMagic.Scene.prototype.removeVelocity=function(){ScrollMagic._util.log(1,'(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin \'animation.velocity\'. Please make sure to include plugins/animation.velocity.js');return this}
602return ScrollMagic}));/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */
603!function(e,i){"function"==typeof define&&define.amd?define(["ScrollMagic","jquery"],i):"object"==typeof exports?i(require("scrollmagic"),require("jquery")):i(e.ScrollMagic,e.jQuery)}(this,function(e,t){"use strict";e._util.get.elements=function(e){return t(e).toArray()},e._util.addClass=function(e,i){t(e).addClass(i)},e._util.removeClass=function(e,i){t(e).removeClass(i)},t.ScrollMagic=e});
604/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */
605!function(e,r){"function"==typeof define&&define.amd?define(["ScrollMagic"],r):"object"==typeof exports?r(require("scrollmagic")):r(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic)}(this,function(i){"use strict";var o="0.85em",n="9999",v=i._util,h=0;i.Scene.extend(function(){var t,i=this;
605i.addIndicators=function(e){if(!t){var r={name:"",indent:0,parent:void 0,colorStart:"green",colorEnd:"red",colorTrigger:"blue"};e=v.extend({},r,e),h++,t=new s(i,e),i.on("add.plugin_addIndicators",t.add),i.on("remove.plugin_addIndicators",t.remove),i.on("destroy.plugin_addIndicators",i.removeIndicators),i.controller()&&t.add()}return i},i.removeIndicators=function(){return t&&(t.remove(),this.off("*.plugin_addIndicators"),t=void 0),i}}),i.Controller.addOption("addIndicators",!1),i.Controller.extend(function(){var c=this,e=c.info(),l=e.container,f=e.isDocument,m=e.vertical,h={groups:[]};this._indicators=h;var r=function(){h.updateBoundsPositions()},t=function(){h.updateTriggerGroupPositions()};return l.addEventListener("resize",t),f||(window.addEventListener("resize",t),window.addEventListener("scroll",t)),l.addEventListener("resize",r),l.addEventListener("scroll",r),this._indicators.updateBoundsPositions=function(e){for(var r,t,i,o=e?[v.extend({},e.triggerGroup,{members:[e]})]:h.groups,n=o.length,s={},d=m?"left":"top",a=m?"width":"height",g=m?v.get.scrollLeft(l)+v.get.width(l)-15:v.get.scrollTop(l)+v.get.height(l)-15;n--;)for(r=(i=o[n]).members.length,t=v.get[a](i.element.firstChild);r--;)s[d]=g-t,v.css(i.members[r].bounds,s)},this._indicators.updateTriggerGroupPositions=function(e){for(var r,t,i,o,n=e?[e]:h.groups,s=n.length,d=f?document.body:l,a=f?{top:0,left:0}:v.get.offset(d,!0),g=m?v.get.width(l)-15:v.get.height(l)-15,p=m?"width":"height",u=m?"Y":"X";s--;)t=(r=n[s]).element,i=r.triggerHook*c.info("size"),o=v.get[p](t.firstChild.firstChild)<i?"translate"+u+"(-100%)":"",v.css(t,{top:a.top+(m?i:g-r.members[0].options.indent),left:a.left+(m?g-r.members[0].options.indent:i)}),v.css(t.firstChild.firstChild,{"-ms-transform":o,"-webkit-transform":o,transform:o})},this._indicators.updateTriggerGroupLabel=function(e){var r="trigger"+(1<e.members.length?"":" "+e.members[0].options.name),t=e.element.firstChild.firstChild;t.textContent!==r&&(t.textContent=r,m&&h.updateBoundsPositions())},this.addScene=function(e){this._options.addIndicators&&e instanceof i.Scene&&e.controller()===c&&e.addIndicators(),this.$super.addScene.apply(this,arguments)},this.destroy=function(){l.removeEventListener("resize",t),f||(window.removeEventListener("resize",t),window.removeEventListener("scroll",t)),l.removeEventListener("resize",r),l.removeEventListener("scroll",r),this.$super.destroy.apply(this,arguments)},c});var s=function(o,n){var s,d,a=this,t=b.bounds(),i=b.start(n.colorStart),g=b.end(n.colorEnd),p=n.parent&&v.get.elements(n.parent)[0];n.name=n.name||h,i.firstChild.textContent+=" "+n.name,g.textContent+=" "+n.name,t.appendChild(i),t.appendChild(g),a.options=n,a.bounds=t,a.triggerGroup=void 0,this.add=function(){d=o.controller(),s=d.info("vertical");var e=d.info("isDocument");p||(p=e?document.body:d.info("container")),e||"static"!==v.css(p,"position")||v.css(p,{position:"relative"}),o.on("change.plugin_addIndicators",u),o.on("shift.plugin_addIndicators",r),m(),l(),setTimeout(function(){d._indicators.updateBoundsPositions(a)},0)},this.remove=function(){if(a.triggerGroup){if(o.off("change.plugin_addIndicators",u),o.off("shift.plugin_addIndicators",r),1<a.triggerGroup.members.length){var e=a.triggerGroup;e.members.splice(e.members.indexOf(a),1),d._indicators.updateTriggerGroupLabel(e),d._indicators.updateTriggerGroupPositions(e),a.triggerGroup=void 0}else f();c()}};var r=function(){l()},u=function(e){"triggerHook"===e.what&&m()},c=function(){t.parentNode.removeChild(t)},l=function(){var e;t.parentNode!==p&&(e=d.info("vertical"),v.css(i.firstChild,{"border-bottom-width":e?1:0,"border-right-width":e?0:1,bottom:e?-1:n.indent,right:e?n.indent:-1,padding:e?"0 8px":"2px 4px"}),v.css(g,{"border-top-width":e?1:0,"border-left-width":e?0:1,top:e?"100%":"",right:e?n.indent:"",bottom:e?"":n.indent,left:e?"":"100%",padding:e?"0 8px":"2px 4px"}),p.appendChild(t));var r={};r[s?"top":"left"]=o.triggerPosition(),r[s?"height":"width"]=o.duration(),v.css(t,r),v.css(g,{display:0<o.duration()?"":"none"})},f=function(){d._indicators.groups.splice(d._indicators.groups.indexOf(a.triggerGroup),1),a.triggerGroup.element.parentNode.removeChild(a.triggerGroup.element),a.triggerGroup=void 0},m=function(){var e=o.triggerHook();if(!(a.triggerGroup&&Math.abs(a.triggerGroup.triggerHook-e)<1e-4)){for(var r,t=d._indicators.groups,i=t.length;i--;)if(r=t[i],Math.abs(r.triggerHook-e)<1e-4)return a.triggerGroup&&(1===a.triggerGroup.members.length?f():(a.triggerGroup.members.splice(a.triggerGroup.members.indexOf(a),1),d._indicators.updateTriggerGroupLabel(a.triggerGroup),d._indicators.updateTriggerGroupPositions(a.triggerGroup))),r.members.push(a),a.triggerGroup=r,void d._indicators.updateTriggerGroupLabel(r);if(a.triggerGroup){if(1===a.triggerGroup.members.length)return a.triggerGroup.triggerHook=e,void d._indicators.updateTriggerGroupPositions(a.triggerGroup);a.triggerGroup.members.splice(a.triggerGroup.members.indexOf(a),1),d._indicators.updateTriggerGroupLabel(a.triggerGroup),d._indicators.updateTriggerGroupPositions(a.triggerGroup),a.triggerGroup=void 0}!function(){var e=b.trigger(n.colorTrigger),r={};r[s?"right":"bottom"]=0,r[s?"border-top-width":"border-left-width"]=1,v.css(e.firstChild,r),v.css(e.firstChild.firstChild,{padding:s?"0 8px 3px 8px":"3px 4px"}),document.body.appendChild(e);var t={triggerHook:o.triggerHook(),element:e,members:[a]};d._indicators.groups.push(t),a.triggerGroup=t,d._indicators.updateTriggerGroupLabel(t),d._indicators.updateTriggerGroupPositions(t)}()}}},b={start:function(e){var r=document.createElement("div");r.textContent="start",v.css(r,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:e,"border-color":e});var t=document.createElement("div");return v.css(t,{position:"absolute",overflow:"visible",width:0,height:0}),t.appendChild(r),t},end:function(e){var r=document.createElement("div");return r.textContent="end",v.css(r,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:e,"border-color":e}),r},bounds:function(){var e=document.createElement("div");return v.css(e,{position:"absolute",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":o}),e.style.zIndex=n,e},trigger:function(e){var r=document.createElement("div");r.textContent="trigger",v.css(r,{position:"relative"});var t=document.createElement("div");v.css(t,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:e,"border-color":e}),t.appendChild(r);var i=document.createElement("div");return v.css(i,{position:"fixed",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":o}),i.style.zIndex=n,i.appendChild(t),i}}});
606/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */
607!function(e,i){"function"==typeof define&&define.amd?define(["ScrollMagic","velocity"],i):"object"==typeof exports?i(require("scrollmagic"),require("velocity")):i(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic,e.Velocity||e.jQuery&&e.jQuery.Velocity)}(this,function(e,y){"use strict";var v=0;e.Scene.extend(function(){var o,r,u,n,c=this,l=e._util,i=0;c.on("progress.plugin_velocity",function(){f()}),c.on("destroy.plugin_velocity",function(e){c.off("*.plugin_velocity"),c.removeVelocity(e.reset)});var s=function(e,i,t){l.type.Array(e)?e.forEach(function(e){s(e,i,t)}):(y.Utilities.data(e,n)||y.Utilities.data(e,n,{reverseProps:l.css(e,Object.keys(r))}),y(e,i,t),void 0!==t.queue&&y.Utilities.dequeue(e,t.queue))},a=function(e,i){if(l.type.Array(e))e.forEach(function(e){a(e,i)});else{var t=y.Utilities.data(e,n);t&&t.reverseProps&&(y(e,t.reverseProps,i),void 0!==i.queue&&y.Utilities.dequeue(e,i.queue))}},f=function(){if(o){var e=c.progress();e!=i&&(0===c.duration()&&(0<e?s(o,r,u):a(o,u)),i=e)}};c.setVelocity=function(e,i,t){return o&&c.removeVelocity(),o=l.get.elements(e),r=i||{},n="ScrollMagic.animation.velocity["+v+++"]",void 0!==(u=t||{}).queue&&(u.queue=n+"_queue"),f(),c},c.removeVelocity=function(e){return o&&(void 0!==u.queue&&y(o,"stop",u.queue),e&&a(o,{duration:0}),o.forEach(function(e){y.Utilities.removeData(e,n)}),o=r=u=n=void 0),c}})});
608/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */
609!function(e,n){if("function"==typeof define&&define.amd)define(["ScrollMagic","g
609sap","TweenMax","TimelineMax"],n);else if("object"==typeof exports){var r=require("gsap/dist/gsap")||require("gsap");n(require("scrollmagic"),r,TweenMax||r,TimelineMax||r)}else n(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic,e.gsap,e.gsap||e.TweenMax||e.TweenLite,e.gsap||e.TimelineMax||e.TimelineLite)}(this,function(e,n,p,u){"use strict";var g=n&&3<=parseFloat(n.version);e.Scene.addOption("tweenChanges",!1,function(e){return!!e}),e.Scene.extend(function(){var i,o=this;o.on("progress.plugin_gsap",function(){s()}),o.on("destroy.plugin_gsap",function(e){o.removeTween(e.reset)});var s=function(){if(i){var e=o.progress(),n=o.state();i.repeat&&-1===i.repeat()?"DURING"===n&&i.paused()?i.play():"DURING"===n||i.paused()||i.pause():e!=i.progress()&&(0===o.duration()?0<e?i.play():i.reverse():o.tweenChanges()&&i.tweenTo?i.tweenTo(e*i.duration()):i.progress(e).pause())}};o.setTween=function(e,n,r){var t;if(1<arguments.length){var a="number"==typeof arguments[1];g?(a||(r=n),r.hasOwnProperty("duration")||(r.duration=a?n:1)):arguments.length<3&&(r=n,n=1),e=g?p.to(e,r):p.to(e,n,r)}try{(t=u&&!g?new u({smoothChildTiming:!0}).add(e):e).pause()}catch(e){return o}return i&&o.removeTween(),i=t,e.repeat&&-1===e.repeat()&&(i.repeat(-1),i.yoyo(e.yoyo())),s(),o},o.removeTween=function(e){return i&&(e&&i.progress(0).pause(),i.kill(),i=void 0),o}})});function refreshScrollMagicPinnedWidth(scene,$el,controller){if(!scene||!$el)return;const $spacer=$el.parentNode;if(!$spacer||!$spacer.classList||!$spacer.className.includes('scrollmagic-pin-spacer'))return;const state=scene.state();if(!state)return;const $container=$spacer.parentNode;if(!$container)return;const containerWidth=$container.clientWidth;if(state==='DURING'){$spacer.style.width=containerWidth+'px';$el.style.width=containerWidth+'px'}else{$spacer.style.width='';$el.style.width=''}
610if(scene.refresh)scene.refresh();if(controller&&controller.update)controller.update(!0);}
611function updateStateClass(scene,$el,className='scene-entered'){if(!scene||!$el)return;function updateGotClass(){if(typeof scene.state!=='function')return;const state=scene.state();const isScrolled=(state==='DURING'||state==='AFTER');$el.classList.toggle(className,isScrolled)}
612scene.on('enter',updateGotClass).on('leave',updateGotClass).on('update',updateGotClass);updateGotClass()}
613let show=function(elem){elem.style.display='block'};let hide=function(elem){elem.style.display='none'};let toggle=function(elem){if(window.getComputedStyle(elem).display==='block'){hide(elem);return}
614show(elem)};let bind=function(fn,me){return function(){return fn.apply(me,arguments)}},indexOf=[].indexOf||function(item){for(let i=0,l=this.length;i<l;i++){if(i in this&&this[i]===item)return i}return-1};slideToggler=(function(){function slideToggler(el1){this.el=el1;this.toggle=bind(this.toggle,this);if(!this.el){return}
615this.height=this.getHeight()}
616slideToggler.prototype.getHeight=function(){let clone;if(this.el.clientHeight>10){return this.el.clientHeight}
617clone=this.el.cloneNode(!0);clone.style.cssText='position: absolute; visibility: hidden; display: block;';this.el.parentNode.appendChild(clone);this.height=clone.clientHeight;this.el.parentNode.removeChild(clone);return this.height};slideToggler.prototype.toggle=function(time){let currHeight,disp,el,end,init,ref,repeat,start;if(!(this.height>0)){this.height=this.getHeight()}
618if(time==null){time=this.height}
619currHeight=this.el.clientHeight*(getComputedStyle(this.el).display!=='none');ref=currHeight>this.height/2?[this.height,0]:[0,this.height],start=ref[0],end=ref[1];disp=end-start;el=this.el;this.el.classList[end===0?'remove':'add']('open');this.el.style.cssText="overflow: hidden; display: block; padding-top: 0; padding-bottom: 0";init=(new Date).getTime();repeat=function(){let i,instance,ref1,repeatLoop,results,step;instance=(new Date).getTime()-init;step=start+disp*instance/time;if(instance<=time){el.style.height=step+'px'}else{el.style.cssText="display: "+(end===0?'none':'block')}
620repeatLoop=requestAnimationFrame(repeat);if(ref1=Math.floor(step),indexOf.call((function(){results=[];for(let i=start;start<=end?i<=end:i>=end;start<=end?i++:i--){results.push(i)}
621return results}).apply(this),ref1)<0){return cancelAnimationFrame(repeatLoop)}};return repeat()};return slideToggler})();let slideToggle=function(elements,duration=200){elements=(!Array.isArray(elements))?[elements]:elements;for(let i=0;i<elements.length;i++){let el=elements[i];if(!el.toggler){el.toggler=new slideToggler(el)}
622el.toggler.toggle(duration)}};
vendor: 15,068 bytes, line 622
622var tns=function(){var t=window,Ai=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)},e=window,Ni=e.cancelAnimationFrame||e.mozCancelAnimationFrame||function(t){clearTimeout(t)};function Li(){for(var t,e,n,i=arguments[0]||{},a=1,r=arguments.length;a<r;a++)if(null!==(t=arguments[a]))for(e in t)i!==(n=t[e])&&void 0!==n&&(i[e]=n);return i}function Bi(t){return 0<=["true","false"].indexOf(t)?JSON.parse(t):t}function Si(t,e,n,i){if(i)try{t.setItem(e,n)}catch(t){}return n}function Hi(){var t=document,e=t.body;return e||((e=t.createElement("body")).fake=!0),e}var n=document.documentElement;function Oi(t){var e="";return t.fake&&(e=n.style.overflow,t.style.background="",t.style.overflow=n.style.overflow="hidden",n.appendChild(t)),e}function Di(t,e){t.fake&&(t.remove(),n.style.overflow=e,n.offsetHeight)}function ki(t,e,n,i){"insertRule"in t?t.insertRule(e+"{"+n+"}",i):t.addRule(e,n,i)}function Ri(t){return("insertRule"in t?t.cssRules:t.rules).length}function Ii(t,e,n){for(var i=0,a=t.length;i<a;i++)e.call(n,t[i],i)}var i="classList"in document.createElement("_"),Pi=i?function(t,e){return t.classList.contains(e)}:function(t,e){return 0<=t.className.indexOf(e)},zi=i?function(t,e){Pi(t,e)||t.classList.add(e)}:function(t,e){Pi(t,e)||(t.className+=" "+e)},Wi=i?function(t,e){Pi(t,e)&&t.classList.remove(e)}:function(t,e){Pi(t,e)&&(t.className=t.className.replace(e,""))};function qi(t,e){return t.hasAttribute(e)}function Fi(t,e){return t.getAttribute(e)}function r(t){return void 0!==t.item}function ji(t,e){if(t=r(t)||t instanceof Array?t:[t],"[object Object]"===Object.prototype.toString.call(e))for(var n=t.length;n--;)for(var i in e)t[n].setAttribute(i,e[i])}function Vi(t,e){t=r(t)||t instanceof Array?t:[t];for(var n=(e=e instanceof Array?e:[e]).length,i=t.length;i--;)for(var a=n;a--;)t[i].removeAttribute(e[a])}function Gi(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(t[n]);return e}function Qi(t,e){"none"!==t.style.display&&(t.style.display="none")}function Xi(t,e){"none"===t.style.display&&(t.style.display="")}function Yi(t){return"none"!==window.getComputedStyle(t).display}function Ki(e){if("string"==typeof e){var n=[e],i=e.charAt(0).toUpperCase()+e.substr(1);["Webkit","Moz","ms","O"].forEach(function(t){"ms"===t&&"transform"!==e||n.push(t+i)}),e=n}for(var t=document.createElement("fakeelement"),a=(e.length,0);a<e.length;a++){var r=e[a];if(void 0!==t.style[r])return r}return!1}function Ji(t,e){var n=!1;return/^Webkit/.test(t)?n="webkit"+e+"End":/^O/.test(t)?n="o"+e+"End":t&&(n=e.toLowerCase()+"end"),n}var a=!1;try{var o=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("test",null,o)}catch(t){}var u=!!a&&{passive:!0};function Ui(t,e,n){for(var i in e){var a=0<=["touchstart","touchmove"].indexOf(i)&&!n&&u;t.addEventListener(i,e[i],a)}}function _i(t,e){for(var n in e){var i=0<=["touchstart","touchmove"].indexOf(n)&&u;t.removeEventListener(n,e[n],i)}}function Zi(){return{topics:{},on:function(t,e){this.topics[t]=this.topics[t]||[],this.topics[t].push(e)},off:function(t,e){if(this.topics[t])for(var n=0;n<this.topics[t].length;n++)if(this.topics[t][n]===e){this.topics[t].splice(n,1);break}},emit:function(e,n){n.type=e,this.topics[e]&&this.topics[e].forEach(function(t){t(n,e)})}}}Object.keys||(Object.keys=function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var $i=function(H){H=Li({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},H||{});var O=document,m=window,a={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},e={},n=H.useLocalStorage;if(n){var t=navigator.userAgent,i=new Date;try{(e=m.localStorage)?(e.setItem(i,i),n=e.getItem(i)==i,e.removeItem(i)):n=!1,n||(e={})}catch(t){n=!1}n&&(e.tnsApp&&e.tnsApp!==t&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach(function(t){e.removeItem(t)}),localStorage.tnsApp=t)}var y=e.tC?Bi(e.tC):Si(e,"tC",function(){var t=document,e=Hi(),n=Oi(e),i=t.createElement("div"),a=!1;e.appendChild(i);try{for(var r,o="(10px * 10)",u=["calc"+o,"-moz-calc"+o,"-webkit-calc"+o],l=0;l<3;l++)if(r=u[l],i.style.width=r,100===i.offsetWidth){a=r.replace(o,"");break}}catch(t){}return e.fake?Di(e,n):i.remove(),a}(),n),g=e.tPL?Bi(e.tPL):Si(e,"tPL",function(){var t,e=document,n=Hi(),i=Oi(n),a=e.createElement("div"),r=e.createElement("div"),o="";a.className="tns-t-subp2",r.className="tns-t-ct";for(var u=0;u<70;u++)o+="<div></div>";return r.innerHTML=o,a.appendChild(r),n.appendChild(a),t=Math.abs(a.getBoundingClientRect().left-r.children[67].getBoundingClientRect().left)<2,n.fake?Di(n,i):a.remove(),t}(),n),D=e.tMQ?Bi(e.tMQ):Si(e,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var t,e=document,n=Hi(),i=Oi(n),a=e.createElement("div"),r=e.createElement("style"),o="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return r.type="text/css",a.className="tns-mq-test",n.appendChild(r),n.appendChild(a),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(e.createTextNode(o)),t=window.getComputedStyle?window.getComputedStyle(a).position:a.currentStyle.position,n.fake?Di(n,i):a.remove(),"absolute"===t}(),n),r=e.tTf?Bi(e.tTf):Si(e,"tTf",Ki("transform"),n),o=e.t3D?Bi(e.t3D):Si(e,"t3D",function(t){if(!t)return!1;if(!window.getComputedStyle)return!1;var e,n=document,i=Hi(),a=Oi(i),r=n.createElement("p"),o=9<t.length?"-"+t.slice(0,-9).toLowerCase()+"-":"";return o+="transform",i.insertBefore(r,null),r.style[t]="translate3d(1px,1px,1px)",e=window.getComputedStyle(r).getPropertyValue(o),i.fake?Di(i,a):r.remove(),void 0!==e&&0<e.length&&"none"!==e}(r),n),x=e.tTDu?Bi(e.tTDu):Si(e,"tTDu",Ki("transitionDuration"),n),u=e.tTDe?Bi(e.tTDe):Si(e,"tTDe",Ki("transitionDelay"),n),b=e.tADu?Bi(e.tADu):Si(e,"tADu",Ki("animationDuration"),n),l=e.tADe?Bi(e.tADe):Si(e,"tADe",Ki("animationDelay"),n),s=e.tTE?Bi(e.tTE):Si(e,"tTE",Ji(x,"Transition"),n),c=e.tAE?Bi(e.tAE):Si(e,"tAE",Ji(b,"Animation"),n),f=m.console&&"function"==typeof m.console.warn,d=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],v={};if(d.forEach(function(t){if("string"==typeof H[t]){var e=H[t],n=O.querySelector(e);if(v[t]=e,!n||!n.nodeName)return void(f&&console.warn("Can't find",H[t]));H[t]=n}}),!(H.container.children.length<1)){var k=H.responsive,R=H.nested,I="carousel"===H.mode;if(k){0 in k&&(H=Li(H,k[0]),delete k[0]);var p={};for(var h in k){var w=k[h];w="number"==typeof w?{items:w}:w,p[h]=w}k=p,p=null}if(I||function t(e){for(var n in e)I||("slideBy"===n&&(e[n]="page"),"edgePadding"===n&&(e[n]=!1),"autoHeight"===n&&(e[n]=!1)),"responsive"===n&&t(e[n])}(H),!I){H.axis="horizontal",H.slideBy="page",H.edgePadding=!1;var P=H.animateIn,z=H.animateOut,C=H.animateDelay,W=H.animateNormal}var M,q,F="horizontal"===H.axis,T=O.createElement("div"),j=O.createElement("div"),V=H.container,E=V.parentNode,A=V.outerHTML,G=V.children,Q=G.length,X=rn(),Y=!1;k&&En(),I&&(V.className+=" tns-vpfix");var N,L,B,S,K,J,U,_,Z,$=H.autoWidth,tt=sn("fixedWidth"),et=sn("edgePadding"),nt=sn("gutter"),it=un(),at=sn("center"),rt=$?1:Math.floor(sn("items")),ot=sn("slideBy"),ut=H.viewportMax||H.fixedWidthViewportWidth,lt=sn("arrowKeys"),st=sn("speed"),ct=H.rewind,ft=!ct&&H.loop,dt=sn("autoHeight"),vt=sn("controls"),pt=sn("controlsText"),ht=sn("nav"),mt=sn("touch"),yt=sn("mouseDrag"),gt=sn("autoplay"),xt=sn("autoplayTimeout"),bt=sn("autoplayText"),wt=sn("autoplayHoverPause"),Ct=sn("autoplayResetOnVisibility"),Mt=(U=null,_=sn("nonce"),Z=document.createElement("style"),U&&Z.setAttribute("media",U),_&&Z.setAttribute("nonce",_),document.querySelector("head").appendChild(Z),Z.sheet?Z.sheet:Z.styleSheet),Tt=H.lazyload,Et=H.lazyloadSelector,At=[],Nt=ft?(K=function(){{if($||tt&&!ut)return Q-1;var t=tt?"fixedWidth":"items",e=[];if((tt||H[t]<Q)&&e.push(H[t]),k)for(var n in k){var i=k[n][t];i&&(tt||i<Q)&&e.push(i)}return e.length||e.push(0),Math.ceil(tt?ut/Math.min.apply(null,e):Math.max.apply(null,e))}}(),J=I?Math.ceil((5*K-Q)/2):4*K-Q,J=Math.max(K,J),ln("edgePadding")?J+1:J):0,Lt=I?Q+2*Nt:Q+Nt,Bt=!(!tt&&!$||ft),St=tt?_n():null,Ht=!I||!ft,Ot=F?"left":"top",Dt="",kt="",Rt=tt?function(){return at&&!ft?Q-1:Math.ceil(-St/(tt+nt))}:$?function(){for(var t=0;t<Lt;t++)if(N[t]>=-St)return t}:function(){return at&&I&&!ft?Q-1:ft||I?Math.max(0,Lt-Math.ceil(rt)):Lt-1},It=en(sn("startIndex")),Pt=It,zt=(tn(),0),Wt=$?null:Rt(),qt=H.preventActionWhenRunning,Ft=H.swipeAngle,jt=!Ft||"?",Vt=!1,Gt=H.onInit,Qt=new Zi,Xt=" tns-slider tns-"+H.mode,Yt=V.id||(S=window.tnsId,window.tnsId=S?S+1:1,"tns"+window.tnsId),Kt=sn("disable"),Jt=!1,Ut=H.freezable,_t=!(!Ut||$)&&Tn(),Zt=!1,$t={click:oi,keydown:function(t){t=pi(t);var e=[a.LEFT,a.RIGHT].indexOf(t.keyCode);0<=e&&(0===e?we.disabled||oi(t,-1):Ce.disabled||oi(t,1))}},te={click:function(t){if(Vt){if(qt)return;ai()}var e=hi(t=pi(t));for(;e!==Ae&&!qi(e,"data-nav");)e=e.parentNode;if(qi(e,"data-nav")){var n=Se=Number(Fi(e,"data-nav")),i=tt||$?n*Q/Le:n*rt,a=le?n:Math.min(Math.ceil(i),Q-1);ri(a,t),He===n&&(Pe&&fi(),Se=-1)}},keydown:function(t){t=pi(t);var e=O.activeElement;if(!qi(e,"data-nav"))return;var n=[a.LEFT,a.RIGHT,a.ENTER,a.SPACE].indexOf(t.keyCode),i=Number(Fi(e,"data-nav"));0<=n&&(0===n?0<i&&vi(Ee[i-1]):1===n?i<Le-1&&vi(Ee[i+1]):ri(Se=i,t))}},ee={mouseover:function(){Pe&&(li(),ze=!0)},mouseout:function(){ze&&(ui(),ze=!1)}},ne={visibilitychange:function(){O.hidden?Pe&&(li(),qe=!0):qe&&(ui(),qe=!1)}},ie={keydown:function(t){t=pi(t);var e=[a.LEFT,a.RIGHT].indexOf(t.keyCode);0<=e&&oi(t,0===e?-1:1)}},ae={touchstart:xi,touchmove:bi,touchend:wi,touchcancel:wi},re={mousedown:xi,mousemove:bi,mouseup:wi,mouseleave:wi},oe=ln("controls"),ue=ln("nav"),le=!!$||H.navAsThumbnails,se=ln("autoplay"),ce=ln("touch"),fe=ln("mouseDrag"),de="tns-slide-active",ve="tns-slide-cloned",pe="tns-complete",he={load:function(t){kn(hi(t))},error:function(t){e=hi(t),zi(e,"failed"),Rn(e);var e}},me="force"===H.preventScrollOnTouch;if(oe)var ye,ge,xe=H.controlsContainer,be=H.controlsContainer?H.controlsContainer.outerHTML:"",we=H.prevButton,Ce=H.nextButton,Me=H.prevButton?H.prevButton.outerHTML:"",Te=H.nextButton?H.nextButton.outerHTML:"";if(ue)var Ee,Ae=H.navContainer,Ne=H.navContainer?H.navContainer.outerHTML:"",Le=$?Q:Mi(),Be=0,Se=-1,He=an(),Oe=He,De="tns-nav-active",ke="Carousel Page ",Re=" (Current Slide)";if(se)var Ie,Pe,ze,We,qe,Fe="forward"===H.autoplayDirection?1:-1,je=H.autoplayButton,Ve=H.autoplayButton?H.autoplayButton.outerHTML:"",Ge=["<span class='tns-visually-hidden'>"," animation</span>"];if(ce||fe)var Qe,Xe,Ye={},Ke={},Je=!1,Ue=F?function(t,e){return t.x-e.x}:function(t,e){return t.y-e.y};$||$e(Kt||_t),r&&(Ot=r,Dt="translate",o?(Dt+=F?"3d(":"3d(0px, ",kt=F?", 0px, 0px)":", 0px)"):(Dt+=F?"X(":"Y(",kt=")")),I&&(V.className=V.className.replace("tns-vpfix","")),function(){ln("gutter");T.className="tns-outer",j.className="tns-inner",T.id=Yt+"-ow",j.id=Yt+"-iw",""===V.id&&(V.id=Yt);Xt+=g||$?" tns-subpixel":" tns-no-subpixel",Xt+=y?" tns-calc":" tns-no-calc",$&&(Xt+=" tns-autowidth");Xt+=" tns-"+H.axis,V.className+=Xt,I?((M=O.createElement("div")).id=Yt+"-mw",M.className="tns-ovh",T.appendChild(M),M.appendChild(j)):T.appendChild(j);if(dt){var t=M||j;t.className+=" tns-ah"}if(E.insertBefore(T,V),j.appendChild(V),Ii(G,function(t,e){zi(t,"tns-item"),t.id||(t.id=Yt+"-item"+e),!I&&W&&zi(t,W),ji(t,{"aria-hidden":"true",tabindex:"-1"})}),Nt){for(var e=O.createDocumentFragment(),n=O.createDocumentFragment(),i=Nt;i--;){var a=i%Q,r=G[a].cloneNode(!0);if(zi(r,ve),Vi(r,"id"),n.insertBefore(r,n.firstChild),I){var o=G[Q-1-a].cloneNode(!0);zi(o,ve),Vi(o,"id"),e.appendChild(o)}}V.insertBefore(e,V.firstChild),V.appendChild(n),G=V.children}}(),function(){if(!I)for(var t=It,e=It+Math.min(Q,rt);t<e;t++){var n=G[t];n.style.left=100*(t-It)/rt+"%",zi(n,P),Wi(n,W)}F&&(g||$?(ki(Mt,"#"+Yt+" > .tns-item","font-size:"+m.getComputedStyle(G[0]).fontSize+";",Ri(Mt)),ki(Mt,"#"+Yt,"font-size:0;",Ri(Mt))):I&&Ii(G,function(t,e){var n;t.style.marginLeft=(n=e,y?y+"("+100*n+"% / "+Lt+")":100*n/Lt+"%")}));if(D){if(x){var i=M&&H.autoHeight?hn(H.speed):"";ki(Mt,"#"+Yt+"-mw",i,Ri(Mt))}i=cn(H.edgePadding,H.gutter,H.fixedWidth,H.speed,H.autoHeight),ki(Mt,"#"+Yt+"-iw",i,Ri(Mt)),I&&(i=F&&!$?"width:"+fn(H.fixedWidth,H.gutter,H.items)+";":"",x&&(i+=hn(st)),ki(Mt,"#"+Yt,i,Ri(Mt))),i=F&&!$?dn(H.fixedWidth,H.gutter,H.items):"",H.gutter&&(i+=vn(H.gutter)),I||(x&&(i+=hn(st)),b&&(i+=mn(st))),i&&ki(Mt,"#"+Yt+" > .tns-item",i,Ri(Mt))}else{I&&dt&&(M.style[x]=st/1e3+"s"),j.style.cssText=cn(et,nt,tt,dt),I&&F&&!$&&(V.style.width=fn(tt,nt,rt));var i=F&&!$?dn(tt,nt,rt):"";nt&&(i+=vn(nt)),i&&ki(Mt,"#"+Yt+" > .tns-item",i,Ri(Mt))}if(k&&D)for(var a in k){a=parseInt(a);var r=k[a],i="",o="",u="",l="",s="",c=$?null:sn("items",a),f=sn("fixedWidth",a),d=sn("speed",a),v=sn("edgePadding",a),p=sn("autoHeight",a),h=sn("gutter",a);x&&M&&sn("autoHeight",a)&&"speed"in r&&(o="#"+Yt+"-mw{"+hn(d)+"}"),("edgePadding"in r||"gutter"in r)&&(u="#"+Yt+"-iw{"+cn(v,h,f,d,p)+"}"),I&&F&&!$&&("fixedWidth"in r||"items"in r||tt&&"gutter"in r)&&(l="width:"+fn(f,h,c)+";"),x&&"speed"in r&&(l+=hn(d)),l&&(l="#"+Yt+"{"+l+"}"),("fixedWidth"in r||tt&&"gutter"in r||!I&&"items"in r)&&(s+=dn(f,h,c)),"gutter"in r&&(s+=vn(h)),!I&&"speed"in r&&(x&&(s+=hn(d)),b&&(s+=mn(d))),s&&(s="#"+Yt+" > .tns-item{"+s+"}"),(i=o+u+l+s)&&Mt.insertRule("@media (min-width: "+a/16+"em) {"+i+"}",Mt.cssRules.length)}}(),yn();var _e=ft?I?function(){var t=zt,e=Wt;t+=ot,e-=ot,et?(t+=1,e-=1):tt&&(it+nt)%(tt+nt)&&(e-=1),Nt&&(e<It?It-=Q:It<t&&(It+=Q))}:function(){if(Wt<It)for(;zt+Q<=It;)It-=Q;else if(It<zt)for(;It<=Wt-Q;)It+=Q}:function(){It=Math.max(zt,Math.min(Wt,It))},Ze=I?function(){var e,n,i,a,t,r,o,u,l,s,c;Jn(V,""),x||!st?(ti(),st&&Yi(V)||ai()):(e=V,n=Ot,i=Dt,a=kt,t=Zn(),r=st,o=ai,u=Math.min(r,10),l=0<=t.indexOf("%")?"%":"px",t=t.replace(l,""),s=Number(e.style[n].replace(i,"").replace(a,"").replace(l,"")),c=(t-s)/r*u,setTimeout(function t(){r-=u,s+=c,e.style[n]=i+s+l+a,0<r?setTimeout(t,u):o()},u)),F||Ci()}:function(){At=[];var t={};t[s]=t[c]=ai,_i(G[Pt],t),Ui(G[It],t),ei(Pt,P,z,!0),ei(It,W,P),s&&c&&st&&Yi(V)||ai()};return{version:"2.9.
6223
vendor: 16,842 bytes, line 622
622",getInfo:Ei,events:Qt,goTo:ri,play:function(){gt&&!Pe&&(ci(),We=!1)},pause:function(){Pe&&(fi(),We=!0)},isOn:Y,updateSliderHeight:Fn,refresh:yn,destroy:function(){if(Mt.disabled=!0,Mt.ownerNode&&Mt.ownerNode.remove(),_i(m,{resize:Cn}),lt&&_i(O,ie),xe&&_i(xe,$t),Ae&&_i(Ae,te),_i(V,ee),_i(V,ne),je&&_i(je,{click:di}),gt&&clearInterval(Ie),I&&s){var t={};t[s]=ai,_i(V,t)}mt&&_i(V,ae),yt&&_i(V,re);var r=[A,be,Me,Te,Ne,Ve];for(var e in d.forEach(function(t,e){var n="container"===t?T:H[t];if("object"==typeof n&&n){var i=!!n.previousElementSibling&&n.previousElementSibling,a=n.parentNode;n.outerHTML=r[e],H[t]=i?i.nextElementSibling:a.firstElementChild}}),d=P=z=C=W=F=T=j=V=E=A=G=Q=q=X=$=tt=et=nt=it=rt=ot=ut=lt=st=ct=ft=dt=Mt=Tt=N=At=Nt=Lt=Bt=St=Ht=Ot=Dt=kt=Rt=It=Pt=zt=Wt=Ft=jt=Vt=Gt=Qt=Xt=Yt=Kt=Jt=Ut=_t=Zt=$t=te=ee=ne=ie=ae=re=oe=ue=le=se=ce=fe=de=pe=he=L=vt=pt=xe=be=we=Ce=ye=ge=ht=Ae=Ne=Ee=Le=Be=Se=He=Oe=De=ke=Re=gt=xt=Fe=bt=wt=je=Ve=Ct=Ge=Ie=Pe=ze=We=qe=Ye=Ke=Qe=Je=Xe=Ue=mt=yt=null,this)"rebuild"!==e&&(this[e]=null);Y=!1},rebuild:function(){return $i(Li(H,v))}}}function $e(t){t&&(vt=ht=mt=yt=lt=gt=wt=Ct=!1)}function tn(){for(var t=I?It-Nt:It;t<0;)t+=Q;return t%Q+1}function en(t){return t=t?Math.max(0,Math.min(ft?Q-1:Q-rt,t)):0,I?t+Nt:t}function nn(t){for(null==t&&(t=It),I&&(t-=Nt);t<0;)t+=Q;return Math.floor(t%Q)}function an(){var t,e=nn();return t=le?e:tt||$?Math.ceil((e+1)*Le/Q-1):Math.floor(e/rt),!ft&&I&&It===Wt&&(t=Le-1),t}function rn(){return m.innerWidth||O.documentElement.clientWidth||O.body.clientWidth}function on(t){return"top"===t?"afterbegin":"beforeend"}function un(){var t=et?2*et-nt:0;return function t(e){if(null!=e){var n,i,a=O.createElement("div");return e.appendChild(a),i=(n=a.getBoundingClientRect()).right-n.left,a.remove(),i||t(e.parentNode)}}(E)-t}function ln(t){if(H[t])return!0;if(k)for(var e in k)if(k[e][t])return!0;return!1}function sn(t,e){if(null==e&&(e=X),"items"===t&&tt)return Math.floor((it+nt)/(tt+nt))||1;var n=H[t];if(k)for(var i in k)e>=parseInt(i)&&t in k[i]&&(n=k[i][t]);return"slideBy"===t&&"page"===n&&(n=sn("items")),I||"slideBy"!==t&&"items"!==t||(n=Math.floor(n)),n}function cn(t,e,n,i,a){var r="";if(void 0!==t){var o=t;e&&(o-=e),r=F?"margin: 0 "+o+"px 0 "+t+"px;":"margin: "+t+"px 0 "+o+"px 0;"}else if(e&&!n){var u="-"+e+"px";r="margin: 0 "+(F?u+" 0 0":"0 "+u+" 0")+";"}return!I&&a&&x&&i&&(r+=hn(i)),r}function fn(t,e,n){return t?(t+e)*Lt+"px":y?y+"("+100*Lt+"% / "+n+")":100*Lt/n+"%"}function dn(t,e,n){var i;if(t)i=t+e+"px";else{I||(n=Math.floor(n));var a=I?Lt:n;i=y?y+"(100% / "+a+")":100/a+"%"}return i="width:"+i,"inner"!==R?i+";":i+" !important;"}function vn(t){var e="";!1!==t&&(e=(F?"padding-":"margin-")+(F?"right":"bottom")+": "+t+"px;");return e}function pn(t,e){var n=t.substring(0,t.length-e).toLowerCase();return n&&(n="-"+n+"-"),n}function hn(t){return pn(x,18)+"transition-duration:"+t/1e3+"s;"}function mn(t){return pn(b,17)+"animation-duration:"+t/1e3+"s;"}function yn(){if(ln("autoHeight")||$||!F){var t=V.querySelectorAll("img");Ii(t,function(t){var e=t.src;Tt||(e&&e.indexOf("data:image")<0?(t.src="",Ui(t,he),zi(t,"loading"),t.src=e):kn(t))}),Ai(function(){zn(Gi(t),function(){L=!0})}),ln("autoHeight")&&(t=In(It,Math.min(It+rt-1,Lt-1))),Tt?gn():Ai(function(){zn(Gi(t),gn)})}else I&&$n(),bn(),wn()}function gn(){if($&&1<Q){var i=ft?It:Q-1;!function t(){var e=G[i].getBoundingClientRect().left,n=G[i-1].getBoundingClientRect().right;Math.abs(e-n)<=1?xn():setTimeout(function(){t()},16)}()}else xn()}function xn(){F&&!$||(jn(),$?(St=_n(),Ut&&(_t=Tn()),Wt=Rt(),$e(Kt||_t)):Ci()),I&&$n(),bn(),wn()}function bn(){if(Vn(),T.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+Hn()+"</span>  of "+Q+"</div>"),B=T.querySelector(".tns-liveregion .current"),se){var t=gt?"stop":"start";je?ji(je,{"data-action":t}):H.autoplayButtonOutput&&(T.insertAdjacentHTML(on(H.autoplayPosition),'<button type="button" data-action="'+t+'">'+Ge[0]+t+Ge[1]+bt[0]+"</button>"),je=T.querySelector("[data-action]")),je&&Ui(je,{click:di}),gt&&(ci(),wt&&Ui(V,ee),Ct&&Ui(V,ne))}if(ue){if(Ae)ji(Ae,{"aria-label":"Carousel Pagination"}),Ii(Ee=Ae.children,function(t,e){ji(t,{"data-nav":e,tabindex:"-1","aria-label":ke+(e+1),"aria-controls":Yt})});else{for(var e="",n=le?"":'style="display:none"',i=0;i<Q;i++)e+='<button type="button" data-nav="'+i+'" tabindex="-1" aria-controls="'+Yt+'" '+n+' aria-label="'+ke+(i+1)+'"></button>';e='<div class="tns-nav" aria-label="Carousel Pagination">'+e+"</div>",T.insertAdjacentHTML(on(H.navPosition),e),Ae=T.querySelector(".tns-nav"),Ee=Ae.children}if(Ti(),x){var a=x.substring(0,x.length-18).toLowerCase(),r="transition: all "+st/1e3+"s";a&&(r="-"+a+"-"+r),ki(Mt,"[aria-controls^="+Yt+"-item]",r,Ri(Mt))}ji(Ee[He],{"aria-label":ke+(He+1)+Re}),Vi(Ee[He],"tabindex"),zi(Ee[He],De),Ui(Ae,te)}oe&&(xe||we&&Ce||(T.insertAdjacentHTML(on(H.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+Yt+'">'+pt[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+Yt+'">'+pt[1]+"</button></div>"),xe=T.querySelector(".tns-controls")),we&&Ce||(we=xe.children[0],Ce=xe.children[1]),H.controlsContainer&&ji(xe,{"aria-label":"Carousel Navigation",tabindex:"0"}),(H.controlsContainer||H.prevButton&&H.nextButton)&&ji([we,Ce],{"aria-controls":Yt,tabindex:"-1"}),(H.controlsContainer||H.prevButton&&H.nextButton)&&(ji(we,{"data-controls":"prev"}),ji(Ce,{"data-controls":"next"})),ye=Qn(we),ge=Qn(Ce),Kn(),xe?Ui(xe,$t):(Ui(we,$t),Ui(Ce,$t))),An()}function wn(){if(I&&s){var t={};t[s]=ai,Ui(V,t)}mt&&Ui(V,ae,H.preventScrollOnTouch),yt&&Ui(V,re),lt&&Ui(O,ie),"inner"===R?Qt.on("outerResized",function(){Mn(),Qt.emit("innerLoaded",Ei())}):(k||tt||$||dt||!F)&&Ui(m,{resize:Cn}),dt&&("outer"===R?Qt.on("innerLoaded",Pn):Kt||Pn()),Dn(),Kt?Bn():_t&&Ln(),Qt.on("indexChanged",Wn),"inner"===R&&Qt.emit("innerLoaded",Ei()),"function"==typeof Gt&&Gt(Ei()),Y=!0}function Cn(t){Ai(function(){Mn(pi(t))})}function Mn(t){if(Y){"outer"===R&&Qt.emit("outerResized",Ei(t)),X=rn();var e,n=q,i=!1;k&&(En(),(e=n!==q)&&Qt.emit("newBreakpointStart",Ei(t)));var a,r,o,u,l=rt,s=Kt,c=_t,f=lt,d=vt,v=ht,p=mt,h=yt,m=gt,y=wt,g=Ct,x=It;if(e){var b=tt,w=dt,C=pt,M=at,T=bt;if(!D)var E=nt,A=et}if(lt=sn("arrowKeys"),vt=sn("controls"),ht=sn("nav"),mt=sn("touch"),at=sn("center"),yt=sn("mouseDrag"),gt=sn("autoplay"),wt=sn("autoplayHoverPause"),Ct=sn("autoplayResetOnVisibility"),e&&(Kt=sn("disable"),tt=sn("fixedWidth"),st=sn("speed"),dt=sn("autoHeight"),pt=sn("controlsText"),bt=sn("autoplayText"),xt=sn("autoplayTimeout"),D||(et=sn("edgePadding"),nt=sn("gutter"))),$e(Kt),it=un(),F&&!$||Kt||(jn(),F||(Ci(),i=!0)),(tt||$)&&(St=_n(),Wt=Rt()),(e||tt)&&(rt=sn("items"),ot=sn("slideBy"),(r=rt!==l)&&(tt||$||(Wt=Rt()),_e())),e&&Kt!==s&&(Kt?Bn():function(){if(!Jt)return;if(Mt.disabled=!1,V.className+=Xt,$n(),ft)for(var t=Nt;t--;)I&&Xi(G[t]),Xi(G[Lt-t-1]);if(!I)for(var e=It,n=It+Q;e<n;e++){var i=G[e],a=e<It+rt?P:W;i.style.left=100*(e-It)/rt+"%",zi(i,a)}Nn(),Jt=!1}()),Ut&&(e||tt||$)&&(_t=Tn())!==c&&(_t?(ti(Zn(en(0))),Ln()):(!function(){if(!Zt)return;et&&D&&(j.style.margin="");if(Nt)for(var t="tns-transparent",e=Nt;e--;)I&&Wi(G[e],t),Wi(G[Lt-e-1],t);Nn(),Zt=!1}(),i=!0)),$e(Kt||_t),gt||(wt=Ct=!1),lt!==f&&(lt?Ui(O,ie):_i(O,ie)),vt!==d&&(vt?xe?Xi(xe):(we&&Xi(we),Ce&&Xi(Ce)):xe?Qi(xe):(we&&Qi(we),Ce&&Qi(Ce))),ht!==v&&(ht?(Xi(Ae),Ti()):Qi(Ae)),mt!==p&&(mt?Ui(V,ae,H.preventScrollOnTouch):_i(V,ae)),yt!==h&&(yt?Ui(V,re):_i(V,re)),gt!==m&&(gt?(je&&Xi(je),Pe||We||ci()):(je&&Qi(je),Pe&&fi())),wt!==y&&(wt?Ui(V,ee):_i(V,ee)),Ct!==g&&(Ct?Ui(O,ne):_i(O,ne)),e){if(tt===b&&at===M||(i=!0),dt!==w&&(dt||(j.style.height="")),vt&&pt!==C&&(we.innerHTML=pt[0],Ce.innerHTML=pt[1]),je&&bt!==T){var N=gt?1:0,L=je.innerHTML,B=L.length-T[N].length;L.substring(B)===T[N]&&(je.innerHTML=L.substring(0,B)+bt[N])}}else at&&(tt||$)&&(i=!0);if((r||tt&&!$)&&(Le=Mi(),Ti()),(a=It!==x)?(Qt.emit("indexChanged",Ei()),i=!0):r?a||Wn():(tt||$)&&(Dn(),Vn(),Sn()),r&&!I&&function(){for(var t=It+Math.min(Q,rt),e=Lt;e--;){var n=G[e];It<=e&&e<t?(zi(n,"tns-moving"),n.style.left=100*(e-It)/rt+"%",zi(n,P),Wi(n,W)):n.style.left&&(n.style.left="",zi(n,W),Wi(n,P)),Wi(n,z)}setTimeout(function(){Ii(G,function(t){Wi(t,"tns-moving")})},300)}(),!Kt&&!_t){if(e&&!D&&(et===A&&nt===E||(j.style.cssText=cn(et,nt,tt,st,dt)),F)){I&&(V.style.width=fn(tt,nt,rt));var S=dn(tt,nt,rt)+vn(nt);u=Ri(o=Mt)-1,"deleteRule"in o?o.deleteRule(u):o.removeRule(u),ki(Mt,"#"+Yt+" > .tns-item",S,Ri(Mt))}dt&&Pn(),i&&($n(),Pt=It)}e&&Qt.emit("newBreakpointEnd",Ei(t))}}function Tn(){if(!tt&&!$)return Q<=(at?rt-(rt-1)/2:rt);var t=tt?(tt+nt)*Q:N[Q],e=et?it+2*et:it+nt;return at&&(e-=tt?(it-tt)/2:(it-(N[It+1]-N[It]-nt))/2),t<=e}function En(){for(var t in q=0,k)(t=parseInt(t))<=X&&(q=t)}function An(){!gt&&je&&Qi(je),!ht&&Ae&&Qi(Ae),vt||(xe?Qi(xe):(we&&Qi(we),Ce&&Qi(Ce)))}function Nn(){gt&&je&&Xi(je),ht&&Ae&&Xi(Ae),vt&&(xe?Xi(xe):(we&&Xi(we),Ce&&Xi(Ce)))}function Ln(){if(!Zt){if(et&&(j.style.margin="0px"),Nt)for(var t="tns-transparent",e=Nt;e--;)I&&zi(G[e],t),zi(G[Lt-e-1],t);An(),Zt=!0}}function Bn(){if(!Jt){if(Mt.disabled=!0,V.className=V.className.replace(Xt.substring(1),""),Vi(V,["style"]),ft)for(var t=Nt;t--;)I&&Qi(G[t]),Qi(G[Lt-t-1]);if(F&&I||Vi(j,["style"]),!I)for(var e=It,n=It+Q;e<n;e++){var i=G[e];Vi(i,["style"]),Wi(i,P),Wi(i,W)}An(),Jt=!0}}function Sn(){var t=Hn();B.innerHTML!==t&&(B.innerHTML=t)}function Hn(){var t=On(),e=t[0]+1,n=t[1]+1;return e===n?e+"":e+" to "+n}function On(t){null==t&&(t=Zn());var n,i,a,r=It;if(at||et?($||tt)&&(i=-(parseFloat(t)+et),a=i+it+2*et):$&&(i=N[It],a=i+it),$)N.forEach(function(t,e){e<Lt&&((at||et)&&t<=i+.5&&(r=e),.5<=a-t&&(n=e))});else{if(tt){var e=tt+nt;at||et?(r=Math.floor(i/e),n=Math.ceil(a/e-1)):n=r+Math.ceil(it/e)-1}else if(at||et){var o=rt-1;if(at?(r-=o/2,n=It+o/2):n=It+o,et){var u=et*rt/it;r-=u,n+=u}r=Math.floor(r),n=Math.ceil(n)}else n=r+rt-1;r=Math.max(r,0),n=Math.min(n,Lt-1)}return[r,n]}function Dn(){if(Tt&&!Kt){var t=On();t.push(Et),In.apply(null,t).forEach(function(t){if(!Pi(t,pe)){var e={};e[s]=function(t){t.stopPropagation()},Ui(t,e),Ui(t,he),t.src=Fi(t,"data-src");var n=Fi(t,"data-srcset");n&&(t.srcset=n),zi(t,"loading")}})}}function kn(t){zi(t,"loaded"),Rn(t)}function Rn(t){zi(t,pe),Wi(t,"loading"),_i(t,he)}function In(t,e,n){var i=[];for(n||(n="img");t<=e;)Ii(G[t].querySelectorAll(n),function(t){i.push(t)}),t++;return i}function Pn(){var t=In.apply(null,On());Ai(function(){zn(t,Fn)})}function zn(n,t){return L?t():(n.forEach(function(t,e){!Tt&&t.complete&&Rn(t),Pi(t,pe)&&n.splice(e,1)}),n.length?void Ai(function(){zn(n,t)}):t())}function Wn(){Dn(),Vn(),Sn(),Kn(),function(){if(ht&&(He=0<=Se?Se:an(),Se=-1,He!==Oe)){var t=Ee[Oe],e=Ee[He];ji(t,{tabindex:"-1","aria-label":ke+(Oe+1)}),Wi(t,De),ji(e,{"aria-label":ke+(He+1)+Re}),Vi(e,"tabindex"),zi(e,De),Oe=He}}()}function qn(t,e){for(var n=[],i=t,a=Math.min(t+e,Lt);i<a;i++)n.push(G[i].offsetHeight);return Math.max.apply(null,n)}function Fn(){var t=dt?qn(It,rt):qn(Nt,Q),e=M||j;e.style.height!==t&&(e.style.height=t+"px")}function jn(){N=[0];var n=F?"left":"top",i=F?"right":"bottom",a=G[0].getBoundingClientRect()[n];Ii(G,function(t,e){e&&N.push(t.getBoundingClientRect()[n]-a),e===Lt-1&&N.push(t.getBoundingClientRect()[i]-a)})}function Vn(){var t=On(),n=t[0],i=t[1];Ii(G,function(t,e){n<=e&&e<=i?qi(t,"aria-hidden")&&(Vi(t,["aria-hidden","tabindex"]),zi(t,de)):qi(t,"aria-hidden")||(ji(t,{"aria-hidden":"true",tabindex:"-1"}),Wi(t,de))})}function Gn(t){return t.nodeName.toLowerCase()}function Qn(t){return"button"===Gn(t)}function Xn(t){return"true"===t.getAttribute("aria-disabled")}function Yn(t,e,n){t?e.disabled=n:e.setAttribute("aria-disabled",n.toString())}function Kn(){if(vt&&!ct&&!ft){var t=ye?we.disabled:Xn(we),e=ge?Ce.disabled:Xn(Ce),n=It<=zt,i=!ct&&Wt<=It;n&&!t&&Yn(ye,we,!0),!n&&t&&Yn(ye,we,!1),i&&!e&&Yn(ge,Ce,!0),!i&&e&&Yn(ge,Ce,!1)}}function Jn(t,e){x&&(t.style[x]=e)}function Un(t){return null==t&&(t=It),$?(it-(et?nt:0)-(N[t+1]-N[t]-nt))/2:tt?(it-tt)/2:(rt-1)/2}function _n(){var t=it+(et?nt:0)-(tt?(tt+nt)*Lt:N[Lt]);return at&&!ft&&(t=tt?-(tt+nt)*(Lt-1)-Un():Un(Lt-1)-N[Lt-1]),0<t&&(t=0),t}function Zn(t){var e;if(null==t&&(t=It),F&&!$)if(tt)e=-(tt+nt)*t,at&&(e+=Un());else{var n=r?Lt:rt;at&&(t-=Un()),e=100*-t/n}else e=-N[t],at&&$&&(e+=Un());return Bt&&(e=Math.max(e,St)),e+=!F||$||tt?"px":"%"}function $n(t){Jn(V,"0s"),ti(t)}function ti(t){null==t&&(t=Zn()),V.style[Ot]=Dt+t+kt}function ei(t,e,n,i){var a=t+rt;ft||(a=Math.min(a,Lt));for(var r=t;r<a;r++){var o=G[r];i||(o.style.left=100*(r-It)/rt+"%"),C&&u&&(o.style[u]=o.style[l]=C*(r-t)/1e3+"s"),Wi(o,e),zi(o,n),i&&At.push(o)}}function ni(t,e){Ht&&_e(),(It!==Pt||e)&&(Qt.emit("indexChanged",Ei()),Qt.emit("transitionStart",Ei()),dt&&Pn(),Pe&&t&&0<=["click","keydown"].indexOf(t.type)&&fi(),Vt=!0,Ze())}function ii(t){return t.toLowerCase().replace(/-/g,"")}function ai(t){if(I||Vt){if(Qt.emit("transitionEnd",Ei(t)),!I&&0<At.length)for(var e=0;e<At.length;e++){var n=At[e];n.style.left="",l&&u&&(n.style[l]="",n.style[u]=""),Wi(n,z),zi(n,W)}if(!t||!I&&t.target.parentNode===V||t.target===V&&ii(t.propertyName)===ii(Ot)){if(!Ht){var i=It;_e(),It!==i&&(Qt.emit("indexChanged",Ei()),$n())}"inner"===R&&Qt.emit("innerLoaded",Ei()),Vt=!1,Pt=It}}}function ri(t,e){if(!_t)if("prev"===t)oi(e,-1);else if("next"===t)oi(e,1);else{if(Vt){if(qt)return;ai()}var n=nn(),i=0;if("first"===t?i=-n:"last"===t?i=I?Q-rt-n:Q-1-n:("number"!=typeof t&&(t=parseInt(t)),isNaN(t)||(e||(t=Math.max(0,Math.min(Q-1,t))),i=t-n)),!I&&i&&Math.abs(i)<rt){var a=0<i?1:-1;i+=zt<=It+i-Q?Q*a:2*Q*a*-1}It+=i,I&&ft&&(It<zt&&(It+=Q),Wt<It&&(It-=Q)),nn(It)!==nn(Pt)&&ni(e)}}function oi(t,e){if(Vt){if(qt)return;ai()}var n;if(!e){for(var i=hi(t=pi(t));i!==xe&&[we,Ce].indexOf(i)<0;)i=i.parentNode;var a=[we,Ce].indexOf(i);0<=a&&(n=!0,e=0===a?-1:1)}if(ct){if(It===zt&&-1===e)return void ri("last",t);if(It===Wt&&1===e)return void ri("first",t)}e&&(It+=ot*e,$&&(It=Math.floor(It)),ni(n||t&&"keydown"===t.type?t:null))}function ui(){Ie=setInterval(function(){oi(null,Fe)},xt),Pe=!0}function li(){clearInterval(Ie),Pe=!1}function si(t,e){ji(je,{"data-action":t}),je.innerHTML=Ge[0]+t+Ge[1]+e}function ci(){ui(),je&&si("stop",bt[1])}function fi(){li(),je&&si("start",bt[0])}function di(){Pe?(fi(),We=!0):(ci(),We=!1)}function vi(t){t.focus()}function pi(t){return mi(t=t||m.event)?t.changedTouches[0]:t}function hi(t){return t.target||m.event.srcElement}function mi(t){return 0<=t.type.indexOf("touch")}function yi(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function gi(){return a=Ke.y-Ye.y,r=Ke.x-Ye.x,t=Math.atan2(a,r)*(180/Math.PI),e=Ft,n=!1,i=Math.abs(90-Math.abs(t)),90-e<=i?n="horizontal":i<=e&&(n="vertical"),n===H.axis;var t,e,n,i,a,r}function xi(t){if(Vt){if(qt)return;ai()}gt&&Pe&&li(),Je=!0,Xe&&(Ni(Xe),Xe=null);var e=pi(t);Qt.emit(mi(t)?"touchStart":"dragStart",Ei(t)),!mi(t)&&0<=["img","a"].indexOf(Gn(hi(t)))&&yi(t),Ke.x=Ye.x=e.clientX,Ke.y=Ye.y=e.clientY,I&&(Qe=parseFloat(V.style[Ot].replace(Dt,"")),Jn(V,"0s"))}function bi(t){if(Je){var e=pi(t);Ke.x=e.clientX,Ke.y=e.clientY,I?Xe||(Xe=Ai(function(){!function t(e){if(!jt)return void(Je=!1);Ni(Xe);Je&&(Xe=Ai(function(){t(e)}));"?"===jt&&(jt=gi());if(jt){!me&&mi(e)&&(me=!0);try{e.type&&Qt.emit(mi(e)?"touchMove":"dragMove",Ei(e))}catch(t){}var n=Qe,i=Ue(Ke,Ye);if(!F||tt||$)n+=i,n+="px";else{var a=r?i*rt*100/((it+nt)*Lt):100*i/(it+nt);n+=a,n+="%"}V.style[Ot]=Dt+n+kt}}(t)})):("?"===jt&&(jt=gi()),jt&&(me=!0)),("boolean"!=typeof t.cancelable||t.cancelable)&&me&&t.preventDefault()}}function wi(i){if(Je){Xe&&(Ni(Xe),Xe=null),I&&Jn(V,""),Je=!1;var t=pi(i);Ke.x=t.clientX,Ke.y=t.clientY;var a=Ue(Ke,Ye);if(Math.abs(a)){if(!mi(i)){var n=hi(i);Ui(n,{click:function t(e){yi(e),_i(n,{click:t})}})}I?Xe=Ai(function(){if(F&&!$){var t=-a*rt/(it+nt);t=0<a?Math.floor(t):Math.ceil(t),It+=t}else{var e=-(Qe+a);if(e<=0)It=zt;else if(e>=N[Lt-1])It=Wt;else for(var n=0;n<Lt&&e>=N[n];)e>N[It=n]&&a<0&&(It+=1),n++}ni(i,a),Qt.emit(mi(i)?"touchEnd":"dragEnd",Ei(i))}):jt&&oi(i,0<a?-1:1)}}"auto"===H.preventScrollOnTouch&&(me=!1),Ft&&(jt="?"),gt&&!Pe&&ui()}function Ci(){(M||j).style.height=N[It+rt]-N[It]+"px"}function Mi(){var t=tt?(tt+nt)*Q/it:Q/rt;return Math.min(Math.ceil(t),Q)}function Ti(){if(ht&&!le&&Le!==Be){var t=Be,e=Le,n=Xi;for(Le<Be&&(t=Le,e=Be,n=Qi);t<e;)n(Ee[t]),t++;Be=Le}}function Ei(t){return{container:V,slideItems:G,navContainer:Ae,navItems:Ee,controlsContainer:xe,hasControls:oe,prevButton:we,nextButton:Ce,items:rt,slideBy:ot,cloneCount:Nt,slideCount:Q,slideCountNew:Lt,index:It,indexCached:Pt,displayIndex:tn(),navCurrentIndex:He,navCurrentIndexCached:Oe,pages:Le,pagesCached:Be,sheet:Mt,isOn:Y,event:t||{}}}f&&console.warn("No slides found in",H.container)};return $i}();
622ComponentConfig=class{static conf(componentName){let DEFAULT_CONFIG={debug:!1};let CONFIG={};if(CONFIG[componentName]){return CONFIG[componentName]}else{return DEFAULT_CONFIG}}}
623function updateDurations($marquee){const DEFAULT_REF_WIDTH=convertRemToPixels(getComputedStyle(document.documentElement).getPropertyValue('--row-max-width'))||1440;const refWidth=parseFloat($marquee.dataset.marqueeRefWidth)||DEFAULT_REF_WIDTH;const $lists=$marquee.querySelectorAll(':scope > .marquee__list');$lists.forEach(($list)=>{const baseDuration=parseFloat(getComputedStyle($list).animationDuration);if(!baseDuration||baseDuration<=0)return;const viewportWidth=window.innerWidth;const scale=Math.min(viewportWidth/refWidth,1);const duration=baseDuration*scale;$list.style.animationDuration=duration+'s'})}
624function initMarquees(){const $marquees=document.querySelectorAll('.marquee.marquee--calc-speed');if(!$marquees.length)return;$marquees.forEach(($marquee)=>{updateDurations($marquee)});let resizeTimeout;window.addEventListener('resize',function(){clearTimeout(resizeTimeout);resizeTimeout=setTimeout(function(){$marquees.forEach(($marquee)=>{$marquee.querySelectorAll(':scope > .marquee__list').forEach(($list)=>{$list.style.animationDuration=''});updateDurations($marquee)})},150)})}
625document.addEventListener('DOMContentLoaded',initMarquees);function scrollWindowTo($target,behavior='smooth',speed=1000){function getPos($target){let pos=$target.getBoundingClientRect().top+window.scrollY;let posOffset=0;let $stickyHeader=document.querySelector('.header[data-sticky-initialized]');if($stickyHeader){posOffset=getOuterHeight($stickyHeader)}
626let $scrollMagicSpacer=document.querySelector('.scrollmagic-pin-spacer-disable');if($scrollMagicSpacer){if($scrollMagicSpacer.compareDocumentPosition($target)&Node.DOCUMENT_POSITION_FOLLOWING){posOffset+=getOuterHeight($scrollMagicSpacer)}}
627const $overlayScenes=document.querySelectorAll('.scroll-content.scene-overlays.scroll-active');$overlayScenes.forEach(($scene)=>{if($scene.getBoundingClientRect().top<$target.getBoundingClientRect().top){posOffset+=getOuterHeight($scene)}});pos=pos-posOffset;return pos}
628function scrollTo(pos){window.scroll({top:pos,left:0,behavior:behavior})}
629function scheduleScroll(posFn){requestAnimationFrame(()=>{requestAnimationFrame(()=>{scrollTo(posFn())})})}
630if(Number($target)>=0){scheduleScroll(()=>$target)}else{if($tabsItem=$target.closest('.content__item')){let $tabs=$tabsItem.closest('.tabs');let tabsCtrl=$tabs.Tabs;tabsCtrl.openItem($tabsItem,!0,function(){if($tabsItem.querySelector('.contwrap')===$target){scheduleScroll(()=>getPos($tabsItem))}else{scheduleScroll(()=>getPos($target))}});return}else if($accordionItem=$target.closest('.accordion__item')){let accordionCtrl=$accordionItem.closest('.accordion').Accordion;accordionCtrl.openItem($accordionItem,!0,function(){if($accordionItem.querySelector('.contwrap')===$target){scheduleScroll(()=>getPos($accordionItem))}else{scheduleScroll(()=>getPos($target))}});return}else if($sliderItem=$target.closest('.tns-item')){let sliderCtrl=$sliderItem.closest('.tns-slider').Slider;if(sliderCtrl instanceof Slider){let i=0;for(const $item of sliderCtrl.$el.querySelectorAll('.tns-item')){if($item==$sliderItem){sliderCtrl.slider.goTo(i);break}
631i++}}}
632if($target){scheduleScroll(()=>getPos($target))}}}
633document.addEventListener('DOMContentLoaded',function(){let scrollingTimeout=400;setTimeout(function(){let $scrollHere=document.getElementById('scrollHere');if($scrollHere){let $target=document.querySelector($scrollHere.getAttribute('data-target'));scrollWindowTo(($target)?$target:$scrollHere)}else{let urlHash=window.location.href.split('#')[1];if(urlHash&&urlHash[0]!=='/'){let $target=document.getElementById(urlHash)||document.querySelector('[name="'+urlHash+'"]');if($target){scrollWindowTo($target)}}}},scrollingTimeout);let $anchorLinks=document.querySelectorAll('a[href*="#"]:not([href="#"]):not(.no-scroll)');$anchorLinks.forEach(function($link){$link.addEventListener('click',function(e){if(location.pathname.replace(/^\//,'')===this.pathname.replace(/^\//,'')&&location.hostname===this.hostname){if(!this.hash)return;let $target=document.querySelector(this.hash)||document.querySelector('[name="'+this.hash.slice(1)+'"]');if($target){e.preventDefault();scrollWindowTo($target)}}})})});document.addEventListener('DOMContentLoaded',function(){function initContwrapAction($el){let $parent=$el.parentElement.closest('.contwrap');let action=$el.dataset.action;let actionActive='action--active';switch(action){case 'next':if($parent){setTimeout(function(){$el.classList.add(actionActive)},250);$el.addEventListener('click',function(){scrollWindowTo($parent.nextElementSibling)})}
634break}}
635document.querySelectorAll('.contwrap__action').forEach(($item)=>{initContwrapAction($item)})});class Slider extends Component{get optionDefaults(){let root=getComputedStyle(document.documentElement);let colPadding=convertRemToPixels(root.getPropertyValue('--col-padding'));let controlsBreakpoint=parseFloat(root.getPropertyValue('--controls-breakpoint'));let controlsTextPrev=root.getPropertyValue('--controls-prev-icon');let controlsTextNext=root.getPropertyValue('--controls-next-icon');return{visibilityCheck:!0,mode:'carousel',axis:'horizontal',centerMode:!1,centerStyle:!1,navAsThumbnails:!1,autoHeight:!1,autoplay:!1,autoplayTimeout:5000,autoplayAnimate:!1,loop:!1,rewind:!1,gutter:(colPadding)?colPadding*2:32,edgePadding:0,viewportMax:!1,slideBy:1,freezable:!0,startIndex:0,lazyload:!1,lazyloadSelector:'.tns-lazy',controlsTextPrev:'<span class="slider-control
635s-prev'+((controlsTextPrev)?' '+controlsTextPrev:'')+'"></span>',controlsTextNext:'<span class="slider-controls-next'+((controlsTextNext)?' '+controlsTextNext:'')+'"></span>',navType:'controls_and_nav',navLayoutWidth:'inherit',itemPosition:null,dotsPosition:'top,center,outer',controlsPosition:'center,outer',controlsChangePos:!1,controlsBreakpoint:controlsBreakpoint,dotsInvert:!1,controlsInvert:!1,itemWidth:!1,itemsOffset:!1,startPosition:null,slideScrolling:!1,slideScrollingDur:null,navHide:null,items:null,itemsMobile:1,itemsMobileLarge:1,itemsTablet:1,itemsDesktop:1,itemsDesktopLarge:1,responsiveBreakpoints:{mobileLarge:ensureNumber(root.getPropertyValue('--breakpoint-xs')),tablet:ensureNumber(root.getPropertyValue('--breakpoint-s')),desktop:ensureNumber(root.getPropertyValue('--breakpoint-m')),desktopLarge:ensureNumber(root.getPropertyValue('--breakpoint-l'))},isGrid:!1}}
636constructor($el,componentName,index,paramOptions){super($el,componentName,index,paramOptions,{debug:!1,});let _this=this;_this.options=_this.getSliderOptions(paramOptions);_this.slider=null;_this.sliderOptions=null;_this.initiallyVisible=!isHidden($el);if($el.children.length>1){_this._initWithBreakpoint({onNotBreakpoint:function(){_this.triggerSliderOnInitEvent('NOT INITIALIZED: due to init breakpoint')}})}else{_this._log('NOT INITIALIZED: single item only');_this.triggerSliderOnInitEvent('single item only')}}
637triggerSliderOnInitEvent(log){let _this=this;let $el=_this.$el;$el.classList.add('tns-initialized');$el.dispatchEvent(new Event('tns-initialized'));_this._log('trigger custom slider init event: '+log)}
638init(){let _this=this;let $el=_this.$el;let data=_this.data;let options=_this.options;if(_this.isReseted){_this._log('rebuild slider');_this.slider=_this.slider.rebuild()}else{if(options.visibilityCheck&&!_this.initiallyVisible){_this._log('NOT INITIALIZED: is hidden; observe visibility change');onVisibilityChange($el,function(isVisible){if(isVisible){_this._log('initialize on visibility change');initSlider()}});let $navItem=$el.closest('.list__item');if($navItem){$navItem.addEventListener('openItem',(e)=>{$el.dispatchEvent(new Event('isVisible'))},{once:!0})}}else{initSlider()}
639function initSlider(){let sliderOptions={container:$el,mode:options.mode,center:options.centerMode,controlsText:[options.controlsTextPrev,options.controlsTextNext],autoHeight:options.autoHeight,navPosition:(options.dotsPositionArr.includes('bottom')&&!options.dotsPositionArr.includes('inner'))?'bottom':'top',controlsPosition:(options.controlsPositionArr.includes('bottom')&&!options.controlsPositionArr.includes('inner'))?'bottom':'top',autoplay:options.autoplay,autoplayTimeout:options.autoplayTimeout,autoplayButtonOutput:!1,loop:options.loop,rewind:options.rewind,freezable:options.freezable,lazyload:options.lazyload,lazyloadSelector:options.lazyloadSelector,gutter:(options.gutter)?options.gutter/2:0,edgePadding:options.edgePadding,autoWidth:options.autoWidth,slideBy:options.slideBy,axis:options.axis,startIndex:options.startIndex,navAsThumbnails:options.navAsThumbnails,responsive:mergeObjects({1:{items:options.itemsMobile,startIndex:_this.getStartIndexForViewPort(options.itemsMobile)},[options.responsiveBreakpoints.mobileLarge]:{items:options.itemsMobileLarge,startIndex:_this.getStartIndexForViewPort(options.itemsMobileLarge)},[options.responsiveBreakpoints.tablet]:{items:options.itemsTablet,startIndex:_this.getStartIndexForViewPort(options.itemsTablet)},[options.responsiveBreakpoints.desktop]:{gutter:options.gutter,items:options.itemsDesktop,startIndex:_this.getStartIndexForViewPort(options.itemsDesktop)},[options.responsiveBreakpoints.desktopLarge]:{items:options.itemsDesktopLarge,startIndex:_this.getStartIndexForViewPort(options.itemsDesktopLarge)}},options.resposive),onInit:function(info){_this.sliderOnInit(info);_this.sliderOnChange(info)}}
640if(options.viewportMax){sliderOptions=mergeObjects(sliderOptions,{responsive:{[options.viewportMax]:{fixedWidth:!1,autoWidth:!1}}})}
641if(!options.noNavigation){sliderOptions=mergeObjects(sliderOptions,{responsive:{1:{controls:options.controlsOnly||!1,nav:!options.controlsOnly||!1,mouseDrag:!options.controlsOnly||!1,}}});if(!options.controlsAndDots){sliderOptions=mergeObjects(sliderOptions,{responsive:{[options.controlsBreakpoint]:{controls:!options.dotsOnly||!1,nav:options.dotsOnly||!1,mouseDrag:options.dotsOnly||!1}}})}else{sliderOptions=mergeObjects(sliderOptions,{responsive:{1:{controls:!0,nav:!0,mou
641seDrag:!0},[options.controlsBreakpoint]:{controls:!0,nav:!0,mouseDrag:!0}}})}
642if(options.navHide){let navHideSettings={};if(options.navHideAbove){navHideSettings={[options.navHide]:{controls:!1,nav:!1,mouseDrag:!0}}
643if(options.navHide<=options.controlsBreakpoint){navHideSettings[options.controlsBreakpoint]={controls:!1,nav:!1,mouseDrag:!0}}}else{navHideSettings={1:{controls:!1,nav:!1,mouseDrag:!0},[options.navHide]:{controls:sliderOptions.responsive[1].controls,nav:sliderOptions.responsive[1].nav,mouseDrag:sliderOptions.responsive[1].mouseDrag}}
644if(options.navHide>=options.controlsBreakpoint){navHideSettings[options.controlsBreakpoint]={controls:!1,nav:!1,mouseDrag:!0}}}
645sliderOptions=mergeObjects(sliderOptions,{responsive:navHideSettings})}}else{sliderOptions.nav=!1;sliderOptions.controls=!1;sliderOptions.mouseDrag=!0}
646_this.sliderOptions=sliderOptions;_this._log('sliderOptions',sliderOptions);_this.slider=tns(_this.sliderOptions);_this.slider.events.on('indexChanged',function(info){_this.sliderOnChange(info)});_this.onSliderReady(function(){_this.sliderOnResize(getOuterWidth(window));window.addEventListener('resize',function(){_this.sliderOnResize(getOuterWidth(window))});let $images=$el.querySelectorAll("img[loading='lazy']");$images.forEach(($image)=>{$image.addEventListener('load',function(){_this.updateSliderHeight('image loaded')})});document.documentElement.addEventListener('ariafontsize',function(){_this.updateSliderHeight('ariafontsize')})})}}}
647onSliderReady(onRdy){let _this=this;let $el=_this.$el;if(!$el.classList.contains('tns-initialized')){$el.addEventListener('tns-initialized',function(){if(typeof onRdy==='function'){onRdy()}})}else{if(typeof onRdy==='function'){onRdy()}}}
648observeImages($images,onLoadFnc){let imagesLoaded=0;let observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){if(entry.isIntersecting){imagesLoaded++;observer.unobserve(entry.target);if(typeof onLoadFnc==='function'){onLoadFnc()}}});if(imagesLoaded==$images.length){}});$images.forEach(function($image){observer.observe($image)})}
649getStartIndexForViewPort(items){let _this=this;let options=_this.options;if(options.centerMode&&!options.loop&&items>1){let index=Math.floor(items/2);return(options.startIndex>index)?options.startIndex:index}
650return options.startIndex}
651updateSliderHeight(txt){let _this=this;let mod=(_this.slider&&_this._isActive())?!0:!1;_this._log('['+mod+'] update slider height'+((txt)?' ('+txt+')':''));if(mod)_this.slider.updateSliderHeight();}
652reset(){let _this=this;let $el=_this.$el;let options=_this.options;_this.slider&&_this.slider.destroy()}
653getSliderOptions(overrideOptions){let _this=this;let data=_this.data;let $el=_this.$el;let options=_this.options;let optionDefaults=(overrideOptions&&overrideOptions.defaults)?mergeObjects(options,_this.optionDefaults,overrideOptions.defaults):mergeObjects(options,_this.optionDefaults);let $optionsEl=(overrideOptions&&overrideOptions.$optionsEl)?overrideOptions.$optionsEl:$el;let optionsByData={mode:$optionsEl.getAttribute('data-tns-mode'),axis:$optionsEl.getAttribute('data-tns-axis'),centerMode:ensureBool($optionsEl.getAttribute('data-tns-center-mode'),!1),centerStyle:$optionsEl.getAttribute('data-tns-center-style'),autoHeight:ensureBool($optionsEl.getAttribute('data-tns-auto-height'),!1),autoplay:ensureBool($optionsEl.getAttribute('data-tns-autoplay'),!1),autoplayTimeout:$optionsEl.getAttribute('data-tns-autoplay-timeout'),autoplayAnimate:ensureBool($optionsEl.getAttribute('data-tns-autoplay-animate'),!1),loop:ensureBool($optionsEl.getAttribute('data-tns-loop'),!1),rewind:ensureBool($optionsEl.getAttribute('data-tns-rewind'),!1),gutter:$optionsEl.getAttribute('data-tns-gutter'),edgePadding:$optionsEl.getAttribute('data-tns-edge-padding'),viewportMax:$optionsEl.getAttribute('data-tns-item-width-max-size'),slideBy:$optionsEl.getAttribute('data-tns-slide-by'),controlsBreakpoint:$optionsEl.getAttribute('data-tns-controls-breakpoint'),startIndex:$optionsEl.getAttribute('data-tns-start-index'),navType:$optionsEl.getAttribute('data-tns-nav-type'),navLayoutWidth:$optionsEl.getAttribute('data-tns-nav-layout-width'),itemPosition:$optionsEl.getAttribute('data-tns-item-position'),dotsPosition:$optionsEl.getAttribute('data-tns-dots-position'),controlsPosition:$optionsEl.getAttribute('data-tns-controls-position'),dotsInvert:ensureBool($optionsEl.getAttribute('data-tns-dots-invert'),!1),controlsInvert:ensureBool($optionsEl.getAttribute('data-tns-controls-invert'),!1),itemWidth:$optionsEl.getAttribute('data-tns-item-width'),itemOffset:ensureBool($optionsEl.getAttribute('data-tns-item-offset'),!1),startPosition:$optionsEl.getAttribute('data-tns-start-position'),slideScrolling:ensureBool($optionsEl.getAttribute('data-tns-slide-scrolling'),!1),slideScrollingDur:ensureNumber($optionsEl.getAttribute('data-tns-slide-scrolling-duration')),navHide:$optionsEl.getAttribute('data-tns-nav-hide'),items:$optionsEl.getAttribute('data-tns-items'),itemsMobile:$optionsEl.getAttribute('data-tns-items-mobile'),itemsMobileLarge:$optionsEl.getAttribute('data-tns-items-mobile-large'),itemsTablet:$optionsEl.getAttribute('data-tns-items-tablet'),itemsDesktop:$optionsEl.getAttribute('data-tns-items-desktop'),itemsDesktopLarge:$optionsEl.getAttribute('data-tns-items-desktop-large'),isGrid:$optionsEl.classList.contains('row')};options=(overrideOptions)?mergeObjects(optionsByData,overrideOptions):optionsByData;if(options.items){optionDefaults.itemsMobile=options.items;optionDefaults.itemsMobileLarge=options.items;optionDefaults.itemsTablet=options.items;optionDefaults.itemsDesktop=options.items;optionDefaults.itemsDesktopLarge=options.items}
654options=mergeObjects(optionDefaults,options);let optionsByCondition={mode:'carousel',get centerMode(){return options.centerMode&&this.mode!=='gallery'},navAsThumbnails:(options.autoplay||this.centerMode)?!0:!1,rewind:!options.loop&&options.rewind,lazyload:($el.querySelectorAll(
654options.lazyloadSelector).length)?($el.querySelectorAll(options.lazyloadSelector)[0].dataset.src)?!0:!1:!1,get gutter(){return(this.mode==='gallery')?0:options.gutter},startIndex:_this.getStartIndex(options),fixedWidth:ensureNumber(options.itemWidth),autoWidth:options.itemWidth=='auto'||!1,slideScrolling:!options.hasThumbnailSlider&&!options.isThumbnailSlider&&options.slideScrolling,get loop(){return!this.slideScrolling&&options.loop},get autoplay(){return!this.slideScrolling&&options.autoplay},get freezable(){return!this.autoWidth&&options.freezable},centerStyle:(this.centerMode)?options.centerStyle:null,controlsAndDots:options.navType=='controls_and_nav',dotsOnly:options.navType=='dots_only',controlsOnly:options.navType=='controls_only',get controls(){return this.controlsOnly||this.controlsAndDots},get dots(){return this.dotsOnly||this.controlsAndDots},navHideAbove:(options.navHide)?options.navHide.includes('>'):null,navHide:strReplace(['>','<'],'',options.navHide),get noNavigation(){return options.navType=='none'||this.navHide=='1'},dotsPositionArr:(options.dotsPosition)?options.dotsPosition.split(',').map(element=>element.trim()):null,controlsPositionArr:(options.controlsPosition)?options.controlsPosition.split(',').map(element=>element.trim()):null,};return mergeObjects(options,optionsByCondition)}
655getStartIndex(options){let _this=this;let $el=_this.$el;if(options.startPosition=='random'){let min=0;let max=$el.children.length;return Math.floor(Math.random()*(max-min)+min)}else if(options.startPosition>=1){return options.startPosition-1}
656return options.startIndex}
657isNavHidden(windowWidth){let _this=this;let $el=_this.$el;let options=_this.options;if(options.noNavigation)return!0;if(options.navHide){windowWidth=(!windowWidth)?getOuterWidth(window):windowWidth;
657if(options.navHideAbove&&windowWidth>=options.navHide){return!0}else if(windowWidth<options.navHide){return!0}}
658return!1}
659isNavCombo(){let _this=this;let options=_this.options;let combo={};if(options.controlsAndDots){let dotsP=options.dotsPositionArr;let controlsP=options.controlsPositionArr;let bothTop=controlsP.includes('top')&&dotsP.includes('top');let bothBottom=controlsP.includes('bottom')&&dotsP.includes('bottom');let bothLeft=controlsP.includes('left')&&dotsP.includes('left');let bothRight=controlsP.includes('right')&&dotsP.includes('right');let bothCenter=controlsP.includes('center')&&dotsP.includes('center');if((bothTop||bothBottom)&&bothCenter){combo.verCentered=!0}else if((bothTop||bothBottom)&&bothLeft){combo.verLeft=!0}else if((bothTop||bothBottom)&&bothRight){combo.verRight=!0}}
660return combo}
661isOuterControlsSwitch(){let _this=this;let options=_this.options;let controlsP=options.controlsPositionArr;if(options.controls&&!controlsP.includes('inner')&&!controlsP.includes('top')&&!controlsP.includes('bottom')){_this._log('outer controls switch enabled');return!0}
662return!1}
663processNavClasses(mod){let _this=this;let $el=_this.$el;let options=_this.options;let $sliderOuter=_this.$sliderOuter;let $sliderNav=_this.$sliderNav;let $sliderControls=_this.$sliderControls;if(mod){$sliderOuter.classList.remove('controls-and-nav-disabled');_this.tempOuterClasses=$sliderOuter.className;let dotsP=options.dotsPositionArr;let controlsP=options.controlsPositionArr;if(options.navType)$sliderOuter.classList.add(options.navType.replaceAll('_','-'));if(options.navLayoutWidth)$sliderOuter.classList.add('nav-layout-'+options.navLayoutWidth);if(options.dots){if(options.dotsOnly)$sliderOuter.classList.add('dots-only');if(dotsP){dotsP.forEach((position)=>{if(position.length)$sliderOuter.classList.add('dots-position-'+position);});if(!dotsP.includes('inner'))$sliderOuter.classList.add('dots-position-outer');}
664if(options.dotsInvert)$sliderOuter.classList.add('dots-invert');if(options.autoplay&&options.autoplayAnimate){$sliderOuter.classList.add('animate-dots');$sliderNav.querySelectorAll('button').forEach(($button)=>{let $innerDiv=document.createElement('div');$innerDiv.classList.add('button-inner');$button.insertBefore($innerDiv,$button.firstChild)})}}
665if(options.controls){if(options.controlsOnly)$sliderOuter.classList.add('controls-only');if(controlsP){controlsP.forEach((position)=>{if(position.length)$sliderOuter.classList.add('controls-position-'+position);});if(!controlsP.includes('inner'))$sliderOuter.classList.add('controls-position-outer');}
666if(options.controlsInvert)$sliderOuter.classList.add('controls-invert');if(options.controlsOnly){let $link=$sliderOuter.nextElementSibling;if($link&&$link.classList.contains('slider-link-wrap')&&(controlsP.includes('top')||controlsP.includes('bottom')&&controlsP.includes('left')||controlsP.includes('right'))){$sliderControls.insertBefore($link,(controlsP.includes('left'))?null:$sliderControls.firstChild);$link.classList.add('active');$sliderControls.classList.add('has-link')}}}
667_this._log('enable navigation',{addedClasses:$sliderOuter.className})}else{$sliderOuter.className=_this.tempOuterClasses;$sliderOuter.classList.add('controls-and-nav-disabled');_this._log('disable navigation',{resetClasses:$sliderOuter.className})}}
668initSlideScrolling(){let _this=this;let $el=_this.$el;let options=_this.options;let $sliderOuter=_this.$sliderOuter;let $sliderItems=_this.$sliderItems;$sliderOuter.classList.add('slide-scrolling');_this.smController=new ScrollMagic.Controller({container:window,loglevel:2});let triggerHook=0;let windowHeight=window.innerHeight;let sliderHeight=getOuterHeight($sliderOuter);if(sliderHeight<windowHeight){triggerHook=1-((windowHeight-((windowHeight-sliderHeight)/2))/windowHeight)}
669let slideDuration=(options.slideScrollingDur)?options.slideScrollingDur:windowHeight;let sceneDuration=slideDuration*$sliderItems.length;let sceneOptions={triggerElement:$sliderOuter,duration:sceneDuration,triggerHook:triggerHook,reverse:!0,offset:0};let scene=new ScrollMagic.Scene(sceneOptions).setPin($sliderOuter).on('enter',function(event){_this._log('slide-scrolling: enter slide scene')}).on('leave',function(event){if(_this.slider.getInfo){_this._log('slide-scrolling: leave slide scene');let info=_this.slider.getInfo();switch(event.scrollDirection){case 'FORWARD':_this.slider.goTo(info.slideCount-1);break;case 'REVERSE':_this.slider.goTo(0);break}}}).on('progress',function(event){if(_this.slider.getInfo){if(event.state=='DURING'){let info=_this.slider.getInfo();if(!info){return}
670let currItem=info.index;switch(event.scrollDirection){case 'FORWARD':let nextItem=currItem+1;if(nextItem<info.slideCount){let pos=slideDuration*nextItem;if(event.progress>=pos/sceneDuration){_this._log('slide-scrolling: slide next',{nextItem:nextItem,pos:pos});_this.slider.goTo('next')}}else{_this._log('slide-scrolling: end of slide next')}
671break;case 'REVERSE':let prevItem=currItem-1;
671if(currItem>0){let pos=slideDuration*currItem;if(event.progress<=pos/sceneDuration){_this._log('slide-scrolling: slide prev',{prevItem:prevItem,pos:pos});_this.slider.goTo('prev')}}else{_this._log('slide-scrolling: end of slide prev')}
672break}}}});if(_this._isDebug())scene.addIndicators({name:$el.id+' slide-scrolling'});scene.addTo(_this.smController);_this._log('initialized slide-scrolling',{sceneOptions:sceneOptions})}
673sliderOnInit(info){let _this=this;let $el=info.container;let options=_this.options;_this.$sliderOuter=$el.closest('.tns-outer');let $sliderOuter=_this.$sliderOuter;_this.$sliderNav=$sliderOuter.querySelector('.tns-nav');let $sliderNav=_this.$sliderNav;if($sliderNav){let navWrap=document.createElement('div');navWrap.classList.add('tns-nav-wrap');$sliderOuter.insertBefore(navWrap,$sliderNav);navWrap.appendChild($sliderNav)}
674_this.$sliderControls=$sliderOuter.querySelector('.tns-controls');let $sliderControls=_this.$sliderControls;if($sliderControls){let controlsWrap=document.createElement('div');controlsWrap.classList.add('tns-controls-wrap');$sliderOuter.insertBefore(controlsWrap,$sliderControls);controlsWrap.appendChild($sliderControls)}
675_this.$sliderItems=$sliderOuter.querySelectorAll('.tns-item');let $sliderItems=_this.$sliderItems;let isGrid=$el.classList.contains('row');if(isGrid)$sliderOuter.classList.add('grid-slider');if(options.autoHeight)$sliderOuter.classList.add('tns-auto-height');if(options.autoWidth)$sliderOuter.classList.add('tns-auto-width');if(options.itemPosition)$sliderOuter.classList.add('item-position-'+options.itemPosition);if(options.edgePadding)$sliderOuter.classList.add('tns-edge-padding');if(options.itemOffset)$sliderOuter.classList.add('item-offset');if(options.centerMode){$sliderOuter.classList.add('slider-center-mode');if(options.centerStyle)$sliderOuter.classList.add('slider-center-mode--'+options.centerStyle);}
676if(options.slideScrolling){_this.initSlideScrolling()}
677if(!_this.isNavHidden()){_this.options.navCombo=_this.isNavCombo();_this.options.outerControlsSwitch=_this.isOuterControlsSwitch();_this.processNavClasses(!0)}else{$sliderOuter.classList.add('controls-and-nav-disabled')}
678let $heightEl=$el.closest('.tns-ovh');if(getInnerHeight($heightEl)===0){setTimeout(function(){$heightEl.style.height='auto';_this._log('fix initial height',$heightEl)},100)}
679if(!options.loop&&options.autoWidth&&$sliderControls){_this.slider.events.on('transitionEnd',function(info){let $nextButton=$sliderControls.querySelector('[data-controls="next"]');let isLast=($nextButton)?$nextButton.disabled:!1;$sliderOuter.classList.toggle('is-end',isLast)});_this.slider.events.on('transitionStart',function(info){let $nextButton=$sliderControls.querySelector('[data-controls="next"]');let isLast=($nextButton)?$nextButton.disabled:!1;$sliderOuter.classList.toggle('is-end',isLast)})}
680_this.triggerSliderOnInitEvent('onInit callback')}
681sliderOnChange(info){let _this=this;let $el=info.container;let options=_this.options;let currIndex=info.displayIndex;let $sliderOuter=_this.$sliderOuter;let $sliderNav=_this.$sliderNav;let $sliderControls=_this.$sliderControls;let $activeNavItem=($sliderNav)?$sliderNav.querySelector('.tns-nav-active'):null;$sliderOuter.classList.toggle('is-start',currIndex===1);if(!options.loop&&!options.autoWidth){$sliderOuter.classList.toggle('is-end',currIndex===info.slideCount||currIndex===info.pages)}
682if(options.centerMode===!0&&options.mode!=='gallery'){_this._log('on change / center mode',info);$el.querySelectorAll('.tns-item').forEach(($item)=>{$item.classList.remove('tns-item--active')});$sliderNav.querySelectorAll(':scope > button').forEach(($item)=>{$item.style.display='block'});let $currItem=null;if(options.loop){$currItem=$el.querySelectorAll('.item--'+(currIndex-1))}else{$currItem=$el.querySelector('.tns-item:nth-of-type('+currIndex+')')}
683if($currItem){if($currItem instanceof NodeList||$currItem instanceof HTMLCollection){$currItem.forEach(($item)=>$item.classList.add('tns-item--active'))}else{$currItem.classList.add('tns-item--active')}}
684if($sliderNav&&!options.noNavigation){$sliderNav.querySelectorAll('.tns-nav-active').forEach(($item)=>{$item.classList.remove('tns-nav-active')});$sliderNav.querySelector('button:nth-of-type('+currIndex+')').classList.add('tns-nav-active')}}
685if(options.autoplay&&options.autoPlayAnimate){if($sliderNav&&!options.noNavigation){_this._log('on change / autoplay',info);let autoplayTimeout=options.autoplayTimeout;autoplayTimeout=autoplayTimeout/1000+'s';$sliderNav:querySelector('.button-inner').style.transitionDuration=autoplayTimeout;let firstPos=options.startIndex;if($activeNavItem.getAttribute('data-nav')==firstPos&&!$activeNavItem.hasAttribute('data-iat')){let $inner=$activeNavItem.querySelector('.button-inner');$inner.style.transitionDuration='0s';$activeNavItem.classList.remove('tns-nav-active').setAttribute('data-iat',!0);setTimeout(function(){$inner.style.transitionDuration=autoplayTimeout;$activeNavItem.classList.add('tns-nav-active')},1)}}}}
686sliderOnResize(windowWidth){let _this=this;let $el=_this.$el;let options=_this.options;let $sliderOuter=_this.$sliderOuter;if(!_this.isReseted&&$sliderOuter){let info=_this.slider.getInfo();let $sliderNav=_this.$sliderNav;let $sliderControls=_this.$sliderControls;_this._log('on resize',{windowWidth:windowWidth,info:info});if(!_this.isNavHidden(windowWidth)){if($sliderOuter.classList.contains('controls-and-nav-disabled')){_this.processNavClasses(!0)}
687if(info.navItems){$sliderOuter.classList.add('dots-active')}else{$sliderOuter.classList.remove('dots-active')}
688if(_this.options.outerControlsSwitch){if(windowWidth<options.controlsBreakpoint){$sliderOuter.classList.add('controls-position-inner');if(options.controlsChangePos){if(!options.controlsPositionArr.includes('top')&&!options.controlsPositionArr.includes('bottom')){$sliderOuter.classList.add('controls-position-bottom');$sliderOuter.dataset.controlsChangedPos='bottom'}
689$sliderOuter.classList.add('controls-changed-pos')}}else{$sliderOuter.classList.remove('controls-position-inner');if($sliderOuter.classList.contains('controls-changed-pos')){let controlsChangedPos=$sliderOuter.dataset.controlsChangedPos;if(controlsChangedPos){$sliderOuter.classList.remove('controls-position-'+controlsChangedPos);delete $sliderOuter.dataset.controlsChangedPos}
690let controlsDefaultPos=$sliderOuter.dataset.controlsDefaultPos;if(controlsDefaultPos){$sliderOuter.classList.add('controls-position-'+controlsDefaultPos);delete $sliderOuter.dataset.controlsDefaultPos}
691$sliderOuter.classList.remove('controls-changed-pos')}}}
692if(!_.isEmpty(_this.options.navCombo)){_this._log('special navigation combo',{combo:_this.options.navCombo,$sliderControls:$sliderControls,$sliderNav:$sliderNav});let combo=_this.options.navCombo;if(combo.verCentered||combo.verLeft||combo.verRight){$sliderOuter.classList.add('nav-combo');let additionalWidth=(parseFloat(window.getComputedStyle($sliderControls).paddingLeft))*4;if(additionalWidth==0)additionalWidth=40;let controlsButtonWidth=$sliderControls.children[0].clientWidth;let controlsWidth=($sliderNav.offsetWidth+controlsButtonWidth*2+additionalWidth)/16;$sliderControls.style.maxWidth=controlsWidth+'rem';if(combo.verLeft){$sliderNav.style.left=controlsButtonWidth/16+'rem'}
693if(combo.verRight){$sliderNav.style.right=controlsButtonWidth/16+'rem'}}}}else{if(!$sliderOuter.classList.contains('controls-and-nav-disabled')){_this.processNavClasses(!1)}}}}}
694window.Slider=Slider;document.addEventListener('DOMContentLoaded',function(){ComponentRegistry.initComponent('.tns-init','Slider')});function initToTopFooter(){let toTopFooter=document.querySelector('.to-top--footer');if(toTopFooter){window.onscroll=function(){let scrollBarPosition=window.scrollY|document.body.scrollTop;if(scrollBarPosition>500){toTopFooter.classList.add('active')}else{toTopFooter.classList.remove('active')}}}}
695function scrollToTopLinks(){let scrollTopLinks=document.querySelectorAll('.scroll-to-top');if(scrollTopLinks.length){scrollTopLinks.forEach((link)=>{onClickAndEnter(link,function(e){e.preventDefault;scrollWindowTo(0)})})}}
696document.addEventListener('DOMContentLoaded',function(){initToTopFooter();scrollToTopLinks()});let ariaSkipnavEscRegistered=!1;function initAriaSkipnav($root){if(!$root)return;const $quickbar=document.getElementById('quickbar');if($quickbar){const $overlay=$root.querySelector('.aria-skipnav__overlay');const $quickbarLink=document.createElement('a');$quickbarLink.href='#quickbar';$quickbarLink.className='aria-skipnav__item';$quickbarLink.setAttribute('aria-label','Zu den Quicklinks springen');$quickbarLink.textContent='Zu den Quicklinks springen';$root.insertBefore($quickbarLink,$overlay||null)}
697const $tabNavLinks=Array.from($root.querySelectorAll('.aria-skipnav__item'));$tabNavLinks.forEach(($link)=>{$link.addEventListener('click',(e)=>{e.preventDefault();$link.blur();const hash=$link.hash;if(!hash)return;const $target=document.querySelector(hash);if($target){makeFocusable($target);$target.classList.add('tabnav-target');$target.focus()}})});if($tabNavLinks.length&&!ariaSkipnavEscRegistered){ariaSkipnavEscRegistered=!0;document.addEventListener('keydown',(e)=>{const key=e.key!=null?e.key:e.which;const isEsc=key==='Escape'||key==='Esc'||key===KEY_ESC||key===27;if(!isEsc)return;const $first=$tabNavLinks[0];if(!$first)return;if(document.activeElement===$first){$first.blur()}else{$first.focus()}})}}
698document.addEventListener('DOMContentLoaded',function(){const $skipnav=document.querySelectorAll('.aria-skipnav');$skipnav.forEach(($el)=>initAriaSkipnav($el))});function initAriaTools($root){if(!$root)return;const $body=document.body;const $iconContrastList=Array.from($root.querySelectorAll('.aria-tools__item--contrast'));if($iconContrastList.length){ariaContrast()}
699function ariaContrast(){const storedContrast=Cookies.get('ariacontrast');if(storedContrast){$body.classList.add(storedContrast);const $activeEls=$root.querySelectorAll("[data-contrast='"+storedContrast+"']");$activeEls.forEach(($el)=>$el.classList.add('active'))}
700$iconContrastList.forEach(($el)=>{onClickAndEnter($el,()=>{setContrast($el)})});function setContrast($el){const contrastClass=$el.dataset.contrast;if(!contrastClass)return;$body.classList.toggle(contrastClass);$iconContrastList.forEach(($btn)=>{if($btn.classList.contains('active')||$btn===$el){$btn.classList.toggle('active')}});if(Cookies.get('ariacontrast')){Cookies.remove('ariacontrast')}else{Cookies.set('ariacontrast',contrastClass,{expires:7})}}}
701const $rootElement=document.documentElement;let scaleLevel=0;const $setNormal=$root.querySelector('.aria-tools__item--font-normal');const $setLarge=$root.querySelector('.aria-tools__item--font-large');const $sizeToggle=$root.querySelector('.aria-tools__item--font-toggle');if(($setNormal&&$setLarge)||$sizeToggle){ariaFontSize()}
702function ariaFontSize(){const storedFontSize=Cookies.get('ariafontsize');if(storedFontSize){$rootElement.dataset.scaleLevel=storedFontSize;$rootElement.classList.add('aria-large-'+storedFontSize);scaleLevel=parseInt(storedFontSize,10);if($setNormal)$setNormal.classList.remove('active');if($setLarge)$setLarge.classList.add('active');if($sizeToggle)$sizeToggle.classList.add('active');}
703$rootElement.dataset.scaleLevel=scaleLevel;const maxScaleLevel=2;if($setNormal){onClickAndEnter($setNormal,()=>{setNormal()})}
704function setNormal(){for(let i=maxScaleLevel;i>0;i--){$rootElement.classList.remove('aria-large-'+i)}
705$rootElement.dataset.scaleLevel='0';Cookies.remove('ariafontsize',{path:''});if($setLarge)$setLarge.classList.remove('active');if($sizeToggle)$sizeToggle.classList.remove('active');if($setNormal)$setNormal.classList.add('active');$rootElement.dispatchEvent(new CustomEvent('ariafontsize'))}
706if($setLarge){onClickAndEnter($setLarge,()=>{setLarge()})}
707function setLarge(){const currScaleLevel=parseInt($rootElement.dataset.scaleLevel||'0',10);if(maxScaleLevel>currScaleLevel){$rootElement.classList.remove('aria-large-'+currScaleLevel);const next=currScaleLevel+1;$rootElement.classList.add('aria-large-'+next);$rootElement.dataset.scaleLevel=String(next);Cookies.set('ariafontsize',next,{path:'',expires:7});if($setNormal)$setNormal.classList.remove('active');if($setLarge)$setLarge.classList.add('active');if($sizeToggle)$sizeToggle.classList.add('active');$rootElement.dispatchEvent(new CustomEvent('ariafontsize'))}}
708if($sizeToggle){onClickAndEnter($sizeToggle,()=>{const currScaleLevel=parseInt($rootElement.dataset.scaleLevel||'0',10);if(maxScaleLevel>currScaleLevel){setLarge()}else{setNormal()}})}}}
709document.addEventListener('DOMContentLoaded',function(){const $toolsBlocks=document.querySelectorAll('.aria-tools');$toolsBlocks.forEach(($el)=>initAriaTools($el))});document.addEventListener('DOMContentLoaded',function(){let $popupLinks=document.querySelectorAll('.content-popup');if($popupLinks){$popupLinks.forEach(($popup)=>{let $content=document.querySelector($popup.hash);if(!$content)return;$($popup).magnificPopup({items:{src:$content,type:'inline'},tClose:$content.dataset.closeText})})}
710$popupGalleries=document.querySelectorAll('.gallery-popup, .magnific-popup');if($popupGalleries){$popups=[];$popupGalleries.forEach(($item)=>{let mgpId=$item.dataset.mgpId;if(mgpId){$popups.push(document.querySelectorAll('.popup--gallery[data-mgp-id="'+mgpId+'"]'))}else{$popups.push($item)}});let root=getComputedStyle(document.documentElement);$popups.forEach(($popup)=>{$($popup).magnificPopup({key:'image',disableOn:function(){return!matchMedia('(width <= '+root.getPropertyValue('--breakpoint-xs')+')').matches},delegate:'.ce-image__link',image:{verticalFit:!0,titleSrc:function(item){return item.img[0].title}},gallery:{enabled:!0,tPrev:'Vorheriges Bild (Linke Pfeiltaste)',tNext:'Nächstes Bild (Rechte Pfeiltaste)',},mainClass:'mfp-with-zoom',zoom:{enabled:!0,duration:300,easing:'ease-in-out',},type:'image',cursor:null,preloader:!0,tClose:'Schließen',closeMarkup:'<button title="%title%" aria-label="Schließen" type="button" class="mfp-close">&#215;</button>',})})}
711let $popupAuto=document.querySelector('.auto-popup');if($popupAuto){let popId=$popupAuto.dataset.popId;let popType=$popupAuto.dataset.popType;let mainClass='mfp-auto-popup mfp-allow-scrolling';let closeOnBgClick=!0;let fixFocusTrap=!1;switch(popType){case 'edge':mainClass='mfp-auto-popup mfp-allow-scrolling mfp-bottom-right';
711closeOnBgClick=!1;fixFocusTrap=!0;break;default:}
712let popCookie=Cookies.get('hide-'+popId)||!1;if(!popCookie){$.magnificPopup.open({mainClass:mainClass,closeOnBgClick:closeOnBgClick,fixedContentPos:!0,items:{src:$popupAuto,type:'inline'},tClose:$popupAuto.dataset.closeText,callbacks:{close:function(){Cookies.set('hide-'+popId,!0,{expires:1})}}});let mfp=$.magnificPopup.instance;if(closeOnBgClick===!1)mfp.bgOverlay.off('click.mfp');if(fixFocusTrap)mfp._onFocusIn=function(){return!0}}}});
vendor: 20,735 bytes, line 712
712!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(c){function e(){}function d(e,t){m.ev.on(x+e+I,t)}function p(e,t,n,o){var i=document.createElement("div");return i.className="mfp-"+e,n&&(i.innerHTML=n),o?t&&t.appendChild(i):(i=c(i),t&&i.appendTo(t)),i}function u(e,t){m.ev.triggerHandler(x+e,t),m.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),m.st.callbacks[e])&&m.st.callbacks[e].apply(m,Array.isArray(t)?t:[t])}function f(e){return e===A&&m.currTemplate.closeBtn||(m.currTemplate.closeBtn=c(m.st.closeMarkup.replace("%title%",m.st.tClose)),A=e),m.currTemplate.closeBtn}function r(){c.magnificPopup.instance||((m=new e).init(),c.magnificPopup.instance=m)}function a(){y&&(v.after(y.addClass(l)).detach(),y=null)}function i(){n&&c(document.body).removeClass(n)}function t(){i(),m.req&&m.req.abort()}var m,o,g,s,h,A,l,v,y,n,w="Close",F="BeforeClose",C="MarkupParse",b="Open",j="Change",x="mfp",I="."+x,T="mfp-ready",N="mfp-removing",k="mfp-prevent-close",P=!!window.jQuery,_=c(window),S=(c.magnificPopup={instance:null,proto:e.prototype={constructor:e,init:function(){var e=navigator.appVersion;m.isLowIE=m.isIE8=document.all&&!document.addEventListener,m.isAndroid=/android/gi.test(e),m.isIOS=/iphone|ipad|ipod/gi.test(e),m.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),m.probablyMobile=m.isAndroid||m.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),g=c(document),m.popupsCache={}},open:function(e){if(!1===e.isObj){m.items=e.items.toArray(),m.index=0;for(var t,n=e.items,o=0;o<n.length;o++)if((t=(t=n[o]).parsed?t.el[0]:t)===e.el[0]){m.index=o;break}}else m.items=Array.isArray(e.items)?e.items:[e.items],m.index=e.index||0;if(!m.isOpen){m.types=[],h="",e.mainEl&&e.mainEl.length?m.ev=e.mainEl.eq(0):m.ev=g,e.key?(m.popupsCache[e.key]||(m.popupsCache[e.key]={}),m.currTemplate=m.popupsCache[e.key]):m.currTemplate={},m.st=c.extend(!0,{},c.magnificPopup.defaults,e),m.fixedContentPos="auto"===m.st.fixedContentPos?!m.probablyMobile:m.st.fixedContentPos,m.st.modal&&(m.st.closeOnContentClick=!1,m.st.closeOnBgClick=!1,m.st.showCloseBtn=!1,m.st.enableEscapeKey=!1),m.bgOverlay||(m.bgOverlay=p("bg").on("click"+I,function(){m.close()}),m.wrap=p("wrap").attr("tabindex",-1).on("click"+I,function(e){m._checkIfClose(e.target)&&m.close()}),m.container=p("container",m.wrap)),m.contentContainer=p("content"),m.st.preloader&&(m.preloader=p("preloader",m.container,m.st.tLoading));var i=c.magnificPopup.modules;for(o=0;o<i.length;o++){var r=(r=i[o]).charAt(0).toUpperCase()+r.slice(1);m["init"+r].call(m)}u("BeforeOpen"),m.st.showCloseBtn&&(m.st.closeBtnInside?(d(C,function(e,t,n,o){n.close_replaceWith=f(o.type)}),h+=" mfp-close-btn-in"):m.wrap.append(f())),m.st.alignTop&&(h+=" mfp-align-top"),m.fixedContentPos?m.wrap.css({overflow:m.st.overflowY,overflowX:"hidden",overflowY:m.st.overflowY}):m.wrap.css({top:_.scrollTop(),position:"absolute"}),!1!==m.st.fixedBgPos&&("auto"!==m.st.fixedBgPos||m.fixedContentPos)||m.bgOverlay.css({height:g.height(),position:"absolute"}),m.st.enableEscapeKey&&g.on("keyup"+I,function(e){27===e.keyCode&&m.close()}),_.on("resize"+I,function(){m.updateSize()}),m.st.closeOnContentClick||(h+=" mfp-auto-cursor"),h&&m.wrap.addClass(h);var a=m.wH=_.height(),s={},l=(m.fixedContentPos&&m._hasScrollBar(a)&&(l=m._getScrollbarSize())&&(s.marginRight=l),m.fixedContentPos&&(m.isIE7?c("body, html").css("overflow","hidden"):s.overflow="hidden"),m.st.mainClass);return m.isIE7&&(l+=" mfp-ie7"),l&&m._addClassToMFP(l),m.updateItemHTML(),u("BuildControls"),c("html").css(s),m.bgOverlay.add(m.wrap).prependTo(m.st.prependTo||c(document.body)),m._lastFocusedEl=document.activeElement,setTimeout(function(){m.content?(m._addClassToMFP(T),m._setFocus()):m.bgOverlay.addClass(T),g.on("focusin"+I,m._onFocusIn)},16),m.isOpen=!0,m.updateSize(a),u(b),e}m.updateItemHTML()},close:function(){m.isOpen&&(u(F),m.isOpen=!1,m.st.removalDelay&&!m.isLowIE&&m.supportsTransition?(m._addClassToMFP(N),setTimeout(function(){m._close()},m.st.removalDelay)):m._close())},_close:function(){u(w);var e=N+" "+T+" ";m.bgOverlay.detach(),m.wrap.detach(),m.container.empty(),m.st.mainClass&&(e+=m.st.mainClass+" "),m._removeClassFromMFP(e),m.fixedContentPos&&(e={marginRight:""},m.isIE7?c("body, html").css("overflow",""):e.overflow="",c("html").css(e)),g.off("keyup.mfp focusin"+I),m.ev.off(I),m.wrap.attr("class","mfp-wrap").removeAttr("style"),m.bgOverlay.attr("class","mfp-bg"),m.container.attr("class","mfp-container"),!m.st.showCloseBtn||m.st.closeBtnInside&&!0!==m.currTemplate[m.currItem.type]||m.currTemplate.closeBtn&&m.currTemplate.closeBtn.detach(),m.st.autoFocusLast&&m._lastFocusedEl&&c(m._lastFocusedEl).trigger("focus"),m.currItem=null,m.content=null,m.currTemplate=null,m.prevHeight=0,u("AfterClose")},updateSize:function(e){var t;m.isIOS?(t=document.documentElement.clientWidth/window.innerWidth,t=window.innerHeight*t,m.wrap.css("height",t),m.wH=t):m.wH=e||_.height(),m.fixedContentPos||m.wrap.css("height",m.wH),u("Resize")},updateItemHTML:function(){var e=m.items[m.index],t=(m.contentContainer.detach(),m.content&&m.content.detach(),(e=e.parsed?e:m.parseEl(m.index)).type),n=(u("BeforeChange",[m.currItem?m.currItem.type:"",t]),m.currItem=e,m.currTemplate[t]||(n=!!m.st[t]&&m.st[t].markup,u("FirstMarkupParse",n),m.currTemplate[t]=!n||c(n)),s&&s!==e.type&&m.container.removeClass("mfp-"+s+"-holder"),m["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,m.currTemplate[t]));m.appendContent(n,t),e.preloaded=!0,u(j,e),s=e.type,m.container.prepend(m.contentContainer),u("AfterChange")},appendContent:function(e,t){(m.content=e)?m.st.showCloseBtn&&m.st.closeBtnInside&&!0===m.currTemplate[t]?m.content.find(".mfp-close").length||m.content.append(f()):m.content=e:m.content="",u("BeforeAppend"),m.container.addClass("mfp-"+t+"-holder"),m.contentContainer.append(m.content)},parseEl:function(e){var t,n=m.items[e];if((n=n.tagName?{el:c(n)}:(t=n.type,{data:n,src:n.src})).el){for(var o=m.types,i=0;i<o.length;i++)if(n.el.hasClass("mfp-"+o[i])){t=o[i];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=t||m.st.type||"inline",n.index=e,n.parsed=!0,m.items[e]=n,u("ElementParse",n),m.items[e]},addGroup:function(t,n){function e(e){e.mfpEl=this,m._openClick(e,t,n)}var o="click.magnificPopup";(n=n||{}).mainEl=t,n.items?(n.isObj=!0,t.off(o).on(o,e)):(n.isObj=!1,n.delegate?t.off(o).on(o,n.delegate,e):(n.items=t).off(o).on(o,e))},_openClick:function(e,t,n){var o=(void 0!==n.midClick?n:c.magnificPopup.defaults).midClick;if(o||!(2===e.which||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)){o=(void 0!==n.disableOn?n:c.magnificPopup.defaults).disableOn;if(o)if("function"==typeof o){if(!o.call(m))return!0}else if(_.width()<o)return!0;e.type&&(e.preventDefault(),m.isOpen)&&e.stopPropagation(),n.el=c(e.mfpEl),n.delegate&&(n.items=t.find(n.delegate)),m.open(n)}},updateStatus:function(e,t){var n;m.preloader&&(o!==e&&m.container.removeClass("mfp-s-"+o),n={status:e,text:t=t||"loading"!==e?t:m.st.tLoading},u("UpdateStatus",n),e=n.status,t=n.text,m.st.allowHTMLInStatusIndicator?m.preloader.html(t):m.preloader.text(t),m.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),m.container.addClass("mfp-s-"+e),o=e)},_checkIfClose:function(e){if(!c(e).closest("."+k).length){var t=m.st.closeOnContentClick,n=m.st.closeOnBgClick;if(t&&n)return!0;if(!m.content||c(e).closest(".mfp-close").length||m.preloader&&e===m.preloader[0])return!0;if(e===m.content[0]||c.contains(m.content[0],e)){if(t)return!0}else if(n&&c.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){m.bgOverlay.addClass(e),m.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),m.wrap.removeClass(e)},_hasScrollBar:function(e){return(m.isIE7?g.height():document.body.scrollHeight)>(e||_.height())},_setFocus:function(){(m.st.focus?m.content.find(m.st.focus).eq(0):m.wrap).trigger("focus")},_onFocusIn:function(e){if(e.target!==m.wrap[0]&&!c.contains(m.wrap[0],e.target))return m._setFocus(),!1},_parseMarkup:function(i,e,t){var r;t.data&&(e=c.extend(t.data,e)),u(C,[i,e,t]),c.each(e,function(e,t){if(void 0===t||!1===t)return!0;var n,o;1<(r=e.split("_")).length?0<(n=i.find(I+"-"+r[0])).length&&("replaceWith"===(o=r[1])?n[0]!==t[0]&&n.replaceWith(t):"img"===o?n.is("img")?n.attr("src",t):n.replaceWith(c("<img>").attr("src",t).attr("class",n.attr("class"))):n.attr(r[1],t)):m.st.allowHTMLInTemplate?i.find(I+"-"+e).html(t):i.find(I+"-"+e).text(t)})},_getScrollbarSize:function(){var e;return void 0===m.scrollbarSize&&((e=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),m.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),m.scrollbarSize}},modules:[],open:function(e,t){return r(),(e=e?c.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return c.magnificPopup.instance&&c.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(c.magnificPopup.defaults[e]=t.options),c.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0,allowHTMLInStatusIndicator:!1,allowHTMLInTemplate:!1}},c.fn.magnificPopup=function(e){r();var t,n,o,i=c(this);return"string"==typeof e?"open"===e?(t=P?i.data("magnificPopup"):i[0].magnificPopup,n=parseInt(arguments[1],10)||0,o=t.items?t.items[n]:(o=i,(o=t.delegate?o.find(t.delegate):o).eq(n)),m._openClick({mfpEl:o},i,t)):m.isOpen&&m[e].apply(m,Array.prototype.slice.call(arguments,1)):(e=c.extend(!0,{},e),P?i.data("magnificPopup",e):i[0].magnificPopup=e,m.addGroup(i,e)),i},"inline"),E=(c.magnificPopup.registerModule(S,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){m.types.push(S),d(w+"."+S,function(){a()})},getInline:function(e,t){var n,o,i;return a(),e.src?(n=m.st.inline,(o=c(e.src)).length?((i=o[0].parentNode)&&i.tagName&&(v||(l=n.hiddenClass,v=p(l),l="mfp-"+l),y=o.after(v).detach().removeClass(l)),m.updateStatus("ready")):(m.updateStatus("error",n.tNotFound),o=c("<div>")),e.inlineElement=o):(m.updateStatus("ready"),m._parseMarkup(t,{},e),t)}}}),"ajax");c.magnificPopup.registerModule(E,{options:{settings:null,cursor:"mfp-ajax-cur",tError:"The content could not be loaded."},proto:{initAjax:function(){m.types.push(E),n=m.st.ajax.cursor,d(w+"."+E,t),d("BeforeChange."+E,t)},getAjax:function(o){n&&c(document.body).addClass(n),m.updateStatus("loading");var e=c.extend({url:o.src,success:function(e,t,n){e={data:e,xhr:n};u("ParseAjax",e),m.appendContent(c(e.data),E),o.finished=!0,i(),m._setFocus(),setTimeout(function(){m.wrap.addClass(T)},16),m.updateStatus("ready"),u("AjaxContentAdded")},error:function(){i(),o.finished=o.loadError=!0,m.updateStatus("error",m.st.ajax.tError.replace("%url%",o.src))}},m.st.ajax.settings);return m.req=c.ajax(e),""}}});var z;c.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:"The image could not be loaded."},proto:{initImage:function(){var e=m.st.image,t=".image";m.types.push("image"),d(b+t,function(){"image"===m.currItem.type&&e.cursor&&c(document.body).addClass(e.cursor)}),d(w+t,function(){e.cursor&&c(document.body).removeClass(e.cursor),_.off("resize"+I)}),d("Resize"+t,m.resizeImage),m.isLowIE&&d("AfterChange",m.resizeImage)},resizeImage:function(){var e,t=m.currItem;t&&t.img&&m.st.image.verticalFit&&(e=0,m.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",m.wH-e))},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,z&&clearInterval(z),e.isCheckingImgSize=!1,u("ImageHasSize",e),e.imgHidden)&&(m.content&&m.content.removeClass("mfp-loading"),e.imgHidden=!1)},findImageSize:function(t){function n(e){z&&clearInterval(z),z=setInterval(function(){0<i.naturalWidth?m._onImageHasSize(t):(200<o&&clearInterval(z),3===++o?n(10):40===o?n(50):100===o&&n(500))},e)}var o=0,i=t.img[0];n(1)},getImage:function(e,t){function n(){e&&(e.img.off(".mfploader"),e===m.currItem&&(m._onImageHasSize(e),m.updateStatus("error",a.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)}function o(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===m.currItem&&(m._onImageHasSize(e),m.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,u("ImageLoadComplete")):++r<200?setTimeout(o,100):n())}var i,r=0,a=m.st.image,s=t.find(".mfp-img");return s.length&&((i=document.createElement("img")).className="mfp-img",e.el&&e.el.find("img").length&&(i.alt=e.el.find("img").attr("alt")),e.img=c(i).on("load.mfploader",o).on("error.mfploader",n),i.src=e.src,s.is("img")&&(e.img=e.img.clone()),0<(i=e.img[0]).naturalWidth?e.hasSize=!0:i.width||(e.hasSize=!1)),m._parseMarkup(t,{title:function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=m.st.image.titleSrc;if(t){if("function"==typeof t)return t.call(m,e);if(e.el)return e.el.attr(t)||""}return""}(e),img_replaceWith:e.img},e),m.resizeImage(),e.hasSize?(z&&clearInterval(z),e.loadError?(t.addClass("mfp-loading"),m.updateStatus("error",a.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),m.updateStatus("ready"))):(m.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),m.findImageSize(e))),t}}});function O(e){var t;m.currTemplate[L]&&(t=m.currTemplate[L].find("iframe")).length&&(e||(t[0].src="//about:blank"),m.isIE8)&&t.css("display",e?"block":"none")}function M(e){var t=m.items.length;return t-1<e?e-t:e<0?t+e:e}function D(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)}c.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,t,n,o,i,r,a=m.st.zoom,s=".zoom";a.enabled&&m.supportsTransition&&(t=a.duration,n=function(e){var e=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),t="all "+a.duration/1e3+"s "+a.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return n["-webkit-"+o]=n["-moz-"+o]=n["-o-"+o]=n[o]=t,e.css(n),e},o=function(){m.content.css("visibility","visible")},d("BuildControls"+s,function(){m._allowZoom()&&(clearTimeout(i),m.content.css("visibility","hidden"),(e=m._getItemToZoom())?((r=n(e)).css(m._getOffset()),m.wrap.append(r),i=setTimeout(function(){r.css(m._getOffset(!0)),i=setTimeout(function(){o(),setTimeout(function(){r.remove(),e=r=null,u("ZoomAnimationEnded")},16)},t)},16)):o())}),d(F+s,function(){if(m._allowZoom()){if(clearTimeout(i),m.st.removalDelay=t,!e){if(!(e=m._getItemToZoom()))return;r=n(e)}r.css(m._getOffset(!0)),m.wrap.append(r),m.content.css("visibility","hidden"),setTimeout(function(){r.css(m._getOffset())},16)}}),d(w+s,function(){m._allowZoom()&&(o(),r&&r.remove(),e=null)}))},_allowZoom:function(){return"image"===m.currItem.type},_getItemToZoom:function(){return!!m.currItem.hasSize&&m.currItem.img},_getOffset:function(e){var e=e?m.currItem.img:m.st.zoom.opener(m.currItem.el||m.currItem),t=e.offset(),n=parseInt(e.css("padding-top"),10),o=parseInt(e.css("padding-bottom"),10),e=(t.top-=c(window).scrollTop()-n,{width:e.width(),height:(P?e.innerHeight():e[0].offsetHeight)-o-n});return(B=void 0===B?void 0!==document.createElement("p").style.MozTransform:B)?e["-moz-transform"]=e.transform="translate("+t.left+"px,"+t.top+"px)":(e.left=t.left,e.top=t.top),e}}});var B,L="iframe",H=(c.magnificPopup.registerModule(L,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){m.types.push(L),d("BeforeChange",function(e,t,n){t!==n&&(t===L?O():n===L&&O(!0))}),d(w+"."+L,function(){O()})},getIframe:function(e,t){var n=e.src,o=m.st.iframe,i=(c.each(o.patterns,function(){if(-1<n.indexOf(this.index))return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1}),{});return o.srcAction&&(i[o.srcAction]=n),m._parseMarkup(t,i,e),m.updateStatus("ready"),t}}}),c.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%",langDir:null,loop:!0},proto:{initGallery:function(){var r=m.st.gallery,e=".mfp-gallery";if(m.direction=!0,!r||!r.enabled)return!1;r.langDir||(r.langDir=document.dir||"ltr"),h+=" mfp-gallery",d(b+e,function(){r.navigateByImgClick&&m.wrap.on("click"+e,".mfp-img",function(){if(1<m.items.length)return m.next(),!1}),g.on("keydown"+e,function(e){37===e.keyCode?"rtl"===r.langDir?m.next():m.prev():39===e.keyCode&&("rtl"===r.langDir?m.prev():m.next())}),m.updateGalleryButtons()}),d("UpdateStatus"+e,function(){m.updateGalleryButtons()}),d("UpdateStatus"+e,function(e,t){t.text&&(t.text=D(t.text,m.currItem.index,m.items.length))}),d(C+e,function(e,t,n,o){var i=m.items.length;n.counter=1<i?D(r.tCounter,o.index,i):""}),d("BuildControls"+e,function(){var e,t,n,o,i;1<m.items.length&&r.arrows&&!m.arrowLeft&&(t="rtl"===r.langDir?(o=r.tNext,e=r.tPrev,i="next","prev"):(o=r.tPrev,e=r.tNext,i="prev","next"),n=r.arrowMarkup,o=m.arrowLeft=c(n.replace(/%title%/gi,o).replace(/%action%/gi,i).replace(/%dir%/gi,"left")).addClass(k),i=m.arrowRight=c(n.replace(/%title%/gi,e).replace(/%action%/gi,t).replace(/%dir%/gi,"right")).addClass(k),"rtl"===r.langDir?(m.arrowNext=o,m.arrowPrev=i):(m.arrowNext=i,m.arrowPrev=o),o.on("click",function(){"rtl"===r.langDir?m.next():m.prev()}),i.on("click",function(){"rtl"===r.langDir?m.prev():m.next()}),m.container.append(o.add(i)))}),d(j+e,function(){m._preloadTimeout&&clearTimeout(m._preloadTimeout),m._preloadTimeout=setTimeout(function(){m.preloadNearbyImages(),m._preloadTimeout=null},16)}),d(w+e,function(){g.off(e),m.wrap.off("click"+e),m.arrowRight=m.arrowLeft=null})},next:function(){var e=M(m.index+1);if(!m.st.gallery.loop&&0===e)return!1;m.direction=!0,m.index=e,m.updateItemHTML()},prev:function(){var e=m.index-1;if(!m.st.gallery.loop&&e<0)return!1;m.direction=!1,m.index=M(e),m.updateItemHTML()},goTo:function(e){m.direction=e>=m.index,m.index=e,m.updateItemHTML()},preloadNearbyImages:function(){for(var e=m.st.gallery.preload,t=Math.min(e[0],m.items.length),n=Math.min(e[1],m.items.length),o=1;o<=(m.direction?n:t);o++)m._preloadItem(m.index+o);for(o=1;o<=(m.direction?t:n);o++)m._preloadItem(m.index-o)},_preloadItem:function(e){var t;e=M(e),m.items[e].preloaded||((t=m.items[e]).parsed||(t=m.parseEl(e)),u("LazyLoad",t),"image"===t.type&&(t.img=c('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,u("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0)},updateGalleryButtons:function(){m.st.gallery.loop||"object"!=typeof m.arrowPrev||null===m.arrowPrev||(0===m.index?m.arrowPrev.hide():m.arrowPrev.show(),m.index===m.items.length-1?m.arrowNext.hide():m.arrowNext.show())}}}),"retina");c.magnificPopup.registerModule(H,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){var n,o;1<window.devicePixelRatio&&(n=m.st.retina,o=n.ratio,1<(o=isNaN(o)?o():o))&&(d("ImageHasSize."+H,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/o,width:"100%"})}),d("ElementParse."+H,function(e,t){t.src=n.replaceSrc(t,o)}))}}}),r()});
712switch($("html").attr("lang")){case "de":case "de_DE":$.extend(!0,$.magnificPopup.defaults,{tClose:'Schließen (Esc)',tLoading:'Lädt...',gallery:{tPrev:'Zurück (Linke Pfeiltaste)',tNext:'Weiter (Rechte Pfeiltaste)',tCounter:'%curr% / %total%'},image:{tError:'Fehler beim Laden des <a href="%url%">Bildes</a>.'},ajax:{tError:'Fehler beim Laden des <a href="%url%">Inhalts</a>.'}});break;default:$.extend(!0,$.magnificPopup.defaults,{tClose:'Close (Esc)',tLoading:'Loading...',gallery:{tPrev:'Previous (Left arrow key)',tNext:'Next (Right arrow key)',tCounter:'%curr% / %total%'},image:{tError:'<a href="%url%">The image</a> could not be loaded.'},ajax:{tError:'<a href="%url%">The content</a> could not be loaded.'}});break}(function($){$.fn.initToggleHeight=function(){let $el=$(this);let $elParent=$el.closest($el.data('toggle-el'));if($elParent.length){let $elLink=$elParent.find('.ce-image__link').first();$toggleEl=($elLink.length)?$elLink:$elParent;$toggleEl.on('mouseenter focus',function(){if(!$el.is(':visible')){$el.slideDown(200);$elParent.addClass('height-toggled')}}).on('mouseleave blur',function(){if($el.is(':visible')){$el.slideUp(200);$elParent.removeClass('height-toggled')}})}
713return this}})(jQuery);document.addEventListener('DOMContentLoaded',function(){$('.toggle-height').each(function(){$(this).initToggleHeight()})});document.addEventListener('DOMContentLoaded',function(){let lazyVideos=[].slice.call(document.querySelectorAll('video.lazy'));if('IntersectionObserver' in window){let lazyVideoObserver=new IntersectionObserver(function(entries,observer){entries.forEach(function(video){if(video.isIntersecting){if(video.target.children.length){for(let source in video.target.children){let videoSource=video.target.children[source];if(typeof videoSource.tagName==='string'&&videoSource.tagName==='SOURCE'){videoSource.src=videoSource.dataset.src}}}else{video.target.src=video.target.dataset.src}
714video.target.load();video.target.classList.remove('lazy');lazyVideoObserver.unobserve(video.target)}})});lazyVideos.forEach(function(lazyVideo){lazyVideoObserver.observe(lazyVideo)})}});(function($){var VideoItem=window.VideoItem=window.VideoItem||{};VideoItem.Data={index:0,identifierName:'VideoItem',debug:!1,debugIndex:!1,breakpoints:{tablet:768,desktop:1024}};VideoItem.Controller=function(element,options){let _this=this,$video=_this.$video=$(element);_this.data=VideoItem.Data;_this.options=options=_this._evaluateOptions(options);_this.index=_this.data.index;VideoItem.Data.index++;_this.debug=options.debug;_this.breakpoints=_this.data.breakpoints;_this.viewports={desktop:{src:$video.data('src-desktop'),poster:$video.data('poster-desktop')},tablet:{src:$video.data('src-tablet'),poster:$video.data('poster-tablet')},mobile:{src:$video.data('src-mobile-large'),poster:$video.data('poster-mobile-large')}}
715_this.isInline=$video.closest('.ce-video--inline').length;_this.$videoWrap=$video.closest('.ce-video__embed');_this.video=$video.get(0);_this.hasAutoplay=($video.data('autoplay')||$video.prop('autoplay'))&&$video.prop('muted');_this.hasControls=!1;_this.isLazyLoaded=$video.hasClass('lazy');_this._log(_this.data.identifierName+' Controller');_this._initVideo()};VideoItem.Controller.prototype={_initVideo:function(){let _this=this,$video=this.$video,video=this.video;if(_this.isInline){$video.on('click',function(e){if($(e.target).is($(this))&&!_this.paused()&&_this.hasControls){_this.pause();_this._log('pause on video click',$video)}})}
716if(_this.hasAutoplay){_this.initAutoplay()}
717_this.initViewportSources();$(window).on('resize',function(){_this.initViewportSources()});$video.data('initialized',!0);_this._log('initialized')},initAutoplay:function(){let _this=this,$video=this.$video;$video.on('onload',function(){_this.play();_this._log('autoplay started')})},initViewportSources:function(){let _this=this,$video=this.$video,video=this.video;let vpSize=$(window).outerWidth();if(vpSize<=_this.breakpoints.tablet){if(_this.viewports.mobile.src){_this.setActiveViewport(_this.viewports.mobile)}else if(_this.viewports.tablet.src){_this.setActiveViewport(_this.viewports.tablet)}else if(_this.viewports.desktop.src){_this.setActiveViewport(_this.viewports.desktop)}}else if(vpSize>=_this.breakpoints.tablet&&vpSize<_this.breakpoints.desktop){if(_this.viewports.tablet.src){_this.setActiveViewport(_this.viewports.tablet)}else if(_this.viewports.desktop.src){_this.setActiveViewport(_this.viewports.desktop)}}else if(vpSize>=_this.breakpoints.desktop){if(_this.viewports.desktop.src)_this.setActiveViewport(_this.viewports.desktop);}},setActiveViewport:function(vpSettings){let _this=this,$video=this.$video,video=this.video;
717if(vpSettings.poster&&vpSettings.poster!=$video.attr('poster')){_this._log('set poster',vpSettings.poster);$video.attr('poster',vpSettings.poster)}
718if(vpSettings.src&&vpSettings.src!=$video.attr('src')){_this._log('set src',vpSettings.src);_this.pause();if(_this.isLazyLoaded&&!$video.attr('src')){$video.attr('data-src',vpSettings.src)}else{$video.attr('src',vpSettings.src);_this.load()}}},disableAutoplayOnLoad:function(){let _this=this,$video=this.$video,video=this.video;_this.hasAutoplay=!1;$video.off('onload')},paused:function(){let _this=this,$video=this.$video,video=this.video;return video.paused},pause:function(){let _this=this,$video=this.$video,video=this.video;if(!_this.paused()){video.pause();$video.triggerHandler('onpause')}},play:function(){let _this=this,$video=this.$video,video=this.video;if(_this.paused){video.play();$video.triggerHandler('onplay')}},reset:function(){let _this=this,$video=this.$video,video=this.video;if(!_this.paused()){_this.pause()}
719_this.load()},load:function(){let _this=this,$video=this.$video,video=this.video;video.load();$video.triggerHandler('onload')},_evaluateOptions:function(options){let _this=this,data=_this.data,$el=_this.$video;options={...{debug:$el.data('debug')||data.debug,debugIndex:$el.data('debug-index')||data.debugIndex},...options};return options},_log:function(title,values){let _this=this,$el=_this.$video,options=_this.options;if(_this.debug&&!$.isNumeric(_this.data.debugIndex)||_this.debug&&_this.data.debugIndex==_this.index){if(values){console.log({title:'Log ('+_this.data.identifierName+' '+_this.index+'): '+title,_this:_this,values:values})}else{console.log({title:'Log ('+_this.data.identifierName+' '+_this.index+'): '+title,_this:_this})}}},};var VideoControls=window.VideoControls=window.VideoControls||{};VideoControls.Data={index:0,identifierName:'VideoControls',debug:!1,debugIndex:!1,classNames:{action:{hide:'action--hide',active:'action--active'},video:{playActive:'is-playing'}},animSpeed:200};VideoControls.Controller=function(element,options){let _this=this,$element=_this.$element=$(element);_this.data=VideoControls.Data;_this.options=options=_this._evaluateOptions(options);_this.index=_this.data.index;VideoControls.Data.index++;_this.debug=options.debug;_this.classNames=_this.data.classNames;_this.$actions=$element.find('.controls__action');$target=$($element.data('target'));if($target.length){_this.controlsType='external controls';_this.$bgContainer=$target.find('.contwrap__bg-video').first();_this.$container=(_this.$bgContainer.length)?this.$bgContainer:$target;_this.$videoWrap=_this.$container.find('.ce-video__embed')}else{_this.controlsType='inline controls';_this.$container=$element.closest('.contwrap');_this.$videoWrap=$element.closest('.ce-video__embed')}
720_this.$video=_this.$videoWrap.find('.ce-video__item');_this.animSpeed=_this.data.animSpeed;_this.video=_this.$video.data(VideoItem.Data.identifierName+'Controller');if(_this.video){_this._initControls()}else{_this.$video.on(VideoItem.Data.identifierName+'-rdy',function(){_this.video=_this.$video.data(VideoItem.Data.identifierName+'Controller');_this._initControls()})}
721_this._log(_this.data.identifierName+' Controller');_this._initControlsOnResize();$(window).on('resize',function(){_this._initControlsOnResize()})};VideoControls.Controller.prototype={_initControls:function(){let _this=this,$element=this.$element;$actions=this.$actions,$video=this.$video,video=this.video;if(video){video.hasControls=!0;$element.css({'min-height':$element.outerHeight()});$actions.each(function(){_this.initAction($(this))})}
722$element.data('initialized',!0);_this._log('initialized')},_initControlsOnResize:function(){let _this=this,$element=this.$element;$container=this.$container;if($container.length){if($container.css('display')=='none'){$element.hide()}else{$element.show()}}},initAction:function($action){let _this=this,$video=this.$video,video=this.video;let actionType=$action.data('action');let $inner=$action.find('.action__inner');_this._log('init action',{action:$action,actionType:actionType,$video:$video,video:video}
722);switch(actionType){case 'play-hide':$video.on('onplay',function(){$video.parent().addClass(_this.classNames.video.playActive);$action.addClass(_this.classNames.action.hide)});$video.on('onpause',function(){$video.parent().removeClass(_this.classNames.video.playActive);$action.removeClass(_this.classNames.action.hide)});case 'play-toggle':$video.on('onplay',function(){$video.parent().addClass(_this.classNames.video.playActive);$action.addClass(_this.classNames.action.active);$inner.removeClass($action.data('icon-play')).addClass($action.data('icon-pause'))});$video.on('onpause',function(){$video.parent().removeClass(_this.classNames.video.playActive);$action.removeClass(_this.classNames.action.active);$inner.removeClass($action.data('icon-pause')).addClass($action.data('icon-play'))});break}
723$action.on('click',function(){_this.doAction($action)}).enterKey(function(){_this.doAction($action)}).attr('tabindex',0)},doAction:function($action){let _this=this,$video=this.$video,video=this.video;let actionType=$action.data('action');let $inner=$action.find('.action__inner');_this._log('do action',{action:$action,actionType:actionType,$video:$video,video:video}
723);switch(actionType){case 'play-hide':if(video.paused()){video.play()}
724break;case 'play-toggle':if(video.paused()){video.play()}else{video.pause()}
725break}},getVideoController:function(){let _this=this;return _this.video},_evaluateOptions:function(options){let _this=this,data=_this.data,$el=_this.$element;options={...{debug:$el.data('debug')||data.debug,debugIndex:$el.data('debug-index')||data.debugIndex},...options};return options},_log:function(title,values){let _this=this,$el=_this.$element,options=_this.options;if(_this.debug&&!$.isNumeric(_this.data.debugIndex)||_this.debug&&_this.data.debugIndex==_this.index){if(values){console.log({title:'Log ('+_this.data.identifierName+' '+_this.index+'): '+title,_this:_this,values:values})}else{console.log({title:'Log ('+_this.data.identifierName+' '+_this.index+'): '+title,_this:_this})}}},};$.fn.videoItem=function(options){let $element=$(this);if($element.length>1){$element.each(function(){init($(this))})}else{init($element)}
726function init($el){if($el.length&&!$el.data(VideoItem.Data.identifierName+'Controller')){$el.data(VideoItem.Data.identifierName+'Controller',new VideoItem.Controller($el,options)).triggerHandler(VideoItem.Data.identifierName+'-rdy')}}};$.fn.videoControls=function(options){let $element=$(this);if($element.length>1){$element.each(function(){init($(this))})}else{init($element)}
727function init($el){if($el.length&&!$el.data(VideoControls.Data.identifierName+'Controller')){$el.data(VideoControls.Data.identifierName+'Controller',new VideoControls.Controller($el,options)).triggerHandler(VideoControls.Data.identifierName+'-rdy')}}}}(jQuery));document.addEventListener('DOMContentLoaded',function(){$('.ce-video__item').videoItem();$('.ce-video__controls').videoControls()});class EqualHeight extends Component{constructor($el,componentName,index,paramOptions){super($el,componentName,index,paramOptions,{mode:null,outer:null,minWidth:ensureNumber($el.dataset.minWidth)||0,addHeight:ensureNumber($el.dataset.addHeight)||0,respectMinHeight:ensureBool($el.dataset.respectMinHeight,!0),respectMinHeightMinWidth:ensureNumber($el.dataset.respectMinHeightMinWidth)||9999,setMinHeight:ensureBool($el.dataset.setMinHeight)||!1,bottomButton:ensureBool($el.dataset.bottomButton)||!1,initBreakpoint:paramOptions.minWidth?'>'+paramOptions.minWidth:0});const _this=this;if(_this.options.mode==='group'){_this.$elements=document.querySelectorAll('.equalheight[data-eqh-group="'+_this.options.group+'"]');if(_this.$elements.length<=1){_this._log('no initialization due to single group element');return}}
728if(_this.options.minWidth>0){_this._initWithBreakpoint()}else{_this._init()}}
729init(){const _this=this;const $el=_this.$el;const options=_this.options;_this.lastCalculatedHeight=0;switch(options.mode){case 'group':_this._initGroupMode();break;case 'by-el':_this._initByElMode();break}}
730reset(){const _this=this;if(_this._byElResizeObserver){_this._byElResizeObserver.disconnect();_this._byElResizeObserver=null}
731if(_this._outerHandler){const $child=_this.$el.querySelector('.equalheight');if($child)$child.removeEventListener('eqh-set',_this._outerHandler);_this._outerHandler=null}
732if(_this._fontsizeHandler){document.querySelector('html').removeEventListener('ariafontsize',_this._fontsizeHandler);_this._fontsizeHandler=null}
733if(_this.options.mode==='group'&&_this.$elements){_this.$elements.forEach(($element)=>{$element.style.removeProperty('height');$element.style.removeProperty('min-height');$element.classList.remove('eqh-set','eqh-bb')})}else{_this.$el.style.removeProperty('height');_this.$el.style.removeProperty('min-height');_this.$el.classList.remove('eqh-set','eqh-bb')}
734_this.lastCalculatedHeight=0;_this.$el.dispatchEvent(new Event('eqh-set'))}
735windowResize(){const _this=this;if(_this.options.mode==='group'){_this._calcGroupHeights('window resize')}}
736_initGroupMode(){const _this=this;const options=_this.options;_this.$elements.forEach(($groupElement)=>{if(isHidden($groupElement)){onVisibilityChange($groupElement,(isVisible)=>{if(isVisible)_this._calcGroupHeights('visibility change');})}});const $images=document.querySelectorAll(".equalheight[data-eqh-group='"+options.group+"'] img[loading='lazy']");if($images.length){_this._observeImages($images)}
737if(options.outer){_this._outerHandler=()=>_this._calcGroupHeights('child recalculated');const $child=_this.$el.querySelector('.equalheight');
737if($child)$child.addEventListener('eqh-set',_this._outerHandler);}
738_this._fontsizeHandler=()=>_this._calcGroupHeights('aria fontsize changed');document.querySelector('html').addEventListener('ariafontsize',_this._fontsizeHandler);_this._calcGroupHeights('init')}
739_calcGroupHeights(trigger){const _this=this;const $elements=_this.$elements;const mainOptions=_this.options;let highestHeight=0;let calculations=[];let elementsToSet=[];$elements.forEach(($element)=>{const options=_this._parseElementOptions($element);if(!options.respectMinHeight){$element.style.minHeight='auto'}
740elementsToSet.push({$element,options});$element.style.height='auto';let addHeight=options.addHeight;if(options.bottomButton){const $bb=$element.querySelector('.bottom-button');if($bb){const style=window.getComputedStyle($bb);addHeight+=parseFloat(style.marginTop)+parseFloat(style.marginBottom)}}
741const elementHeight=getOuterHeight($element)+addHeight;if(elementHeight>highestHeight)highestHeight=elementHeight;calculations.push({$el:$element,height:elementHeight,addHeight})});const isNewHeight=_this.lastCalculatedHeight!==highestHeight;_this._triggerLog(trigger,'heights calculated',{calculations,highestHeight,isNewHeight});if(elementsToSet.length){if(isNewHeight){_this.lastCalculatedHeight=highestHeight;_this._applyHeights(elementsToSet,highestHeight);_this.$el.dispatchEvent(new Event('eqh-set'))}else{elementsToSet.forEach(({$element,options})=>{_this._setHeight($element,_this.lastCalculatedHeight,options)})}}}
742_initByElMode(){const _this=this;const $el=_this.$el;const options=_this.options;const $heightEl=document.querySelector($el.dataset.eqhByEl);if(!$heightEl)return;_this._$heightEl=$heightEl;_this._calcByElHeight('init');_this._byElResizeObserver=new ResizeObserver(()=>{_this._calcByElHeight('element resize')});_this._byElResizeObserver.observe($heightEl)}
743_calcByElHeight(trigger){const _this=this;const height=getOuterHeight(_this._$heightEl);const isNewHeight=_this.lastCalculatedHeight!==height;_this._triggerLog(trigger,'height calculated',{height,isNewHeight});if(isNewHeight){_this.lastCalculatedHeight=height;_this._setHeight(_this.$el,height,_this.options);_this.$el.classList.add('eqh-set');_this.$el.dispatchEvent(new Event('eqh-set'))}}
744_setHeight($element,height,options){if(options.setMinHeight){$element.style.minHeight=height+'px'}else{$element.style.height=height+'px'}}
745_applyHeights(elementsArray,height){const _this=this;elementsArray.forEach(({$element,options})=>{_this._setHeight($element,height,options);if(options.bottomButton)$element.classList.add('eqh-bb');$element.classList.add('eqh-set')});_this._triggerLog(null,'set heights')}
746_observeImages($images){const _this=this;let imagesLoaded=0;const observer=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.isIntersecting){imagesLoaded++;observer.unobserve(entry.target);_this._calcGroupHeights('image loaded')}})});$images.forEach(($image)=>observer.observe($image))}
747_parseElementOptions($element){const mainOptions=this.options;const elementOptions=$element.dataset.eqhOptions?JSON.parse($element.dataset.eqhOptions):{};return{...mainOptions,...elementOptions}}
748_log(title,values,trueState){const _this=this;const mainOptions=_this.options;title='['+mainOptions.mode+'] '+title;if(!mainOptions.debugGroup||(mainOptions.debugGroup&&mainOptions.debugGroup===_this.options.group)){super._log(title,values,trueState)}}
749_triggerLog(trigger,title,values,trueState){const _this=this;const mainOptions=_this.options;const mode=mainOptions.group?mainOptions.mode+' '+mainOptions.group:mainOptions.mode;const prefix='['+mode+(trigger?' "'+trigger+'"':'')+']';title=title?prefix+' '+title:prefix;if(!mainOptions.debugGroup||(mainOptions.debugGroup&&mainOptions.debugGroup===_this.options.group)){super._log(title,values,trueState)}}}
750window.EqualHeight=EqualHeight;function prepareEqualHeight($elements){if(!$elements||!$elements.length)return;const groups=[];$elements.forEach(($el)=>{if($el.dataset.eqhByEl){buildInitSequence($el,{mode:'by-el'})}else{const group=$el.dataset.eqhGroup;if(group&&groups.indexOf(group)===-1){groups.push(group);const options={mode:'group',group};const $slider=$el.parentElement.closest('.tns-init, .tns-init-custom');if($slider){const slider=$slider.Slider;if(slider&&(slider._isActive()||slider.initialInitDisabledByBreakpoint)){options.slider=slider;buildInitSequence($el,options)}else{$slider.addEventListener('tns-initialized',function(){if(this.Slider){options.slider=this.Slider;buildInitSequence($el,options)}else{this.addEventListener('Slider-rdy',function(){options.slider=this.Slider;buildInitSequence($el,options)})}})}}else{buildInitSequence($el,options)}}}});function buildInitSequence($el,options={}){if($el&&!$el.dataset.initialized){let waitForChilds=!1;const $childEqhElements=(!options.outer)?$el.querySelectorAll('.equalheight'):[];let eqhOptions=$el.dataset.eqhOptions?JSON.parse($el.dataset.eqhOptions):{};eqhOptions={...eqhOptions,...options};if($childEqhElements.length){waitForChilds=!0;$childEqhElements[0].addEventListener('EqualHeight-rdy',function(){buildInitSequence($el,{...options,outer:!0})})}
751if(options.slider&&!$el.parentElement.closest('.equalheight')){$el.addEventListener('EqualHeight-rdy',function(){setTimeout(function(){options.slider.updateSliderHeight('post equal height calc')},150)})}
752if(!waitForChilds){ComponentRegistry.initComponent($el,'EqualHeight',eqhOptions)}}}}
753document.addEventListener('DOMContentLoaded',function(){prepareEqualHeight(document.querySelectorAll('.equalheight'))});(function($){$.Velocity.defaults.duration=400;var AnimationControl=window.AnimationControl=window.AnimationControl||{};AnimationControl.Data={index:0,identifierName:'AnimationControl',debug:!1,animationOptions:{slideIn:{offset:'40px'}}};AnimationControl.Controller=function(elements,options){let _this=this,$elements=_this.$elements=$(elements);_this.data=AnimationControl.Data;_this.options=options=_this._evaluateOptions(options);_this.index=_this.data.index;AnimationControl.Data.index++;_this.debug=options.debug;_this.data=AnimationControl.Data;_this.animationOptions=_this.data.animationOptions;_this.animationElements=[];_this._init()};AnimationControl.Controller.prototype={_init:function(){let _this=this,$elements=_this.$elements;$elements.each(function(){let $this=$(this);let id=$this.prop('id');let animation=$this.data('animate');let animationMode=$this.data('animate-mode');let $target=$($this.data('animate-target'));$target=($target.length)?$target:$this.find('> .animate-target');if($target.length){$target.addClass('animate-target--'+animation);let animationType=null;let sceneOptions={};let animate={};let properties={};let options={};switch(animation){case 'opacity':animationType='velocity';animate.velocity={};properties={opacity:[1,0]};animate.velocity.sceneObj={$target,properties,options};animate.velocity.properties=properties;animate.velocity.options=options;break
754case 'slide-in':animationType='velocity';animate.velocity={};properties={opacity:[1,0]};switch(animationMode){case 'from-bottom':properties.translateY=[0,_this.animationOptions.slideIn.offset];break;case 'from-left':properties.translateX=[0,'-'+_this.animationOptions.slideIn.offset];break;case 'from-right':properties.translateX=[0,_this.animationOptions.slideIn.offset];break}
755animate.velocity.sceneObj={$target,properties,options};animate.velocity.properties=properties;animate.velocity.options=options;break;case 'offset-on-scroll':animationType='tween';animate.tween={};if(_this.options.scrollControl){let targetHeight=$target.height();sceneOptions={triggerHook:0.2,duration:targetHeight,reverse:!0,offset:targetHeight/4};animate.tween.sceneObj=gsap.to($target,1,{transform:'translateY(-'+targetHeight/2+'px)'})}else{_this._log('initialization error: scrollControl for '+animationType+' required!')}
756break;case 'background':animationType='animate';let color=$this.data('animate-color');let leave=($this.data('animate-leave')==0)?!1:!0;let outerHeight=$this.outerHeight(!0);let height=$this.height();let offset=0;let duration=outerHeight;if(outerHeight>height){let marginTop=parseFloat($this.css('margin-top'),10);let marginBottom=parseFloat($this.css('margin-top'),10);if(marginTop>0){offset=-marginTop}
757if(marginBottom>0){duration=duration-marginBottom}}
758sceneOptions={triggerHook:0.5,offset:offset,duration:duration,reverse:!0};if(color){let c={$target:$target,color:color};animate.callbacks={start:$.proxy(function(){_this._log('start',c);c.$target.addClass('background-set').css({backgroundColor:c.color})}
758,c)}
759if(leave){animate.callbacks.leave=$.proxy(function(){_this._log('leave',c);c.$target.removeClass('background-set').css({backgroundColor:''})},c)}}
760break}
761_this.animationElements.push({$container:$this,$target:$target,animation:animation,animationMode:animationMode,animationType:animationType,sceneOptions:sceneOptions,animate:animate});if(!_this.options.scrollControl){_this._log('initialized: '+animationType)}}else{_this._log('initialization error: no target for '+animation+' found')}})},getElements:function(){let _this=this,$elements=_this.$elements;return _this.animationElements},start:function(options){let _this=this,$elements=_this.$elements;options=_this._evaluateOptions(options,{delay:0,delayBetween:0});_this._log('start elements',{elements:$elements,animationElements:_this.animationElements});setTimeout(function(){_this.animationElements.forEach(function(el,i){let delay=0;if(options.delayBetween>0&&i>0){delay=options.delayBetween*(i+1)}
762switch(el.animationType){case 'velocity':el.animate.velocity.options.delay=delay;el.$target.velocity({properties:el.animate.velocity.properties,options:el.animate.velocity.options});break;case 'tween':break;case 'animate':break}
763if(el.animate.callbacks){if(sceneElement.animate.callbacks.start!==null&&typeof el.animate.callbacks.start==='function'){scene.on('enter',function(event){sceneElement.animate.callbacks.start()})}}})},options.delay)},reverse:function(options){let _this=this,$elements=_this.$elements;options=_this._evaluateOptions(options,{delay:0,delayBetween:0});_this._log('reverse elements',{elements:$elements,animationElements:_this.animationElements});setTimeout(function(){_this.animationElements.forEach(function(el,i){let delay=0;if(options.delayBetween>=0&&i>0){delay=options.delayBetween*(i+1)}
764switch(el.animationType){case 'velocity':el.animate.velocity.options.delay=delay;el.$target.velocity('reverse',el.animate.velocity.options);break;case 'tween':break;case 'animate':break}
765if(el.animate.callbacks){if(el.animate.callbacks.leave!==null&&typeof el.animate.callbacks.leave==='function'){scene.on('leave',function(event){el.animate.callbacks.leave()})}}})},options.delay)},_evaluateOptions:function(options){let _this=this,data=_this.data,$elements=_this.$elements;options={...{debug:$elements.data('animate-debug')||data.debug,debugIndex:data.debugIndex},...options};return options},_log:function(title,values){let _this=this,$el=_this.$el,options=_this.options;if(_this.debug&&!$.isNumeric(_this.options.debugIndex)||_this.debug&&_this.options.debugIndex==_this.index){if(values){console.log({title:'Log ('+_this.data.identifierName+' '+_this.index+'): '+title,_this:_this,values:values})}else{console.log({title:'Log ('+_this.data.identifierName+' '+_this.index+'): '+title,_this:_this})}}},};var ScrollControl=window.ScrollControl=window.ScrollControl||{};
765ScrollControl.Data={identifierName:'ScrollControl',debug:!1,scrollMagic:{container:window,loglevel:2,indicators:!0,scene:{triggerHook:0.85,reverse:!1,offset:0}}};ScrollControl.Controller=function(elements,options){let _this=this,$elements=_this.$elements=$(elements);_this.data=ScrollControl.Data;_this.options=options=_this._evaluateOptions(options);_this.index=_this.data.index;ScrollControl.Data.index++;_this.debug=options.debug;_this.windowWidth=window.innerWidth;_this.scrollMagic=_this.data.scrollMagic;_this.velocity=_this.data.velocity;_this.container=(_this.options.container)?_this.options.container:_this.scrollMagic.container;_this.minSize=($.isNumeric(_this.options.minSize))?_this.options.minSize:0;_this.maxSize=($.isNumeric(_this.options.maxSize))?_this.options.maxSize:9999;_this.indicators=_this.options.indicators||_this.scrollMagic.indicators;_this._initController();_this._initScenes();if(_this.minSize||_this.maxSize){_this._checkSize();$(window).on('resize',function(){_this._checkSize()})}};ScrollControl.Controller.prototype={_checkSize:function(){let _this=this,$elements=_this.$elements;_this.windowWidth=window.innerWidth;if(_this.windowWidth>_this.maxSize||_this.windowWidth<_this.minSize&&_this.smController.enabled()){_this._log('disable smController');_this.smController.enabled(!1)}else if(!_this.smController.enabled()){_this._log('enable smController');_this.smController.enabled(!0).update()}},_initController:function(){let _this=this,$elements=_this.$elements;_this.smController=new ScrollMagic.Controller({globalSceneOptions:{},container:_this.container,loglevel:_this.scrollMagic.loglevel});_this._log('initialized')},_initScenes:function(){let _this=this,$elements=_this.$elements;$elements.each(function(){let $this=$(this);let debug=$this.data('animate-debug')||_this.debug;let animationControl=new AnimationControl.Controller($this,{debug:debug,scrollControl:!0});let sceneElement=animationControl.getElements()[0];if(sceneElement){let animationType=sceneElement.animationType;if(animationType){let scene=new $.ScrollMagic.Scene({...{triggerElement:$this,triggerHook:_this.scrollMagic.scene.triggerHook,reverse:_this.scrollMagic.scene.reverse,offset:_this.scrollMagic.scene.offset},...sceneElement.sceneOptions});if(sceneElement.$target.length){switch(animationType){case 'velocity':if(sceneElement.animate.velocity.sceneObj){[elems,properties,options]=Object.values(sceneElement.animate.velocity.sceneObj);scene.setVelocity(elems,properties,options)}else{animationControl._log('initialization error: no '+animationType+' set')}
766break;case 'tween':if(sceneElement.animate.tween.sceneObj){scene.setTween(sceneElement.animate.tween.sceneObj)}else{animationControl._log('initialization error: no '+animationType+' object set')}
767break;case 'animate':break}
768if(sceneElement.animate.callbacks){if(sceneElement.animate.callbacks.start!==null&&typeof sceneElement.animate.callbacks.start==='function'){scene.on('enter',function(event){sceneElement.animate.callbacks.start()})}
769if(sceneElement.animate.callbacks.leave!==null&&typeof sceneElement.animate.callbacks.leave==='function'){scene.on('leave',function(event){sceneElement.animate.callbacks.leave()})}}
770if(debug&&_this.indicators){scene.addIndicators({name:animationControl.index+': '+sceneElement.animation+' - '+animationType})}
771scene.addTo(_this.smController);animationControl._log('initialized: '+sceneElement.animation+' - '+animationType,{scene:scene})}else{}}else{animationControl._log('initialization error: no animationType set')}}else{animationControl._log('initialization error: no sceneElement found')}});_this._log('scenes initialized')},_evaluateOptions:function(options){let _this=this,data=_this.data,$elements=_this.$elements;options={...{debug:data.debug,debugIndex:data.debugIndex,container:null,minSize:null,maxSize:null,indicators:null},...options};return options},_log:function(title,values){let _this=this,$el=_this.$el,options=_this.options;if(_this.debug&&!$.isNumeric(_this.options.debugIndex)||_this.debug&&_this.options.debugIndex==_this.index){if(values){console.log({title:'Log ('+_this.data.identifierName+' '+_this.index+'): '+title,_this:_this,values:values})}else{console.log({title:'Log ('+_this.data.identifierName+' '+_this.index+'): '+title,_this:_this})}}},};$.fn.scrollControl=function(options){let $elements=$(this);if($elements.length&&!$elements.data(ScrollControl.Data.identifierName+'Controller')){$elements.data(ScrollControl.Data.identifierName+'Controller',new ScrollC
771ontrol.Controller($elements,options))}}}(jQuery));document.addEventListener('DOMContentLoaded',function(){$('.animate.animate--on-scroll').scrollControl()});document.addEventListener('DOMContentLoaded',function(){let $cookiebotSettings=document.querySelectorAll('.cookiebot-settings');if($cookiebotSettings.length){onClickAndEnter($cookiebotSettings,function(){Cookiebot.renew()})}
772function cookiebotRefresh($dialog){if($dialog){let $buttons=$dialog.getElementsByClassName('.CybotCookiebotDialogBodyButton');if($buttons.length){$buttons.forEach(($btn)=>{$btn.addEventListener('click',function(){setTimeout(function(){location.reload()},150)})})}}}
773let $cookiebotDialog=document.getElementById('CybotCookiebotDialog');cookiebotRefresh($cookiebotDialog);let cookiebotObserver=new MutationObserver(function(mutationsList,cookiebotObserver){$cookiebotDialog=document.getElementById('CybotCookiebotDialog');if($cookiebotDialog!==null){cookiebotRefresh($cookiebotDialog);let focusableResult=makeFocusable($cookiebotDialog);for(element of focusableResult){element.focus()}}});cookiebotObserver.observe(document.body,{childList:!0})});class ScrollContent extends Component{static getController(){if(!ScrollContent._controller){ScrollContent._controller=new ScrollMagic.Controller()}
774return ScrollContent._controller}
775constructor($el,componentName,index,paramOptions){super($el,componentName,index,paramOptions,{alignment:$el.dataset.alignment||'top',mode:$el.dataset.mode||'sticky',updateNavStates:ensureBool($el.dataset.updateNavStates),parentSelector:$el.dataset.parentSelector||!1,waitForTransitions:!0,attachSticky:ensureBool($el.dataset.attachSticky,!0),boundedMode:$el.dataset.boundedMode||'overlay',boundedModeChange:!1,boundedOverlay:$el.hasAttribute('data-bounded-overlay')?ensureBool($el.dataset.boundedOverlay):null,boundedCanStack:$el.hasAttribute('data-bounded-can-stack')?ensureBool($el.dataset.boundedCanStack):null,boundedOverlayCustom:$el.hasAttribute('data-bounded-overlay'),boundedCanStackCustom:$el.hasAttribute('data-bounded-can-stack')});const _this=this;_this._applyBoundedModePreset();_this._initWithBreakpoint()}
776init(){const _this=this,$el=_this.$el,options=_this.options;_this.$stickyH=document.querySelector('.header--sticky[data-sticky-initialized]');_this.buildScrollContainer();if(!_this.isReinit){if(options.updateNavStates){const $sectionNav=$el.querySelector('.navigation--section');if($sectionNav){_this.initNavCurrentStatesOnScroll({$nav:$sectionNav,scrollInlineList:!0})}}}}
777resize(){const _this=this,$el=_this.$el;if(_this.blockResize)return;_this.blockResize=!0;const schedule=()=>{const elMaxTimeout=getMaxTransitionTime($el.querySelectorAll('*'));setTimeout(()=>{if(_this.$boundingEl)_this._updateDurationByBounding(elMaxTimeout);_this._checkScrollOverflow();_this.blockResize=!1},elMaxTimeout+50)};schedule()}
778windowResize(){const _this=this;_this._syncTriggerHookFromAlignment();_this._checkScrollOverflow()}
779reset(){const _this=this,options=_this.options;if(_this.stickyScene)_this.stickyScene.destroy(!0);
779if(ScrollContent._instances){ScrollContent._instances=ScrollContent._instances.filter(i=>i!==_this)}
780stackAttachHooksDebounced();_this._unbindHeaderListenerForStack();_this._unbindBoundedObserver();_this.$el.classList.remove('scroll-active','hidden-scroller');_this._clearBodyBottomSpacing()}
781_onInitialBreakpointFail(){const _this=this;if(_this.options.boundedModeChange&&_this.options.mode==='bounded'){_this._onInitialBreakpointPass();return}
782super._onInitialBreakpointFail()}
783_onLeaveInitBreakpoint(){const _this=this;if(_this.options.mode==='bounded'&&_this.options.boundedModeChange){_this._switchToBoundedMode();_this._log('breakpoint leave → updated bounded flags for below range');return}
784super._onLeaveInitBreakpoint()}
785_onEnterInitBreakpoint(){const _this=this;if(_this.options.mode==='bounded'&&_this.options.boundedModeChange){_this._switchToBoundedMode();_this._log('breakpoint enter → updated bounded flags for init range');return}
786super._onEnterInitBreakpoint()}
787_applyBoundedModePreset(){const _this=this;const opts=_this.options;if(opts.mode!=='bounded')return;const bm=opts.boundedMode;if(bm!=='push'&&bm!=='overlay'&&bm!=='push_switch')return;const hasCustomOverlay=!!opts.boundedOverlayCustom;const hasOverriddenCanStack=!!opts.boundedCanStackCustom;const isBelow=!_this._isInitBreakpoint();if(bm==='push'){if(!hasCustomOverlay)opts.boundedOverlay=!1;if(!hasOverriddenCanStack)opts.boundedCanStack=!1;opts.boundedModeChange=!1}
788if(bm==='overlay'){if(!hasCustomOverlay)opts.boundedOverlay=!0;if(!hasOverriddenCanStack)opts.boundedCanStack=!0;opts.boundedModeChange=!1}
789if(bm==='push_switch'){if(!hasCustomOverlay)opts.boundedOverlay=isBelow?!0:!1;if(!hasOverriddenCanStack)opts.boundedCanStack=isBelow?!0:!1;opts.boundedModeChange=!0}}
790_setUtilityClasses(){const _this=this,$el=_this.$el,opts=_this.options;if(opts.mode==='bounded'){(opts.boundedOverlay)?$el.classList.add('scene-overlays'):$el.classList.remove('scene-overlays');(opts.boundedCanStack&&opts.attachSticky)?$el.classList.add('scene-stacks'):$el.classList.remove('scene-stacks')}else{$el.classList.add('scene-overlays');if(opts.attachSticky)$el.classList.add('scene-stacks');}}
791_getStickyHeaderHeight(){const _this=this;let h=_this.$stickyH&&_this.$stickyH.classList.contains('sticky-active')?getCssVarNumber('--sticky-header-h'):getCssVarNumber('--header-cont-h');if(!Number.isFinite(h)||h<0)h=0;if(h)return h;return _this.$stickyH?getOuterHeight(_this.$stickyH):0}
792_participatesInStack(){const _this=this,options=_this.options;const isTopAligned=options.alignment==='top';const isStickyMode=options.mode==='sticky';const isBoundedStackable=options.mode==='bounded'&&!!options.boundedCanStack;const stickyHeaderCond=(_this.$stickyH&&_this.$stickyH.classList.contains('sticky-active'))||!_this.$stickyH;return(stickyHeaderCond&&isTopAligned&&!!options.attachSticky&&(isStickyMode||isBoundedStackable))}
793_registerInstance(){const _this=this;if(!Array.isArray(ScrollContent._instances))ScrollContent._instances=[];if(!ScrollContent._instances.includes(_this)){ScrollContent._instances.push(_this);_this._log('registered in ScrollContent._instances')}}
794_computeTriggerHookForAlignment(alignment,attachSticky){const _this=this;const winH=Math.max(1,window.innerHeight);const elH=getOuterHeight(_this.$el);const headerH=attachSticky?_this._getStickyHeaderHeight():0;const availH=Math.max(0,winH-headerH);let hook=0;switch((alignment||'top')){case 'center':{if(elH<availH){const topWithinAvail=(availH-elH)/2;hook=(headerH+topWithinAvail)/winH}else{hook=headerH/winH}
795break}
796case 'bottom':{const bottomHook=(winH-elH)/winH;const minHook=headerH/winH;hook=attachSticky?Math.max(minHook,bottomHook):bottomHook;break}
797case 'top':default:{hook=attachSticky?(headerH/winH):0;break}}
798return Math.min(0.999,Math.max(0,hook))}
799_applySceneBasics(triggerHook,duration,offset=0){const _this=this;if(!_this.stickyScene)return;_this.stickyScene.triggerHook(triggerHook);_this.stickyScene.duration(duration);_this.stickyScene.offset(offset);_this.stickyScene.refresh();if(_this.smController)_this.smController.update(!0);}
800_getDesiredPinOptions(){const _this=this;const isSticky=_this.options.mode==='sticky';const isBoundedOverlay=_this.options.mode==='bounded'&&!!_this.options.boundedOverlay;const pushFollowers=(isSticky||isBoundedOverlay)?!1:(_this.stickyScene?.duration()>0);const spacerClass=(_this.options.alignment==='bottom')?'scrollmagic-pin-spacer-disable':'scrollmagic-pin-spacer';return{pushFollowers,spacerClass}}
801_applyPinOptionsIfNeeded(){const _this=this;if(!_this.stickyScene)return;const next=_this._getDesiredPinOptions();const prev=_this._pinOptions||{};if(prev.pushFollowers===next.pushFollowers&&prev.spacerClass===next.spacerClass){return}
802try{_this.stickyScene.removePin(!0)}catch(_){}
803_this.stickyScene.setPin(_this.$el,next);_this._pinOptions=next;_this.stickyScene.refresh();if(_this.smController)_this.smController.update(!0);_this._log('set scene pin',_this._pinOptions)}
804_bindHeaderListenerForStack(){const _this=this;if(!_this.$stickyH)return;if(_this._onStickyResize){_this.$stickyH.removeEventListener('StickyHeader:resize',_this._onStickyResize)}
805_this._onStickyResize=stackAttachHooksDebounced;_this.$stickyH.addEventListener('StickyHeader:resize',_this._onStickyResize)}
806_unbindHeaderListenerForStack(){const _this=this;if(_this.$stickyH&&_this._onStickyResize){_this.$stickyH.removeEventListener('StickyHeader:resize',_this._onStickyResize);_this._onStickyResize=null}}
807_bindBoundedObserver($boundingEl,parentTimeout){const _this=this;if(_this._parentRO){try{_this._parentRO.disconnect()}catch(_){}}
808const ro=new ResizeObserver(()=>{if(_this._blockParentRO)return;if(getOuterHeight($boundingEl)===0)return;_this._blockParentRO=!0;setTimeout(()=>{_this._updateDurationByBounding(parentTimeout);_this._blockParentRO=!1},parentTimeout+50)});ro.observe($boundingEl);_this._parentRO=ro}
809_unbindBoundedObserver(){const _this=this;if(_this._parentRO){try{_this._parentRO.disconnect()}catch(_){}
810_this._parentRO=null}}
811_syncTriggerHookFromAlignment(){const _this=this;if(!_this.stickyScene)return;const hook=_this._computeTriggerHookForAlignment(_this.options.alignment,!!_this.options.attachSticky);if(_this.stickyScene.triggerHook()!==hook){_this.stickyScene.triggerHook(hook);_this.stickyScene.refresh();if(_this.smController)_this.smController.update(!0);_this._checkScrollOverflow();_this._log('sync triggerHook from alignment',{hook})}}
812_bindHeaderHookSync(){const _this=this;if(!_this.$stickyH)return;_this._unbindHeaderListenerForStack();_this._onStickyResize=()=>_this._syncTriggerHookFromAlignment();_this.$stickyH.addEventListener('StickyHeader:resize',_this._onStickyResize)}
813_getSceneSnapshot(scene){if(!scene)return null;return{duration:scene.duration(),offset:scene.offset(),triggerHook:scene.triggerHook(),triggerElement:scene.triggerElement(),state:scene.state(),enabled:scene.enabled(),controller:!!scene.controller(),}}
814_findBoundingEl(){const _this=this;let $boundingEl;if(_this.options.parentSelector){$boundingEl=document.querySelector(_this.options.parentSelector);if($boundingEl.contains(_this.$el)){$boundingEl=null}}
815if(!$boundingEl)$boundingEl=getTopMostParent(_this.$el,'.row');return $boundingEl}
816_switchToStickyMode(){const _this=this;if(_this.options.mode==='bounded'){_this.options.mode='sticky'}
817_this._unbindBoundedObserver();_this.$el.classList.remove('hidden-scroller');let hook;const participates=_this._participatesInStack();if(participates){hook=_this.stickyScene?_this.stickyScene.triggerHook():0}else{hook=_this._computeTriggerHookForAlignment(_this.options.alignment,!!_this.options.attachSticky)}
818if(_this.$boundingEl){_this._updateDurationByBounding(0)}
819_this._applySceneBasics(hook,_this.stickyScene.duration(),0);_this._applyPinOptionsIfNeeded();_this._unbindHeaderListenerForStack();if(participates){_this._bindHeaderListenerForStack()}else{_this._bindHeaderHookSync()}
820stackAttachHooksDebounced();_this._checkScrollOverflow();_this._registerInstance();_this.sceneOptions=_this._getSceneSnapshot(_this.stickyScene);_this._setUtilityClasses();_this._log('setup sticky mode',{sceneOptions:_this.sceneOptions})}
821_switchToBoundedMode(){const _this=this;_this.options.mode='bounded';_this._applyBoundedModePreset();_this.$boundingEl=_this._findBoundingEl();if(!_this.$boundingEl){_this._log('switchToBoundedMode: no bounding element found for bounded mode');return}
822_this._updateDurationByBounding(0);const hook=_this._computeTriggerHookForAlignment(_this.options.alignment,!!_this.options.attachSticky);_this._applySceneBasics(hook,_this.stickyScene.duration(),0);_this._applyPinOptionsIfNeeded();const parentTimeout=getMaxTransitionTime(_this.$boundingEl.querySelectorAll('*'));_this._bindBoundedObserver(_this.$boundingEl,parentTimeout);const participates=_this._participatesInStack();_this._unbindHeaderListenerForStack();if(participates){_this._bindHeaderListenerForStack()}else{_this._bindHeaderHookSync()}
823_this._checkScrollOverflow();_this._registerInstance();_this.sceneOptions=_this._getSceneSnapshot(_this.stickyScene);_this._setUtilityClasses();_this._log('setup bounded mode',{sceneOptions:_this.sceneOptions,boundedOverlay:_this.options.boundedOverlay,boundedCanStack:_this.options.boundedCanStack})}
824_updateDurationByBounding(timeout){const _this=this,$el=_this.$el;let $boundingEl=_this.$boundingEl;if($boundingEl){let parentHeight=getOuterHeight($boundingEl);let elHeight=getOuterHeight($el);let newDuration=parentHeight-elHeight;let disableScrolling=(_this.options.mode==='bounded')?!(parentHeight-$el.scrollHeight>=300):!1;if(newDuration<=0||disableScrolling)newDuration=1;if(!_this.stickyScene)return;const prevDur=_this.stickyScene.duration();if(newDuration===prevDur)return;_this.stickyScene.duration(newDuration);_this._applyPinOptionsIfNeeded();_this._log('update scroll duration',{$boundingEl:$boundingEl,parentHeight:parentHeight,elHeight:elHeight,newDuration:newDuration,timeout:timeout})}}
825_checkScrollOverflow(){const _this=this,$el=_this.$el;if(!_this.stickyScene)return;let elHeightPx=$el.scrollHeight;if(_this.options.alignment==='bottom'&&_this.stickyScene.duration()===0&&_this.options.mode==='sticky'){const body=document.querySelector('body');if(parseFloat(body.style.marginBottom)!==elHeightPx){body.style.marginBottom=elHeightPx+'px';_this._setBodyBottomSpacing=!0;_this._log('set bottom body spacing',{$el:$el,spacing:elHeightPx})}}else{_this._clearBodyBottomSpacing()}
826if(_this.options.mode!=='bounded')return;let triggerHook=_this.stickyScene.triggerHook();let duration=_this.stickyScene.duration();let viewportH=window.innerHeight;let elHeightVh=Math.floor((elHeightPx/viewportH)*100);let maxHeightVh=Math.floor(100-(triggerHook*100));let maxHeightPx=Math.floor(viewportH*(maxHeightVh/100));let calc={triggerHook:triggerHook,duration:duration,$el:$el,elHeightPx:elHeightPx,elHeightVh:elHeightVh,maxHeightVh:maxHeightVh,viewportH:viewportH,maxHeightPx:maxHeightPx};if(elHeightPx>=maxHeightPx&&duration!==1){if(parseFloat($el.style.maxHeight)===maxHeightVh)return;$el.style.maxHeight=maxHeightVh+'vh';if(!$el.classList.contains('hidden-scroller'))$el.classList.add('hidden-scroller');_this._log('set overflow scrolling',calc)}else if($el.classList.contains('hidden-scroller')){$el.style.maxHeight='';$el.classList.remove('hidden-scroller');_this._log('remove overflow scrolling',calc)}}
827_clearBodyBottomSpacing(){const body=document.body;if(this._setBodyBottomSpacing){body.style.marginBottom='';this._setBodyBottomSpacing=!1}}
828_updateGotScrolledClass(){const _this=this;if(!_this.stickyScene||typeof _this.stickyScene.state!=='function')return;const state=_this.stickyScene.state();const got=(state==='DURING'||state==='AFTER');_this.$el.classList.toggle('got-scrolled',got)}
829buildScrollContainer(){const _this=this;let $el=_this.$el;let options=_this.options;if(_this.smController&&_this.smController!==ScrollContent.getController()){_this.smController.destroy(!0)}
830_this.smController=ScrollContent.getController();_this.stickyScene=new ScrollMagic.Scene({triggerElement:$el,duration:0,triggerHook:0,reverse:!0,offset:0}).on('enter',function(event){_this._log('enter scene',event);$el.classList.add('scroll-active');if(_this.options.boundedOverlay===!0){let $accordion=$el.closest('.accordion');
830if($accordion){let accordionCtrl=$accordion.Accordion;accordionCtrl.closeAll()}else{const $accordions=$el.querySelectorAll('.accordion');$accordions.forEach(($accordion)=>{let accordionCtrl=$accordion.Accordion;accordionCtrl.closeAll()})}}}).on('leave',function(event){_this._log('leave scene',event);$el.classList.remove('scroll-active')}).on('update',function(event){}).addTo(_this.smController);updateStateClass(_this.stickyScene,$el);if(_this._isDebug())_this.stickyScene.addIndicators({name:$el.id+' scroll content'});if(options.mode==='sticky'){_this._switchToStickyMode()}else{_this._switchToBoundedMode()}
831_this._registerInstance();stackAttachHooksDebounced();_this._log('scene initialized')}
832initNavCurrentStatesOnScroll(navInfo){const _this=this;let $nav=navInfo.$nav;if($nav){let $navLinks=$nav.querySelectorAll('.navigation__link');let i=0;$navLinks.forEach(($link)=>{let anchor=($link.href)?$link.href.split('#')[1]:null;if(anchor){let $target=document.querySelector('#'+anchor);if($target&&$target.dataset.origId){$target=document.querySelector('#'+$target.dataset.origId)}
833if($target){let scene=new ScrollMagic.Scene({triggerElement:$target,triggerHook:0,duration:getOuterHeight($target),reverse:!0}).setClassToggle($link.closest('.item'),'item--current');let breakpoint=ensureNumber($nav.dataset.breakpoint);if(navInfo.scrollInlineList&&breakpoint){scene.on('enter',function(event){if(matchMedia('(width <= '+breakpoint+'px)').matches){let $link=this;$link.closest('.navigation__list').scrollLeft=$link.closest('.navigation__item').offsetLeft;_this._log('section nav: scroll to link',{$link:$link})}}.bind($link));if(i===0){scene.on('leave',function(event){let $link=this;let $list=$link.closest('.navigation__list');if((matchMedia('(width <= '+breakpoint+'px)').matches)&&(event.state==='BEFORE')&&($list.scrollLeft>0)){$list.scrollLeft=0;_this._log('section nav: scroll to start',{$list:$list})}}.bind($link))}}
834scene.addTo(_this.smController);if(_this._isDebug())scene.addIndicators();}}
835i++});_this._log('init nav current states on scroll',{navInfo:navInfo})}}}
836window.ScrollContent=ScrollContent;document.addEventListener('DOMContentLoaded',function(){ComponentRegistry.initComponent('.scroll-content','ScrollContent')});let __attachRID=0;function stackAttachHooksDebounced(){cancelAnimationFrame(__attachRID);__attachRID=requestAnimationFrame(stackAttachHooks)}
837function stackAttachHooks(){const controller=ScrollContent.getController();const list=(ScrollContent._instances||[]).filter(inst=>{return inst.stickyScene&&inst._participatesInStack()});if(!list.length)return;list.sort((a,b)=>{const pos=a.$el.compareDocumentPosition(b.$el);if(pos&Node.DOCUMENT_POSITION_FOLLOWING)return-1;if(pos&Node.DOCUMENT_POSITION_PRECEDING)return 1;return 0});const headerH=(()=>{const first=list[0];const h=first?._getStickyHeaderHeight?.()||0;return h})();const winH=getInnerHeight(window);if(!winH)return;let cumulative=headerH;list.forEach(inst=>{const elH=getOuterHeight(inst.$el);const hook=Math.min(0.999,Math.max(0,cumulative/winH));if(inst.stickyScene.triggerHook()!==hook){inst.stickyScene.triggerHook(hook);inst._log&&inst._log('attach stack: set triggerHook',{hook,cumulative,elH})}
838cumulative+=elH});controller.update(!0)}
839document.addEventListener('StickyHeader:resize',stackAttachHooksDebounced);document.addEventListener('ScrollContent:resize',stackAttachHooksDebounced);window.addEventListener('load',stackAttachHooksDebounced);let __winRID;window.addEventListener('resize',()=>{clearTimeout(__winRID);__winRID=setTimeout(stackAttachHooks,80)});class Sidebar extends Component{constructor($el,componentName,index,paramOptions){super($el,componentName,index,paramOptions,{});this._init()}
840init(){let _this=this;let $el=_this.$el;let options=_this.options;let $elTrigger=$el.querySelectorAll('.quickbar__item--title');onClick($elTrigger,function(){$el.classList.toggle('active');$el.blur()});onOutsideClick($el,{callback:function(e){$el.classList.remove('active')}})}}
841window.Sidebar=Sidebar;document.addEventListener('DOMContentLoaded',function(){ComponentRegistry.initComponent('.quickbar','Sidebar')});document.addEventListener('DOMContentLoaded',function(){document.querySelectorAll('.navigation--section.section--limit-actives').forEach(($section)=>{$section.querySelectorAll('.section__page-item > .navigation__link').forEach(($link)=>{$link.addEventListener('click',function(){$section.querySelectorAll('.active').forEach(($activeEl)=>{$activeEl.classList.remove('active')});this.parentNode.classList.add('active')})})})});function tosc5CustomInit(){let dwApp=document.querySelector("dw-app-container");if(dwApp){let t=dwApp.shadowRoot.querySelector(".app_root");Cookies.get("ariacontrast")&&t.classList.add(Cookies.get("ariacontrast"))}}
842function tosc5FilterByParam(filterType,filterByParam){let queryString=window.location.search;
842let urlParams=new URLSearchParams(queryString);let entries=urlParams.entries();let filterObject={};if(Array.from(urlParams).length>0){let filter={};for(entry of entries){if(entry[0]&&entry[1]){filter[entry[0]]=entry[1].split(',').map(element=>element.trim())}}
843filterObject[filterType]=filter;return _.mergeWith({},filterObject,filterByParam,function(objValue,srcValue,key){if(['',null].includes(srcValue))return objValue})}else if(filterByParam){return filterByParam}else{return null}}
844document.addEventListener('DOMContentLoaded',function(){const classMap={'.scrollmagic-pin-spacer':['rs_skip','rs_preserve'],'.scroll-content':['rs_skip','rs_preserve'],'.contwrap--html':['rs_skip','rs_preserve'],'.accordion':['rs_preserve']};function applyClassMap(root=document){Object.entries(classMap).forEach(([selector,classes])=>{if(root.matches&&root.matches(selector)){classes.forEach(cls=>root.classList.add(cls))}
845root.querySelectorAll?.(selector)?.forEach(el=>{classes.forEach(cls=>el.classList.add(cls))})})}});(function($){var FieldCondition=window.FieldCondition=window.FieldCondition||{};FieldCondition.Data={index:0,identifierName:'FieldCondition'};FieldCondition.Controller=function(el,options){var _this=this,$el=this.$el=$(el);_this.options=options=_this._evaluateOptions(options,{debug:!1,changeEvent:'change',toggleDuration:0,$triggerEl:$el});_this.data=FieldCondition.Data;_this.index=_this.data.index;FieldCondition.Data.index++;_this.debug=options.debug;_this.name=$el.prop('name');_this.condition=$el.data('field-condition');_this.$conditionField=$('#'+$el.data('field-id'));_this.conditionValueAttr=$el.data('value-attr');_this.conditionValue=$el.data('field-has-value');_this.renameHidden=$el.data('field-rename-hidden');_this.disableHidden=$el.data('field-disable-hidden');_this._log(_this.data.identifierName+' Controller');if(!$el.data('initialized')){_this._init()}};FieldCondition.Controller.prototype={_init:function(){var _this=this,$el=this.$el,options=this.options,$triggerEl=this.options.$triggerEl,$conditionField=this.$conditionField;var conditionViable=!1;var changeEvent=options.changeEvent;if($conditionField.length){$triggerEl.addClass('field-condition-el field-condition-el--'+_this.condition);switch($conditionField.attr('type')){case 'text':changeEvent='keyup';break}
846switch(_this.condition){case 'hide':case 'show':if(_this.conditionValue!==undefined)conditionViable=!0;break;case 'copy':conditionViable=!0;break}
847if(conditionViable){switch(_this.condition){case 'hide':case 'show':var val=(_this.conditionValueAttr)?$conditionField.data(_this.conditionValueAttr):$conditionField.val();_this.triggerElement(val);$conditionField.on(changeEvent,function(){val=(_this.conditionValueAttr)?$(this).data(_this.conditionValueAttr):$(this).val();_this.triggerElement(val)});break;case 'copy':if($conditionField.is('select')){var val=(_this.conditionValueAttr)?$conditionField.find('option:selected').data(_this.conditionValueAttr):$conditionField.find('option:selected').text();_this.triggerElement(val)}else{var val=(_this.conditionValueAttr)?$conditionField.data(_this.conditionValueAttr):$conditionField.val();_this.triggerElement(val)}
848$conditionField.on(changeEvent,function(){if($(this).is('select')){val=(_this.conditionValueAttr)?$(this).find('option:selected').data(_this.conditionValueAttr):$(this).find('option:selected').text();_this.triggerElement(val)}else{val=(_this.conditionValueAttr)?$(this).data(_this.conditionValueAttr):$(this).val();_this.triggerElement(val)}});break}}}
849$el.data('initialized',!0);_this._log('initialized')},triggerElement:function(val){var _this=this,$el=this.$el,options=this.options,$triggerEl=this.options.$triggerEl;switch(_this.condition){case 'hide':case 'show':if((_this.condition=='hide'&&val==_this.conditionValue)||(_this.condition=='show'&&val!=_this.conditionValue)){switch($el.data('field-action')){case 'slide':$triggerEl.slideUp(_this.options.toggleDuration);break;default:$triggerEl.hide(_this.options.toggleDuration);break}
850switch(_this.condition){case 'hide':$triggerEl.addClass('condition-met');break;case 'show':$triggerEl.removeClass('condition-met');break}
851if(_this.disableHidden){$el.find('input, select, textarea').attr('disabled',!0)}
852if($el.attr('required')){$el.attr('required',!1).addClass('is-required')}
853if(_this.renameHidden){$el.prop('name','cond-field-hidden-'+_this.index)}}else{switch($el.data('field-action')){case 'slide':$triggerEl.slideDown(_this.options.toggleDuration);break;default:$triggerEl.show(_this.options.toggleDuration);break}
854switch(_this.condition){case 'hide':$triggerEl.removeClass('condition-met');break;case 'show':$triggerEl.addClass('condition-met');break}
855if(_this.disableHidden){$el.find('input, select, textarea').attr('disabled',!1)}
856if($el.hasClass('is-required')){$el.attr('required',!0).removeClass('is-required')}
857if(_this.renameHidden){$el.prop('name',_this.name)}}
858break;case 'copy':$triggerEl.text(val);break}},_evaluateOptions:function(options,optionDefaults){if(!options){return optionDefaults}else{var mergedOptions={...optionDefaults,...options};return mergedOptions}},_log:function(title,values){var _this=this,$el=this.$el,options=this.options;if(_this.debug){if(values){console.log({title:'Log ('+_this.data.identifierName+' '+_this.index+'): '+title,_this:_this,values:values})}else{console.log({title:'Log ('+_this.data.identifierName+' '+_this.index+'): '+title,_this:_this})}}},};$.fn.initFieldCondition=function(options){var $element=$(this);if($element.length>1){$element.each(function(){init($(this))})}else{init($element)}
859function init($el){if($el.length&&!$el.data(FieldCondition.Data.identifierName+'Controller')){let dataOptions=mergedOptions={};if($.isNumeric($el.data('field-duration'))){dataOptions.toggleDuration=$el.data('field-duration')}
860if($el.data('field-container')&&($triggerEl=$el.closest($el.data('field-container'))).length){dataOptions['$triggerEl']=$triggerEl}
861mergedOptions={...dataOptions,...options};$el.data(FieldCondition.Data.identifierName+'Controller',new FieldCondition.Controller($el,mergedOptions)).triggerHandler(FieldCondition.Data.identifierName+'-rdy')}}};var DateTimePicker=window.DateTimePicker=window.DateTimePicker||{};DateTimePicker.Data={index:0,identifierName:'DateTimePicker'};DateTimePicker.Controller=function(el,options){var _this=this,$el=this.$el=$(el);_this.options=options=_this._evaluateOptions(options,{debug:!1,scrollInput:!1,step:30,minDate:0,maxDate:!1,minTime:'8:00',maxTime:'18:01',enablePast:!1,enableWeekends:!1,theme:'default',dayOfWeekStart:1});_this.data=DateTimePicker.Data;_this.index=_this.data.index;DateTimePicker.Data.index++;_this.debug=options.debug;_this._log(_this.data.identifierName+' Controller');if(options.format){if(!$el.data('initialized')){_this._init()}}else{_this._log('No date format provided')}};DateTimePicker.Controller.prototype={_init:function(){var _this=this,$el=this.$el,options=this.options;$el.datetimepicker({datepicker:options.datepicker,timepicker:options.timepicker,format:options.format,scrollInput:options.scrollInput,minDate:(!options.enablePast)?options.minDate:!1,maxDate:options.maxDate,startDate:options.startDate,minTime:options.minTime,maxTime:options.maxTime,defaultTime:options.defaultTime,step:options.step,dayOfWeekStart:options.dayOfWeekStart,theme:options.theme,onGenerate:function(ct){if(!options.enableWeekends){jQuery(this).find('.xdsoft_date.xdsoft_weekend').addClass('xdsoft_disabled')}},});$el.data('initialized',!0);_this._log('initialized')},_evaluateOptions:function(options,optionDefaults){if(!options){return optionDefaults}else{var mergedOptions={...optionDefaults,...options};return mergedOptions}},_log:function(title,values){var _this=this,$el=this.$el,options=this.options;if(_this.debug){if(values){console.log({title:'Log ('+_this.data.identifierName+' '+_this.index+'): '+title,_this:_this,values:values})}else{console.log({title:'Log ('+_this.data.identifierName+' '+_this.index+'): '+title,_this:_this})}}},};$.fn.initDateTimePicker=function(options){var $element=$(this);if($element.length>1){$element.each(function(){init($(this))})}else{init($element)}
862function init($el){if($el.length&&!$el.data(DateTimePicker.Data.identifierName+'Controller')){let dataOptions=mergedOptions={};let dpSettings=$el.data('datepicker-settings');let timepicker=(dpSettings=='datetime'||dpSettings=='time')?!0:!1;let datepicker=(dpSettings=='datetime'||dpSettings=='date'||!dpSettings)?!0:!1;let format=options.formatDate;if(datepicker&&timepicker)format=format+' '+options.formatTime;if(!datepicker&&timepicker)format=options.formatTime;dataOptions.timepicker=timepicker;dataOptions.datepicker=datepicker;dataOptions.format=format;if($el.data('min-date')){dataOptions.minDate=$el.data('min-date')}
863if($el.data('max-date')){dataOptions.maxDate=$el.data('max-date')}
864if($el.data('start-date')){dataOptions.startDate=$el.data('start-date')}
865if($el.data('min-time')){dataOptions.minTime=$el.data('min-time')}
866if($el.data('max-time')){dataOptions.maxTime=$el.data('max-time')}
867if($el.data('default-time')){dataOptions.defaultTime=$el.data('default-time')}
868if($el.data('time-step')){dataOptions.step=$el.data('time-step')}
869if($el.data('enable-past')){dataOptions.enablePast=$el.data('enable-past')}
870if($el.data('enable-weekends')){dataOptions.enableWeekends=$el.data('enable-weekends')}
871mergedOptions={...dataOptions,...options};$el.data(DateTimePicker.Data.identifierName+'Controller',new DateTimePicker.Controller($el,mergedOptions)).triggerHandler(DateTimePicker.Data.identifierName+'-rdy')}}}})(jQuery);document.addEventListener('DOMContentLoaded',function(){function initRadioCheckInfo($el){let type=$el.querySelector('input:not([type="hidden"])').type;let $info=$el.querySelector('.'+type+'__info');
871if($info){let $content=$info.querySelector('.info-content');let thisWidth=getOuterWidth($content);positionInfo();let $toggle=$info.querySelector('.'+type+'-info__toggle');let $close=$info.querySelector('.info-content__close');let infoToggle=function(e){e.preventDefault();$el.classList.toggle(type+'-info-active')};let infoClose=function(){$el.classList.remove(type+'-info-active')};onClickAndEnter($toggle,infoToggle);onClickAndEnter($close,infoClose);onOutsideClick($el,{callback:function(){$el.classList.remove(type+'-info-active')}});let onResize;window.addEventListener('resize',function(){clearTimeout(onResize);onResize=setTimeout(function(){positionInfo()},200)});function positionInfo(){let thisOffsetRight=getOuterWidth(window)-$content.offsetLeft-thisWidth;if(thisOffsetRight<=thisWidth){$el.classList.add(type+'-info-open-below')}}}};document.querySelectorAll('.radio--info, .checkbox--info').forEach(($el)=>{initRadioCheckInfo($el)});radioClass='radio';$radios=document.querySelectorAll('input[type="radio"]');$radios.forEach(($radio)=>{let $wrapItem=$radio.closest('.'+radioClass);if($wrapItem){if($radio.checked){$wrapItem.classList.add('checked')}else if($wrapItem.classList.contains('checked')){$radio.checked=!0}
872if($radio.disabled){$wrapItem.classList.add('disabled')}else if($wrapItem.classList.contains('disabled')){$radio.disabled=!0}
873if($radio.classList.contains('f3-form-error')){$radio.closest('.input-field').classList.add('f3-form-error')}
874$radio.addEventListener('change',function(e){if(this.checked){document.querySelectorAll('input[type="radio"][name="'+this.name+'"]').forEach(($item)=>{$item.closest('.'+radioClass).classList.remove('checked')});this.closest('.'+radioClass).classList.add('checked')}else{this.closest('.'+radioClass).classList.remove('checked')}})}})});class BaseNav extends Component{constructor($el,componentName,index,paramOptions){super($el,componentName,index,paramOptions,{breakpoint:ensureNumber($el.dataset.navBreakpoint)||0,initHeader:ensureBool($el.dataset.initHeader)||!1,type:$el.dataset.type||null,mobileType:$el.dataset.mobileType||null,});let _this=this;if(_this.options.type){_this.navIdentifier=$el.id;_this.windowWidth=_this.getWindowWidth();_this.$firstLevel=$el.querySelector(':scope > .nav__list.list--first');_this.$listItems=_this.getNavElements('.list__item');_this.$itemLinks=_this.getNavElements('.item__link');_this.$itemToggles=_this.getNavElements('.item__toggle').filter(el=>!el.parentElement.closest('.item__toggle'));_this.$childLists=_this.getNavElements('.nav__list .nav__list');_this.childToggleTime=100;if($el.dataset.navButton){_this.navButtonClass=$el.dataset.navButton;_this.$navButtons=document.querySelectorAll(_this.navButtonClass)}else{_this.navButtonsClass=null;_this.$navButtons=$el.querySelectorAll('.nav__button')}
875if(_this.options.initHeader){_this.$header=$el.closest('.header');_this.$stickyHeader=document.querySelector('.header[data-sticky-initialized]');_this.$headerInner=_this.$header.querySelector('.header__inner');_this.$headerLogo=_this.$header.querySelector('.header__logo-container')}
876_this._init()}}
877init(){let _this=this;let $el=_this.$el;let $listItems=_this.$listItems;let $itemLinks=_this.$itemLinks;let $itemToggles=_this.$itemToggles;let $childLists=_this.$childLists;let $navButtons=_this.$navButtons;if($navButtons){_this.initNavButtons()}
878if($itemToggles){onClickAndEnter($itemToggles,function(e){let $this=this;let $thisItem=$this.closest('.list__item');let toggleClass='item--open';if($thisItem.classList.contains('item--click-only')||$this.closest('.item__link')){e.preventDefault()}
879if(_this.windowWidth>=_this.options.breakpoint&&_this.optionByType('closeSiblings')){let $siblings=siblings($thisItem);$siblings.forEach(($sibling)=>{_this.closeItem($sibling,toggleClass)})}
880if($thisItem.classList.contains(toggleClass)){_this.closeItem($thisItem,toggleClass)}else{_this.openItem($thisItem,toggleClass)}})}
881if($listItems){$listItems.forEach(($item)=>{if(!$item.classList.contains('item--click-only')&&$item.classList.contains('item--has-child')){addMultipleListeners($item,['mouseenter','touchenter'],function(e){if(e.target===$item){e.stopPropagation();let $this=this;if(_this.windowWidth>=_this.options.breakpoint){_this._log('mouseenter item',{item:$this,event:e});if(_this.optionByType('closeSiblings')){let $siblings=siblings($this);
881$siblings.forEach(($sibling)=>{_this.closeItem($sibling,'item--open')})}
882_this.openItem($this)}}},!0);addMultipleListeners($item,['mouseleave','touchleave'],function(e){if(e.target===$item){let $this=this;if(_this.windowWidth>=_this.options.breakpoint){_this._log('mouseleave item',{item:$this,event:e});_this.closeItem($this)}}},!0)}})}
883if($itemLinks){onClickAndEnter($itemLinks,function(e){let urlHash=this.href.split('#')[1];if(urlHash&&!e.target.classList.contains('item__toggle')){_this.closeNav({log:'anchor'})}})}
884onOutsideClick($el,{outsideExclude:'.nav[id="'+_this.navIdentifier+'"]'+((_this.navButtonClass)?', '+_this.navButtonClass:''),callback:function(){_this.closeNav({log:'outside-click'})}});if(_this.options.initHeader){_this.calculateChildListPositions();_this.positionMenu()}
885_this.defaultInitAndResize();let onResize;window.addEventListener('resize',function(){_this.windowWidth=_this.getWindowWidth();clearTimeout(onResize);_this.defaultInitAndResize();onResize=setTimeout(function(){_this.defaultInitAndResize(!0);if(_this.options.initHeader){_this.calculateChildListPositions();_this.positionMenu()}},200)});_this.$childLists.forEach(($item)=>{$item.classList.add('list--enabled')})}
886getNavElements(selector){let _this=this;let $el=_this.$el;let $elements=Array.from($el.querySelectorAll(selector));return $elements.filter(function(item){return item.closest('.nav')===$el})}
887defaultInitAndResize(timeouted){let _this=this;let $el=_this.$el;if(timeouted){}else{if(_this.windowWidth<_this.options.breakpoint){$el.classList.add('mobile-active')}else{$el.classList.remove('mobile-active')}
888_this.toggleNavOpenState()}}
889optionByType(demandedOption){let _this=this;let options=_this.options;switch(options.type){case 'default':switch(demandedOption){case 'closeSiblings':return!0;case 'setMobileHeightOffset':return!0}
890break;case 'flyout':switch(demandedOption){case 'closeSiblings':return!1;case 'setMobileHeightOffset':return!0}
891break}
892return!1}
893calculateChildListPositions(){let _this=this;let $el=_this.$el;let $listItems=_this.$listItems;let $itemLinks=_this.$itemLinks;let $itemToggles=_this.$itemToggles;let $childLists=_this.$childLists;let $header=_this.$header;let $headerInner=_this.$headerInner;let $headerLogo=_this.$headerLogo;let windowWidth=_this.windowWidth;
893if(!$childLists)return;if(_this.options.type=='default'){_this._log('calculate child list positions...',{$childLists:$childLists})}
894switch(_this.options.type){case 'default':$childLists.forEach(($child)=>{let isTopBarNav=$child.closest('.top-bar-nav')!==null;let $parentList=$child.parentElement.closest('.list--inline');let $parentInlineList=($parentList)?((Array.from($parentList.querySelectorAll(':scope > .list__inner > .list__item > .item__sub > .nav__list')).includes($child))?$parentList:null):null;if($parentInlineList&&$child.classList.contains('list--inline')){if(windowWidth>=_this.options.breakpoint){$parentInlineList.style.paddingBottom=(getOuterHeight($child)+5)+'px'}else{$parentInlineList.style.removeProperty('padding-bottom')}}
895if($child.classList.contains('list--dropdown')){if(windowWidth>=_this.options.breakpoint){let childRect=$child.getBoundingClientRect();let childRight=childRect.right
896if(childRight>windowWidth){$child.classList.add('list--open-left')}}}
897let isMega=$child.classList.contains('list--mega');if($parentInlineList&&_this.options.initHeader&&($child.classList.contains('list--dropdown')||isMega)){if(($headerInner&&isHidden($headerInner))||isTopBarNav){$headerInner=$header.querySelector('.top-bar__inner')}
898let $spacingTarget=(isMega)?$child.querySelector(':scope > .mega'):$child;if(windowWidth>=_this.options.breakpoint){let targetOffsetTop=$spacingTarget.offsetTop;let headerTopSpace=parseFloat($headerInner.style.paddingTop)||0;let headerBottomSpace=parseFloat($headerInner.style.paddingBottom)||0;let headerVerticalEqualSpace=headerTopSpace==headerBottomSpace;let headerInnerHeight=getOuterHeight($headerInner);let headerInnerOffsetTop=$headerInner.offsetTop;let listHeight=getOuterHeight($parentInlineList);let listOffsetTop=$parentInlineList.offsetTop;let listOffsetBottom=getOuterHeight($headerInner)-listOffsetTop+headerInnerOffsetTop-listHeight;let listOffsetSpace=(listOffsetBottom>headerBottomSpace)?(listOffsetBottom-headerBottomSpace):0;let sublistSpace=headerBottomSpace+listOffsetSpace;if(sublistSpace>0)$spacingTarget.style.paddingTop=sublistSpace+'px';let sublistOffsetTop=listHeight+listOffsetTop;if(isMega&&sublistOffsetTop>0)$spacingTarget.style.top=sublistOffsetTop+'px';_this._log('calculate absolute positioned child',{$this:$child,isMega:isMega,$headerInner:$headerInner,$headerLogo:$headerLogo,$parentInlineList:$parentInlineList,$spacingTarget:$spacingTarget,targetOffsetTop:targetOffsetTop,isTopBarNav:isTopBarNav,headerTopSpace:headerTopSpace,headerBottomSpace:headerBottomSpace,headerVerticalEqualSpace:headerVerticalEqualSpace,headerInnerHeight:headerInnerHeight,headerInnerOffsetTop:headerInnerOffsetTop,listHeight:listHeight,listOffsetBottom:listOffsetBottom,listOffsetSpace:listOffsetSpace,sublistSpace:sublistSpace,sublistOffsetTop:sublistOffsetTop})}else if(parseFloat(window.getComputedStyle($spacingTarget).paddingTop)>0){$spacingTarget.style.paddingTop='0px';_this._log('reset absolute positioned child spacing')}}else{_this._log('no calculation done',{$child:$child,$parentList:$parentList,$parentInlineList:$parentInlineList,initHeader:_this.options.initHeader,childIsDropdown:$child.classList.contains('list--dropdown'),isMega:isMega})}})}}
899positionMenu(){let _this=this;let $el=_this.$el;let $header=_this.$header;let $stickyHeader=_this.$stickyHeader;let $firstLevel=_this.$firstLevel;if(_this.options.mobileType){if(_this.optionByType('setMobileHeightOffset')){if(_this.windowWidth<_this.options.breakpoint){if($stickyHeader&&$stickyHeader.classList.contains('sticky-active')&&window.getComputedStyle($stickyHeader).display!=='none'){let h=getCssVar('--sticky-header-h');$firstLevel.style.height=`calc(100vh - ${h})`;_this._log('position menu',{heightOffset:h})}else{let h=getCssVar('--header-cont-h');$firstLevel.style.height=`calc(100vh - ${h})`;_this._log('position menu',{heightOffset:h})}}else{$firstLevel.style.removeProperty('height');_this._log('no mobile height offset')}}}}
900openItem($item,toggleClass){let _this=this;let $el=_this.$el;toggleClass=(toggleClass!=undefined)?toggleClass:'item--hover-active';if(!$item.classList.contains(toggleClass)){$item.classList.add(toggleClass);$item.dispatchEvent(new Event('openItem'));if(_this.options.initHeader){if($item.classList.contains('item--has-mega')&&!$el.classList.contains('mobile-active')){let $mega=$item.querySelector('.mega');if($mega.classList.contains('mega--background-expand')){let megaBackgroun
900d=window.getComputedStyle($mega.querySelector(':scope > .mega__container')).background;if(!_this.headerBackground){_this.headerBackground=window.getComputedStyle(_this.$header).background}
901if(megaBackground){_this.$header.style.background=megaBackground}}}}
902_this._log('open item',{item:$item,toggleClass:toggleClass})}}
903closeItem($item,toggleClass){let _this=this;toggleClass=(toggleClass!=undefined)?toggleClass:'item--hover-active';let toggleClassArr=toggleClass.split(' ');let itemClosed=!1;toggleClassArr.forEach((classEl)=>{if($item.classList.contains(classEl)){itemClosed=!0;$item.classList.remove(classEl)}})
904if(itemClosed){$item.dispatchEvent(new Event('closeItem'));if($item.classList.contains('item--has-child')){let $childs=$item.querySelectorAll('.'+toggleClassArr.join(', .'));if($childs){$childs.forEach(($child)=>{_this.closeItem($child,toggleClass)})}}
905if($item.classList.contains('item--has-mega')){let $mega=$item.querySelector('.mega');if($mega){_this.closeMegaItem($mega,$item)}}
906_this._log('close item',{item:$item,toggleClass:toggleClass})}}
907closeMegaItem($mega,$item){let _this=this;$item=($item==undefined)?$item:$mega.closest('.list__item');setTimeout(function(){let megaCtrl=$mega.MegaNav;megaCtrl.closeMega()},_this.childToggleTime);if(_this.options.initHeader){if($mega.classList.contains('mega--background-expand')&&_this.headerBackground){_this.$header.style.background=_this.headerBackground}}}
908toggleNav(opt){let _this=this;let $el=_this.$el;if($el.classList.contains('nav--open')){_this.closeNav(opt)}else{_this.openNav(opt)}}
909openNav(opt){let _this=this;let $el=_this.$el;opt=(opt==undefined)?{}:opt;_this.positionMenu();_this.toggleNavOpenState(!0);_this._log('open navigation'+((opt.log)?' ['+opt.log+'] ':''))}
910closeNav(opt){let _this=this;let $el=_this.$el;opt=(opt==undefined)?{}:opt;$el.querySelectorAll('.item--hover-active, .item--open').forEach((element)=>{_this.closeItem(element,'item--hover-active item--open')});_this.toggleNavOpenState(!1);_this._log('close navigation'+((opt.log)?' ['+opt.log+'] ':''))}
911getWindowWidth(){return getOuterWidth(window)}
912toggleNavOpenState(mod){let _this=this;let $el=_this.$el;let $navButtons=_this.$navButtons;switch(mod){case undefined:if(_this.windowWidth>=_this.options.breakpoint&&$el.classList.contains('nav--open')){_this.closeNav({log:'resized above breakpoint'})}
913break;case true:if(!$el.classList.contains('nav--open')){$navButtons.forEach(($button)=>{$button.dispatchEvent(_this.buttonToggleOpen)});$el.classList.add('nav--open')}
914break;case false:if($el.classList.contains('nav--open')){$navButtons.forEach(($button)=>{$button.dispatchEvent(_this.buttonToggleClose)});$el.classList.remove('nav--open')}
915break}}
916initNavButtons(){let _this=this;let $el=_this.$el;let $navButtons=_this.$navButtons;_this.buttonToggleOpen=new Event('openNav');_this.buttonToggleClose=new Event('closeNav');$navButtons.forEach(($button)=>{let lockScrollingEnabled=ensureBool($button.dataset.lockScrolling);let toggle=function(toggledByNav,mod){if(toggledByNav){_this._log('toggledByNav',[mod,$button,$el]);if(mod==undefined){$button.classList.toggle('active');if(lockScrollingEnabled)lockScrolling({mode:'toggle'})}else if(mod){$button.classList.add('active');if(lockScrollingEnabled)lockScrolling({mode:!0})}else{$button.classList.remove('active');if(lockScrollingEnabled)lockScrolling({mode:!1})}}else{if(mod==undefined){_this.toggleNav({log:'button toggle'})}else if(mod){_this.openNav({log:'button open'})}else{_this.closeNav({log:'button close'})}}};onClickAndEnter($button,function(e){_this._log('onClickAndEnter',[$button,e]);toggle(!1)});$button.addEventListener('openNav',function(e){toggle(!0,!0)},!1);$button.addEventListener('closeNav',function(e){toggle(!0,!1)},!1)})}}
917window.BaseNav=BaseNav;document.addEventListener('DOMContentLoaded',function(){ComponentRegistry.initComponent(".nav[data-init='true']",'BaseNav')});(function($){var Ajax=window.Ajax=window.Ajax||{};Ajax.Data={identifierName:'Ajax'};Ajax.Controller=function(el,options){var _this=this,$el=this.$el=$(el);_this.options=options=_this._evaluateOptions(options,{debug:!1,name:null,onInit:!1,ajaxOptions:{params:{},onAjaxContentLoaded:null,scrollToContent:!1,scrollToContentAfter:!1}});_this.data=Ajax.Data;_this.debug=options.debug;_this.name=options.name;_this.$resultContainer=$resultContainer=$($el.data('ajax-target'));_this.url=$el.data('ajax');_this.paramPrefix=($el.data('param-prefix'))?$el.data('param-prefix'):null;_this.keepContent=($el.data('keep-content'))?$el.data('keep-content'):!1;_this.currentRequest=null;if($resultContainer.length){_this.$ajaxLoader=$resultContainer.find('.ajax-loader-wrap');_this.$ajaxContent=$resultContainer.find('.ajax-content');if(!_this.$ajaxContent.length){_this.$ajaxContent=$resultContainer}}
917else{console.log('No target container found: '+$el.data('ajax-target'))}
918_this.service={Ajax:function(ajaxOptions,isInitial=!1){let url=_this.url;let params=ajaxOptions.params;if(!_this.keepContent){if(_this.$resultContainer!=_this.$ajaxContent){_this.$ajaxContent.hide();_this.$ajaxLoader.show()}else{_this.$ajaxContent.html(_this.$ajaxLoader).show();_this.$ajaxLoader.show()}}
919if(params&&Object.keys(params).length){$.each(params,function(key,value){if(_this.paramPrefix)key=_this.paramPrefix+'['+key+']';if(typeof value!=='string'&&!(value instanceof String))value=JSON.stringify(value);url+='&'+key+'='+encodeURIComponent($.trim(value))})}
920_this._log('service.Ajax',{ajaxOptions:ajaxOptions,url:url});_this.currentRequest=$.ajax({url:url,cache:!1,success:function(result){_this.$ajaxLoader.hide();_this.$ajaxContent.html(result).show();_this.$resultContainer.triggerHandler('onAjaxContentLoaded',[isInitial,ajaxOptions]);_this.currentRequest=null},error:function(jqXHR,textStatus,errorThrow){console.log('Ajax request - '+textStatus+': '+errorThrow);_this.currentRequest=null}})},};$resultContainer.on('onAjaxContentLoaded',function(e,isInitial,ajaxOptions){var $this=$(this);ComponentRegistry.initComponent(this.querySelectorAll('.tns-init'),'Slider');prepareEqualHeight(this.querySelectorAll('.equalheight'));ComponentRegistry.initComponent(this.querySelectorAll('.tabs'),'Tabs');$this.find("[data-field-condition]").initFieldCondition();ComponentRegistry.initComponent(this.querySelectorAll('.accordion'),'Accordion');if(ajaxOptions.onAjaxContentLoaded!==null&&typeof ajaxOptions.onAjaxContentLoaded==='function'){ajaxOptions.onAjaxContentLoaded()}
921if(!isInitial&&ajaxOptions.scrollToContentAfter){$scrollTarget=(ajaxOptions.scrollToContentAfter.nodeType===Node.ELEMENT_NODE)?ajaxOptions.scrollToContentAfter:this;scrollWindowTo($scrollTarget)}
922_this._log('onAjaxContentLoaded',{$resultContainer:$this})});$el.data('initialized',!0);_this._log('initialized',{url:_this.url,$resultContainer:this.$resultContainer,$ajaxContent:this.$ajaxContent,$ajaxLoader:this.$ajaxLoader,keepContent:_this.keepContent});if(options.onInit){_this._triggerAjax(options.ajaxOptions,!0)}else{_this.$ajaxContent.show()}};Ajax.Controller.prototype={_triggerAjax:function(ajaxOptions,isInitial=!1){var _this=this,$el=this.$el,$resultContainer=this.$resultContainer;if(_this.currentRequest!==null){_this.currentRequest.abort();_this.currentRequest=null;var abortedPreviousRequest=!0}else{var abortedPreviousRequest=!1}
923ajaxOptions=_this._evaluateOptions(ajaxOptions,_this.options.ajaxOptions);_this._log('triggered',{url:this.url,$resultContainer:this.$resultContainer,abortedPreviousRequest:_this.currentRequest});if(!isInitial&&ajaxOptions.scrollToContent){$scrollTarget=(ajaxOptions.scrollToContent.nodeType===Node.ELEMENT_NODE)?ajaxOptions.scrollToContent:$resultContainer.get(0);scrollWindowTo($scrollTarget,'instant')}
924_this.service.Ajax(ajaxOptions,isInitial)},_evaluateOptions:function(options,optionDefaults){if(!options){return optionDefaults}else{var mergedOptions={...optionDefaults,...options};return mergedOptions}},_log:function(title,values){var _this=this,$el=this.$el,options=this.options;if(_this.debug){if(_this.name){title='Log ('+_this.data.identifierName+': '+_this.name+'): '+title}else{title='Log ('+_this.data.identifierName+'): '+title}
925if(values){console.log({title:title,_this:_this,values:values})}else{console.log({title:title,_this:_this})}}},};$.fn.initAjax=function(options){let $element=$(this);if($element.length>1){$element.each(function(){init($(this))})}else{return init($element)}
926function init($el){let name=(options.name)?options.name:'';if($el.length&&!$el.data(name+Ajax.Data.identifierName+'Controller')){let ajaxCtrl=new Ajax.Controller($el,options);$el.data(name+Ajax.Data.identifierName+'Controller',ajaxCtrl).triggerHandler(name+Ajax.Data.identifierName+'-rdy');return ajaxCtrl}}}})(jQuery);document.addEventListener('DOMContentLoaded',function(){$('.ajax-init-element').each(function(){$(this).initAjax({onAjaxContentLoaded:function(){}})})});
927/*!
vendor: 10,118 bytes, lines 928-945
928 * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2016
929 * @version 1.3.4
930 *
931 * Date formatter utility library that allows formatting date/time variables or Date objects using PHP DateTime format.
932 * @see http://php.net/manual/en/function.date.php
933 *
934 * For more JQuery plugins visit http://plugins.krajee.com
935 * For more Yii related demos visit http://demos.krajee.com
936 *
937 * https://xdsoft.net/jqplugins/datetimepicker/
938 *
939*/var DateFormatter;!function(){"use strict";var t,e,r,n,a,u,i;u=864e5,i=3600,t=function(t,e){return"string"==typeof t&&"string"==typeof e&&t.toLowerCase()===e.toLowerCase()},e=function(t,r,n){var a=n||"0",u=t.toString();return u.length<r?e(a+u,r):u},r=function(t){var e,n;for(t=t||{},e=1;e<arguments.length;e++)if(n=arguments[e])for(var a in n)n.hasOwnProperty(a)&&("object"==typeof n[a]?r(t[a],n[a]):t[a]=n[a]);return t},n=function(t,e){for(var r=0;r<e.length;r++)if(e[r].toLowerCase()===t.toLowerCase())return r;return-1},a={dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(t){var e=t%10,r={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(t%100/10)&&r[e]?r[e]:"th"}},separators:/[ \-+\/\.T:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},DateFormatter=function(t){var e=this,n=r(a,t);e.dateSettings=n.dateSettings,e.separators=n.separators,e.validParts=n.validParts,e.intParts=n.intParts,e.tzParts=n.tzParts,e.tzClip=n.tzClip},DateFormatter.prototype={constructor:DateFormatter,getMonth:function(t){var e,r=this;return e=n(t,r.dateSettings.monthsShort)+1,0===e&&(e=n(t,r.dateSettings.months)+1),e},parseDate:function(e,r){var n,a,u,i,s,o,c,f,l,h,d=this,g=!1,m=!1,p=d.dateSettings,y={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!e)return null;if(e instanceof Date)return e;if("U"===r)return u=parseInt(e),u?new Date(1e3*u):e;switch(typeof e){case"number":return new Date(e);case"string":break;default:return null}if(n=r.match(d.validParts),!n||0===n.length)throw new Error("Invalid date format definition.");for(a=e.replace(d.separators,"\x00").split("\x00"),u=0;u<a.length;u++)switch(i=a[u],s=parseInt(i),n[u]){case"y":case"Y":if(!s)return null;l=i.length,y.year=2===l?parseInt((70>s?"20":"19")+i):s,g=!0;break;case"m":case"n":case"M":case"F":if(isNaN(s)){if(o=d.getMonth(i),!(o>0))return null;y.month=o}else{if(!(s>=1&&12>=s))return null;y.month=s}g=!0;break;case"d":case"j":if(!(s>=1&&31>=s))return null;y.day=s,g=!0;break;case"g":case"h":if(c=n.indexOf("a")>-1?n.indexOf("a"):n.indexOf("A")>-1?n.indexOf("A"):-1,h=a[c],c>-1)f=t(h,p.meridiem[0])?0:t(h,p.meridiem[1])?12:-1,s>=1&&12>=s&&f>-1?y.hour=s+f-1:s>=0&&23>=s&&(y.hour=s);else{if(!(s>=0&&23>=s))return null;y.hour=s}m=!0;break;case"G":case"H":if(!(s>=0&&23>=s))return null;y.hour=s,m=!0;break;case"i":if(!(s>=0&&59>=s))return null;y.min=s,m=!0;break;case"s":if(!(s>=0&&59>=s))return null;y.sec=s,m=!0}if(g===!0&&y.year&&y.month&&y.day)y.date=new Date(y.year,y.month-1,y.day,y.hour,y.min,y.sec,0);else{if(m!==!0)return null;y.date=new Date(0,0,0,y.hour,y.min,y.sec,0)}return y.date},guessDate:function(t,e){if("string"!=typeof t)return t;var r,n,a,u,i,s,o=this,c=t.replace(o.separators,"\x00").split("\x00"),f=/^[djmn]/g,l=e.match(o.validParts),h=new Date,d=0;if(!f.test(l[0]))return t;for(a=0;a<c.length;a++){if(d=2,i=c[a],s=parseInt(i.substr(0,2)),isNaN(s))return null;switch(a){case 0:"m"===l[0]||"n"===l[0]?h.setMonth(s-1):h.setDate(s);break;case 1:"m"===l[0]||"n"===l[0]?h.setDate(s):h.setMonth(s-1);break;case 2:if(n=h.getFullYear(),r=i.length,d=4>r?r:4,n=parseInt(4>r?n.toString().substr(0,4-r)+i:i.substr(0,4)),!n)return null;h.setFullYear(n);break;case 3:h.setHours(s);break;case 4:h.setMinutes(s);break;case 5:h.setSeconds(s)}u=i.substr(d),u.length>0&&c.splice(a+1,0,u)}return h},parseFormat:function(t,r){var n,a=this,s=a.dateSettings,o=/\\?(.?)/gi,c=function(t,e){return n[t]?n[t]():e};return n={d:function(){return e(n.j(),2)},D:function(){return s.daysShort[n.w()]},j:function(){return r.getDate()},l:function(){return s.days[n.w()]},N:function(){return n.w()||7},w:function(){return r.getDay()},z:function(){var t=new Date(n.Y(),n.n()-1,n.j()),e=new Date(n.Y(),0,1);return Math.round((t-e)/u)},W:function(){var t=new Date(n.Y(),n.n()-1,n.j()-n.N()+3),r=new Date(t.getFullYear(),0,4);return e(1+Math.round((t-r)/u/7),2)},F:function(){return s.months[r.getMonth()]},m:function(){return e(n.n(),2)},M:function(){return s.monthsShort[r.getMonth()]},n:function(){return r.getMonth()+1},t:function(){return new Date(n.Y(),n.n(),0).getDate()},L:function(){var t=n.Y();return t%4===0&&t%100!==0||t%400===0?1:0},o:function(){var t=n.n(),e=n.W(),r=n.Y();return r+(12===t&&9>e?1:1===t&&e>9?-1:0)},Y:function(){return r.getFullYear()},y:function(){return n.Y().toString().slice(-2)},a:function(){return n.A().toLowerCase()},A:function(){var t=n.G()<12?0:1;return s.meridiem[t]},B:function(){var t=r.getUTCHours()*i,n=60*r.getUTCMinutes(),a=r.getUTCSeconds();return e(Math.floor((t+n+a+i)/86.4)%1e3,3)},g:function(){return n.G()%12||12},G:function(){return r.getHours()},h:function(){return e(n.g(),2)},H:function(){return e(n.G(),2)},i:function(){return e(r.getMinutes(),2)},s:function(){return e(r.getSeconds(),2)},u:function(){return e(1e3*r.getMilliseconds(),6)},e:function(){var t=/\((.*)\)/.exec(String(r))[1];return t||"Coordinated Universal Time"},I:function(){var t=new Date(n.Y(),0),e=Date.UTC(n.Y(),0),r=new Date(n.Y(),6),a=Date.UTC(n.Y(),6);return t-e!==r-a?1:0},O:function(){var t=r.getTimezoneOffset(),n=Math.abs(t);return(t>0?"-":"+")+e(100*Math.floor(n/60)+n%60,4)},P:function(){var t=n.O();return t.substr(0,3)+":"+t.substr(3,2)},T:function(){var t=(String(r).match(a.tzParts)||[""]).pop().replace(a.tzClip,"");return t||"UTC"},Z:function(){return 60*-r.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(o,c)},r:function(){return"D, d M Y H:i:s O".replace(o,c)},U:function(){return r.getTime()/1e3||0}},c(t,t)},formatDate:function(t,e){var r,n,a,u,i,s=this,o="",c="\\";if("string"==typeof t&&(t=s.parseDate(t,e),!t))return null;if(t instanceof Date){for(a=e.length,r=0;a>r;r++)i=e.charAt(r),"S"!==i&&i!==c&&(r>0&&e.charAt(r-1)===c?o+=i:(u=s.parseFormat(i,t),r!==a-1&&s.intParts.test(i)&&"S"===e.charAt(r+1)&&(n=parseInt(u)||0,u+=s.dateSettings.ordinal(n)),o+=u));return o}return""}}}();
940/**
941 * @preserve jQuery DateTimePicker
942 * @homepage http://xdsoft.net/jqplugins/datetimepicker/
943 * @author Chupurnov Valeriy (<[email protected]>)
944 */
945var datetimepickerFactory=function($){'use strict';var default_options={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:['فروردین','اردیبهشت','خرداد','تیر','مرداد','شهریور','مهر','آبان','آذر','دی','بهمن','اسفند'],dayOfWeekShort:['یکشنبه','دوشنبه','سه شنبه','چهارشنبه','پنجشنبه','جمعه','شنبه'],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:['Январь','Февраль','Март','Апрель','Май','Июнь','Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:['Січень','Лютий','Березень','Квітень','Травень','Червень','Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'],dayOfWeekShort:["Ндл","Пнд","Втр","Срд","Чтв","Птн","Сбт"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
945ay","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน','กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'],dayOfWeekShort:['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},km:{months:["មករា​","កុម្ភៈ","មិនា​","មេសា​","ឧសភា​","មិថុនា​","កក្កដា​","សីហា​","កញ្ញា​","តុលា​","វិច្ឆិកា","ធ្នូ​"],dayOfWeekShort:["អាទិ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហ​​","សុក្រ​","សៅរ៍"],dayOfWeek:["អាទិត្យ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហស្បតិ៍​","សុក្រ​","សៅរ៍"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag']},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},'en-GB':{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
945ay","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:['Igandea','Astelehena','Asteartea','Asteazkena','Osteguna','Ostirala','Larunbata']},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},'pt-BR':{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},'sr-YU':{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},'zh-TW':{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ug:{months:["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي"],dayOfWeek:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},he:{months:['ינואר','פברואר','מרץ','אפריל','מאי','יוני','יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'],dayOfWeekShort:['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]}
945,kg:{months:['Үчтүн айы','Бирдин айы','Жалган Куран','Чын Куран','Бугу','Кулжа','Теке','Баш Оона','Аяк Оона','Тогуздун айы','Жетинин айы','Бештин айы'],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:['იანვარი','თებერვალი','მარტი','აპრილი','მაისი','ივნისი','ივლისი','აგვისტო','სექტემბერი','ოქტომბერი','ნოემბერი','დეკემბერი'],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},ownerDocument:document,contentWindow:window,value:'',rtl:!1,format:'Y/m/d H:i',formatTime:'H:i',formatDate:'Y/m/d',startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,openOnFocus:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,minDateTime:!1,maxDateTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:'',touchMovedThreshold:5,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:'xdsoft_next',prev:'xdsoft_prev',dayOfWeekStart:0,parentID:'body',timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:'',id:'',fixed:!1,roundTime:'round',className:'',weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1,insideParent:!1,};var dateHelper=null,defaultDateHelper=null,globalLocaleDefault='en',globalLocale='en';var dateFormatterOptionsDefault={meridiem:['AM','PM']};var initDateFormatter=function(){var locale=default_options.i18n[globalLocale],opts={days:locale.dayOfWeek,daysShort:locale.dayOfWeekShort,months:locale.months,monthsShort:$.map(locale.months,function(n){return n.substring(0,3)})};if(typeof DateFormatter==='function'){dateHelper=defaultDateHelper=new DateFormatter({dateSettings:$.extend({},dateFormatterOptionsDefault,opts)})}};var dateFormatters={moment:{default_options:{format:'YYYY/MM/DD HH:mm',formatDate:'YYYY/MM/DD',formatTime:'HH:mm',},formatter:{parseDate:function(date,format){if(isFormatStandard(format)){return defaultDateHelper.parseDate(date,format)}
946var d=moment(date,format);return d.isValid()?d.toDate():!1},formatDate:function(date,format){if(isFormatStandard(format)){return defaultDateHelper.formatDate(date,format)}
947return moment(date).format(format)},formatMask:function(format){return format.replace(/Y{4}/g,'9999').replace(/Y{2}/g,'99').replace(/M{2}/g,'19').replace(/D{2}/g,'39').replace(/H{2}/g,'29').replace(/m{2}/g,'59').replace(/s{2}/g,'59')},}}}
948$.datetimepicker={setLocale:function(locale){var newLocale=default_options.i18n[locale]?locale:globalLocaleDefault;if(globalLocale!==newLocale){globalLocale=newLocale;initDateFormatter()}},setDateFormatter:function(dateFormatter){if(typeof dateFormatter==='string'&&dateFormatters.hasOwnProperty(dateFormatter)){var df=dateFormatters[dateFormatter];$.extend(default_options,df.default_options);dateHelper=df.formatter}else{dateHelper=dateFormatter}},};var standardFormats={RFC_2822:'D, d M Y H:i:s O',ATOM:'Y-m-d\TH:i:sP',ISO_8601:'Y-m-d\TH:i:sO',RFC_822:'D, d M y H:i:s O',RFC_850:'l, d-M-y H:i:s T',RFC_1036:'D, d M y H:i:s O',RFC_1123:'D, d M Y H:i:s O',RSS:'D, d M Y H:i:s O',W3C:'Y-m-d\TH:i:sP'}
949var isFormatStandard=function(format){return Object.values(standardFormats).indexOf(format)===-1?!1:!0}
950$.extend($.datetimepicker,standardFormats);initDateFormatter();if(!window.getComputedStyle){window.getComputedStyle=function(el){this.el=el;this.getPropertyValue=function(prop){var re=/(-([a-z]))/g;if(prop==='float'){prop='styleFloat'}
951if(re.test(prop)){prop=prop.replace(re,function(a,b,c){return c.toUpperCase()})}
952return el.currentStyle[prop]||null};return this}}
953if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,start){var i,j;for(i=(start||0),j=this.length;i<j;i+=1){if(this[i]===obj){return i}}
954return-1}}
955Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()};$.fn.xdsoftScroller=function(options,percent){return this.each(function(){var timeboxparent=$(this),pointerEventToXY=function(e){var out={x:0,y:0},touch;if(e.type==='touchstart'||e.type==='touchmove'||e.type==='touchend'||e.type==='touchcancel'){touch=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];out.x=touch.clientX;out.y=touch.clientY}else if(e.type==='mousedown'||e.type==='mouseup'||e.type==='mousemove'||e.type==='mouseover'||e.type==='mouseout'||e.type==='mouseenter'||e.type==='mouseleave'){out.x=e.clientX;out.y=e.clientY}
956return out},getWheelDelta=function(e){var deltaY=0;if('detail' in e){deltaY=e.detail}
957if('wheelDelta' in e){deltaY=-e.wheelDelta/120}
958if('wheelDeltaY' in e){deltaY=-e.wheelDeltaY/120}
959if('axis' in e&&e.axis===e.HORIZONTAL_AXIS){deltaY=0}
960deltaY*=10;if('deltaY' in e){deltaY=e.deltaY}
961if(deltaY&&e.deltaMode){if(e.deltaMode===1){deltaY*=40}else{deltaY*=800}}
962return deltaY},timebox,timeboxTop=0,parentHeight,height,scrollbar,scroller,maximumOffset=100,start=!1,startY=0,startTop=0,h1=0,touchStart=!1,startTopScroll=0,calcOffset=function(){};if(percent==='hide'){timeboxparent.find('.xdsoft_scrollbar').hide();return}
963if(!$(this).hasClass('xdsoft_scroller_box')){timebox=timeboxparent.children().eq(0);timeboxTop=Math.abs(parseInt(timebox.css('marginTop'),10));parentHeight=timeboxparent[0].clientHeight;height=timebox[0].offsetHeight;scrollbar=$('<div class="xdsoft_scrollbar"></div>');scroller=$('<div class="xdsoft_scroller"></div>');scrollbar.append(scroller);timeboxparent.addClass('xdsoft_scroller_box').append(scrollbar);calcOffset=function calcOffset(event){var offset=pointerEventToXY(event).y-startY+startTopScroll;if(offset<0){offset=0}
964if(offset+scroller[0].offsetHeight>h1){offset=h1-scroller[0].offsetHeight}
965timeboxparent.trigger('scroll_element.xdsoft_scroller',[maximumOffset?offset/maximumOffset:0])};scroller.on('touchstart.xdsoft_scroller mousedown.xdsoft_scroller',function(event){if(!parentHeight){timeboxparent.trigger('resize_scroll.xdsoft_scroller',[percent])}
966startY=pointerEventToXY(event).y;startTopScroll=parseInt(scroller.css('marginTop'),10);h1=scrollbar[0].offsetHeight;if(event.type==='mousedown'||event.type==='touchstart'){if(options.ownerDocument){$(options.ownerDocument.body).addClass('xdsoft_noselect')}
967$([options.ownerDocument.body,options.contentWindow]).on('touchend mouseup.xdsoft_scroller',function arguments_callee(){$([options.ownerDocument.body,options.contentWindow]).off('touchend mouseup.xdsoft_scroller',arguments_callee).off('mousemove.xdsoft_scroller',calcOffset).removeClass('xdsoft_noselect')});$(options.ownerDocument.body).on('mousemove.xdsoft_scroller',calcOffset)}else{touchStart=!0;event.stopPropagation();event.preventDefault()}}).on('touchmove',function(event){if(touchStart){event.preventDefault();calcOffset(event)}}).on('touchend touchcancel',function(){touchStart=!1;startTopScroll=0});timeboxparent.on('scroll_element.xdsoft_scroller',function(event,percentage){if(!parentHeight){timeboxparent.trigger('resize_scroll.xdsoft_scroller',[percentage,!0])}
968percentage=percentage>1?1:(percentage<0||isNaN(percentage))?0:percentage;timeboxTop=parseFloat(Math.abs((timebox[0].offsetHeight-parentHeight)*percentage).toFixed(4));scroller.css('marginTop',maximumOffset*percentage);timebox.css('marginTop',-timeboxTop)}).on('resize_scroll.xdsoft_scroller',function(event,percentage,noTriggerScroll){var percent,sh;parentHeight=timeboxparent[0].clientHeight;height=timebox[0].offsetHeight;percent=parentHeight/height;sh=percent*scrollbar[0].offsetHeight;if(percent>1){scroller.hide()}else{scroller.show();scroller.css('height',parseInt(sh>10?sh:10,10));maximumOffset=scrollbar[0].offsetHeight-scroller[0].offsetHeight;if(noTriggerScroll!==!0){timeboxparent.trigger('scroll_element.xdsoft_scroller',[percentage||timeboxTop/(height-parentHeight)])}}});timeboxparent.on('mousewheel',function(event){var deltaY=getWheelDelta(event.originalEvent);var top=Math.max(0,timeboxTop-deltaY);timeboxparent.trigger('scroll_element.xdsoft_scroller',[top/(height-parentHeight)]);event.stopPropagation();return!1});timeboxparent.on('touchstart',function(event){start=pointerEventToXY(event);startTop=timeboxTop});timeboxparent.on('touchmove',function(event){if(start){event.preventDefault();var coord=pointerEventToXY(event);timeboxparent.trigger('scroll_element.xdsoft_scroller',[(startTop-(coord.y-start.y))/(height-parentHeight)])}});timeboxparent.on('touchend touchcancel',function(){start=!1;startTop=0})}
969timeboxparent.trigger('resize_scroll.xdsoft_scroller',[percent])})};$.fn.datetimepicker=function(opt,opt2){var result=this,KEY0=48,KEY9=57,_KEY0=96,_KEY9=105,CTRLKEY=17,CMDKEY=91,DEL=46,ENTER=13,ESC=27,BACKSPACE=8,ARROWLEFT=37,ARROWUP=38,ARROWRIGHT=39,ARROWDOWN=40,TAB=9,F5=116,AKEY=65,CKEY=67,VKEY=86,ZKEY=90,YKEY=89,ctrlDown=!1,cmdDown=!1,options=($.isPlainObject(opt)||!opt)?$.extend(!0,{},default_options,opt):$.extend(!0,{},default_options),lazyInitTimer=0,createDateTimePicker,destroyDateTimePicker,lazyInit=function(input){input.on('open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart',function initOnActionCallback(){if(input.is(':disabled')||input.data('xdsoft_datetimepicker')){return}
970clearTimeout(lazyInitTimer);lazyInitTimer=setTimeout(function(){if(!input.data('xdsoft_datetimepicker')){createDateTimePicker(input)}
971input.off('open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart',initOnActionCallback).trigger('open.xdsoft')},100)})};createDateTimePicker=function(input){var datetimepicker=$('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),xdsoft_copyright=$('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),datepicker=$('<div class="xdsoft_datepicker active"></div>'),month_picker=$('<div class="xdsoft_monthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button>'+'<div class="xdsoft_label xdsoft_month"><span></span><i></i></div>'+'<div class="xdsoft_label xdsoft_year"><span></span><i></i></div>'+'<button type="button" class="xdsoft_next"></button></div>'),calendar=$('<div class="xdsoft_calendar"></div>'),timepicker=$('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),timeboxparent=timepicker.find('.xdsoft_time_box').eq(0),timebox=$('<div class="xdsoft_time_variant"></div>
971'),applyButton=$('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),monthselect=$('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),yearselect=$('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),triggerAfterOpen=!1,XDSoft_datetime,xchangeTimer,timerclick,current_time_index,setPos,timer=0,_xdsoft_datetime,forEachAncestorOf;if(options.id){datetimepicker.attr('id',options.id)}
972if(options.style){datetimepicker.attr('style',options.style)}
973if(options.weeks){datetimepicker.addClass('xdsoft_showweeks')}
974if(options.rtl){datetimepicker.addClass('xdsoft_rtl')}
975datetimepicker.addClass('xdsoft_'+options.theme);datetimepicker.addClass(options.className);month_picker.find('.xdsoft_month span').after(monthselect);month_picker.find('.xdsoft_year span').after(yearselect);month_picker.find('.xdsoft_month,.xdsoft_year').on('touchstart mousedown.xdsoft',function(event){var select=$(this).find('.xdsoft_select').eq(0),val=0,top=0,visible=select.is(':visible'),items,i;month_picker.find('.xdsoft_select').hide();if(_xdsoft_datetime.currentTime){val=_xdsoft_datetime.currentTime[$(this).hasClass('xdsoft_month')?'getMonth':'getFullYear']()}
976select[visible?'hide':'show']();for(items=select.find('div.xdsoft_option'),i=0;i<items.length;i+=1){if(items.eq(i).data('value')===val){break}else{top+=items[0].offsetHeight}}
977select.xdsoftScroller(options,top/(select.children()[0].offsetHeight-(select[0].clientHeight)));event.stopPropagation();return!1});var handleTouchMoved=function(event){var evt=event.originalEvent;var touchPosition=evt.touches?evt.touches[0]:evt;this.touchStartPosition=this.touchStartPosition||touchPosition;var xMovement=Math.abs(this.touchStartPosition.clientX-touchPosition.clientX);var yMovement=Math.abs(this.touchStartPosition.clientY-touchPosition.clientY);var distance=Math.sqrt(xMovement*xMovement+yMovement*yMovement);if(distance>options.touchMovedThreshold){this.touchMoved=!0}}
978month_picker.find('.xdsoft_select').xdsoftScroller(options).on('touchstart mousedown.xdsoft',function(event){var evt=event.originalEvent;this.touchMoved=!1;this.touchStartPosition=evt.touches?evt.touches[0]:evt;event.stopPropagation();event.preventDefault()}).on('touchmove','.xdsoft_option',handleTouchMoved).on('touchend mousedown.xdsoft','.xdsoft_option',function(){if(!this.touchMoved){if(_xdsoft_datetime.currentTime===undefined||_xdsoft_datetime.currentTime===null){_xdsoft_datetime.currentTime=_xdsoft_datetime.now()}
979var year=_xdsoft_datetime.currentTime.getFullYear();if(_xdsoft_datetime&&_xdsoft_datetime.currentTime){_xdsoft_datetime.currentTime[$(this).parent().parent().hasClass('xdsoft_monthselect')?'setMonth':'setFullYear']($(this).data('value'))}
980$(this).parent().parent().hide();datetimepicker.trigger('xchange.xdsoft');if(options.onChangeMonth&&$.isFunction(options.onChangeMonth)){options.onChangeMonth.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'))}
981if(year!==_xdsoft_datetime.currentTime.getFullYear()&&$.isFunction(options.onChangeYear)){options.onChangeYear.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'))}}});datetimepicker.getValue=function(){return _xdsoft_datetime.getCurrentTime()};datetimepicker.setOptions=function(_options){var highlightedDates={};options=$.extend(!0,{},options,_options);if(_options.allowTimes&&$.isArray(_options.allowTimes)&&_options.allowTimes.length){options.allowTimes=$.extend(!0,[],_options.allowTimes)}
982if(_options.weekends&&$.isArray(_options.weekends)&&_options.weekends.length){options.weekends=$.extend(!0,[],_options.weekends)}
983if(_options.allowDates&&$.isArray(_options.allowDates)&&_options.allowDates.length){options.allowDates=$.extend(!0,[],_options.allowDates)}
984if(_options.allowDateRe&&Object.prototype.toString.call(_options.allowDateRe)==="[object String]"){options.allowDateRe=new RegExp(_options.allowDateRe)}
985if(_options.highlightedDates&&$.isArray(_options.highlightedDates)&&_options.highlightedDates.length){$.each(_options.highlightedDates,function(index,value){var splitData=$.map(value.split(','),$.trim),exDesc,hDate=new HighlightedDate(dateHelper.parseDate(splitData[0],options.formatDate),splitData[1],splitData[2]),keyDate=dateHelper.formatDate(hDate.date,options.formatDate);if(highlightedDates[keyDate]!==undefined){exDesc=highlightedDates[keyDate].desc;if(exDesc&&exDesc.length&&hDate.desc&&hDate.desc.length){highlightedDates[keyDate].desc=exDesc+"\n"+hDate.desc}}else{highlightedDates[keyDate]=hDate}});options.highlightedDates=$.extend(!0,[],highlightedDates)}
986if(_options.highlightedPeriods&&$.isArray(_options.highlightedPeriods)&&_options.highlightedPeriods.length){highlightedDates=$.extend(!0,[],options.highlightedDates);$.each(_options.highlightedPeriods,function(index,value){var dateTest,dateEnd,desc,hDate,keyDate,exDesc,style;if($.isArray(value)){dateTest=value[0];dateEnd=value[1];desc=value[2];style=value[3]}else{var splitData=$.map(value.split(','),$.trim);dateTest=dateHelper.parseDate(splitData[0],options.formatDate);dateEnd=dateHelper.parseDate(splitData[1],options.formatDate);desc=splitData[2];style=splitData[3]}
987while(dateTest<=dateEnd){hDate=new HighlightedDate(dateTest,desc,style);keyDate=dateHelper.formatDate(dateTest,options.formatDate);dateTest.setDate(dateTest.getDate()+1);if(highlightedDates[keyDate]!==undefined){exDesc=highlightedDates[keyDate].desc;if(exDesc&&exDesc.length&&hDate.desc&&hDate.desc.length){highlightedDates[keyDate].desc=exDesc+"\n"+hDate.desc}}else{highlightedDates[keyDate]=hDate}}});options.highlightedDates=$.extend(!0,[],highlightedDates)}
988if(_options.disabledDates&&$.isArray(_options.disabledDates)&&_options.disabledDates.length){options.disabledDates=$.extend(!0,[],_options.disabledDates)}
989if(_options.disabledWeekDays&&$.isArray(_options.disabledWeekDays)&&_options.disabledWeekDays.length){options.disabledWeekDays=$.extend(!0,[],_options.disabledWeekDays)}
990if((options.open||options.opened)&&(!options.inline)){input.trigger('open.xdsoft')}
991if(options.inline){triggerAfterOpen=!0;datetimepicker.addClass('xdsoft_inline');input.after(datetimepicker).hide()}
992if(options.inverseButton){options.next='xdsoft_prev';options.prev='xdsoft_next'}
993if(options.datepicker){datepicker.addClass('active')}else{datepicker.removeClass('active')}
994if(options.timepicker){timepicker.addClass('active')}else{timepicker.removeClass('active')}
995if(options.value){_xdsoft_datetime.setCurrentTime(options.value);if(input&&input.val){input.val(_xdsoft_datetime.str)}}
996if(isNaN(options.dayOfWeekStart)){options.dayOfWeekStart=0}else{options.dayOfWeekStart=parseInt(options.dayOfWeekStart,10)%7}
997if(!options.timepickerScrollbar){timeboxparent.xdsoftScroller(options,'hide')}
998if(options.minDate&&/^[\+\-](.*)$/.test(options.minDate)){options.minDate=dateHelper.formatDate(_xdsoft_datetime.strToDateTime(options.minDate),options.formatDate)}
999if(options.maxDate&&/^[\+\-](.*)$/.test(options.maxDate)){options.maxDate=dateHelper.formatDate(_xdsoft_datetime.strToDateTime(options.maxDate),options.formatDate)}
1000if(options.minDateTime&&/^\+(.*)$/.test(options.minDateTime)){options.minDateTime=_xdsoft_datetime.strToDateTime(options.minDateTime).dateFormat(options.formatDate)}
1001if(options.maxDateTime&&/^\+(.*)$/.test(options.maxDateTime)){options.maxDateTime=_xdsoft_datetime.strToDateTime(options.maxDateTime).dateFormat(options.formatDate)}
1002applyButton.toggle(options.showApplyButton);month_picker.find('.xdsoft_today_button').css('visibility',!options.todayButton?'hidden':'visible');month_picker.find('.'+options.prev).css('visibility',!options.prevButton?'hidden':'visible');month_picker.find('.'+options.next).css('visibility',!options.nextButton?'hidden':'visible');setMask(options);if(options.validateOnBlur){input.off('blur.xdsoft').on('blur.xdsoft',function(){if(options.allowBlank&&(!$.trim($(this).val()).length||(typeof options.mask==="string"&&$.trim($(this).val())===options.mask.replace(/[0-9]/g,'_')))){$(this).val(null);datetimepicker.data('xdsoft_datetime').empty()}else{var d=dateHelper.parseDate($(this).val(),options.format);if(d){$(this).val(dateHelper.formatDate(d,options.format))}else{var splittedHours=+([$(this).val()[0],$(this).val()[1]].join('')),splittedMinutes=+([$(this).val()[2],$(this).val()[3]].join(''));if(!options.datepicker&&options.timepicker&&splittedHours>=0&&splittedHours<24&&splittedMinutes>=0&&splittedMinutes<60){$(this).val([splittedHours,splittedMinutes].map(function(item){return item>9?item:'0'+item}).join(':'))}else{$(this).val(dateHelper.formatDate(_xdsoft_datetime.now(),options.format))}}
1003datetimepicker.data('xdsoft_datetime').setCurrentTime($(this).val())}
1004datetimepicker.trigger('changedatetime.xdsoft');datetimepicker.trigger('close.xdsoft')})}
1005options.dayOfWeekStartPrev=(options.dayOfWeekStart===0)?6:options.dayOfWeekStart-1;datetimepicker.trigger('xchange.xdsoft').trigger('afterOpen.xdsoft')};datetimepicker.data('options',options).on('touchstart mousedown.xdsoft',function(event){event.stopPropagation();event.preventDefault();yearselect.hide();monthselect.hide();return!1});timeboxparent.append(timebox);timeboxparent.xdsoftScroller(options);datetimepicker.on('afterOpen.xdsoft',function(){timeboxparent.xdsoftScroller(options)});datetimepicker.append(datepicker).append(timepicker);if(options.withoutCopyright!==!0){datetimepicker.append(xdsoft_copyright)}
1006datepicker.append(month_picker).append(calendar).append(applyButton);if(options.insideParent){$(input).parent().append(datetimepicker)}else{$(options.parentID).append(datetimepicker)}
1007XDSoft_datetime=function(){var _this=this;_this.now=function(norecursion){var d=new Date(),date,time;if(!norecursion&&options.defaultDate){date=_this.strToDateTime(options.defaultDate);d.setFullYear(date.getFullYear());d.setMonth(date.getMonth());d.setDate(date.getDate())}
1008d.setFullYear(d.getFullYear());if(!norecursion&&options.defaultTime){time=_this.strtotime(options.defaultTime);d.setHours(time.getHours());d.setMinutes(time.getMinutes());d.setSeconds(time.getSeconds());d.setMilliseconds(time.getMilliseconds())}
1009return d};_this.isValidDate=function(d){if(Object.prototype.toString.call(d)!=="[object Date]"){return!1}
1010return!isNaN(d.getTime())};_this.setCurrentTime=function(dTime,requireValidDate){if(typeof dTime==='string'){_this.currentTime=_this.strToDateTime(dTime)}else if(_this.isValidDate(dTime)){_this.currentTime=dTime}else if(!dTime&&!requireValidDate&&options.allowBlank&&!options.inline){_this.currentTime=null}else{_this.currentTime=_this.now()}
1011datetimepicker.trigger('xchange.xdsoft')};_this.empty=function(){_this.currentTime=null};_this.getCurrentTime=function(){return _this.currentTime};_this.nextMonth=function(){if(_this.currentTime===undefined||_this.currentTime===null){_this.currentTime=_this.now()}
1012var month=_this.currentTime.getMonth()+1,year;if(month===12){_this.currentTime.setFullYear(_this.currentTime.getFullYear()+1);month=0}
1013year=_this.currentTime.getFullYear();_this.currentTime.setDate(Math.min(new Date(_this.currentTime.getFullYear(),month+1,0).getDate(),_this.currentTime.getDate()));_this.currentTime.setMonth(month);if(options.onChangeMonth&&$.isFunction(options.onChangeMonth)){options.onChangeMonth.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'))}
1014if(year!==_this.currentTime.getFullYear()&&$.isFunction(options.onChangeYear)){options.onChangeYear.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'))}
1015datetimepicker.trigger('xchange.xdsoft');return month};_this.prevMonth=function(){if(_this.currentTime===undefined||_this.currentTime===null){_this.currentTime=_this.now()}
1016var month=_this.currentTime.getMonth()-1;if(month===-1){_this.currentTime.setFullYear(_this.currentTime.getFullYear()-1);month=11}
1017_this.currentTime.setDate(Math.min(new Date(_this.currentTime.getFullYear(),month+1,0).getDate(),_this.currentTime.getDate()));_this.currentTime.setMonth(month);if(options.onChangeMonth&&$.isFunction(options.onChangeMonth)){options.onChangeMonth.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'))}
1018datetimepicker.trigger('xchange.xdsoft');return month};_this.getWeekOfYear=function(datetime){if(options.onGetWeekOfYear&&$.isFunction(options.onGetWeekOfYear)){var week=options.onGetWeekOfYear.call(datetimepicker,datetime);if(typeof week!=='undefined'){return week}}
1019var onejan=new Date(datetime.getFullYear(),0,1);if(onejan.getDay()!==4){onejan.setMonth(0,1+((4-onejan.getDay()+7)%7))}
1020return Math.ceil((((datetime-onejan)/86400000)+onejan.getDay()+1)/7)};_this.strToDateTime=function(sDateTime){var tmpDate=[],timeOffset,currentTime;if(sDateTime&&sDateTime instanceof Date&&_this.isValidDate(sDateTime)){return sDateTime}
1021tmpDate=/^([+-]{1})(.*)$/.exec(sDateTime);if(tmpDate){tmpDate[2]=dateHelper.parseDate(tmpDate[2],options.formatDate)}
1022if(tmpDate&&tmpDate[2]){timeOffset=tmpDate[2].getTime()-(tmpDate[2].getTimezoneOffset())*60000;currentTime=new Date((_this.now(!0)).getTime()+parseInt(tmpDate[1]+'1',10)*timeOffset)}else{currentTime=sDateTime?dateHelper.parseDate(sDateTime,options.format):_this.now()}
1023if(!_this.isValidDate(currentTime)){currentTime=_this.now()}
1024return currentTime};_this.strToDate=function(sDate){if(sDate&&sDate instanceof Date&&_this.isValidDate(sDate)){return sDate}
1025var currentTime=sDate?dateHelper.parseDate(sDate,options.formatDate):_this.now(!0);if(!_this.isValidDate(currentTime)){currentTime=_this.now(!0)}
1026return currentTime};_this.strtotime=function(sTime){if(sTime&&sTime instanceof Date&&_this.isValidDate(sTime)){return sTime}
1027var currentTime=sTime?dateHelper.parseDate(sTime,options.formatTime):_this.now(!0);if(!_this.isValidDate(currentTime)){currentTime=_this.now(!0)}
1028return currentTime};_this.str=function(){var format=options.format;if(options.yearOffset){format=format.replace('Y',_this.currentTime.getFullYear()+options.yearOffset);format=format.replace('y',String(_this.currentTime.getFullYear()+options.yearOffset).substring(2,4))}
1029return dateHelper.formatDate(_this.currentTime,format)};_this.currentTime=this.now()};_xdsoft_datetime=new XDSoft_datetime();applyButton.on('touchend click',function(e){e.preventDefault();datetimepicker.data('changed',!0);_xdsoft_datetime.setCurrentTime(getCurrentValue());input.val(_xdsoft_datetime.str());datetimepicker.trigger('close.xdsoft')});month_picker.find('.xdsoft_today_button').on('touchend mousedown.xdsoft',function(){datetimepicker.data('changed',!0);_xdsoft_datetime.setCurrentTime(0,!0);datetimepicker.trigger('afterOpen.xdsoft')}).on('dblclick.xdsoft',function(){var currentDate=_xdsoft_datetime.getCurrentTime(),minDate,maxDate;currentDate=new Date(currentDate.getFullYear(),currentDate.getMonth(),currentDate.getDate());minDate=_xdsoft_datetime.strToDate(options.minDate);minDate=new Date(minDate.getFullYear(),minDate.getMonth(),minDate.getDate());if(currentDate<minDate){return}
1030maxDate=_xdsoft_datetime.strToDate(options.maxDate);maxDate=new Date(maxDate.getFullYear(),maxDate.getMonth(),maxDate.getDate());if(currentDate>maxDate){return}
1031input.val(_xdsoft_datetime.str());input.trigger('change');datetimepicker.trigger('close.xdsoft')});month_picker.find('.xdsoft_prev,.xdsoft_next').on('touchend mousedown.xdsoft',function(){var $this=$(this),timer=0,stop=!1;(function arguments_callee1(v){if($this.hasClass(options.next)){_xdsoft_datetime.nextMonth()}else if($this.hasClass(options.prev)){_xdsoft_datetime.prevMonth()}
1032if(options.monthChangeSpinner){if(!stop){timer=setTimeout(arguments_callee1,v||100)}}}(500));$([options.ownerDocument.body,options.contentWindow]).on('touchend mouseup.xdsoft',function arguments_callee2(){clearTimeout(timer);stop=!0;$([options.ownerDocument.body,options.contentWindow]).off('touchend mouseup.xdsoft',arguments_callee2)})});timepicker.find('.xdsoft_prev,.xdsoft_next').on('touchend mousedown.xdsoft',function(){var $this=$(this),timer=0,stop=!1,period=110;(function arguments_callee4(v){var pheight=timeboxparent[0].clientHeight,height=timebox[0].offsetHeight,top=Math.abs(parseInt(timebox.css('marginTop'),10));if($this.hasClass(options.next)&&(height-pheight)-options.timeHeightInTimePicker>=top){timebox.css('marginTop','-'+(top+options.timeHeightInTimePicker)+'px')}else if($this.hasClass(options.prev)&&top-options.timeHeightInTimePicker>=0){timebox.css('marginTop','-'+(top-options.timeHeightInTimePicker)+'px')}
1033timeboxparent.trigger('scroll_element.xdsoft_scroller',[Math.abs(parseInt(timebox[0].style.marginTop,10)/(height-pheight))]);period=(period>10)?10:period-10;if(!stop){timer=setTimeout(arguments_callee4,v||period)}}(500));$([options.ownerDocument.body,options.contentWindow]).on('touchend mouseup.xdsoft',function arguments_callee5(){clearTimeout(timer);stop=!0;$([options.ownerDocument.body,options.contentWindow]).off('touchend mouseup.xdsoft',arguments_callee5)})});xchangeTimer=0;datetimepicker.on('xchange.xdsoft',function(event){clearTimeout(xchangeTimer);xchangeTimer=setTimeout(function(){if(_xdsoft_datetime.currentTime===undefined||_xdsoft_datetime.currentTime===null){_xdsoft_datetime.currentTime=_xdsoft_datetime.now()}
1034var table='',start=new Date(_xdsoft_datetime.currentTime.getFullYear(),_xdsoft_datetime.currentTime.getMonth(),1,12,0,0),i=0,j,today=_xdsoft_datetime.now(),maxDate=!1,minDate=!1,minDateTime=!1,maxDateTime=!1,hDate,day,d,y,m,w,classes=[],customDateSettings,newRow=!0,time='',h,line_time,description;while(start.getDay()!==options.dayOfWeekStart){start.setDate(start.getDate()-1)}
1035table+='<table><thead><tr>';if(options.weeks){table+='<th></th>'}
1036for(j=0;j<7;j+=1){table+='<th>'+options.i18n[globalLocale].dayOfWeekShort[(j+options.dayOfWeekStart)%7]+'</th>'}
1037table+='</tr></thead>';table+='<tbody>';if(options.maxDate!==!1){maxDate=_xdsoft_datetime.strToDate(options.maxDate);maxDate=new Date(maxDate.getFullYear(),maxDate.getMonth(),maxDate.getDate(),23,59,59,999)}
1038if(options.minDate!==!1){minDate=_xdsoft_datetime.strToDate(options.minDate);minDate=new Date(minDate.getFullYear(),minDate.getMonth(),minDate.getDate())}
1039if(options.minDateTime!==!1){minDateTime=_xdsoft_datetime.strToDate(options.minDateTime);minDateTime=new Date(minDateTime.getFullYear(),minDateTime.getMonth(),minDateTime.getDate(),minDateTime.getHours(),minDateTime.getMinutes(),minDateTime.getSeconds())}
1040if(options.maxDateTime!==!1){maxDateTime=_xdsoft_datetime.strToDate(options.maxDateTime);maxDateTime=new Date(maxDateTime.getFullYear(),maxDateTime.getMonth(),maxDateTime.getDate(),maxDateTime.getHours(),maxDateTime.getMinutes(),maxDateTime.getSeconds())}
1041var maxDateTimeDay;if(maxDateTime!==!1){maxDateTimeDay=((maxDateTime.getFullYear()*12)+maxDateTime.getMonth())*31+maxDateTime.getDate()}
1042while(i<_xdsoft_datetime.currentTime.countDaysInMonth()||start.getDay()!==options.dayOfWeekStart||_xdsoft_datetime.currentTime.getMonth()===start.getMonth()){classes=[];i+=1;day=start.getDay();d=start.getDate();y=start.getFullYear();m=start.getMonth();w=_xdsoft_datetime.getWeekOfYear(start);description='';classes.push('xdsoft_date');if(options.beforeShowDay&&$.isFunction(options.beforeShowDay.call)){customDateSettings=options.beforeShowDay.call(datetimepicker,start)}else{customDateSettings=null}
1043if(options.allowDateRe&&Object.prototype.toString.call(options.allowDateRe)==="[object RegExp]"){if(!options.allowDateRe.test(dateHelper.formatDate(start,options.formatDate))){classes.push('xdsoft_disabled')}}
1044if(options.allowDates&&options.allowDates.length>0){if(options.allowDates.indexOf(dateHelper.formatDate(start,options.formatDate))===-1){classes.push('xdsoft_disabled')}}
1045var currentDay=((start.getFullYear()*12)+start.getMonth())*31+start.getDate();if((maxDate!==!1&&start>maxDate)||(minDateTime!==!1&&start<minDateTime)||(minDate!==!1&&start<minDate)||(maxDateTime!==!1&&currentDay>maxDateTimeDay)||(customDateSettings&&customDateSettings[0]===!1)){classes.push('xdsoft_disabled')}
1046if(options.disabledDates.indexOf(dateHelper.formatDate(start,options.formatDate))!==-1){classes.push('xdsoft_disabled')}
1047if(options.disabledWeekDays.indexOf(day)!==-1){classes.push('xdsoft_disabled')}
1048if(input.is('[disabled]')){classes.push('xdsoft_disabled')}
1049if(customDateSettings&&customDateSettings[1]!==""){classes.push(customDateSettings[1])}
1050if(_xdsoft_datetime.currentTime.getMonth()!==m){classes.push('xdsoft_other_month')}
1051if((options.defaultSelect||datetimepicker.data('changed'))&&dateHelper.formatDate(_xdsoft_datetime.currentTime,options.formatDate)===dateHelper.formatDate(start,options.formatDate)){classes.push('xdsoft_current')}
1052if(dateHelper.formatDate(today,options.formatDate)===dateHelper.formatDate(start,options.formatDate)){classes.push('xdsoft_today')}
1053if(start.getDay()===0||start.getDay()===6||options.weekends.indexOf(dateHelper.formatDate(start,options.formatDate))!==-1){classes.push('xdsoft_weekend')}
1054if(options.highlightedDates[dateHelper.formatDate(start,options.formatDate)]!==undefined){hDate=options.highlightedDates[dateHelper.formatDate(start,options.formatDate)];classes.push(hDate.style===undefined?'xdsoft_highlighted_default':hDate.style);description=hDate.desc===undefined?'':hDate.desc}
1055if(options.beforeShowDay&&$.isFunction(options.beforeShowDay)){classes.push(options.beforeShowDay(start))}
1056if(newRow){table+='<tr>';newRow=!1;if(options.weeks){table+='<th>'+w+'</th>'}}
1057table+='<td data-date="'+d+'" data-month="'+m+'" data-year="'+y+'"'+' class="xdsoft_date xdsoft_day_of_week'+start.getDay()+' '+classes.join(' ')+'" title="'+description+'">'+'<div>'+d+'</div>'+'</td>';if(start.getDay()===options.dayOfWeekStartPrev){table+='</tr>';newRow=!0}
1057
1058start.setDate(d+1)}
1059table+='</tbody></table>';calendar.html(table);month_picker.find('.xdsoft_label span').eq(0).text(options.i18n[globalLocale].months[_xdsoft_datetime.currentTime.getMonth()]);month_picker.find('.xdsoft_label span').eq(1).text(_xdsoft_datetime.currentTime.getFullYear()+options.yearOffset);time='';h='';m='';var minTimeMinutesOfDay=0;if(options.minTime!==!1){var t=_xdsoft_datetime.strtotime(options.minTime);minTimeMinutesOfDay=60*t.getHours()+t.getMinutes()}
1060var maxTimeMinutesOfDay=24*60;if(options.maxTime!==!1){var t=_xdsoft_datetime.strtotime(options.maxTime);maxTimeMinutesOfDay=60*t.getHours()+t.getMinutes()}
1061if(options.minDateTime!==!1){var t=_xdsoft_datetime.strToDateTime(options.minDateTime);var currentDayIsMinDateTimeDay=dateHelper.formatDate(_xdsoft_datetime.currentTime,options.formatDate)===dateHelper.formatDate(t,options.formatDate);if(currentDayIsMinDateTimeDay){var m=60*t.getHours()+t.getMinutes();if(m>minTimeMinutesOfDay)minTimeMinutesOfDay=m}}
1062if(options.maxDateTime!==!1){var t=_xdsoft_datetime.strToDateTime(options.maxDateTime);var currentDayIsMaxDateTimeDay=dateHelper.formatDate(_xdsoft_datetime.currentTime,options.formatDate)===dateHelper.formatDate(t,options.formatDate);if(currentDayIsMaxDateTimeDay){var m=60*t.getHours()+t.getMinutes();if(m<maxTimeMinutesOfDay)maxTimeMinutesOfDay=m}}
1063line_time=function line_time(h,m){var now=_xdsoft_datetime.now(),current_time,isALlowTimesInit=options.allowTimes&&$.isArray(options.allowTimes)&&options.allowTimes.length;now.setHours(h);h=parseInt(now.getHours(),10);now.setMinutes(m);m=parseInt(now.getMinutes(),10);classes=[];var currentMinutesOfDay=60*h+m;if(input.is('[disabled]')||(currentMinutesOfDay>=maxTimeMinutesOfDay)||(currentMinutesOfDay<minTimeMinutesOfDay)){classes.push('xdsoft_disabled')}
1064current_time=new Date(_xdsoft_datetime.currentTime);current_time.setHours(parseInt(_xdsoft_datetime.currentTime.getHours(),10));if(!isALlowTimesInit){current_time.setMinutes(Math[options.roundTime](_xdsoft_datetime.currentTime.getMinutes()/options.step)*options.step)}
1065if((options.initTime||options.defaultSelect||datetimepicker.data('changed'))&&current_time.getHours()===parseInt(h,10)&&((!isALlowTimesInit&&options.step>59)||current_time.getMinutes()===parseInt(m,10))){if(options.defaultSelect||datetimepicker.data('changed')){classes.push('xdsoft_current')}else if(options.initTime){classes.push('xdsoft_init_time')}}
1066if(parseInt(today.getHours(),10)===parseInt(h,10)&&parseInt(today.getMinutes(),10)===parseInt(m,10)){classes.push('xdsoft_today')}
1067time+='<div class="xdsoft_time '+classes.join(' ')+'" data-hour="'+h+'" data-minute="'+m+'">'+dateHelper.formatDate(now,options.formatTime)+'</div>'};if(!options.allowTimes||!$.isArray(options.allowTimes)||!options.allowTimes.length){for(i=0,j=0;i<(options.hours12?12:24);i+=1){for(j=0;j<60;j+=options.step){var currentMinutesOfDay=i*60+j;if(currentMinutesOfDay<minTimeMinutesOfDay)continue;if(currentMinutesOfDay>=maxTimeMinutesOfDay)continue;h=(i<10?'0':'')+i;m=(j<10?'0':'')+j;line_time(h,m)}}}else{for(i=0;i<options.allowTimes.length;i+=1){h=_xdsoft_datetime.strtotime(options.allowTimes[i]).getHours();m=_xdsoft_datetime.strtotime(options.allowTimes[i]).getMinutes();line_time(h,m)}}
1068timebox.html(time);opt='';for(i=parseInt(options.yearStart,10);i<=parseInt(options.yearEnd,10);i+=1){opt+='<div class="xdsoft_option '+(_xdsoft_datetime.currentTime.getFullYear()===i?'xdsoft_current':'')+'" data-value="'+i+'">'+(i+options.yearOffset)+'</div>'}
1069yearselect.children().eq(0).html(opt);for(i=parseInt(options.monthStart,10),opt='';i<=parseInt(options.monthEnd,10);i+=1){opt+='<div class="xdsoft_option '+(_xdsoft_datetime.currentTime.getMonth()===i?'xdsoft_current':'')+'" data-value="'+i+'">'+options.i18n[globalLocale].months[i]+'</div>'}
1070monthselect.children().eq(0).html(opt);$(datetimepicker).trigger('generate.xdsoft')},10);event.stopPropagation()}).on('afterOpen.xdsoft',function(){if(options.timepicker){var classType,pheight,height,top;if(timebox.find('.xdsoft_current').length){classType='.xdsoft_current'}else if(timebox.find('.xdsoft_init_time').length){classType='.xdsoft_init_time'}
1071if(classType){pheight=timeboxparent[0].clientHeight;height=timebox[0].offsetHeight;top=timebox.find(classType).index()*options.timeHeightInTimePicker+1;if((height-pheight)<top){top=height-pheight}
1072timeboxparent.trigger('scroll_element.xdsoft_scroller',[parseInt(top,10)/(height-pheight)])}else{timeboxparent.trigger('scroll_element.xdsoft_scroller',[0])}}});timerclick=0;calendar.on('touchend click.xdsoft','td',function(xdevent){xdevent.stopPropagation();timerclick+=1;var $this=$(this),currentTime=_xdsoft_datetime.currentTime;if(currentTime===undefined||currentTime===null){_xdsoft_datetime.currentTime=_xdsoft_datetime.now();currentTime=_xdsoft_datetime.currentTime}
1073if($this.hasClass('xdsoft_disabled')){return!1}
1074currentTime.setDate(1);currentTime.setFullYear($this.data('year'));currentTime.setMonth($this.data('month'));currentTime.setDate($this.data('date'));datetimepicker.trigger('select.xdsoft',[currentTime]);input.val(_xdsoft_datetime.str());if(options.onSelectDate&&$.isFunction(options.onSelectDate)){options.onSelectDate.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'),xdevent)}
1075datetimepicker.data('changed',!0);datetimepicker.trigger('xchange.xdsoft');datetimepicker.trigger('changedatetime.xdsoft');if((timerclick>1||(options.closeOnDateSelect===!0||(options.closeOnDateSelect===!1&&!options.timepicker)))&&!options.inline){datetimepicker.trigger('close.xdsoft')}
1076setTimeout(function(){timerclick=0},200)});timebox.on('touchstart','div',function(xdevent){this.touchMoved=!1}).on('touchmove','div',handleTouchMoved).on('touchend click.xdsoft','div',function(xdevent){if(!this.touchMoved){xdevent.stopPropagation();var $this=$(this),currentTime=_xdsoft_datetime.currentTime;if(currentTime===undefined||currentTime===null){_xdsoft_datetime.currentTime=_xdsoft_datetime.now();currentTime=_xdsoft_datetime.currentTime}
1077if($this.hasClass('xdsoft_disabled')){return!1}
1078currentTime.setHours($this.data('hour'));currentTime.setMinutes($this.data('minute'));datetimepicker.trigger('select.xdsoft',[currentTime]);datetimepicker.data('input').val(_xdsoft_datetime.str());if(options.onSelectTime&&$.isFunction(options.onSelectTime)){options.onSelectTime.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'),xdevent)}
1079datetimepicker.data('changed',!0);datetimepicker.trigger('xchange.xdsoft');datetimepicker.trigger('changedatetime.xdsoft');if(options.inline!==!0&&options.closeOnTimeSelect===!0){datetimepicker.trigger('close.xdsoft')}}});datepicker.on('mousewheel.xdsoft',function(event){if(!options.scrollMonth){return!0}
1080if(event.deltaY<0){_xdsoft_datetime.nextMonth()}else{_xdsoft_datetime.prevMonth()}
1081return!1});input.on('mousewheel.xdsoft',function(event){if(!options.scrollInput){return!0}
1082if(!options.datepicker&&options.timepicker){current_time_index=timebox.find('.xdsoft_current').length?timebox.find('.xdsoft_current').eq(0).index():0;if(current_time_index+event.deltaY>=0&&current_time_index+event.deltaY<timebox.children().length){current_time_index+=event.deltaY}
1083if(timebox.children().eq(current_time_index).length){timebox.children().eq(current_time_index).trigger('mousedown')}
1084return!1}
1085if(options.datepicker&&!options.timepicker){datepicker.trigger(event,[event.deltaY,event.deltaX,event.deltaY]);if(input.val){input.val(_xdsoft_datetime.str())}
1086datetimepicker.trigger('changedatetime.xdsoft');return!1}});datetimepicker.on('changedatetime.xdsoft',function(event){if(options.onChangeDateTime&&$.isFunction(options.onChangeDateTime)){var $input=datetimepicker.data('input');options.onChangeDateTime.call(datetimepicker,_xdsoft_datetime.currentTime,$input,event);delete options.value;$input.trigger('change')}}).on('generate.xdsoft',function(){if(options.onGenerate&&$.isFunction(options.onGenerate)){options.onGenerate.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'))}
1087if(triggerAfterOpen){datetimepicker.trigger('afterOpen.xdsoft');triggerAfterOpen=!1}}).on('click.xdsoft',function(xdevent){xdevent.stopPropagation()});current_time_index=0;forEachAncestorOf=function(node,callback){do{node=node.parentNode;if(!node||callback(node)===!1){break}}while(node.nodeName!=='HTML');};setPos=function(){var dateInputOffset,dateInputElem,verticalPosition,left,position,datetimepickerElem,dateInputHasFixedAncestor,$dateInput,windowWidth,verticalAnchorEdge,datetimepickerCss,windowHeight,windowScrollTop;$dateInput=datetimepicker.data('input');dateInputOffset=$dateInput.offset();dateInputElem=$dateInput[0];verticalAnchorEdge='top';verticalPosition=(dateInputOffset.top+dateInputElem.offsetHeight)-1;left=dateInputOffset.left;position="absolute";windowWidth=$(options.contentWindow).width();windowHeight=$(options.contentWindow).height();windowScrollTop=$(options.contentWindow).scrollTop();if((options.ownerDocument.documentElement.clientWidth-dateInputOffset.left)<datepicker.parent().outerWidth(!0)){var diff=datepicker.parent().outerWidth(!0)-dateInputElem.offsetWidth;left=left-diff}
1088if($dateInput.parent().css('direction')==='rtl'){left-=(datetimepicker.outerWidth()-$dateInput.outerWidth())}
1089if(options.fixed){verticalPosition-=windowScrollTop;left-=$(options.contentWindow).scrollLeft();position="fixed"}else{dateInputHasFixedAncestor=!1;forEachAncestorOf(dateInputElem,function(ancestorNode){if(ancestorNode===null){return!1}
1090if(options.contentWindow.getComputedStyle(ancestorNode).getPropertyValue('position')==='fixed'){dateInputHasFixedAncestor=!0;return!1}});if(dateInputHasFixedAncestor&&!options.insideParent){position='fixed';if(verticalPosition+datetimepicker.outerHeight()>windowHeight+windowScrollTop){verticalAnchorEdge='bottom';verticalPosition=(windowHeight+windowScrollTop)-dateInputOffset.top}else{verticalPosition-=windowScrollTop}}else{if(verticalPosition+datetimepicker[0].offsetHeight>windowHeight+windowScrollTop){verticalPosition=dateInputOffset.top-datetimepicker[0].offsetHeight+1}}
1091if(verticalPosition<0){verticalPosition=0}
1092if(left+dateInputElem.offsetWidth>windowWidth){left=windowWidth-dateInputElem.offsetWidth}}
1093datetimepickerElem=datetimepicker[0];forEachAncestorOf(datetimepickerElem,function(ancestorNode){var ancestorNodePosition;ancestorNodePosition=options.contentWindow.getComputedStyle(ancestorNode).getPropertyValue('position');if(ancestorNodePosition==='relative'&&windowWidth>=ancestorNode.offsetWidth){left=left-((windowWidth-ancestorNode.offsetWidth)/2);return!1}});datetimepickerCss={position:position,left:options.insideParent?dateInputElem.offsetLeft:left,top:'',bottom:''};if(options.insideParent){datetimepickerCss[verticalAnchorEdge]=dateInputElem.offsetTop+dateInputElem.offsetHeight}else{datetimepickerCss[verticalAnchorEdge]=verticalPosition}
1094datetimepicker.css(datetimepickerCss)};datetimepicker.on('open.xdsoft',function(event){var onShow=!0;if(options.onShow&&$.isFunction(options.onShow)){onShow=options.onShow.call(
1094datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'),event)}
1095if(onShow!==!1){datetimepicker.show();setPos();$(options.contentWindow).off('resize.xdsoft',setPos).on('resize.xdsoft',setPos);if(options.closeOnWithoutClick){$([options.ownerDocument.body,options.contentWindow]).on('touchstart mousedown.xdsoft',function arguments_callee6(){datetimepicker.trigger('close.xdsoft');$([options.ownerDocument.body,options.contentWindow]).off('touchstart mousedown.xdsoft',arguments_callee6)})}}}).on('close.xdsoft',function(event){var onClose=!0;month_picker.find('.xdsoft_month,.xdsoft_year').find('.xdsoft_select').hide();if(options.onClose&&$.isFunction(options.onClose)){onClose=options.onClose.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'),event)}
1096if(onClose!==!1&&!options.opened&&!options.inline){datetimepicker.hide()}
1097event.stopPropagation()}).on('toggle.xdsoft',function(){if(datetimepicker.is(':visible')){datetimepicker.trigger('close.xdsoft')}else{datetimepicker.trigger('open.xdsoft')}}).data('input',input);timer=0;datetimepicker.data('xdsoft_datetime',_xdsoft_datetime);datetimepicker.setOptions(options);function getCurrentValue(){var ct=!1,time;if(options.startDate){ct=_xdsoft_datetime.strToDate(options.startDate)}else{ct=options.value||((input&&input.val&&input.val())?input.val():'');if(ct){ct=_xdsoft_datetime.strToDateTime(ct);if(options.yearOffset){ct=new Date(ct.getFullYear()-options.yearOffset,ct.getMonth(),ct.getDate(),ct.getHours(),ct.getMinutes(),ct.getSeconds(),ct.getMilliseconds())}}else if(options.defaultDate){ct=_xdsoft_datetime.strToDateTime(options.defaultDate);if(options.defaultTime){time=_xdsoft_datetime.strtotime(options.defaultTime);ct.setHours(time.getHours());ct.setMinutes(time.getMinutes())}}}
1098if(ct&&_xdsoft_datetime.isValidDate(ct)){datetimepicker.data('changed',!0)}else{ct=''}
1099return ct||0}
1100function setMask(options){var isValidValue=function(mask,value){var reg=mask.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,'\\$1').replace(/_/g,'{digit+}').replace(/([0-9]{1})/g,'{digit$1}').replace(/\{digit([0-9]{1})\}/g,'[0-$1_]{1}').replace(/\{digit[\+]\}/g,'[0-9_]{1}');return(new RegExp(reg)).test(value)},getCaretPos=function(input){try{if(options.ownerDocument.selection&&options.ownerDocument.selection.createRange){var range=options.ownerDocument.selection.createRange();return range.getBookmark().charCodeAt(2)-2}
1101if(input.setSelectionRange){return input.selectionStart}}catch(e){return 0}},setCaretPos=function(node,pos){node=(typeof node==="string"||node instanceof String)?options.ownerDocument.getElementById(node):node;if(!node){return!1}
1102if(node.createTextRange){var textRange=node.createTextRange();textRange.collapse(!0);textRange.moveEnd('character',pos);textRange.moveStart('character',pos);textRange.select();return!0}
1103if(node.setSelectionRange){node.setSelectionRange(pos,pos);return!0}
1104return!1};if(options.mask){input.off('keydown.xdsoft')}
1105if(options.mask===!0){if(dateHelper.formatMask){options.mask=dateHelper.formatMask(options.format)}else{options.mask=options.format.replace(/Y/g,'9999').replace(/F/g,'9999').replace(/m/g,'19').replace(/d/g,'39').replace(/H/g,'29').replace(/i/g,'59').replace(/s/g,'59')}}
1106if($.type(options.mask)==='string'){if(!isValidValue(options.mask,input.val())){input.val(options.mask.replace(/[0-9]/g,'_'));setCaretPos(input[0],0)}
1107input.on('paste.xdsoft',function(event){var clipboardData=event.clipboardData||event.originalEvent.clipboardData||window.clipboardData,pastedData=clipboardData.getData('text'),val=this.value,pos=this.selectionStart
1108var valueBeforeCursor=val.substr(0,pos);var valueAfterPaste=val.substr(pos+pastedData.length);val=valueBeforeCursor+pastedData+valueAfterPaste;pos+=pastedData.length;if(isValidValue(options.mask,val)){this.value=val;setCaretPos(this,pos)}else if($.trim(val)===''){this.value=options.mask.replace(/[0-9]/g,'_')}else{input.trigger('error_input.xdsoft')}
1109event.preventDefault();return!1});input.on('keydown.xdsoft',function(event){var val=this.value,key=event.which,pos=this.selectionStart,selEnd=this.selectionEnd,hasSel=pos!==selEnd,digit;if(((key>=KEY0&&key<=KEY9)||(key>=_KEY0&&key<=_KEY9))||(key===BACKSPACE||key===DEL)){digit=(key===BACKSPACE||key===DEL)?'_':String.fromCharCode((_KEY0<=key&&key<=_KEY9)?key-KEY0:key);if(key===BACKSPACE&&pos&&!hasSel){pos-=1}
1110while(!0){var maskValueAtCurPos=options.mask.substr(pos,1);var posShorterThanMaskLength=pos<options.mask.length;var posGreaterThanZero=pos>0;var notNumberOrPlaceholder=/[^0-9_]/;var curPosOnSep=notNumberOrPlaceholder.test(maskValueAtCurPos);var continueMovingPosition=curPosOnSep&&posShorterThanMaskLength&&posGreaterThanZero
1111if(!continueMovingPosition)break;pos+=(key===BACKSPACE&&!hasSel)?-1:1}
1112if(event.metaKey){pos=0;hasSel=!0}
1113if(hasSel){var selLength=selEnd-pos
1114var defaultBlank=options.mask.replace(/[0-9]/g,'_');var defaultBlankSelectionReplacement=defaultBlank.substr(pos,selLength);var selReplacementRemainder=defaultBlankSelectionReplacement.substr(1)
1115var valueBeforeSel=val.substr(0,pos);var insertChars=digit+selReplacementRemainder;var charsAfterSelection=val.substr(pos+selLength);val=valueBeforeSel+insertChars+charsAfterSelection}else{var valueBeforeCursor=val.substr(0,pos);var insertChar=digit;var valueAfterNextChar=val.substr(pos+1);val=valueBeforeCursor+insertChar+valueAfterNextChar}
1116if($.trim(val)===''){val=defaultBlank}else{if(pos===options.mask.length){event.preventDefault();return!1}}
1117pos+=(key===BACKSPACE)?0:1;while(/[^0-9_]/.test(options.mask.substr(pos,1))&&pos<options.mask.length&&pos>0){pos+=(key===BACKSPACE)?0:1}
1118if(isValidValue(options.mask,val)){this.value=val;setCaretPos(this,pos)}else if($.trim(val)===''){this.value=options.mask.replace(/[0-9]/g,'_')}else{input.trigger('error_input.xdsoft')}}else{if(([AKEY,CKEY,VKEY,ZKEY,YKEY].indexOf(key)!==-1&&ctrlDown)||[ESC,ARROWUP,ARROWDOWN,ARROWLEFT,ARROWRIGHT,F5,CTRLKEY,TAB,ENTER].indexOf(key)!==-1){return!0}}
1119event.preventDefault();return!1})}}
1120_xdsoft_datetime.setCurrentTime(getCurrentValue());input.data('xdsoft_datetimepicker',datetimepicker).on('open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart',function(){if(input.is(':disabled')||(input.data('xdsoft_datetimepicker').is(':visible')&&options.closeOnInputClick)){return}
1121if(!options.openOnFocus){return}
1122clearTimeout(timer);timer=setTimeout(function(){if(input.is(':disabled')){return}
1123triggerAfterOpen=!0;_xdsoft_datetime.setCurrentTime(getCurrentValue(),!0);if(options.mask){setMask(options)}
1124datetimepicker.trigger('open.xdsoft')},100)}).on('keydown.xdsoft',function(event){var elementSelector,key=event.which;if([ENTER].indexOf(key)!==-1&&options.enterLikeTab){elementSelector=$("input:visible,textarea:visible,button:visible,a:visible");datetimepicker.trigger('close.xdsoft');elementSelector.eq(elementSelector.index(this)+1).focus();return!1}
1125if([TAB].indexOf(key)!==-1){datetimepicker.trigger('close.xdsoft');return!0}}).on('blur.xdsoft',function(){datetimepicker.trigger('close.xdsoft')})};destroyDateTimePicker=function(input){var datetimepicker=input.data('xdsoft_datetimepicker');if(datetimepicker){datetimepicker.data('xdsoft_datetime',null);datetimepicker.remove();input.data('xdsoft_datetimepicker',null).off('.xdsoft');$(options.contentWindow).off('resize.xdsoft');$([options.contentWindow,options.ownerDocument.body]).off('mousedown.xdsoft touchstart');if(input.unmousewheel){input.unmousewheel()}}};$(options.ownerDocument).off('keydown.xdsoftctrl keyup.xdsoftctrl').off('keydown.xdsoftcmd keyup.xdsoftcmd').on('keydown.xdsoftctrl',function(e){if(e.keyCode===CTRLKEY){ctrlDown=!0}}).on('keyup.xdsoftctrl',function(e){if(e.keyCode===CTRLKEY){ctrlDown=!1}}).on('keydown.xdsoftcmd',function(e){if(e.keyCode===CMDKEY){cmdDown=!0}}).on('keyup.xdsoftcmd',function(e){if(e.keyCode===CMDKEY){cmdDown=!1}});this.each(function(){var datetimepicker=$(this).data('xdsoft_datetimepicker'),$input;if(datetimepicker){if($.type(opt)==='string'){switch(opt){case 'show':$(this).select().focus();datetimepicker.trigger('open.xdsoft');break;case 'hide':datetimepicker.trigger('close.xdsoft');break;case 'toggle':datetimepicker.trigger('toggle.xdsoft');break;case 'destroy':destroyDateTimePicker($(this));break;case 'reset':this.value=this.defaultValue;if(!this.value||!datetimepicker.data('xdsoft_datetime').isValidDate(dateHelper.parseDate(this.value,options.format))){datetimepicker.data('changed',!1)}
1126datetimepicker.data('xdsoft_datetime').setCurrentTime(this.value);break;case 'validate':$input=datetimepicker.data('input');$input.trigger('blur.xdsoft');break;default:if(datetimepicker[opt]&&$.isFunction(datetimepicker[opt])){result=datetimepicker[opt](opt2)}}}else{datetimepicker.setOptions(opt)}
1127return 0}
1128if($.type(opt)!=='string'){if(!options.lazyInit||options.open||options.inline){createDateTimePicker($(this))}else{lazyInit($(this))}}});return result};$.fn.datetimepicker.defaults=default_options;function HighlightedDate(date,desc,style){"use strict";this.date=date;this.desc=desc;this.style=style}};(function(factory){if(typeof define==='function'&&define.amd){define(['jquery','jquery-mousewheel'],factory)}else if(typeof exports==='object'){module.exports=factory(require('jquery'))}else{factory(jQuery)}}(datetimepickerFactory));
1129/*!
1130 * jQuery Mousewheel 3.1.13
1131 *
1132 * Copyright jQuery Foundation and other contributors
1133 * Released under the MIT license
1134 * http://jquery.org/license
1135 */
1136(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports==='object'){module.exports=factory}else{factory(jQuery)}}(function($){var toFix=['wheel','mousewheel','DOMMouseScroll','MozMousePixelScroll'],toBind=('onwheel' in document||document.documentMode>=9)?['wheel']:['mousewheel','DomMouseScroll','MozMousePixelScroll'],slice=Array.prototype.slice,nullLowestDeltaT
1136imeout,lowestDelta;if($.event.fixHooks){for(var i=toFix.length;i;){$.event.fixHooks[toFix[--i]]=$.event.mouseHooks}}
1137var special=$.event.special.mousewheel={version:'3.1.12',setup:function(){if(this.addEventListener){for(var i=toBind.length;i;){this.addEventListener(toBind[--i],handler,!1)}}else{this.onmousewheel=handler}
1138$.data(this,'mousewheel-line-height',special.getLineHeight(this));$.data(this,'mousewheel-page-height',special.getPageHeight(this))},teardown:function(){if(this.removeEventListener){for(var i=toBind.length;i;){this.removeEventListener(toBind[--i],handler,!1)}}else{this.onmousewheel=null}
1139$.removeData(this,'mousewheel-line-height');$.removeData(this,'mousewheel-page-height')},getLineHeight:function(elem){var $elem=$(elem),$parent=$elem['offsetParent' in $.fn?'offsetParent':'parent']();if(!$parent.length){$parent=$('body')}
1140return parseInt($parent.css('fontSize'),10)||parseInt($elem.css('fontSize'),10)||16},getPageHeight:function(elem){return $(elem).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};$.fn.extend({mousewheel:function(fn){return fn?this.bind('mousewheel',fn):this.trigger('mousewheel')},unmousewheel:function(fn){return this.unbind('mousewheel',fn)}});function handler(event){var orgEvent=event||window.event,args=slice.call(arguments,1),delta=0,deltaX=0,deltaY=0,absDelta=0,offsetX=0,offsetY=0;event=$.event.fix(orgEvent);event.type='mousewheel';if('detail' in orgEvent){deltaY=orgEvent.detail*-1}
1141if('wheelDelta' in orgEvent){deltaY=orgEvent.wheelDelta}
1142if('wheelDeltaY' in orgEvent){deltaY=orgEvent.wheelDeltaY}
1143if('wheelDeltaX' in orgEvent){deltaX=orgEvent.wheelDeltaX*-1}
1144if('axis' in orgEvent&&orgEvent.axis===orgEvent.HORIZONTAL_AXIS){deltaX=deltaY*-1;deltaY=0}
1145delta=deltaY===0?deltaX:deltaY;if('deltaY' in orgEvent){deltaY=orgEvent.deltaY*-1;delta=deltaY}
1146if('deltaX' in orgEvent){deltaX=orgEvent.deltaX;if(deltaY===0){delta=deltaX*-1}}
1147if(deltaY===0&&deltaX===0){return}
1148if(orgEvent.deltaMode===1){var lineHeight=$.data(this,'mousewheel-line-height');delta*=lineHeight;deltaY*=lineHeight;deltaX*=lineHeight}else if(orgEvent.deltaMode===2){var pageHeight=$.data(this,'mousewheel-page-height');delta*=pageHeight;deltaY*=pageHeight;deltaX*=pageHeight}
1149absDelta=Math.max(Math.abs(deltaY),Math.abs(deltaX));if(!lowestDelta||absDelta<lowestDelta){lowestDelta=absDelta;if(shouldAdjustOldDeltas(orgEvent,absDelta)){lowestDelta/=40}}
1150if(shouldAdjustOldDeltas(orgEvent,absDelta)){delta/=40;deltaX/=40;deltaY/=40}
1151delta=Math[delta>=1?'floor':'ceil'](delta/lowestDelta);deltaX=Math[deltaX>=1?'floor':'ceil'](deltaX/lowestDelta);deltaY=Math[deltaY>=1?'floor':'ceil'](deltaY/lowestDelta);if(special.settings.normalizeOffset&&this.getBoundingClientRect){var boundingRect=this.getBoundingClientRect();offsetX=event.clientX-boundingRect.left;offsetY=event.clientY-boundingRect.top}
1152event.deltaX=deltaX;event.deltaY=deltaY;event.deltaFactor=lowestDelta;event.offsetX=offsetX;event.offsetY=offsetY;event.deltaMode=0;args.unshift(event,delta,deltaX,deltaY);if(nullLowestDeltaTimeout){clearTimeout(nullLowestDeltaTimeout)}
1153nullLowestDeltaTimeout=setTimeout(nullLowestDelta,200);return($.event.dispatch||$.event.handle).apply(this,args)}
1154function nullLowestDelta(){lowestDelta=null}
1155function shouldAdjustOldDeltas(orgEvent,absDelta){return special.settings.adjustOldDeltas&&orgEvent.type==='mousewheel'&&absDelta%120===0}}));document.addEventListener('DOMContentLoaded',function(){var formatTime='H:i';var pageLang=$('html').attr('lang');switch(pageLang){case 'de':case 'de_DE':dateLocale='de';formatDate='d.m.Y';break;default:dateLocale='en';formatDate='m/d/Y'}
1156$.datetimepicker.setLocale(dateLocale);$('.datetimepicker').initDateTimePicker({formatDate:formatDate,formatTime:formatTime});$('[data-field-condition]').initFieldCondition()});document.addEventListener('DOMContentLoaded',function(){checkClass='checkbox';$checks=document.querySelectorAll('input[type="checkbox"]');$checks.forEach(($check)=>{let $wrapItem=$check.closest('.'+checkClass);if($wrapItem){if($check.checked){$wrapItem.classList.add('checked')}else if($wrapItem.classList.contains('checked')){$check.checked=!0}
1157if($check.disabled){$wrapItem.classList.add('disabled')}else if($wrapItem.classList.contains('disabled')){$check.disabled=!0}
1158if($check.classList.contains('f3-form-error')){$check.closest('.input-field').classList.add('f3-form-error')}
1159$check.addEventListener('change',function(e){let $this=this;let $checkGroup=$this.closest('.'+checkClass+'-group');if($checkGroup){let reqOptiones=$checkGroup.dataset.requirements;switch(reqOptiones){case 'min':let min=$checkGroup.dataset.min;if($checkGroup.querySelectorAll('input[type="checkbox"]:checked').length<min){$this.checked=!0}
1160break;case 'max':let max=$checkGroup.dataset.max;$thisChecked=$checkGroup.querySelectorAll('input[type="checkbox"]:checked');if($thisChecked.length>
1160max){if($checkGroup.dataset.allowToggle){if($thisChecked[0]!=$this){$thisChecked[0].checked=!1;$thisChecked[0].dispatchEvent(new Event('change'))}}else{$this.checked=!1}}
1161break}}
1162if($this.checked){$check.closest('.'+checkClass).classList.add('checked')}else{$check.closest('.'+checkClass).classList.remove('checked')}})}})});(function($){var MultiSelect=window.MultiSelect=window.MultiSelect||{};MultiSelect.Data={identifier:'.multiselect',elements:{selectBox:'.multiselect__select-box',valueBox:'.select__default',checkBoxes:{item:'.multiselect__checkbox',label:'.multiselect__checkbox-label',sub:'.multiselect__checkbox--sub'}},container:{googleMaps:'.gme-map__categories',addItemFilter:'.tx-add-item-list'}};MultiSelect.Controller=function(element){var $element=this.$element=$(element);this.data=MultiSelect.Data;this.selectBox=$element.find(this.data.elements.selectBox);this.valueBox=$element.find(this.data.elements.valueBox);this.valueBoxDefault=this.valueBox.text();this.checkBoxItem=this.data.elements.checkBoxes.item;this.checkBoxLabel=this.data.elements.checkBoxes.label;this.checkBoxSub=this.data.elements.checkBoxes.sub;this.googleMap=$element.closest(this.data.container.googleMaps);this.addItemFilter=$element.closest(this.data.container.addItemFilter);this.checkedItems=[];this.onToggleOn=this.onToggleOff=null;this._initMultiSelect();this._checkInputs()};MultiSelect.Controller.prototype={_initMultiSelect:function(){var _this=this;var $element=this.$element;var $selectBox=this.selectBox;var $selectBoxSelect=$selectBox.find('.select');$selectBox.onClickAndEnter(function(){_this.toggleActive($element)}).makeFocusable();onOutsideClick($element.get(0),{callback:function(){$element.removeClass('multiselect--active')}});if(_this.googleMap.length){$selectBox.on('reset-checked',function(){_this.processInput($element.find('input.check-all'),!0);_this.toggleActive($element,!1);$selectBoxSelect.removeClass('focus')})}},closeSelect:function(){var _this=this,$element=this.$element;$element.removeClass('multiselect--active')},postToggle:function(mod){var _this=this;switch(mod){case 'on':if(_this.onToggleOn!==null&&typeof _this.onToggleOn==='function'){_this.onToggleOn()}
1163break;case 'off':if(_this.onToggleOff!==null&&typeof _this.onToggleOff==='function'){_this.onToggleOff()}
1164break}},toggleActive:function($this,mod,toggleHeight){var _this=this;var $element=this.$element;var isSelectContainer=$this.hasClass('multiselect');var activeClass=(isSelectContainer)?'multiselect--active':'active';var toggleHeight=(toggleHeight===!0)?!0:!1;if(_this.addItemFilter.length&&mod!==!1&&isSelectContainer){$activeElement=_this.addItemFilter.find(_this.data.identifier+'.multiselect--active').not($this);if($activeElement.length){elController=$activeElement.data('MultiSelectController');elController.toggleActive($activeElement,!1)}}
1165if(mod===undefined){var state=$this.hasClass(activeClass);if(toggleHeight){$this.animate({height:'toggle'},200)}
1166$this.toggleClass(activeClass);if(isSelectContainer)_this.postToggle((state)?'off':'on');}else if(mod&&!$element.hasClass(activeClass)){if(toggleHeight){$this.animate({height:'toggle'},200)}
1167$this.addClass(activeClass);if(isSelectContainer)_this.postToggle('on');}else if($element.hasClass(activeClass)){if(toggleHeight){$this.animate({height:'toggle'},200)}
1168$this.removeClass(activeClass);if(isSelectContainer)_this.postToggle('off');}},_checkInputs:function(){var _this=this;var $element=this.$element;var $inputs=this.inputs=$element.find('input[type="checkbox"]');var $checkAll=$element.find('input.check-all');$inputs.on('change',function(e){_this.processInput($(this),null,e);if(_this.googleMap.length){$(this).trigger('trigger-gomapsext')}});$inputs.each(function(){var $wrapItem=$(this).closest('.checkbox');if($(this).is(':checked')){$wrapItem.addClass('checked')}else if($wrapItem.hasClass('checked')){$(this).prop('checked',!0).change()}})},processInput:function($input,uncheckAll,e){var _this=this;var thisId=$input.attr('id');var thisTitle=$input.attr('title');var toggleAllSubs=!1;if($input.hasClass('check-all')){if(e===undefined||e.originalEvent){var checkedIds=[];for(var i=0;i<_this.checkedItems.length;i++){checkedIds.push(_this.checkedItems[i].id)}
1169if($input.is(':checked')&&!uncheckAll){this.inputs.each(function(i,e){var $e=$(e);
1169if($.inArray($e.attr('id'),checkedIds)===-1&&$e.hasClass('checkbox__field-value')){_this.checkInput($e,!0,!0)}});_this.checkInput($input,!0)}else{this.inputs.each(function(i,e){var $e=$(e);if($.inArray($e.attr('id'),checkedIds)>=0&&$e.hasClass('checkbox__field-value')){_this.checkInput($e,!1,!0)}});(uncheckAll)?_this.checkInput($input,!1,!0):_this.checkInput($input,!1)}
1170toggleAllSubs=!0;$input.change()}}else{if($input.is(':checked')){_this.checkInput($input,!0)}else{_this.checkInput($input,!1)}}
1171_this.toggleSubContainer($input,toggleAllSubs);_this.showCheckedValues()},checkInput:function($input,mod,setCheckboxWithoutClick){var _this=this;var thisId=$input.attr('id');var thisTitle=$input.attr('title');if(!$input.hasClass('check-all')){if(mod){_this.checkedItems.push({id:thisId,title:thisTitle})}else{_this.checkedItems=_this.checkedItems.filter(function(item){return item.id!==thisId})}}
1172if(setCheckboxWithoutClick){$input.prop('checked',mod).closest('.checkbox').toggleClass('checked')}},toggleSubContainer:function($input,toggleAllSubs){var _this=this;var $element=this.$element;var $subContainer;if(toggleAllSubs){if($input.is(':checked')){$subContainer=$element.find(_this.checkBoxSub+':not(.active)')}else{$subContainer=$element.find(_this.checkBoxSub+'.active')}}else{if($input.is(':checked')){$subContainer=$input.closest(_this.checkBoxItem).find(_this.checkBoxSub).first()}else{$subContainer=$input.closest(_this.checkBoxItem).find(_this.checkBoxSub+'.active');$subContainer.each(function(i,e){$(e).find('input[type="checkbox"]').each(function(ii,ee){_this.checkInput($(ee),!1,!0)})})}}
1173$subContainer.each(function(i,e){_this.toggleActive($(e),undefined,!0)})},showCheckedValues:function(){var $el=this.$element;var checkedItems=this.checkedItems;var $valueBox=this.valueBox;var defaultValue=this.valueBoxDefault;var checkedItemsLength=checkedItems.length;var keepLabel=$el.data('keep-label');if(checkedItemsLength>0){var firstSelectedTitle=(keepLabel)?defaultValue:checkedItems[0].title;var minChecked=(keepLabel)?0:1;var checkedNumberCorrection=(keepLabel)?0:1;var checkedNumberPrefix=(keepLabel)?'':'+';var selectOption=(firstSelectedTitle.length>38)?firstSelectedTitle.substring(0,38)+' &hellip;':firstSelectedTitle;if(checkedItemsLength>minChecked){$valueBox.html(selectOption+'<span>('+checkedNumberPrefix+(checkedItemsLength-checkedNumberCorrection)+')</span>')}else{$valueBox.html(selectOption)}
1174$el.addClass('multiselect--selected');$valueBox.addClass('active')}else{$valueBox.text(defaultValue).removeClass('active');$el.removeClass('multiselect--selected')}}};$.fn.multiSelect=function(options){var $element=$(this);if($element.length>1){$element.each(function(){init($(this))})}else{init($element)}
1175function init($el){if($el.length&&!$el.data('MultiSelectController')){var dataOptions={};var mergedOptions={...dataOptions,...options};$el.data('MultiSelectController',new MultiSelect.Controller($el,mergedOptions)).triggerHandler('MultiSelect-rdy')}}}}(jQuery));document.addEventListener('DOMContentLoaded',function(){$('.multiselect').multiSelect()});class Accordion extends Component{constructor($el,componentName,index,paramOptions){super($el,componentName,index,paramOptions,{toggleDuration:$el.dataset.toggleDuration||200});const _this=this;_this._listenOnController($el.closest('.tns-init, .tns-init-custom'),'Slider','parentSlider');_this._initWithBreakpoint()}
1176init(){const _this=this,$el=_this.$el;let $activeItems=$el.querySelectorAll(':scope > .active');$activeItems.forEach(($item)=>{$item.querySelector(":scope > .accordion__body-container .accordion__body").style.display='block'});let $accordionItems=$el.querySelectorAll(':scope > .accordion__item');$accordionItems.forEach(($item)=>{let $toggle=$item.querySelector(':scope > .accordion__head .accordion__toggle');if(!$toggle){$toggle=$item.querySelector(':scope > .accordion__head')}
1177onClickAndEnter($toggle,function(e){if(e.target.tagName!=='A'){_this.toggleItem($item)}})});_this.initSectionLinks();disableDoubleClickSelection($el.querySelectorAll(':scope > .accordion__item > .accordion__head'))}
1178toggleItem($item){const _this=this;if($item){if($item.classList.contains('active')){_this.closeItem($item)}else{_this.openItem($item)}}}
1179openItem($item,closeOtherItems,onOpened){const _this=this,$el=_this.$el,options=_this.options;if($item.querySelector(':scope > .accordion__item > .accordion__head')!=='A'){if(typeof onOpened==='function'){onOpened.call()}}
1180function open($item){if($item&&!$item.classList.contains('active')){const $parent=$item.parentElement.closest('.accordion__item');const $content=$item.querySelector(':scope > .accordion__body-container > .accordion__body');if($parent&&!$parent.classList.contains('active')){let parentCtrl=$parent.closest('.accordion').Accordion;if(parentCtrl._isActive()){_this.openItem($parent)}}
1181$item.classList.add('active');slideToggle($content,options.toggleDuration);_this._log('open item',$item)}}
1182if(closeOtherItems){$el.querySelectorAll('.accordion__item.active').forEach(($aItem)=>{if($aItem!==$item){_this.closeItem($aItem)}})}
1183open($item);setTimeout(function(){if(_this.parentSlider)_this.parentSlider.updateSliderHeight();if(typeof onOpened==='function'){onOpened.call()}},options.toggleDuration)}
1184closeItem($item,onClosed){const _this=this,$el=_this.$el,options=_this.options;if(!$item){$el.querySelectorAll('.accordion__item.active').forEach(($item)=>{let $content=$item.querySelector(':scope > .accordion__body-container > .accordion__body');$item.classList.remove('active');slideToggle($content,options.toggleDuration);
1184_this._log('close item',$item)})}else if($item&&$item.classList.contains('active')){const $content=$item.querySelector(':scope > .accordion__body-container > .accordion__body');$item.classList.remove('active');slideToggle($content,options.toggleDuration);_this._log('close item',$item)}
1185setTimeout(function(){if(_this.parentSlider)_this.parentSlider.updateSliderHeight();if(typeof onClosed==='function'){onClosed.call()}},options.toggleDuration)}
1186closeAll(){const _this=this,$el=_this.$el;$el.querySelectorAll('.accordion__item.active').forEach(($item)=>{_this.closeItem($item)})}
1187initSectionLinks(){const _this=this;const $sectionNav=_this.$el.querySelector('.navigation--section');if($sectionNav){onClickAndEnter($sectionNav.querySelectorAll('a[href*="#"]:not([href="#"]):not(.no-scroll)'),function(e){const $link=this;const $scrollEl=$sectionNav.closest('.scroll-content');if($scrollEl&&$scrollEl.classList.contains('scene-overlays')){const hash=$link.hash
1188if(!hash)return;const $target=document.querySelector(hash)||document.querySelector('[name="'+hash.slice(1)+'"]');if(!$target)return;e.preventDefault();e.stopImmediatePropagation();const $accordionItem=$link.closest('.accordion__item');if($accordionItem){_this.closeItem($accordionItem,function(){scrollWindowTo($target)})}else{scrollWindowTo($target)}}})}}
1189disableActiveToggleOnReset(mod){this.disableActiveToggleOnReset=mod}
1190reset(){const _this=this,$el=_this.$el;if(!_this.disableActiveToggleOnReset){let $activeItems=$el.querySelectorAll('.accordion__item.active');$activeItems.forEach((item)=>{item.classList.remove('active')})}
1191const accordionBodies=$el.querySelectorAll('.accordion__body');accordionBodies.forEach((body)=>{body.style.display=''});const accordionItems=$el.querySelectorAll(':scope > .accordion__item');accordionItems.forEach((item)=>{let toggle=item.querySelector(':scope > .accordion__head .accordion__toggle');if(!toggle){toggle=item.querySelector(':scope > .accordion__head')}
1192toggle.dispatchEvent(new Event('rmClickAndEnter'))})}}
1193window.Accordion=Accordion;document.addEventListener('DOMContentLoaded',function(){ComponentRegistry.initComponent('.accordion','Accordion')});class MegaNav extends Component{constructor($el,componentName,index,paramOptions){super($el,componentName,index,paramOptions,{type:$el.dataset.megaType||null});let _this=this;let options=_this.options;_this.$listWrap=$el.querySelector('.mega__list-wrap');_this.$firstLevelItems=_this.$listWrap.querySelectorAll(':scope > *');_this.$listItems=$el.querySelectorAll('.m-list__item');_this.$itemLinks=$el.querySelectorAll('.m-item__link');_this.$itemToggles=Array.from($el.querySelectorAll('.m-item__toggle')).filter(el=>!el.parentElement.closest('.m-item__toggle'));_this.resetHeight;_this.$header=$el.parentElement.closest('.header');_this.$parentNavItem=$el.parentElement.closest('.list__item');_this.$parentNav=(_this.$parentNavItem)?_this.$parentNavItem.parentElement.closest('.nav'):null;_this._listenOnController(_this.$parentNav,'BaseNav','parentNav');switch(_this.options.type){case 'columns':_this.initTogglesAndHovers=!0;_this.initFirstChild=!0;_this.initChildHeights=!0;break}
1194if(_this.$listItems.length){if(_this.initChildHeights){setTimeout(function(){_this.autoHeight=getOuterHeight(_this.$listWrap);_this._init()},100)}else{_this._init()}}}
1195init(){let _this=this;let $el=_this.$el;let $listWrap=_this.$listWrap;let $firstLevelItems=_this.$firstLevelItems;let $listItems=_this.$listItems;let $itemLinks=_this.$itemLinks;let $itemToggles=_this.$itemToggles;let $parentNav=_this.$parentNav;let $header=_this.$header;if($header){let calcMaxHeight=function(){$listWrap.style.maxHeight='calc(100vh - '+getOuterHeight($header)+'px)'};calcMaxHeight();window.addEventListener('resize',calcMaxHeight)}
1196if(_this.initFirstChild){_this.openItem($listItems[0])}
1197if($itemLinks.length&&$parentNav){let linkToggles=function(event){let urlHash=this.getAttribute('href').split('#')[1];if(!event.target.classList.contains('m-item__toggle')&&urlHash){_this.parentNav.closeNav({log:'mega anchor'})}}
1198onClickAndEnter($itemLinks,linkToggles)}
1199if(_this.initTogglesAndHovers){if($itemToggles.length){let toggle=function(event){let $this=this;let $thisItem=$this.closest('.m-list__item');
1199if($thisItem.classList.contains('m-item--click-only')||$this.closest('.m-item__link')){event.preventDefault()}
1200_this.closeItem(_this.getSameLevelOpenedItem($thisItem));if($thisItem.classList.contains('m-item--open')){if(event.type!='click'){_this.closeItem($thisItem)}else{_this.openItem($thisItem)}}};onClickAndEnter($itemToggles,toggle)}
1201$listItems.forEach(($item)=>{if(!$item.classList.contains('m-item--click-only')){addMultipleListeners($item,['mouseenter','touchenter'],function(e){if(e.target===$item){e.stopPropagation();let $this=this;$this.classList.add('disable-hover-effects');let mvTimer;let enableItemTimer;function enableItem(){$this.classList.remove('disable-hover-effects');if(!$this.classList.contains('m-item--open')){let $openSibling=_this.getSameLevelOpenedItem($this);_this.closeItem($openSibling);if($this.classList.contains('m-item--has-child')){_this.openItem($this)}else{if(_this.initChildHeights&&!$openSibling)_this.setListHeights($this);_this.resetListHeight()}}}
1202let tempPos=0;function mousemoveHandler(e){let xPos=e.pageX;if(xPos<tempPos&&tempPos!=0){_this._log('item mouseenter / direction',{item:$this,xPos:xPos,tempPos:tempPos});window.removeEventListener('mousemove',mousemoveHandler);clearTimeout(mvTimer);clearTimeout(enableItemTimer);enableItem()}
1203tempPos=xPos;clearTimeout(mvTimer);mvTimer=setTimeout(function(){window.removeEventListener('mousemove',mousemoveHandler);clearTimeout(enableItemTimer);if(e.target.closest('.m-item')===$this){_this._log('item mouseenter',$this);enableItem()}},25)}
1204window.addEventListener('mousemove',mousemoveHandler);enableItemTimer=setTimeout(function(){_this._log('item mouseenter / timeout',$this);window.removeEventListener('mousemove',mousemoveHandler);clearTimeout(mvTimer);enableItem()},1500);function mouseout(){clearTimeout(enableItemTimer)}
1205$this.addEventListener('mouseout',mouseout);$this.removeEventListener('mouseout',mouseout)}},!0)}})}}
1206getSameLevelOpenedItem($item){let _this=this;let $sibling=$item.closest('.m-list').parentElement.querySelector('.m-item--open');return $sibling}
1207setListHeights($item){let _this=this;let $el=_this.$el;let $listWrap=_this.$listWrap;let $parentChild=$item.parentElement.closest('.m-child');let $parentChildAll=getParents($item,'.m-child');let $thisChild=$item.querySelector('.m-child');let childHeight=0;let parentHeight=0;let resetHeight=0;let changeLog='no change';let $heightElement;let $childElements;let currHeight=($parentChild)?getOuterHeight($listWrap):_this.autoHeight;if($thisChild){$childElements=$thisChild.querySelector('.m-child__inner').children;let isSingleContent=$thisChild.classList.contains('m-child--content')&&$thisChild.classList.contains('m-child--single');if($childElements.length>1){Array.from($childElements).forEach(($element)=>{childHeight+=getOuterHeight($element)})}else if($childElements){$childElements=$childElements[0];$heightElement=(isSingleContent)?$childElements.querySelector(':scope > .contwrap'):$childElements.children[0];childHeight=getOuterHeight($heightElement)+(getOuterHeight($childElements)-getInnerHeight($childElements))}}
1208_this.resetHeight=resetHeight=(currHeight>_this.autoHeight)?currHeight:_this.autoHeight;let childHeightLog={$item:$item,$listWrap:$listWrap,$thisChild:$thisChild,$childElements:$childElements,$heightElement:$heightElement,childHeight:childHeight,currHeight:currHeight,resetHeight:resetHeight};if(childHeight>currHeight){changeLog='set child height';$($listWrap).velocity({height:childHeight},100)}else if(childHeight<currHeight){changeLog='reset height';_this.resetListHeight()}
1209_this._log('set list heights ('+changeLog+')',childHeightLog)}
1210resetListHeight(resetHeight){let _this=this;let $el=_this.$el;let $listWrap=_this.$listWrap;resetHeight=(resetHeight!=undefined)?resetHeight:_this.resetHeight;let currHeight=getOuterHeight($listWrap);if(currHeight!==resetHeight){_this._log('reset height',{currHeight:currHeight,resetHeight:resetHeight,autoHeight:_this.autoHeight});$($listWrap).velocity({height:resetHeight},100,function(){if(resetHeight==_this.autoHeight){$listWrap.style.height='auto'}})}}
1211openItem($item,openAllFirstChilds){let _this=this;let $el=_this.$el;let $listItems=_this.$listItems;$item=($item==undefined)?$listItems[0]:$item;if($item.classList.contains('m-item--has-child')&&(!_this.getOpenState($item)||openAllFirstChilds)){if(!_this.getOpenState($item)){_this._log((openAllFirstChilds)?'open item (first item)':'open item',$item);if(_this.initChildHeights)_this.setListHeights($item);$item.classList.add('m-item--open')}
1212if(openAllFirstChilds){let $child=$item.querySelector('.m-item');
1212if($child)_this.closeItem(_this.getSameLevelOpenedItem($child));if($child&&$child.classList.contains('m-item--has-child')){_this._log('open first item',{item:$item,child:$child});_this.openItem($child,openAllFirstChilds)}}}}
1213closeItem($item){let _this=this;let $el=_this.$el;let $listWrap=_this.$listWrap;if($item){if($item.classList.contains('m-item--has-child')&&_this.getOpenState($item)){_this._log('close item',$item);$item.classList.remove('m-item--open');$item.querySelectorAll('.m-item--open').forEach(($sub)=>{$sub.classList.remove('m-item--open')})}}}
1214closeMega(){let _this=this;let $el=_this.$el;let $listWrap=_this.$listWrap;let $listItems=_this.$listItems;_this._log('close mega menu');if(_this.initFirstChild){if(!$listItems.length)return;let $firstItem=$listItems[0];if(_this.getOpenState($firstItem)){_this.openItem($firstItem,!0)}else{_this.closeItem($el.querySelector('.m-item--open'));_this.openItem($firstItem,!0)}}else{_this.closeItem($el.querySelector('.m-item--open'));if(_this.initChildHeights)_this.resetListHeight();}}
1215getOpenState($item){return $item.classList.contains('m-item--open')}}
1216window.MegaNav=MegaNav;document.addEventListener('DOMContentLoaded',function(){ComponentRegistry.initComponent('.mega','MegaNav')});function initLangSelector($el){let $elToggle=$el.querySelectorAll('.lang-select__toggle');onClickAndEnter($elToggle,function(){this.closest('.lang-select__inner').classList.toggle('active')});onOutsideClick($el,{callback:function(){let $active=$el.querySelector('.active')
1217if($active)$active.classList.remove('active');}});return this}
1218document.addEventListener('DOMContentLoaded',function(){let dropdownFields=document.querySelectorAll('.lang-select--dropdown');dropdownFields.forEach((element)=>{initLangSelector(element)})});class Tabs extends Component{constructor($el,componentName,index,paramOptions){let options={switchMode:$el.dataset.switchMode||'default',switchBreakpoint:$el.dataset.switchBreakpoint,toggleDuration:$el.dataset.toggleDuration||0};super($el,componentName,index,paramOptions,options);let _this=this;_this.$navigation=$el.querySelector('.tabs__navigation');_this.$content=$el.querySelector('.tabs__content');_this.$navigationItems=$el.querySelectorAll('.navigation__item');_this.$contentItems=$el.querySelectorAll('.content__item');_this.$initialActive=$el.querySelector('.navigation__item-wrap.active');_this._ensureTabDataAttributes();_this._ensureInitialActive();_this._init()}
1219_ensureTabDataAttributes(){let _this=this;let $navigationItems=_this.$navigationItems;let $contentItems=_this.$contentItems;let allNavHaveTarget=!0;let allContentHaveIndex=!0;$navigationItems.forEach(($item)=>{if(!$item.dataset.target){allNavHaveTarget=!1}});$contentItems.forEach(($item)=>{if(!$item.dataset.index){allContentHaveIndex=!1}});if(allNavHaveTarget&&allContentHaveIndex){return}
1220$navigationItems.forEach(($item,idx)=>{if(!$item.dataset.target){$item.dataset.target=idx.toString()}});const navLen=$navigationItems.length;$contentItems.forEach(($item,idx)=>{if(!$item.dataset.index){const mappedIndex=navLen?idx%navLen:idx;$item.dataset.index=mappedIndex.toString()}})}
1221_ensureInitialActive(){let _this=this,$el=_this.$el,$navigationItems=_this.$navigationItems,$initialActive=_this.$initialActive;if(!$initialActive){$navigationItems[0].parentNode.classList.add('active');$initialActive=$navigationItems[0].parentNode}
1222let targetIndex=$initialActive.querySelector(':scope > .navigation__item').dataset.target;let $activeContentItems=$el.querySelectorAll('.content__item[data-index="'+targetIndex+'"]');$activeContentItems.forEach(($content)=>{$content.classList.add('active');$content.style.display='block'})}
1223init(){let _this=this;let $el=_this.$el;let options=_this.options;let $navigationItems=_this.$navigationItems;function toggleActives(e,$item){if(e.target.tagName==='A'||$item.parentNode.querySelector(':scope > a')){}else if(!$item.parentNode.classList.contains('active')){_this.openItem($item,!0)}}
1224$navigationItems.forEach(($item)=>{onClickAndEnter($item,function(e){toggleActives.call(this,e,$item)})});switch(options.switchMode){case 'slider':let $navigationInner=$el.querySelector('.navigation__inner');
1224if($navigationInner){_this.slider=ComponentRegistry.initComponent($navigationInner,'Slider',{initBreakpoint:options.switchBreakpoint,mode:'carousel',itemWidth:'auto',navType:'none',responsive:{0:{gutter:20,},1024:{gutter:32,},},})}
1225break;case 'accordion':break}}
1226openItem($item,closeOtherItems,onOpened){let _this=this;let $el=_this.$el;let options=_this.options;let targetIndex=null;if(closeOtherItems){$el.querySelectorAll('.content__item.active').forEach(($aItem)=>{if($aItem!==$item){_this.closeItem($aItem)}})}
1227if($item.classList.contains('content__item')){targetIndex=$item.dataset.index;let $contentItems=$el.querySelectorAll('.content__item[data-index="'+targetIndex+'"]');let $navigationItem=$el.querySelector('.navigation__item[data-target="'+targetIndex+'"]');$contentItems.forEach(($content)=>{$content.classList.add('active');slideToggle($content,options.toggleDuration)});$navigationItem.parentNode.classList.add('active')}else{targetIndex=$item.dataset.target;let $contentItems=$el.querySelectorAll('.content__item[data-index="'+targetIndex+'"]');$contentItems.forEach(($content)=>{$content.classList.add('active');slideToggle($content,options.toggleDuration)});$item.parentNode.classList.add('active')}
1228if(_this.slider&&_this.slider._isActive()){_this.slider.slider.goTo(targetIndex)}
1229setTimeout(function(){if(options.switchMode==='accordion'&&_this._isInitBreakpoint({initBreakpoint:options.switchBreakpoint,initBreakpointInvert:!1})){scrollWindowTo(_this.$navigationItems[targetIndex])}
1230if(typeof onOpened==='function'){onOpened.call()}},options.toggleDuration)}
1231closeItem($item){let _this=this;let $el=_this.$el;let options=_this.options;let $navigationItems=_this.$navigationItems;if(!$item){$el.querySelectorAll('.content__item.active').forEach(($content)=>{$content.classList.remove('active');hide($content);_this._log('close item',$content)});$navigationItems.forEach(($navItem)=>{$navItem.parentNode.classList.remove('active')})}else if($item&&$item.classList.contains('active')){let targetIndex=$item.dataset.index;let $contentItems=$el.querySelectorAll('.content__item[data-index="'+targetIndex+'"]');let $navigationItem=$el.querySelector('.navigation__item[data-target="'+targetIndex+'"]');$contentItems.forEach(($content)=>{$content.classList.remove('active');hide($content)});$navigationItem.parentNode.classList.remove('active')}}}
1232window.Tabs=Tabs;document.addEventListener('DOMContentLoaded',function(){ComponentRegistry.initComponent('.tabs','Tabs')});class Header extends Component{constructor($el,componentName,index,paramOptions){super($el,componentName,index,paramOptions,{sliderContainer:['contwrap--content-slider','contwrap--hero-slider']});const _this=this;_this.isMainHeader=$el.classList.contains('header--main');_this.$headerTopBar=$el.querySelector('.top-bar');_this.$headerContent=$el.querySelector('.header__content');_this.$navs=$el.querySelectorAll('nav.nav--primary, .top-bar__nav > nav');_this.elMaxTimeout=getMaxTransitionTime($el.querySelectorAll('*'),null,'.header__nav');_this._listenOnController(_this.$navs,'BaseNav','navs');if(_this.$headerTopBar){_this.initTopBar(_this.$headerTopBar)}
1233_this._log('REGISTERED');_this._initWithBreakpoint()}
1234init(){const _this=this,$el=_this.$el;_this._setHeaderHeight();if(!_this.isMainHeader)return;let $container=document.querySelector('#hero-area .contwrap')||document.querySelector('#content-area.content-area--two-columns .breadcrumb')||document.querySelector('#content-area.content-area--two-columns .content-area__main')||document.querySelector('#content-area.content-area--default .breadcrumb')||document.querySelector('#content-area.content-area--default .content-area__main .contwrap');if($container){if($container.classList.contains('contwrap--shortcut')){$container=$container.querySelector('.contwrap')}
1235if($container.classList.contains('contwrap--outer')){$container=$container.querySelector('.contwrap')}
1236if($container.classList.contains('contwrap--ignore-content-spacing')){_this.noContentSpacing=!0}
1237let isSlider=_this.options.sliderContainer.some(cls=>$container.classList.contains(cls));if(isSlider){const $sliderInner=$container.querySelectorAll('.slider > .slider__item > .contwrap');if($sliderInner)$container=$sliderInner}
1238_this.contentContainerModify($container,!0)}}
1239_setHeaderHeight(){const _this=this,$el=_this.$el;
1239let combinedHeight=0;const $container=$el.closest('.contwrap--container');if($container&&!$el.classList.contains('sticky-active')){combinedHeight=getOuterHeight($container)}
1240const height=getOuterHeight($el);combinedHeight=Math.max(combinedHeight,height);if(height!==_this.elHeight||combinedHeight!==_this.elContHeight){_this._log('update height',{h:{new:height,old:_this.elHeight},'cont-h':{new:combinedHeight,old:_this.elContHeight}});if(_this.isMainHeader){document.documentElement.style.setProperty('--header-h',height+'px');document.documentElement.style.setProperty('--header-cont-h',combinedHeight+'px')}
1241_this.elHeight=height;_this.elContHeight=combinedHeight}}
1242resize(){const _this=this;_this._setHeaderHeight()}
1243contentContainerModify($container,onResize){const _this=this,$el=_this.$el;let $containers=Array.isArray($container)?$container:[$container];$containers.forEach($_container=>{const $containerContent=$_container.querySelector(':scope > .contwrap__content > .contwrap-content__inner')||$_container.querySelector(':scope > .contwrap__content > .row > .column > .contwrap-content__inner')||$_container;let $spacingContent=[$containerContent];const isStretchContent=$_container.classList.contains('contwrap--stretch');const $childStretchContainer=$_container.querySelector('.contwrap.contwrap--stretch.stretch--full');if($childStretchContainer){const $childAbsoluteOuterParent=$childStretchContainer.closest('.contwrap--outer.contwrap--absolute');if(!$childAbsoluteOuterParent){$spacingContent=[$childStretchContainer]}else{$spacingContent=[$containerContent,$childAbsoluteOuterParent]}}else{}
1244if($el.classList.contains('header--absolute')&&!_this.noContentSpacing){if($containerContent){_this.setContentSpacing($spacingContent);if(onResize){window.addEventListener('resize',()=>_this.setContentSpacing($spacingContent))}}}else if(isStretchContent&&!$_container.closest('.equalheight')){if($containerContent){_this.setStretchContentHeight($_container,$containerContent,$childStretchContainer);if(onResize){window.addEventListener('resize',()=>_this.setStretchContentHeight($_container,$containerContent,$childStretchContainer))}}}})}
1245setContentSpacing($content){const _this=this;$content.forEach($el=>{const firstChild=$el.firstElementChild;if(firstChild){firstChild.style.paddingTop='var(--header-cont-h)'}});_this._log('setContentSpacing',$content)}
1246setStretchContentHeight($container,$childContainer){const _this=this,stretchType=$container.dataset.stretchType,minSize=$container.dataset.stretchMin,isBelowMinSize=minSize&&window.innerWidth<parseInt(minSize);switch(stretchType){case 'full':if(isBelowMinSize){$container.style.minHeight='auto'}else if(!$container.closest('.contwrap--stretch .contwrap--stretch')){$container.style.minHeight='calc(100vh - var(--header-cont-h))'}
1247break;case 'custom':break;default:if($childContainer)_this.setStretchContentHeight($childContainer);break}
1248_this._log('setStretchContentHeight',{stretchType,isBelowMinSize})}
1249repositionNav(closeNav=!1){const _this=this;if(_this.navs&&_this.navs.length){clearTimeout(_this.reposNav);_this.reposNav=setTimeout(()=>{_this.navs.forEach(nav=>{if(closeNav)nav.closeNav?.({log:'reposition nav by header'});nav.calculateChildListPositions?.();nav.positionMenu?.()});_this._log('repositionNav')},_this.elMaxTimeout)}}
1250closeNav(log){const _this=this;if(_this.navs&&_this.navs.length){_this.navs.forEach(nav=>{nav.closeNav?.({log:log?log:'close nav by header'})})}}
1251initTopBar($topBar){const _this=this;if($topBar)_this.initTopBarSearch($topBar);}
1252initTopBarSearch($topBar){const _this=this,$search=$topBar.querySelector('.list__item.item--search.search--slide-in');if(!$search)return;$search.addEventListener('click',event=>{if(!event.target.closest('.search__content')||(event.target.closest($search)&&event.target.querySelector('.search__content'))){toggleSearchPopup()}});$search.addEventListener('keydown',e=>{if(e.key==='Enter')toggleSearchPopup();});function toggleSearchPopup(){$search.classList.toggle('active')}
1253onOutsideClick($search,{callback:()=>$search.classList.remove('active'),})}}
1254window.Header=Header;document.addEventListener('DOMContentLoaded',()=>
1254{ComponentRegistry.initComponent('.header','Header')});class AzoresList extends Component{constructor($el,componentName,index,paramOptions){let options={debug:!1};super($el,componentName,index,paramOptions,options);let _this=this;_this.initMethod=null;switch($el.dataset.type){case 'categories-tiles':_this.initMethod='initCategoryItemToggles';break}
1255if(typeof _this[_this.initMethod]==='function'){_this._init()}}
1256init(){let _this=this;let $el=_this.$el;let options=_this.options;_this[_this.initMethod]()}
1257initCategoryItemToggles(){let _this=this,$el=_this.$el;let $itemToggles=$el.querySelectorAll('.item__toggle');onClickAndEnter($itemToggles,function(){let $this=this;let $item=$this.closest('.list__item');if(!$item){$item=$el.querySelector('.list__item[data-item="'+$this.dataset.target+'"]')}
1258if($item.classList.contains('item--active')){$item.classList.remove('item--active')}else{let $activeItem=$el.querySelector('.list__item.item--active');if($activeItem)$activeItem.classList.remove('item--active');let $dataItems=$item.nextElementSibling;$item.classList.add('item--active');if($dataItems&&$dataItems.classList.contains('item__data-items')){$dataItems.scrollIntoView({behavior:"smooth",block:"end"})}}})}}
1259window.AzoresList=AzoresList;document.addEventListener("DOMContentLoaded",function(){ComponentRegistry.initComponent('.azores-list .list-type','AzoresList')});class ContentSlider extends Component{constructor($el,componentName,index,paramOptions){super($el,componentName,index,paramOptions,{});this._init()}
1260init(){let _this=this;let $el=_this.$el;let options=_this.options;let $sliderMain=$el.querySelector('.slider--single');let $sliderThumbnails=$el.querySelector('.slider--thumbnails');let $sliderThumbnailsItems=($sliderThumbnails)?$sliderThumbnails.querySelectorAll('.slider__item'):[];let hasThumbnails=$sliderThumbnails&&$sliderThumbnailsItems.length>1;if($sliderMain){let sliderMainOptions={};if(hasThumbnails){sliderMainOptions={debug:_this._isDebug(),mode:'gallery',gutter:0,edgePadding:0,centerMode:!1,itemsMobile:1,itemsMobileLarge:1,itemsTablet:1,itemsDesktop:1,itemsDesktopLarge:1,navType:'none',tnsAutoHeight:!1,hasThumbnailSlider:hasThumbnails,afterInit:function(){this.slider.events.on('indexChanged',function(info,eventName){$sliderThumbnailsItems.forEach(($item)=>{$item.classList.remove('active')});$sliderThumbnails.querySelector('.slider__item.item--'+info.index).classList.add('active');$sliderThumbnails.Slider.slider.goTo(info.index)})}}}else{}
1261let sliderMainCtrl=ComponentRegistry.initComponent($sliderMain,'Slider',sliderMainOptions);if(sliderMainCtrl&&hasThumbnails){let sliderThumbnailsOptions={debug:_this._isDebug(),$optionsEl:$sliderMain,isThumbnailSlider:!0,mode:'carousel',autoHeight:!0,defaults:{itemsMobile:3,itemsMobileLarge:3,itemsTablet:3,itemsDesktop:4,itemsDesktopLarge:5},startPosition:(sliderMainCtrl.options.startIndex>0)?sliderMainCtrl.options.startIndex+1:0,afterInit:function(){function toggleSlider(index){sliderMainCtrl.slider.goTo(index);$sliderThumbnailsItems.forEach(($item)=>{$item.classList.remove('active')});$sliderThumbnails.querySelector('.slider__item.item--'+index).classList.add('active')}
1262$sliderThumbnailsItems.forEach(($item)=>{let index=$item.dataset.index;$item.children[0].addEventListener('click',function(){toggleSlider(index)});let $enterItem=$item.querySelector('.image-effect');if(!$enterItem)$enterItem=$item.querySelector(':scope > *');enterKey($enterItem,function(){toggleSlider(index)})})}};let sliderThumbnailsCtrl=ComponentRegistry.initComponent($sliderThumbnails,'Slider',sliderThumbnailsOptions)}}}}
1263window.ContentSlider=ContentSlider;document.addEventListener('DOMContentLoaded',function(){ComponentRegistry.initComponent('.content-slider','ContentSlider')});class RequestCart extends Component{constructor($el,componentName,index,paramOptions){super($el,componentName,index,paramOptions,{hasNav:$el.dataset.hasNav==='1',openNavOnAdd:$el.dataset.openNavOnAdd==='1',closeNavOnEmpty:$el.dataset.closeNavOnEmpty==='1',debug:$el.dataset.debug==='true',onInit:()=>{this.fireCartUpdatedEvent()}});this.ajaxElement=$el.querySelector('.requestcart__list[data-ajax]');this.onQtyInputChangeDebounce=[];this._init()}
1264init(){let ajaxElement=$(this.ajaxElement);this.ajaxCtrl=ajaxElement.initAjax({name:this.componentName,onInit:1,debug:this.debug,ajaxOptions:{onAjaxContentLoaded:()=>{setTimeout(()=>{this.initCartButtons();this.initCartQtyInputs();this.fireCartUpdatedEvent()},0)}}});this.initCartButtons();this.initCartQtyInputs();this.initItemListAjaxLoadListener();this.initRequestCartEventListeners()}
1265initItemListAjaxLoadListener(){let ajaxListItems=document.querySelectorAll('.additem-list.list[data-ajax-target]');for(var i=0,n=ajaxListItems.length;i<n;i++){let ajaxTargetSelector=ajaxListItems[i].dataset.ajaxTarget;let ajaxTarget=document.querySelector(ajaxTargetSelector);if(ajaxTarget){$(ajaxTarget).on('onAjaxContentLoaded',(event)=>{setTimeout(()=>{this.initCartQtyInputs();this.initCartButtons();this.updateAllCartToggleButtons()},0)})}}}
1266initRequestCartEventListeners(){document.addEventListener('requestCartItemAdded',(event)=>{this.updateCartToggleButtonsByItemUid('add',event.detail.uid);this.navAddActions()});document.addEventListener('requestCartItemRemoved',(event)=>{this.updateCartToggleButtonsByItemUid('remove',event.detail.uid)});document.addEventListener('requestcartUpdated',(event)=>{let cartItemCount=event.detail.count;let cartItemUids=event.detail.itemUids;let cartTotalPrice=event.detail.totalPrice;let requestCartJson=event.detail.requestCartJson
1267this.updateCartCounters(cartItemCount);this.updateCartHideElements(cartItemCount);this.updateAllCartToggleButtons(cartItemUids);this.updateCartTotalPriceDisplays(cartTotalPrice);this.updateCartRemoveButtons(cartItemUids);this.updateCartQtyInputs(requestCartJson);if(this.options.hasNav){this.updateNav(cartItemCount)}})}
1268initCartQtyInputs(){let qtyInputs=document.querySelectorAll('.cartitem__qty-input:not(.input-initialized)');
1268for(var i=0,n=qtyInputs.length;i<n;i++){this.initCartQtyInput(qtyInputs[i])}}
1269initCartQtyInput(input){let updateButtonTarget=input.dataset.updateButtonTarget;let increaseButtonTarget=input.dataset.increaseButtonTarget;let decreaseButtonTarget=input.dataset.decreaseButtonTarget;let updateButton=document.querySelector(updateButtonTarget);let increaseButton=document.querySelector(increaseButtonTarget);let decreaseButton=document.querySelector(decreaseButtonTarget);this.initCartQtyInputButtons(updateButton,increaseButton,decreaseButton,input);input.addEventListener('change',(event)=>{this.onQtyInputChange(input,updateButton)});input.classList.add('input-initialized')}
1270initCartQtyInputButtons(updateButton,increaseButton,decreaseButton,qtyInput){if(updateButton&&!updateButton.classList.contains('button-initialized')){this.updateUpdateQtyButtonVisibility(qtyInput,updateButton);updateButton.addEventListener('click',(event)=>{event.preventDefault();this.cartUpdateQtyButtonAction(updateButton)});updateButton.classList.add('button-initialized')}
1271if(decreaseButton&&!decreaseButton.classList.contains('button-initialized')){decreaseButton.addEventListener('click',(event)=>{event.preventDefault();this.cartButtonDecreaseAction(decreaseButton,qtyInput)});decreaseButton.classList.add('button-initialized')}
1272if(increaseButton&&!increaseButton.classList.contains('button-initialized')){increaseButton.addEventListener('click',(event)=>{event.preventDefault();this.cartButtonIncreaseAction(increaseButton,qtyInput)});increaseButton.classList.add('button-initialized')}}
1273initCartButtons(){let removeButtons=document.querySelectorAll('.requestcart-button-remove:not(.button-initialized)');let toggleButtons=document.querySelectorAll('.requestcart-button-toggle:not(.button-initialized)');for(var i=0,n=removeButtons.length;i<n;i++){this.initCartRemoveButton(removeButtons[i]);removeButtons[i].classList.add('button-initialized')}
1274for(var i=0,n=toggleButtons.length;i<n;i++){this.initCartToggleButton(toggleButtons[i]);toggleButtons[i].classList.add('button-initialized')}}
1275initCartToggleButton(button){button.addEventListener('click',(event)=>{this.cartToggleButtonAction(button)});this.updateCartToggleButtonText(button)}
1276initCartRemoveButton(button){button.addEventListener('click',(event)=>{this.cartRemoveButtonAction(button)})}
1277updateCartRemoveButtons(cartItemUids){let removeButtonsInCart=document.querySelectorAll('.requestcart-button-remove'+(cartItemUids&&cartItemUids.length>0?`[data-item-uid="${cartItemUids.join('"], [data-item-uid="')}"]`:''));let removeButtonsNotInCart=document.querySelectorAll('.requestcart-button-remove'+(cartItemUids&&cartItemUids.length>0?`:not([data-item-uid="${cartItemUids.join('"]):not([data-item-uid="')}"])`:''));for(var i=0,n=removeButtonsInCart.length;i<n;i++){removeButtonsInCart[i].dataset.isInCart='1'}
1278for(var i=0,n=removeButtonsNotInCart.length;i<n;i++){removeButtonsNotInCart[i].dataset.isInCart=''}}
1279updateNav(cartItemCount){let nav=document.querySelector('.nav.nav--requestcart');if(nav&&this.options.closeNavOnEmpty){if(cartItemCount<=0){try{nav.BaseNav.closeNav()}catch(error){console.error('Error closing nav on empty cart: ',error)}}}}
1280navAddActions(){if(this.options.hasNav&&this.options.openNavOnAdd){let nav=document.querySelector('.nav.nav--requestcart');if(nav){try{nav.BaseNav.openNav()}catch(error){console.error('Error opening nav on add: ',error)}}}}
1281fireCartUpdatedEvent(){let cartItemCount=this.getCartItemCount();let cartItemUids=this.getCartItemUids();let cartTotalPrice=this.getCartTotalPrice();let requestCartJson=this.getRequestCartData();let cartEvent=new CustomEvent('requestcartUpdated',{detail:{count:cartItemCount,itemUids:cartItemUids,totalPrice:cartTotalPrice||0,requestCartJson:requestCartJson}});document.dispatchEvent(cartEvent)}
1282updateCartCounters(cartItemCount){let counterElements=document.querySelectorAll('.requestcart__counter .requestcart__counter-count');for(let i=0,n=counterElements.length;i<n;i++){counterElements[i].textContent=cartItemCount}}
1283updateCartHideElements(cartItemCount=null){if(cartItemCount===null)cartItemCount=this.getCartItemCount();let hideOnEmptyElements=document.querySelectorAll('.requestcart__hide-on-empty');let hideOnNotEmptyElements=document.querySelectorAll('.requestcart__hide-on-not-empty');for(var i=0,n=hideOnEmptyElements.length;i<n;i++){if(cartItemCount>0){this.showElement(hideOnEmptyElements[i])}else{this.hideElement(hideOnEmptyElements[i])}}
1284for(var i=0,n=hideOnNotEmptyElements.length;i<n;i++){if(cartItemCount>0){this.hideElement(hideOnNotEmptyElements[i])}else{this.showElement(hideOnNotEmptyElements[i])}}}
1285updateAllCartToggleButtons(cartItemUids=null){if(cartItemUids===null)cartItemUids=this.getCartItemUids();let toggleButtons=document.querySelectorAll('.requestcart-button-toggle');for(var i=0,n=toggleButtons.length;i<n;i++){toggleButtons[i].dataset.isInCart='';this.updateCartToggleButtonText(toggleButtons[i])}
1286let activeToggleButtonsSelector='';for(let i=0,n=cartItemUids.length;i<n;i++){activeToggleButtonsSelector+=`.requestcart-button-toggle[data-item-uid="${cartItemUids[i]}"], `}
1287if(activeToggleButtonsSelector.length>0){activeToggleButtonsSelector=activeToggleButtonsSelector.slice(0,-2);let activeToggleButtons=document.querySelectorAll(activeToggleButtonsSelector);for(let i=0,n=activeToggleButtons.length;i<n;i++){activeToggleButtons[i].dataset.isInCart=!0;this.updateCartToggleButtonText(activeToggleButtons[i])}}}
1288updateCartToggleButtonsByItemUid(action,updateItemUid){let affectedButtons=document.querySelectorAll(`.requestcart-button-toggle[data-item-uid="${updateItemUid}"]`);for(var i=0,n=affectedButtons.length;i<n;i++){if(action==='add'){affectedButtons[i].dataset.isInCart=!0}else if(action==='remove'){affectedButtons[i].dataset.isInCart=''}
1289this.updateCartToggleButtonText(affectedButtons[i])}}
1290updateCartToggleButtonText(button){let buttonText=button.querySelector('.button__text');let buttonIcon=button.querySelector('.button__icon');let removeIcon=button.dataset.removeIcon;let addIcon=button.dataset.addIcon;if(button.dataset.isInCart){let removeText=button.dataset.removeText;if(buttonText)buttonText.textContent=removeText;if(buttonIcon)buttonIcon.classList.replace(addIcon,removeIcon);}else{let addText=button.dataset.addText;if(buttonText)buttonText.textContent=addText;if(buttonIcon)buttonIcon.classList.replace(removeIcon,addIcon);}}
1291onQtyInputChange(qtyInput,updateButton){if(updateButton){this.updateUpdateQtyButtonVisibility(qtyInput,updateButton)}else{let setQtyUrl=qtyInput.dataset.setQtyUrl;if(setQtyUrl){let qty=parseInt(qtyInput.value);if(this.onQtyInputChangeDebounce[qtyInput.id]!==undefined){clearTimeout(this.onQtyInputChangeDebounce[qtyInput.id])}
1292this.onQtyInputChangeDebounce[qtyInput.id]=setTimeout(()=>{this.setItemQty(setQtyUrl,qty)},350)}}}
1293updateUpdateQtyButtonVisibility(qtyInput,button){let qtyValue=parseInt(qtyInput.value);let currentQty=parseInt(qtyInput.dataset.currentQty);if(isNaN(qtyValue)){qtyValue=1}
1294if(isNaN(currentQty)){currentQty=1}
1295button.dataset.qty=qtyValue;if(qtyValue===currentQty){this.hideButton(button)}else{this.showButton(button)}}
1296updateCartQtyInputs(requestCartJson){let uids=[];if(requestCartJson){for(const[uid,cartItem]of Object.entries(requestCartJson)){this.updateQtyInputs(uid,cartItem.qty);
1296uids.push(uid)}}
1297let notInCartQtyInputs=document.querySelectorAll(`.cartitem__qty-input:not([data-item-uid="${uids.join('"]):not([data-item-uid="')}"])`);for(let i=0,n=notInCartQtyInputs.length;i<n;i++){this.updateQtyInputs(notInCartQtyInputs[i].dataset.itemUid,0)}}
1298updateQtyInputs(itemUid,qty){let qtyInputs=document.querySelectorAll(`.cartitem__qty-input[data-item-uid="${itemUid}"]`);qtyInputs.forEach(input=>{input.value=qty;input.dataset.currentQty=qty;let updateButtonTarget=input.dataset.updateButtonTarget;let updateButton=document.querySelector(updateButtonTarget);if(updateButton){this.updateUpdateQtyButtonVisibility(input,updateButton)}})}
1299cartButtonDecreaseAction(decreaseButton,qtyInput){qtyInput.value=parseInt(qtyInput.value)-1;if(qtyInput.value<0){qtyInput.value=0}
1300qtyInput.dispatchEvent(new Event('change'))}
1301cartButtonIncreaseAction(increaseButton,qtyInput){qtyInput.value=parseInt(qtyInput.value)+1;if(qtyInput.value<0){qtyInput.value=0}
1302qtyInput.dispatchEvent(new Event('change'))}
1303cartUpdateQtyButtonAction(button){let setQtyUrl=button.dataset.setQtyUrl;let qty=button.dataset.qty;if(!setQtyUrl||!qty){console.error('set Qty URL or quantity is missing.');return}
1304this.setItemQty(setQtyUrl,qty)}
1305cartToggleButtonAction(button){let addtoUrl=button.dataset.addtoUrl;let removeUrl=button.dataset.removeUrl;if(button.dataset.isInCart){this.removeFromCart(removeUrl)}else{this.addToCart(addtoUrl)}}
1306updateCartTotalPriceDisplays(totalPrice){let totalPriceElements=document.querySelectorAll('[data-requestcart-component="totalprice"] .requestcart__totalprice-value');totalPriceElements.forEach(element=>{element.textContent=totalPrice})}
1307cartRemoveButtonAction(button){let removeUrl=button.dataset.removeUrl;this.removeFromCart(removeUrl)}
1308addToCart(addtoUrl){this.disableCartButtons();let itemUid=this.getItemUidFromUrl(addtoUrl);let addEvent=new CustomEvent('requestCartItemAdded',{detail:{uid:itemUid}});fetch(addtoUrl,{method:'GET',headers:{'Content-Type':'application/json'}}).then(response=>response.json()).then(async data=>{if(data.success){document.dispatchEvent(addEvent);this.triggerAjax()}
1309this.enableCartButtons()}).catch((error)=>{console.error('Error:',error)})}
1310removeFromCart(removeUrl){this.disableCartButtons();let itemUid=this.getItemUidFromUrl(removeUrl);let removeEvent=new CustomEvent('requestCartItemRemoved',{detail:{uid:itemUid}});fetch(removeUrl,{method:'GET',headers:{'Content-Type':'application/json'}}).then(response=>response.json()).then(async data=>{if(data.success){document.dispatchEvent(removeEvent);this.triggerAjax()}
1311this.enableCartButtons()}).catch((error)=>{console.error('Error:',error)})}
1312setItemQty(setQtyUrl,qty){if(qty<=0){let removeUrl=this.migrateQtyUrlToRemoveUrl(setQtyUrl);this.removeFromCart(removeUrl);return}
1313this.disableCartButtons();setQtyUrl=this.setQtyInUrl(setQtyUrl,qty);fetch(setQtyUrl,{method:'GET',headers:{'Content-Type':'application/json'}}).then(response=>response.json()).then(async data=>{if(data.success){this.triggerAjax()}
1314this.enableCartButtons()}).catch((error)=>{console.error('Error:',error)})}
1315getItemUidFromUrl(_url){let url=new URL(_url);let itemUid=url.searchParams.get('tx_additemlist_requestcart[item]');return itemUid}
1316setQtyInUrl(url,qty){let newUrl=new URL(url);newUrl.searchParams.set('tx_additemlist_requestcart[qty]',qty);return newUrl.toString()}
1317migrateQtyUrlToRemoveUrl(qtyUrl){let removeUrl=new URL(qtyUrl);removeUrl.searchParams.set('tx_additemlist_requestcart[action]','remove');removeUrl.searchParams.delete('tx_additemlist_requestcart[qty]');return removeUrl.toString()}
1318triggerAjax(){this.ajaxCtrl._triggerAjax()}
1319isToggleButton(button){return button.classList.contains('requestcart-button-toggle')}
1320getCartItemCount(){let countDataElement=document.querySelector('.requestcart__data-count[data-count]');let count=0;if(countDataElement){count=countDataElement.dataset.count}
1321return parseInt(count)}
1322getCartItemUids(){let itemsDataElement=document.querySelector('.requestcart__data-items[data-items]');let items=[];if(itemsDataElement){items=itemsDataElement.dataset.items.split(',')}
1323return items}
1324getCartTotalPrice(){let totalPriceDataElement=document.querySelector('.requestcart__data-totalprice[data-totalprice]');let totalPrice=0;if(totalPriceDataElement){totalPrice=totalPriceDataElement.dataset.totalprice}
1325return totalPrice}
1326getRequestCartData(){let requestCartDataElement=document.querySelector('.requestcart__data-requestcart[data-requestcart]');let requestCart={};if(requestCartDataElement){requestCart=JSON.parse(requestCartDataElement.dataset.requestcart)}
1327return requestCart}
1328enableCartButtons(){let cartButtons=document.querySelectorAll('.requestcart-button');for(var i=0,n=cartButtons.length;i<n;i++){this.enableButton(cartButtons[i])}}
1329disableCartButtons(except=[]){let cartButtons=document.querySelectorAll('.requestcart-button'+(except.length>0?`:not(${except.join('):not(')})`:''));for(var i=0,n=cartButtons.length;i<n;i++){this.disableButton(cartButtons[i])}}
1330showButton(button){button.classList.remove('hide');button.disabled=!1}
1331hideButton(button){button.classList.add('hide');button.disabled=!0}
1332hideElement(element){element.classList.add('hide')}
1333showElement(element){element.classList.remove('hide')}
1334enableButton(button){button.style.removeProperty('pointer-events')}
1335disableButton(button){button.style.pointerEvents='none'}}
1336window.RequestCart=RequestCart;document.addEventListener('DOMContentLoaded',function(){ComponentRegistry.init
1336Component('.requestcart[data-requestcart-component="true"]','RequestCart')});class StickyHeader extends Component{constructor($el,componentName,index,paramOptions){super($el,componentName,index,paramOptions,{activeToggleClass:'sticky-active',activeStatePos:1,toggleNavCurrentStateOnScroll:!0});const _this=this;_this._listenOnController($el,'Header','headerCtrl',()=>{_this.isMainHeader=_this.headerCtrl.isMainHeader;_this.headerCtrl.debug=_this.debug;_this._initWithBreakpoint()})}
1337init(){const _this=this,$el=_this.$el,options=_this.options;_this._setDiffMainHeader();_this.elTopOffset=$el.getBoundingClientRect().top;_this.inHeaderArea=$el.closest('#header-area');if(_this.inHeaderArea){if(_this.isMainHeader){_this.isAbsolute=$el.classList.contains('header--absolute');_this.options.activeStatePos=()=>{return _this.elTopOffset?0:_this.elHeight}
1338_this.buildScrollContainer()}else{_this.options.activeStatePos=()=>_this._getMainHeaderHeight()+_this.elHeight;$el.style.transform='translateY(-'+_this.elHeight+'px)';_this.buildScrollContainer(!0)}}else{_this.buildScrollContainer()}
1339if(options.toggleNavCurrentStateOnScroll){_this.initNavCurrentStatesOnScroll()}
1340$el.dataset.stickyInitialized=!0}
1341resize(){const _this=this;_this._setHeaderHeight()}
1342windowResize(){let _this=this;refreshScrollMagicPinnedWidth(_this.scene,_this.$el,_this.smController)}
1343reset(){const _this=this;_this.smController.destroy(!0)}
1344_getMainHeaderHeight(){return getCssVarNumber('--header-cont-h')}
1345_setDiffMainHeader(){const _this=this;_this.diffMainHeader=!_this.isMainHeader?document.querySelector('.header--main'):null}
1346_setHeaderHeight(){const _this=this,$el=_this.$el;const height=_this.headerCtrl.elHeight;if(height!==_this.elHeight){_this._log('update height',{new:height,old:_this.elHeight});document.documentElement.style.setProperty('--sticky-header-h',height+'px');_this.elHeight=height;const $spacer=$el.closest('.scrollmagic-pin-spacer');if($spacer){$spacer.style.height=height+'px';$spacer.style.minHeight=height+'px';_this._log('adjust spacer height',{height:height,$spacer:$spacer})}}}
1347buildScrollContainer(permaSticky=!1){const _this=this,$el=_this.$el,options=_this.options;_this.smController=new ScrollMagic.Controller();options.sceneOptions={triggerElement:$el,duration:0,triggerHook:0,reverse:!0,offset:0};_this.pinOptions={pushFollowers:!1}
1348_this.scene=new ScrollMagic.Scene(options.sceneOptions).setPin($el,_this.pinOptions).on('enter',function(event){_this._log('enter scene',event);if(!permaSticky){}}).on('leave',function(event){_this._log('leave scene',event);if(!permaSticky){$el.classList.remove(options.activeToggleClass);$el.closest('.sticky-header')?.classList.remove(options.activeToggleClass);if(_this.headerCtrl)_this.headerCtrl.repositionNav(!_this.isMainHeader);}}).on('update',function(event){let startPos=(!permaSticky)?event.startPos:0;let activeStatePos=(typeof options.activeStatePos==='function')?options.activeStatePos():options.activeStatePos;if((event.scrollPos>=startPos+activeStatePos)){if(!$el.classList.contains(options.activeToggleClass)){_this._log('toggle active class',[!0,{activeStatePos:activeStatePos}]);$el.classList.add(options.activeToggleClass);$el.closest('.sticky-header')?.classList.add(options.activeToggleClass);_this.headerCtrl.repositionNav();_this.diffMainHeader?.Header.closeNav()}}else if($el.classList.contains(options.activeToggleClass)){_this._log('toggle active class',[!1,{activeStatePos:activeStatePos}]);_this.headerCtrl.repositionNav(!_this.isMainHeader);$el.classList.remove(options.activeToggleClass);$el.closest('.sticky-header')?.classList.remove(options.activeToggleClass)}}).addTo(_this.smController);if(_this._isDebug())_this.scene.addIndicators({name:$el.id+' inline sticky header'});_this._log('scene initialized')}
1349initNavCurrentStatesOnScroll(){const _this=this,$el=_this.$el;let $navLinks=$el.querySelectorAll('.nav .item__link');$navLinks.forEach(($link)=>{let anchor=($link.href)?$link.href.split('#')[1]:null;if(anchor){let $target=document.querySelector('#'+anchor);if($target&&$target.dataset.origId){$target=document.querySelector('#'+$target.dataset.origId)}
1350if($target){let scene=new ScrollMagic.Scene({triggerElement:$target,triggerHook:0,duration:getOuterHeight($target),reverse:!0}).setClassToggle($link.closest('.item'),'item--current').addTo(_this.smController);if(_this._isDebug())scene.addIndicators();}}});_this._log('init nav current states on scroll')}}
1351window.StickyHeader=StickyHeader;document.addEventListener('DOMContentLoaded',function(){let $stickyHeader=document.querySelector('.sticky-header .header--sticky');
1351if($stickyHeader){ComponentRegistry.initComponent($stickyHeader,'StickyHeader')}else{ComponentRegistry.initComponent(document.querySelector('.header--sticky'),'StickyHeader')}});(function($){$.fn.extend({donetyping:function(callback,timeout,minCharacters){timeout=timeout||1e3;minCharacters=minCharacters||0;var timeoutReference,doneTyping=function(el){if(!timeoutReference)return;timeoutReference=null;callback.call(el)};return this.each(function(i,el){var $el=$(el);$el.is(':input')&&$el.on('keyup keypress paste',function(e){if(e.type=='keyup'&&e.keyCode!=8)return;if(timeoutReference)clearTimeout(timeoutReference);timeoutReference=setTimeout(function(){if(e.currentTarget.value.length>=minCharacters)doneTyping(el);},timeout)}).on('blur',function(){doneTyping(el)})})}});let AddItemList=window.AddItemList=window.AddItemList||{};AddItemList.Data={identifierName:'AddItemList'};AddItemList.Controller=function(el,options){let _this=this,$el=_this.$el=$(el);_this.options=options=_this._evaluateOptions(options,{ajaxActive:!1,ajaxInit:!1});_this.data=AddItemList.Data;_this.debug=options.debug;_this._log(_this.data.identifierName+' Controller');_this._init()};AddItemList.Controller.prototype={_init:function(){let _this=this,$el=_this.$el,options=_this.options;_this.ajaxCtrl=$el.initAjax({name:_this.data.identifierName,onInit:_this.options.ajaxInit,debug:_this.debug,ajaxOptions:{onAjaxContentLoaded:function(){_this.initAjaxPagination()}}});_this.initAjaxPagination();$el.data('initialized',!0);_this._log('initialized')},triggerAjax:function(params,options={}){let _this=this,$el=_this.$el;options.params=(params)?params:!1;_this.ajaxCtrl._triggerAjax(options)},initAjaxPagination:function(){let _this=this;let $el=_this.$el;let $pagination=$el.find('.pagination--ajax');if($pagination.length){$pagination.find('.pagination__list > li > a').each(function(){this.addEventListener('click',function(e){e.preventDefault();let params={currentPage:this.dataset.page};if(this.dataset.overwriteDemand){params.overwriteDemand=this.dataset.overwriteDemand}
1352$scrollToContent=($el.data('filter'))?$el.data('filter'):$el;_this.triggerAjax(params,{scrollToContent:$scrollToContent.get(0)})})})}},_evaluateOptions:function(options,optionDefaults){if(!options){return optionDefaults}else{let mergedOptions={...optionDefaults,...options};return mergedOptions}},_listenOnController:function($el,controllerDataName,controllerRdyHandler,varName,onRdy=null){let _this=this;if($el.length){_this[varName]=$el.data(controllerDataName);if(!_this[varName]){$el.on(controllerRdyHandler,function(){_this[varName]=$(this).data(controllerDataName);if(onRdy!==null&&typeof onRdy==='function'){onRdy()}})}else if(onRdy!==null&&typeof onRdy==='function'){onRdy()}}},_log:function(title,values){let _this=this,$el=_this.$el,options=_this.options;if(_this.debug){if(values){console.log({title:'Log ('+_this.data.identifierName+'): '+title,_this:_this,values:values})}else{console.log({title:'Log ('+_this.data.identifierName+'): '+title,_this:_this})}}},};let AddItemFilter=window.AddItemFilter=window.AddItemFilter||{};AddItemFilter.Data={identifierName:'AddItemFilter'};AddItemFilter.Controller=function(el,options){let _this=this,$el=_this.$el=$(el);_this.options=options=_this._evaluateOptions(options,{ajaxActive:!1,ajaxInit:!1});_this.data=AddItemFilter.Data;_this.debug=options.debug;_this.settings=_this.settingsInitial=_this.settingsReset={};_this.$html=$('html');_this.$settingsInline=$el.find('.settings--inline');_this.$settingsOverlay=$el.find('.settings--overlay');_this.$targetList=$targetList=$($el.data('filter-target'));_this.$inputs=$el.find('input');_this.$checkInputs=$el.find('input[type="checkbox"], input[type="radio"]');_this.$textInputs=$el.find('input[type="text"]');_this.$initialCheckedInputs=$el.find('input:checked');_this.$filterReset=$el.find('.filter__reset');_this.$filterActivesInline=$el.find('.settings--actives');_this._log(_this.data.identifierName+' Controller');if($targetList.length){$targetList.data('filter',$el);if(!_this.$filterActivesInline.length){_this.$filterActivesInline=$targetList.find('.settings--actives')}
1353_this.$filterReset=_this.$filterReset.add($targetList.find('.filter__reset'));_this._listenOnController($targetList,'AddItemListController','AddItemList-rdy','targetListCtrl',function(){_this.targetListCtrl.debug=_this.debug;_this._init()})}};AddItemFilter.Controller.prototype={_init:function(){let _this=this,$el=_this.$el,options=_this.options,addItemList=_this.targetListCtrl,$settingsInline=_this.$settingsInline,$settingsOverlay=_this.$settingsOverlay,$inputs=_this.$inputs,$initialCheckedInputs=_this.$initialCheckedInputs,$filterReset=_this.$filterReset;$textInputs=_this.$textInputs;settingsInline=settingsOverlay=null;if($settingsInline.length&&$inputs.length){settingsInline=_this._initInline();if($settingsOverlay.length){settingsOverlay=_this._initOverlay()}
1354let $itemSave=$el.find('.item__save');let $itemReset=$el.find('.item__reset');if($itemSave.length){$itemSave.onClickAndEnter(function(){_this.submitSettings($(this).closest('.settings__item'))}).makeFocusable()}
1355if($itemReset.length){$itemReset.onClickAndEnter(function(){_this.itemReset($(this))}).makeFocusable()}
1356if($filterReset.length){function filterReset($this){_this.submitSettings(null,'reset')}
1357$filterReset.onClickAndEnter(function(){filterReset($(this))}).makeFocusable()}
1358if($textInputs.length){$textInputs.each(function(){let $this=$(this);let min=($this.data('min'))?$this.data('min'):0;$this.donetyping(function(){_this.submitSettings()},1000,min)})}}
1359if(options.ajaxInit&&!_this.isEmpty(_this.settingsInitial)){_this.submitSettings(null,'initial')}
1360$el.data('initialized',!0);_this._log('initialized',{addItemList:addItemList,settingsInline:settingsInline,settingsOverlay:settingsOverlay})},_initOverlay:function(){let _this=this,$el=_this.$el,options=_this.options,addItemList=_this.targetListCtrl,$settingsOverlay=_this.$settingsOverlay;_this.$overlayMain=$overlayMain=$settingsOverlay.find('.overlay--main');_this.$overlaySettingsItems=$overlaySettingsItems=$overlayMain.find('.settings__item');_this.$overlaySettingsInputs=$overlaySettingsInputs=$overlayMain.find('input');let $overlayToggle=$settingsOverlay.find('.overlay__toggle');
1360if($overlaySettingsItems.length){if($overlayToggle.length){$overlayToggle.onClickAndEnter(function(){_this.toggleOverlay($(this))}).makeFocusable()}
1361if($overlaySettingsInputs.length){$overlaySettingsInputs.each(function(){this.addEventListener('change',function(){let $item=$(this).closest('.settings__item');_this.validateItem($item)})})}
1362return{$overlaySettingsItems:$overlaySettingsItems,$overlaySettingsInputs:$overlaySettingsInputs}}else{return null}},toggleOverlay:function($this){let _this=this,$el=_this.$el,$html=_this.$html;switch($this.data('target-type')){case 'main':var $target=$el.find('.overlay--main');lockScrolling({mode:'toggle'},$html.get(0));break;case 'sub':$target=$el.find('.overlay--'+$this.data('target'));if(!$this.hasClass('item__save')){let $item=$target.closest('.settings__item');let result=_this.checkSettings($item);if(result.changed){$item.find('input').each(function(){let $this=$(this);let inputIdentifier=$this.prop('id');if(result.changedSettings[inputIdentifier]==undefined){switch($this.prop('type')){case 'checkbox':case 'radio':_this.checkInput($this,'toggle');break}}})}}
1363break}
1364$target.toggleClass('overlay--active')},_initInline:function(){let _this=this,$el=_this.$el,options=_this.options,addItemList=_this.targetListCtrl,$settingsInline=_this.$settingsInline;_this.settingsInitial=_this.getSettings($settingsInline,!1,!0);$textSettings=$settingsInline.find('.settings__text');$categorySettings=$settingsInline.find('.settings__categories');_this.$filterResetItem=$filterResetItem=$settingsInline.find('.settings__item.filter__reset');if($categorySettings.length){let $categorySettingsItems=$categorySettings.find('.settings__item');let $filterMore=$categorySettings.find('.filter__more');let categoryMode=$categorySettings.data('category-mode');switch(categoryMode){case 'multi-selects':$categorySettingsItems.each(function(){let $item=$(this);let $selectEl=$item.find('.multiselect');let multiSelect=$selectEl.data('MultiSelectController');let contextDefault='MultiSelect';let submitSettings=function(context){let c=(context)?context:contextDefault;if(_this.checkSettings($item).changed){_this.submitSettings($item,c)}};onOutsideClick($selectEl.get(0),{callback:function(){submitSettings(null,'outside-click')}});if(multiSelect){multiSelect.onToggleOff=submitSettings}else{$selectEl.on('MultiSelect-rdy',function(){multiSelect=$selectEl.data('MultiSelectController');multiSelect.onToggleOff=submitSettings})}
1365$item.find('input').each(function(){this.addEventListener('change',function(){_this.validateItem($(this).closest('.settings__item'))})})});break
1366case 'check-buttons':$categorySettingsItems.each(function(){let $item=$(this);$item.find('input').each(function(){if(!$(this).closest('.settings__item').is($filterResetItem)){this.addEventListener('change',function(){_this.submitSettings($(this).closest('.settings__item'))})}})});break}
1367if($filterMore.length){function filterMore($this){$categorySettingsItems.removeClass('item--hide');$this.remove()}
1368$filterMore.onClickAndEnter(function(){filterMore($(this))}).makeFocusable()}}
1369return{$inlineSettingsInputs:$settingsInline.find('input'),$inlineSettingsItems:$settingsInline.find('.settings__item')}},submitTargetList:function(settings){let _this=this;_this.targetListCtrl.triggerAjax({overwriteDemand:settings,settingsDemand:_this.getSettingsDemand()})},getSettingsDemand:function(){let _this=this,$el=_this.$el;let settings={};$settingsFields=$el.find('.settings--demand > input');$settingsFields.each(function(){let $input=$(this);settings[$input.prop('name')]=$input.val()});return settings},submitSettings:function($item,context){let _this=this,$el=_this.$el,$settingsInline=_this.$settingsInline,$settingsOverlay=_this.$settingsOverlay,$filterReset=_this.$filterReset,$inputs=_this.$inputs;$initialCheckedInputs=_this.$initialCheckedInputs;$filterResetItem=_this.$filterResetItem;context=(context)?context:($item)?'item saved':'default';let settings={};if($item){_this.syncItemToCurrentSettings($item);var settingsType=_this.getSettingsTypeFromItem($item);
1369switch(settingsType){case 'inline':settings=_this.getSettings($settingsInline);break;case 'overlay':settings=_this.getSettings($settingsOverlay);break}
1370if(_this.settingsOverlay){_this.syncSettings(settingsType,settings)}
1371_this.validateItem($item,!0);_this.submitTargetList(settings);switch(settingsType){case 'inline':let $selectEl=$item.find('.multiselect');if($selectEl.length)$selectEl.data('MultiSelectController').closeSelect();break}}else{if(context=='reset'){settings=_this.settingsReset;$inputs.each(function(){let $this=$(this);let $item=$(this).closest('.settings__item');if($item.hasClass('filter__reset')){_this.checkInput($this,!0)}else{switch(this.type){case 'checkbox':case 'radio':if(_this.checkInput($this,!1)){_this.syncItemToCurrentSettings($item);_this.validateItem($item,!0)}
1372break;case 'text':this.value='';break}}});_this.submitTargetList(settings)}else{settings=_this.getSettings();$initialCheckedInputs.each(function(){let $item=$(this).closest('.settings__item');_this.syncItemToCurrentSettings($item);_this.validateItem($item,!0)});_this.submitTargetList(settings)}}
1373if(!_this.isEmpty(settings)){if($filterResetItem.length)_this.checkInput($filterResetItem.find('input'),!1);$el.addClass('filter--active').find('.filter__hint').html(Object.keys(_this.settings).length)}else{if($filterResetItem.length)_this.checkInput($filterResetItem.find('input'),!0);$el.removeClass('filter--active').find('.filter__hint').html('')}
1374if(!_this.equals(settings,_this.settingsReset)){_this.enable($filterReset,!0)}else{_this.enable($filterReset,!1)}
1375_this._log('submit settings ('+context+')',{$item:$item,settingsType:settingsType,settings:_this.settings})},itemReset:function($this){let _this=this;let $item=$this.closest('.settings__item');$item.find('input:checked').each(function(){this.checked=!1;this.dispatchEvent(new Event('change'))});_this.enable($this,!1)},syncItemToCurrentSettings:function($item){let _this=this;let itemIdentifier=_this.getItemIdentifier($item);let itemSettings=_this.getSettings($item);if(!_this.isEmpty(itemSettings)){_this.settings[itemIdentifier]=itemSettings}else{delete(_this.settings[itemIdentifier])}},validateItem:function($item,saving){let _this=this,$el=_this.$el;let $save=$item.find('.item__save');let $reset=$item.find('.item__reset');let $itemsByIdentifier=$el.find('.settings__item[data-identifier="'+$item.data('identifier')+'"]');let result=_this.checkSettings($item);if($save.length){if(!result.changed){_this.enable($save,!1)}else{_this.enable($save,!0)}}
1376if(!result.changedIsEmpty){if($reset.length)_this.enable($reset,!0);if(saving){let selectedLabels=_this.getSettings($item,!0);selectedLabels=Object.values(selectedLabels);$itemsByIdentifier.addClass('item--filtered').find('.item__selection').html(selectedLabels[0].join(', '));_this.showActivesInline($item,result)}}else{if($reset.length)_this.enable($reset,!1);if(saving){$itemsByIdentifier.removeClass('item--filtered').find('.item__selection').html('');_this.showActivesInline($item,result)}}},showActivesInline:function($item,result){let _this=this,$settingsInline=_this.$settingsInline,$settingsOverlay=_this.$settingsOverlay,$filterActivesInline=_this.$filterActivesInline;if($filterActivesInline.length){let $itemWrap=$filterActivesInline.find('.settings__items-wrap');let $reset=$filterActivesInline.find('.settings__reset');let activeSettings=_this.getSettings($settingsInline,!0,!0);$itemWrap.html('');if(!_this.isEmpty(activeSettings)){_this._log('set actives inline',activeSettings);_this.enable($reset,!0);$filterActivesInline.addClass('settings--active');$.each(activeSettings,function(itemId,itemValue){itemValue=(Array.isArray(itemValue))?itemValue[0]:itemValue;if(itemValue){$("<div class='settings__item item' data-id='"+itemId+"'><div class='item__inner button button--default button--icon'><span class='button__text'>"+itemValue+"</span><span class='button__icon'></span></div></div>").appendTo($itemWrap)}});$itemWrap.find('.settings__item').each(function(){$(this).onClickAndEnter(function(){let $this=$(this);let $input=$('#'+$this.data('id'));_this.checkInput($input,!1);_this.submitSettings($input.closest('.settings__item'),'item save by inline filter');$this.remove();if(!$itemWrap.children().length){$filterActivesInline.removeClass('settings--active')}}).makeFocusable()})}else{_this._log('remove actives inline',activeSettings);_this.enable($reset,!1);$filterActivesInline.removeClass('settings--active')}}},checkSettings:function($item){let _this=this;let settings=_this.settings[_this.getItemIdentifier($item)]||{};
1376let changedSettings=_this.getSettings($item,null,!0);let result=_this.equals(settings,_this.getSettings($item));return{changed:!result,changedSettings:changedSettings,changedIsEmpty:$.isEmptyObject(changedSettings),wasEmpty:$.isEmptyObject(settings)}},isEmpty:function(settings){return $.isEmptyObject(settings)},getSettings:function($container,returnLabels,idPrefixed){let _this=this,$el=_this.$el;let settings={};let $inputs=($container)?$container.find('input'):_this.$inputs;if($inputs.length){$inputs.each(function(){let $this=$(this);let typeCond=!1;let multiValue=!1;switch($this.prop('type')){case 'checkbox':case 'radio':typeCond=$this.is(':checked');multiValue=!0;break;case 'text':typeCond=($this.data('min'))?$this.val().length>=$this.data('min'):!0;break;default:typeCond=!0}
1377if(typeCond&&$this.prop('name')&&$this.val()){let val=(!returnLabels)?$this.val():$this.data('label');let prefix=((!idPrefixed)?$this.prop('name'):$this.prop('id')).replace('[]','');if(multiValue){if(settings[prefix]!=undefined&&val){if($.inArray(val,settings[prefix])===-1){settings[prefix].push(val)}}else{settings[prefix]=[val]}}else{settings[prefix]=val}}})}
1378return settings},syncSettings:function(settingsType,settings){let _this=this,$el=_this.$el,$settingsInline=_this.$settingsInline,$settingsOverlay=_this.$settingsOverlay;let $identifierSuffix='';switch(settingsType){case 'inline':var $settings=$settingsOverlay;$identifierSuffix='-overlay'
1379break;case 'overlay':var $settings=$settingsInline;break}
1380for(itemIdentifier in _this.settings){let $item=$settings.find('.settings__item#'+itemIdentifier+$identifierSuffix);if($item.length){let $inputs=$item.find('input');$inputs.each(function(){let $this=$(this);switch($this.prop('type')){case 'checkbox':case 'radio':if($this.prop('name')){if(_this.settings[itemIdentifier][$this.prop('name')]&&_this.settings[itemIdentifier][$this.prop('name')].indexOf($this.val())>=0){_this.checkInput($this,!0)}else{_this.checkInput($this,!1)}}
1381break;case 'text':break}})}}},getSettingsTypeFromItem:function($item){return $item.closest('.filter__settings').data('settings')},getItemIdentifier:function($item){return $item.prop('id').replace('-overlay','')||'undefined'},equals:function(a,b){let _this=this;if(a===b)return!0;if(a instanceof Date&&b instanceof Date)
1382return a.getTime()===b.getTime();if(!a||!b||(typeof a!=='object'&&typeof b!=='object'))
1383return a===b;if(a.prototype!==b.prototype)return!1;let keys=Object.keys(a);if(keys.length!==Object.keys(b).length)return!1;return keys.every(k=>_this.equals(a[k],b[k]))},enable:function($el,mod){let _this=this;$el.each(function(){let $this=$(this);if($this.prop('disabled')!==!mod){$this.prop('disabled',!mod);_this._log('enable '+mod,{$item:$this,mod:mod})}})},checkInput:function($input,mod){$input=$input.get(0);switch(mod){case 'toggle':$input.checked=!$input.checked;$input.dispatchEvent(new Event('change'));return!0;break;case true:if(!$input.checked){$input.checked=!0;$input.dispatchEvent(new Event('change'));return!0}
1384break;case false:if($input.checked){$input.checked=!1;$input.dispatchEvent(new Event('change'));return!0}
1385break}
1386return!1},_evaluateOptions:function(options,optionDefaults){if(!options){return optionDefaults}else{let mergedOptions={...optionDefaults,...options};return mergedOptions}},_listenOnController:function($el,controllerDataName,controllerRdyHandler,varName,onRdy=null){let _this=this;if($el.length){_this[varName]=$el.data(controllerDataName);if(!_this[varName]){$el.on(controllerRdyHandler,function(){_this[varName]=$(this).data(controllerDataName);if(onRdy!==null&&typeof onRdy==='function'){onRdy()}})}else if(onRdy!==null&&typeof onRdy==='function'){onRdy()}}},_log:function(title,values){let _this=this,$el=_this.$el,options=_this.options;if(_this.debug){if(values){console.log({title:'Log ('+_this.data.identifierName+'): '+title,_this:_this,values:values})}else{console.log({title:'Log ('+_this.data.identifierName+'): '+title,_this:_this})}}},};$.fn.initAddItemList=function(options){let $element=$(this);if($element.length>1){$element.each(function(){init($(this))})}else{init($element)}
1387function init($el){if($el.length&&!$el.data(AddItemList.Data.identifierName+'Controller')){let dataOptions={};if($el.hasClass('ajax-active')){dataOptions.ajaxActive=!0};if($el.data('ajax-init')){dataOptions.ajaxInit=$el.data('ajax-init')};let mergedOptions={...dataOptions,...options};$el.data(AddItemList.Data.identifierName+'Controller',new AddItemList.Controller($el,mergedOptions)).triggerHandler(AddItemList.Data.identifierName+'-rdy')}}};$.fn.initAddItemFilter=function(options){let $element=$(this);if($element.length>1){$element.each(function(){init($(this))})}else{init($element)}
1388function init($el){if($el.length&&!$el.data(AddItemFilter.Data.identifierName+'Controller')){let dataOptions={};if($el.hasClass('ajax-active')){dataOptions.ajaxActive=!0};if($el.data('ajax-init')){dataOptions.ajaxInit=$el.data('ajax-init')};let mergedOptions={...dataOptions,...options};$el.data(AddItemFilter.Data.identifierName+'Controller',new AddItemFilter.Controller($el,mergedOptions)).triggerHandler(AddItemFilter.Data.identifierName+'-rdy')}}}})(jQuery);document.addEventListener('DOMContentLoaded',function(){$('.additem-list').initAddItemList();$('.additem-filter.filter--connected').initAddItemFilter()});document.addEventListener('DOMContentLoaded',()=>{const inputs=document.querySelectorAll('.tx-solr-q, input[name^="tx_solr["][name$="[q]"], input[name="q"]');if(!inputs.length)return;const params=new URLSearchParams(window.location.search);const q=params.get('tx_solr[q]')||params.get('q');if(q===null||q==='')return;
1388inputs.forEach((input,idx)=>{if(!input.value){input.value=q;if(idx===inputs.length-1){input.focus();const len=input.value.length;input.setSelectionRange(len,len)}}})});!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"function"==typeof require?t(require("jquery")):t(jQuery)}(function(t){"use strict";var e={escapeRegExChars:function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(t){var e=document.createElement("div");return e.className=t,e.style.position="absolute",e.style.display="none",e}},s=27,i=9,n=13,o=38,a=39,u=40,l=t.noop;function r(e,s){this.element=e,this.el=t(e),this.suggestions=[],this.badQueries=[],this.selectedIndex=-1,this.currentValue=this.element.value,this.timeoutId=null,this.cachedResponse={},this.onChangeTimeout=null,this.onChange=null,this.isLocal=!1,this.suggestionsContainer=null,this.noSuggestionsContainer=null,this.options=t.extend(!0,{},r.defaults,s),this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},this.hint=null,this.hintValue="",this.selection=null,this.initialize(),this.setOptions(s)}r.utils=e,t.Autocomplete=r,r.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,onHint:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(t,s){if(!s)return t.value;var i="("+e.escapeRegExChars(s)+")";return t.value.replace(new RegExp(i,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},formatGroup:function(t,e){return'<div class="autocomplete-group">'+e+"</div>"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:l,onSearchComplete:l,onSearchError:l,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(t,e,s){return-1!==t.value.toLowerCase().indexOf(s)},paramName:"query",transformResult:function(e){return"string"==typeof e?t.parseJSON(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},r.prototype={initialize:function(){var e,s=this,i="."+s.classes.suggestion,n=s.classes.selected,o=s.options;s.element.setAttribute("autocomplete","off"),s.noSuggestionsContainer=t('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),s.suggestionsContainer=r.utils.createNode(o.containerClass),(e=t(s.suggestionsContainer)).appendTo(o.appendTo||"body"),"auto"!==o.width&&e.css("width",o.width),e.on("mouseover.autocomplete",i,function(){s.activate(t(this).data("index"))}),e.on("mouseout.autocomplete",function(){s.selectedIndex=-1,e.children("."+n).removeClass(n)}),e.on("click.autocomplete",i,function(){s.select(t(this).data("index"))}),e.on("click.autocomplete",function(){clearTimeout(s.blurTimeoutId)}),s.fixPositionCapture=function(){s.visible&&s.fixPosition()},t(window).on("resize.autocomplete",s.fixPositionCapture),s.el.on("keydown.autocomplete",function(t){s.onKeyPress(t)}),s.el.on("keyup.autocomplete",function(t){s.onKeyUp(t)}),s.el.on("blur.autocomplete",function(){s.onBlur()}),s.el.on("focus.autocomplete",function(){s.onFocus()}),s.el.on("change.autocomplete",function(t){s.onKeyUp(t)}),s.el.on("input.autocomplete",function(t){s.onKeyUp(t)})},onFocus:function(){this.disabled||(this.fixPosition(),this.el.val().length>=this.options.minChars&&this.onValueChange())},onBlur:function(){var e=this,s=e.options,i=e.el.val(),n=e.getQuery(i);e.blurTimeoutId=setTimeout(function(){e.hide(),e.selection&&e.currentValue!==n&&(s.onInvalidateSelection||t.noop).call(e.element)},200)},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(e){var s=t.extend({},this.options,e);this.isLocal=Array.isArray(s.lookup),this.isLocal&&(s.lookup=this.verifySuggestionsFormat(s.lookup)),s.orientation=this.validateOrientation(s.orientation,"bottom"),t(this.suggestionsContainer).css({"max-height":s.maxHeight+"px",width:s.width+"px","z-index":s.zIndex}),this.options=s},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){this.disabled=!0,clearTimeout(this.onChangeTimeout),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e=t(this.suggestionsContainer),s=e.parent().get(0);if(s===document.body||this.options.forceFixPosition){var i=this.options.orientation,n=e.outerHeight(),o=this.el.outerHeight(),a=this.el.offset(),u={top:a.top,left
1388:a.left};if("auto"===i){var l=t(window).height(),r=t(window).scrollTop(),h=-r+a.top-n,c=r+l-(a.top+o+n);i=Math.max(h,c)===h?"top":"bottom"}if(u.top+="top"===i?-n:o,s!==document.body){var g,d=e.css("opacity");this.visible||e.css("opacity",0).show(),g=e.offsetParent().offset(),u.top-=g.top,u.top+=s.scrollTop,u.left-=g.left,this.visible||e.css("opacity",d).hide()}"auto"===this.options.width&&(u.width=this.el.outerWidth()+"px"),e.css(u)}},isCursorAtEnd:function(){var t,e=this.el.val().length,s=this.element.selectionStart;return"number"==typeof s?s===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(t){if(this.disabled||this.visible||t.which!==u||!this.currentValue){if(!this.disabled&&this.visible){switch(t.which){case s:this.el.val(this.currentValue),this.hide();break;case a:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case i:if(this.hint&&this.options.onHint)return void this.selectHint();if(-1===this.selectedIndex)return void this.hide();if(this.select(this.selectedIndex),!1===this.options.tabDisabled)return;break;case n:if(-1===this.selectedIndex)return void this.hide();this.select(this.selectedIndex);break;case o:this.moveUp();break;case u:this.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}}else this.suggest()},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.which){case o:case u:return}clearTimeout(e.onChangeTimeout),e.currentValue!==e.el.val()&&(e.findBestHint(),e.options.deferRequestBy>0?e.onChangeTimeout=setTimeout(function(){e.onValueChange()},e.options.deferRequestBy):e.onValueChange())}},onValueChange:function(){if(this.ignoreValueChange)this.ignoreValueChange=!1;else{var e=this.options,s=this.el.val(),i=this.getQuery(s);this.selection&&this.currentValue!==i&&(this.selection=null,(e.onInvalidateSelection||t.noop).call(this.element)),clearTimeout(this.onChangeTimeout),this.currentValue=s,this.selectedIndex=-1,e.triggerSelectOnValidInput&&this.isExactMatch(i)?this.select(0):i.length<e.minChars?this.hide():this.getSuggestions(i)}},isExactMatch:function(t){var e=this.suggestions;return 1===e.length&&e[0].value.toLowerCase()===t.toLowerCase()},getQuery:function(e){var s,i=this.options.delimiter;return i?(s=e.split(i),t.trim(s[s.length-1])):e},getSuggestionsLocal:function(e){var s,i=this.options,n=e.toLowerCase(),o=i.lookupFilter,a=parseInt(i.lookupLimit,10);return s={suggestions:t.grep(i.lookup,function(t){return o(t,e,n)})},a&&s.suggestions.length>a&&(s.suggestions=s.suggestions.slice(0,a)),s},getSuggestions:function(e){var s,i,n,o,a=this,u=a.options,l=u.serviceUrl;u.params[u.paramName]=e,!1!==u.onSearchStart.call(a.element,u.params)&&(i=u.ignoreParams?null:u.params,t.isFunction(u.lookup)?u.lookup(e,function(t){a.suggestions=t.suggestions,a.suggest(),u.onSearchComplete.call(a.element,e,t.suggestions)}):(a.isLocal?s=a.getSuggestionsLocal(e):(t.isFunction(l)&&(l=l.call(a.element,e)),n=l+"?"+t.param(i||{}),s=a.cachedResponse[n]),s&&Array.isArray(s.suggestions)?(a.suggestions=s.suggestions,a.suggest(),u.onSearchComplete.call(a.element,e,s.suggestions)):a.isBadQuery(e)?u.onSearchComplete.call(a.element,e,[]):(a.abortAjax(),o={url:l,data:i,type:u.type,dataType:u.dataType},t.extend(o,u.ajaxSettings),a.currentRequest=t.ajax(o).done(function(t){var s;a.currentRequest=null,s=u.transformResult(t,e),a.processResponse(s,e,n),u.onSearchComplete.call(a.element,e,s.suggestions)}).fail(function(t,s,i){u.onSearchError.call(a.element,e,t,s,i)}))))},isBadQuery:function(t){if(!this.options.preventBadQueries)return!1;for(var e=this.badQueries,s=e.length;s--;)if(0===t.indexOf(e[s]))return!0;return!1},hide:function(){var e=t(this.suggestionsContainer);t.isFunction(this.options.onHide)&&this.visible&&this.options.onHide.call(this.element,e),this.visible=!1,this.selectedIndex=-1,clearTimeout(this.onChangeTimeout),t(this.suggestionsContainer).hide(),this.onHint(null)},suggest:function(){if(this.suggestions.length){var e,s=this.options,i=s.groupBy,n=s.formatResult,o=this.getQuery(this.currentValue),a=this.classes.suggestion,u=this.classes.selected,l=t(this.suggestionsContainer),r=t(this.noSuggestionsContainer),h=s.beforeRender,c="";s.triggerSelectOnValidInput&&this.isExactMatch(o)?this.select(0):(t.each(this.suggestions,function(t,u){i&&(c+=function(t,n){var o=t.data[i];return e===o?"":(e=o,s.formatGroup(t,e))}(u,0)),c+='<div class="'+a+'" data-index="'+t+'">'+n(u,o,t)+"</div>"}),this.adjustContainerWidth(),r.detach(),l.html(c),t.isFunction(h)&&h.call(this.element,l,this.suggestions),this.fixPosition(),l.show(),s.autoSelectFirst&&(this.selectedIndex=0,l.scrollTop(0),l.children("."+a).first().addClass(u)),this.visible=!0,this.findBestHint())}else this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var e=this.options.beforeRender,s=t(this.suggestionsContainer),i=t(this.noSuggestionsContainer);this.adjustContainerWidth(),i.detach(),s.empty(),s.append(i),t.isFunction(e)&&e.call(this.element,s,this.suggestions),this.fixPosition(),s.show(),this.visible=!0},adjustContainerWidth:function(){var e,s=this.options,i=t(this.suggestionsContainer);"auto"===s.width?(e=this.el.outerWidth(),i.css("width",e>0?e:300)):"flex"===s.width&&i.css("width","")},findBestHint:function(){var e=this.el.val().toLowerCase(),s=null;e&&(t.each(this.suggestions,function(t,i){var n=0===i.value.toLowerCase().indexOf(e);return n&&(s=i),!n}),this.onHint(s))},onHint:function(e){var s=this.options.onHint,i="";e&&(i=this.currentValue+e.value.substr(this.currentValue.length)),this.hintValue!==i&&(this.hintValue=i,this.hint=e,t.isFunction(s)&&s.call(this.element,i))},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?t.map(e,function(t){return{value:t,data:null}}):e},validateOrientation:function(e,s){return e=t.trim(e||"").toLowerCase(),-1===t.inArray(e,["auto","bottom","top"])&&(e=s),e},processResponse:function(t,e,s){var i=this.options;t.suggestions=this.verifySuggestionsFormat(t.suggestions),i.noCache||(this.cachedResponse[s]=t,i.preventBadQueries&&!t.suggestions.length&&this.badQueries.push(e)),e===this.getQuery(this.currentValue)&&(this.suggestions=t.suggestions,this.suggest())},activate:function(e){var s,i=this.classes.selected,n=t(this.suggestionsContainer),o=n.find("."+this.classes.suggestion);return n.find("."+i).removeClass(i),this.selectedIndex=e,-1!==this.selectedIndex&&o.length>this.selectedIndex?(s=o.get(this.selectedIndex),t(s).addClass(i),s):null},selectHint:function(){var e=t.inArray(this.hint,this.suggestions);this.select(e)},select:function(t){this.hide(),this.onSelect(t)},moveUp:function(){if(-1!==this.selectedIndex)return 0===this.selectedIndex?(t(this.suggestionsContainer).children("."+this.classes.suggestion).first().removeClass(this.classes.selected),this.selectedIndex=-1,this.ignoreValueChange=!1,this.el.val(this.currentValue),void this.findBestHint()):void this.adjustScroll(this.selectedIndex-1)},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var s=this.activate(e);if(s){var i,n,o,a=t(s).outerHeight();i=s.offsetTop,o=(n=t(this.suggestionsContainer).scrollTop())+this.options.maxHeight-a,i<n?t(this.suggestionsContainer).scrollTop(i):i>o&&t(this.suggestionsContainer).scrollTop(i-this.options.maxHeight+a),this.options.preserveInput||(this.ignoreValueChange=!0,this.el.val(this.getValue(this.suggestions[e].value))),this.onHint(null)}},onSelect:function(e){var s=this.options.onSelect,i=this.suggestions[e];this.currentValue=this.getValue(i.value),this.currentValue===this.el.val()||this.options.preserveInput||this.el.val(this.currentValue),this.onHint(null),this.suggestions=[],this.selection=i,t.isFunction(s)&&s.call(this.element,i)},getValue:function(t){var e,s,i=this.options.delimiter;return i?1===(s=(e=this.currentValue).split(i)).length?t:e.substr(0,e.length-s[s.length-1].length)+t:t},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),t(window).off("resize.autocomplete",this.fixPositionCapture),t(this.suggestionsContainer).remove()}},t.fn.devbridgeAutocomplete=function(e,s){return arguments.length?this.each(function(){var i=t(this),n=i.data("autocomplete");"string"==typeof e?n&&"function"==typeof n[e]&&n[e](s):(n&&n.dispose&&n.dispose(),n=new r(this,e),i.data("autocomplete",n))}):this.first().data("autocomplete")}
1388,t.fn.autocomplete||(t.fn.autocomplete=t.fn.devbridgeAutocomplete)});function SuggestController(){this.init=function(){let _this=this;$('form[data-suggest]').each(function(){let $form=$(this),$searchBox=$form.find('.tx-solr-suggest'),$formAutoComplete;if($searchBox.data('ac-initialized'))return;$searchBox.data('ac-initialized',!0);const options=$form.data('options')||{};const labels=options.labels||{};const icons=options.icons||{};labels.recent=labels.recent||'Recent';labels.popular=labels.popular||'Popular';labels.suggestions=labels.suggestions||'Suggestions';labels.results=labels.results||'Top results';labels.empty=labels.empty||'No results';labels.listAria=labels.listAria||labels.suggestions||'Search suggestions';if($form.find('.tx-solr-autocomplete').length>0){$formAutoComplete=$form.find('.tx-solr-autocomplete')}else{$formAutoComplete=$('body')}
1389if($searchBox.length===0){$searchBox=$form}
1390$searchBox.css('position','relative');$searchBox.off('keydown.acAria').on('keydown.acAria',function(e){if(e.which===38||e.which===40){setTimeout(function(){const $cont=$searchBox.data('ac-container');syncAriaSelected($cont)},0)}});$form.on('submit',function(e){const val=$form.find('.tx-solr-suggest-focus').val()||'';if(val.trim()===''){e.preventDefault();$form.find('.tx-solr-suggest-focus').focus()}else{try{const r=_this.getRecent().filter(t=>t.toLowerCase()!==val.toLowerCase());r.unshift(val);sessionStorage.setItem('recentSearches',JSON.stringify(r.slice(0,5)))}catch(_){}}});onOutsideClick($form.get(0),{callback:function(){$form.blur()}});function escapeHtml(str){return String(str).replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;')}
1391function highlightHtml(text,term,tag){let safe=escapeHtml(text);term=(term||'').trim();if(!term)return safe;let safeTerm=escapeHtml(term);let re=new RegExp('('+$.Autocomplete.utils.escapeRegExChars(safeTerm)+')','gi');return safe.replace(re,'<'+tag+'>$1</'+tag+'>')}
1392function debounce(fn,wait){let t;return function(){clearTimeout(t);let ctx=this,args=arguments;t=setTimeout(function(){fn.apply(ctx,args)},wait)}}
1393function syncAriaSelected($cont){if(!$cont||!$cont.length)return;const $items=$cont.find('.autocomplete-suggestion');$items.attr('role','option').attr('aria-selected','false');$cont.find('.autocomplete-suggestion.autocomplete-selected').attr('aria-selected','true')}
1394function sanitizeInlineSvg(svg){return String(svg).replace(/<\s*script[\s\S]*?>[\s\S]*?<\s*\/\s*script\s*>/gi,'').replace(/\son\w+="[^"]*"/gi,'').replace(/\son\w+='[^']*'/gi,'')}
1395function getIconMarkup(key){key=(key||'').toLowerCase();const def=icons[key];if(!def)return'';return'<span class="ac-ico" aria-hidden="true">'+def+'</span>'}
1396function toBool(x){return x===!0||x===1||x==='1'||x==='true'}
1397$form.find('.tx-solr-suggest').devbridgeAutocomplete({noCache:!1,minChars:0,preventBadQueries:!0,groupBy:'category',maxHeight:615,appendTo:$formAutoComplete,autoSelectFirst:!1,triggerSelectOnValidInput:!1,showNoSuggestionNotice:!0,noSuggestionNotice:labels.empty,zIndex:899,lookup:(function(){let currentId=0;let fetchTyped=debounce(function(q,done,$form,id){let data={disable_assets:1};data['tx_solr[queryString]']=q;$.ajax({url:$form.data('suggest'),method:'GET',dataType:'json',data:data}).done(function(resp){if(id!==currentId)return;done(_this.mapSolrResponseToDevbridge(resp,$form,options))}).fail(function(){if(id!==currentId)return;done({suggestions:[]})})},options.deferRequestBy);return function(q,done){let trimmed=(q||'').trim();let id=++currentId;if(!trimmed){$.getJSON('/ajax/initial-suggest',{limit:10}).done(function(payload){if(id!==currentId)return;let recent=_this.getRecent().map(function(value){return{value:value,data:{type:'suggest',url:null,category:'recent'}}});let popular=(payload&&payload.suggestions?payload.suggestions:[]).map(function(s){let data=Object.assign({type:'suggest',category:'popular'},s.data||{});return{value:s.value,data:data}});let seen=new Set(recent.map(function(r){return r.value.toLowerCase()}));let merged=recent.concat(popular.filter(function(p){let key=p.value.toLowerCase();if(seen.has(key))return!1;seen.add(key);return!0})).slice(0,10);done({suggestions:merged})}).fail(function(){if(id!==currentId)return;done({suggestions:[]})})}else{fetchTyped(trimmed,done,$form,id)}}})(),onSelect:function(s){if(s&&s.value)_this.pushRecent(s.value);if(s.data.link){if(s.data.link.indexOf('https://www.youtube.com')===0){openVideoOverlay(s.data.link)}else{location.href=s.data.link}}else{$form.trigger('submit')}},beforeRender:function(container,suggestions){container.addClass('tx-solr-autosuggest').attr({'role':'listbox','aria-label':labels.listAria});container.find('.autocomplete-suggestion').attr({role:'option','aria-selected':'false'});$searchBox.data('ac-container',container);syncAriaSelected(container);const groups=container.find('.autocomplete-group');if(groups.length){container.find('.autocomplete-group').each(function(){var $g=$(this);var key=($g.text()||'').trim().toLowerCase();var txt=labels[key]||key;$g.text(txt).addClass('ac-group ac-group--'+key).attr('data-group',key).attr('role','presentation')});var preferredOrder=['recent','popular','suggestions','results'];if(preferredOrder.length){preferredOrder.forEach(function(wantKey){var $header=container.children('.autocomplete-group').filter(function(){return($(this).attr('data-group')||'').toLowerCase()===wantKey}).first();if($header.length){var $block=$header;var $n=$header.next();while($n.length&&!$n.hasClass('autocomplete-group')){$block=$block.add($n);$n=$n.next()}
1398container.append($block)}})}}
1399$searchBox.parent().addClass('autocomplete-active').fadeIn()},formatResult:function(suggestion,currentValue){const showIcons=toBool(options.showIcons);let term=(currentValue||'').trim();let d=suggestion.data||{};let key=(d.category||'').toLowerCase();let isPlain=(d&&d.type==='suggest')||!(d.link||d.title);if(isPlain){let label=suggestion.value||'';let html=highlightHtml(label,term,'span');let ico=showIcons?getIconMarkup(key||'suggestions'):'';return'<div class="suggest suggest--'+key+'">'+ico+'<span class="suggest-text">'+html+'</span></div>'}
1400let typeKey=(d.type||key||'results').toLowerCase();let ico=showIcons?getIconMarkup(typeKey)||getIconMarkup('results'):'';let title=highlightHtml(d.title||suggestion.value||'',term,'em');let subTitle=d.subTitle?'<div class="sub-title">'+escapeHtml(d.subTitle)+'</div>':'';let figure=d.previewImage?'<figure'+(d.hasVideo?' class="hasVideo"':'')+'><img src="'+escapeHtml(d.previewImage)+'" /></figure>':'';let typeCls=d.type?' '+key+' '+key+'--'+escapeHtml(d.type):'';let href=d.link?escapeHtml(d.link):'#';return''+'<div class="suggest suggest--'+key+typeCls+'">'+ico+figure+'<a href="'+href+'" class="internal-link">'+'<div class="title">'+title+'</div>'+subTitle+'</a>
vendor: 8,000 bytes, lines 1400-1405
1400'+'</div>'},onSearchStart:function(query){$form.find('.search-field__loader').removeClass('hide')},onSearchComplete:function(){$form.find('.search-field__loader').addClass('hide')}}).on('blur',function(){$searchBox.parent().removeClass('autocomplete-active');let $box=$(this);setTimeout(function(){$box.devbridgeAutocomplete('hide')},200)})});$(window).off('scroll.solrSuggest').on('scroll.solrSuggest',function(e){$('.header--sticky form[data-suggest] .tx-solr-suggest').blur()});$(document).off('mouseenter.acAria','.autocomplete-suggestion').on('mouseenter.acAria','.autocomplete-suggestion',function(){const $cont=$(this).closest('.autocomplete-suggestions');$cont.find('.autocomplete-suggestion[aria-selected="true"]').attr('aria-selected','false');$(this).attr('aria-selected','true')})};this.mapSolrResponseToDevbridge=function(resp,$form,options){options=options||{};if(!resp)return{suggestions:[]};let result={suggestions:[]};let firstSuggestion;if(resp.suggestions){$.each(resp.suggestions,function(suggestion,count){if(!firstSuggestion)firstSuggestion=suggestion;result.suggestions.push({value:suggestion,data:{type:'suggest',count:count,category:'suggestions'}})})}
1401if(Array.isArray(resp.documents)){$.each(resp.documents,function(_,doc){result.suggestions.push({value:firstSuggestion||doc.title||'',data:Object.assign({},doc,{category:'results'})})})}
1402return result};this.getRecent=function(){try{return JSON.parse(sessionStorage.getItem('recentSearches')||'[]')}catch(e){return[]}};this.pushRecent=function(term){const r=this.getRecent().filter(t=>t.toLowerCase()!==term.toLowerCase());r.unshift(term);sessionStorage.setItem('recentSearches',JSON.stringify(r.slice(0,5)))}}
1403$(document).ready(function(){let solrSuggestController=new SuggestController();solrSuggestController.init();$("body").on("tx_solr_updated",function(){solrSuggestController.init()})});
1404/*! URI.js v1.19.11 http://medialize.github.io/URI.js/ */
1405(function(m,u){"object"===typeof module&&module.exports?module.exports=u():"function"===typeof define&&define.amd?define(u):m.IPv6=u(m)})(this,function(m){var u=m&&m.IPv6;return{best:function(q){q=q.toLowerCase().split(":");var k=q.length,d=8;""===q[0]&&""===q[1]&&""===q[2]?(q.shift(),q.shift()):""===q[0]&&""===q[1]?q.shift():""===q[k-1]&&""===q[k-2]&&q.pop();k=q.length;-1!==q[k-1].indexOf(".")&&(d=7);var n;for(n=0;n<k&&""!==q[n];n++);if(n<d)for(q.splice(n,1,"0000");q.length<d;)q.splice(n,0,"0000");for(n=0;n<d;n++){k=q[n].split("");for(var z=0;3>z;z++)if("0"===k[0]&&1<k.length)k.splice(0,1);else break;q[n]=k.join("")}k=-1;var x=z=0,M=-1,F=!1;for(n=0;n<d;n++)F?"0"===q[n]?x+=1:(F=!1,x>z&&(k=M,z=x)):"0"===q[n]&&(F=!0,M=n,x=1);x>z&&(k=M,z=x);1<z&&q.splice(k,z,"");k=q.length;d="";""===q[0]&&(d=":");for(n=0;n<k;n++){d+=q[n];if(n===k-1)break;d+=":"}""===q[k-1]&&(d+=":");return d},noConflict:function(){m.IPv6===this&&(m.IPv6=u);return this}}});(function(m){function u(p){throw new RangeError(J[p])}function q(p,t){for(var y=p.length,v=[];y--;)v[y]=t(p[y]);return v}function k(p,t){var y=p.split("@"),v="";1<y.length&&(v=y[0]+"@",p=y[1]);p=p.replace(G,".");y=p.split(".");y=q(y,t).join(".");return v+y}function d(p){for(var t=[],y=0,v=p.length,C,H;y<v;)C=p.charCodeAt(y++),55296<=C&&56319>=C&&y<v?(H=p.charCodeAt(y++),56320==(H&64512)?t.push(((C&1023)<<10)+(H&1023)+65536):(t.push(C),y--)):t.push(C);return t}function n(p){return q(p,function(t){var y="";65535<t&&(t-=65536,y+=g(t>>>10&1023|55296),t=56320|t&1023);return y+=g(t)}).join("")}function z(p,t,y){var v=0;p=y?K(p/700):p>>1;for(p+=K(p/t);455<p;v+=36)p=K(p/35);return K(v+36*p/(p+38))}function x(p){var t=[],y=p.length,v=0,C=128,H=72,a,b;var c=p.lastIndexOf("-");0>c&&(c=0);for(a=0;a<c;++a)128<=p.charCodeAt(a)&&u("not-basic"),t.push(p.charCodeAt(a));for(c=0<c?c+1:0;c<y;){a=v;var e=1;for(b=36;;b+=36){c>=y&&u("invalid-input");var f=p.charCodeAt(c++);f=10>f-48?f-22:26>f-65?f-65:26>f-97?f-97:36;(36<=f||f>K((2147483647-v)/e))&&u("overflow");v+=f*e;var l=b<=H?1:b>=H+26?26:b-H;if(f<l)break;f=36-l;e>K(2147483647/f)&&u("overflow");e*=f}e=t.length+1;H=z(v-a,e,0==a);K(v/e)>2147483647-C&&u("overflow");C+=K(v/e);v%=e;t.splice(v++,0,C)}return n(t)}function M(p){var t,y,v,C=[];p=d(p);var H=p.length;var a=128;var b=0;var c=72;for(v=0;v<H;++v){var e=p[v];128>e&&C.push(g(e))}for((t=y=C.length)&&C.push("-");t<H;){var f=2147483647;for(v=0;v<H;++v)e=p[v],e>=a&&e<f&&(f=e);var l=t+1;f-a>K((2147483647-b)/l)&&u("overflow");b+=(f-a)*l;a=f;for(v=0;v<H;++v)if(e=p[v],e<a&&2147483647<++b&&u("overflow"),e==a){var w=b;for(f=36;;f+=36){e=f<=c?1:f>=c+26?26:f-c;if(w<e)break;var B=w-e;w=36-e;var D=C;e+=B%w;D.push.call(D,g(e+22+75*(26>e)-0));w=K(B/w)}C.push(g(w+22+75*(26>w)-0));c=z(b,l,t==y);b=0;++t}++b;++a}return C.join("")}var F="object"==typeof exports&&exports&&!exports.nodeType&&exports,P="object"==typeof module&&module&&!module.nodeType&&module,h="object"==typeof global&&global;if(h.global===h||h.window===h||h.self===h)m=h;var r=/^xn--/,A=/[^\x20-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,J={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},K=Math.floor,g=String.fromCharCode,E;var I={version:"1.3.2",ucs2:{decode:d,encode:n},decode:x,encode:M,toASCII:function(p){return k(p,function(t){return A.test(t)?"xn--"+M(t):t})},toUnicode:function(p){return k(p,function(t){return r.test(t)?x(t.slice(4).toLowerCase()):t})}};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return I});else if(F&&P)if(module.exports==F)P.exports=I;else for(E in I)I.hasOwnProperty(E)&&(F[E]=I[E]);else m.punycode=I})(this);(function(m,u){"object"===typeof module&&module.exports?module.exports=u():"function"===typeof define&&define.amd?define(u):m.SecondLevelDomains=u(m)})(this,function(m){var u=m&&m.SecondLevelDomains,q={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ","do":" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ","in":" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" c
1405o net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk d
1405p edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(k){var d=k.lastIndexOf(".");if(0>=d||d>=k.length-1)return!1;var n=k.lastIndexOf(".",d-1);if(0>=n||n>=d-1)return!1;var z=q.list[k.slice(d+1)];return z?0<=z.indexOf(" "+k.slice(n+1,d)+" "):!1},is:function(k){var d=k.lastIndexOf(".");if(0>=d||d>=k.length-1||0<=k.lastIndexOf(".",d-1))return!1;var n=q.list[k.slice(d+1)];return n?0<=n.indexOf(" "+k.slice(0,d)+" "):!1},get:function(k){var d=k.lastIndexOf(".");if(0>=d||d>=k.length-1)return null;var n=k.lastIndexOf(".",d-1);if(0>=n||n>=d-1)return null;var z=q.list[k.slice(d+1)];return!z||0>z.indexOf(" "+k.slice(n+1,d)+" ")?null:k.slice(n+1)},noConflict:function(){m.SecondLevelDomains===this&&(m.SecondLevelDomains=u);return this}};return q});(function(m,u){"object"===typeof module&&module.exports?module.exports=u(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"===typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],u):m.URI=u(m.punycode,m.IPv6,m.SecondLevelDomains,m)})(this,function(m,u,q,k){function d(a,b){var c=1<=arguments.length,e=2<=arguments.length;if(!(this instanceof d))return c?e?new d(a,b):new d(a):new d;if(void 0===a){if(c)throw new TypeError("undefined is not a valid argument for URI");a="undefined"!==typeof location?location.href+"":""}if(null===a&&c)throw new TypeError("null is not a valid argument for URI");this.href(a);return void 0!==b?this.absoluteTo(b):this}function n(a){return a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function z(a){return void 0===a?"Undefined":String(Object.prototype.toString.call(a)).slice(8,-1)}function x(a){return"Array"===z(a)}function M(a,b){var c={},e;if("RegExp"===z(b))c=null;else if(x(b)){var f=0;for(e=b.length;f<e;f++)c[b[f]]=!0}else c[b]=!0;f=0;for(e=a.length;f<e;f++)if(c&&void 0!==c[a[f]]||!c&&b.test(a[f]))a.splice(f,1),e--,f--;return a}function F(a,b){var c;if(x(b)){var e=0;for(c=b.length;e<c;e++)if(!F(a,b[e]))return!1;return!0}var f=z(b);e=0;for(c=a.length;e<c;e++)if("RegExp"===f){if("string"===typeof a[e]&&a[e].match(b))return!0}else if(a[e]===b)return!0;return!1}function P(a,b){if(!x(a)||!x(b)||a.length!==b.length)return!1;a.sort();b.sort();for(var c=0,e=a.length;c<e;c++)if(a[c]!==b[c])return!1;return!0}function h(a){return a.replace(/^\/+|\/+$/g,"")}function r(a){return escape(a)}function A(a){return encodeURIComponent(a).replace(/[!'()*]/g,r).replace(/\*/g,"%2A")}function G(a){return function(b,c){if(void 0===b)return this._parts[a]||"";this._parts[a]=b||null;this.build(!c);return this}}function J(a,b){return function(c,e){if(void 0===c)return this._parts[a]||"";null!==c&&(c+="",c.charAt(0)===b&&(c=c.substring(1)));this._parts[a]=c;this.build(!e);return this}}var K=k&&k.URI;d.version="1.19.11";var g=d.prototype,E=Object.prototype.hasOwnProperty;d._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:d.preventInvalidHostname,duplicateQueryParameters:d.duplicateQueryParameters,escapeQuerySpace:d.escapeQuerySpace}};d.preventInvalidHostname=!1;d.duplicateQueryParameters=!1;d.escapeQuerySpace=!0;d.protocol_expression=/^[a-z][a-z0-9.+-]*$/i;d.idn_expression=/[^a-z0-9\._-]/i;d.punycode_expression=/(xn--)/i;d.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;d.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;d.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u2018\u2019]))/ig;d.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u201e\u2018\u2019]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g};d.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/;d.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g;d.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"};d.hostProtocols=["http","https"];d.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/;d.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"};
vendor: 24,295 bytes, line 1405
1405d.getDomAttribute=function(a){if(a&&a.nodeName){var b=a.nodeName.toLowerCase();if("input"!==b||"image"===a.type)return d.domAttributes[b]}};d.encode=A;d.decode=decodeURIComponent;d.iso8859=function(){d.encode=escape;d.decode=unescape};d.unicode=function(){d.encode=A;d.decode=decodeURIComponent};d.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}};d.encodeQuery=function(a,b){var c=d.encode(a+"");void 0===b&&(b=d.escapeQuerySpace);return b?c.replace(/%20/g,"+"):c};d.decodeQuery=function(a,b){a+="";void 0===b&&(b=d.escapeQuerySpace);try{return d.decode(b?a.replace(/\+/g,"%20"):a)}catch(c){return a}};var I={encode:"encode",decode:"decode"},p,t=function(a,b){return function(c){try{return d[b](c+"").replace(d.characters[a][b].expression,function(e){return d.characters[a][b].map[e]})}catch(e){return c}}};for(p in I)d[p+"PathSegment"]=t("pathname",I[p]),d[p+"UrnPathSegment"]=t("urnpath",I[p]);I=function(a,b,c){return function(e){var f=c?function(B){return d[b](d[c](B))}:d[b];e=(e+"").split(a);for(var l=0,w=e.length;l<w;l++)e[l]=f(e[l]);return e.join(a)}};d.decodePath=I("/","decodePathSegment");d.decodeUrnPath=I(":","decodeUrnPathSegment");d.recodePath=I("/","encodePathSegment","decode");d.recodeUrnPath=I(":","encodeUrnPathSegment","decode");d.encodeReserved=t("reserved","encode");d.parse=function(a,b){b||(b={preventInvalidHostname:d.preventInvalidHostname});a=a.replace(d.leading_whitespace_expression,"");a=a.replace(d.ascii_tab_whitespace,"");var c=a.indexOf("#");-1<c&&(b.fragment=a.substring(c+1)||null,a=a.substring(0,c));c=a.indexOf("?");-1<c&&(b.query=a.substring(c+1)||null,a=a.substring(0,c));a=a.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://");a=a.replace(/^[/\\]{2,}/i,"//");"//"===a.substring(0,2)?(b.protocol=null,a=a.substring(2),a=d.parseAuthority(a,b)):(c=a.indexOf(":"),-1<c&&(b.protocol=a.substring(0,c)||null,b.protocol&&!b.protocol.match(d.protocol_expression)?b.protocol=void 0:"//"===a.substring(c+1,c+3).replace(/\\/g,"/")?(a=a.substring(c+3),a=d.parseAuthority(a,b)):(a=a.substring(c+1),b.urn=!0)));b.path=a;return b};d.parseHost=function(a,b){a||(a="");a=a.replace(/\\/g,"/");var c=a.indexOf("/");-1===c&&(c=a.length);if("["===a.charAt(0)){var e=a.indexOf("]");b.hostname=a.substring(1,e)||null;b.port=a.substring(e+2,c)||null;"/"===b.port&&(b.port=null)}else{var f=a.indexOf(":");e=a.indexOf("/");f=a.indexOf(":",f+1);-1!==f&&(-1===e||f<e)?(b.hostname=a.substring(0,c)||null,b.port=null):(e=a.substring(0,c).split(":"),b.hostname=e[0]||null,b.port=e[1]||null)}b.hostname&&"/"!==a.substring(c).charAt(0)&&(c++,a="/"+a);b.preventInvalidHostname&&d.ensureValidHostname(b.hostname,b.protocol);b.port&&d.ensureValidPort(b.port);return a.substring(c)||"/"};d.parseAuthority=function(a,b){a=d.parseUserinfo(a,b);return d.parseHost(a,b)};d.parseUserinfo=function(a,b){var c=a;-1!==a.indexOf("\\")&&(a=a.replace(/\\/g,"/"));var e=a.indexOf("/"),f=a.lastIndexOf("@",-1<e?e:a.length-1);-1<f&&(-1===e||f<e)?(e=a.substring(0,f).split(":"),b.username=e[0]?d.decode(e[0]):null,e.shift(),b.password=e[0]?d.decode(e.join(":")):null,a=c.substring(f+1)):(b.username=null,b.password=null);return a};d.parseQuery=function(a,b){if(!a)return{};a=a.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"");if(!a)return{};for(var c={},e=a.split("&"),f=e.length,l,w,B=0;B<f;B++)if(l=e[B].split("="),w=d.decodeQuery(l.shift(),b),l=l.length?d.decodeQuery(l.join("="),b):null,"__proto__"!==w)if(E.call(c,w)){if("string"===typeof c[w]||null===c[w])c[w]=[c[w]];c[w].push(l)}else c[w]=l;return c};d.build=function(a){var b="",c=!1;a.protocol&&(b+=a.protocol+":");a.urn||!b&&!a.hostname||(b+="//",c=!0);b+=d.buildAuthority(a)||"";"string"===typeof a.path&&("/"!==a.path.charAt(0)&&c&&(b+="/"),b+=a.path);"string"===typeof a.query&&a.query&&(b+="?"+a.query);"string"===typeof a.fragment&&a.fragment&&(b+="#"+a.fragment);return b};d.buildHost=function(a){var b="";if(a.hostname)b=d.ip6_expression.test(a.hostname)?b+("["+a.hostname+"]"):b+a.hostname;else return"";a.port&&(b+=":"+a.port);return b};d.buildAuthority=function(a){return d.buildUserinfo(a)+d.buildHost(a)};d.buildUserinfo=function(a){var b="";a.username&&(b+=d.encode(a.username));a.password&&(b+=":"+d.encode(a.password));b&&(b+="@");return b};d.buildQuery=function(a,b,c){var e="",f,l;for(f in a)if("__proto__"!==f&&E.call(a,f))if(x(a[f])){var w={};var B=0;for(l=a[f].length;B<l;B++)void 0!==a[f][B]&&void 0===w[a[f][B]+""]&&(e+="&"+d.buildQueryParameter(f,a[f][B],c),!0!==b&&(w[a[f][B]+""]=!0))}else void 0!==a[f]&&(e+="&"+d.buildQueryParameter(f,a[f],c));return e.substring(1)};d.buildQueryParameter=function(a,b,c){return d.encodeQuery(a,c)+(null!==b?"="+d.encodeQuery(b,c):"")};d.addQuery=function(a,b,c){if("object"===typeof b)for(var e in b)E.call(b,e)&&d.addQuery(a,e,b[e]);else if("string"===typeof b)void 0===a[b]?a[b]=c:("string"===typeof a[b]&&(a[b]=[a[b]]),x(c)||(c=[c]),a[b]=(a[b]||[]).concat(c));else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");};d.setQuery=function(a,b,c){if("object"===typeof b)for(var e in b)E.call(b,e)&&d.setQuery(a,e,b[e]);else if("string"===typeof b)a[b]=void 0===c?null:c;else throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");};d.removeQuery=function(a,b,c){var e;if(x(b))for(c=0,e=b.length;c<e;c++)a[b[c]]=void 0;else if("RegExp"===z(b))for(e in a)b.test(e)&&(a[e]=void 0);else if("object"===typeof b)for(e in b)E.call(b,e)&&d.removeQuery(a,e,b[e]);else if("string"===typeof b)void 0!==c?"RegExp"===z(c)?!x(a[b])&&c.test(a[b])?a[b]=void 0:a[b]=M(a[b],c):a[b]!==String(c)||x(c)&&1!==c.length?x(a[b])&&(a[b]=M(a[b],c)):a[b]=void 0:a[b]=void 0;else throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");};d.hasQuery=function(a,b,c,e){switch(z(b)){case "String":break;case "RegExp":for(var f in a)if(E.call(a,f)&&b.test(f)&&(void 0===c||d.hasQuery(a,f,c)))return!0;return!1;case "Object":for(var l in b)if(E.call(b,l)&&!d.hasQuery(a,l,b[l]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter");}switch(z(c)){case "Undefined":return b in a;case "Boolean":return a=!(x(a[b])?!a[b].length:!a[b]),c===a;case "Function":return!!c(a[b],b,a);case "Array":return x(a[b])?(e?F:P)(a[b],c):!1;case "RegExp":return x(a[b])?e?F(a[b],c):!1:!(!a[b]||!a[b].match(c));case "Number":c=String(c);case "String":return x(a[b])?e?F(a[b],c):!1:a[b]===c;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}};d.joinPaths=function(){for(var a=[],b=[],c=0,e=0;e<arguments.length;e++){var f=new d(arguments[e]);a.push(f);f=f.segment();for(var l=0;l<f.length;l++)"string"===typeof f[l]&&b.push(f[l]),f[l]&&c++}if(!b.length||!c)return new d("");b=(new d("")).segment(b);""!==a[0].path()&&"/"!==a[0].path().slice(0,1)||b.path("/"+b.path());return b.normalize()};d.commonPath=function(a,b){var c=Math.min(a.length,b.length),e;for(e=0;e<c;e++)if(a.charAt(e)!==b.charAt(e)){e--;break}if(1>e)return a.charAt(0)===b.charAt(0)&&"/"===a.charAt(0)?"/":"";if("/"!==a.charAt(e)||"/"!==b.charAt(e))e=a.substring(0,e).lastIndexOf("/");return a.substring(0,e+1)};d.withinString=function(a,b,c){c||(c={});var e=c.start||d.findUri.start,f=c.end||d.findUri.end,l=c.trim||d.findUri.trim,w=c.parens||d.findUri.parens,B=/[a-z0-9-]=["']?$/i;for(e.lastIndex=0;;){var D=e.exec(a);if(!D)break;var O=D.index;if(c.ignoreHtml){var L=a.slice(Math.max(O-3,0),O);if(L&&B.test(L))continue}var N=O+a.slice(O).search(f);L=a.slice(O,N);for(N=-1;;){var Q=w.exec(L);if(!Q)break;N=Math.max(N,Q.index+Q[0].length)}L=-1<N?L.slice(0,N)+L.slice(N).replace(l,""):L.replace(l,"");L.length<=D[0].length||c.ignore&&c.ignore.test(L)||(N=O+L.length,D=b(L,O,N,a),void 0===D?e.lastIndex=N:(D=String(D),a=a.slice(0,O)+D+a.slice(N),e.lastIndex=O+D.length))}e.lastIndex=0;return a};d.ensureValidHostname=function(a,b){var c=!!a,e=!1;b&&(e=F(d.hostProtocols,b));if(e&&!c)throw new TypeError("Hostname cannot be empty, if protocol is "+b);if(a&&a.match(d.invalid_hostname_characters)){if(!m)throw new TypeError('Hostname "'+a+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(m.toASCII(a).match(d.invalid_hostname_characters))throw new TypeError('Hostname "'+a+'" contains characters other than [A-Z0-9.-:_]');}};d.ensureValidPort=function(a){if(a){var b=Number(a);if(!(/^[0-9]+$/.test(b)&&0<b&&65536>b))throw new TypeError('Port "'+a+'" is not a valid port');}};d.noConflict=function(a){if(a)return a={URI:this.noConflict()},k.URITemplate&&"function"===typeof k.URITemplate.noConflict&&(a.URITemplate=k.URITemplate.noConflict()),k.IPv6&&"function"===typeof k.IPv6.noConflict&&(a.IPv6=k.IPv6.noConflict()),k.SecondLevelDomains&&"function"===typeof k.SecondLevelDomains.noConflict&&(a.SecondLevelDomains=k.SecondLevelDomains.noConflict()),a;k.URI===this&&(k.URI=K);return this};g.build=function(a){if(!0===a)this._deferred_build=!0;else if(void 0===a||this._deferred_build)this._string=d.build(this._parts),this._deferred_build=!1;return this};g.clone=function(){return new d(this)};g.valueOf=g.toString=function(){return this.build(!1)._string};g.protocol=G("protocol");g.username=G("username");g.password=G("password");g.hostname=G("hostname");g.port=G("port");g.query=J("query","?");g.fragment=J("fragment","#");g.search=function(a,b){var c=this.query(a,b);return"string"===typeof c&&c.length?"?"+c:c};g.hash=function(a,b){var c=this.fragment(a,b);return"string"===typeof c&&c.length?"#"+c:c};g.pathname=function(a,b){if(void 0===a||!0===a){var c=this._parts.path||(this._parts.hostname?"/":"");return a?(this._parts.urn?d.decodeUrnPath:d.decodePath)(c):c}this._parts.path=this._parts.urn?a?d.recodeUrnPath(a):"":a?d.recodePath(a):"/";this.build(!b);return this};g.path=g.pathname;g.href=function(a,b){var c;if(void 0===a)return this.toString();this._string="";this._parts=d._parts();var e=a instanceof d,f="object"===typeof a&&(a.hostname||a.path||a.pathname);a.nodeName&&(f=d.getDomAttribute(a),a=a[f]||"",f=!1);!e&&f&&void 0!==a.pathname&&(a=a.toString());if("string"===typeof a||a instanceof String)this._parts=d.parse(String(a),this._parts);else if(e||f){e=e?a._parts:a;for(c in e)"query"!==c&&E.call(this._parts,c)&&(this._parts[c]=e[c]);e.query&&this.query(e.query,!1)}else throw new TypeError("invalid input");this.build(!b);return this};g.is=function(a){var b=!1,c=!1,e=!1,f=!1,l=!1,w=!1,B=!1,D=!this._parts.urn;this._parts.hostname&&(D=!1,c=d.ip4_expression.test(this._parts.hostname),e=d.ip6_expression.test(this._parts.hostname),b=c||e,l=(f=!b)&&q&&q.has(this._parts.hostname),w=f&&d.idn_expression.test(this._parts.hostname),B=f&&d.punycode_expression.test(this._parts.hostname));switch(a.toLowerCase()){case "relative":return D;case "absolute":return!D;case "domain":case "name":return f;case "sld":return l;case "ip":return b;case "ip4":case "ipv4":case "inet4":return c;case "ip6":case "ipv6":case "inet6":return e;case "idn":return w;case "url":return!this._parts.urn;case "urn":return!!this._parts.urn;case "punycode":return B}return null};var y=g.protocol,v=g.port,C=g.hostname;g.protocol=function(a,b){if(a&&(a=a.replace(/:(\/\/)?$/,""),!a.match(d.protocol_expression)))throw new TypeError('Protocol "'+a+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return y.call(this,a,b)};g.scheme=g.protocol;g.port=function(a,b){if(this._parts.urn)return void 0===a?"":this;void 0!==a&&(0===a&&(a=null),a&&(a+="",":"===a.charAt(0)&&(a=a.substring(1)),d.ensureValidPort(a)));return v.call(this,a,b)};g.hostname=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0!==a){var c={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==d.parseHost(a,c))throw new TypeError('Hostname "'+a+'" contains characters other than [A-Z0-9.-]');a=c.hostname;this._parts.preventInvalidHostname&&d.ensureValidHostname(a,this._parts.protocol)}return C.call(this,a,b)};g.origin=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a){var c=this.protocol();return this.authority()?(c?c+"://":"")+this.authority():""}c=d(a);this.protocol(c.protocol()).authority(c.authority()).build(!b);return this};g.host=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a)return this._parts.hostname?d.buildHost(this._parts):"";if("/"!==d.parseHost(a,this._parts))throw new TypeError('Hostname "'+a+'" contains characters other than [A-Z0-9.-]');this.build(!b);return this};g.authority=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a)return this._parts.hostname?d.buildAuthority(this._parts):"";if("/"!==d.parseAuthority(a,this._parts))throw new TypeError('Hostname "'+a+'" contains characters other than [A-Z0-9.-]');this.build(!b);return this};g.userinfo=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a){var c=d.buildUserinfo(this._parts);return c?c.substring(0,c.length-1):c}"@"!==a[a.length-1]&&(a+="@");d.parseUserinfo(a,this._parts);this.build(!b);return this};g.resource=function(a,b){if(void 0===a)return this.path()+this.search()+this.hash();var c=d.parse(a);this._parts.path=c.path;this._parts.query=c.query;this._parts.fragment=c.fragment;this.build(!b);return this};g.subdomain=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a){if(!this._parts.hostname||this.is("IP"))return"";var c=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,c)||""}c=this._parts.hostname.length-this.domain().length;c=this._parts.hostname.substring(0,c);c=new RegExp("^"+n(c));a&&"."!==a.charAt(a.length-1)&&(a+=".");if(-1!==a.indexOf(":"))throw new TypeError("Domains cannot contain colons");a&&d.ensureValidHostname(a,this._parts.protocol);this._parts.hostname=this._parts.hostname.replace(c,a);this.build(!b);return this};g.domain=function(a,b){if(this._parts.urn)return void 0===a?"":this;"boolean"===typeof a&&(b=a,a=void 0);if(void 0===a){if(!this._parts.hostname||this.is("IP"))return"";var c=this._parts.hostname.match(/\./g);if(c&&2>c.length)return this._parts.hostname;c=this._parts.hostname.length-this.tld(b).length-1;c=this._parts.hostname.lastIndexOf(".",c-1)+1;return this._parts.hostname.substring(c)||""}if(!a)throw new TypeError("cannot set domain empty");if(-1!==a.indexOf(":"))throw new TypeError("Domains cannot contain colons");d.ensureValidHostname(a,this._parts.protocol);!this._parts.hostname||this.is("IP")?this._parts.hostname=a:(c=new RegExp(n(this.domain())+"$"),this._parts.hostname=this._parts.hostname.replace(c,a));this.build(!b);return this};g.tld=function(a,b){if(this._parts.urn)return void 0===a?"":this;"boolean"===typeof a&&(b=a,a=void 0);if(void 0===a){if(!this._parts.hostname||this.is("IP"))return"";var c=this._parts.hostname.lastIndexOf(".");c=this._parts.hostname.substring(c+1);return!0!==b&&q&&q.list[c.toLowerCase()]?q.get(this._parts.hostname)||c:c}if(a)if(a.match(/[^a-zA-Z0-9-]/))if(q&&q.is(a))c=new RegExp(n(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(c,a);else throw new TypeError('TLD "'+a+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");c=new RegExp(n(this.tld())+"$");this._parts.hostname=this._parts.hostname.replace(c,a)}else throw new TypeError("cannot set TLD empty");this.build(!b);return this};g.directory=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a||!0===a){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var c=this._parts.path.length-this.filename().length-1;c=this._parts.path.substring(0,c)||(this._parts.hostname?"/":"");return a?d.decodePath(c):c}c=this._parts.path.length-this.filename().length;c=this._parts.path.substring(0,c);c=new RegExp("^"+n(c));this.is("relative")||(a||(a="/"),"/"!==a.charAt(0)&&(a="/"+a));a&&"/"!==a.charAt(a.length-1)&&(a+="/");a=d.recodePath(a);this._parts.path=this._parts.path.replace(c,a);this.build(!b);return this};g.filename=function(a,b){if(this._parts.urn)return void 0===a?"":this;if("string"!==typeof a){if(!this._parts.path||"/"===this._parts.path)return"";var c=this._parts.path.lastIndexOf("/");c=this._parts.path.substring(c+1);return a?d.decodePathSegment(c):c}c=!1;"/"===a.charAt(0)&&(a=a.substring(1));a.match(/\.?\//)&&(c=!0);var e=new RegExp(n(this.filename())+"$");a=d.recodePath(a);this._parts.path=this._parts.path.replace(e,a);c?this.normalizePath(b):this.build(!b);return this};g.suffix=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a||!0===a){if(!this._parts.path||"/"===this._parts.path)return"";var c=this.filename(),e=c.lastIndexOf(".");if(-1===e)return"";c=c.substring(e+1);c=/^[a-z0-9%]+$/i.test(c)?c:"";return a?d.decodePathSegment(c):c}"."===a.charAt(0)&&(a=a.substring(1));if(c=this.suffix())e=a?new RegExp(n(c)+"$"):new RegExp(n("."+c)+"$");else{if(!a)return this;this._parts.path+="."+d.recodePath(a)}e&&(a=d.recodePath(a),this._parts.path=this._parts.path.replace(e,a));this.build(!b);return this};g.segment=function(a,b,c){var e=this._parts.urn?":":"/",f=this.path(),l="/"===f.substring(0,1);f=f.split(e);void 0!==a&&"number"!==typeof a&&(c=b,b=a,a=void 0);if(void 0!==a&&"number"!==typeof a)throw Error('Bad segment "'+a+'", must be 0-based integer');l&&f.shift();0>a&&(a=Math.max(f.length+a,0));if(void 0===b)return void 0===a?f:f[a];if(null===a||void 0===f[a])if(x(b)){f=[];a=0;for(var w=b.length;a<w;a++)if(b[a].length||f.length&&f[f.length-1].length)f.length&&!f[f.length-1].length&&f.pop(),f.push(h(b[a]))}else{if(b||"string"===typeof b)b=h(b),""===f[f.length-1]?f[f.length-1]=b:f.push(b)}else b?f[a]=h(b):f.splice(a,1);l&&f.unshift("");return this.path(f.join(e),c)};g.segmentCoded=function(a,b,c){var e;"number"!==typeof a&&(c=b,b=a,a=void 0);if(void 0===b){a=this.segment(a,b,c);if(x(a)){var f=0;for(e=a.length;f<e;f++)a[f]=d.decode(a[f])}else a=void 0!==a?d.decode(a):void 0;return a}if(x(b))for(f=0,e=b.length;f<e;f++)b[f]=d.encode(b[f]);else b="string"===typeof b||b instanceof String?d.encode(b):b;return this.segment(a,b,c)};var H=g.query;g.query=function(a,b){if(!0===a)return d.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"===typeof a){var c=d.parseQuery(this._parts.query,this._parts.escapeQuerySpace),e=a.call(this,c);this._parts.query=d.buildQuery(e||c,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);this.build(!b);return this}return void 0!==a&&"string"!==typeof a?(this._parts.query=d.buildQuery(a,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!b),this):H.call(this,a,b)};g.setQuery=function(a,b,c){var e=d.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"===typeof a||a instanceof String)e[a]=void 0!==b?b:null;else if("object"===typeof a)for(var f in a)E.call(a,f)&&(e[f]=a[f]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");this._parts.query=d.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof a&&(c=b);this.build(!c);return this};g.addQuery=function(a,b,c){var e=d.parseQuery(this._parts.query,this._parts.escapeQuerySpace);d.addQuery(e,a,void 0===b?null:b);this._parts.query=d.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof a&&(c=b);this.build(!c);return this};g.removeQuery=function(a,b,c){var e=d.parseQuery(this._parts.query,this._parts.escapeQuerySpace);d.removeQuery(e,a,b);this._parts.query=d.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof a&&(c=b);this.build(!c);return this};g.hasQuery=function(a,b,c){var e=d.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return d.hasQuery(e,a,b,c)};g.setSearch=g.setQuery;g.addSearch=g.addQuery;g.removeSearch=g.removeQuery;g.hasSearch=g.hasQuery;g.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()};g.normalizeProtocol=function(a){"string"===typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!a));return this};g.normalizeHostname=function(a){this._parts.hostname&&(this.is("IDN")&&m?this._parts.hostname=m.toASCII(this._parts.hostname):this.is("IPv6")&&u&&(this._parts.hostname=u.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!a));return this};g.normalizePort=function(a){"string"===typeof this._parts.protocol&&this._parts.port===d.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!a));return this};g.normalizePath=function(a){var b=this._parts.path;if(!b)return this;if(this._parts.urn)return this._parts.path=d.recodeUrnPath(this._parts.path),this.build(!a),this;if("/"===this._parts.path)return this;b=d.recodePath(b);var c="";if("/"!==b.charAt(0)){var e=!0;b="/"+b}if("/.."===b.slice(-3)||"/."===b.slice(-2))b+="/";b=b.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/");e&&(c=b.substring(1).match(/^(\.\.\/)+/)||"")&&(c=c[0]);for(;;){var f=b.search(/\/\.\.(\/|$)/);if(-1===f)break;else if(0===f){b=b.substring(3);continue}var l=b.substring(0,f).lastIndexOf("/");-1===l&&(l=f);b=b.substring(0,l)+b.substring(f+3)}e&&this.is("relative")&&(b=c+b.substring(1));this._parts.path=b;this.build(!a);return this};g.normalizePathname=g.normalizePath;g.normalizeQuery=function(a){"string"===typeof this._parts.query&&(this._parts.query.length?this.query(d.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!a));return this};g.normalizeFragment=function(a){this._parts.fragment||(this._parts.fragment=null,this.build(!a));return this};g.normalizeSearch=g.normalizeQuery;g.normalizeHash=g.normalizeFragment;g.iso8859=function(){var a=d.encode,b=d.decode;d.encode=escape;d.decode=decodeURIComponent;try{this.normalize()}finally{d.encode=a,d.decode=b}return this};g.unicode=function(){var a=d.encode,b=d.decode;d.encode=A;d.decode=unescape;try{this.normalize()}finally{d.encode=a,d.decode=b}return this};g.readable=function(){var a=this.clone();a.username("").password("").normalize();var b="";a._parts.protocol&&(b+=a._parts.protocol+"://");a._parts.hostname&&(a.is("punycode")&&m?(b+=m.toUnicode(a._parts.hostname),a._parts.port&&(b+=":"+a._parts.port)):b+=a.host());a._parts.hostname&&a._parts.path&&"/"!==a._parts.path.charAt(0)&&(b+="/");b+=a.path(!0);if(a._parts.query){for(var c="",e=0,f=a._parts.query.split("&"),l=f.length;e<l;e++){var w=(f[e]||"").split("=");c+="&"+d.decodeQuery(w[0],this._parts.escapeQuerySpace).replace(/&/g,"%26");void 0!==w[1]&&(c+="="+d.decodeQuery(w[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}b+="?"+c.substring(1)}return b+=d.decodeQuery(a.hash(),!0)};g.absoluteTo=function(a){var b=this.clone(),c=["protocol","username","password","hostname","port"],e,f;if(this._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");a instanceof d||(a=new d(a));if(b._parts.protocol)return b;b._parts.protocol=a._parts.protocol;if(this._parts.hostname)return b;for(e=0;f=c[e];e++)b._parts[f]=a._parts[f];b._parts.path?(".."===b._parts.path.substring(-2)&&(b._parts.path+="/"),"/"!==b.path().charAt(0)&&(c=(c=a.directory())?c:0===a.path().indexOf("/")?"/":"",b._parts.path=(c?c+"/":"")+b._parts.path,b.normalizePath())):(b._parts.path=a._parts.path,b._parts.query||(b._parts.query=a._parts.query
1405));b.build();return b};g.relativeTo=function(a){var b=this.clone().normalize();if(b._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");a=(new d(a)).normalize();var c=b._parts;var e=a._parts;var f=b.path();a=a.path();if("/"!==f.charAt(0))throw Error("URI is already relative");if("/"!==a.charAt(0))throw Error("Cannot calculate a URI relative to another relative URI");c.protocol===e.protocol&&(c.protocol=null);if(c.username===e.username&&c.password===e.password&&null===c.protocol&&null===c.username&&null===c.password&&c.hostname===e.hostname&&c.port===e.port)c.hostname=null,c.port=null;else return b.build();if(f===a)return c.path="",b.build();f=d.commonPath(f,a);if(!f)return b.build();e=e.path.substring(f.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");c.path=e+c.path.substring(f.length)||"./";return b.build()};g.equals=function(a){var b=this.clone(),c=new d(a);a={};var e;b.normalize();c.normalize();if(b.toString()===c.toString())return!0;var f=b.query();var l=c.query();b.query("");c.query("");if(b.toString()!==c.toString()||f.length!==l.length)return!1;b=d.parseQuery(f,this._parts.escapeQuerySpace);l=d.parseQuery(l,this._parts.escapeQuerySpace);for(e in b)if(E.call(b,e)){if(!x(b[e])){if(b[e]!==l[e])return!1}else if(!P(b[e],l[e]))return!1;a[e]=!0}for(e in l)if(E.call(l,e)&&!a[e])return!1;return!0};g.preventInvalidHostname=function(a){this._parts.preventInvalidHostname=!!a;return this};g.duplicateQueryParameters=function(a){this._parts.duplicateQueryParameters=!!a;return this};g.escapeQuerySpace=function(a){this._parts.escapeQuerySpace=!!a;return this};return d});(function(m,u){"object"===typeof module&&module.exports?module.exports=u(require("jquery"),require("./URI")):"function"===typeof define&&define.amd?define(["jquery","./URI"],u):u(m.jQuery,m.URI)})(this,function(m,u){function q(h){return h.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function k(h){var r=h.nodeName.toLowerCase();if("input"!==r||"image"===h.type)return u.domAttributes[r]}function d(h){return{get:function(r){return m(r).uri()[h]()},set:function(r,A){m(r).uri()[h](A);return A}}}function n(h,r){if(!k(h)||!r)return!1;var A=r.match(F);if(!A||!A[5]&&":"!==A[2]&&!x[A[2]])return!1;var G=m(h).uri();if(A[5])return G.is(A[5]);if(":"===A[2]){var J=A[1].toLowerCase()+":";return x[J]?x[J](G,A[4]):!1}J=A[1].toLowerCase();return z[J]?x[A[2]](G[J](),A[4],J):!1}var z={},x={"=":function(h,r){return h===r},"^=":function(h,r){return!!(h+"").match(new RegExp("^"+q(r),"i"))},"$=":function(h,r){return!!(h+"").match(new RegExp(q(r)+"$","i"))},"*=":function(h,r,A){"directory"===A&&(h+="/");return!!(h+"").match(new RegExp(q(r),"i"))},"equals:":function(h,r){return h.equals(r)},"is:":function(h,r){return h.is(r)}};m.each("origin authority directory domain filename fragment hash host hostname href password path pathname port protocol query resource scheme search subdomain suffix tld username".split(" "),function(h,r){z[r]=!0;m.attrHooks["uri:"+r]=d(r)});var M=function(h,r){return m(h).uri().href(r).toString()};m.each(["src","href","action","uri","cite"],function(h,r){m.attrHooks[r]={set:M}});m.attrHooks.uri.get=function(h){return m(h).uri()};m.fn.uri=function(h){var r=this.first(),A=r.get(0),G=k(A);if(!G)throw Error('Element "'+A.nodeName+'" does not have either property: href, src, action, cite');if(void 0!==h){var J=r.data("uri");if(J)return J.href(h);h instanceof u||(h=u(h||""))}else{if(h=r.data("uri"))return h;h=u(r.attr(G)||"")}h._dom_element=A;h._dom_attribute=G;h.normalize();r.data("uri",h);return h};u.prototype.build=function(h){if(this._dom_element)this._string=u.build(this._parts),this._deferred_build=!1,this._dom_element.setAttribute(this._dom_attribute,this._string),this._dom_element[this._dom_attribute]=this._string;else if(!0===h)this._deferred_build=!0;else if(void 0===h||this._deferred_build)this._string=u.build(this._parts),this._deferred_build=!1;return this};var F=/^([a-zA-Z]+)\s*([\^\$*]?=|:)\s*(['"]?)(.+)\3|^\s*([a-zA-Z0-9]+)\s*$/;var P=m.expr.createPseudo?m.expr.createPseudo(function(h){return function(r){return n(r,h)}}):function(h,r,A){return n(h,A[3])};m.expr[":"].uri=P;return m});function SearchController(){var _this=this;_this.ajaxType=7383;this.init=function(){jQuery("body").delegate("a.solr-ajaxified","click",_this.handleClickOnAjaxifiedUri)};this.handleClickOnAjaxifiedUri=function(){var clickedLink=jQuery(this);var solrContainer=clickedLink.closest(".tx_solr");var solrParent=solrContainer.parent();var uri=clickedLink.uri();var loader=jQuery(solrParent.find('.ajax-loader-wrap'));if(loader){loader.show()}else{loader=jQuery("<div class='tx-solr-loader'></div>");solrParent.append(loader)}
1406uri.addQuery("type",_this.ajaxType);uri.addQuery("disable_assets",1);jQuery.get(uri.href(),function(data){solrContainer=solrContainer.replaceWith(data);_this.scrollToTopOfElement(solrParent,50);jQuery("body").trigger("tx_solr_updated");loader.fadeOut().remove();history.replaceState({},null,uri.removeQuery("type").removeQuery("disable_assets").href())});return!1};this.scrollToTopOfElement=function(element,deltaTop){if(!topIsVisible(element)){scrollWindowTo(element.get(0))}};this.setAjaxType=function(ajaxType){_this.ajaxType=ajaxType}}
1407jQuery(document).ready(function(){var solrSearchController=new SearchController();solrSearchController.init();
1407if(typeof solrSearchAjaxType!=="undefined"){solrSearchController.setAjaxType(solrSearchAjaxType)}})

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