((e,t)=>{"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)})("undefined"!=typeof window?window:this,function(k,N){function v(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item}function M(e){return null!=e&&e===e.window}var t=[],q=Object.getPrototypeOf,a=t.slice,H=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},R=t.push,b=t.indexOf,F={},W=F.toString,z=F.hasOwnProperty,B=z.toString,V=B.call(Object),g={},x=k.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function X(e,t,i){var n,s,o=(i=i||x).createElement("script");if(o.text=e,t)for(n in U)(s=t[n]||t.getAttribute&&t.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function Y(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?F[W.call(e)]||"object":typeof e}var e="3.7.1",K=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function Q(e){var t=!!e&&"length"in e&&e.length,i=Y(e);return!v(e)&&!M(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}function y(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:e,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=T.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return T.each(this,e)},map:function(i){return this.pushStack(T.map(this,function(e,t){return i.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(T.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:R,sort:t.sort,splice:t.splice},T.extend=T.fn.extend=function(){var e,t,i,n,s,o=arguments[0]||{},r=1,a=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[r]||{},r++),"object"==typeof o||v(o)||(o={}),r===a&&(o=this,r--);r<a;r++)if(null!=(e=arguments[r]))for(t in e)i=e[t],"__proto__"!==t&&o!==i&&(l&&i&&(T.isPlainObject(i)||(n=Array.isArray(i)))?(s=o[t],s=n&&!Array.isArray(s)?[]:n||T.isPlainObject(s)?s:{},n=!1,o[t]=T.extend(l,s,i)):void 0!==i&&(o[t]=i));return o},T.extend({expando:"jQuery"+(e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==W.call(e)||(e=q(e))&&("function"!=typeof(e=z.call(e,"constructor")&&e.constructor)||B.call(e)!==V))},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,i){X(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(Q(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},text:function(e){var t,i="",n=0,s=e.nodeType;if(!s)for(;t=e[n++];)i+=T.text(t);return 1===s||11===s?e.textContent:9===s?e.documentElement.textContent:3===s||4===s?e.nodeValue:i},makeArray:function(e,t){t=t||[];return null!=e&&(Q(Object(e))?T.merge(t,"string"==typeof e?[e]:e):R.call(t,e)),t},inArray:function(e,t,i){return null==t?-1:b.call(t,e,i)},isXMLDoc:function(e){var t=e&&e.namespaceURI,e=e&&(e.ownerDocument||e).documentElement;return!K.test(t||e&&e.nodeName||"HTML")},merge:function(e,t){for(var i=+t.length,n=0,s=e.length;n<i;n++)e[s++]=t[n];return e.length=s,e},grep:function(e,t,i){for(var n=[],s=0,o=e.length,r=!i;s<o;s++)!t(e[s],s)!=r&&n.push(e[s]);return n},map:function(e,t,i){var n,s,o=0,r=[];if(Q(e))for(n=e.length;o<n;o++)null!=(s=t(e[o],o,i))&&r.push(s);else for(o in e)null!=(s=t(e[o],o,i))&&r.push(s);return H(r)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=t[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){F["[object "+t+"]"]=t.toLowerCase()});var G=t.pop,J=t.sort,Z=t.splice,i="[\\x20\\t\\r\\n\\f]",ee=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),te=(T.contains=function(e,t){t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(e.contains?e.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))},/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g);function ie(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(te,ie)};var ne,w,se,oe,re,$,n,C,u,ae,s=x,le=R,S=le,j=T.expando,E=0,ce=0,de=Ee(),he=Ee(),ue=Ee(),pe=Ee(),fe=function(e,t){return e===t&&(re=!0),0},ge="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",e="(?:\\\\[\\da-fA-F]{1,6}"+i+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",o="\\["+i+"*("+e+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+i+"*\\]",r=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+o+")*)|.*)\\)|)",me=new RegExp(i+"+","g"),_e=new RegExp("^"+i+"*,"+i+"*"),ve=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),ye=new RegExp(i+"|>"),be=new RegExp(r),we=new RegExp("^"+e+"$"),ke={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+o),PSEUDO:new RegExp("^"+r),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+ge+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},xe=/^(?:input|select|textarea|button)$/i,Te=/^h\d$/i,$e=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ce=/[+~]/,h=new RegExp("\\\\[\\da-fA-F]{1,6}"+i+"?|\\\\([^\\r\\n\\f])","g"),p=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},Se=function(){De()},je=qe(function(e){return!0===e.disabled&&y(e,"fieldset")},{dir:"parentNode",next:"legend"});try{S.apply(t=a.call(s.childNodes),s.childNodes),t[s.childNodes.length].nodeType}catch(ne){S={apply:function(e,t){le.apply(e,a.call(t))},call:function(e){le.apply(e,a.call(arguments,1))}}}function P(e,t,i,n){var s,o,r,a,l,c,d=t&&t.ownerDocument,h=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return i;if(!n&&(De(t),t=t||$,C)){if(11!==h&&(a=$e.exec(e)))if(s=a[1]){if(9===h){if(!(c=t.getElementById(s)))return i;if(c.id===s)return S.call(i,c),i}else if(d&&(c=d.getElementById(s))&&P.contains(t,c)&&c.id===s)return S.call(i,c),i}else{if(a[2])return S.apply(i,t.getElementsByTagName(e)),i;if((s=a[3])&&t.getElementsByClassName)return S.apply(i,t.getElementsByClassName(s)),i}if(!(pe[e+" "]||u&&u.test(e))){if(c=e,d=t,1===h&&(ye.test(e)||ve.test(e))){for((d=Ce.test(e)&&Le(t.parentNode)||t)==t&&g.scope||((r=t.getAttribute("id"))?r=T.escapeSelector(r):t.setAttribute("id",r=j)),o=(l=Ne(e)).length;o--;)l[o]=(r?"#"+r:":scope")+" "+Me(l[o]);c=l.join(",")}try{return S.apply(i,d.querySelectorAll(c)),i}catch(t){pe(e,!0)}finally{r===j&&t.removeAttribute("id")}}}return ze(e.replace(ee,"$1"),t,i,n)}function Ee(){var n=[];return function e(t,i){return n.push(t+" ")>w.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function l(e){return e[j]=!0,e}function Pe(e){var t=$.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function Ae(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&&je(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Oe(r){return l(function(o){return o=+o,l(function(e,t){for(var i,n=r([],e.length,o),s=n.length;s--;)e[i=n[s]]&&(e[i]=!(t[i]=e[i]))})})}function Le(e){return e&&void 0!==e.getElementsByTagName&&e}function De(e){var e=e?e.ownerDocument||e:s;return e!=$&&9===e.nodeType&&e.documentElement&&(n=($=e).documentElement,C=!T.isXMLDoc($),ae=n.matches||n.webkitMatchesSelector||n.msMatchesSelector,n.msMatchesSelector&&s!=$&&(e=$.defaultView)&&e.top!==e&&e.addEventListener("unload",Se),g.getById=Pe(function(e){return n.appendChild(e).id=T.expando,!$.getElementsByName||!$.getElementsByName(T.expando).length}),g.disconnectedMatch=Pe(function(e){return ae.call(e,"*")}),g.scope=Pe(function(){return $.querySelectorAll(":scope")}),g.cssHas=Pe(function(){try{return $.querySelector(":has(*,:jqfake)"),0}catch(e){return 1}}),g.getById?(w.filter.ID=function(e){var t=e.replace(h,p);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&C)return(t=t.getElementById(e))?[t]:[]}):(w.filter.ID=function(e){var t=e.replace(h,p);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&C){var i,n,s,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(s=t.getElementsByName(e),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),w.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},w.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&C)return t.getElementsByClassName(e)},u=[],Pe(function(e){var t;n.appendChild(e).innerHTML="<a id='"+j+"' href='' disabled='disabled'></a><select id='"+j+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||u.push("\\["+i+"*(?:value|"+ge+")"),e.querySelectorAll("[id~="+j+"-]").length||u.push("~="),e.querySelectorAll("a#"+j+"+*").length||u.push(".#.+[+~]"),e.querySelectorAll(":checked").length||u.push(":checked"),(t=$.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),n.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&u.push(":enabled",":disabled"),(t=$.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||u.push("\\["+i+"*name"+i+"*="+i+"*(?:''|\"\")")}),g.cssHas||u.push(":has"),u=u.length&&new RegExp(u.join("|")),fe=function(e,t){var i;return e===t?(re=!0,0):!e.compareDocumentPosition-!t.compareDocumentPosition||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===i?e===$||e.ownerDocument==s&&P.contains(s,e)?-1:t===$||t.ownerDocument==s&&P.contains(s,t)?1:oe?b.call(oe,e)-b.call(oe,t):0:4&i?-1:1)}),$}for(ne in P.matches=function(e,t){return P(e,null,null,t)},P.matchesSelector=function(e,t){if(De(e),C&&!pe[t+" "]&&(!u||!u.test(t)))try{var i=ae.call(e,t);if(i||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){pe(t,!0)}return 0<P(t,$,null,[e]).length},P.contains=function(e,t){return(e.ownerDocument||e)!=$&&De(e),T.contains(e,t)},P.attr=function(e,t){(e.ownerDocument||e)!=$&&De(e);var i=w.attrHandle[t.toLowerCase()],i=i&&z.call(w.attrHandle,t.toLowerCase())?i(e,t,!C):void 0;return void 0!==i?i:e.getAttribute(t)},P.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,i=[],n=0,s=0;if(re=!g.sortStable,oe=!g.sortStable&&a.call(e,0),J.call(e,fe),re){for(;t=e[s++];)t===e[s]&&(n=i.push(s));for(;n--;)Z.call(e,i[n],1)}return oe=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(a.apply(this)))},(w=T.expr={cacheLength:50,createPseudo:l,match:ke,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(h,p),e[3]=(e[3]||e[4]||e[5]||"").replace(h,p),"~="===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]||P.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]&&P.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return ke.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&be.test(i)&&(t=(t=Ne(i,!0))&&i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(h,p).toLowerCase();return"*"===e?function(){return!0}:function(e){return y(e,t)}},CLASS:function(e){var t=de[e+" "];return t||(t=new RegExp("(^|"+i+")"+e+"("+i+"|$)"))&&de(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(e){e=P.attr(e,t);return null==e?"!="===i:!i||(e+="","="===i?e===n:"!="===i?e!==n:"^="===i?n&&0===e.indexOf(n):"*="===i?n&&-1<e.indexOf(n):"$="===i?n&&e.slice(-n.length)===n:"~="===i?-1<(" "+e.replace(me," ")+" ").indexOf(n):"|="===i&&(e===n||e.slice(0,n.length+1)===n+"-"))}},CHILD:function(p,e,t,f,g){var m="nth"!==p.slice(0,3),_="last"!==p.slice(-4),v="of-type"===e;return 1===f&&0===g?function(e){return!!e.parentNode}:function(e,t,i){var n,s,o,r,a,l=m!=_?"nextSibling":"previousSibling",c=e.parentNode,d=v&&e.nodeName.toLowerCase(),h=!i&&!v,u=!1;if(c){if(m){for(;l;){for(o=e;o=o[l];)if(v?y(o,d):1===o.nodeType)return!1;a=l="only"===p&&!a&&"nextSibling"}return!0}if(a=[_?c.firstChild:c.lastChild],_&&h){for(u=(r=(n=(s=c[j]||(c[j]={}))[p]||[])[0]===E&&n[1])&&n[2],o=r&&c.childNodes[r];o=++r&&o&&o[l]||(u=r=0,a.pop());)if(1===o.nodeType&&++u&&o===e){s[p]=[E,r,u];break}}else if(!1===(u=h?r=(n=(s=e[j]||(e[j]={}))[p]||[])[0]===E&&n[1]:u))for(;(o=++r&&o&&o[l]||(u=r=0,a.pop()))&&((v?!y(o,d):1!==o.nodeType)||!++u||(h&&((s=o[j]||(o[j]={}))[p]=[E,u]),o!==e)););return(u-=g)===f||u%f==0&&0<=u/f}}},PSEUDO:function(e,o){var t,r=w.pseudos[e]||w.setFilters[e.toLowerCase()]||P.error("unsupported pseudo: "+e);return r[j]?r(o):1<r.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?l(function(e,t){for(var i,n=r(e,o),s=n.length;s--;)e[i=b.call(e,n[s])]=!(t[i]=n[s])}):function(e){return r(e,0,t)}):r}},pseudos:{not:l(function(e){var n=[],s=[],a=We(e.replace(ee,"$1"));return a[j]?l(function(e,t,i,n){for(var s,o=a(e,null,n,[]),r=e.length;r--;)(s=o[r])&&(e[r]=!(t[r]=s))}):function(e,t,i){return n[0]=e,a(n,null,i,s),n[0]=null,!s.pop()}}),has:l(function(t){return function(e){return 0<P(t,e).length}}),contains:l(function(t){return t=t.replace(h,p),function(e){return-1<(e.textContent||T.text(e)).indexOf(t)}}),lang:l(function(i){return we.test(i||"")||P.error("unsupported lang: "+i),i=i.replace(h,p).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===i||0===t.indexOf(i+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=k.location&&k.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===n},focus:function(e){return e===(()=>{try{return $.activeElement}catch(e){}})()&&$.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:Ae(!1),disabled:Ae(!0),checked:function(e){return y(e,"input")&&!!e.checked||y(e,"option")&&!!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!w.pseudos.empty(e)},header:function(e){return Te.test(e.nodeName)},input:function(e){return xe.test(e.nodeName)},button:function(e){return y(e,"input")&&"button"===e.type||y(e,"button")},text:function(e){return y(e,"input")&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:Oe(function(){return[0]}),last:Oe(function(e,t){return[t-1]}),eq:Oe(function(e,t,i){return[i<0?i+t:i]}),even:Oe(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:Oe(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:Oe(function(e,t,i){for(var n=i<0?i+t:t<i?t:i;0<=--n;)e.push(n);return e}),gt:Oe(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[ne]=(t=>function(e){return y(e,"input")&&e.type===t})(ne);for(ne in{submit:!0,reset:!0})w.pseudos[ne]=(t=>function(e){return(y(e,"input")||y(e,"button"))&&e.type===t})(ne);function Ie(){}function Ne(e,t){var i,n,s,o,r,a,l,c=he[e+" "];if(c)return t?0:c.slice(0);for(r=e,a=[],l=w.preFilter;r;){for(o in i&&!(n=_e.exec(r))||(n&&(r=r.slice(n[0].length)||r),a.push(s=[])),i=!1,(n=ve.exec(r))&&(i=n.shift(),s.push({value:i,type:n[0].replace(ee," ")}),r=r.slice(i.length)),w.filter)!(n=ke[o].exec(r))||l[o]&&!(n=l[o](n))||(i=n.shift(),s.push({value:i,type:o,matches:n}),r=r.slice(i.length));if(!i)break}return t?r.length:r?P.error(e):he(e,a).slice(0)}function Me(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function qe(r,e,t){var a=e.dir,l=e.next,c=l||a,d=t&&"parentNode"===c,h=ce++;return e.first?function(e,t,i){for(;e=e[a];)if(1===e.nodeType||d)return r(e,t,i);return!1}:function(e,t,i){var n,s,o=[E,h];if(i){for(;e=e[a];)if((1===e.nodeType||d)&&r(e,t,i))return!0}else for(;e=e[a];)if(1===e.nodeType||d)if(s=e[j]||(e[j]={}),l&&y(e,l))e=e[a]||e;else{if((n=s[c])&&n[0]===E&&n[1]===h)return o[2]=n[2];if((s[c]=o)[2]=r(e,t,i))return!0}return!1}}function He(s){return 1<s.length?function(e,t,i){for(var n=s.length;n--;)if(!s[n](e,t,i))return!1;return!0}:s[0]}function Re(e,t,i,n,s){for(var o,r=[],a=0,l=e.length,c=null!=t;a<l;a++)!(o=e[a])||i&&!i(o,n,s)||(r.push(o),c&&t.push(a));return r}function Fe(p,f,g,m,_,e){return m&&!m[j]&&(m=Fe(m)),_&&!_[j]&&(_=Fe(_,e)),l(function(e,t,i,n){var s,o,r,a,l=[],c=[],d=t.length,h=e||((e,t,i)=>{for(var n=0,s=t.length;n<s;n++)P(e,t[n],i);return i})(f||"*",i.nodeType?[i]:i,[]),u=!p||!e&&f?h:Re(h,l,p,i,n);if(g?g(u,a=_||(e?p:d||m)?[]:t,i,n):a=u,m)for(s=Re(a,c),m(s,[],i,n),o=s.length;o--;)(r=s[o])&&(a[c[o]]=!(u[c[o]]=r));if(e){if(_||p){if(_){for(s=[],o=a.length;o--;)(r=a[o])&&s.push(u[o]=r);_(null,a=[],s,n)}for(o=a.length;o--;)(r=a[o])&&-1<(s=_?b.call(e,r):l[o])&&(e[s]=!(t[s]=r))}}else a=Re(a===t?a.splice(d,a.length):a),_?_(null,t,a,n):S.apply(t,a)})}function We(e,t){var i,m,_,v,y,n,s=[],o=[],r=ue[e+" "];if(!r){for(i=(t=t||Ne(e)).length;i--;)((r=function e(t){for(var n,i,s,o=t.length,r=w.relative[t[0].type],a=r||w.relative[" "],l=r?1:0,c=qe(function(e){return e===n},a,!0),d=qe(function(e){return-1<b.call(n,e)},a,!0),h=[function(e,t,i){return e=!r&&(i||t!=se)||((n=t).nodeType?c:d)(e,t,i),n=null,e}];l<o;l++)if(i=w.relative[t[l].type])h=[qe(He(h),i)];else{if((i=w.filter[t[l].type].apply(null,t[l].matches))[j]){for(s=++l;s<o&&!w.relative[t[s].type];s++);return Fe(1<l&&He(h),1<l&&Me(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(ee,"$1"),i,l<s&&e(t.slice(l,s)),s<o&&e(t=t.slice(s)),s<o&&Me(t))}h.push(i)}return He(h)}(t[i]))[j]?s:o).push(r);(r=ue(e,(v=0<(_=s).length,y=0<(m=o).length,n=function(e,t,i,n,s){var o,r,a,l=0,c="0",d=e&&[],h=[],u=se,p=e||y&&w.find.TAG("*",s),f=E+=null==u?1:Math.random()||.1,g=p.length;for(s&&(se=t==$||t||s);c!==g&&null!=(o=p[c]);c++){if(y&&o){for(r=0,t||o.ownerDocument==$||(De(o),i=!C);a=m[r++];)if(a(o,t||$,i)){S.call(n,o);break}s&&(E=f)}v&&((o=!a&&o)&&l--,e)&&d.push(o)}if(l+=c,v&&c!==l){for(r=0;a=_[r++];)a(d,h,t,i);if(e){if(0<l)for(;c--;)d[c]||h[c]||(h[c]=G.call(n));h=Re(h)}S.apply(n,h),s&&!e&&0<h.length&&1<l+_.length&&T.uniqueSort(n)}return s&&(E=f,se=u),d},v?l(n):n))).selector=e}return r}function ze(e,t,i,n){var s,o,r,a,l,c="function"==typeof e&&e,d=!n&&Ne(e=c.selector||e);if(i=i||[],1===d.length){if(2<(o=d[0]=d[0].slice(0)).length&&"ID"===(r=o[0]).type&&9===t.nodeType&&C&&w.relative[o[1].type]){if(!(t=(w.find.ID(r.matches[0].replace(h,p),t)||[])[0]))return i;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(s=ke.needsContext.test(e)?0:o.length;s--&&(r=o[s],!w.relative[a=r.type]);)if((l=w.find[a])&&(n=l(r.matches[0].replace(h,p),Ce.test(o[0].type)&&Le(t.parentNode)||t))){if(o.splice(s,1),e=n.length&&Me(o))break;return S.apply(i,n),i}}return(c||We(e,d))(n,t,!C,i,!t||Ce.test(e)&&Le(t.parentNode)||t),i}Ie.prototype=w.filters=w.pseudos,w.setFilters=new Ie,g.sortStable=j.split("").sort(fe).join("")===j,De(),g.sortDetached=Pe(function(e){return 1&e.compareDocumentPosition($.createElement("fieldset"))}),T.find=P,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,P.compile=We,P.select=ze,P.setDocument=De,P.tokenize=Ne,P.escape=T.escapeSelector,P.getText=T.text,P.isXML=T.isXMLDoc,P.selectors=T.expr,P.support=T.support,P.uniqueSort=T.uniqueSort;function Be(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&T(e).is(i))break;n.push(e)}return n}function Ve(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}var Ue=T.expr.match.needsContext,Xe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ye(e,i,n){return v(i)?T.grep(e,function(e,t){return!!i.call(e,t,e)!==n}):i.nodeType?T.grep(e,function(e){return e===i!==n}):"string"!=typeof i?T.grep(e,function(e){return-1<b.call(i,e)!==n}):T.filter(i,e,n)}T.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?T.find.matchesSelector(n,e)?[n]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,i,n=this.length,s=this;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t<n;t++)if(T.contains(s[t],this))return!0}));for(i=this.pushStack([]),t=0;t<n;t++)T.find(e,s[t],i);return 1<n?T.uniqueSort(i):i},filter:function(e){return this.pushStack(Ye(this,e||[],!1))},not:function(e){return this.pushStack(Ye(this,e||[],!0))},is:function(e){return!!Ye(this,"string"==typeof e&&Ue.test(e)?T(e):e||[],!1).length}});var Ke,Qe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ge=((T.fn.init=function(e,t,i){if(e){if(i=i||Ke,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==i.ready?i.ready(e):e(T):T.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:Qe.exec(e))||!n[1]&&t)return(!t||t.jquery?t||i:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:x,!0)),Xe.test(n[1])&&T.isPlainObject(t))for(var n in t)v(this[n])?this[n](t[n]):this.attr(n,t[n])}else(i=x.getElementById(n[2]))&&(this[0]=i,this.length=1)}return this}).prototype=T.fn,Ke=T(x),/^(?:parents|prev(?:Until|All))/),Je={children:!0,contents:!0,next:!0,prev:!0};function Ze(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(T.contains(this,t[e]))return!0})},closest:function(e,t){var i,n=0,s=this.length,o=[],r="string"!=typeof e&&T(e);if(!Ue.test(e))for(;n<s;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&T.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(1<o.length?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?b.call(T(e),this[0]):b.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return Be(e,"parentNode")},parentsUntil:function(e,t,i){return Be(e,"parentNode",i)},next:function(e){return Ze(e,"nextSibling")},prev:function(e){return Ze(e,"previousSibling")},nextAll:function(e){return Be(e,"nextSibling")},prevAll:function(e){return Be(e,"previousSibling")},nextUntil:function(e,t,i){return Be(e,"nextSibling",i)},prevUntil:function(e,t,i){return Be(e,"previousSibling",i)},siblings:function(e){return Ve((e.parentNode||{}).firstChild,e)},children:function(e){return Ve(e.firstChild)},contents:function(e){return null!=e.contentDocument&&q(e.contentDocument)?e.contentDocument:(y(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},function(n,s){T.fn[n]=function(e,t){var i=T.map(this,s,e);return(t="Until"!==n.slice(-5)?e:t)&&"string"==typeof t&&(i=T.filter(t,i)),1<this.length&&(Je[n]||T.uniqueSort(i),Ge.test(n))&&i.reverse(),this.pushStack(i)}});var A=/[^\x20\t\r\n\f]+/g;function et(e){return e}function tt(e){throw e}function it(e,t,i,n){var s;try{e&&v(s=e.promise)?s.call(e).done(t).fail(i):e&&v(s=e.then)?s.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}T.Callbacks=function(n){var e,i;n="string"==typeof n?(e=n,i={},T.each(e.match(A)||[],function(e,t){i[t]=!0}),i):T.extend({},n);function s(){for(a=a||n.once,r=o=!0;c.length;d=-1)for(t=c.shift();++d<l.length;)!1===l[d].apply(t[0],t[1])&&n.stopOnFalse&&(d=l.length,t=!1);n.memory||(t=!1),o=!1,a&&(l=t?[]:"")}var o,t,r,a,l=[],c=[],d=-1,h={add:function(){return l&&(t&&!o&&(d=l.length-1,c.push(t)),function i(e){T.each(e,function(e,t){v(t)?n.unique&&h.has(t)||l.push(t):t&&t.length&&"string"!==Y(t)&&i(t)})}(arguments),t)&&!o&&s(),this},remove:function(){return T.each(arguments,function(e,t){for(var i;-1<(i=T.inArray(t,l,i));)l.splice(i,1),i<=d&&d--}),this},has:function(e){return e?-1<T.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=c=[],l=t="",this},disabled:function(){return!l},lock:function(){return a=c=[],t||o||(l=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),o)||s(),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},T.extend({Deferred:function(e){var o=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],s="pending",r={state:function(){return s},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var s=arguments;return T.Deferred(function(n){T.each(o,function(e,t){var i=v(s[t[4]])&&s[t[4]];a[t[1]](function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[t[0]+"With"](this,i?[e]:arguments)})}),s=null}).promise()},then:function(t,i,n){var l=0;function c(s,o,r,a){return function(){function e(){var e,t;if(!(s<l)){if((e=r.apply(i,n))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?a?t.call(e,c(l,o,et,a),c(l,o,tt,a)):(l++,t.call(e,c(l,o,et,a),c(l,o,tt,a),c(l,o,et,o.notifyWith))):(r!==et&&(i=void 0,n=[e]),(a||o.resolveWith)(i,n))}}var i=this,n=arguments,t=a?e:function(){try{e()}catch(e){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(e,t.error),l<=s+1&&(r!==tt&&(i=void 0,n=[e]),o.rejectWith(i,n))}};s?t():(T.Deferred.getErrorHook?t.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(t.error=T.Deferred.getStackHook()),k.setTimeout(t))}}return T.Deferred(function(e){o[0][3].add(c(0,e,v(n)?n:et,e.notifyWith)),o[1][3].add(c(0,e,v(t)?t:et)),o[2][3].add(c(0,e,v(i)?i:tt))}).promise()},promise:function(e){return null!=e?T.extend(e,r):r}},a={};return T.each(o,function(e,t){var i=t[2],n=t[5];r[t[1]]=i.add,n&&i.add(function(){s=n},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),i.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=i.fireWith}),r.promise(a),e&&e.call(a,a),a},when:function(e){function t(t){return function(e){s[t]=this,o[t]=1<arguments.length?a.call(arguments):e,--i||r.resolveWith(s,o)}}var i=arguments.length,n=i,s=Array(n),o=a.call(arguments),r=T.Deferred();if(i<=1&&(it(e,r.done(t(n)).resolve,r.reject,!i),"pending"===r.state()||v(o[n]&&o[n].then)))return r.then();for(;n--;)it(o[n],t(n),r.reject);return r.promise()}});var nt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,st=(T.Deferred.exceptionHook=function(e,t){k.console&&k.console.warn&&e&&nt.test(e.name)&&k.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){k.setTimeout(function(){throw e})},T.Deferred());function ot(){x.removeEventListener("DOMContentLoaded",ot),k.removeEventListener("load",ot),T.ready()}T.fn.ready=function(e){return st.then(e).catch(function(e){T.readyException(e)}),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0)!==e&&0<--T.readyWait||st.resolveWith(x,[T])}}),T.ready.then=st.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?k.setTimeout(T.ready):(x.addEventListener("DOMContentLoaded",ot),k.addEventListener("load",ot));function d(e,t,i,n,s,o,r){var a=0,l=e.length,c=null==i;if("object"===Y(i))for(a in s=!0,i)d(e,t,a,i[a],!0,o,r);else if(void 0!==n&&(s=!0,v(n)||(r=!0),t=c?r?(t.call(e,n),null):(c=t,function(e,t,i){return c.call(T(e),i)}):t))for(;a<l;a++)t(e[a],i,r?n:n.call(e[a],a,t(e[a],i)));return s?e:c?t.call(e):l?t(e[0],i):o}var rt=/^-ms-/,at=/-([a-z])/g;function lt(e,t){return t.toUpperCase()}function O(e){return e.replace(rt,"ms-").replace(at,lt)}function ct(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function dt(){this.expando=T.expando+dt.uid++}dt.uid=1,dt.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ct(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,s=this.cache(e);if("string"==typeof t)s[O(t)]=i;else for(n in t)s[O(n)]=t[n];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][O(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(O):(t=O(t))in n?[t]:t.match(A)||[]).length;for(;i--;)delete n[t[i]]}void 0!==t&&!T.isEmptyObject(n)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var _=new dt,c=new dt,ht=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function pt(e,t,i){var n,s;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(ut,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===(s=i)||"false"!==s&&("null"===s?null:s===+s+""?+s:ht.test(s)?JSON.parse(s):s)}catch(e){}c.set(e,t,i)}else i=void 0;return i}T.extend({hasData:function(e){return c.hasData(e)||_.hasData(e)},data:function(e,t,i){return c.access(e,t,i)},removeData:function(e,t){c.remove(e,t)},_data:function(e,t,i){return _.access(e,t,i)},_removeData:function(e,t){_.remove(e,t)}}),T.fn.extend({data:function(i,e){var t,n,s,o=this[0],r=o&&o.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){c.set(this,i)}):d(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=c.get(o,i))||void 0!==(t=pt(o,i))?t:void 0;this.each(function(){c.set(this,i,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(s=c.get(o),1===o.nodeType)&&!_.get(o,"hasDataAttrs")){for(t=r.length;t--;)r[t]&&0===(n=r[t].name).indexOf("data-")&&(n=O(n.slice(5)),pt(o,n,s[n]));_.set(o,"hasDataAttrs",!0)}return s},removeData:function(e){return this.each(function(){c.remove(this,e)})}}),T.extend({queue:function(e,t,i){var n;if(e)return n=_.get(e,t=(t||"fx")+"queue"),i&&(!n||Array.isArray(i)?n=_.access(e,t,T.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=T.queue(e,t),n=i.length,s=i.shift(),o=T._queueHooks(e,t);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete o.stop,s.call(e,function(){T.dequeue(e,t)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return _.get(e,i)||_.access(e,i,{empty:T.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",i])})})}}),T.fn.extend({queue:function(t,i){var e=2;return"string"!=typeof t&&(i=t,t="fx",e--),arguments.length<e?T.queue(this[0],t):void 0===i?this:this.each(function(){var e=T.queue(this,t,i);T._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&T.dequeue(this,t)})},dequeue:function(e){return this.each(function(){T.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function i(){--s||o.resolveWith(r,[r])}var n,s=1,o=T.Deferred(),r=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=_.get(r[a],e+"queueHooks"))&&n.empty&&(s++,n.empty.add(i));return i(),o.promise(t)}});function ft(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&vt(e)&&"none"===T.css(e,"display")}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,gt=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),mt=["Top","Right","Bottom","Left"],_t=x.documentElement,vt=function(e){return T.contains(e.ownerDocument,e)},yt={composed:!0};_t.getRootNode&&(vt=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(yt)===e.ownerDocument});function bt(e,t,i,n){var s,o,r=20,a=n?function(){return n.cur()}:function(){return T.css(e,t,"")},l=a(),c=i&&i[3]||(T.cssNumber[t]?"":"px"),d=e.nodeType&&(T.cssNumber[t]||"px"!==c&&+l)&&gt.exec(T.css(e,t));if(d&&d[3]!==c){for(c=c||d[3],d=+(l/=2)||1;r--;)T.style(e,t,d+c),(1-o)*(1-(o=a()/l||.5))<=0&&(r=0),d/=o;T.style(e,t,(d*=2)+c),i=i||[]}return i&&(d=+d||+l||0,s=i[1]?d+(i[1]+1)*i[2]:+i[2],n)&&(n.unit=c,n.start=d,n.end=s),s}var wt={};function kt(e,t){for(var i,n,s,o,r,a,l=[],c=0,d=e.length;c<d;c++)(n=e[c]).style&&(i=n.style.display,t?("none"===i&&(l[c]=_.get(n,"display")||null,l[c]||(n.style.display="")),""===n.style.display&&ft(n)&&(l[c]=(a=o=s=void 0,o=n.ownerDocument,(a=wt[r=n.nodeName])||(s=o.body.appendChild(o.createElement(r)),a=T.css(s,"display"),s.parentNode.removeChild(s),wt[r]=a="none"===a?"block":a)))):"none"!==i&&(l[c]="none",_.set(n,"display",i)));for(c=0;c<d;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}T.fn.extend({show:function(){return kt(this,!0)},hide:function(){return kt(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ft(this)?T(this).show():T(this).hide()})}});var xt=/^(?:checkbox|radio)$/i,Tt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,$t=/^$|^module$|\/(?:java|ecma)script/i,o=x.createDocumentFragment().appendChild(x.createElement("div")),f=((r=x.createElement("input")).setAttribute("type","radio"),r.setAttribute("checked","checked"),r.setAttribute("name","t"),o.appendChild(r),g.checkClone=o.cloneNode(!0).cloneNode(!0).lastChild.checked,o.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!o.cloneNode(!0).lastChild.defaultValue,o.innerHTML="<option></option>",g.option=!!o.lastChild,{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 m(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&y(e,t)?T.merge([e],i):i}function Ct(e,t){for(var i=0,n=e.length;i<n;i++)_.set(e[i],"globalEval",!t||_.get(t[i],"globalEval"))}f.tbody=f.tfoot=f.colgroup=f.caption=f.thead,f.th=f.td,g.option||(f.optgroup=f.option=[1,"<select multiple='multiple'>","</select>"]);var St=/<|&#?\w+;/;function jt(e,t,i,n,s){for(var o,r,a,l,c,d=t.createDocumentFragment(),h=[],u=0,p=e.length;u<p;u++)if((o=e[u])||0===o)if("object"===Y(o))T.merge(h,o.nodeType?[o]:o);else if(St.test(o)){for(r=r||d.appendChild(t.createElement("div")),a=(Tt.exec(o)||["",""])[1].toLowerCase(),a=f[a]||f._default,r.innerHTML=a[1]+T.htmlPrefilter(o)+a[2],c=a[0];c--;)r=r.lastChild;T.merge(h,r.childNodes),(r=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",u=0;o=h[u++];)if(n&&-1<T.inArray(o,n))s&&s.push(o);else if(l=vt(o),r=m(d.appendChild(o),"script"),l&&Ct(r),i)for(c=0;o=r[c++];)$t.test(o.type||"")&&i.push(o);return d}var Et=/^([^.]*)(?:\.(.+)|)/;function Pt(){return!0}function At(){return!1}function Ot(e,t,i,n,s,o){var r,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Ot(e,a,i,n,t[a],o);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=At;else if(!s)return e;return 1===o&&(r=s,(s=function(e){return T().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=T.guid++)),e.each(function(){T.event.add(this,t,s,n,i)})}function Lt(e,n,t){t?(_.set(e,n,!1),T.event.add(e,n,{namespace:!1,handler:function(e){var t,i=_.get(this,n);if(1&e.isTrigger&&this[n]){if(i)(T.event.special[n]||{}).delegateType&&e.stopPropagation();else if(i=a.call(arguments),_.set(this,n,i),this[n](),t=_.get(this,n),_.set(this,n,!1),i!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else i&&(_.set(this,n,T.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Pt)}})):void 0===_.get(e,n)&&T.event.add(e,n,Pt)}T.event={global:{},add:function(t,e,i,n,s){var o,r,a,l,c,d,h,u,p,f=_.get(t);if(ct(t))for(i.handler&&(i=(o=i).handler,s=o.selector),s&&T.find.matchesSelector(_t,s),i.guid||(i.guid=T.guid++),a=(a=f.events)||(f.events=Object.create(null)),r=(r=f.handle)||(f.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(A)||[""]).length;l--;)h=p=(u=Et.exec(e[l])||[])[1],u=(u[2]||"").split(".").sort(),h&&(c=T.event.special[h]||{},h=(s?c.delegateType:c.bindType)||h,c=T.event.special[h]||{},p=T.extend({type:h,origType:p,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&T.expr.match.needsContext.test(s),namespace:u.join(".")},o),(d=a[h])||((d=a[h]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,n,u,r))||t.addEventListener&&t.addEventListener(h,r),c.add&&(c.add.call(t,p),p.handler.guid||(p.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,p):d.push(p),T.event.global[h]=!0)},remove:function(e,t,i,n,s){var o,r,a,l,c,d,h,u,p,f,g,m=_.hasData(e)&&_.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(A)||[""]).length;c--;)if(p=g=(a=Et.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(h=T.event.special[p]||{},u=l[p=(n?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=u.length;o--;)d=u[o],!s&&g!==d.origType||i&&i.guid!==d.guid||a&&!a.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(u.splice(o,1),d.selector&&u.delegateCount--,h.remove&&h.remove.call(e,d));r&&!u.length&&(h.teardown&&!1!==h.teardown.call(e,f,m.handle)||T.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[c],i,n,!0);T.isEmptyObject(l)&&_.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,o,r=new Array(arguments.length),a=T.event.fix(e),e=(_.get(this,"events")||Object.create(null))[a.type]||[],l=T.event.special[a.type]||{};for(r[0]=a,t=1;t<arguments.length;t++)r[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(o=T.event.handlers.call(this,a,e),t=0;(n=o[t++])&&!a.isPropagationStopped();)for(a.currentTarget=n.elem,i=0;(s=n.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==s.namespace&&!a.rnamespace.test(s.namespace)||(a.handleObj=s,a.data=s.data,void 0!==(s=((T.event.special[s.origType]||{}).handle||s.handler).apply(n.elem,r))&&!1===(a.result=s)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var i,n,s,o,r,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],r={},i=0;i<l;i++)void 0===r[s=(n=t[i]).selector+" "]&&(r[s]=n.needsContext?-1<T(s,this).index(c):T.find(s,this,null,[c]).length),r[s]&&o.push(n);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(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[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){e=this||e;return xt.test(e.type)&&e.click&&y(e,"input")&&Lt(e,"click",!0),!1},trigger:function(e){e=this||e;return xt.test(e.type)&&e.click&&y(e,"input")&&Lt(e,"click"),!0},_default:function(e){e=e.target;return xt.test(e.type)&&e.click&&y(e,"input")&&_.get(e,"click")||y(e,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Pt:At,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&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:At,isPropagationStopped:At,isImmediatePropagationStopped:At,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Pt,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Pt,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Pt,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(n,s){function o(e){var t,i;x.documentMode?(t=_.get(this,"handle"),(i=T.event.fix(e)).type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,t(e),i.target===i.currentTarget&&t(i)):T.event.simulate(s,e.target,T.event.fix(e))}T.event.special[n]={setup:function(){var e;if(Lt(this,n,!0),!x.documentMode)return!1;(e=_.get(this,s))||this.addEventListener(s,o),_.set(this,s,(e||0)+1)},trigger:function(){return Lt(this,n),!0},teardown:function(){var e;if(!x.documentMode)return!1;(e=_.get(this,s)-1)?_.set(this,s,e):(this.removeEventListener(s,o),_.remove(this,s))},_default:function(e){return _.get(e.target,n)},delegateType:s},T.event.special[s]={setup:function(){var e=this.ownerDocument||this.document||this,t=x.documentMode?this:e,i=_.get(t,s);i||(x.documentMode?this.addEventListener(s,o):e.addEventListener(n,o,!0)),_.set(t,s,(i||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=x.documentMode?this:e,i=_.get(t,s)-1;i?_.set(t,s,i):(x.documentMode?this.removeEventListener(s,o):e.removeEventListener(n,o,!0),_.remove(t,s))}}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,s){T.event.special[e]={delegateType:s,bindType:s,handle:function(e){var t,i=e.relatedTarget,n=e.handleObj;return i&&(i===this||T.contains(this,i))||(e.type=n.origType,t=n.handler.apply(this,arguments),e.type=s),t}}}),T.fn.extend({on:function(e,t,i,n){return Ot(this,e,t,i,n)},one:function(e,t,i,n){return Ot(this,e,t,i,n,1)},off:function(e,t,i){var n,s;if(e&&e.preventDefault&&e.handleObj)n=e.handleObj,T(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=At),this.each(function(){T.event.remove(this,e,i,t)});for(s in e)this.off(s,t,e[s])}return this}});var Dt=/<script|<style|<link/i,It=/checked\s*(?:[^=]|=\s*.checked.)/i,Nt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Mt(e,t){return y(e,"table")&&y(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function qt(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ht(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Rt(e,t){var i,n,s,o;if(1===t.nodeType){if(_.hasData(e)&&(o=_.get(e).events))for(s in _.remove(t,"handle events"),o)for(i=0,n=o[s].length;i<n;i++)T.event.add(t,s,o[s][i]);c.hasData(e)&&(e=c.access(e),e=T.extend({},e),c.set(t,e))}}function Ft(i,n,s,o){n=H(n);var e,t,r,a,l,c,d=0,h=i.length,u=h-1,p=n[0],f=v(p);if(f||1<h&&"string"==typeof p&&!g.checkClone&&It.test(p))return i.each(function(e){var t=i.eq(e);f&&(n[0]=p.call(this,e,t.html())),Ft(t,n,s,o)});if(h&&(t=(e=jt(n,i[0].ownerDocument,!1,i,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(a=(r=T.map(m(e,"script"),qt)).length;d<h;d++)l=e,d!==u&&(l=T.clone(l,!0,!0),a)&&T.merge(r,m(l,"script")),s.call(i[d],l,d);if(a)for(c=r[r.length-1].ownerDocument,T.map(r,Ht),d=0;d<a;d++)l=r[d],$t.test(l.type||"")&&!_.access(l,"globalEval")&&T.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):X(l.textContent.replace(Nt,""),l,c))}return i}function Wt(e,t,i){for(var n,s=t?T.filter(t,e):e,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||T.cleanData(m(n)),n.parentNode&&(i&&vt(n)&&Ct(m(n,"script")),n.parentNode.removeChild(n));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,s,o,r,a,l,c,d=e.cloneNode(!0),h=vt(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(r=m(d),n=0,s=(o=m(e)).length;n<s;n++)a=o[n],"input"===(c=(l=r[n]).nodeName.toLowerCase())&&xt.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(i)for(o=o||m(e),r=r||m(d),n=0,s=o.length;n<s;n++)Rt(o[n],r[n]);else Rt(e,d);return 0<(r=m(d,"script")).length&&Ct(r,!h&&m(e,"script")),d},cleanData:function(e){for(var t,i,n,s=T.event.special,o=0;void 0!==(i=e[o]);o++)if(ct(i)){if(t=i[_.expando]){if(t.events)for(n in t.events)s[n]?T.event.remove(i,n):T.removeEvent(i,n,t.handle);i[_.expando]=void 0}i[c.expando]&&(i[c.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Wt(this,e,!0)},remove:function(e){return Wt(this,e)},text:function(e){return d(this,function(e){return void 0===e?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ft(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Mt(this,e).appendChild(e)})},prepend:function(){return Ft(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Mt(this,e)).insertBefore(e,t.firstChild)})},before:function(){return Ft(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ft(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&&(T.cleanData(m(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return T.clone(this,e,t)})},html:function(e){return d(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Dt.test(e)&&!f[(Tt.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(T.cleanData(m(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var i=[];return Ft(this,arguments,function(e){var t=this.parentNode;T.inArray(this,i)<0&&(T.cleanData(m(this)),t)&&t.replaceChild(e,this)},i)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,r){T.fn[e]=function(e){for(var t,i=[],n=T(e),s=n.length-1,o=0;o<=s;o++)t=o===s?this:this.clone(!0),T(n[o])[r](t),R.apply(i,t.get());return this.pushStack(i)}});function zt(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:k).getComputedStyle(e)}function Bt(e,t,i){var n,s={};for(n in t)s[n]=e.style[n],e.style[n]=t[n];for(n in i=i.call(e),t)e.style[n]=s[n];return i}var Vt,Ut,Xt,Yt,Kt,Qt,Gt,L,Jt=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),Zt=/^--/,ei=new RegExp(mt.join("|"),"i");function ti(e,t,i){var n,s=Zt.test(t),o=e.style;return(i=i||zt(e))&&(n=i.getPropertyValue(t)||i[t],""!==(n=s?n&&(n.replace(ee,"$1")||void 0):n)||vt(e)||(n=T.style(e,t)),!g.pixelBoxStyles())&&Jt.test(n)&&ei.test(t)&&(s=o.width,e=o.minWidth,t=o.maxWidth,o.minWidth=o.maxWidth=o.width=n,n=i.width,o.width=s,o.minWidth=e,o.maxWidth=t),void 0!==n?n+"":n}function ii(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function ni(){var e;L&&(Gt.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%",_t.appendChild(Gt).appendChild(L),e=k.getComputedStyle(L),Vt="1%"!==e.top,Qt=12===si(e.marginLeft),L.style.right="60%",Yt=36===si(e.right),Ut=36===si(e.width),L.style.position="absolute",Xt=12===si(L.offsetWidth/3),_t.removeChild(Gt),L=null)}function si(e){return Math.round(parseFloat(e))}Gt=x.createElement("div"),(L=x.createElement("div")).style&&(L.style.backgroundClip="content-box",L.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===L.style.backgroundClip,T.extend(g,{boxSizingReliable:function(){return ni(),Ut},pixelBoxStyles:function(){return ni(),Yt},pixelPosition:function(){return ni(),Vt},reliableMarginLeft:function(){return ni(),Qt},scrollboxSize:function(){return ni(),Xt},reliableTrDimensions:function(){var e,t,i;return null==Kt&&(e=x.createElement("table"),t=x.createElement("tr"),i=x.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",_t.appendChild(e).appendChild(t).appendChild(i),i=k.getComputedStyle(t),Kt=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,_t.removeChild(e)),Kt}}));var oi=["Webkit","Moz","ms"],ri=x.createElement("div").style,ai={};function li(e){return T.cssProps[e]||ai[e]||(e in ri?e:ai[e]=(e=>{for(var t=e[0].toUpperCase()+e.slice(1),i=oi.length;i--;)if((e=oi[i]+t)in ri)return e})(e)||e)}var ci=/^(none|table(?!-c[ea]).+)/,di={position:"absolute",visibility:"hidden",display:"block"},hi={letterSpacing:"0",fontWeight:"400"};function ui(e,t,i){var n=gt.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function pi(e,t,i,n,s,o){var r="width"===t?1:0,a=0,l=0,c=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(c+=T.css(e,i+mt[r],!0,s)),n?("content"===i&&(l-=T.css(e,"padding"+mt[r],!0,s)),"margin"!==i&&(l-=T.css(e,"border"+mt[r]+"Width",!0,s))):(l+=T.css(e,"padding"+mt[r],!0,s),"padding"!==i?l+=T.css(e,"border"+mt[r]+"Width",!0,s):a+=T.css(e,"border"+mt[r]+"Width",!0,s));return!n&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l+c}function fi(e,t,i){var n=zt(e),s=(!g.boxSizingReliable()||i)&&"border-box"===T.css(e,"boxSizing",!1,n),o=s,r=ti(e,t,n),a="offset"+t[0].toUpperCase()+t.slice(1);if(Jt.test(r)){if(!i)return r;r="auto"}return(!g.boxSizingReliable()&&s||!g.reliableTrDimensions()&&y(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===T.css(e,"display",!1,n))&&e.getClientRects().length&&(s="border-box"===T.css(e,"boxSizing",!1,n),o=a in e)&&(r=e[a]),(r=parseFloat(r)||0)+pi(e,t,i||(s?"border":"content"),o,n,r)+"px"}function D(e,t,i,n,s){return new D.prototype.init(e,t,i,n,s)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=ti(e,"opacity"))?"1":t}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,o,r,a=O(t),l=Zt.test(t),c=e.style;if(l||(t=li(a)),r=T.cssHooks[t]||T.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(e,!1,n))?s:c[t];"string"==(o=typeof i)&&(s=gt.exec(i))&&s[1]&&(i=bt(e,t,s),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=s&&s[3]||(T.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var s,o=O(t);return Zt.test(t)||(t=li(o)),"normal"===(s=void 0===(s=(o=T.cssHooks[t]||T.cssHooks[o])&&"get"in o?o.get(e,!0,i):s)?ti(e,t,n):s)&&t in hi&&(s=hi[t]),(""===i||i)&&(o=parseFloat(s),!0===i||isFinite(o))?o||0:s}}),T.each(["height","width"],function(e,r){T.cssHooks[r]={get:function(e,t,i){if(t)return!ci.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?fi(e,r,i):Bt(e,di,function(){return fi(e,r,i)})},set:function(e,t,i){var n=zt(e),s=!g.scrollboxSize()&&"absolute"===n.position,o=(s||i)&&"border-box"===T.css(e,"boxSizing",!1,n),i=i?pi(e,r,i,o,n):0;return o&&s&&(i-=Math.ceil(e["offset"+r[0].toUpperCase()+r.slice(1)]-parseFloat(n[r])-pi(e,r,"border",!1,n)-.5)),i&&(o=gt.exec(t))&&"px"!==(o[3]||"px")&&(e.style[r]=t,t=T.css(e,r)),ui(0,t,i)}}}),T.cssHooks.marginLeft=ii(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(ti(e,"marginLeft"))||e.getBoundingClientRect().left-Bt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(s,o){T.cssHooks[s+o]={expand:function(e){for(var t=0,i={},n="string"==typeof e?e.split(" "):[e];t<4;t++)i[s+mt[t]+o]=n[t]||n[t-2]||n[0];return i}},"margin"!==s&&(T.cssHooks[s+o].set=ui)}),T.fn.extend({css:function(e,t){return d(this,function(e,t,i){var n,s,o={},r=0;if(Array.isArray(t)){for(n=zt(e),s=t.length;r<s;r++)o[t[r]]=T.css(e,t[r],!1,n);return o}return void 0!==i?T.style(e,t,i):T.css(e,t)},e,t,1<arguments.length)}}),((T.Tween=D).prototype={constructor:D,init:function(e,t,i,n,s,o){this.elem=e,this.prop=i,this.easing=s||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(T.cssNumber[i]?"":"px")},cur:function(){var e=D.propHooks[this.prop];return(e&&e.get?e:D.propHooks._default).get(this)},run:function(e){var t,i=D.propHooks[this.prop];return this.options.duration?this.pos=t=T.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),(i&&i.set?i:D.propHooks._default).set(this),this}}).init.prototype=D.prototype,(D.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=T.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[li(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=D.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=D.prototype.init,T.fx.step={};var gi,mi,_i=/^(?:toggle|show|hide)$/,vi=/queueHooks$/;function yi(){mi&&(!1===x.hidden&&k.requestAnimationFrame?k.requestAnimationFrame(yi):k.setTimeout(yi,T.fx.interval),T.fx.tick())}function bi(){return k.setTimeout(function(){gi=void 0}),gi=Date.now()}function wi(e,t){var i,n=0,s={height:e};for(t=t?1:0;n<4;n+=2-t)s["margin"+(i=mt[n])]=s["padding"+i]=e;return t&&(s.opacity=s.width=e),s}function ki(e,t,i){for(var n,s=(I.tweeners[t]||[]).concat(I.tweeners["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,t,e))return n}function I(s,e,t){var i,o,n,r,a,l,c,d=0,h=I.prefilters.length,u=T.Deferred().always(function(){delete p.elem}),p=function(){if(o)return!1;for(var e=gi||bi(),e=Math.max(0,f.startTime+f.duration-e),t=1-(e/f.duration||0),i=0,n=f.tweens.length;i<n;i++)f.tweens[i].run(t);return u.notifyWith(s,[f,t,e]),t<1&&n?e:(n||u.notifyWith(s,[f,1,0]),u.resolveWith(s,[f]),!1)},f=u.promise({elem:s,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},t),originalProperties:e,originalOptions:t,startTime:gi||bi(),duration:t.duration,tweens:[],createTween:function(e,t){t=T.Tween(s,f.opts,e,t,f.opts.specialEasing[e]||f.opts.easing);return f.tweens.push(t),t},stop:function(e){var t=0,i=e?f.tweens.length:0;if(!o){for(o=!0;t<i;t++)f.tweens[t].run(1);e?(u.notifyWith(s,[f,1,0]),u.resolveWith(s,[f,e])):u.rejectWith(s,[f,e])}return this}}),g=f.props,m=g,_=f.opts.specialEasing;for(n in m)if(a=_[r=O(n)],l=m[n],Array.isArray(l)&&(a=l[1],l=m[n]=l[0]),n!==r&&(m[r]=l,delete m[n]),(c=T.cssHooks[r])&&"expand"in c)for(n in l=c.expand(l),delete m[r],l)n in m||(m[n]=l[n],_[n]=a);else _[r]=a;for(;d<h;d++)if(i=I.prefilters[d].call(f,s,g,f.opts))return v(i.stop)&&(T._queueHooks(f.elem,f.opts.queue).stop=i.stop.bind(i)),i;return T.map(g,ki,f),v(f.opts.start)&&f.opts.start.call(s,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),T.fx.timer(T.extend(p,{elem:s,anim:f,queue:f.opts.queue})),f}T.Animation=T.extend(I,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return bt(i.elem,e,gt.exec(t),i),i}]},tweener:function(e,t){for(var i,n=0,s=(e=v(e)?(t=e,["*"]):e.match(A)).length;n<s;n++)i=e[n],I.tweeners[i]=I.tweeners[i]||[],I.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,s,o,r,a,l,c,d="width"in t||"height"in t,h=this,u={},p=e.style,f=e.nodeType&&ft(e),g=_.get(e,"fxshow");for(n in i.queue||(null==(r=T._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,h.always(function(){h.always(function(){r.unqueued--,T.queue(e,"fx").length||r.empty.fire()})})),t)if(s=t[n],_i.test(s)){if(delete t[n],o=o||"toggle"===s,s===(f?"hide":"show")){if("show"!==s||!g||void 0===g[n])continue;f=!0}u[n]=g&&g[n]||T.style(e,n)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(u))for(n in d&&1===e.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=_.get(e,"display")),"none"===(d=T.css(e,"display"))&&(c?d=c:(kt([e],!0),c=e.style.display||c,d=T.css(e,"display"),kt([e]))),"inline"===d||"inline-block"===d&&null!=c)&&"none"===T.css(e,"float")&&(l||(h.done(function(){p.display=c}),null==c&&(d=p.display,c="none"===d?"":d)),p.display="inline-block"),i.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]})),l=!1,u)l||(g?"hidden"in g&&(f=g.hidden):g=_.access(e,"fxshow",{display:c}),o&&(g.hidden=!f),f&&kt([e],!0),h.done(function(){for(n in f||kt([e]),_.remove(e,"fxshow"),u)T.style(e,n,u[n])})),l=ki(f?g[n]:0,n,h),n in g||(g[n]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?I.prefilters.unshift(e):I.prefilters.push(e)}}),T.speed=function(e,t,i){var n=e&&"object"==typeof e?T.extend({},e):{complete:i||!i&&t||v(e)&&e,duration:e,easing:i&&t||t&&!v(t)&&t};return T.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in T.fx.speeds?n.duration=T.fx.speeds[n.duration]:n.duration=T.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){v(n.old)&&n.old.call(this),n.queue&&T.dequeue(this,n.queue)},n},T.fn.extend({fadeTo:function(e,t,i,n){return this.filter(ft).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(t,e,i,n){function s(){var e=I(this,T.extend({},t),r);(o||_.get(this,"finish"))&&e.stop(!0)}var o=T.isEmptyObject(t),r=T.speed(e,i,n);return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(s,e,o){function r(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof s&&(o=e,e=s,s=void 0),e&&this.queue(s||"fx",[]),this.each(function(){var e=!0,t=null!=s&&s+"queueHooks",i=T.timers,n=_.get(this);if(t)n[t]&&n[t].stop&&r(n[t]);else for(t in n)n[t]&&n[t].stop&&vi.test(t)&&r(n[t]);for(t=i.length;t--;)i[t].elem!==this||null!=s&&i[t].queue!==s||(i[t].anim.stop(o),e=!1,i.splice(t,1));!e&&o||T.dequeue(this,s)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var e,t=_.get(this),i=t[r+"queue"],n=t[r+"queueHooks"],s=T.timers,o=i?i.length:0;for(t.finish=!0,T.queue(this,r,[]),n&&n.stop&&n.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===r&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete t.finish})}}),T.each(["toggle","show","hide"],function(e,n){var s=T.fn[n];T.fn[n]=function(e,t,i){return null==e||"boolean"==typeof e?s.apply(this,arguments):this.animate(wi(n,!0),e,t,i)}}),T.each({slideDown:wi("show"),slideUp:wi("hide"),slideToggle:wi("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){T.fn[e]=function(e,t,i){return this.animate(n,e,t,i)}}),T.timers=[],T.fx.tick=function(){var e,t=0,i=T.timers;for(gi=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||T.fx.stop(),gi=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){mi||(mi=!0,yi())},T.fx.stop=function(){mi=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(n,e){return n=T.fx&&T.fx.speeds[n]||n,this.queue(e=e||"fx",function(e,t){var i=k.setTimeout(e,n);t.stop=function(){k.clearTimeout(i)}})},r=x.createElement("input"),o=x.createElement("select").appendChild(x.createElement("option")),r.type="checkbox",g.checkOn=""!==r.value,g.optSelected=o.selected,(r=x.createElement("input")).value="t",r.type="radio",g.radioValue="t"===r.value;var xi,Ti=T.expr.attrHandle,$i=(T.fn.extend({attr:function(e,t){return d(this,T.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){T.removeAttr(this,e)})}}),T.extend({attr:function(e,t,i){var n,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,i):(1===o&&T.isXMLDoc(e)||(s=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?xi:void 0)),void 0!==i?null===i?void T.removeAttr(e,t):s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:(e.setAttribute(t,i+""),i):!(s&&"get"in s&&null!==(n=s.get(e,t)))&&null==(n=T.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){var i;if(!g.radioValue&&"radio"===t&&y(e,"input"))return i=e.value,e.setAttribute("type",t),i&&(e.value=i),t}}},removeAttr:function(e,t){var i,n=0,s=t&&t.match(A);if(s&&1===e.nodeType)for(;i=s[n++];)e.removeAttribute(i)}}),xi={set:function(e,t,i){return!1===t?T.removeAttr(e,i):e.setAttribute(i,i),i}},T.each(T.expr.match.bool.source.match(/\w+/g),function(e,t){var r=Ti[t]||T.find.attr;Ti[t]=function(e,t,i){var n,s,o=t.toLowerCase();return i||(s=Ti[o],Ti[o]=n,n=null!=r(e,t,i)?o:null,Ti[o]=s),n}}),/^(?:input|select|textarea|button)$/i),Ci=/^(?:a|area)$/i;function Si(e){return(e.match(A)||[]).join(" ")}function ji(e){return e.getAttribute&&e.getAttribute("class")||""}function Ei(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(A)||[]}T.fn.extend({prop:function(e,t){return d(this,T.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[T.propFix[e]||e]})}}),T.extend({prop:function(e,t,i){var n,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,s=T.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):$i.test(e.nodeName)||Ci.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode)&&e.parentNode.selectedIndex}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(t){var e,i,n,s,o,r;return v(t)?this.each(function(e){T(this).addClass(t.call(this,e,ji(this)))}):(e=Ei(t)).length?this.each(function(){if(n=ji(this),i=1===this.nodeType&&" "+Si(n)+" "){for(o=0;o<e.length;o++)s=e[o],i.indexOf(" "+s+" ")<0&&(i+=s+" ");r=Si(i),n!==r&&this.setAttribute("class",r)}}):this},removeClass:function(t){var e,i,n,s,o,r;return v(t)?this.each(function(e){T(this).removeClass(t.call(this,e,ji(this)))}):arguments.length?(e=Ei(t)).length?this.each(function(){if(n=ji(this),i=1===this.nodeType&&" "+Si(n)+" "){for(o=0;o<e.length;o++)for(s=e[o];-1<i.indexOf(" "+s+" ");)i=i.replace(" "+s+" "," ");r=Si(i),n!==r&&this.setAttribute("class",r)}}):this:this.attr("class","")},toggleClass:function(t,i){var e,n,s,o,r=typeof t,a="string"==r||Array.isArray(t);return v(t)?this.each(function(e){T(this).toggleClass(t.call(this,e,ji(this),i),i)}):"boolean"==typeof i&&a?i?this.addClass(t):this.removeClass(t):(e=Ei(t),this.each(function(){if(a)for(o=T(this),s=0;s<e.length;s++)n=e[s],o.hasClass(n)?o.removeClass(n):o.addClass(n);else void 0!==t&&"boolean"!=r||((n=ji(this))&&_.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",!n&&!1!==t&&_.get(this,"__className__")||""))}))},hasClass:function(e){for(var t,i=0,n=" "+e+" ";t=this[i++];)if(1===t.nodeType&&-1<(" "+Si(ji(t))+" ").indexOf(n))return!0;return!1}});function Pi(e){e.stopPropagation()}var Ai=/\r/g,Oi=(T.fn.extend({val:function(t){var i,e,n,s=this[0];return arguments.length?(n=v(t),this.each(function(e){1===this.nodeType&&(null==(e=n?t.call(this,e,T(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=T.map(e,function(e){return null==e?"":e+""})),(i=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value")||(this.value=e))})):s?(i=T.valHooks[s.type]||T.valHooks[s.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(s,"value"))?e:"string"==typeof(e=s.value)?e.replace(Ai,""):null==e?"":e:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Si(T.text(e))}},select:{get:function(e){for(var t,i=e.options,n=e.selectedIndex,s="select-one"===e.type,o=s?null:[],r=s?n+1:i.length,a=n<0?r:s?n:0;a<r;a++)if(((t=i[a]).selected||a===n)&&!t.disabled&&(!t.parentNode.disabled||!y(t.parentNode,"optgroup"))){if(t=T(t).val(),s)return t;o.push(t)}return o},set:function(e,t){for(var i,n,s=e.options,o=T.makeArray(t),r=s.length;r--;)((n=s[r]).selected=-1<T.inArray(T.valHooks.option.get(n),o))&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<T.inArray(T(e).val(),t)}},g.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),k.location),Li={guid:Date.now()},Di=/\?/,Ii=(T.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new k.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||T.error("Invalid XML: "+(i?T.map(i.childNodes,function(e){return e.textContent}).join("\n"):e)),t},/^(?:focusinfocus|focusoutblur)$/),Ni=(T.extend(T.event,{trigger:function(e,t,i,n){var s,o,r,a,l,c,d,h=[i||x],u=z.call(e,"type")?e.type:e,p=z.call(e,"namespace")?e.namespace.split("."):[],f=d=o=i=i||x;if(3!==i.nodeType&&8!==i.nodeType&&!Ii.test(u+T.event.triggered)&&(-1<u.indexOf(".")&&(u=(p=u.split(".")).shift(),p.sort()),a=u.indexOf(":")<0&&"on"+u,(e=e[T.expando]?e:new T.Event(u,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:T.makeArray(t,[e]),c=T.event.special[u]||{},n||!c.trigger||!1!==c.trigger.apply(i,t))){if(!n&&!c.noBubble&&!M(i)){for(r=c.delegateType||u,Ii.test(r+u)||(f=f.parentNode);f;f=f.parentNode)h.push(f),o=f;o===(i.ownerDocument||x)&&h.push(o.defaultView||o.parentWindow||k)}for(s=0;(f=h[s++])&&!e.isPropagationStopped();)d=f,e.type=1<s?r:c.bindType||u,(l=(_.get(f,"events")||Object.create(null))[e.type]&&_.get(f,"handle"))&&l.apply(f,t),(l=a&&f[a])&&l.apply&&ct(f)&&(e.result=l.apply(f,t),!1===e.result)&&e.preventDefault();return e.type=u,n||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),t)||!ct(i)||a&&v(i[u])&&!M(i)&&((o=i[a])&&(i[a]=null),T.event.triggered=u,e.isPropagationStopped()&&d.addEventListener(u,Pi),i[u](),e.isPropagationStopped()&&d.removeEventListener(u,Pi),T.event.triggered=void 0,o)&&(i[a]=o),e.result}},simulate:function(e,t,i){i=T.extend(new T.Event,i,{type:e,isSimulated:!0});T.event.trigger(i,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each(function(){T.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return T.event.trigger(e,t,i,!0)}}),/\[\]$/),Mi=/\r?\n/g,qi=/^(?:submit|button|image|reset|file)$/i,Hi=/^(?:input|select|textarea|keygen)/i;T.param=function(e,t){function i(e,t){t=v(t)?t():t,s[s.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var n,s=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,function(){i(this.name,this.value)});else for(n in e)!function i(n,e,s,o){if(Array.isArray(e))T.each(e,function(e,t){s||Ni.test(n)?o(n,t):i(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,s,o)});else if(s||"object"!==Y(e))o(n,e);else for(var t in e)i(n+"["+t+"]",e[t],s,o)}(n,e[n],t,i);return s.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Hi.test(this.nodeName)&&!qi.test(e)&&(this.checked||!xt.test(e))}).map(function(e,t){var i=T(this).val();return null==i?null:Array.isArray(i)?T.map(i,function(e){return{name:t.name,value:e.replace(Mi,"\r\n")}}):{name:t.name,value:i.replace(Mi,"\r\n")}}).get()}});var Ri=/%20/g,Fi=/#.*$/,Wi=/([?&])_=[^&]*/,zi=/^(.*?):[ \t]*([^\r\n]*)$/gm,Bi=/^(?:GET|HEAD)$/,Vi=/^\/\//,Ui={},Xi={},Yi="*/".concat("*"),Ki=x.createElement("a");function Qi(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var i,n=0,s=e.toLowerCase().match(A)||[];if(v(t))for(;i=s[n++];)"+"===i[0]?(i=i.slice(1)||"*",(o[i]=o[i]||[]).unshift(t)):(o[i]=o[i]||[]).push(t)}}function Gi(t,n,s,o){var r={},a=t===Xi;function l(e){var i;return r[e]=!0,T.each(t[e]||[],function(e,t){t=t(n,s,o);return"string"!=typeof t||a||r[t]?a?!(i=t):void 0:(n.dataTypes.unshift(t),l(t),!1)}),i}return l(n.dataTypes[0])||!r["*"]&&l("*")}function Ji(e,t){var i,n,s=T.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((s[i]?e:n=n||{})[i]=t[i]);return n&&T.extend(!0,e,n),e}Ki.href=Oi.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Oi.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Oi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yi,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ji(Ji(e,T.ajaxSettings),t):Ji(T.ajaxSettings,e)},ajaxPrefilter:Qi(Ui),ajaxTransport:Qi(Xi),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var l,c,d,i,h,u,p,n,s,f=T.ajaxSetup({},t=t||{}),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?T(g):T.event,_=T.Deferred(),v=T.Callbacks("once memory"),y=f.statusCode||{},o={},r={},a="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(u){if(!i)for(i={};t=zi.exec(d);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?d:null},setRequestHeader:function(e,t){return null==u&&(e=r[e.toLowerCase()]=r[e.toLowerCase()]||e,o[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){if(e)if(u)b.always(e[b.status]);else for(var t in e)y[t]=[y[t],e[t]];return this},abort:function(e){e=e||a;return l&&l.abort(e),w(0,e),this}};if(_.promise(b),f.url=((e||f.url||Oi.href)+"").replace(Vi,Oi.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(A)||[""],null==f.crossDomain){s=x.createElement("a");try{s.href=f.url,s.href=s.href,f.crossDomain=Ki.protocol+"//"+Ki.host!=s.protocol+"//"+s.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=T.param(f.data,f.traditional)),Gi(Ui,f,t,b),!u){for(n in(p=T.event&&f.global)&&0==T.active++&&T.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Bi.test(f.type),c=f.url.replace(Fi,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ri,"+")):(s=f.url.slice(c.length),f.data&&(f.processData||"string"==typeof f.data)&&(c+=(Di.test(c)?"&":"?")+f.data,delete f.data),!1===f.cache&&(c=c.replace(Wi,"$1"),s=(Di.test(c)?"&":"?")+"_="+Li.guid+++s),f.url=c+s),f.ifModified&&(T.lastModified[c]&&b.setRequestHeader("If-Modified-Since",T.lastModified[c]),T.etag[c])&&b.setRequestHeader("If-None-Match",T.etag[c]),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&b.setRequestHeader("Content-Type",f.contentType),b.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Yi+"; q=0.01":""):f.accepts["*"]),f.headers)b.setRequestHeader(n,f.headers[n]);if(f.beforeSend&&(!1===f.beforeSend.call(g,b,f)||u))return b.abort();if(a="abort",v.add(f.complete),b.done(f.success),b.fail(f.error),l=Gi(Xi,f,t,b)){if(b.readyState=1,p&&m.trigger("ajaxSend",[b,f]),u)return b;f.async&&0<f.timeout&&(h=k.setTimeout(function(){b.abort("timeout")},f.timeout));try{u=!1,l.send(o,w)}catch(e){if(u)throw e;w(-1,e)}}else w(-1,"No Transport")}return b;function w(e,t,i,n){var s,o,r,a=t;u||(u=!0,h&&k.clearTimeout(h),l=void 0,d=n||"",b.readyState=0<e?4:0,n=200<=e&&e<300||304===e,i&&(r=((e,t,i)=>{for(var n,s,o,r,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||e.converters[s+" "+l[0]]){o=s;break}r=r||s}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]})(f,b,i)),!n&&-1<T.inArray("script",f.dataTypes)&&T.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),r=((e,t,i,n)=>{var s,o,r,a,l,c={},d=e.dataTypes.slice();if(d[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(o=d.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=d.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(s in c)if((a=s.split(" "))[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[s]:!0!==c[s]&&(o=a[0],d.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}})(f,r,b,n),n?(f.ifModified&&((i=b.getResponseHeader("Last-Modified"))&&(T.lastModified[c]=i),i=b.getResponseHeader("etag"))&&(T.etag[c]=i),204===e||"HEAD"===f.type?a="nocontent":304===e?a="notmodified":(a=r.state,s=r.data,n=!(o=r.error))):(o=a,!e&&a||(a="error",e<0&&(e=0))),b.status=e,b.statusText=(t||a)+"",n?_.resolveWith(g,[s,a,b]):_.rejectWith(g,[b,a,o]),b.statusCode(y),y=void 0,p&&m.trigger(n?"ajaxSuccess":"ajaxError",[b,f,n?s:o]),v.fireWith(g,[b,a]),p&&(m.trigger("ajaxComplete",[b,f]),--T.active||T.event.trigger("ajaxStop")))}},getJSON:function(e,t,i){return T.get(e,t,i,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],function(e,s){T[s]=function(e,t,i,n){return v(t)&&(n=n||i,i=t,t=void 0),T.ajax(T.extend({url:e,type:s,dataType:n,data:t,success:i},T.isPlainObject(e)&&e))}}),T.ajaxPrefilter(function(e){for(var t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),T._evalUrl=function(e,t,i){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,i)}})},T.fn.extend({wrapAll:function(e){return this[0]&&(v(e)&&(e=e.call(this[0])),e=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(i){return v(i)?this.each(function(e){T(this).wrapInner(i.call(this,e))}):this.each(function(){var e=T(this),t=e.contents();t.length?t.wrapAll(i):e.append(i)})},wrap:function(t){var i=v(t);return this.each(function(e){T(this).wrapAll(i?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(e){}};var Zi={0:200,1223:204},en=T.ajaxSettings.xhr();g.cors=!!en&&"withCredentials"in en,g.ajax=en=!!en,T.ajaxTransport(function(s){var o,r;if(g.cors||en&&!s.crossDomain)return{send:function(e,t){var i,n=s.xhr();if(n.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(i in s.xhrFields)n[i]=s.xhrFields[i];for(i in s.mimeType&&n.overrideMimeType&&n.overrideMimeType(s.mimeType),s.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)n.setRequestHeader(i,e[i]);o=function(e){return function(){o&&(o=r=n.onload=n.onerror=n.onabort=n.ontimeout=n.onreadystatechange=null,"abort"===e?n.abort():"error"===e?"number"!=typeof n.status?t(0,"error"):t(n.status,n.statusText):t(Zi[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=o(),r=n.onerror=n.ontimeout=o("error"),void 0!==n.onabort?n.onabort=r:n.onreadystatechange=function(){4===n.readyState&&k.setTimeout(function(){o&&r()})},o=o("abort");try{n.send(s.hasContent&&s.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),T.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),T.ajaxTransport("script",function(i){var n,s;if(i.crossDomain||i.scriptAttrs)return{send:function(e,t){n=T("<script>").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(e){n.remove(),s=null,e&&t("error"===e.type?404:200,e.type)}),x.head.appendChild(n[0])},abort:function(){s&&s()}}});var tn=[],nn=/(=)\?(?=&|$)|\?\?/,sn=(T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||T.expando+"_"+Li.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,i){var n,s,o,r=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(r||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(nn,"$1"+n):!1!==e.jsonp&&(e.url+=(Di.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return o||T.error(n+" was not called"),o[0]},e.dataTypes[0]="json",s=k[n],k[n]=function(){o=arguments},i.always(function(){void 0===s?T(k).removeProp(n):k[n]=s,e[n]&&(e.jsonpCallback=t.jsonpCallback,tn.push(n)),o&&v(s)&&s(o[0]),o=s=void 0}),"script"}),g.createHTMLDocument=((e=x.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),T.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(g.createHTMLDocument?((n=(t=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,t.head.appendChild(n)):t=x),n=!i&&[],(i=Xe.exec(e))?[t.createElement(i[1])]:(i=jt([e],t,n),n&&n.length&&T(n).remove(),T.merge([],i.childNodes)));var n},T.fn.load=function(e,t,i){var n,s,o,r=this,a=e.indexOf(" ");return-1<a&&(n=Si(e.slice(a)),e=e.slice(0,a)),v(t)?(i=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<r.length&&T.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done(function(e){o=arguments,r.html(n?T("<div>").append(T.parseHTML(e)).find(n):e)}).always(i&&function(e,t){r.each(function(){i.apply(this,o||[e.responseText,t,e])})}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(e,t,i){var n,s,o,r,a=T.css(e,"position"),l=T(e),c={};"static"===a&&(e.style.position="relative"),o=l.offset(),n=T.css(e,"top"),r=T.css(e,"left"),a=("absolute"===a||"fixed"===a)&&-1<(n+r).indexOf("auto")?(s=(a=l.position()).top,a.left):(s=parseFloat(n)||0,parseFloat(r)||0),null!=(t=v(t)?t.call(e,i,T.extend({},o)):t).top&&(c.top=t.top-o.top+s),null!=t.left&&(c.left=t.left-o.left+a),"using"in t?t.using.call(e,c):l.css(c)}},T.fn.extend({offset:function(t){var e,i;return arguments.length?void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)}):(i=this[0])?i.getClientRects().length?(e=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],s={top:0,left:0};if("fixed"===T.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((s=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),s.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-T.css(n,"marginTop",!0),left:t.left-s.left-T.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||_t})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,s){var o="pageYOffset"===s;T.fn[t]=function(e){return d(this,function(e,t,i){var n;if(M(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===i)return n?n[s]:e[t];n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):e[t]=i},t,e,arguments.length)}}),T.each(["top","left"],function(e,i){T.cssHooks[i]=ii(g.pixelPosition,function(e,t){if(t)return t=ti(e,i),Jt.test(t)?T(e).position()[i]+"px":t})}),T.each({Height:"height",Width:"width"},function(r,a){T.each({padding:"inner"+r,content:a,"":"outer"+r},function(n,o){T.fn[o]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),s=n||(!0===e||!0===t?"margin":"border");return d(this,function(e,t,i){var n;return M(e)?0===o.indexOf("outer")?e["inner"+r]:e.document.documentElement["client"+r]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+r],n["scroll"+r],e.body["offset"+r],n["offset"+r],n["client"+r])):void 0===i?T.css(e,t,s):T.style(e,t,i,s)},a,i?e:void 0,i)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,i){T.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}}),/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g),on=(T.proxy=function(e,t){var i,n;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=a.call(arguments,2),(n=function(){return e.apply(t||this,i.concat(a.call(arguments)))}).guid=e.guid=e.guid||T.guid++,n},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=y,T.isFunction=v,T.isWindow=M,T.camelCase=O,T.type=Y,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(sn,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return T}),k.jQuery),rn=k.$;return T.noConflict=function(e){return k.$===T&&(k.$=rn),e&&k.jQuery===T&&(k.jQuery=on),T},void 0===N&&(k.jQuery=k.$=T),T}),((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})})(this,function(e){function y(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function m(e){return e instanceof y(e).Element||e instanceof Element}function _(e){return e instanceof y(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof y(e).ShadowRoot||e instanceof ShadowRoot)}var C=Math.max,S=Math.min,b=Math.round;function o(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function h(){return!/^((?!chrome|android).)*safari/i.test(o())}function v(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,o=1,t=(t&&_(e)&&(s=0<e.offsetWidth&&b(n.width)/e.offsetWidth||1,o=0<e.offsetHeight&&b(n.height)/e.offsetHeight||1),(m(e)?y(e):window).visualViewport),e=!h()&&i,i=(n.left+(e&&t?t.offsetLeft:0))/s,e=(n.top+(e&&t?t.offsetTop:0))/o,t=n.width/s,s=n.height/o;return{width:t,height:s,top:e,right:i+t,bottom:e+s,left:i,x:i,y:e}}function w(e){e=y(e);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function k(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((m(e)?e.ownerDocument:e.document)||window.document).documentElement}function T(e){return v(x(e)).left+w(e).scrollLeft}function $(e){return y(e).getComputedStyle(e)}function j(e){var e=$(e),t=e.overflow;return/auto|scroll|overlay|hidden/.test(t+e.overflowY+e.overflowX)}function E(e){var t=v(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function P(e){return"html"===k(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||x(e)}function A(e,t){void 0===t&&(t=[]);var i=function e(t){return 0<=["html","body","#document"].indexOf(k(t))?t.ownerDocument.body:_(t)&&j(t)?t:e(P(t))}(e),e=i===(null==(e=e.ownerDocument)?void 0:e.body),n=y(i),n=e?[n].concat(n.visualViewport||[],j(i)?i:[]):i,i=t.concat(n);return e?i:i.concat(A(P(n)))}function r(e){return _(e)&&"fixed"!==$(e).position?e.offsetParent:null}function O(e){for(var t,i=y(e),n=r(e);n&&(t=n,0<=["table","td","th"].indexOf(k(t)))&&"static"===$(n).position;)n=r(n);return(!n||"html"!==k(n)&&("body"!==k(n)||"static"!==$(n).position))&&(n||(e=>{var t=/firefox/i.test(o());if(!/Trident/i.test(o())||!_(e)||"fixed"!==$(e).position){var i=P(e);for(s(i)&&(i=i.host);_(i)&&["html","body"].indexOf(k(i))<0;){var n=$(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}}return null})(e))||i}var L="top",D="bottom",I="right",N="left",M="auto",q=[L,D,I,N],H="start",R="end",Y="viewport",F="popper",K=q.reduce(function(e,t){return e.concat([t+"-"+H,t+"-"+R])},[]),Q=[].concat(q,[M]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-"+R])},[]),d=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function u(e){var i=new Map,n=new Set,s=[];return e.forEach(function(e){i.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||function t(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){n.has(e)||(e=i.get(e))&&t(e)}),s.push(e)}(e)}),s}function G(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&s(i)){var n=t;do{if(n&&e.isSameNode(n))return!0}while(n=n.parentNode||n.host)}return!1}function W(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function J(e,t,i){return t===Y?W((s=i,r=y(n=e),a=x(n),r=r.visualViewport,l=a.clientWidth,a=a.clientHeight,d=c=0,r&&(l=r.width,a=r.height,(o=h())||!o&&"fixed"===s)&&(c=r.offsetLeft,d=r.offsetTop),{width:l,height:a,x:c+T(n),y:d})):m(t)?((s=v(o=t,!1,"fixed"===i)).top=s.top+o.clientTop,s.left=s.left+o.clientLeft,s.bottom=s.top+o.clientHeight,s.right=s.left+o.clientWidth,s.width=o.clientWidth,s.height=o.clientHeight,s.x=s.left,s.y=s.top,s):W((r=x(e),l=x(r),a=w(r),c=null==(c=r.ownerDocument)?void 0:c.body,n=C(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),d=C(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),r=-a.scrollLeft+T(r),a=-a.scrollTop,"rtl"===$(c||l).direction&&(r+=C(l.clientWidth,c?c.clientWidth:0)-n),{width:n,height:d,x:r,y:a}));var n,s,o,r,a,l,c,d}function z(e){return e.split("-")[0]}function B(e){return e.split("-")[1]}function Z(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function ee(e){var t,i=e.reference,n=e.element,e=e.placement,s=e?z(e):null,e=e?B(e):null,o=i.x+i.width/2-n.width/2,r=i.y+i.height/2-n.height/2;switch(s){case L:t={x:o,y:i.y-n.height};break;case D:t={x:o,y:i.y+i.height};break;case I:t={x:i.x+i.width,y:r};break;case N:t={x:i.x-n.width,y:r};break;default:t={x:i.x,y:i.y}}var a=s?Z(s):null;if(null!=a){var l="y"===a?"height":"width";switch(e){case H:t[a]=t[a]-(i[l]/2-n[l]/2);break;case R:t[a]=t[a]+(i[l]/2-n[l]/2)}}return t}function te(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ie(i,e){return e.reduce(function(e,t){return e[t]=i,e},{})}function V(e,t){var i,n,s,o,r,a,t=t=void 0===t?{}:t,l=t.placement,l=void 0===l?e.placement:l,c=t.strategy,c=void 0===c?e.strategy:c,d=t.boundary,d=void 0===d?"clippingParents":d,h=t.rootBoundary,h=void 0===h?Y:h,u=t.elementContext,u=void 0===u?F:u,p=t.altBoundary,p=void 0!==p&&p,t=t.padding,t=void 0===t?0:t,t=te("number"!=typeof t?t:ie(t,q)),f=e.rects.popper,p=e.elements[p?u===F?"reference":F:u],c=(i=m(p)?p:p.contextElement||x(e.elements.popper),p=h,n=c,o="clippingParents"===(h=d)?(r=A(P(o=i)),m(s=0<=["absolute","fixed"].indexOf($(o).position)&&_(o)?O(o):o)?r.filter(function(e){return m(e)&&G(e,s)&&"body"!==k(e)}):[]):[].concat(h),r=[].concat(o,[p]),h=r[0],(p=r.reduce(function(e,t){t=J(i,t,n);return e.top=C(t.top,e.top),e.right=S(t.right,e.right),e.bottom=S(t.bottom,e.bottom),e.left=C(t.left,e.left),e},J(i,h,n))).width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p),d=v(e.elements.reference),h=ee({reference:d,element:f,strategy:"absolute",placement:l}),p=W(Object.assign({},f,h)),f=u===F?p:d,g={top:c.top-f.top+t.top,bottom:f.bottom-c.bottom+t.bottom,left:c.left-f.left+t.left,right:f.right-c.right+t.right},h=e.modifiersData.offset;return u===F&&h&&(a=h[l],Object.keys(g).forEach(function(e){var t=0<=[I,D].indexOf(e)?1:-1,i=0<=[L,D].indexOf(e)?"y":"x";g[e]+=a[i]*t})),g}var ne={placement:"bottom",modifiers:[],strategy:"absolute"};function se(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function t(e){var e=e=void 0===e?{}:e,t=e.defaultModifiers,l=void 0===t?[]:t,t=e.defaultOptions,c=void 0===t?ne:t;return function(n,s,t){void 0===t&&(t=c);var i,o,p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ne,c),modifiersData:{},elements:{reference:n,popper:s},attributes:{},styles:{}},r=[],f=!1,g={state:p,setOptions:function(e){e="function"==typeof e?e(p.options):e;a(),p.options=Object.assign({},c,p.options,e),p.scrollParents={reference:m(n)?A(n):n.contextElement?A(n.contextElement):[],popper:A(s)};e=[].concat(l,p.options.modifiers),t=e.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{}),i=u(Object.keys(t).map(function(e){return t[e]}));var t,i,e=d.reduce(function(e,t){return e.concat(i.filter(function(e){return e.phase===t}))},[]);return p.orderedModifiers=e.filter(function(e){return e.enabled}),p.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,e=e.effect;"function"==typeof e&&(e=e({state:p,name:t,instance:g,options:void 0===i?{}:i}),r.push(e||function(){}))}),g.update()},forceUpdate:function(){if(!f){var e=p.elements,t=e.reference,e=e.popper;if(se(t,e)){p.rects={reference:(t=t,r=O(e),void 0===(a="fixed"===p.options.strategy)&&(a=!1),l=_(r),c=_(r)&&(h=(c=r).getBoundingClientRect(),d=b(h.width)/c.offsetWidth||1,h=b(h.height)/c.offsetHeight||1,1!==d||1!==h),d=x(r),h=v(t,c,a),t={scrollLeft:0,scrollTop:0},u={x:0,y:0},!l&&a||("body"===k(r)&&!j(d)||(t=(l=r)!==y(l)&&_(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:w(l)),_(r)?((u=v(r,!0)).x+=r.clientLeft,u.y+=r.clientTop):d&&(u.x=T(d))),{x:h.left+t.scrollLeft-u.x,y:h.top+t.scrollTop-u.y,width:h.width,height:h.height}),popper:E(e)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(e){return p.modifiersData[e.name]=Object.assign({},e.data)});for(var i,n,s,o=0;o<p.orderedModifiers.length;o++)!0!==p.reset?(n=(i=p.orderedModifiers[o]).fn,s=i.options,"function"==typeof n&&(p=n({state:p,options:void 0===s?{}:s,name:i.name,instance:g})||p)):(p.reset=!1,o=-1)}}var r,a,l,c,d,h,u},update:(i=function(){return new Promise(function(e){g.forceUpdate(),e(p)})},function(){return o=o||new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(i())})})}),destroy:function(){a(),f=!0}};return se(n,s)&&g.setOptions(t).then(function(e){!f&&t.onFirstUpdate&&t.onFirstUpdate(e)}),g;function a(){r.forEach(function(e){return e()}),r=[]}}}var l={passive:!0},i={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,e=e.options,n=e.scroll,s=void 0===n||n,n=e.resize,o=void 0===n||n,r=y(t.elements.popper),a=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&a.forEach(function(e){e.addEventListener("scroll",i.update,l)}),o&&r.addEventListener("resize",i.update,l),function(){s&&a.forEach(function(e){e.removeEventListener("scroll",i.update,l)}),o&&r.removeEventListener("resize",i.update,l)}},data:{}},n={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=ee({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},oe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function a(e){var t=e.popper,i=e.popperRect,n=e.placement,s=e.variation,o=e.offsets,r=e.position,a=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,e=e.isFixed,d=o.x,d=void 0===d?0:d,h=o.y,h=void 0===h?0:h,u="function"==typeof c?c({x:d,y:h}):{x:d,y:h},d=u.x,h=u.y,u=o.hasOwnProperty("x"),o=o.hasOwnProperty("y"),p=N,f=L,g=window;l&&(_="clientHeight",m="clientWidth",(v=O(t))===y(t)&&"static"!==$(v=x(t)).position&&"absolute"===r&&(_="scrollHeight",m="scrollWidth"),n!==L&&(n!==N&&n!==I||s!==R)||(f=D,h=(h-((e&&v===g&&g.visualViewport?g.visualViewport.height:v[_])-i.height))*(a?1:-1)),n!==N&&(n!==L&&n!==D||s!==R)||(p=I,d=(d-((e&&v===g&&g.visualViewport?g.visualViewport.width:v[m])-i.width))*(a?1:-1)));var m,_=Object.assign({position:r},l&&oe),v=!0===c?(n={x:d,y:h},s=y(t),e=n.y,s=s.devicePixelRatio||1,{x:b(n.x*s)/s||0,y:b(e*s)/s||0}):{x:d,y:h};return d=v.x,h=v.y,a?Object.assign({},_,((m={})[f]=o?"0":"",m[p]=u?"0":"",m.transform=(g.devicePixelRatio||1)<=1?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",m)):Object.assign({},_,((i={})[f]=o?h+"px":"",i[p]=u?d+"px":"",i.transform="",i))}var c={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,e=e.options,i=e.gpuAcceleration,i=void 0===i||i,n=e.adaptive,n=void 0===n||n,e=e.roundOffsets,e=void 0===e||e,i={placement:z(t.placement),variation:B(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,a(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:e})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,a(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:e})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},p={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var s=e.state;Object.keys(s.elements).forEach(function(e){var t=s.styles[e]||{},i=s.attributes[e]||{},n=s.elements[e];_(n)&&k(n)&&(Object.assign(n.style,t),Object.keys(i).forEach(function(e){var t=i[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var n=e.state,s={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,s.popper),n.styles=s,n.elements.arrow&&Object.assign(n.elements.arrow.style,s.arrow),function(){Object.keys(n.elements).forEach(function(e){var t=n.elements[e],i=n.attributes[e]||{},e=Object.keys((n.styles.hasOwnProperty(e)?n.styles:s)[e]).reduce(function(e,t){return e[t]="",e},{});_(t)&&k(t)&&(Object.assign(t.style,e),Object.keys(i).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]},f={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var r=e.state,t=e.name,e=e.options.offset,a=void 0===e?[0,0]:e,e=Q.reduce(function(e,t){return e[t]=(t=t,i=r.rects,n=a,s=z(t),o=0<=[N,L].indexOf(s)?-1:1,i="function"==typeof n?n(Object.assign({},i,{placement:t})):n,t=i[0]||0,n=(i[1]||0)*o,0<=[N,I].indexOf(s)?{x:n,y:t}:{x:t,y:n}),e;var i,n,s,o},{}),i=e[r.placement],n=i.x,i=i.y;null!=r.modifiersData.popperOffsets&&(r.modifiersData.popperOffsets.x+=n,r.modifiersData.popperOffsets.y+=i),r.modifiersData[t]=e}},g={left:"right",right:"left",bottom:"top",top:"bottom"};function U(e){return e.replace(/left|right|bottom|top/g,function(e){return g[e]})}var re={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,function(e){return re[e]})}var le={name:"flip",enabled:!0,phase:"main",fn:function(e){var h=e.state,t=e.options,e=e.name;if(!h.modifiersData[e]._skip){for(var i=t.mainAxis,n=void 0===i||i,i=t.altAxis,s=void 0===i||i,i=t.fallbackPlacements,u=t.padding,p=t.boundary,f=t.rootBoundary,o=t.altBoundary,r=t.flipVariations,g=void 0===r||r,m=t.allowedAutoPlacements,r=h.options.placement,t=z(r),i=i||(t!==r&&g?z(i=r)===M?[]:(t=U(i),[ae(i),t,ae(t)]):[U(r)]),a=[r].concat(i).reduce(function(e,t){return e.concat(z(t)===M?(i=h,n=(e=e=void 0===(e={placement:t,boundary:p,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:m})?{}:e).placement,s=e.boundary,o=e.rootBoundary,r=e.padding,a=e.flipVariations,l=void 0===(e=e.allowedAutoPlacements)?Q:e,c=B(n),e=c?a?K:K.filter(function(e){return B(e)===c}):q,d=(n=0===(n=e.filter(function(e){return 0<=l.indexOf(e)})).length?e:n).reduce(function(e,t){return e[t]=V(i,{placement:t,boundary:s,rootBoundary:o,padding:r})[z(t)],e},{}),Object.keys(d).sort(function(e,t){return d[e]-d[t]})):t);var i,n,s,o,r,a,l,c,d},[]),l=h.rects.reference,c=h.rects.popper,d=new Map,_=!0,v=a[0],y=0;y<a.length;y++){var b=a[y],w=z(b),k=B(b)===H,x=0<=[L,D].indexOf(w),T=x?"width":"height",$=V(h,{placement:b,boundary:p,rootBoundary:f,altBoundary:o,padding:u}),x=x?k?I:N:k?D:L,k=(l[T]>c[T]&&(x=U(x)),U(x)),T=[];if(n&&T.push($[w]<=0),s&&T.push($[x]<=0,$[k]<=0),T.every(function(e){return e})){v=b,_=!1;break}d.set(b,T)}if(_)for(var C=g?3:1;0<C&&"break"!==(t=>{var e=a.find(function(e){e=d.get(e);if(e)return e.slice(0,t).every(function(e){return e})});if(e)return v=e,"break"})(C);C--);h.placement!==v&&(h.modifiersData[e]._skip=!0,h.placement=v,h.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function X(e,t,i){return C(e,S(t,i))}var ce={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,i,n,s,o,r,a,l,c,d=e.state,h=e.options,e=e.name,u=h.mainAxis,u=void 0===u||u,p=h.altAxis,p=void 0!==p&&p,f=h.tether,f=void 0===f||f,g=h.tetherOffset,g=void 0===g?0:g,h=V(d,{boundary:h.boundary,rootBoundary:h.rootBoundary,padding:h.padding,altBoundary:h.altBoundary}),m=z(d.placement),_=B(d.placement),v=!_,y=Z(m),b="x"===y?"y":"x",w=d.modifiersData.popperOffsets,k=d.rects.reference,x=d.rects.popper,g="function"==typeof g?g(Object.assign({},d.rects,{placement:d.placement})):g,g="number"==typeof g?{mainAxis:g,altAxis:g}:Object.assign({mainAxis:0,altAxis:0},g),T=d.modifiersData.offset?d.modifiersData.offset[d.placement]:null,$={x:0,y:0};w&&(u&&(u="y"===y?"height":"width",r=(a=w[y])+h[i="y"===y?L:N],l=a-h[c="y"===y?D:I],t=f?-x[u]/2:0,s=(_===H?k:x)[u],_=_===H?-x[u]:-k[u],o=d.elements.arrow,o=f&&o?E(o):{width:0,height:0},i=(n=d.modifiersData["arrow#persistent"]?d.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0})[i],n=n[c],c=X(0,k[u],o[u]),o=v?k[u]/2-t-c-i-g.mainAxis:s-c-i-g.mainAxis,s=v?-k[u]/2+t+c+n+g.mainAxis:_+c+n+g.mainAxis,v=(i=d.elements.arrow&&O(d.elements.arrow))?"y"===y?i.clientTop||0:i.clientLeft||0:0,_=a+s-(t=null!=(u=null==T?void 0:T[y])?u:0),c=X(f?S(r,a+o-t-v):r,a,f?C(l,_):l),w[y]=c,$[y]=c-a),p&&(n="y"==b?"height":"width",s=(i=w[b])+h["x"===y?L:N],u=i-h["x"===y?D:I],o=-1!==[L,N].indexOf(m),v=null!=(t=null==T?void 0:T[b])?t:0,r=o?s:i-k[n]-x[n]-v+g.altAxis,_=o?i+k[n]+x[n]-v-g.altAxis:u,a=f&&o?(c=X(r,i,l=_),l<c?l:c):X(f?r:s,i,f?_:u),w[b]=a,$[b]=a-i),d.modifiersData[e]=$)},requiresIfExists:["offset"]},de={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n,s,o=e.state,r=e.name,e=e.options,a=o.elements.arrow,l=o.modifiersData.popperOffsets,c=z(o.placement),d=Z(c),c=0<=[N,I].indexOf(c)?"height":"width";a&&l&&(e=te("number"!=typeof(e="function"==typeof(e=e.padding)?e(Object.assign({},o.rects,{placement:o.placement})):e)?e:ie(e,q)),t=E(a),s="y"===d?L:N,n="y"===d?D:I,i=o.rects.reference[c]+o.rects.reference[d]-l[d]-o.rects.popper[c],l=l[d]-o.rects.reference[d],a=(a=O(a))?"y"===d?a.clientHeight||0:a.clientWidth||0:0,s=e[s],e=a-t[c]-e[n],s=X(s,n=a/2-t[c]/2+(i/2-l/2),e),o.modifiersData[r]=((a={})[d]=s,a.centerOffset=s-n,a))},effect:function(e){var t=e.state,e=e.options.element,e=void 0===e?"[data-popper-arrow]":e;null!=e&&("string"!=typeof e||(e=t.elements.popper.querySelector(e)))&&G(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function he(e,t,i){return{top:e.top-t.height-(i=void 0===i?{x:0,y:0}:i).y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ue(t){return[L,I,D,N].some(function(e){return 0<=t[e]})}var pe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,e=e.name,i=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,o=V(t,{elementContext:"reference"}),r=V(t,{altBoundary:!0}),o=he(o,i),i=he(r,n,s),r=ue(o),n=ue(i);t.modifiersData[e]={referenceClippingOffsets:o,popperEscapeOffsets:i,isReferenceHidden:r,hasPopperEscaped:n},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":r,"data-popper-escaped":n})}},fe=t({defaultModifiers:[i,n,c,p]}),ge=[i,n,c,p,f,le,ce,de,pe],me=t({defaultModifiers:ge});e.applyStyles=p,e.arrow=de,e.computeStyles=c,e.createPopper=me,e.createPopperLite=fe,e.defaultModifiers=ge,e.detectOverflow=V,e.eventListeners=i,e.flip=le,e.hide=pe,e.offset=f,e.popperGenerator=t,e.popperOffsets=n,e.preventOverflow=ce,Object.defineProperty(e,"__esModule",{value:!0})}),((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t(e.Popper)})(this,function(N){let i=(t=>{var i,n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(let e in t)"default"!==e&&(i=Object.getOwnPropertyDescriptor(t,e),Object.defineProperty(n,e,i.get?i:{enumerable:!0,get:()=>t[e]}));return n.default=t,Object.freeze(n)})(N),n=new Map,M={set(e,t,i){n.has(e)||n.set(e,new Map);e=n.get(e);e.has(t)||0===e.size?e.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(e.keys())[0]}.`)},get:(e,t)=>n.has(e)&&n.get(e).get(t)||null,remove(e,t){var i;n.has(e)&&((i=n.get(e)).delete(t),0===i.size)&&n.delete(e)}},q="transitionend",H=e=>e=e&&window.CSS&&window.CSS.escape?e.replace(/#([^\s"#']+)/g,(e,t)=>"#"+CSS.escape(t)):e,R=e=>{e.dispatchEvent(new Event(q))},r=e=>!(!e||"object"!=typeof e)&&void 0!==(e=void 0!==e.jquery?e[0]:e).nodeType,s=e=>r(e)?e.jquery?e[0]:e:"string"==typeof e&&0<e.length?document.querySelector(H(e)):null,o=t=>{if(!r(t)||0===t.getClientRects().length)return!1;let e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(i&&i!==t){let e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},a=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),F=e=>{var t;return document.documentElement.attachShadow?"function"==typeof e.getRootNode?(t=e.getRootNode())instanceof ShadowRoot?t:null:e instanceof ShadowRoot?e:e.parentNode?F(e.parentNode):null:null},l=()=>{},c=e=>{e.offsetHeight},W=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,z=[],d=()=>"rtl"===document.documentElement.dir,e=n=>{var e=()=>{let i=W();if(i){let e=n.NAME,t=i.fn[e];i.fn[e]=n.jQueryInterface,i.fn[e].Constructor=n,i.fn[e].noConflict=()=>(i.fn[e]=t,n.jQueryInterface)}};"loading"===document.readyState?(z.length||document.addEventListener("DOMContentLoaded",()=>{for(var e of z)e()}),z.push(e)):e()},h=(e,t=[],i=e)=>"function"==typeof e?e(...t):i,B=(n,s,e=!0)=>{if(e){e=(()=>{if(!s)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(s);var i=Number.parseFloat(e),n=Number.parseFloat(t);return i||n?(e=e.split(",")[0],t=t.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(t))):0})()+5;let t=!1,i=({target:e})=>{e===s&&(t=!0,s.removeEventListener(q,i),h(n))};s.addEventListener(q,i),setTimeout(()=>{t||R(s)},e)}else h(n)},V=(e,t,i,n)=>{var s=e.length;let o=e.indexOf(t);return-1===o?!i&&n?e[s-1]:e[0]:(o+=i?1:-1,n&&(o=(o+s)%s),e[Math.max(0,Math.min(o,s-1))])},U=/[^.]*(?=\..*)\.|.*/,X=/\..*/,Y=/::\d+$/,K={},Q=1,G={mouseenter:"mouseover",mouseleave:"mouseout"},J=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Z(e,t){return t&&t+"::"+Q++||e.uidEvent||Q++}function ee(e){var t=Z(e);return e.uidEvent=t,K[t]=K[t]||{},K[t]}function te(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function ie(e,t,i){var n="string"==typeof t,t=!n&&t||i;let s=oe(e);return[n,t,s=J.has(s)?s:e]}function ne(n,s,o,r,a){if("string"==typeof s&&n){let[e,t,i]=ie(s,o,r);if(s in G){let e=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};t=e(t)}var r=ee(n),r=r[i]||(r[i]={}),l=te(r,t,e?o:null);if(l)return l.oneOff=l.oneOff&&a;var c,d,h,u,p,l=Z(t,s.replace(U,"")),s=e?(h=n,u=o,p=t,function t(i){var n=h.querySelectorAll(u);for(let e=i.target;e&&e!==this;e=e.parentNode)for(var s of n)if(s===e)return re(i,{delegateTarget:e}),t.oneOff&&f.off(h,i.type,u,p),p.apply(e,[i])}):(c=n,d=t,function e(t){return re(t,{delegateTarget:c}),e.oneOff&&f.off(c,t.type,d),d.apply(c,[t])});s.delegationSelector=e?o:null,s.callable=t,s.oneOff=a,r[s.uidEvent=l]=s,n.addEventListener(i,s,e)}}function se(e,t,i,n,s){n=te(t[i],n,s);n&&(e.removeEventListener(i,n,Boolean(s)),delete t[i][n.uidEvent])}function oe(e){return e=e.replace(X,""),G[e]||e}let f={on(e,t,i,n){ne(e,t,i,n,!1)},one(e,t,i,n){ne(e,t,i,n,!0)},off(a,l,c,d){if("string"==typeof l&&a){let[e,t,n]=ie(l,c,d),s=n!==l,o=ee(a),r=o[n]||{},i=l.startsWith(".");if(void 0===t){if(i)for(let e of Object.keys(o)){h=void 0;u=void 0;p=void 0;f=void 0;_=void 0;g=void 0;m=void 0;var h=a;var u=o;var p=e;var f=l.slice(1);var g,m,_=u[p]||{};for([g,m]of Object.entries(_))g.includes(f)&&se(h,u,p,m.callable,m.delegationSelector)}for(let[t,i]of Object.entries(r)){let e=t.replace(Y,"");s&&!l.includes(e)||se(a,o,n,i.callable,i.delegationSelector)}}else Object.keys(r).length&&se(a,o,n,t,e?c:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;var n=W();let s=null,o=!0,r=!0,a=!1;t!==oe(t)&&n&&(s=n.Event(t,i),n(e).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());n=re(new Event(t,{bubbles:o,cancelable:!0}),i);return a&&n.preventDefault(),r&&e.dispatchEvent(n),n.defaultPrevented&&s&&s.preventDefault(),n}};function re(i,n={}){for(let[e,t]of Object.entries(n))try{i[e]=t}catch(n){Object.defineProperty(i,e,{configurable:!0,get:()=>t})}return i}function ae(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function le(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}let u={setDataAttribute(e,t,i){e.setAttribute("data-bs-"+le(t),i)},removeDataAttribute(e,t){e.removeAttribute("data-bs-"+le(t))},getDataAttributes(t){if(!t)return{};var i,n={};for(i of Object.keys(t.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"))){let e=i.replace(/^bs/,"");n[e=e.charAt(0).toLowerCase()+e.slice(1,e.length)]=ae(t.dataset[i])}return n},getDataAttribute:(e,t)=>ae(e.getAttribute("data-bs-"+le(t)))};class t{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){var i=r(t)?u.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...r(t)?u.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(i,e=this.constructor.DefaultType){for(var[n,s]of Object.entries(e)){let e=i[n],t=r(e)?"element":null==(o=e)?""+o:Object.prototype.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(t))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${t}" but expected type "${s}".`)}var o}}class p extends t{constructor(e,t){super(),(e=s(e))&&(this._element=e,this._config=this._getConfig(t),M.set(this._element,this.constructor.DATA_KEY,this))}dispose(){M.remove(this._element,this.constructor.DATA_KEY),f.off(this._element,this.constructor.EVENT_KEY);for(var e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){B(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return M.get(s(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}static eventName(e){return""+e+this.EVENT_KEY}}let ce=t=>{let i=t.getAttribute("data-bs-target");if(!i||"#"===i){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e="#"+e.split("#")[1]),i=e&&"#"!==e?e.trim():null}return i?i.split(",").map(e=>H(e)).join(","):null},g={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){var i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>e+':not([tabindex^="-"])').join(",");return this.find(t,e).filter(e=>!a(e)&&o(e))},getSelectorFromElement(e){e=ce(e);return e&&g.findOne(e)?e:null},getElementFromSelector(e){e=ce(e);return e?g.findOne(e):null},getMultipleElementsFromSelector(e){e=ce(e);return e?g.find(e):[]}},m=(t,i="hide")=>{let e="click.dismiss"+t.EVENT_KEY,n=t.NAME;f.on(document,e,`[data-bs-dismiss="${n}"]`,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||(e=g.getElementFromSelector(this)||this.closest("."+n),t.getOrCreateInstance(e)[i]())})};class _ extends p{static get NAME(){return"alert"}close(){var e;f.trigger(this._element,"close.bs.alert").defaultPrevented||(this._element.classList.remove("show"),e=this._element.classList.contains("fade"),this._queueCallback(()=>this._destroyElement(),this._element,e))}_destroyElement(){this._element.remove(),f.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each(function(){var e=_.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}m(_,"close"),e(_);let de='[data-bs-toggle="button"]';class he extends p{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){var e=he.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}f.on(document,"click.bs.button.data-api",de,e=>{e.preventDefault();e=e.target.closest(de);he.getOrCreateInstance(e).toggle()}),e(he);let v=".bs.swipe",ue=(v,v,v,v,v,{endCallback:null,leftCallback:null,rightCallback:null}),pe={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class fe extends t{constructor(e,t){super(),(this._element=e)&&fe.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ue}static get DefaultType(){return pe}static get NAME(){return"swipe"}dispose(){f.off(this._element,v)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),h(this._config.endCallback)}_move(e){this._deltaX=e.touches&&1<e.touches.length?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){var e=Math.abs(this._deltaX);e<=40||(e=e/this._deltaX,this._deltaX=0,e&&h(0<e?this._config.rightCallback:this._config.leftCallback))}_initEvents(){this._supportPointerEvents?(f.on(this._element,"pointerdown.bs.swipe",e=>this._start(e)),f.on(this._element,"pointerup.bs.swipe",e=>this._end(e)),this._element.classList.add("pointer-event")):(f.on(this._element,"touchstart.bs.swipe",e=>this._start(e)),f.on(this._element,"touchmove.bs.swipe",e=>this._move(e)),f.on(this._element,"touchend.bs.swipe",e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||0<navigator.maxTouchPoints}}let ge=".bs.carousel",y="next",b="prev",w="left",me="right",_e="slid"+ge,ve="carousel",ye="active",be=".active",we=".carousel-item",ke=(be,we,{ArrowLeft:me,ArrowRight:w}),xe={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Te={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class k extends p{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=g.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ve&&this.cycle()}static get Default(){return xe}static get DefaultType(){return Te}static get NAME(){return"carousel"}next(){this._slide(y)}nextWhenVisible(){!document.hidden&&o(this._element)&&this.next()}prev(){this._slide(b)}pause(){this._isSliding&&R(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?f.one(this._element,_e,()=>this.cycle()):this.cycle())}to(e){var t,i=this._getItems();e>i.length-1||e<0||(this._isSliding?f.one(this._element,_e,()=>this.to(e)):(t=this._getItemIndex(this._getActive()))!==e&&(t=t<e?y:b,this._slide(t,i[e])))}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&f.on(this._element,"keydown.bs.carousel",e=>this._keydown(e)),"hover"===this._config.pause&&(f.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),f.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&fe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of g.find(".carousel-item img",this._element))f.on(e,"dragstart.bs.carousel",e=>e.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(w)),rightCallback:()=>this._slide(this._directionToOrder(me)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new fe(this._element,e)}_keydown(e){var t;/input|textarea/i.test(e.target.tagName)||(t=ke[e.key])&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){var t;this._indicatorsElement&&((t=g.findOne(be,this._indicatorsElement)).classList.remove(ye),t.removeAttribute("aria-current"),t=g.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement))&&(t.classList.add(ye),t.setAttribute("aria-current","true"))}_updateInterval(){var e=this._activeElement||this._getActive();e&&(e=Number.parseInt(e.getAttribute("data-bs-interval"),10),this._config.interval=e||this._config.defaultInterval)}_slide(t,a=null){if(!this._isSliding){let s=this._getActive(),o=t===y,r=a||V(this._getItems(),s,o,this._config.wrap);if(r!==s){let i=this._getItemIndex(r),n=e=>f.trigger(this._element,e,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(s),to:i});if(!n("slide.bs.carousel").defaultPrevented&&s&&r){a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=r;let e=o?"carousel-item-start":"carousel-item-end",t=o?"carousel-item-next":"carousel-item-prev";r.classList.add(t),c(r),s.classList.add(e),r.classList.add(e),this._queueCallback(()=>{r.classList.remove(e,t),r.classList.add(ye),s.classList.remove(ye,t,e),this._isSliding=!1,n(_e)},s,this._isAnimated()),a&&this.cycle()}}}}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return g.findOne(".active.carousel-item",this._element)}_getItems(){return g.find(we,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return d()?e===w?b:y:e===w?y:b}_orderToDirection(e){return d()?e===b?w:me:e===b?me:w}static jQueryInterface(t){return this.each(function(){var e=k.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)})}}f.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(e){var t=g.getElementFromSelector(this);t&&t.classList.contains(ve)&&(e.preventDefault(),e=k.getOrCreateInstance(t),(t=this.getAttribute("data-bs-slide-to"))?e.to(t):"next"===u.getDataAttribute(this,"slide")?e.next():e.prev(),e._maybeEnableCycle())}),f.on(window,"load.bs.carousel.data-api",()=>{var e;for(e of g.find('[data-bs-ride="carousel"]'))k.getOrCreateInstance(e)}),e(k);let $e="show",x="collapse",Ce="collapsing",Se=(x,x,'[data-bs-toggle="collapse"]'),je={parent:null,toggle:!0},Ee={parent:"(null|element)",toggle:"boolean"};class T extends p{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=g.find(Se);for(let i of n){let e=g.getSelectorFromElement(i),t=g.find(e).filter(e=>e===this._element);null!==e&&t.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return je}static get DefaultType(){return Ee}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._isShown()){let t=[];if(!((t=this._config.parent?this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>T.getOrCreateInstance(e,{toggle:!1})):t).length&&t[0]._isTransitioning||f.trigger(this._element,"show.bs.collapse").defaultPrevented)){for(let e of t)e.hide();let e=this._getDimension();this._element.classList.remove(x),this._element.classList.add(Ce),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;var i="scroll"+(e[0].toUpperCase()+e.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ce),this._element.classList.add(x,$e),this._element.style[e]="",f.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[e]=this._element[i]+"px"}}}hide(){if(!this._isTransitioning&&this._isShown()&&!f.trigger(this._element,"hide.bs.collapse").defaultPrevented){let e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",c(this._element),this._element.classList.add(Ce),this._element.classList.remove(x,$e);for(let e of this._triggerArray){var t=g.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ce),this._element.classList.add(x),f.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}}_isShown(e=this._element){return e.classList.contains($e)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=s(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent){let e=this._getFirstLevelChildren(Se);for(var t of e){let e=g.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}}_getFirstLevelChildren(e){let t=g.find(":scope .collapse .collapse",this._config.parent);return g.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(var i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(t){let i={};return"string"==typeof t&&/show|hide/.test(t)&&(i.toggle=!1),this.each(function(){var e=T.getOrCreateInstance(this,i);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}f.on(document,"click.bs.collapse.data-api",Se,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(let e of g.getMultipleElementsFromSelector(this))T.getOrCreateInstance(e,{toggle:!1}).toggle()}),e(T);let Pe="dropdown",Ae=".bs.dropdown",Oe=".data-api",Le="ArrowDown",De="click"+Ae+Oe,Ie="keydown"+Ae+Oe,$="show",C='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ne=(C,".dropdown-menu"),Me=d()?"top-end":"top-start",qe=d()?"top-start":"top-end",He=d()?"bottom-end":"bottom-start",Re=d()?"bottom-start":"bottom-end",Fe=d()?"left-start":"right-start",We=d()?"right-start":"left-start",ze={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Be={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class S extends p{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=g.next(this._element,Ne)[0]||g.prev(this._element,Ne)[0]||g.findOne(Ne,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ze}static get DefaultType(){return Be}static get NAME(){return Pe}toggle(){return this._isShown()?this.hide():this.show()}show(){if(!a(this._element)&&!this._isShown()){let e={relatedTarget:this._element};if(!f.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(let e of[].concat(...document.body.children))f.on(e,"mouseover",l);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($),this._element.classList.add($),f.trigger(this._element,"shown.bs.dropdown",e)}}}hide(){var e;!a(this._element)&&this._isShown()&&(e={relatedTarget:this._element},this._completeHide(e))}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!f.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented){if("ontouchstart"in document.documentElement)for(let e of[].concat(...document.body.children))f.off(e,"mouseover",l);this._popper&&this._popper.destroy(),this._menu.classList.remove($),this._element.classList.remove($),this._element.setAttribute("aria-expanded","false"),u.removeDataAttribute(this._menu,"popper"),f.trigger(this._element,"hidden.bs.dropdown",e)}}_getConfig(e){if("object"!=typeof(e=super._getConfig(e)).reference||r(e.reference)||"function"==typeof e.reference.getBoundingClientRect)return e;throw new TypeError(Pe.toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.')}_createPopper(){if(void 0===i)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:r(this._config.reference)?e=s(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);var t=this._getPopperConfig();this._popper=i.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains($)}_getPlacement(){var e,t=this._parent;return t.classList.contains("dropend")?Fe:t.classList.contains("dropstart")?We:t.classList.contains("dropup-center")?"top":t.classList.contains("dropdown-center")?"bottom":(e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim(),t.classList.contains("dropup")?e?qe:Me:e?Re:He)}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){let t=this._config.offset;return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return!this._inNavbar&&"static"!==this._config.display||(u.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...h(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){var i=g.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>o(e));i.length&&V(i,t,e===Le,!i.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){var e=S.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(2!==t.button&&("keyup"!==t.type||"Tab"===t.key)){let e=g.find('[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled).show');for(var i of e){let e=S.getInstance(i);var n;e&&!1!==e._config.autoClose&&(n=(i=t.composedPath()).includes(e._menu),i.includes(e._element)||"inside"===e._config.autoClose&&!n||"outside"===e._config.autoClose&&n||e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName))||(i={relatedTarget:e._element},"click"===t.type&&(i.clickEvent=t),e._completeHide(i)))}}}static dataApiKeydownHandler(e){var t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,n=["ArrowUp",Le].includes(e.key);!n&&!i||t&&!i||(e.preventDefault(),t=this.matches(C)?this:g.prev(this,C)[0]||g.next(this,C)[0]||g.findOne(C,e.delegateTarget.parentNode),i=S.getOrCreateInstance(t),n?(e.stopPropagation(),i.show(),i._selectMenuItem(e)):i._isShown()&&(e.stopPropagation(),i.hide(),t.focus()))}}f.on(document,Ie,C,S.dataApiKeydownHandler),f.on(document,Ie,Ne,S.dataApiKeydownHandler),f.on(document,De,S.clearMenus),f.on(document,"keyup.bs.dropdown.data-api",S.clearMenus),f.on(document,De,C,function(e){e.preventDefault(),S.getOrCreateInstance(this).toggle()}),e(S);let Ve="backdrop",Ue="mousedown.bs."+Ve,Xe={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ye={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ke extends t{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Xe}static get DefaultType(){return Ye}static get NAME(){return Ve}show(e){var t;this._config.isVisible?(this._append(),t=this._getElement(),this._config.isAnimated&&c(t),t.classList.add("show"),this._emulateAnimation(()=>{h(e)})):h(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),h(e)})):h(e)}dispose(){this._isAppended&&(f.off(this._element,Ue),this._element.remove(),this._isAppended=!1)}_getElement(){var e;return this._element||((e=document.createElement("div")).className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e),this._element}_configAfterMerge(e){return e.rootElement=s(e.rootElement),e}_append(){var e;this._isAppended||(e=this._getElement(),this._config.rootElement.append(e),f.on(e,Ue,()=>{h(this._config.clickCallback)}),this._isAppended=!0)}_emulateAnimation(e){B(e,this._getElement(),this._config.isAnimated)}}let Qe=".bs.focustrap",Ge=(Qe,Qe,"backward"),Je={autofocus:!0,trapElement:null},Ze={autofocus:"boolean",trapElement:"element"};class et extends t{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Je}static get DefaultType(){return Ze}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),f.off(document,Qe),f.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),f.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,f.off(document,Qe))}_handleFocusin(e){var t=this._config.trapElement;e.target===document||e.target===t||t.contains(e.target)||(0===(e=g.focusableChildren(t)).length?t:this._lastTabNavDirection===Ge?e[e.length-1]:e[0]).focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Ge:"forward")}}let tt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",it=".sticky-top",nt="padding-right",st="margin-right";class ot{constructor(){this._element=document.body}getWidth(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,nt,e=>e+t),this._setElementAttributes(tt,nt,e=>e+t),this._setElementAttributes(it,st,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,nt),this._resetElementAttributes(tt,nt),this._resetElementAttributes(it,st)}isOverflowing(){return 0<this.getWidth()}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,i,n){let s=this.getWidth();this._applyManipulationCallback(e,e=>{var t;e!==this._element&&window.innerWidth>e.clientWidth+s||(this._saveInitialAttribute(e,i),t=window.getComputedStyle(e).getPropertyValue(i),e.style.setProperty(i,n(Number.parseFloat(t))+"px"))})}_saveInitialAttribute(e,t){var i=e.style.getPropertyValue(t);i&&u.setDataAttribute(e,t,i)}_resetElementAttributes(e,i){this._applyManipulationCallback(e,e=>{var t=u.getDataAttribute(e,i);null!==t?(u.removeDataAttribute(e,i),e.style.setProperty(i,t)):e.style.removeProperty(i)})}_applyManipulationCallback(e,t){if(r(e))t(e);else for(var i of g.find(e,this._element))t(i)}}let j=".bs.modal",rt=(j,j,"hidden"+j),at="show"+j,lt=(j,j,j,j,j,j,"modal-open"),ct="modal-static",dt={backdrop:!0,focus:!0,keyboard:!0},ht={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class E extends p{constructor(e,t){super(e,t),this._dialog=g.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ot,this._addEventListeners()}static get Default(){return dt}static get DefaultType(){return ht}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||f.trigger(this._element,at,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(lt),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||f.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){f.off(window,j),f.off(this._dialog,j),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ke({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new et({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;var t=g.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),c(this._element),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,f.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){f.on(this._element,"keydown.dismiss.bs.modal",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),f.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),f.on(this._element,"mousedown.dismiss.bs.modal",t=>{f.one(this._element,"click.dismiss.bs.modal",e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(lt),this._resetAdjustments(),this._scrollBar.reset(),f.trigger(this._element,rt)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(!f.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(ct)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(ct),this._queueCallback(()=>{this._element.classList.remove(ct),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=0<t;if(i&&!e){let e=d()?"paddingLeft":"paddingRight";this._element.style[e]=t+"px"}if(!i&&e){let e=d()?"paddingRight":"paddingLeft";this._element.style[e]=t+"px"}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each(function(){var e=E.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](i)}})}}f.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(e){let t=g.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),f.one(t,at,e=>{e.defaultPrevented||f.one(t,rt,()=>{o(this)&&this.focus()})});e=g.findOne(".modal.show");e&&E.getInstance(e).hide(),E.getOrCreateInstance(t).toggle(this)}),m(E),e(E);let ut=".bs.offcanvas",pt="showing",ft=".offcanvas.show",gt="hidePrevented"+ut,mt="hidden"+ut,_t={backdrop:!0,keyboard:!0,scroll:!1},vt={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class P extends p{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return _t}static get DefaultType(){return vt}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||f.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new ot).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(pt),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(pt),f.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||f.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new ot).reset(),f.trigger(this._element,mt)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){var e=Boolean(this._config.backdrop);return new Ke({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():f.trigger(this._element,gt)}:null})}_initializeFocusTrap(){return new et({trapElement:this._element})}_addEventListeners(){f.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():f.trigger(this._element,gt))})}static jQueryInterface(t){return this.each(function(){var e=P.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}f.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(e){var t=g.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||(f.one(t,mt,()=>{o(this)&&this.focus()}),(e=g.findOne(ft))&&e!==t&&P.getInstance(e).hide(),P.getOrCreateInstance(t).toggle(this))}),f.on(window,"load.bs.offcanvas.data-api",()=>{for(var e of g.find(ft))P.getOrCreateInstance(e).show()}),f.on(window,"resize.bs.offcanvas",()=>{for(var e of g.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&P.getOrCreateInstance(e).hide()}),m(P),e(P);let yt={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},bt=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),wt=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,kt={allowList:yt,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},xt={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Tt={entry:"(string|element|function|null)",selector:"(string|element)"};class $t extends t{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return kt}static get DefaultType(){return xt}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return 0<this.getContent().length}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){var i=document.createElement("div");i.innerHTML=this._maybeSanitize(this._config.template);for(let[e,t]of Object.entries(this._config.content))this._setContent(i,t,e);let e=i.children[0],t=this._resolvePossibleFunction(this._config.extraClass);return t&&e.classList.add(...t.split(" ")),e}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(var[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},Tt)}_setContent(e,t,i){i=g.findOne(i,e);i&&((t=this._resolvePossibleFunction(t))?r(t)?this._putElementInTemplate(s(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(i){if(this._config.sanitize){var n=i,s=this._config.allowList,o=this._config.sanitizeFn;if(!n.length)return n;if(o&&"function"==typeof o)return o(n);let e=(new window.DOMParser).parseFromString(n,"text/html"),t=[].concat(...e.body.querySelectorAll("*"));for(let n of t){let e=n.nodeName.toLowerCase();if(Object.keys(s).includes(e)){let t=[].concat(...n.attributes),i=[].concat(s["*"]||[],s[e]||[]);for(let e of t)((e,t)=>{let i=e.nodeName.toLowerCase();return t.includes(i)?!bt.has(i)||Boolean(wt.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(i))})(e,i)||n.removeAttribute(e.nodeName)}else n.remove()}return e.body.innerHTML}return i}_resolvePossibleFunction(e){return h(e,[this])}_putElementInTemplate(e,t){this._config.html?(t.innerHTML="",t.append(e)):t.textContent=e.textContent}}let Ct=new Set(["sanitize","allowList","sanitizeFn"]),St="fade",jt="show",Et="hide.bs.modal",A="hover",Pt="focus",At={AUTO:"auto",TOP:"top",RIGHT:d()?"left":"right",BOTTOM:"bottom",LEFT:d()?"right":"left"},Ot={allowList:yt,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Lt={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class O extends p{constructor(e,t){if(void 0===i)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Ot}static get DefaultType(){return Lt}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),f.off(this._element.closest(".modal"),Et,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this._isWithContent()&&this._isEnabled){let e=f.trigger(this._element,this.constructor.eventName("show")),t=(F(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(!e.defaultPrevented&&t){this._disposePopper();var i=this._getTipElement(),n=(this._element.setAttribute("aria-describedby",i.getAttribute("id")),this._config).container;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),f.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(jt),"ontouchstart"in document.documentElement)for(let e of[].concat(...document.body.children))f.on(e,"mouseover",l);this._queueCallback(()=>{f.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}}}hide(){if(this._isShown()&&!f.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(jt),"ontouchstart"in document.documentElement)for(var e of[].concat(...document.body.children))f.off(e,"mouseover",l);this._activeTrigger.click=!1,this._activeTrigger[Pt]=!1,this._activeTrigger[A]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),f.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){e=this._getTemplateFactory(e).toHtml();if(!e)return null;e.classList.remove(St,jt),e.classList.add(`bs-${this.constructor.NAME}-auto`);var t=(e=>{for(;e+=Math.floor(1e6*Math.random()),document.getElementById(e););return e})(this.constructor.NAME).toString();return e.setAttribute("id",t),this._isAnimated()&&e.classList.add(St),e}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new $t({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(St)}_isShown(){return this.tip&&this.tip.classList.contains(jt)}_createPopper(e){var t=h(this._config.placement,[this,e,this._element]),t=At[t.toUpperCase()];return i.createPopper(this._element,e,this._getPopperConfig(t))}_getOffset(){let t=this._config.offset;return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(e){return h(e,[this._element])}_getPopperConfig(e){e={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...e,...h(this._config.popperConfig,[e])}}_setListeners(){let e=this._config.trigger.split(" ");for(var i of e)if("click"===i)f.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()});else if("manual"!==i){let e=i===A?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),t=i===A?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");f.on(this._element,e,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?Pt:A]=!0,t._enter()}),f.on(this._element,t,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?Pt:A]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},f.on(this._element.closest(".modal"),Et,this._hideModalHandler)}_fixTitle(){var e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){var t=u.getDataAttributes(this._element);for(let e of Object.keys(t))Ct.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:s(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){var e,t,i={};for([e,t]of Object.entries(this._config))this.constructor.Default[e]!==t&&(i[e]=t);return i.selector=!1,i.trigger="manual",i}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){var e=O.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(O);let Dt={...O.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},It={...O.DefaultType,content:"(null|string|element|function)"};class Nt extends O{static get Default(){return Dt}static get DefaultType(){return It}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){var e=Nt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(Nt);let Mt=".bs.scrollspy",qt="click"+Mt,L="active",Ht="[href]",Rt={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ft={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Wt extends p{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Rt}static get DefaultType(){return Ft}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(var e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=s(e.target)||document.body,e.rootMargin=e.offset?e.offset+"px 0px -30%":e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(f.off(this._config.target,qt),f.on(this._config.target,qt,Ht,e=>{var t=this._observableSections.get(e.target.hash);t&&(e.preventDefault(),e=this._rootElement||window,t=t.offsetTop-this._element.offsetTop,e.scrollTo?e.scrollTo({top:t,behavior:"smooth"}):e.scrollTop=t)}))}_getNewObserver(){var e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get("#"+e.target.id),i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(var o of e)if(o.isIntersecting){let e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&e){if(i(o),!n)return}else s||e||i(o)}else this._activeTarget=null,this._clearActiveClass(t(o))}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=g.find(Ht,this._config.target);for(var t of e)if(t.hash&&!a(t)){let e=g.findOne(decodeURI(t.hash),this._element);o(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),(this._activeTarget=e).classList.add(L),this._activateParents(e),f.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))g.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(L);else for(var t of g.parents(e,".nav, .list-group"))for(let e of g.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))e.classList.add(L)}_clearActiveClass(e){e.classList.remove(L);var t=g.find(Ht+"."+L,e);for(let e of t)e.classList.remove(L)}static jQueryInterface(t){return this.each(function(){var e=Wt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}f.on(window,"load.bs.scrollspy.data-api",()=>{for(var e of g.find('[data-bs-spy="scroll"]'))Wt.getOrCreateInstance(e)}),e(Wt);let zt="ArrowRight",Bt="ArrowDown",Vt="Home",D="active",Ut="show",Xt=".dropdown-toggle",Yt=`:not(${Xt})`,Kt='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Qt=`.nav-link${Yt}, .list-group-item${Yt}, [role="tab"]${Yt}, `+Kt;D,D,D;class I extends p{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),f.on(this._element,"keydown.bs.tab",e=>this._keydown(e)))}static get NAME(){return"tab"}show(){var e,t,i=this._element;this._elemIsActive(i)||(t=(e=this._getActiveElem())?f.trigger(e,"hide.bs.tab",{relatedTarget:i}):null,f.trigger(i,"show.bs.tab",{relatedTarget:e}).defaultPrevented)||t&&t.defaultPrevented||(this._deactivate(e,i),this._activate(i,e))}_activate(e,t){e&&(e.classList.add(D),this._activate(g.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),f.trigger(e,"shown.bs.tab",{relatedTarget:t})):e.classList.add(Ut)},e,e.classList.contains("fade")))}_deactivate(e,t){e&&(e.classList.remove(D),e.blur(),this._deactivate(g.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),f.trigger(e,"hidden.bs.tab",{relatedTarget:t})):e.classList.remove(Ut)},e,e.classList.contains("fade")))}_keydown(t){if(["ArrowLeft",zt,"ArrowUp",Bt,Vt,"End"].includes(t.key)){t.stopPropagation(),t.preventDefault();var i,n=this._getChildren().filter(e=>!a(e));let e;(e=[Vt,"End"].includes(t.key)?n[t.key===Vt?0:n.length-1]:(i=[zt,Bt].includes(t.key),V(n,t.target,i,!0)))&&(e.focus({preventScroll:!0}),I.getOrCreateInstance(e).show())}}_getChildren(){return g.find(Qt,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);var t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){var t=g.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id)&&this._setAttributeIfNotExists(t,"aria-labelledby",""+e.id)}_toggleDropDown(e,i){let n=this._getOuterElement(e);n.classList.contains("dropdown")&&((e=(e,t)=>{e=g.findOne(e,n);e&&e.classList.toggle(t,i)})(Xt,D),e(".dropdown-menu",Ut),n.setAttribute("aria-expanded",i))}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(D)}_getInnerElement(e){return e.matches(Qt)?e:g.findOne(Qt,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(t){return this.each(function(){var e=I.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}f.on(document,"click.bs.tab",Kt,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||I.getOrCreateInstance(this).show()}),f.on(window,"load.bs.tab",()=>{for(var e of g.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))I.getOrCreateInstance(e)}),e(I);let Gt="show",Jt="showing",Zt={animation:"boolean",autohide:"boolean",delay:"number"},ei={animation:!0,autohide:!0,delay:5e3};class ti extends p{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ei}static get DefaultType(){return Zt}static get NAME(){return"toast"}show(){f.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),c(this._element),this._element.classList.add(Gt,Jt),this._queueCallback(()=>{this._element.classList.remove(Jt),f.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||f.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Jt),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(Jt,Gt),f.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Gt),super.dispose()}isShown(){return this._element.classList.contains(Gt)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}t?this._clearTimeout():this._element===(e=e.relatedTarget)||this._element.contains(e)||this._maybeScheduleHide()}_setListeners(){f.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),f.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),f.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),f.on(this._element,"focusout.bs.toast",e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){var e=ti.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return m(ti),e(ti),{Alert:_,Button:he,Carousel:k,Collapse:T,Dropdown:S,Modal:E,Offcanvas:P,Popover:Nt,ScrollSpy:Wt,Tab:I,Toast:ti,Tooltip:O}}),((n,i,C,d)=>{function h(e){return e&&e.hasOwnProperty&&e instanceof C}function S(e){return u(e)&&0<e.indexOf("%")}function j(e,t){var i=parseInt(e,10)||0;return t&&S(e)&&(i*=P.getViewport()[t]/100),Math.ceil(i)}function E(e,t){return j(e,t)+"px"}var s=C("html"),o=C(n),c=C(i),P=C.fancybox=function(){P.open.apply(this,arguments)},r=navigator.userAgent.match(/msie/i),a=null,l=i.createTouch!==d,u=function(e){return e&&"string"===C.type(e)};C.extend(P,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!l,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(r?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:C.noop,beforeLoad:C.noop,afterLoad:C.noop,beforeShow:C.noop,afterShow:C.noop,beforeChange:C.noop,beforeClose:C.noop,afterClose:C.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(l,c){if(l&&(C.isPlainObject(c)||(c={}),!1!==P.close(!0)))return C.isArray(l)||(l=h(l)?C(l).get():[l]),C.each(l,function(e,t){var i,n,s,o,r,a={};"object"===C.type(t)&&(t.nodeType&&(t=C(t)),h(t)?(a={href:t.data("fancybox-href")||t.attr("href"),title:t.data("fancybox-title")||t.attr("title"),isDom:!0,element:t},C.metadata&&C.extend(!0,a,t.metadata())):a=t),i=c.href||a.href||(u(t)?t:null),n=c.title!==d?c.title:a.title||"",!(o=(s=c.content||a.content)?"html":c.type||a.type)&&a.isDom&&(o=(o=t.data("fancybox-type"))||((o=t.prop("class").match(/fancybox\.(\w+)/))?o[1]:null)),u(i)&&(o||(P.isImage(i)?o="image":P.isSWF(i)?o="swf":"#"===i.charAt(0)?o="inline":u(t)&&(o="html",s=t)),"ajax"===o)&&(i=(r=i.split(/\s+/,2)).shift(),r=r.shift()),s||("inline"===o?i?s=C(u(i)?i.replace(/.*(?=#[^\s]+$)/,""):i):a.isDom&&(s=t):"html"===o?s=i:o||i||!a.isDom||(o="inline",s=t)),C.extend(a,{href:i,type:o,content:s,title:n,selector:r}),l[e]=a}),P.opts=C.extend(!0,{},P.defaults,c),c.keys!==d&&(P.opts.keys=!!c.keys&&C.extend({},P.defaults.keys,c.keys)),P.group=l,P._start(P.opts.index)},cancel:function(){var e=P.coming;e&&!1!==P.trigger("onCancel")&&(P.hideLoading(),P.ajaxLoad&&P.ajaxLoad.abort(),P.ajaxLoad=null,P.imgPreload&&(P.imgPreload.onload=P.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),P.coming=null,P.current||P._afterZoomOut(e))},close:function(e){P.cancel(),!1!==P.trigger("beforeClose")&&(P.unbindEvents(),P.isActive)&&(P.isOpen&&!0!==e?(P.isOpen=P.isOpened=!1,P.isClosing=!0,C(".fancybox-item, .fancybox-nav").remove(),P.wrap.stop(!0,!0).removeClass("fancybox-opened"),P.transitions[P.current.closeMethod]()):(C(".fancybox-wrap").stop(!0).trigger("onReset").remove(),P._afterZoomOut()))},play:function(e){function t(){clearTimeout(P.player.timer)}function i(){t(),P.current&&P.player.isActive&&(P.player.timer=setTimeout(P.next,P.current.playSpeed))}function n(){t(),c.unbind(".player"),P.player.isActive=!1,P.trigger("onPlayEnd")}!0===e||!P.player.isActive&&!1!==e?P.current&&(P.current.loop||P.current.index<P.group.length-1)&&(P.player.isActive=!0,c.bind({"onCancel.player beforeClose.player":n,"onUpdate.player":i,"beforeLoad.player":t}),i(),P.trigger("onPlayStart")):n()},next:function(e){var t=P.current;t&&(u(e)||(e=t.direction.next),P.jumpto(t.index+1,e,"next"))},prev:function(e){var t=P.current;t&&(u(e)||(e=t.direction.prev),P.jumpto(t.index-1,e,"prev"))},jumpto:function(e,t,i){var n=P.current;n&&(e=j(e),P.direction=t||n.direction[e>=n.index?"next":"prev"],P.router=i||"jumpto",n.loop&&(e<0&&(e=n.group.length+e%n.group.length),e%=n.group.length),n.group[e]!==d)&&(P.cancel(),P._start(e))},reposition:function(e,t){var i=P.current,n=i?i.wrap:null;n&&(t=P._getPosition(t),e&&"scroll"===e.type?(delete t.position,n.stop(!0,!0).animate(t,200)):(n.css(t),i.pos=C.extend({},i.dim,t)))},update:function(t){var i=t&&t.type,n=!i||"orientationchange"===i;n&&(clearTimeout(a),a=null),P.isOpen&&!a&&(a=setTimeout(function(){var e=P.current;e&&!P.isClosing&&(P.wrap.removeClass("fancybox-tmp"),(n||"load"===i||"resize"===i&&e.autoResize)&&P._setDimension(),"scroll"===i&&e.canShrink||P.reposition(t),P.trigger("onUpdate"),a=null)},n&&!l?0:300))},toggle:function(e){P.isOpen&&(P.current.fitToView="boolean"===C.type(e)?e:!P.current.fitToView,l&&(P.wrap.removeAttr("style").addClass("fancybox-tmp"),P.trigger("onUpdate")),P.update())},hideLoading:function(){c.unbind(".loading"),C("#fancybox-loading").remove()},showLoading:function(){var e,t;P.hideLoading(),e=C('<div id="fancybox-loading"><div></div></div>').click(P.cancel).appendTo("body"),c.bind("keydown.loading",function(e){27===(e.which||e.keyCode)&&(e.preventDefault(),P.cancel())}),P.defaults.fixed||(t=P.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x}))},getViewport:function(){var e=P.current&&P.current.locked||!1,t={x:o.scrollLeft(),y:o.scrollTop()};return e?(t.w=e[0].clientWidth,t.h=e[0].clientHeight):(t.w=l&&n.innerWidth?n.innerWidth:o.width(),t.h=l&&n.innerHeight?n.innerHeight:o.height()),t},unbindEvents:function(){P.wrap&&h(P.wrap)&&P.wrap.unbind(".fb"),c.unbind(".fb"),o.unbind(".fb")},bindEvents:function(){var t,r=P.current;r&&(o.bind("orientationchange.fb"+(l?"":" resize.fb")+(r.autoCenter&&!r.locked?" scroll.fb":""),P.update),(t=r.keys)&&c.bind("keydown.fb",function(i){var n=i.which||i.keyCode,e=i.target||i.srcElement;if(27===n&&P.coming)return!1;i.ctrlKey||i.altKey||i.shiftKey||i.metaKey||e&&(e.type||C(e).is("[contenteditable]"))||C.each(t,function(e,t){return 1<r.group.length&&t[n]!==d?(P[e](t[n]),i.preventDefault(),!1):-1<C.inArray(n,t)?(P[e](),i.preventDefault(),!1):void 0})}),C.fn.mousewheel)&&r.mouseWheel&&P.wrap.bind("mousewheel.fb",function(e,t,i,n){for(var s=C(e.target||null),o=!1;s.length&&!o&&!s.is(".fancybox-skin")&&!s.is(".fancybox-wrap");)o=s[0]&&!(s[0].style.overflow&&"hidden"===s[0].style.overflow)&&(s[0].clientWidth&&s[0].scrollWidth>s[0].clientWidth||s[0].clientHeight&&s[0].scrollHeight>s[0].clientHeight),s=C(s).parent();0!==t&&!o&&1<P.group.length&&!r.canShrink&&(0<n||0<i?P.prev(0<n?"down":"left"):(n<0||i<0)&&P.next(n<0?"up":"right"),e.preventDefault())})},trigger:function(i,e){var t,n=e||P.coming||P.current;if(n){if(!1===(t=C.isFunction(n[i])?n[i].apply(n,Array.prototype.slice.call(arguments,1)):t))return!1;n.helpers&&C.each(n.helpers,function(e,t){t&&P.helpers[e]&&C.isFunction(P.helpers[e][i])&&P.helpers[e][i](C.extend(!0,{},P.helpers[e].defaults,t),n)}),c.trigger(i)}},isImage:function(e){return u(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(e){return u(e)&&e.match(/\.(swf)((\?|#).*)?$/i)},_start:function(e){var t,i,n={};if(e=j(e),!(t=P.group[e]||null))return!1;if(t=(n=C.extend(!0,{},P.opts,t)).margin,i=n.padding,"number"===C.type(t)&&(n.margin=[t,t,t,t]),"number"===C.type(i)&&(n.padding=[i,i,i,i]),n.modal&&C.extend(!0,n,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),n.autoSize&&(n.autoWidth=n.autoHeight=!0),"auto"===n.width&&(n.autoWidth=!0),"auto"===n.height&&(n.autoHeight=!0),n.group=P.group,n.index=e,P.coming=n,!1===P.trigger("beforeLoad"))P.coming=null;else{if(i=n.type,t=n.href,!i)return P.coming=null,!(!P.current||!P.router||"jumpto"===P.router)&&(P.current.index=e,P[P.router](P.direction));if(P.isActive=!0,"image"!==i&&"swf"!==i||(n.autoHeight=n.autoWidth=!1,n.scrolling="visible"),"image"===i&&(n.aspectRatio=!0),"iframe"===i&&l&&(n.scrolling="scroll"),n.wrap=C(n.tpl.wrap).addClass("fancybox-"+(l?"mobile":"desktop")+" fancybox-type-"+i+" fancybox-tmp "+n.wrapCSS).appendTo(n.parent||"body"),C.extend(n,{skin:C(".fancybox-skin",n.wrap),outer:C(".fancybox-outer",n.wrap),inner:C(".fancybox-inner",n.wrap)}),C.each(["Top","Right","Bottom","Left"],function(e,t){n.skin.css("padding"+t,E(n.padding[e]))}),P.trigger("onReady"),"inline"===i||"html"===i){if(!n.content||!n.content.length)return P._error("content")}else if(!t)return P._error("href");"image"===i?P._loadImage():"ajax"===i?P._loadAjax():"iframe"===i?P._loadIframe():P._afterLoad()}},_error:function(e){C.extend(P.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:e,content:P.coming.tpl.error}),P._afterLoad()},_loadImage:function(){var e=P.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,P.coming.width=this.width/P.opts.pixelRatio,P.coming.height=this.height/P.opts.pixelRatio,P._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,P._error("image")},e.src=P.coming.href,!0!==e.complete&&P.showLoading()},_loadAjax:function(){var i=P.coming;P.showLoading(),P.ajaxLoad=C.ajax(C.extend({},i.ajax,{url:i.href,error:function(e,t){P.coming&&"abort"!==t?P._error("ajax",e):P.hideLoading()},success:function(e,t){"success"===t&&(i.content=e,P._afterLoad())}}))},_loadIframe:function(){var e=P.coming,t=C(e.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",l?"auto":e.iframe.scrolling).attr("src",e.href);C(e.wrap).bind("onReset",function(){try{C(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}}),e.iframe.preload&&(P.showLoading(),t.one("load",function(){C(this).data("ready",1),l||C(this).bind("load.fb",P.update),C(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),P._afterLoad()})),e.content=t.appendTo(e.inner),e.iframe.preload||P._afterLoad()},_preloadImages:function(){for(var e,t=P.group,i=P.current,n=t.length,s=i.preload?Math.min(i.preload,n-1):0,o=1;o<=s;o+=1)"image"===(e=t[(i.index+o)%n]).type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var i,e,t,n,s,o=P.coming,r=P.current;if(P.hideLoading(),o&&!1!==P.isActive)if(!1===P.trigger("afterLoad",o,r))o.wrap.stop(!0).trigger("onReset").remove(),P.coming=null;else{switch(r&&(P.trigger("beforeChange",r),r.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),P.unbindEvents(),i=o.content,e=o.type,t=o.scrolling,C.extend(P,{wrap:o.wrap,skin:o.skin,outer:o.outer,inner:o.inner,current:o,previous:r}),n=o.href,e){case"inline":case"ajax":case"html":o.selector?i=C("<div>").html(i).find(o.selector):h(i)&&(i.data("fancybox-placeholder")||i.data("fancybox-placeholder",C('<div class="fancybox-placeholder"></div>').insertAfter(i).hide()),i=i.show().detach(),o.wrap.bind("onReset",function(){C(this).find(i).length&&i.hide().replaceAll(i.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":i=o.tpl.image.replace("{href}",n);break;case"swf":i='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+n+'"></param>',s="",C.each(o.swf,function(e,t){i+='<param name="'+e+'" value="'+t+'"></param>',s+=" "+e+'="'+t+'"'}),i+='<embed src="'+n+'" type="application/x-shockwave-flash" width="100%" height="100%"'+s+"></embed></object>"}h(i)&&i.parent().is(o.inner)||o.inner.append(i),P.trigger("beforeShow"),o.inner.css("overflow","yes"===t?"scroll":"no"===t?"hidden":t),P._setDimension(),P.reposition(),P.isOpen=!1,P.coming=null,P.bindEvents(),P.isOpened?r.prevMethod&&P.transitions[r.prevMethod]():C(".fancybox-wrap").not(o.wrap).stop(!0).trigger("onReset").remove(),P.transitions[P.isOpened?o.nextMethod:o.openMethod](),P._preloadImages()}},_setDimension:function(){var e,t,i,n,s,o,r,a,l,c=P.getViewport(),d=0,h=!1,u=!1,h=P.wrap,p=P.skin,f=P.inner,g=P.current,u=g.width,m=g.height,_=g.minWidth,v=g.minHeight,y=g.maxWidth,b=g.maxHeight,w=g.scrolling,k=g.scrollOutside?g.scrollbarWidth:0,x=g.margin,T=j(x[1]+x[3]),$=j(x[0]+x[2]);if(h.add(p).add(f).width("auto").height("auto").removeClass("fancybox-tmp"),t=T+(x=j(p.outerWidth(!0)-p.width())),i=$+(e=j(p.outerHeight(!0)-p.height())),n=S(u)?(c.w-t)*j(u)/100:u,s=S(m)?(c.h-i)*j(m)/100:m,"iframe"===g.type){if(l=g.content,g.autoHeight&&1===l.data("ready"))try{l[0].contentWindow.document.location&&(f.width(n).height(9999),o=l.contents().find("body"),k&&o.css("overflow-x","hidden"),s=o.outerHeight(!0))}catch(e){}}else(g.autoWidth||g.autoHeight)&&(f.addClass("fancybox-tmp"),g.autoWidth||f.width(n),g.autoHeight||f.height(s),g.autoWidth&&(n=f.width()),g.autoHeight&&(s=f.height()),f.removeClass("fancybox-tmp"));if(u=j(n),m=j(s),a=n/s,_=j(S(_)?j(_,"w")-t:_),y=j(S(y)?j(y,"w")-t:y),v=j(S(v)?j(v,"h")-i:v),o=y,r=b=j(S(b)?j(b,"h")-i:b),g.fitToView&&(y=Math.min(c.w-t,y),b=Math.min(c.h-i,b)),t=c.w-T,$=c.h-$,g.aspectRatio?(m=(u=b<(m=y<u?j((u=y)/a):m)?j((m=b)*a):u)<_?j((u=_)/a):m)<v&&(u=j((m=v)*a)):(u=Math.max(_,Math.min(u,y)),g.autoHeight&&"iframe"!==g.type&&(f.width(u),m=f.height()),m=Math.max(v,Math.min(m,b))),g.fitToView)if(f.width(u).height(m),h.width(u+x),c=h.width(),T=h.height(),g.aspectRatio)for(;(t<c||$<T)&&_<u&&v<m&&!(19<d++);)m=Math.max(v,Math.min(b,m-10)),(u=j(m*a))<_&&(m=j((u=_)/a)),y<u&&(m=j((u=y)/a)),f.width(u).height(m),h.width(u+x),c=h.width(),T=h.height();else u=Math.max(_,Math.min(u,u-(c-t))),m=Math.max(v,Math.min(m,m-(T-$)));k&&"auto"===w&&m<s&&u+x+k<t&&(u+=k),f.width(u).height(m),h.width(u+x),c=h.width(),T=h.height(),h=(t<c||$<T)&&_<u&&v<m,u=g.aspectRatio?u<o&&m<r&&u<n&&m<s:(u<o||m<r)&&(u<n||m<s),C.extend(g,{dim:{width:E(c),height:E(T)},origWidth:n,origHeight:s,canShrink:h,canExpand:u,wPadding:x,hPadding:e,wrapSpace:T-p.outerHeight(!0),skinSpace:p.height()-m}),!l&&g.autoHeight&&v<m&&m<b&&!u&&f.height("auto")},_getPosition:function(e){var t=P.current,i=P.getViewport(),n=t.margin,s=P.wrap.width()+n[1]+n[3],o=P.wrap.height()+n[0]+n[2],n={position:"absolute",top:n[0],left:n[3]};return t.autoCenter&&t.fixed&&!e&&o<=i.h&&s<=i.w?n.position="fixed":t.locked||(n.top+=i.y,n.left+=i.x),n.top=E(Math.max(n.top,n.top+(i.h-o)*t.topRatio)),n.left=E(Math.max(n.left,n.left+(i.w-s)*t.leftRatio)),n},_afterZoomIn:function(){var t=P.current;t&&(P.isOpen=P.isOpened=!0,P.wrap.css("overflow","visible").addClass("fancybox-opened"),P.update(),(t.closeClick||t.nextClick&&1<P.group.length)&&P.inner.css("cursor","pointer").bind("click.fb",function(e){C(e.target).is("a")||C(e.target).parent().is("a")||(e.preventDefault(),P[t.closeClick?"close":"next"]())}),t.closeBtn&&C(t.tpl.closeBtn).appendTo(P.skin).bind("click.fb",function(e){e.preventDefault(),P.close()}),t.arrows&&1<P.group.length&&((t.loop||0<t.index)&&C(t.tpl.prev).appendTo(P.outer).bind("click.fb",P.prev),t.loop||t.index<P.group.length-1)&&C(t.tpl.next).appendTo(P.outer).bind("click.fb",P.next),P.trigger("afterShow"),t.loop||t.index!==t.group.length-1?P.opts.autoPlay&&!P.player.isActive&&(P.opts.autoPlay=!1,P.play()):P.play(!1))},_afterZoomOut:function(e){e=e||P.current,C(".fancybox-wrap").trigger("onReset").remove(),C.extend(P,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),P.trigger("afterClose",e)}}),P.transitions={getOrigPosition:function(){var e=P.current,t=e.element,i=e.orig,n={},s=50,o=50,r=e.hPadding,a=e.wPadding,l=P.getViewport();return!i&&e.isDom&&t.is(":visible")&&((i=t.find("img:first")).length||(i=t)),h(i)?(n=i.offset(),i.is("img")&&(s=i.outerWidth(),o=i.outerHeight())):(n.top=l.y+(l.h-o)*e.topRatio,n.left=l.x+(l.w-s)*e.leftRatio),"fixed"!==P.wrap.css("position")&&!e.locked||(n.top-=l.y,n.left-=l.x),{top:E(n.top-r*e.topRatio),left:E(n.left-a*e.leftRatio),width:E(s+a),height:E(o+r)}},step:function(e,t){var i=t.prop,n=P.current,s=n.wrapSpace,o=n.skinSpace;"width"!==i&&"height"!==i||(t=t.end===t.start?1:(e-t.start)/(t.end-t.start),P.isClosing&&(t=1-t),n=e-("width"===i?n.wPadding:n.hPadding),P.skin[i](j("width"===i?n:n-s*t)),P.inner[i](j("width"===i?n:n-s*t-o*t)))},zoomIn:function(){var e=P.current,t=e.pos,i=e.openEffect,n="elastic"===i,s=C.extend({opacity:1},t);delete s.position,n?(t=this.getOrigPosition(),e.openOpacity&&(t.opacity=.1)):"fade"===i&&(t.opacity=.1),P.wrap.css(t).animate(s,{duration:"none"===i?0:e.openSpeed,easing:e.openEasing,step:n?this.step:null,complete:P._afterZoomIn})},zoomOut:function(){var e=P.current,t=e.closeEffect,i="elastic"===t,n={opacity:.1};i&&(n=this.getOrigPosition(),e.closeOpacity)&&(n.opacity=.1),P.wrap.animate(n,{duration:"none"===t?0:e.closeSpeed,easing:e.closeEasing,step:i?this.step:null,complete:P._afterZoomOut})},changeIn:function(){var e,t=P.current,i=t.nextEffect,n=t.pos,s={opacity:1},o=P.direction;n.opacity=.1,"elastic"===i&&(e="down"===o||"up"===o?"top":"left","down"===o||"right"===o?(n[e]=E(j(n[e])-200),s[e]="+=200px"):(n[e]=E(j(n[e])+200),s[e]="-=200px")),"none"===i?P._afterZoomIn():P.wrap.css(n).animate(s,{duration:t.nextSpeed,easing:t.nextEasing,complete:P._afterZoomIn})},changeOut:function(){var e=P.previous,t=e.prevEffect,i={opacity:.1},n=P.direction;"elastic"===t&&(i["down"===n||"up"===n?"top":"left"]=("up"===n||"left"===n?"-":"+")+"=200px"),e.wrap.animate(i,{duration:"none"===t?0:e.prevSpeed,easing:e.prevEasing,complete:function(){C(this).trigger("onReset").remove()}})}},P.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!l,fixed:!0},overlay:null,fixed:!1,el:C("html"),create:function(e){e=C.extend({},this.defaults,e),this.overlay&&this.close(),this.overlay=C('<div class="fancybox-overlay"></div>').appendTo((P.coming||e).parent),this.fixed=!1,e.fixed&&P.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var t=this;e=C.extend({},this.defaults,e),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(o.bind("resize.overlay",C.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind("click.overlay",function(e){if(C(e.target).hasClass("fancybox-overlay"))return(P.isActive?P:t).close(),!1}),this.overlay.css(e.css).show()},close:function(){var e,t;o.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(C(".fancybox-margin").removeClass("fancybox-margin"),e=o.scrollTop(),t=o.scrollLeft(),this.el.removeClass("fancybox-lock"),o.scrollTop(e).scrollLeft(t)),C(".fancybox-overlay").remove().hide(),C.extend(this,{overlay:null,fixed:!1})},update:function(){var e,t="100%";this.overlay.width(t).height("100%"),r?(e=Math.max(i.documentElement.offsetWidth,i.body.offsetWidth),c.width()>e&&(t=c.width())):c.width()>o.width()&&(t=c.width()),this.overlay.width(t).height(c.height())},onReady:function(e,t){var i=this.overlay;C(".fancybox-overlay").stop(!0,!0),i||this.create(e),e.locked&&this.fixed&&t.fixed&&(i||(this.margin=c.height()>o.height()&&C("html").css("margin-right").replace("px","")),t.locked=this.overlay.append(t.wrap),t.fixed=!1),!0===e.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){var i;t.locked&&(!1!==this.margin&&(C("*").filter(function(){return"fixed"===C(this).css("position")&&!C(this).hasClass("fancybox-overlay")&&!C(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),t=o.scrollTop(),i=o.scrollLeft(),this.el.addClass("fancybox-lock"),o.scrollTop(t).scrollLeft(i)),this.open(e)},onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!P.coming&&this.overlay.fadeOut(e.speedOut,C.proxy(this.close,this))}},P.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t=P.current,i=t.title,n=e.type;if(C.isFunction(i)&&(i=i.call(t.element,t)),u(i)&&""!==C.trim(i)){switch(t=C('<div class="fancybox-title fancybox-title-'+n+'-wrap">'+i+"</div>"),n){case"inside":n=P.skin;break;case"outside":n=P.wrap;break;case"over":n=P.inner;break;default:n=P.skin,t.appendTo("body"),r&&t.width(t.width()),t.wrapInner('<span class="child"></span>'),P.current.margin[2]+=Math.abs(j(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](n)}}},C.fn.fancybox=function(o){function e(e){var t,i,n=C(this).blur(),s=l;e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||n.is(".fancybox-wrap")||(t=o.groupAttr||"data-fancybox-group",(i=n.attr(t))||(t="rel",i=n.get(0)[t]),i&&""!==i&&"nofollow"!==i&&(s=(n=(n=a.length?C(a):r).filter("["+t+'="'+i+'"]')).index(this)),o.index=s,!1===P.open(n,o))||e.preventDefault()}var r=C(this),a=this.selector||"",l=(o=o||{}).index||0;return a&&!1!==o.live?c.undelegate(a,"click.fb-start").delegate(a+":not('.fancybox-item, .fancybox-nav')","click.fb-start",e):r.unbind("click.fb-start").bind("click.fb-start",e),this.filter("[data-fancybox-start=1]").trigger("click"),this},c.ready(function(){var e,t,i;C.scrollbarWidth===d&&(C.scrollbarWidth=function(){var e=C('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),t=(t=e.children()).innerWidth()-t.height(99).innerWidth();return e.remove(),t}),C.support.fixedPosition===d&&(e=C.support,i=20===(t=C('<div style="position:fixed;top:20px;"></div>').appendTo("body"))[0].offsetTop||15===t[0].offsetTop,t.remove(),e.fixedPosition=i),C.extend(P.defaults,{scrollbarWidth:C.scrollbarWidth(),fixed:C.support.fixedPosition,parent:C("body")}),e=C(n).width(),s.addClass("fancybox-lock-test"),t=C(n).width(),s.removeClass("fancybox-lock-test"),C("<style type='text/css'>.fancybox-margin{margin-right:"+(t-e)+"px;}</style>").appendTo("head")})})(window,document,jQuery),(e=>{"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)})(function(re){var ae="left",le="right",ce="up",de="down",he="in",ue="out",pe="none",fe="auto",ge="swipe",me="pinch",_e="tap",ve="doubletap",ye="longtap",be="horizontal",we="vertical",ke="all",xe=10,Te="start",$e="move",Ce="end",Se="cancel",je="ontouchstart"in window,Ee=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,Pe=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,Ae="TouchSwipe";function n(N,l){var e=je||Pe||!l.fallbackToMouseEvents,t=e?Pe?Ee?"MSPointerDown":"pointerdown":"touchstart":"mousedown",i=e?Pe?Ee?"MSPointerMove":"pointermove":"touchmove":"mousemove",n=e?Pe?Ee?"MSPointerUp":"pointerup":"touchend":"mouseup",s=e?null:"mouseleave",o=Pe?Ee?"MSPointerCancel":"pointercancel":"touchcancel",c=0,d=null,h=0,u=0,p=0,f=1,g=0,m=0,_=null,r=re(N),v="start",y=0,b=null,w=0,k=0,a=0,x=0,T=0,$=null,C=null;try{r.bind(t,S),r.bind(o,E)}catch(e){re.error("events not supported "+t+","+o+" on jQuery.swipe")}function S(e){var t,i,n,s;if(!0!==r.data(Ae+"_intouch")&&!(0<re(e.target).closest(l.excludedElements,r).length))return s=(n=(t=e.originalEvent||e).touches)?n[0]:t,v=Te,n?y=n.length:e.preventDefault(),m=d=null,f=1,g=p=u=h=c=0,b=(()=>{for(var e=[],t=0;t<=5;t++)e.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return e})(),(e={})[ae]=D(ae),e[le]=D(le),e[ce]=D(ce),e[de]=D(de),_=e,ee(),!n||y===l.fingers||l.fingers===ke||O()?(ie(0,s),w=I(),2==y&&(ie(1,n[1]),u=p=oe(b[0].start,b[1].start)),(l.swipeStatus||l.pinchStatus)&&(i=P(t,v))):i=!1,!1===i?(P(t,v=Se),i):(l.hold&&(C=setTimeout(re.proxy(function(){r.trigger("hold",[t.target]),l.hold&&(i=l.hold.call(r,t,t.target))},this),l.longTapThreshold)),L(!0),null)}function j(e){var t=e.originalEvent||e;if(v!==Ce&&v!==Se&&!te()){var i,n=t.touches,s=ne(n?n[0]:t);if(k=I(),n&&(y=n.length),l.hold&&clearTimeout(C),v=$e,2==y&&(0==u?(ie(1,n[1]),u=p=oe(b[0].start,b[1].start)):(ne(n[1]),p=oe(b[0].end,b[1].end),b[0].end,b[1].end,m=f<1?ue:he),f=(p/u*1).toFixed(2),g=Math.abs(u-p)),y===l.fingers||l.fingers===ke||!n||O()){d=((e,t)=>(e=((e,t)=>{var i=e.x-t.x,t=t.y-e.y,e=Math.atan2(t,i);return t=(t=Math.round(180*e/Math.PI))<0?360-Math.abs(t):t})(e,t))<=45&&0<=e||e<=360&&315<=e?ae:135<=e&&e<=225?le:45<e&&e<135?de:ce)(s.start,s.end);var o,r=e,n=d;if(!1!==l.preventDefaultEvents)if(l.allowPageScroll===pe)r.preventDefault();else{var a=l.allowPageScroll===fe;switch(n){case ae:(l.swipeLeft&&a||!a&&l.allowPageScroll!=be)&&r.preventDefault();break;case le:(l.swipeRight&&a||!a&&l.allowPageScroll!=be)&&r.preventDefault();break;case ce:(l.swipeUp&&a||!a&&l.allowPageScroll!=we)&&r.preventDefault();break;case de:(l.swipeDown&&a||!a&&l.allowPageScroll!=we)&&r.preventDefault()}}e=s.start,n=s.end,c=Math.round(Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))),h=k-w,n=d,e=c,e=Math.max(e,se(n)),_[n].distance=e,(l.swipeStatus||l.pinchStatus)&&(i=P(t,v)),l.triggerOnTouchEnd&&!l.triggerOnTouchLeave||(n=!0,l.triggerOnTouchLeave&&(o={left:(o=(e=re(e=this)).offset()).left,right:o.left+e.outerWidth(),top:o.top,bottom:o.top+e.outerHeight()},e=s.end,s=o,n=e.x>s.left&&e.x<s.right&&e.y>s.top&&e.y<s.bottom),!l.triggerOnTouchEnd&&n?v=R($e):l.triggerOnTouchLeave&&!n&&(v=R(Ce)),v!=Se&&v!=Ce)||P(t,v)}else P(t,v=Se);!1===i&&P(t,v=Se)}}function M(e){var t=e.originalEvent||e,i=t.touches;return i&&i.length?(a=I(),x=event.touches.length+1,!0):(te()&&(y=x),k=I(),h=k-w,W()||!F()?P(t,v=Se):l.triggerOnTouchEnd||0==l.triggerOnTouchEnd&&v===$e?(e.preventDefault(),P(t,v=Ce)):!l.triggerOnTouchEnd&&G()?A(t,v=Ce,_e):v===$e&&P(t,v=Se),L(!1),null)}function E(){p=u=w=k=y=0,ee(),L(!(f=1))}function q(e){e=e.originalEvent||e;l.triggerOnTouchLeave&&P(e,v=R(Ce))}function H(){r.unbind(t,S),r.unbind(o,E),r.unbind(i,j),r.unbind(n,M),s&&r.unbind(s,q),L(!1)}function R(e){var t=e,i=z(),n=F(),s=W();return!i||s?t=Se:!n||e!=$e||l.triggerOnTouchEnd&&!l.triggerOnTouchLeave?!n&&e==Ce&&l.triggerOnTouchLeave&&(t=Se):t=Ce,t}function P(e,t){var i,n=e.touches;return Y()||X()||V()||O()?((Y()||X())&&(i=A(e,t,ge)),(V()||O())&&!1!==i&&(i=A(e,t,me))):Z()&&J()&&!1!==i?i=A(e,t,ve):h>l.longTapThreshold&&c<xe&&l.longTap&&!1!==i?i=A(e,t,ye):1!==y&&je||!(isNaN(c)||c<l.threshold)||!G()||!1===i||(i=A(e,t,_e)),t===Se&&E(),t!==Ce||n&&n.length||E(),i}function A(e,t,i){var n;if(i==ge){if(r.trigger("swipeStatus",[t,d||null,c||0,h||0,y,b]),l.swipeStatus&&!1===(n=l.swipeStatus.call(r,e,t,d||null,c||0,h||0,y,b)))return!1;if(t==Ce&&U()){if(r.trigger("swipe",[d,c,h,y,b]),l.swipe&&!1===(n=l.swipe.call(r,e,d,c,h,y,b)))return!1;switch(d){case ae:r.trigger("swipeLeft",[d,c,h,y,b]),l.swipeLeft&&(n=l.swipeLeft.call(r,e,d,c,h,y,b));break;case le:r.trigger("swipeRight",[d,c,h,y,b]),l.swipeRight&&(n=l.swipeRight.call(r,e,d,c,h,y,b));break;case ce:r.trigger("swipeUp",[d,c,h,y,b]),l.swipeUp&&(n=l.swipeUp.call(r,e,d,c,h,y,b));break;case de:r.trigger("swipeDown",[d,c,h,y,b]),l.swipeDown&&(n=l.swipeDown.call(r,e,d,c,h,y,b))}}}if(i==me){if(r.trigger("pinchStatus",[t,m||null,g||0,h||0,y,f,b]),l.pinchStatus&&!1===(n=l.pinchStatus.call(r,e,t,m||null,g||0,h||0,y,f,b)))return!1;if(t==Ce&&B())switch(m){case he:r.trigger("pinchIn",[m||null,g||0,h||0,y,f,b]),l.pinchIn&&(n=l.pinchIn.call(r,e,m||null,g||0,h||0,y,f,b));break;case ue:r.trigger("pinchOut",[m||null,g||0,h||0,y,f,b]),l.pinchOut&&(n=l.pinchOut.call(r,e,m||null,g||0,h||0,y,f,b))}}return i==_e?t!==Se&&t!==Ce||(clearTimeout($),clearTimeout(C),J()&&!Z()?(T=I(),$=setTimeout(re.proxy(function(){T=null,r.trigger("tap",[e.target]),l.tap&&(n=l.tap.call(r,e,e.target))},this),l.doubleTapThreshold)):(T=null,r.trigger("tap",[e.target]),l.tap&&(n=l.tap.call(r,e,e.target)))):i==ve?t!==Se&&t!==Ce||(clearTimeout($),T=null,r.trigger("doubletap",[e.target]),l.doubleTap&&(n=l.doubleTap.call(r,e,e.target))):i!=ye||t!==Se&&t!==Ce||(clearTimeout($),T=null,r.trigger("longtap",[e.target]),l.longTap&&(n=l.longTap.call(r,e,e.target))),n}function F(){var e=!0;return e=null!==l.threshold?c>=l.threshold:e}function W(){var e=!1;return e=null!==l.cancelThreshold&&null!==d?se(d)-c>=l.cancelThreshold:e}function z(){var e=!(l.maxTimeThreshold&&h>=l.maxTimeThreshold);return e}function B(){var e=K(),t=Q(),i=null===l.pinchThreshold||g>=l.pinchThreshold;return e&&t&&i}function O(){return l.pinchStatus||l.pinchIn||l.pinchOut}function V(){return B()&&O()}function U(){var e=z(),t=F(),i=K(),n=Q();return!W()&&n&&i&&t&&e}function X(){return l.swipe||l.swipeStatus||l.swipeLeft||l.swipeRight||l.swipeUp||l.swipeDown}function Y(){return U()&&X()}function K(){return y===l.fingers||l.fingers===ke||!je}function Q(){return 0!==b[0].end.x}function G(){return!!l.tap}function J(){return!!l.doubleTap}function Z(){var e;return null!=T&&(e=I(),J())&&e-T<=l.doubleTapThreshold}function ee(){x=a=0}function te(){var e=!1;return e=a&&I()-a<=l.fingerReleaseThreshold?!0:e}function L(e){!0===e?(r.bind(i,j),r.bind(n,M),s&&r.bind(s,q)):(r.unbind(i,j,!1),r.unbind(n,M,!1),s&&r.unbind(s,q,!1)),r.data(Ae+"_intouch",!0===e)}function ie(e,t){var i=void 0!==t.identifier?t.identifier:0;b[e].identifier=i,b[e].start.x=b[e].end.x=t.pageX||t.clientX,b[e].start.y=b[e].end.y=t.pageY||t.clientY,b[e]}function ne(e){var t=(e=>{for(var t=0;t<b.length;t++)if(b[t].identifier==e)return b[t]})(void 0!==e.identifier?e.identifier:0);return t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function se(e){if(_[e])return _[e].distance}function D(e){return{direction:e,distance:0}}function oe(e,t){var i=Math.abs(e.x-t.x),e=Math.abs(e.y-t.y);return Math.round(Math.sqrt(i*i+e*e))}function I(){return(new Date).getTime()}this.enable=function(){return r.bind(t,S),r.bind(o,E),r},this.disable=function(){return H(),r},this.destroy=function(){H(),r.data(Ae,null),r=null},this.option=function(e,t){if(void 0!==l[e]){if(void 0===t)return l[e];l[e]=t}else re.error("Option "+e+" does not exist on jQuery.swipe.options");return null}}re.fn.swipe=function(e){var t=re(this),i=t.data(Ae);if(i&&"string"==typeof e){if(i[e])return i[e].apply(this,Array.prototype.slice.call(arguments,1));re.error("Method "+e+" does not exist on jQuery.swipe")}else if(!(i||"object"!=typeof e&&e))return function(i){!i||void 0!==i.allowPageScroll||void 0===i.swipe&&void 0===i.swipeStatus||(i.allowPageScroll=pe);void 0!==i.click&&void 0===i.tap&&(i.tap=i.click);i=i||{};return i=re.extend({},re.fn.swipe.defaults,i),this.each(function(){var e,t=re(this);t.data(Ae)||(e=new n(this,i),t.data(Ae,e))})}.apply(this,arguments);return t},re.fn.swipe.version="1.6.9",re.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0},re.fn.swipe.phases={PHASE_START:Te,PHASE_MOVE:$e,PHASE_END:Ce,PHASE_CANCEL:Se},re.fn.swipe.directions={LEFT:ae,RIGHT:le,UP:ce,DOWN:de,IN:he,OUT:ue},re.fn.swipe.pageScroll={NONE:pe,HORIZONTAL:be,VERTICAL:we,AUTO:fe},re.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:ke}}),function(){var a,o,n,r,l={}.hasOwnProperty;function i(e,t){this.form_field=e,this.options=null!=t?t:{},i.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}function e(){this.options_index=0,this.parsed=[]}e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,i,n,s,o,r=this.parsed.length;for(this.parsed.push({array_index:r,group:!0,label:this.escapeExpression(e.label),children:0,disabled:e.disabled}),o=[],i=0,n=(s=e.childNodes).length;i<n;i++)t=s[i],o.push(this.add_option(t,r,e.disabled));return o},e.prototype.add_option=function(e,t,i){return"OPTION"===e.nodeName.toUpperCase()?(""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,selected:e.selected,disabled:!0===i?i:e.disabled,group_array_index:t,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},e.prototype.escapeExpression=function(e){var t;return null==e||!1===e?"":/[\&\<\>\"\'\`]/.test(e)?(t={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},e.replace(/&(?!\w+;)|[\<\>\"\'\`]/g,function(e){return t[e]||"&amp;"})):e},(r=e).select_to_array=function(e){for(var t,i=new r,n=e.childNodes,s=0,o=n.length;s<o;s++)t=n[s],i.add_node(t);return i.parsed},i.prototype.set_default_values=function(){var t=this;return this.click_test_action=function(e){return t.test_active_click(e)},this.activate_action=function(e){return t.activate_field(e)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.result_single_selected=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options},i.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||i.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||i.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||i.default_no_result_text},i.prototype.mouse_enter=function(){return this.mouse_on_container=!0},i.prototype.mouse_leave=function(){return this.mouse_on_container=!1},i.prototype.input_focus=function(){var e=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return e.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},i.prototype.input_blur=function(){var e=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return e.blur_test()},100))},i.prototype.results_option_build=function(e){for(var t,i="",n=this.results_data,s=0,o=n.length;s<o;s++)i+=(t=n[s]).group?this.result_add_group(t):this.result_add_option(t),null!=e&&e.first&&(t.selected&&this.is_multiple?this.choice_build(t):t.selected&&!this.is_multiple&&this.single_set_selected_text(t.text));return i},i.prototype.result_add_option=function(e){var t,i;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),i=""!==e.style.cssText?' style="'+e.style+'"':"",'<li class="'+t.join(" ")+'"'+i+' data-option-array-index="'+e.array_index+'">'+e.search_text+"</li>"):""},i.prototype.result_add_group=function(e){return(e.search_match||e.group_match)&&0<e.active_options?'<li class="group-result">'+e.search_text+"</li>":""},i.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.result_single_selected=null,this.results_build(),this.results_showing?this.winnow_results():void 0},i.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},i.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},i.prototype.winnow_results=function(){var e,t,i,n,s,o,r,a,l,c,d,h,u;for(this.no_results_clear(),s=0,e=(r=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),n=this.search_contains?"":"^",i=new RegExp(n+e,"i"),c=new RegExp(e,"i"),d=0,h=(u=this.results_data).length;d<h;d++)(t=u[d]).search_match=!1,o=null,this.include_option_in_results(t)&&(t.group&&(t.group_match=!1,t.active_options=0),null!=t.group_array_index&&this.results_data[t.group_array_index]&&(0===(o=this.results_data[t.group_array_index]).active_options&&o.search_match&&(s+=1),o.active_options+=1),!t.group||this.group_search)&&(t.search_text=t.group?t.label:t.html,t.search_match=this.search_string_match(t.search_text,i),t.search_match&&!t.group&&(s+=1),t.search_match?(r.length&&(a=t.search_text.search(c),l=t.search_text.substr(0,a+r.length)+"</em>"+t.search_text.substr(a+r.length),t.search_text=l.substr(0,a)+"<em>"+l.substr(a)),null!=o&&(o.group_match=!0)):null!=t.group_array_index&&this.results_data[t.group_array_index].search_match&&(t.search_match=!0));return this.result_clear_highlight(),s<1&&r.length?(this.update_results_content(""),this.no_results(r)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},i.prototype.search_string_match=function(e,t){var i,n,s,o;if(t.test(e))return!0;if(this.enable_split_word_search&&(0<=e.indexOf(" ")||0===e.indexOf("["))&&(n=e.replace(/\[|\]/g,"").split(" ")).length)for(s=0,o=n.length;s<o;s++)if(i=n[s],t.test(i))return!0},i.prototype.choices_count=function(){var e,t,i;if(null==this.selected_option_count)for(e=this.selected_option_count=0,t=(i=this.form_field.options).length;e<t;e++)i[e].selected&&(this.selected_option_count+=1);return this.selected_option_count},i.prototype.choices_click=function(e){return e.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},i.prototype.keyup_checker=function(e){var t=null!=(t=e.which)?t:e.keyCode;switch(this.search_field_scale(),t){case 8:if(this.is_multiple&&this.backstroke_length<1&&0<this.choices_count())return this.keydown_backstroke();if(this.pending_backstroke)break;return this.result_clear_highlight(),this.results_search();case 13:if(e.preventDefault(),this.results_showing)return this.result_select(e);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},i.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},i.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected||!this.display_disabled_options&&e.disabled||e.empty)},i.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?8<=document.documentMode:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent))},i.default_multiple_text="Select Some Options",i.default_single_text="Select an Option",i.default_no_result_text="No results match",o=i,(a=jQuery).fn.extend({chosen:function(i){return o.browser_is_supported()?this.each(function(){var e=a(this),t=e.data("chosen");"destroy"===i&&t?t.destroy():t||e.data("chosen",new n(this,i))}):this}}),n=(()=>{function e(){return e.__super__.constructor.apply(this,arguments)}var t,i=e,n=o;function s(){this.constructor=i}for(t in n)l.call(n,t)&&(i[t]=n[t]);return s.prototype=n.prototype,i.prototype=new s,i.__super__=n.prototype,e.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},e.prototype.set_up_html=function(){var e=["chosen-container"];return e.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),e={class:e.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(e.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("<div />",e),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},e.prototype.register_observers=function(){var t=this;return this.container.bind("mousedown.chosen",function(e){t.container_mousedown(e)}),this.container.bind("mouseup.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mouseenter.chosen",function(e){t.mouse_enter(e)}),this.container.bind("mouseleave.chosen",function(e){t.mouse_leave(e)}),this.search_results.bind("mouseup.chosen",function(e){t.search_results_mouseup(e)}),this.search_results.bind("mouseover.chosen",function(e){t.search_results_mouseover(e)}),this.search_results.bind("mouseout.chosen",function(e){t.search_results_mouseout(e)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(e){t.search_results_mousewheel(e)}),this.form_field_jq.bind("chosen:updated.chosen",function(e){t.results_update_field(e)}),this.form_field_jq.bind("chosen:activate.chosen",function(e){t.activate_field(e)}),this.form_field_jq.bind("chosen:open.chosen",function(e){t.container_mousedown(e)}),this.search_field.bind("blur.chosen",function(e){t.input_blur(e)}),this.search_field.bind("keyup.chosen",function(e){t.keyup_checker(e)}),this.search_field.bind("keydown.chosen",function(e){t.keydown_checker(e)}),this.search_field.bind("focus.chosen",function(e){t.input_focus(e)}),this.is_multiple?this.search_choices.bind("click.chosen",function(e){t.choices_click(e)}):this.container.bind("click.chosen",function(e){e.preventDefault()})},e.prototype.destroy=function(){return a(document).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},e.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},e.prototype.container_mousedown=function(e){return this.is_disabled||(e&&"mousedown"===e.type&&!this.results_showing&&e.preventDefault(),null!=e&&a(e.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!e||a(e.target)[0]!==this.selected_item[0]&&!a(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(document).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},e.prototype.container_mouseup=function(e){return"ABBR"!==e.target.nodeName||this.is_disabled?void 0:this.results_reset(e)},e.prototype.search_results_mousewheel=function(e){var t=-(null!=(t=e.originalEvent)?t.wheelDelta:void 0)||(null!=(t=e.originialEvent)?t.detail:void 0);return null!=t?(e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())):void 0},e.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},e.prototype.close_field=function(){return a(document).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},e.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},e.prototype.test_active_click=function(e){return this.container.is(a(e.target).closest(".chosen-container"))?this.active_field=!0:this.close_field()},e.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=r.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.is_multiple,this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},e.prototype.result_do_highlight=function(e){var t,i,n;if(e.length)return this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),(e=parseInt(this.search_results.css("maxHeight"),10))+(n=this.search_results.scrollTop())<=(t=(i=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight())?this.search_results.scrollTop(0<t-e?t-e:0):i<n?this.search_results.scrollTop(i):void 0},e.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},e.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results())},e.prototype.update_results_content=function(e){return this.search_results.html(e)},e.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},e.prototype.set_tab_index=function(){var e;return this.form_field.tabIndex?(e=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=e):void 0},e.prototype.set_label_behavior=function(){var t=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),0<this.form_field_label.length?this.form_field_label.bind("click.chosen",function(e){return t.is_multiple?t.container_mousedown(e):t.activate_field()}):void 0},e.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},e.prototype.search_results_mouseup=function(e){var t=a(e.target).hasClass("active-result")?a(e.target):a(e.target).parents(".active-result").first();return t.length?(this.result_highlight=t,this.result_select(e),this.search_field.focus()):void 0},e.prototype.search_results_mouseover=function(e){e=a(e.target).hasClass("active-result")?a(e.target):a(e.target).parents(".active-result").first();return e?this.result_do_highlight(e):void 0},e.prototype.search_results_mouseout=function(e){return a(e.target).hasClass("active-result")?this.result_clear_highlight():void 0},e.prototype.choice_build=function(e){var t=this,i=a("<li />",{class:"search-choice"}).html("<span>"+e.html+"</span>");return e.disabled?i.addClass("search-choice-disabled"):((e=a("<a />",{class:"search-choice-close","data-option-array-index":e.array_index})).bind("click.chosen",function(e){return t.choice_destroy_link_click(e)}),i.append(e)),this.search_container.before(i)},e.prototype.choice_destroy_link_click=function(e){return e.preventDefault(),e.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(a(e.target))},e.prototype.choice_destroy=function(e){return this.result_deselect(e[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&0<this.choices_count()&&this.search_field.val().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()):void 0},e.prototype.results_reset=function(){return this.form_field.options[0].selected=!0,this.selected_option_count=null,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},e.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},e.prototype.result_select=function(e){var t,i;return this.result_highlight?(t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):(this.result_single_selected&&(this.result_single_selected.removeClass("result-selected"),i=this.result_single_selected[0].getAttribute("data-option-array-index"),this.results_data[i].selected=!1),this.result_single_selected=t),t.addClass("result-selected"),(i=this.results_data[t[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[i.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(i):this.single_set_selected_text(i.text),(e.metaKey||e.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),!this.is_multiple&&this.form_field.selectedIndex===this.current_selectedIndex||this.form_field_jq.trigger("change",{selected:this.form_field.options[i.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},e.prototype.single_set_selected_text=function(e){return(e=null==e?this.default_text:e)===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(e)},e.prototype.result_deselect=function(e){e=this.results_data[e];return!this.form_field.options[e.options_index].disabled&&(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},e.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},e.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":a("<div/>").text(a.trim(this.search_field.val())).html()},e.prototype.winnow_results_set_highlight=function(){var e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),e=(e.length?e:this.search_results.find(".active-result")).first();return null!=e?this.result_do_highlight(e):void 0},e.prototype.no_results=function(e){var t=a('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>');return t.find("span").first().html(e),this.search_results.append(t)},e.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},e.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},e.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(0<this.choices_count()&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},e.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last()).length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},e.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},e.prototype.keydown_checker=function(e){var t=null!=(t=e.which)?t:e.keyCode;switch(this.search_field_scale(),8!==t&&this.pending_backstroke&&this.clear_backstroke(),t){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},e.prototype.search_field_scale=function(){var e,t,i,n,s,o,r;if(this.is_multiple){for(i="position:absolute; left: -1000px; top: -1000px; display:none;",o=s=0,r=(n=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"]).length;o<r;o++)i+=(t=n[o])+":"+this.search_field.css(t)+";";return(e=a("<div />",{style:i})).text(this.search_field.val()),a("body").append(e),s=e.width()+25,e.remove(),e=this.container.outerWidth(),this.search_field.css({width:(s=e-10<s?e-10:s)+"px"})}},e})()}.call(this),(n=>{function s(e,t){this.element=n(e),this.is_loading=!1,this.settings=n.extend({auto_load:!0,nav_selector:"#load_next_link",next_selector:"#load_next_link a",loading_html:"Loading...",on_content_loaded:null,debug:!1},t||{}),this.init()}s.prototype.init=function(){var e=this;this.settings.auto_load&&(n(window).scroll(function(){e.check_scroll_position()}),e.check_scroll_position()),this.bind_click()},s.prototype.bind_click=function(){var t=this;t.element.on("click",t.settings.next_selector,function(e){e.preventDefault(),t.settings.debug&&console.log("click on next"),t.load(e.target)})},s.prototype.check_scroll_position=function(){var e=n(window).scrollTop()+n(window).height(),t=n(this.settings.nav_selector);0<t.length&&e>=t.offset().top&&this.load()},s.prototype.load=function(e){var t,i=this;!this.is_loading&&(this.is_loading=!0,t=n(e).attr("href"))&&(this.settings.debug&&console.log("Loading: "+t),n(e).closest(this.settings.nav_selector).remove(),n(this.element).append('<span id="ajax_loader">'+this.settings.loading_html+"</span>"),n.ajax({type:"get",url:t}).done(function(e){i.is_loading=!1,n("#ajax_loader").remove(),n(i.element).append(e),i.bind_click(),"function"==typeof i.settings.on_content_loaded&&i.settings.on_content_loaded()}))},n.fn.wh_ajax_loader=function(i){return this.each(function(){var e,t=n(this);t.data("wh_ajax_loader")||(e=new s(this,i),t.data("wh_ajax_loader",e))})}})(jQuery),jQuery.fn.wh_typeahead=function(c){c=$.extend({},{ajaxurl:"/ajax/typeahead",searchparameter:"s",width:0,left:0,top:0,nav_id:1,page_id:1,fachbereich:0,container:"body",sprache:"de",defaultstring:"Suchen ..."},c);return $(this).each(function(){var t=$(this),i=new Object,n=-1,s=!1,o=!0,r="string"==typeof c.width?c.width:0<c.width?c.width+"px":t.width()+"px",a=!1!==c.top?c.top:t.offset().top+t.height()+2,l=(!1!==c.right?c:t.offset()).right;"Suchen ..."==c.defaultstring&&("de"==c.sprache?c.defaultstring="Suchen ...":c.defaultstring="Search ..."),t.attr({autocomplete:"off",value:c.defaultstring}),t.focus(function(){$(this).attr("value")==c.defaultstring?($(this).attr("value",""),$(this).addClass("placeholder")):$(this).removeClass("placeholder"),s=!1,2<=t.val().length&&(0==$("#ajax_results").length&&(window.clearTimeout(i.ajax_result),$(c.container).append('<div id="ajax_results"></div>'),$("#ajax_results").css({position:"absolute",right:l+"px",top:a+"px",width:r,"z-index":210,display:"none"})),0<$("#ajax_results").length)&&("none"==$("#ajax_results").css("display")&&$("#ajax_results").slideDown(),$("#ajax_results").hover(function(){o=!1},function(){o=!0,i.ajax_result=window.setTimeout(function(){$("#ajax_results")&&s&&o&&$("#ajax_results").fadeOut()},300)}))}),t.blur(function(){""==$(this).attr("value")&&($(this).attr("value",c.defaultstring),$(this).addClass("placeholder")),s=!0,i.ajax_result=window.setTimeout(function(){$("#ajax_results")&&s&&o&&$("#ajax_results").fadeOut()},300)}),t.keyup(function(e){e=e.charCode||e.keyCode||0;37!=e&&38!=e&&39!=e&&40!=e&&13!=e&&(window.clearTimeout(i.ajax_search),i.ajax_search=window.setTimeout(function(){var e;2<=t.val().length&&(e=new Date,$.ajax({type:"GET",url:c.ajaxurl,data:c.searchparameter+"="+encodeURIComponent(t.val())+"&timestamp="+encodeURIComponent(+e)+"&page_id="+c.page_id+"&nav_id="+c.nav_id+"&sprache="+c.sprache+"&fachbereich="+c.fachbereich,success:function(e,t){n=-1,0==$("#ajax_results").length&&(window.clearTimeout(i.ajax_result),$(c.container).append('<div id="ajax_results"></div>'),$("#ajax_results").css({position:"absolute",right:l+"px",top:a+"px",width:r,"z-index":210,display:"none"})),"true"==$("success",e).text()?$("#ajax_results").html($("results",e).text()):"false"==$("success",e).text()&&$("#ajax_results").html($("message",e).text()),"none"==$("#ajax_results").css("display")&&$("#ajax_results").slideDown(),$("#ajax_results").hover(function(){o=!1},function(){o=!0,i.ajax_result=window.setTimeout(function(){$("#ajax_results")&&s&&o&&$("#ajax_results").fadeOut()},300)})},error:function(e,t,i){}}))},200))}),t.keydown(function(e){e=e.charCode||e.keyCode||0;if(40==e&&0!=$("#ajax_results").length)-1==n||($("#ajax_results a:eq("+n+")").removeClass("ajaxfocus"),n==$("#ajax_results a").length-1)?n=0:n++,$("#ajax_results a:eq("+n+")").addClass("ajaxfocus");else if(38==e)-1==n?n=0:($("#ajax_results a:eq("+n+")").removeClass("ajaxfocus"),0==n?n=$("#ajax_results a").length-1:n--),$("#ajax_results a:eq("+n+")").addClass("ajaxfocus");else if(13==e&&-1!=n)return window.location.href=$("#ajax_results a:eq("+n+")").attr("href"),!1})}),this},(u=>{u.fn.hoverIntent=function(e,t,i){function n(e){var t=jQuery.extend({},e),i=this;i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),"mouseenter"==e.type?(r=t.pageX,a=t.pageY,u(i).on("mousemove.hoverIntent",c),1!=i.hoverIntent_s&&(i.hoverIntent_t=setTimeout(function(){d(t,i)},l.interval))):(u(i).off("mousemove.hoverIntent",c),1==i.hoverIntent_s&&(i.hoverIntent_t=setTimeout(function(){h(t,i)},l.timeout)))}var s,o,r,a,l={interval:100,sensitivity:7,timeout:0},l="object"==typeof e?u.extend(l,e):u.isFunction(t)?u.extend(l,{over:e,out:t,selector:i}):u.extend(l,{over:e,out:e,selector:t}),c=function(e){s=e.pageX,o=e.pageY},d=function(e,t){if(t.hoverIntent_t=clearTimeout(t.hoverIntent_t),Math.abs(r-s)+Math.abs(a-o)<l.sensitivity)return u(t).off("mousemove.hoverIntent",c),t.hoverIntent_s=1,l.over.apply(t,[e]);r=s,a=o,t.hoverIntent_t=setTimeout(function(){d(e,t)},l.interval)},h=function(e,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,l.out.apply(t,[e])};return this.on({"mouseenter.hoverIntent":n,"mouseleave.hoverIntent":n},l.selector)}})(jQuery),(u=>{var t=[],l=/^url\(["']?([^"'\)]*)["']?\);?$/i,c=/\.png$/i,d=!!window.createPopup&&"undefined"==document.documentElement.currentStyle.minWidth;u(window).resize(function(){u.each(t,function(){this.refresh(!0)})}),u.Poshytip=function(e,t){this.$elm=u(e),this.opts=u.extend({},u.fn.poshytip.defaults,t),this.$tip=u(['<div class="',this.opts.className,'">','<div class="tip-inner tip-bg-image"></div>','<div class="tip-arrow tip-arrow-top tip-arrow-right tip-arrow-bottom tip-arrow-left"></div>',"</div>"].join("")).appendTo(document.body),this.$arrow=this.$tip.find("div.tip-arrow"),this.$inner=this.$tip.find("div.tip-inner"),this.disabled=!1,this.content=null,this.init()},u.Poshytip.prototype={init:function(){t.push(this);var e=this.$elm.attr("title");if(this.$elm.data("title.poshytip",void 0!==e?e:null).data("poshytip",this),"none"!=this.opts.showOn)switch(this.$elm.bind({"mouseenter.poshytip":u.proxy(this.mouseenter,this),"mouseleave.poshytip":u.proxy(this.mouseleave,this)}),this.opts.showOn){case"hover":"cursor"==this.opts.alignTo&&this.$elm.bind("mousemove.poshytip",u.proxy(this.mousemove,this)),this.opts.allowTipHover&&this.$tip.hover(u.proxy(this.clearTimeouts,this),u.proxy(this.mouseleave,this));break;case"focus":this.$elm.bind({"focus.poshytip":u.proxy(this.showDelayed,this),"blur.poshytip":u.proxy(this.hideDelayed,this)})}},mouseenter:function(e){return!!this.disabled||(this.$elm.attr("title",""),"focus"==this.opts.showOn)||void this.showDelayed()},mouseleave:function(e){return!!(this.disabled||this.asyncAnimating&&(this.$tip[0]===e.relatedTarget||jQuery.contains(this.$tip[0],e.relatedTarget)))||(this.$tip.data("active")||null!==(e=this.$elm.data("title.poshytip"))&&this.$elm.attr("title",e),"focus"==this.opts.showOn)||void this.hideDelayed()},mousemove:function(e){if(this.disabled)return!0;this.eventX=e.pageX,this.eventY=e.pageY,this.opts.followCursor&&this.$tip.data("active")&&(this.calcPos(),this.$tip.css({left:this.pos.l,top:this.pos.t}),this.pos.arrow)&&(this.$arrow[0].className="tip-arrow tip-arrow-"+this.pos.arrow)},show:function(){this.disabled||this.$tip.data("active")||(this.reset(),this.update(),this.content&&(this.display(),this.opts.timeOnScreen)&&this.hideDelayed(this.opts.timeOnScreen))},showDelayed:function(e){this.clearTimeouts(),this.showTimeout=setTimeout(u.proxy(this.show,this),"number"==typeof e?e:this.opts.showTimeout)},hide:function(){!this.disabled&&this.$tip.data("active")&&this.display(!0)},hideDelayed:function(e){this.clearTimeouts(),this.hideTimeout=setTimeout(u.proxy(this.hide,this),"number"==typeof e?e:this.opts.hideTimeout)},reset:function(){this.$tip.queue([]).detach().css("visibility","hidden").data("active",!1),this.$inner.find("*").poshytip("hide"),this.opts.fade&&this.$tip.css("opacity",this.opacity),this.$arrow[0].className="tip-arrow tip-arrow-top tip-arrow-right tip-arrow-bottom tip-arrow-left",this.asyncAnimating=!1},update:function(e,t){if(!this.disabled){var i=void 0!==e;if(i){if(t||(this.opts.content=e),!this.$tip.data("active"))return}else e=this.opts.content;var n=this,t="function"==typeof e?e.call(this.$elm[0],function(e){n.update(e)}):"[title]"==e?this.$elm.data("title.poshytip"):e;this.content!==t&&(this.$inner.empty().append(t),this.content=t),this.refresh(i)}},refresh:function(e){if(!this.disabled){if(e){if(!this.$tip.data("active"))return;var t={left:this.$tip.css("left"),top:this.$tip.css("top")}}this.$tip.css({left:0,top:0}).appendTo(document.body),void 0===this.opacity&&(this.opacity=this.$tip.css("opacity"));var i,n,s,o,r=this.$tip.css("background-image").match(l),a=this.$arrow.css("background-image").match(l),r=(r&&(i=c.test(r[1]),d&&i?(this.$tip.css("background-image","none"),this.$inner.css({margin:0,border:0,padding:0}),r=i=!1):this.$tip.prepend('<table class="tip-table" border="0" cellpadding="0" cellspacing="0"><tr><td class="tip-top tip-bg-image" colspan="2"><span></span></td><td class="tip-right tip-bg-image" rowspan="2"><span></span></td></tr><tr><td class="tip-left tip-bg-image" rowspan="2"><span></span></td><td></td></tr><tr><td class="tip-bottom tip-bg-image" colspan="2"><span></span></td></tr></table>').css({border:0,padding:0,"background-image":"none","background-color":"transparent"}).find(".tip-bg-image").css("background-image",'url("'+r[1]+'")').end().find("td").eq(3).append(this.$inner),i)&&!u.support.opacity&&(this.opts.fade=!1),a&&!u.support.opacity&&(d&&c.test(a[1])&&(a=!1,this.$arrow.css("background-image","none")),this.opts.fade=!1),this.$tip.find("> table.tip-table"));d?(this.$tip[0].style.width="",r.width("auto").find("td").eq(3).width("auto"),i=this.$tip.width(),n=parseInt(this.$tip.css("min-width")),s=parseInt(this.$tip.css("max-width")),!isNaN(n)&&i<n?i=n:!isNaN(s)&&s<i&&(i=s),this.$tip.add(r).width(i).eq(0).find("td").eq(3).width("100%")):r[0]&&r.width("auto").find("td").eq(3).width("auto").end().end().width(document.defaultView&&document.defaultView.getComputedStyle&&parseFloat(document.defaultView.getComputedStyle(this.$tip[0],null).width)||this.$tip.width()).find("td").eq(3).width("100%"),this.tipOuterW=this.$tip.outerWidth(),this.tipOuterH=this.$tip.outerHeight(),this.calcPos(),a&&this.pos.arrow&&(this.$arrow[0].className="tip-arrow tip-arrow-"+this.pos.arrow,this.$arrow.css("visibility","inherit")),e&&this.opts.refreshAniDuration?(this.asyncAnimating=!0,(o=this).$tip.css(t).animate({left:this.pos.l,top:this.pos.t},this.opts.refreshAniDuration,function(){o.asyncAnimating=!1})):this.$tip.css({left:this.pos.l,top:this.pos.t})}},display:function(e){var t,i,n,s,o,r=this.$tip.data("active");r&&!e||!r&&e||(this.$tip.stop(),(this.opts.slide&&this.pos.arrow||this.opts.fade)&&(e&&this.opts.hideAniDuration||!e&&this.opts.showAniDuration)&&(t={},i={},this.opts.slide&&this.pos.arrow&&(n="bottom"==this.pos.arrow||"top"==this.pos.arrow?(o="top","bottom"):(o="left","right"),s=parseInt(this.$tip.css(o)),t[o]=s+(e?0:this.pos.arrow==n?-this.opts.slideOffset:this.opts.slideOffset),i[o]=s+(e?this.pos.arrow==n?this.opts.slideOffset:-this.opts.slideOffset:0)+"px"),this.opts.fade&&(t.opacity=e?this.$tip.css("opacity"):0,i.opacity=e?0:this.opacity),this.$tip.css(t).animate(i,this.opts[e?"hideAniDuration":"showAniDuration"])),e?this.$tip.queue(u.proxy(this.reset,this)):this.$tip.css("visibility","inherit"),r&&null!==(o=this.$elm.data("title.poshytip"))&&this.$elm.attr("title",o),this.$tip.data("active",!r))},disable:function(){this.reset(),this.disabled=!0},enable:function(){this.disabled=!1},destroy:function(){this.reset(),this.$tip.remove(),delete this.$tip,this.content=null,this.$elm.unbind(".poshytip").removeData("title.poshytip").removeData("poshytip"),t.splice(u.inArray(this,t),1)},clearTimeouts:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0),this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},calcPos:function(){var e,t,i,n,s,o,r,a,l,c={l:0,t:0,arrow:""},d=u(window),h={l:d.scrollLeft(),t:d.scrollTop(),w:d.width(),h:d.height()};switch("cursor"==this.opts.alignTo?(n=s=o=this.eventX,r=a=l=this.eventY):(e=(d=this.$elm.offset()).left,d=d.top,t=this.$elm.outerWidth(),i=this.$elm.outerHeight(),s=(n=e+("inner-right"!=this.opts.alignX?0:t))+Math.floor(t/2),o=n+("inner-left"!=this.opts.alignX?t:0),a=(r=d+("inner-bottom"!=this.opts.alignY?0:i))+Math.floor(i/2),l=r+("inner-top"!=this.opts.alignY?i:0)),this.opts.alignX){case"right":case"inner-left":c.l=o+this.opts.offsetX,this.opts.keepInViewport&&c.l+this.tipOuterW>h.l+h.w&&(c.l=h.l+h.w-this.tipOuterW),"right"!=this.opts.alignX&&"center"!=this.opts.alignY||(c.arrow="left");break;case"center":c.l=s-Math.floor(this.tipOuterW/2),this.opts.keepInViewport&&(c.l+this.tipOuterW>h.l+h.w?c.l=h.l+h.w-this.tipOuterW:c.l<h.l&&(c.l=h.l));break;default:c.l=n-this.tipOuterW-this.opts.offsetX,this.opts.keepInViewport&&c.l<h.l&&(c.l=h.l),"left"!=this.opts.alignX&&"center"!=this.opts.alignY||(c.arrow="right")}switch(this.opts.alignY){case"bottom":case"inner-top":c.t=l+this.opts.offsetY,c.arrow&&"cursor"!=this.opts.alignTo||(c.arrow="top"),this.opts.keepInViewport&&c.t+this.tipOuterH>h.t+h.h&&(c.t=r-this.tipOuterH-this.opts.offsetY,"top"==c.arrow)&&(c.arrow="bottom");break;case"center":c.t=a-Math.floor(this.tipOuterH/2),this.opts.keepInViewport&&(c.t+this.tipOuterH>h.t+h.h?c.t=h.t+h.h-this.tipOuterH:c.t<h.t&&(c.t=h.t));break;default:c.t=r-this.tipOuterH-this.opts.offsetY,c.arrow&&"cursor"!=this.opts.alignTo||(c.arrow="bottom"),this.opts.keepInViewport&&c.t<h.t&&(c.t=l+this.opts.offsetY,"bottom"==c.arrow)&&(c.arrow="top")}this.pos=c}},u.fn.poshytip=function(e){var t,i;if("string"==typeof e)return t=arguments,i=e,Array.prototype.shift.call(t),"destroy"==i&&(this.die?this.die("mouseenter.poshytip").die("focus.poshytip"):u(document).undelegate(this.selector,"mouseenter.poshytip").undelegate(this.selector,"focus.poshytip")),this.each(function(){var e=u(this).data("poshytip");e&&e[i]&&e[i].apply(e,t)});var n=u.extend({},u.fn.poshytip.defaults,e);if(u("#poshytip-css-"+n.className)[0]||u(['<style id="poshytip-css-',n.className,'" type="text/css">',"div.",n.className,"{visibility:hidden;position:absolute;top:0;left:0;}","div.",n.className," table.tip-table, div.",n.className," table.tip-table td{margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;vertical-align:middle;}","div.",n.className," td.tip-bg-image span{display:block;font:1px/1px sans-serif;height:",n.bgImageFrameSize,"px;width:",n.bgImageFrameSize,"px;overflow:hidden;}","div.",n.className," td.tip-right{background-position:100% 0;}","div.",n.className," td.tip-bottom{background-position:100% 100%;}","div.",n.className," td.tip-left{background-position:0 100%;}","div.",n.className," div.tip-inner{background-position:-",n.bgImageFrameSize,"px -",n.bgImageFrameSize,"px;}","div.",n.className," div.tip-arrow{visibility:hidden;position:absolute;overflow:hidden;font:1px/1px sans-serif;}","</style>"].join("")).appendTo("head"),n.liveEvents&&"none"!=n.showOn){var s,o=u.extend({},n,{liveEvents:!1});switch(n.showOn){case"hover":s=function(){var e=u(this);e.data("poshytip")||e.poshytip(o).poshytip("mouseenter")},this.live?this.live("mouseenter.poshytip",s):u(document).delegate(this.selector,"mouseenter.poshytip",s);break;case"focus":s=function(){var e=u(this);e.data("poshytip")||e.poshytip(o).poshytip("showDelayed")},this.live?this.live("focus.poshytip",s):u(document).delegate(this.selector,"focus.poshytip",s)}return this}return this.each(function(){new u.Poshytip(this,n)})},u.fn.poshytip.defaults={content:"[title]",className:"tip-yellow",bgImageFrameSize:10,showTimeout:500,hideTimeout:100,timeOnScreen:0,showOn:"hover",liveEvents:!1,alignTo:"cursor",alignX:"right",alignY:"top",offsetX:-22,offsetY:18,keepInViewport:!0,allowTipHover:!0,followCursor:!1,fade:!0,slide:!0,slideOffset:8,showAniDuration:300,hideAniDuration:300,refreshAniDuration:200}})(jQuery),((e,t)=>{"function"==typeof define&&define.amd?define(["jquery"],t):e.jQuery?t(e.jQuery):t(e.Zepto)})(this,function(a,r){a.fn.jPlayer=function(i){var e="string"==typeof i,n=Array.prototype.slice.call(arguments,1),s=this;return i=!e&&n.length?a.extend.apply(null,[!0,i].concat(n)):i,e&&"_"===i.charAt(0)||(e?this.each(function(){var e=a(this).data("jPlayer"),t=e&&a.isFunction(e[i])?e[i].apply(e,n):e;if(t!==e&&t!==r)return s=t,!1}):this.each(function(){var e=a(this).data("jPlayer");e?e.option(i||{}):a(this).data("jPlayer",new a.jPlayer(i,this))})),s},a.jPlayer=function(e,t){var i;arguments.length&&(this.element=a(t),this.options=a.extend(!0,{},this.options,e),(i=this).element.bind("remove.jPlayer",function(){i.destroy()}),this._init())},"function"!=typeof a.fn.stop&&(a.fn.stop=function(){}),a.jPlayer.emulateMethods="load play pause",a.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",a.jPlayer.emulateOptions="muted volume",a.jPlayer.reservedEvent="ready flashreset resize repeat error warning",a.jPlayer.event={},a.each("ready flashreset resize repeat click error warning loadstart progress suspend abort emptied stalled play pause loadedmetadata loadeddata waiting playing canplay canplaythrough seeking seeked timeupdate ended ratechange durationchange volumechange".split(" "),function(){a.jPlayer.event[this]="jPlayer_"+this}),a.jPlayer.htmlEvent="loadstart abort emptied stalled loadedmetadata loadeddata canplay canplaythrough".split(" "),a.jPlayer.pause=function(){a.each(a.jPlayer.prototype.instances,function(e,t){t.data("jPlayer").status.srcSet&&t.jPlayer("pause")})},a.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};function e(){this.init()}function t(i){var n,s=a.jPlayer.focus;s&&(a.each(a.jPlayer.keyIgnoreElementNames.split(/\s+/g),function(e,t){if(i.target.nodeName.toUpperCase()===t.toUpperCase())return!(n=!0)}),n||a.each(s.options.keyBindings,function(e,t){if(t&&i.which===t.key&&a.isFunction(t.fn))return i.preventDefault(),t.fn(s),!1}))}e.prototype={init:function(){this.options={timeFormat:a.jPlayer.timeFormat}},time:function(e){var t=new Date(1e3*(e&&"number"==typeof e?e:0)),i=t.getUTCHours();return e=this.options.timeFormat.showHour?t.getUTCMinutes():t.getUTCMinutes()+60*i,t=this.options.timeFormat.showMin?t.getUTCSeconds():t.getUTCSeconds()+60*e,i=this.options.timeFormat.padHour&&i<10?"0"+i:i,e=this.options.timeFormat.padMin&&e<10?"0"+e:e,t=this.options.timeFormat.padSec&&t<10?"0"+t:t,i=""+(this.options.timeFormat.showHour?i+this.options.timeFormat.sepHour:""),(i+=this.options.timeFormat.showMin?e+this.options.timeFormat.sepMin:"")+(this.options.timeFormat.showSec?t+this.options.timeFormat.sepSec:"")}};var i=new e,n=(a.jPlayer.convertTime=function(e){return i.time(e)},a.jPlayer.uaBrowser=function(e){e=e.toLowerCase();return{browser:(e=/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(e)||[])[1]||"",version:e[2]||"0"}},a.jPlayer.uaPlatform=function(e){var t=e.toLowerCase();return e=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(t)||[],t=/(ipad|playbook)/.exec(t)||!/(mobile)/.exec(t)&&/(android)/.exec(t)||[],e[1]&&(e[1]=e[1].replace(/\s/g,"_")),{platform:e[1]||"",tablet:t[1]||""}},a.jPlayer.browser={},a.jPlayer.platform={},a.jPlayer.uaBrowser(navigator.userAgent));n.browser&&(a.jPlayer.browser[n.browser]=!0,a.jPlayer.browser.version=n.version),(n=a.jPlayer.uaPlatform(navigator.userAgent)).platform&&(a.jPlayer.platform[n.platform]=!0,a.jPlayer.platform.mobile=!n.tablet,a.jPlayer.platform.tablet=!!n.tablet),a.jPlayer.getDocMode=function(){var e;return a.jPlayer.browser.msie&&(document.documentMode?e=document.documentMode:(e=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(e=7))),e},a.jPlayer.browser.documentMode=a.jPlayer.getDocMode(),a.jPlayer.nativeFeatures={init:function(){var e,t,i,n=document,s=n.createElement("video"),o={w3c:"fullscreenEnabled fullscreenElement requestFullscreen exitFullscreen fullscreenchange fullscreenerror".split(" "),moz:"mozFullScreenEnabled mozFullScreenElement mozRequestFullScreen mozCancelFullScreen mozfullscreenchange mozfullscreenerror".split(" "),webkit:" webkitCurrentFullScreenElement webkitRequestFullScreen webkitCancelFullScreen webkitfullscreenchange ".split(" "),webkitVideo:"webkitSupportsFullscreen webkitDisplayingFullscreen webkitEnterFullscreen webkitExitFullscreen  ".split(" ")},r=["w3c","moz","webkit","webkitVideo"];for(this.fullscreen=s={support:{w3c:!!n[o.w3c[0]],moz:!!n[o.moz[0]],webkit:"function"==typeof n[o.webkit[3]],webkitVideo:"function"==typeof s[o.webkitVideo[2]]},used:{}},e=0,t=r.length;e<t;e++){var a=r[e];if(s.support[a]){s.spec=a,s.used[a]=!0;break}}s.spec?(i=o[s.spec],s.api={fullscreenEnabled:!0,fullscreenElement:function(e){return(e=e||n)[i[1]]},requestFullscreen:function(e){return e[i[2]]()},exitFullscreen:function(e){return(e=e||n)[i[3]]()}},s.event={fullscreenchange:i[4],fullscreenerror:i[5]}):(s.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},requestFullscreen:function(){},exitFullscreen:function(){}},s.event={})}},a.jPlayer.nativeFeatures.init(),a.jPlayer.focus=null,a.jPlayer.keyIgnoreElementNames="INPUT TEXTAREA";a.jPlayer.keys=function(e){a(document.documentElement).unbind("keydown.jPlayer"),e&&a(document.documentElement).bind("keydown.jPlayer",t)},a.jPlayer.keys(!0),a.jPlayer.prototype={count:0,version:{script:"2.5.0",needFlash:"2.5.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:.8,muted:!1,playbackRate:1,defaultPlaybackRate:1,minPlaybackRate:.5,maxPlaybackRate:4,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",playbackRateBar:".jp-playback-rate-bar",playbackRateBarValue:".jp-playback-rate-bar-value",currentTime:".jp-current-time",duration:".jp-duration",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},smoothPlayBar:!1,fullScreen:!1,fullWindow:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1e3},loop:!1,repeat:function(e){e.jPlayer.options.loop?a(this).unbind(".jPlayerRepeat").bind(a.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){a(this).jPlayer("play")}):a(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullWindow:{msie:/msie [0-6]\./,ipad:/ipad.*?os [0-4]\./,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3]\.(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/,playbook:/playbook/},timeFormat:{},keyEnabled:!1,audioFullScreen:!1,keyBindings:{play:{key:32,fn:function(e){e.status.paused?e.play():e.pause()}},fullScreen:{key:13,fn:function(e){(e.status.video||e.options.audioFullScreen)&&e._setOption("fullScreen",!e.options.fullScreen)}},muted:{key:8,fn:function(e){e._muted(!e.options.muted)}},volumeUp:{key:38,fn:function(e){e.volume(e.options.volume+.1)}},volumeDown:{key:40,fn:function(e){e.volume(e.options.volume-.1)}}},verticalVolume:!1,verticalPlaybackRate:!1,globalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,consoleAlerts:!0,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,videoWidth:0,videoHeight:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,flash:!0},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},m3u8a:{codec:'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',flashCanPlay:!1,media:"audio"},m3ua:{codec:"audio/mpegurl",flashCanPlay:!1,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis, opus"',flashCanPlay:!1,media:"audio"},flac:{codec:"audio/x-flac",flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},m3u8v:{codec:'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!1,media:"video"},m3uv:{codec:"audio/mpegurl",flashCanPlay:!1,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var s=this;if(this.element.empty(),this.status=a.extend({},this.status),this.internal=a.extend({},this.internal),this.options.timeFormat=a.extend({},a.jPlayer.timeFormat,this.options.timeFormat),this.internal.cmdsIgnored=a.jPlayer.platform.ipad||a.jPlayer.platform.iphone||a.jPlayer.platform.ipod,this.internal.domNode=this.element.get(0),this.options.keyEnabled&&!a.jPlayer.focus&&(a.jPlayer.focus=this),this.formats=[],this.solutions=[],this.require={},this.htmlElement={},this.html={},this.html.audio={},this.html.video={},this.flash={},this.css={},this.css.cs={},this.css.jq={},this.ancestorJq=[],this.options.volume=this._limitValue(this.options.volume,0,1),a.each(this.options.supplied.toLowerCase().split(","),function(e,t){var i,n=t.replace(/^\s+|\s+$/g,"");s.format[n]&&(i=!1,a.each(s.formats,function(e,t){if(n===t)return!(i=!0)}),i||s.formats.push(n))}),a.each(this.options.solution.toLowerCase().split(","),function(e,t){var i,n=t.replace(/^\s+|\s+$/g,"");s.solution[n]&&(i=!1,a.each(s.solutions,function(e,t){if(n===t)return!(i=!0)}),i||s.solutions.push(n))}),this.internal.instance="jp_"+this.count,this.instances[this.internal.instance]=this.element,this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count),this.internal.self=a.extend({},{id:this.element.attr("id"),jq:this.element}),this.internal.audio=a.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:r}),this.internal.video=a.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:r}),this.internal.flash=a.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:r,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"Jplayer.swf":"")}),this.internal.poster=a.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:r}),a.each(a.jPlayer.event,function(e,t){s.options[e]!==r&&(s.element.bind(t+".jPlayer",s.options[e]),s.options[e]=r)}),this.require.audio=!1,this.require.video=!1,a.each(this.formats,function(e,t){s.require[s.format[t].media]=!0}),this.options=this.require.video?a.extend(!0,{},this.optionsVideo,this.options):a.extend(!0,{},this.optionsAudio,this.options),this._setSize(),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this.status.noVolume=this._uaBlocklist(this.options.noVolume),a.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled&&this._fullscreenAddEventListeners(),this._restrictNativeVideoControls(),this.htmlElement.poster=document.createElement("img"),this.htmlElement.poster.id=this.internal.poster.id,this.htmlElement.poster.onload=function(){s.status.video&&!s.status.waitForPlay||s.internal.poster.jq.show()},this.element.append(this.htmlElement.poster),this.internal.poster.jq=a("#"+this.internal.poster.id),this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),this.internal.poster.jq.hide(),this.internal.poster.jq.bind("click.jPlayer",function(){s._trigger(a.jPlayer.event.click)}),this.html.audio.available=!1,this.require.audio&&(this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)),this.html.video.available=!1,this.require.video&&(this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)),this.flash.available=this._checkForFlash(10.1),this.html.canPlay={},this.flash.canPlay={},a.each(this.formats,function(e,t){s.html.canPlay[t]=s.html[s.format[t].media].available&&""!==s.htmlElement[s.format[t].media].canPlayType(s.format[t].codec),s.flash.canPlay[t]=s.format[t].flashCanPlay&&s.flash.available}),this.html.desired=!1,this.flash.desired=!1,a.each(this.solutions,function(e,t){var i,n;0===e?s[t].desired=!0:(n=i=!1,a.each(s.formats,function(e,t){s[s.solutions[0]].canPlay[t]&&("video"===s.format[t].media?n=!0:i=!0)}),s[t].desired=s.require.audio&&!i||s.require.video&&!n)}),this.html.support={},this.flash.support={},a.each(this.formats,function(e,t){s.html.support[t]=s.html.canPlay[t]&&s.html.desired,s.flash.support[t]=s.flash.canPlay[t]&&s.flash.desired}),this.html.used=!1,this.flash.used=!1,a.each(this.solutions,function(e,i){a.each(s.formats,function(e,t){if(s[i].support[t])return!(s[i].used=!0)})}),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:a.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:a.jPlayer.errorMsg.NO_SOLUTION,hint:a.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){var e="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(a.jPlayer.browser.msie&&(Number(a.jPlayer.browser.version)<9||a.jPlayer.browser.documentMode<9))for(var e=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+e+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'],t=document.createElement('<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>'),i=0;i<e.length;i++)t.appendChild(document.createElement(e[i]));else i=function(e,t,i){var n=document.createElement("param");n.setAttribute("name",t),n.setAttribute("value",i),e.appendChild(n)},(t=document.createElement("object")).setAttribute("id",this.internal.flash.id),t.setAttribute("name",this.internal.flash.id),t.setAttribute("data",this.internal.flash.swf),t.setAttribute("type","application/x-shockwave-flash"),t.setAttribute("width","1"),t.setAttribute("height","1"),t.setAttribute("tabindex","-1"),i(t,"flashvars",e),i(t,"allowscriptaccess","always"),i(t,"bgcolor",this.options.backgroundColor),i(t,"wmode",this.options.wmode);this.element.append(t),this.internal.flash.jq=a(t)}this.status.playbackRateEnabled=!(!this.html.used||this.flash.used)&&this._testPlaybackRate("audio"),this._updatePlaybackRate(),this.html.used&&(this.html.audio.available&&(this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio),this.element.append(this.htmlElement.audio),this.internal.audio.jq=a("#"+this.internal.audio.id)),this.html.video.available)&&(this._addHtmlEventListeners(this.htmlElement.video,this.html.video),this.element.append(this.htmlElement.video),this.internal.video.jq=a("#"+this.internal.video.id),this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):this.internal.video.jq.css({width:"0px",height:"0px"}),this.internal.video.jq.bind("click.jPlayer",function(){s._trigger(a.jPlayer.event.click)})),this.options.emulateHtml&&this._emulateHtmlBridge(),this.html.used&&!this.flash.used&&setTimeout(function(){s.internal.ready=!0,s.version.flash="n/a",s._trigger(a.jPlayer.event.repeat),s._trigger(a.jPlayer.event.ready)},100),this._updateNativeVideoControls(),this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),a.jPlayer.prototype.count++},destroy:function(){this.clearMedia(),this._removeUiClass(),this.css.jq.currentTime.length&&this.css.jq.currentTime.text(""),this.css.jq.duration.length&&this.css.jq.duration.text(""),a.each(this.css.jq,function(e,t){t.length&&t.unbind(".jPlayer")}),this.internal.poster.jq.unbind(".jPlayer"),this.internal.video.jq&&this.internal.video.jq.unbind(".jPlayer"),this._fullscreenRemoveEventListeners(),this===a.jPlayer.focus&&(a.jPlayer.focus=null),this.options.emulateHtml&&this._destroyHtmlBridge(),this.element.removeData("jPlayer"),this.element.unbind(".jPlayer"),this.element.empty(),delete this.instances[this.internal.instance]},enable:function(){},disable:function(){},_testCanPlayType:function(e){try{return e.canPlayType(this.format.mp3.codec),!0}catch(e){return!1}},_testPlaybackRate:function(e){e=document.createElement("string"==typeof e?e:"audio");try{return"playbackRate"in e&&(e.playbackRate=.5)===e.playbackRate}catch(e){return!1}},_uaBlocklist:function(e){var i=navigator.userAgent.toLowerCase(),n=!1;return a.each(e,function(e,t){if(t&&t.test(i))return!(n=!0)}),n},_restrictNativeVideoControls:function(){this.require.audio&&this.status.nativeVideoControls&&(this.status.nativeVideoControls=!1,this.status.noFullWindow=!0)},_updateNativeVideoControls:function(){this.html.video.available&&this.html.used&&(this.htmlElement.video.controls=this.status.nativeVideoControls,this._updateAutohide(),this.status.nativeVideoControls&&this.require.video?(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})):this.status.waitForPlay&&this.status.video&&(this.internal.poster.jq.show(),this.internal.video.jq.css({width:"0px",height:"0px"})))},_addHtmlEventListeners:function(i,n){var s=this;i.preload=this.options.preload,i.muted=this.options.muted,i.volume=this.options.volume,this.status.playbackRateEnabled&&(i.defaultPlaybackRate=this.options.defaultPlaybackRate,i.playbackRate=this.options.playbackRate),i.addEventListener("progress",function(){n.gate&&(s.internal.cmdsIgnored&&0<this.readyState&&(s.internal.cmdsIgnored=!1),s._getHtmlStatus(i),s._updateInterface(),s._trigger(a.jPlayer.event.progress))},!1),i.addEventListener("timeupdate",function(){n.gate&&(s._getHtmlStatus(i),s._updateInterface(),s._trigger(a.jPlayer.event.timeupdate))},!1),i.addEventListener("durationchange",function(){n.gate&&(s._getHtmlStatus(i),s._updateInterface(),s._trigger(a.jPlayer.event.durationchange))},!1),i.addEventListener("play",function(){n.gate&&(s._updateButtons(!0),s._html_checkWaitForPlay(),s._trigger(a.jPlayer.event.play))},!1),i.addEventListener("playing",function(){n.gate&&(s._updateButtons(!0),s._seeked(),s._trigger(a.jPlayer.event.playing))},!1),i.addEventListener("pause",function(){n.gate&&(s._updateButtons(!1),s._trigger(a.jPlayer.event.pause))},!1),i.addEventListener("waiting",function(){n.gate&&(s._seeking(),s._trigger(a.jPlayer.event.waiting))},!1),i.addEventListener("seeking",function(){n.gate&&(s._seeking(),s._trigger(a.jPlayer.event.seeking))},!1),i.addEventListener("seeked",function(){n.gate&&(s._seeked(),s._trigger(a.jPlayer.event.seeked))},!1),i.addEventListener("volumechange",function(){n.gate&&(s.options.volume=i.volume,s.options.muted=i.muted,s._updateMute(),s._updateVolume(),s._trigger(a.jPlayer.event.volumechange))},!1),i.addEventListener("ratechange",function(){n.gate&&(s.options.defaultPlaybackRate=i.defaultPlaybackRate,s.options.playbackRate=i.playbackRate,s._updatePlaybackRate(),s._trigger(a.jPlayer.event.ratechange))},!1),i.addEventListener("suspend",function(){n.gate&&(s._seeked(),s._trigger(a.jPlayer.event.suspend))},!1),i.addEventListener("ended",function(){n.gate&&(a.jPlayer.browser.webkit||(s.htmlElement.media.currentTime=0),s.htmlElement.media.pause(),s._updateButtons(!1),s._getHtmlStatus(i,!0),s._updateInterface(),s._trigger(a.jPlayer.event.ended))},!1),i.addEventListener("error",function(){n.gate&&(s._updateButtons(!1),s._seeked(),s.status.srcSet)&&(clearTimeout(s.internal.htmlDlyCmdId),s.status.waitForLoad=!0,s.status.waitForPlay=!0,s.status.video&&!s.status.nativeVideoControls&&s.internal.video.jq.css({width:"0px",height:"0px"}),s._validString(s.status.media.poster)&&!s.status.nativeVideoControls&&s.internal.poster.jq.show(),s.css.jq.videoPlay.length&&s.css.jq.videoPlay.show(),s._error({type:a.jPlayer.error.URL,context:s.status.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL}))},!1),a.each(a.jPlayer.htmlEvent,function(e,t){i.addEventListener(this,function(){n.gate&&s._trigger(a.jPlayer.event[t])},!1)})},_getHtmlStatus:function(e,t){var i=0,n=0,s=0,o=0;isFinite(e.duration)&&(this.status.duration=e.duration),i=e.currentTime,n=0<this.status.duration?100*i/this.status.duration:0,o="object"==typeof e.seekable&&0<e.seekable.length?(s=0<this.status.duration?100*e.seekable.end(e.seekable.length-1)/this.status.duration:100,0<this.status.duration?100*e.currentTime/e.seekable.end(e.seekable.length-1):0):(s=100,n),t&&(n=o=i=0),this.status.seekPercent=s,this.status.currentPercentRelative=o,this.status.currentPercentAbsolute=n,this.status.currentTime=i,this.status.videoWidth=e.videoWidth,this.status.videoHeight=e.videoHeight,this.status.readyState=e.readyState,this.status.networkState=e.networkState,this.status.playbackRate=e.playbackRate,this.status.ended=e.ended},_resetStatus:function(){this.status=a.extend({},this.status,a.jPlayer.prototype.status)},_trigger:function(e,t,i){(e=a.Event(e)).jPlayer={},e.jPlayer.version=a.extend({},this.version),e.jPlayer.options=a.extend(!0,{},this.options),e.jPlayer.status=a.extend(!0,{},this.status),e.jPlayer.html=a.extend(!0,{},this.html),e.jPlayer.flash=a.extend(!0,{},this.flash),t&&(e.jPlayer.error=a.extend({},t)),i&&(e.jPlayer.warning=a.extend({},i)),this.element.trigger(e)},jPlayerFlashEvent:function(e,t){var i,n;if(e===a.jPlayer.event.ready&&(this.internal.ready?this.flash.gate&&(this.status.srcSet&&(i=this.status.currentTime,n=this.status.paused,this.setMedia(this.status.media),this.volumeWorker(this.options.volume),0<i)&&(n?this.pause(i):this.play(i)),this._trigger(a.jPlayer.event.flashreset)):(this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=t.version,this.version.needFlash!==this.version.flash&&this._error({type:a.jPlayer.error.VERSION,context:this.version.flash,message:a.jPlayer.errorMsg.VERSION+this.version.flash,hint:a.jPlayer.errorHint.VERSION}),this._trigger(a.jPlayer.event.repeat),this._trigger(e))),this.flash.gate)switch(e){case a.jPlayer.event.progress:case a.jPlayer.event.timeupdate:this._getFlashStatus(t),this._updateInterface(),this._trigger(e);break;case a.jPlayer.event.play:this._seeked(),this._updateButtons(!0),this._trigger(e);break;case a.jPlayer.event.pause:case a.jPlayer.event.ended:this._updateButtons(!1),this._trigger(e);break;case a.jPlayer.event.click:this._trigger(e);break;case a.jPlayer.event.error:this.status.waitForLoad=!0,this.status.waitForPlay=!0,this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._validString(this.status.media.poster)&&this.internal.poster.jq.show(),this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(),this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media),this._updateButtons(!1),this._error({type:a.jPlayer.error.URL,context:t.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL});break;case a.jPlayer.event.seeking:this._seeking(),this._trigger(e);break;case a.jPlayer.event.seeked:this._seeked(),this._trigger(e);break;case a.jPlayer.event.ready:break;default:this._trigger(e)}return!1},_getFlashStatus:function(e){this.status.seekPercent=e.seekPercent,this.status.currentPercentRelative=e.currentPercentRelative,this.status.currentPercentAbsolute=e.currentPercentAbsolute,this.status.currentTime=e.currentTime,this.status.duration=e.duration,this.status.videoWidth=e.videoWidth,this.status.videoHeight=e.videoHeight,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_updateButtons:function(e){e===r?e=!this.status.paused:this.status.paused=!e,this.css.jq.play.length&&this.css.jq.pause.length&&(e?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide())),this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide())),this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"),this.css.jq.playBar.length&&(this.options.smoothPlayBar?this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+"%"},250,"linear"):this.css.jq.playBar.width(this.status.currentPercentRelative+"%")),this.css.jq.currentTime.length&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime)),this.css.jq.duration.length&&this.css.jq.duration.text(this._convertTime(this.status.duration))},_convertTime:e.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg")},_resetGate:function(){this.html.audio.gate=!1,this.html.video.gate=!1,this.flash.gate=!1},_resetActive:function(){this.html.active=!1,this.flash.active=!1},_escapeHtml:function(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")},_qualifyURL:function(e){var t=document.createElement("div");return t.innerHTML='<a href="'+this._escapeHtml(e)+'">x</a>',t.firstChild.href},_absoluteMediaUrls:function(i){var n=this;return a.each(i,function(e,t){n.format[e]&&(i[e]=n._qualifyURL(t))}),i},setMedia:function(s){var o=this,r=!1,e=this.status.media.poster!==s.poster;this._resetMedia(),this._resetGate(),this._resetActive(),s=this._absoluteMediaUrls(s),a.each(this.formats,function(e,i){var n="video"===o.format[i].media;if(a.each(o.solutions,function(e,t){if(o[t].support[i]&&o._validString(s[i]))return t="html"===t,n?(t?(o.html.video.gate=!0,o._html_setVideo(s),o.html.active=!0):(o.flash.gate=!0,o._flash_setVideo(s),o.flash.active=!0),o.css.jq.videoPlay.length&&o.css.jq.videoPlay.show(),o.status.video=!0):(t?(o.html.audio.gate=!0,o._html_setAudio(s),o.html.active=!0):(o.flash.gate=!0,o._flash_setAudio(s),o.flash.active=!0),o.css.jq.videoPlay.length&&o.css.jq.videoPlay.hide(),o.status.video=!1),!(r=!0)}),r)return!1}),r?(this.status.nativeVideoControls&&this.html.video.gate||!this._validString(s.poster)||(e?this.htmlElement.poster.src=s.poster:this.internal.poster.jq.show()),this.status.srcSet=!0,this.status.media=a.extend({},s),this._updateButtons(!1),this._updateInterface()):this._error({type:a.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:a.jPlayer.errorMsg.NO_SUPPORT,hint:a.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&(a.jPlayer.focus=this)},play:function(e){e="number"==typeof e?e:NaN,this.status.srcSet?(this.focus(),this.html.active?this._html_play(e):this.flash.active&&this._flash_play(e)):this._urlNotSetError("play")},videoPlay:function(){this.play()},pause:function(e){e="number"==typeof e?e:NaN,this.status.srcSet?this.html.active?this._html_pause(e):this.flash.active&&this._flash_pause(e):this._urlNotSetError("pause")},tellOthers:function(e,t){var i=this,n="function"==typeof t,s=Array.prototype.slice.call(arguments);"string"==typeof e&&(n&&s.splice(1,1),a.each(this.instances,function(){i.element===this||n&&!t.call(this.data("jPlayer"),i)||this.jPlayer.apply(this,s)}))},pauseOthers:function(e){this.tellOthers("pause",function(){return this.status.srcSet},e)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(e){e=this._limitValue(e,0,100),this.status.srcSet?this.html.active?this._html_playHead(e):this.flash.active&&this._flash_playHead(e):this._urlNotSetError("playHead")},_muted:function(e){this.mutedWorker(e),this.options.globalVolume&&this.tellOthers("mutedWorker",function(){return this.options.globalVolume},e)},mutedWorker:function(e){this.options.muted=e,this.html.used&&this._html_setProperty("muted",e),this.flash.used&&this._flash_mute(e),this.html.video.gate||this.html.audio.gate||(this._updateMute(e),this._updateVolume(this.options.volume),this._trigger(a.jPlayer.event.volumechange))},mute:function(e){this._muted(e=e===r||!!e)},unmute:function(e){this._muted(!(e=e===r||!!e))},_updateMute:function(e){e===r&&(e=this.options.muted),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):e?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(e){this.volumeWorker(e),this.options.globalVolume&&this.tellOthers("volumeWorker",function(){return this.options.globalVolume},e)},volumeWorker:function(e){e=this._limitValue(e,0,1),this.options.volume=e,this.html.used&&this._html_setProperty("volume",e),this.flash.used&&this._flash_volume(e),this.html.video.gate||this.html.audio.gate||(this._updateVolume(e),this._trigger(a.jPlayer.event.volumechange))},volumeBar:function(e){var t,i,n,s;this.css.jq.volumeBar.length&&(i=(t=a(e.currentTarget)).offset(),n=e.pageX-i.left,s=t.width(),e=t.height()-e.pageY+i.top,t=t.height(),this.options.verticalVolume?this.volume(e/t):this.volume(n/s)),this.options.muted&&this._muted(!1)},volumeBarValue:function(){},_updateVolume:function(e){e===r&&(e=this.options.volume),e=this.options.muted?0:e,this.status.noVolume?(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*e+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(e){var i=this;this.options.cssSelectorAncestor=e,this._removeUiClass(),this.ancestorJq=e?a(e):[],e&&1!==this.ancestorJq.length&&this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,context:e,message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),a.each(this.options.cssSelector,function(e,t){i._cssSelector(e,t)}),this._updateInterface(),this._updateButtons(),this._updateAutohide(),this._updateVolume(),this._updateMute()},_cssSelector:function(t,e){var i=this;"string"==typeof e?a.jPlayer.prototype.options.cssSelector[t]?(this.css.jq[t]&&this.css.jq[t].length&&this.css.jq[t].unbind(".jPlayer"),this.options.cssSelector[t]=e,this.css.cs[t]=this.options.cssSelectorAncestor+" "+e,this.css.jq[t]=e?a(this.css.cs[t]):[],this.css.jq[t].length&&this.css.jq[t].bind("click.jPlayer",function(e){e.preventDefault(),i[t](e),a(this).blur()}),e&&1!==this.css.jq[t].length&&this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[t],message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[t].length+" found for "+t+" method.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:a.jPlayer.warning.CSS_SELECTOR_METHOD,context:t,message:a.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:a.jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:a.jPlayer.warning.CSS_SELECTOR_STRING,context:e,message:a.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:a.jPlayer.warningHint.CSS_SELECTOR_STRING})},seekBar:function(e){var t,i;this.css.jq.seekBar.length&&(i=(t=a(e.currentTarget)).offset(),e=e.pageX-i.left,t=t.width(),this.playHead(100*e/t))},playBar:function(){},playbackRate:function(e){this._setOption("playbackRate",e)},playbackRateBar:function(e){var t,i,n,s;this.css.jq.playbackRateBar.length&&(i=(t=a(e.currentTarget)).offset(),n=e.pageX-i.left,s=t.width(),e=t.height()-e.pageY+i.top,t=t.height(),this.playbackRate((this.options.verticalPlaybackRate?e/t:n/s)*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+this.options.minPlaybackRate))},playbackRateBarValue:function(){},_updatePlaybackRate:function(){var e=(this.options.playbackRate-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*e+"%"))):(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(){this._loop(!0)},repeatOff:function(){this._loop(!1)},_loop:function(e){this.options.loop!==e&&(this.options.loop=e,this._updateButtons(),this._trigger(a.jPlayer.event.repeat))},currentTime:function(){},duration:function(){},gui:function(){},noSolution:function(){},option:function(e,t){var i=e;if(0===arguments.length)return a.extend(!0,{},this.options);if("string"==typeof e){var n=e.split(".");if(t===r){for(var i=a.extend(!0,{},this.options),s=0;s<n.length;s++){if(i[n[s]]===r)return this._warning({type:a.jPlayer.warning.OPTION_KEY,context:e,message:a.jPlayer.warningMsg.OPTION_KEY,hint:a.jPlayer.warningHint.OPTION_KEY}),r;i=i[n[s]]}return i}for(var s=i={},o=0;o<n.length;o++)o<n.length-1?(s[n[o]]={},s=s[n[o]]):s[n[o]]=t}return this._setOptions(i),this},_setOptions:function(e){var i=this;return a.each(e,function(e,t){i._setOption(e,t)}),this},_setOption:function(e,t){var i,n=this;switch(e){case"volume":this.volume(t);break;case"muted":this._muted(t);break;case"globalVolume":this.options[e]=t;break;case"cssSelectorAncestor":this._cssSelectorAncestor(t);break;case"cssSelector":a.each(t,function(e,t){n._cssSelector(e,t)});break;case"playbackRate":this.options[e]=t=this._limitValue(t,this.options.minPlaybackRate,this.options.maxPlaybackRate),this.html.used&&this._html_setProperty("playbackRate",t),this._updatePlaybackRate();break;case"defaultPlaybackRate":this.options[e]=t=this._limitValue(t,this.options.minPlaybackRate,this.options.maxPlaybackRate),this.html.used&&this._html_setProperty("defaultPlaybackRate",t),this._updatePlaybackRate();break;case"minPlaybackRate":this.options[e]=t=this._limitValue(t,.1,this.options.maxPlaybackRate-.1),this._updatePlaybackRate();break;case"maxPlaybackRate":this.options[e]=t=this._limitValue(t,this.options.minPlaybackRate+.1,16),this._updatePlaybackRate();break;case"fullScreen":this.options[e]===t||(i=a.jPlayer.nativeFeatures.fullscreen.used.webkitVideo)&&this.status.waitForPlay||(i||(this.options[e]=t),t?this._requestFullscreen():this._exitFullscreen(),i)||this._setOption("fullWindow",t);break;case"fullWindow":this.options[e]!==t&&(this._removeUiClass(),this.options[e]=t,this._refreshSize());break;case"size":this.options.fullWindow||this.options[e].cssClass===t.cssClass||this._removeUiClass(),this.options[e]=a.extend({},this.options[e],t),this._refreshSize();break;case"sizeFull":this.options.fullWindow&&this.options[e].cssClass!==t.cssClass&&this._removeUiClass(),this.options[e]=a.extend({},this.options[e],t),this._refreshSize();break;case"autohide":this.options[e]=a.extend({},this.options[e],t),this._updateAutohide();break;case"loop":this._loop(t);break;case"nativeVideoControls":this.options[e]=a.extend({},this.options[e],t),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this._restrictNativeVideoControls(),this._updateNativeVideoControls();break;case"noFullWindow":this.options[e]=a.extend({},this.options[e],t),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this._restrictNativeVideoControls(),this._updateButtons();break;case"noVolume":this.options[e]=a.extend({},this.options[e],t),this.status.noVolume=this._uaBlocklist(this.options.noVolume),this._updateVolume(),this._updateMute();break;case"emulateHtml":this.options[e]!==t&&((this.options[e]=t)?this._emulateHtmlBridge():this._destroyHtmlBridge());break;case"timeFormat":this.options[e]=a.extend({},this.options[e],t);break;case"keyEnabled":(this.options[e]=t)||this!==a.jPlayer.focus||(a.jPlayer.focus=null);break;case"keyBindings":this.options[e]=a.extend(!0,{},this.options[e],t);break;case"audioFullScreen":this.options[e]=t}return this},_refreshSize:function(){this._setSize(),this._addUiClass(),this._updateSize(),this._updateButtons(),this._updateAutohide(),this._trigger(a.jPlayer.event.resize)},_setSize:function(){this.options.fullWindow?(this.status.width=this.options.sizeFull.width,this.status.height=this.options.sizeFull.height,this.status.cssClass=this.options.sizeFull.cssClass):(this.status.width=this.options.size.width,this.status.height=this.options.size.height,this.status.cssClass=this.options.size.cssClass),this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){this.ancestorJq.length&&this.ancestorJq.addClass(this.status.cssClass)},_removeUiClass:function(){this.ancestorJq.length&&this.ancestorJq.removeClass(this.status.cssClass)},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):!this.status.waitForPlay&&this.flash.active&&this.status.video&&this.internal.flash.jq.css({width:this.status.width,height:this.status.height})},_updateAutohide:function(){function e(){t.css.jq.gui.fadeIn(t.options.autohide.fadeIn,function(){clearTimeout(t.internal.autohideId),t.internal.autohideId=setTimeout(function(){t.css.jq.gui.fadeOut(t.options.autohide.fadeOut)},t.options.autohide.hold)})}var t=this;this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),this.element.unbind(".jPlayerAutohide"),this.css.jq.gui.unbind(".jPlayerAutohide"),this.status.nativeVideoControls?this.css.jq.gui.hide():this.options.fullWindow&&this.options.autohide.full||!this.options.fullWindow&&this.options.autohide.restored?(this.element.bind("mousemove.jPlayer.jPlayerAutohide",e),this.css.jq.gui.bind("mousemove.jPlayer.jPlayerAutohide",e),this.css.jq.gui.hide()):this.css.jq.gui.show())},fullScreen:function(){this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_fullscreenAddEventListeners:function(){var e=this,t=a.jPlayer.nativeFeatures.fullscreen;t.api.fullscreenEnabled&&t.event.fullscreenchange&&("function"!=typeof this.internal.fullscreenchangeHandler&&(this.internal.fullscreenchangeHandler=function(){e._fullscreenchange()}),document.addEventListener(t.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1))},_fullscreenRemoveEventListeners:function(){var e=a.jPlayer.nativeFeatures.fullscreen;this.internal.fullscreenchangeHandler&&document.addEventListener(e.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)},_fullscreenchange:function(){this.options.fullScreen&&!a.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()&&this._setOption("fullScreen",!1)},_requestFullscreen:function(){var e=(this.ancestorJq.length?this.ancestorJq:this.element)[0],t=a.jPlayer.nativeFeatures.fullscreen;t.used.webkitVideo&&(e=this.htmlElement.video),t.api.fullscreenEnabled&&t.api.requestFullscreen(e)},_exitFullscreen:function(){var e,t=a.jPlayer.nativeFeatures.fullscreen;t.used.webkitVideo&&(e=this.htmlElement.video),t.api.fullscreenEnabled&&t.api.exitFullscreen(e)},_html_initMedia:function(e){var n=a(this.htmlElement.media).empty();a.each(e.track||[],function(e,t){var i=document.createElement("track");i.setAttribute("kind",t.kind||""),i.setAttribute("src",t.src||""),i.setAttribute("srclang",t.srclang||""),i.setAttribute("label",t.label||""),t.def&&i.setAttribute("default",t.def),n.append(i)}),this.htmlElement.media.src=this.status.src,"none"!==this.options.preload&&this._html_load(),this._trigger(a.jPlayer.event.timeupdate)},_html_setFormat:function(i){var n=this;a.each(this.formats,function(e,t){if(n.html.support[t]&&i[t])return n.status.src=i[t],n.status.format[t]=!0,n.status.formatType=t,!1})},_html_setAudio:function(e){this._html_setFormat(e),this.htmlElement.media=this.htmlElement.audio,this._html_initMedia(e)},_html_setVideo:function(e){this._html_setFormat(e),this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._validString(e.poster)?e.poster:""),this.htmlElement.media=this.htmlElement.video,this._html_initMedia(e)},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id!==this.internal.video.id||this.status.nativeVideoControls||this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){this.htmlElement.media&&(this.htmlElement.media.src="about:blank",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.htmlElement.media.load()),clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(t){var i=this,e=this.htmlElement.media;if(this._html_load(),isNaN(t))e.play();else{this.internal.cmdsIgnored&&e.play();try{if(e.seekable&&!("object"==typeof e.seekable&&0<e.seekable.length))throw 1;e.currentTime=t,e.play()}catch(e){return void(this.internal.htmlDlyCmdId=setTimeout(function(){i.play(t)},250))}}this._html_checkWaitForPlay()},_html_pause:function(t){var i=this,e=this.htmlElement.media;if(0<t?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),e.pause(),!isNaN(t))try{if(e.seekable&&!("object"==typeof e.seekable&&0<e.seekable.length))throw 1;e.currentTime=t}catch(e){return void(this.internal.htmlDlyCmdId=setTimeout(function(){i.pause(t)},250))}0<t&&this._html_checkWaitForPlay()},_html_playHead:function(t){var i=this,e=this.htmlElement.media;this._html_load();try{if("object"==typeof e.seekable&&0<e.seekable.length)e.currentTime=t*e.seekable.end(e.seekable.length-1)/100;else{if(!(0<e.duration)||isNaN(e.duration))throw"e";e.currentTime=t*e.duration/100}}catch(e){return void(this.internal.htmlDlyCmdId=setTimeout(function(){i.playHead(t)},250))}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video)&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height}))},_html_setProperty:function(e,t){this.html.audio.available&&(this.htmlElement.audio[e]=t),this.html.video.available&&(this.htmlElement.video[e]=t)},_flash_setAudio:function(i){var n=this;try{a.each(this.formats,function(e,t){if(n.flash.support[t]&&i[t]){switch(t){case"m4a":case"fla":n._getMovie().fl_setAudio_m4a(i[t]);break;case"mp3":n._getMovie().fl_setAudio_mp3(i[t]);break;case"rtmpa":n._getMovie().fl_setAudio_rtmp(i[t])}return n.status.src=i[t],n.status.format[t]=!0,n.status.formatType=t,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(e){this._flashError(e)}},_flash_setVideo:function(i){var n=this;try{a.each(this.formats,function(e,t){if(n.flash.support[t]&&i[t]){switch(t){case"m4v":case"flv":n._getMovie().fl_setVideo_m4v(i[t]);break;case"rtmpv":n._getMovie().fl_setVideo_rtmp(i[t])}return n.status.src=i[t],n.status.format[t]=!0,n.status.formatType=t,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(e){this._flashError(e)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"}),this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(e){this._flashError(e)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(e){this._flashError(e)}this.status.waitForLoad=!1},_flash_play:function(e){try{this._getMovie().fl_play(e)}catch(e){this._flashError(e)}this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_pause:function(e){try{this._getMovie().fl_pause(e)}catch(e){this._flashError(e)}0<e&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(e){try{this._getMovie().fl_play_head(e)}catch(e){this._flashError(e)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video)&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height}))},_flash_volume:function(e){try{this._getMovie().fl_volume(e)}catch(e){this._flashError(e)}},_flash_mute:function(e){try{this._getMovie().fl_mute(e)}catch(e){this._flashError(e)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var e,t,i=0;if(window.ActiveXObject)try{(e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))&&(t=e.GetVariable("$version"))&&(t=t.split(" ")[1].split(","),i=parseInt(t[0],10)+"."+parseInt(t[1],10))}catch(e){}else navigator.plugins&&0<navigator.mimeTypes.length&&(e=navigator.plugins["Shockwave Flash"])&&(i=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1"));return+i},_checkForFlash:function(e){var t=!1;return t=this._getFlashPluginVersion()>=e?!0:t},_validString:function(e){return e&&"string"==typeof e},_limitValue:function(e,t,i){return e<t?t:i<e?i:e},_urlNotSetError:function(e){this._error({type:a.jPlayer.error.URL_NOT_SET,context:e,message:a.jPlayer.errorMsg.URL_NOT_SET,hint:a.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(e){var t=this.internal.ready?"FLASH_DISABLED":"FLASH";this._error({type:a.jPlayer.error[t],context:this.internal.flash.swf,message:a.jPlayer.errorMsg[t]+e.message,hint:a.jPlayer.errorHint[t]}),this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(e){this._trigger(a.jPlayer.event.error,e),this.options.errorAlerts&&this._alert("Error!"+(e.message?"\n"+e.message:"")+(e.hint?"\n"+e.hint:"")+"\nContext: "+e.context)},_warning:function(e){this._trigger(a.jPlayer.event.warning,r,e),this.options.warningAlerts&&this._alert("Warning!"+(e.message?"\n"+e.message:"")+(e.hint?"\n"+e.hint:"")+"\nContext: "+e.context)},_alert:function(e){e="jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+e,this.options.consoleAlerts?console&&console.log&&console.log(e):alert(e)},_emulateHtmlBridge:function(){var s=this;a.each(a.jPlayer.emulateMethods.split(/\s+/g),function(e,t){s.internal.domNode[t]=function(e){s[t](e)}}),a.each(a.jPlayer.event,function(i,e){var n=!0;a.each(a.jPlayer.reservedEvent.split(/\s+/g),function(e,t){if(t===i)return n=!1}),n&&s.element.bind(e+".jPlayer.jPlayerHtml",function(){s._emulateHtmlUpdate();var e=document.createEvent("Event");e.initEvent(i,!1,!0),s.internal.domNode.dispatchEvent(e)})})},_emulateHtmlUpdate:function(){var i=this;a.each(a.jPlayer.emulateStatus.split(/\s+/g),function(e,t){i.internal.domNode[t]=i.status[t]}),a.each(a.jPlayer.emulateOptions.split(/\s+/g),function(e,t){i.internal.domNode[t]=i.options[t]})},_destroyHtmlBridge:function(){var i=this;this.element.unbind(".jPlayerHtml"),a.each((a.jPlayer.emulateMethods+" "+a.jPlayer.emulateStatus+" "+a.jPlayer.emulateOptions).split(/\s+/g),function(e,t){delete i.internal.domNode[t]})}},a.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"},a.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+a.jPlayer.prototype.version.script+" needs Jplayer.swf version "+a.jPlayer.prototype.version.needFlash+" but found "},a.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."},a.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"},a.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."},a.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}}),(e=>{"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)})(function(c){var n,o=window.Slick||{};n=0,(o=function(e,t){var i=this;i.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(e),appendDots:c(e),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return c('<button type="button" data-role="none" role="button" tabindex="0" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},i.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(i,i.initials),i.activeBreakpoint=null,i.animType=null,i.animProp=null,i.breakpoints=[],i.breakpointSettings=[],i.cssTransitions=!1,i.focussed=!1,i.interrupted=!1,i.hidden="hidden",i.paused=!0,i.positionProp=null,i.respondTo=null,i.rowCount=1,i.shouldClick=!0,i.$slider=c(e),i.$slidesCache=null,i.transformType=null,i.transitionType=null,i.visibilityChange="visibilitychange",i.windowWidth=0,i.windowTimer=null,e=c(e).data("slick")||{},i.options=c.extend({},i.defaults,t,e),i.currentSlide=i.options.initialSlide,i.originalSettings=i.options,void 0!==document.mozHidden?(i.hidden="mozHidden",i.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(i.hidden="webkitHidden",i.visibilityChange="webkitvisibilitychange"),i.autoPlay=c.proxy(i.autoPlay,i),i.autoPlayClear=c.proxy(i.autoPlayClear,i),i.autoPlayIterator=c.proxy(i.autoPlayIterator,i),i.changeSlide=c.proxy(i.changeSlide,i),i.clickHandler=c.proxy(i.clickHandler,i),i.selectHandler=c.proxy(i.selectHandler,i),i.setPosition=c.proxy(i.setPosition,i),i.swipeHandler=c.proxy(i.swipeHandler,i),i.dragHandler=c.proxy(i.dragHandler,i),i.keyHandler=c.proxy(i.keyHandler,i),i.instanceUid=n++,i.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,i.registerBreakpoints(),i.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},o.prototype.addSlide=o.prototype.slickAdd=function(e,t,i){var n=this;if("boolean"==typeof t)i=t,t=null;else if(t<0||t>=n.slideCount)return!1;n.unload(),"number"==typeof t?0===t&&0===n.$slides.length?c(e).appendTo(n.$slideTrack):i?c(e).insertBefore(n.$slides.eq(t)):c(e).insertAfter(n.$slides.eq(t)):!0===i?c(e).prependTo(n.$slideTrack):c(e).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(e,t){c(t).attr("data-slick-index",e)}),n.$slidesCache=n.$slides,n.reinit()},o.prototype.animateHeight=function(){var e;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(e=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.animate({height:e},this.options.speed))},o.prototype.animateSlide=function(e,t){var i={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(e=-e),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:e},n.options.speed,n.options.easing,t):n.$slideTrack.animate({top:e},n.options.speed,n.options.easing,t):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),c({animStart:n.currentLeft}).animate({animStart:e},{duration:n.options.speed,easing:n.options.easing,step:function(e){e=Math.ceil(e),!1===n.options.vertical?i[n.animType]="translate("+e+"px, 0px)":i[n.animType]="translate(0px,"+e+"px)",n.$slideTrack.css(i)},complete:function(){t&&t.call()}})):(n.applyTransition(),e=Math.ceil(e),!1===n.options.vertical?i[n.animType]="translate3d("+e+"px, 0px, 0px)":i[n.animType]="translate3d(0px,"+e+"px, 0px)",n.$slideTrack.css(i),t&&setTimeout(function(){n.disableTransition(),t.call()},n.options.speed))},o.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e=e&&null!==e?c(e).not(this.$slider):e},o.prototype.asNavFor=function(t){var e=this.getNavTarget();null!==e&&"object"==typeof e&&e.each(function(){var e=c(this).slick("getSlick");e.unslicked||e.slideHandler(t,!0)})},o.prototype.applyTransition=function(e){var t=this,i={};!1===t.options.fade?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,(!1===t.options.fade?t.$slideTrack:t.$slides.eq(e)).css(i)},o.prototype.autoPlay=function(){this.autoPlayClear(),this.slideCount>this.options.slidesToShow&&(this.autoPlayTimer=setInterval(this.autoPlayIterator,this.options.autoplaySpeed))},o.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},o.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0)&&(e.direction=1)),e.slideHandler(t))},o.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=c(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=c(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},o.prototype.buildDots=function(){var e,t,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),t=c("<ul />").addClass(i.options.dotsClass),e=0;e<=i.getDotCount();e+=1)t.append(c("<li />").append(i.options.customPaging.call(this,i,e)));i.$dots=t.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},o.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){c(t).attr("data-slick-index",e).data("originalStyling",c(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?c('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),c("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},o.prototype.buildRows=function(){var e,t,i,n=this,s=document.createDocumentFragment(),o=n.$slider.children();if(1<n.options.rows){for(i=n.options.slidesPerRow*n.options.rows,t=Math.ceil(o.length/i),e=0;e<t;e++){for(var r=document.createElement("div"),a=0;a<n.options.rows;a++){for(var l=document.createElement("div"),c=0;c<n.options.slidesPerRow;c++){var d=e*i+(a*n.options.slidesPerRow+c);o.get(d)&&l.appendChild(o.get(d))}r.appendChild(l)}s.appendChild(r)}n.$slider.empty().append(s),n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}},o.prototype.checkResponsive=function(e,t){var i,n,s,o=this,r=!1,a=o.$slider.width(),l=window.innerWidth||c(window).width();if("window"===o.respondTo?s=l:"slider"===o.respondTo?s=a:"min"===o.respondTo&&(s=Math.min(l,a)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(i in n=null,o.breakpoints)o.breakpoints.hasOwnProperty(i)&&(!1===o.originalSettings.mobileFirst?s<o.breakpoints[i]&&(n=o.breakpoints[i]):s>o.breakpoints[i]&&(n=o.breakpoints[i]));null!==n?null!==o.activeBreakpoint&&n===o.activeBreakpoint&&!t||(o.activeBreakpoint=n,"unslick"===o.breakpointSettings[n]?o.unslick(n):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[n]),!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e)),r=n):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e),r=n),e||!1===r||o.$slider.trigger("breakpoint",[o,r])}},o.prototype.changeSlide=function(e,t){var i,n=this,s=c(e.currentTarget);switch(s.is("a")&&e.preventDefault(),s.is("li")||(s=s.closest("li")),i=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,e.data.message){case"previous":o=0==i?n.options.slidesToScroll:n.options.slidesToShow-i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-o,!1,t);break;case"next":o=0==i?n.options.slidesToScroll:i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+o,!1,t);break;case"index":var o=0===e.data.index?0:e.data.index||s.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(o),!1,t),s.children().trigger("focus");break;default:return}},o.prototype.checkNavigable=function(e){var t=this.getNavigableIndexes(),i=0;if(e>t[t.length-1])e=t[t.length-1];else for(var n in t){if(e<t[n]){e=i;break}i=t[n]}return e},o.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&c("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",c.proxy(e.interrupt,e,!0)).off("mouseleave.slick",c.proxy(e.interrupt,e,!1)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow)&&e.$nextArrow.off("click.slick",e.changeSlide),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),c(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().off("click.slick",e.selectHandler),c(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),c(window).off("resize.slick.slick-"+e.instanceUid,e.resize),c("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),c(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),c(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},o.prototype.cleanUpSlideEvents=function(){this.$list.off("mouseenter.slick",c.proxy(this.interrupt,this,!0)),this.$list.off("mouseleave.slick",c.proxy(this.interrupt,this,!1))},o.prototype.cleanUpRows=function(){var e;1<this.options.rows&&((e=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(e))},o.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},o.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),c(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow))&&t.$prevArrow.remove(),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow))&&t.$nextArrow.remove(),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},o.prototype.disableTransition=function(e){var t={};t[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(e)).css(t)},o.prototype.fadeSlide=function(e,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(e),t.call()},i.options.speed))},o.prototype.fadeSlideOut=function(e){!1===this.cssTransitions?this.$slides.eq(e).animate({opacity:0,zIndex:this.options.zIndex-2},this.options.speed,this.options.easing):(this.applyTransition(e),this.$slides.eq(e).css({opacity:0,zIndex:this.options.zIndex-2}))},o.prototype.filterSlides=o.prototype.slickFilter=function(e){null!==e&&(this.$slidesCache=this.$slides,this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.filter(e).appendTo(this.$slideTrack),this.reinit())},o.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(e){e.stopImmediatePropagation();var t=c(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=t.is(":focus"),i.autoPlay())},0)})},o.prototype.getCurrent=o.prototype.slickCurrentSlide=function(){return this.currentSlide},o.prototype.getDotCount=function(){var e=this,t=0,i=0,n=0;if(!0===e.options.infinite)for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)n=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else n=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return n-1},o.prototype.getLeft=function(e){var t,i=this,n=0;return i.slideOffset=0,t=i.$slides.first().outerHeight(!0),!0===i.options.infinite?(i.slideCount>i.options.slidesToShow&&(i.slideOffset=i.slideWidth*i.options.slidesToShow*-1,n=t*i.options.slidesToShow*-1),i.slideCount%i.options.slidesToScroll!=0&&e+i.options.slidesToScroll>i.slideCount&&i.slideCount>i.options.slidesToShow&&(n=e>i.slideCount?(i.slideOffset=(i.options.slidesToShow-(e-i.slideCount))*i.slideWidth*-1,(i.options.slidesToShow-(e-i.slideCount))*t*-1):(i.slideOffset=i.slideCount%i.options.slidesToScroll*i.slideWidth*-1,i.slideCount%i.options.slidesToScroll*t*-1))):e+i.options.slidesToShow>i.slideCount&&(i.slideOffset=(e+i.options.slidesToShow-i.slideCount)*i.slideWidth,n=(e+i.options.slidesToShow-i.slideCount)*t),i.slideCount<=i.options.slidesToShow&&(n=i.slideOffset=0),!0===i.options.centerMode&&!0===i.options.infinite?i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)-i.slideWidth:!0===i.options.centerMode&&(i.slideOffset=0,i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)),t=!1===i.options.vertical?e*i.slideWidth*-1+i.slideOffset:e*t*-1+n,!0===i.options.variableWidth&&(n=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(e):i.$slideTrack.children(".slick-slide").eq(e+i.options.slidesToShow),t=!0===i.options.rtl?n[0]?-1*(i.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===i.options.centerMode)&&(n=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(e):i.$slideTrack.children(".slick-slide").eq(e+i.options.slidesToShow+1),t=!0===i.options.rtl?n[0]?-1*(i.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,t+=(i.$list.width()-n.outerWidth())/2),t},o.prototype.getOption=o.prototype.slickGetOption=function(e){return this.options[e]},o.prototype.getNavigableIndexes=function(){for(var e=this,t=0,i=0,n=[],s=!1===e.options.infinite?e.slideCount:(t=-1*e.options.slidesToScroll,i=-1*e.options.slidesToScroll,2*e.slideCount);t<s;)n.push(t),t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return n},o.prototype.getSlick=function(){return this},o.prototype.getSlideCount=function(){var i,n=this,s=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0;return!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(e,t){return t.offsetLeft-s+c(t).outerWidth()/2>-1*n.swipeLeft?(i=t,!1):void 0}),Math.abs(c(i).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},o.prototype.goTo=o.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},o.prototype.init=function(e){var t=this;c(t.$slider).hasClass("slick-initialized")||(c(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},o.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),t.$slideTrack.attr("role","listbox"),t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(e){c(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+e})}),null!==t.$dots&&t.$dots.attr("role","tablist").find("li").each(function(e){c(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+e,id:"slick-slide"+t.instanceUid+e})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),t.activateADA()},o.prototype.initArrowEvents=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},this.changeSlide),this.$nextArrow.off("click.slick").on("click.slick",{message:"next"},this.changeSlide))},o.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&c("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&c("li",e.$dots).on("mouseenter.slick",c.proxy(e.interrupt,e,!0)).on("mouseleave.slick",c.proxy(e.interrupt,e,!1))},o.prototype.initSlideEvents=function(){this.options.pauseOnHover&&(this.$list.on("mouseenter.slick",c.proxy(this.interrupt,this,!0)),this.$list.on("mouseleave.slick",c.proxy(this.interrupt,this,!1)))},o.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),c(document).on(e.visibilityChange,c.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().on("click.slick",e.selectHandler),c(window).on("orientationchange.slick.slick-"+e.instanceUid,c.proxy(e.orientationChange,e)),c(window).on("resize.slick.slick-"+e.instanceUid,c.proxy(e.resize,e)),c("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),c(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),c(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},o.prototype.initUI=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.show(),this.$nextArrow.show()),!0===this.options.dots&&this.slideCount>this.options.slidesToShow&&this.$dots.show()},o.prototype.keyHandler=function(e){e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===this.options.accessibility?this.changeSlide({data:{message:!0===this.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===this.options.accessibility&&this.changeSlide({data:{message:!0===this.options.rtl?"previous":"next"}}))},o.prototype.lazyLoad=function(){function e(e){c("img[data-lazy]",e).each(function(){var e=c(this),t=c(this).attr("data-lazy"),i=document.createElement("img");i.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},i.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},i.src=t})}var t,i,n=this;!0===n.options.centerMode?i=!0===n.options.infinite?(t=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(t=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),n.options.slidesToShow/2+1+2+n.currentSlide):(t=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,i=Math.ceil(t+n.options.slidesToShow),!0===n.options.fade&&(0<t&&t--,i<=n.slideCount)&&i++),e(n.$slider.find(".slick-slide").slice(t,i)),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},o.prototype.loadSlider=function(){this.setPosition(),this.$slideTrack.css({opacity:1}),this.$slider.removeClass("slick-loading"),this.initUI(),"progressive"===this.options.lazyLoad&&this.progressiveLazyLoad()},o.prototype.next=o.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},o.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},o.prototype.pause=o.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},o.prototype.play=o.prototype.slickPlay=function(){this.autoPlay(),this.options.autoplay=!0,this.paused=!1,this.focussed=!1,this.interrupted=!1},o.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&t.initADA())},o.prototype.prev=o.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},o.prototype.preventDefault=function(e){e.preventDefault()},o.prototype.progressiveLazyLoad=function(e){e=e||1;var t,i,n=this,s=c("img[data-lazy]",n.$slider);s.length?(t=s.first(),i=t.attr("data-lazy"),(s=document.createElement("img")).onload=function(){t.attr("src",i).removeAttr("data-lazy").removeClass("slick-loading"),!0===n.options.adaptiveHeight&&n.setPosition(),n.$slider.trigger("lazyLoaded",[n,t,i]),n.progressiveLazyLoad()},s.onerror=function(){e<3?setTimeout(function(){n.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,t,i]),n.progressiveLazyLoad())},s.src=i):n.$slider.trigger("allImagesLoaded",[n])},o.prototype.refresh=function(e){var t=this,i=t.slideCount-t.options.slidesToShow;!t.options.infinite&&t.currentSlide>i&&(t.currentSlide=i),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),i=t.currentSlide,t.destroy(!0),c.extend(t,t.initials,{currentSlide:i}),t.init(),e||t.changeSlide({data:{message:"index",index:i}},!1)},o.prototype.registerBreakpoints=function(){var e,t,i,n=this,s=n.options.responsive||null;if("array"===c.type(s)&&s.length){for(e in n.respondTo=n.options.respondTo||"window",s)if(i=n.breakpoints.length-1,t=s[e].breakpoint,s.hasOwnProperty(e)){for(;0<=i;)n.breakpoints[i]&&n.breakpoints[i]===t&&n.breakpoints.splice(i,1),i--;n.breakpoints.push(t),n.breakpointSettings[t]=s[e].settings}n.breakpoints.sort(function(e,t){return n.options.mobileFirst?e-t:t-e})}},o.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},o.prototype.resize=function(){var e=this;c(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=c(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},o.prototype.removeSlide=o.prototype.slickRemove=function(e,t,i){var n=this;return e="boolean"==typeof e?!0===(t=e)?0:n.slideCount-1:!0===t?--e:e,!(n.slideCount<1||e<0||e>n.slideCount-1)&&(n.unload(),(!0===i?n.$slideTrack.children():n.$slideTrack.children(this.options.slide).eq(e)).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,void n.reinit())},o.prototype.setCSS=function(e){var t,i,n=this,s={};!0===n.options.rtl&&(e=-e),t="left"==n.positionProp?Math.ceil(e)+"px":"0px",i="top"==n.positionProp?Math.ceil(e)+"px":"0px",s[n.positionProp]=e,!1!==n.transformsEnabled&&(!(s={})===n.cssTransitions?s[n.animType]="translate("+t+", "+i+")":s[n.animType]="translate3d("+t+", "+i+", 0px)"),n.$slideTrack.css(s)},o.prototype.setDimensions=function(){var e=this,t=(!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length))),e.$slides.first().outerWidth(!0)-e.$slides.first().width());!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},o.prototype.setFade=function(){var i,n=this;n.$slides.each(function(e,t){i=n.slideWidth*e*-1,!0===n.options.rtl?c(t).css({position:"relative",right:i,top:0,zIndex:n.options.zIndex-2,opacity:0}):c(t).css({position:"relative",left:i,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},o.prototype.setHeight=function(){var e;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(e=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.css("height",e))},o.prototype.setOption=o.prototype.slickSetOption=function(){var e,t,i,n,s,o=this,r=!1;if("object"===c.type(arguments[0])?(i=arguments[0],r=arguments[1],s="multiple"):"string"===c.type(arguments[0])&&(i=arguments[0],n=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===c.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)o.options[i]=n;else if("multiple"===s)c.each(i,function(e,t){o.options[e]=t});else if("responsive"===s)for(t in n)if("array"!==c.type(o.options.responsive))o.options.responsive=[n[t]];else{for(e=o.options.responsive.length-1;0<=e;)o.options.responsive[e].breakpoint===n[t].breakpoint&&o.options.responsive.splice(e,1),e--;o.options.responsive.push(n[t])}r&&(o.unload(),o.reinit())},o.prototype.setPosition=function(){this.setDimensions(),this.setHeight(),!1===this.options.fade?this.setCSS(this.getLeft(this.currentSlide)):this.setFade(),this.$slider.trigger("setPosition",[this])},o.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0!==e.options.useCSS||(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty)&&void 0===t.webkitPerspective&&(e.animType=!1),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty)&&void 0===t.MozPerspective&&(e.animType=!1),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty)&&void 0===t.webkitPerspective&&(e.animType=!1),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform)&&(e.animType=!1),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},o.prototype.setSlideClasses=function(e){var t,i,n=this,s=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");n.$slides.eq(e).addClass("slick-current"),!0===n.options.centerMode?(i=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&((i<=e&&e<=n.slideCount-1-i?n.$slides.slice(e-i,e+i+1):(t=n.options.slidesToShow+e,s.slice(t-i+1,t+i+2))).addClass("slick-active").attr("aria-hidden","false"),0===e?s.eq(s.length-1-n.options.slidesToShow).addClass("slick-center"):e===n.slideCount-1&&s.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(e).addClass("slick-center")):(0<=e&&e<=n.slideCount-n.options.slidesToShow?n.$slides.slice(e,e+n.options.slidesToShow):s.length<=n.options.slidesToShow?s:(i=n.slideCount%n.options.slidesToShow,t=!0===n.options.infinite?n.options.slidesToShow+e:e,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-e<n.options.slidesToShow?s.slice(t-(n.options.slidesToShow-i),t+i):s.slice(t,t+n.options.slidesToShow))).addClass("slick-active").attr("aria-hidden","false"),"ondemand"===n.options.lazyLoad&&n.lazyLoad()},o.prototype.setupInfinite=function(){var e,t,i,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(t=null,n.slideCount>n.options.slidesToShow)){for(i=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,e=n.slideCount;e>n.slideCount-i;--e)c(n.$slides[t=e-1]).clone(!0).attr("id","").attr("data-slick-index",t-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(e=0;e<i;e+=1)t=e,c(n.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},o.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},o.prototype.selectHandler=function(e){e=c(e.target).is(".slick-slide")?c(e.target):c(e.target).parents(".slick-slide"),e=(e=parseInt(e.attr("data-slick-index")))||0;return this.slideCount<=this.options.slidesToShow?(this.setSlideClasses(e),void this.asNavFor(e)):void this.slideHandler(e)},o.prototype.slideHandler=function(e,t,i){var n,s,o,r=this;return t=t||!1,!0===r.animating&&!0===r.options.waitForAnimate||!0===r.options.fade&&r.currentSlide===e||r.slideCount<=r.options.slidesToShow?void 0:(!1===t&&r.asNavFor(e),n=e,t=r.getLeft(n),o=r.getLeft(r.currentSlide),r.currentLeft=null===r.swipeLeft?o:r.swipeLeft,!1===r.options.infinite&&!1===r.options.centerMode&&(e<0||e>r.getDotCount()*r.options.slidesToScroll)||!1===r.options.infinite&&!0===r.options.centerMode&&(e<0||e>r.slideCount-r.options.slidesToScroll)?void(!1===r.options.fade&&(n=r.currentSlide,!0!==i?r.animateSlide(o,function(){r.postSlide(n)}):r.postSlide(n))):(r.options.autoplay&&clearInterval(r.autoPlayTimer),s=n<0?r.slideCount%r.options.slidesToScroll!=0?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+n:n>=r.slideCount?r.slideCount%r.options.slidesToScroll!=0?0:n-r.slideCount:n,r.animating=!0,r.$slider.trigger("beforeChange",[r,r.currentSlide,s]),e=r.currentSlide,r.currentSlide=s,r.setSlideClasses(r.currentSlide),r.options.asNavFor&&(o=(o=r.getNavTarget()).slick("getSlick")).slideCount<=o.options.slidesToShow&&o.setSlideClasses(r.currentSlide),r.updateDots(),r.updateArrows(),!0===r.options.fade?(!0!==i?(r.fadeSlideOut(e),r.fadeSlide(s,function(){r.postSlide(s)})):r.postSlide(s),void r.animateHeight()):void(!0!==i?r.animateSlide(t,function(){r.postSlide(s)}):r.postSlide(s))))},o.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},o.prototype.swipeDirection=function(){var e=this.touchObject.startX-this.touchObject.curX,t=this.touchObject.startY-this.touchObject.curY,t=Math.atan2(t,e),e=Math.round(180*t/Math.PI);return(e=e<0?360-Math.abs(e):e)<=45&&0<=e||e<=360&&315<=e?!1===this.options.rtl?"left":"right":135<=e&&e<=225?!1===this.options.rtl?"right":"left":!0===this.options.verticalSwiping?35<=e&&e<=135?"down":"up":"vertical"},o.prototype.swipeEnd=function(e){var t,i,n=this;if(n.dragging=!1,n.interrupted=!1,n.shouldClick=!(10<n.touchObject.swipeLength),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(t),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},o.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},o.prototype.swipeMove=function(e){var t,i,n=this,s=void 0!==e.originalEvent?e.originalEvent.touches:null;return!(!n.dragging||s&&1!==s.length)&&(t=n.getLeft(n.currentSlide),n.touchObject.curX=void 0!==s?s[0].pageX:e.clientX,n.touchObject.curY=void 0!==s?s[0].pageY:e.clientY,n.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(n.touchObject.curX-n.touchObject.startX,2))),!0===n.options.verticalSwiping&&(n.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(n.touchObject.curY-n.touchObject.startY,2)))),"vertical"!==(s=n.swipeDirection())?(void 0!==e.originalEvent&&4<n.touchObject.swipeLength&&e.preventDefault(),e=(!1===n.options.rtl?1:-1)*(n.touchObject.curX>n.touchObject.startX?1:-1),!0===n.options.verticalSwiping&&(e=n.touchObject.curY>n.touchObject.startY?1:-1),i=n.touchObject.swipeLength,(n.touchObject.edgeHit=!1)===n.options.infinite&&(0===n.currentSlide&&"right"===s||n.currentSlide>=n.getDotCount()&&"left"===s)&&(i=n.touchObject.swipeLength*n.options.edgeFriction,n.touchObject.edgeHit=!0),!1===n.options.vertical?n.swipeLeft=t+i*e:n.swipeLeft=t+i*(n.$list.height()/n.listWidth)*e,!0===n.options.verticalSwiping&&(n.swipeLeft=t+i*e),!0!==n.options.fade&&!1!==n.options.touchMove&&(!0===n.animating?(n.swipeLeft=null,!1):void n.setCSS(n.swipeLeft))):void 0)},o.prototype.swipeStart=function(e){var t,i=this;return i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow?!(i.touchObject={}):(void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,void(i.dragging=!0))},o.prototype.unfilterSlides=o.prototype.slickUnfilter=function(){null!==this.$slidesCache&&(this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.appendTo(this.$slideTrack),this.reinit())},o.prototype.unload=function(){var e=this;c(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},o.prototype.unslick=function(e){this.$slider.trigger("unslick",[this,e]),this.destroy()},o.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2);!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},o.prototype.updateDots=function(){null!==this.$dots&&(this.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),this.$dots.find("li").eq(Math.floor(this.currentSlide/this.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},o.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},c.fn.slick=function(){for(var e,t=arguments[0],i=Array.prototype.slice.call(arguments,1),n=this.length,s=0;s<n;s++)if("object"==typeof t||void 0===t?this[s].slick=new o(this[s],t):e=this[s].slick[t].apply(this[s].slick,i),void 0!==e)return e;return this}}),((p,f,g)=>{function m(e,t,i){e=f.createElement(e);return t&&(e.id=H+t),i&&(e.style.cssText=i),p(e)}function u(){return g.innerHeight||p(g).height()}function a(e){var t=k.length,e=(O+e)%t;return e<0?t+e:e}function _(e,t){return Math.round((/%/.test(e)?("x"===t?h.width():u())/100:1)*parseInt(e,10))}function z(e,t){return e.photo||e.photoRegex.test(t)}function B(e,t){return e.retinaUrl&&1<g.devicePixelRatio?t.replace(e.photoRegex,e.retinaSuffix):t}function V(e){"contains"in b[0]&&!b[0].contains(e.target)&&(e.stopPropagation(),b.focus())}function U(){var e,t=p.data(A,q);for(e in null==t?(C=p.extend({},se),console&&console.log&&console.log("Error: cboxElement missing settings object")):C=p.extend({},t),C)p.isFunction(C[e])&&"on"!==e.slice(0,2)&&(C[e]=C[e].call(A));C.rel=C.rel||A.rel||p(A).data("rel")||"nofollow",C.href=C.href||p(A).attr("href"),C.title=C.title||A.title,"string"==typeof C.href&&(C.href=p.trim(C.href))}function v(e,t){p(f).trigger(e),F.trigger(e),p.isFunction(t)&&t.call(A)}function s(e){var t,i,n,s,o,r,a,l,c,d,h,u;N||(A=e,U(),k=p(A),O=0,"nofollow"!==C.rel&&(k=p("."+R).filter(function(){var e,t=p.data(this,q);return(e=t?p(this).data("rel")||t.rel||this.rel:e)===C.rel}),-1===(O=k.index(A)))&&(k=k.add(A),O=k.length-1),y.css({opacity:parseFloat(C.opacity),cursor:C.overlayClose?"pointer":"auto",visibility:"visible"}).show(),ne&&b.add(y).removeClass(ne),C.className&&b.add(y).addClass(C.className),ne=C.className,C.closeButton?ee.html(C.close).appendTo(w):ee.appendTo("<div/>"),D||(D=I=!0,b.css({visibility:"hidden",display:"block"}),x=m(W,"LoadedContent","width:0; height:0; overflow:hidden"),w.css({width:"",height:""}).append(x),S=X.height()+Q.height()+w.outerHeight(!0)-w.height(),j=Y.width()+K.width()+w.outerWidth(!0)-w.width(),E=x.outerHeight(!0),P=x.outerWidth(!0),C.w=_(C.initialWidth,"x"),C.h=_(C.initialHeight,"y"),M.position(),h=H+"Slideshow_",u="click."+H,C.slideshow&&k[1]?(a=function(){clearTimeout(r)},l=function(){(C.loop||k[O+1])&&(r=setTimeout(M.next,C.slideshowSpeed))},c=function(){$.html(C.slideshowStop).unbind(u).one(u,d),F.bind(ae,l).bind(re,a).bind(le,d),b.removeClass(h+"off").addClass(h+"on")},d=function(){a(),F.unbind(ae,l).unbind(re,a).unbind(le,d),$.html(C.slideshowStart).unbind(u).one(u,function(){M.next(),c()}),b.removeClass(h+"on").addClass(h+"off")},(C.slideshowAuto?c:d)()):b.removeClass(h+"off "+h+"on"),v(oe,C.onOpen),te.add(J).hide(),b.focus(),C.trapFocus&&f.addEventListener&&(f.addEventListener("focus",V,!0),F.one(ce,function(){f.removeEventListener("focus",V,!0)})),C.returnFocus&&F.one(ce,function(){p(A).focus()})),s=M.prep,o=++he,L=!(I=!0),A=k[O],U(),v(de),v(re,C.onLoad),C.h=C.height?_(C.height,"y")-E-S:C.innerHeight&&_(C.innerHeight,"y"),C.w=C.width?_(C.width,"x")-P-j:C.innerWidth&&_(C.innerWidth,"x"),C.mw=C.w,C.mh=C.h,C.maxWidth&&(C.mw=_(C.maxWidth,"x")-P-j,C.mw=C.w&&C.w<C.mw?C.w:C.mw),C.maxHeight&&(C.mh=_(C.maxHeight,"y")-E-S,C.mh=C.h&&C.h<C.mh?C.h:C.mh),t=C.href,ie=setTimeout(function(){G.show()},100),C.inline?(n=m(W).hide().insertBefore(p(t)[0]),F.one(de,function(){n.replaceWith(x.children())}),s(p(t))):C.iframe?s(" "):C.html?s(C.html):z(C,t)?(t=B(C,t),L=f.createElement("img"),p(L).addClass(H+"Photo").bind("error",function(){C.title=!1,s(m(W,"Error").html(C.imgError))}).one("load",function(){var e;o===he&&(L.alt=p(A).attr("alt")||p(A).attr("data-alt")||"",C.retinaImage&&1<g.devicePixelRatio&&(L.height=L.height/g.devicePixelRatio,L.width=L.width/g.devicePixelRatio),C.scalePhotos&&(i=function(){L.height-=L.height*e,L.width-=L.width*e},C.mw&&L.width>C.mw&&(e=(L.width-C.mw)/L.width,i()),C.mh)&&L.height>C.mh&&(e=(L.height-C.mh)/L.height,i()),C.h&&(L.style.marginTop=Math.max(C.mh-L.height,0)/2+"px"),k[1]&&(C.loop||k[O+1])&&(L.style.cursor="pointer",L.onclick=function(){M.next()}),L.style.width=L.width+"px",L.style.height=L.height+"px",setTimeout(function(){s(L)},1))}),setTimeout(function(){L.src=t},1)):t&&T.load(t,C.data,function(e,t){o===he&&s("error"===t?m(W,"Error").html(C.xhrError):p(this).contents())}))}function o(){!b&&f.body&&(r=!1,h=p(g),b=m(W).attr({id:q,class:!1===p.support.opacity?H+"IE":"",role:"dialog",tabindex:"-1"}).hide(),y=m(W,"Overlay").hide(),G=p([m(W,"LoadingOverlay")[0],m(W,"LoadingGraphic")[0]]),d=m(W,"Wrapper"),w=m(W,"Content").append(J=m(W,"Title"),Z=m(W,"Current"),c=p('<button type="button"/>').attr({id:H+"Previous"}),l=p('<button type="button"/>').attr({id:H+"Next"}),$=m("button","Slideshow"),G),ee=p('<button type="button"/>').attr({id:H+"Close"}),d.append(m(W).append(m(W,"TopLeft"),X=m(W,"TopCenter"),m(W,"TopRight")),m(W,!1,"clear:left").append(Y=m(W,"MiddleLeft"),w,K=m(W,"MiddleRight")),m(W,!1,"clear:left").append(m(W,"BottomLeft"),Q=m(W,"BottomCenter"),m(W,"BottomRight"))).find("div div").css({float:"left"}),T=m(W,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),te=l.add(c).add(Z).add($),p(f.body).append(y,b.append(d,T)))}var y,b,d,w,X,Y,K,Q,k,h,x,T,G,J,Z,$,l,c,ee,te,C,S,j,E,P,A,O,L,D,I,N,ie,M,ne,r,se={transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:!1,returnFocus:!0,trapFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp)((#|\?).*)?$/i,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0},q="colorbox",H="cbox",R=H+"Element",oe=H+"_open",re=H+"_load",ae=H+"_complete",le=H+"_cleanup",ce=H+"_closed",de=H+"_purge",F=p("<a/>"),W="div",he=0,ue={};p.colorbox||(p(o),(M=p.fn[q]=p[q]=function(e,t){var i=this;if(e=e||{},o(),b&&(r||(r=!0,l.click(function(){M.next()}),c.click(function(){M.prev()}),ee.click(function(){M.close()}),y.click(function(){C.overlayClose&&M.close()}),p(f).bind("keydown."+H,function(e){var t=e.keyCode;D&&C.escKey&&27===t&&(e.preventDefault(),M.close()),D&&C.arrowKey&&k[1]&&!e.altKey&&(37===t?(e.preventDefault(),c.click()):39===t&&(e.preventDefault(),l.click()))}),p.isFunction(p.fn.on)?p(f).on("click."+H,"."+R,n):p("."+R).live("click."+H,n)),1)){if(p.isFunction(i))i=p("<a/>"),e.open=!0;else if(!i[0])return i;t&&(e.onComplete=t),i.each(function(){p.data(this,q,p.extend({},p.data(this,q)||se,e))}).addClass(R),(p.isFunction(e.open)&&e.open.call(i)||e.open)&&s(i[0])}function n(e){1<e.which||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),s(this))}return i}).position=function(t,e){function i(){X[0].style.width=Q[0].style.width=w[0].style.width=parseInt(b[0].style.width,10)-j+"px",w[0].style.height=Y[0].style.height=K[0].style.height=parseInt(b[0].style.height,10)-S+"px"}var n,s,o,r,a=0,l=0,c=b.offset();h.unbind("resize."+H),b.css({top:-9e4,left:-9e4}),s=h.scrollTop(),o=h.scrollLeft(),C.fixed?(c.top-=s,c.left-=o,b.css({position:"fixed"})):(a=s,l=o,b.css({position:"absolute"})),l+=!1!==C.right?Math.max(h.width()-C.w-P-j-_(C.right,"x"),0):!1!==C.left?_(C.left,"x"):Math.round(Math.max(h.width()-C.w-P-j,0)/2),a+=!1!==C.bottom?Math.max(u()-C.h-E-S-_(C.bottom,"y"),0):!1!==C.top?_(C.top,"y"):Math.round(Math.max(u()-C.h-E-S,0)/2),b.css({top:c.top,left:c.left,visibility:"visible"}),d[0].style.width=d[0].style.height="9999px",n={width:C.w+P+j,height:C.h+E+S,top:a,left:l},t&&(r=0,p.each(n,function(e){return n[e]!==ue[e]?void(r=t):void 0}),t=r),ue=n,t||b.css(n),b.dequeue().animate(n,{duration:t||0,complete:function(){i(),I=!1,d[0].style.width=C.w+P+j+"px",d[0].style.height=C.h+E+S+"px",C.reposition&&setTimeout(function(){h.bind("resize."+H,M.position)},1),e&&e()},step:i})},M.resize=function(e){var t;D&&((e=e||{}).width&&(C.w=_(e.width,"x")-P-j),e.innerWidth&&(C.w=_(e.innerWidth,"x")),x.css({width:C.w}),e.height&&(C.h=_(e.height,"y")-E-S),e.innerHeight&&(C.h=_(e.innerHeight,"y")),e.innerHeight||e.height||(t=x.scrollTop(),x.css({height:"auto"}),C.h=x.height()),x.css({height:C.h}),t&&x.scrollTop(t),M.position("none"===C.transition?0:C.speed))},M.prep=function(e){var t,r;D&&(r="none"===C.transition?0:C.speed,x.empty().remove(),(x=m(W,"LoadedContent").append(e)).hide().appendTo(T.show()).css({width:(C.w=C.w||x.width(),C.w=C.mw&&C.mw<C.w?C.mw:C.w,C.w),overflow:C.scrolling?"auto":"hidden"}).css({height:(C.h=C.h||x.height(),C.h=C.mh&&C.mh<C.h?C.mh:C.h,C.h)}).prependTo(w),T.hide(),p(L).css({float:"none"}),t=function(){function e(){!1===p.support.opacity&&b[0].style.removeAttribute("filter")}var t,i,n=k.length,s="frameBorder",o="allowTransparency";D&&(i=function(){clearTimeout(ie),G.hide(),v(ae,C.onComplete)},J.html(C.title).add(x).show(),1<n?("string"==typeof C.current&&Z.html(C.current.replace("{current}",O+1).replace("{total}",n)).show(),l[C.loop||O<n-1?"show":"hide"]().html(C.next),c[C.loop||O?"show":"hide"]().html(C.previous),C.slideshow&&$.show(),C.preloading&&p.each([a(-1),a(1)],function(){var e,t=k[this],i=p.data(t,q);i&&i.href?(e=i.href,p.isFunction(e)&&(e=e.call(t))):e=p(t).attr("href"),e&&z(i,e)&&(e=B(i,e),f.createElement("img").src=e)})):te.hide(),C.iframe?(s in(t=m("iframe")[0])&&(t[s]=0),o in t&&(t[o]="true"),C.scrolling||(t.scrolling="no"),p(t).attr({src:C.href,name:(new Date).getTime(),class:H+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",i).appendTo(x),F.one(de,function(){t.src="//about:blank"}),C.fastIframe&&p(t).trigger("load")):i(),"fade"===C.transition?b.fadeTo(r,1,e):e())},"fade"===C.transition?b.fadeTo(r,0,function(){M.position(0,t)}):M.position(r,t))},M.next=function(){!I&&k[1]&&(C.loop||k[O+1])&&(O=a(1),s(k[O]))},M.prev=function(){!I&&k[1]&&(C.loop||O)&&(O=a(-1),s(k[O]))},M.close=function(){D&&!N&&(D=!(N=!0),v(le,C.onCleanup),h.unbind("."+H),y.fadeTo(C.fadeOut||0,0),b.stop().fadeTo(C.fadeOut||0,0,function(){b.add(y).css({opacity:1,cursor:"auto"}).hide(),v(de),x.empty().remove(),setTimeout(function(){N=!1,v(ce,C.onClosed)},1)}))},M.remove=function(){b&&(b.stop(),p.colorbox.close(),b.stop().remove(),y.remove(),N=!1,b=null,p("."+R).removeData(q).removeClass(R),p(f).unbind("click."+H))},M.element=function(){return p(A)},M.settings=se)})(jQuery,document,window),(l=>{l.fn.unveil=function(e,t){var i,s=l(window),o=e||0,n=1<window.devicePixelRatio?"data-src-retina":"data-src",r=this;function a(){var e=r.filter(function(){var e,t,i,n=l(this);if(!n.is(":hidden"))return t=(e=s.scrollTop())+s.height(),n=(i=n.offset().top)+n.height(),e-o<=n&&i<=t+o});i=e.trigger("unveil"),r=r.not(i)}return this.one("unveil",function(){var e;(e=this.getAttribute(n)||this.getAttribute("data-src"))&&(this.setAttribute("src",e),"function"==typeof t)&&t.call(this)}),s.on("scroll.unveil resize.unveil lookup.unveil",a),a(),this}})(window.jQuery||window.Zepto),$(document).ready(function(){$("[placeholder]").focus(function(){var e=$(this);e.val()==e.attr("placeholder")&&(e.val(""),e.removeClass("placeholder"))}).blur(function(){var e=$(this);""!=e.val()&&e.val()!=e.attr("placeholder")||(e.addClass("placeholder"),e.val(e.attr("placeholder")),e.css("color","#777777"))}).blur().parents("form").submit(function(){$(this).find("[placeholder]").each(function(){var e=$(this);e.val()==e.attr("placeholder")&&(e.val(""),e.css("color","#777777"))})})});var glob_ga_account="",glob_ga_tracker="",glob_ga_two_on=0,js_scroll_time=2e3,scroll_threshold=0;function login_download(){var e=window.location.pathname,t=encodeURIComponent(window.location.hash);window.location.href="https://www.klett-sprachen.de/warenkorb/konto.html?ref="+e+t}function show_mega_menu(){try{$(this).find(".navi_link").addClass("hover").next().show()}catch(e){}}function hide_mega_menu(){try{$(this).find(".navi_link").removeClass("hover").next().hide()}catch(e){}}function show_overlay(){try{$(this).find(".overlay").css("display","block")}catch(e){}}function hide_overlay(){try{$(this).find(".overlay").css("display","none")}catch(e){}}function slider_init(){return 0}function colorbox_init(){var e,t;"ontouchstart"in window||navigator.maxTouchPoints?($(".livebook_box").removeClass("colorbox"),$("a.livebook_box").attr("target","_blank")):(t=window.innerWidth<1200?e="95%":(e="1200px","800px"),$(".livebook_box").colorbox({iframe:!0,innerWidth:e,innerHeight:t}))}function change_event_tab(e,t){if(t=void 0!==t?t:0,$(".titel_aktiv").addClass("titel_inaktiv"),$(".reiter_titel").removeClass("titel_aktiv"),$(".reiter_content").css("display","none"),$("#content_"+e).css("display","block"),$("#reiter_"+e).find(".reiter_titel").removeClass("titel_inaktiv"),$("#reiter_"+e).find(".reiter_titel").addClass("titel_aktiv"),1==e){if(window.location.hash){var n=window.location.hash.substring(1).split("&"),s="";for(i=0;i<n.length;i++){var o=n[i].split("=");if(2==o.length)switch(o[0]){case"reiter":reiter=o[1];break;case"fach":o[1],$('select[name="fach"]').val(o[1]),$('select[name="fach"]').trigger("chosen:updated");break;case"schulart":o[1],$('select[name="schulart"]').val(o[1]),$('select[name="schulart"]').trigger("chosen:updated");break;case"art":"undefined"!=o[1]&&""!=o[1]&&(1==(s=o[1])?($('input[id="art_1"]').attr("checked",!0),$('input[id="art_2"]')):($('input[id="art_2"]').attr("checked",!0),$('input[id="art_1"]'))).removeAttr("checked");break;case"bundesland":o[1],$('select[name="bundesland"]').val(o[1]),$('select[name="bundesland"]').trigger("chosen:updated")}}form_elem=$("#content_1 .ajax_content_class"),window.location.hash="reiter="+e,1==t&&ajax_veranstaltungen(form_elem,s)}var r,a,l;document.location.search&&(r=(t=new URLSearchParams(document.location.search)).get("bundesland"),a=t.get("schulart"),l=t.get("fach"),t=t.get("art"),$('select[name="fach"]').val(l),$('select[name="schulart"]').val(a),$('select[name="bundesland"]').val(r),("undefined"!=t&&""!=t&&"0"!=t?1==t?($('input[id="art_1"]').attr("checked",!0),$('input[id="art_2"]')):($('input[id="art_2"]').attr("checked",!0),$('input[id="art_1"]')):($('input[id="art_2"]').removeAttr("checked"),$('input[id="art_1"]'))).removeAttr("checked"),$('select[name="fach"]').trigger("chosen:updated"),$('select[name="schulart"]').trigger("chosen:updated"),$('select[name="bundesland"]').trigger("chosen:updated"))}else window.location.hash="reiter="+e}function change_tab(e){if(window.innerWidth<=767){var t="mb",i="dt";if($("#reiter_"+e).find(".reiter_titel").hasClass("titel_aktiv"))return $("#reiter_"+e).find(".reiter_titel").removeClass("titel_aktiv"),$("#reiter_"+e).find(".reiter_titel").addClass("titel_inaktiv"),$("#reiter_"+e).find("i").addClass("fa-chevron-down"),$("#reiter_"+e).find("i").removeClass("fa-chevron-up"),$(".reiter_content").slideUp(),!1}else t="dt",i="mb";var n,s,o,r,a,l;$(".titel_aktiv").addClass("titel_inaktiv"),$(".reiter_titel").removeClass("titel_aktiv"),$("#reiter_"+e).find(".reiter_titel").removeClass("titel_inaktiv"),$("#reiter_"+e).find(".reiter_titel").addClass("titel_aktiv"),$(".reiter_titel").find("i").removeClass("fa-chevron-up"),$(".reiter_titel").find("i").addClass("fa-chevron-down"),$("#reiter_"+e).find("i").removeClass("fa-chevron-down"),$("#reiter_"+e).find("i").addClass("fa-chevron-up"),$(".reiter_content").css("display","none"),window.innerWidth<=767?($("#content_"+t+"_"+e).slideDown(1e3),"konzeption"!=e&&"autoren_info"!=e&&"mediathek"!=e||(l=$("#reiter_"+e).offset().top,$("html, body").animate({scrollTop:l},1e3))):$("#content_"+t+"_"+e).css("display","block"),$(".niveau_content_"+e).css("display","none"),"mediathek"==e?(a=null!=(s=getUrlVars()).dl_niveau_str?s.dl_niveau_str:null!=s.niveau?s.niveau:"",$(".niveau_content_mediathek").is(":visible")?a=void 0===(l=$("#content_"+t+"_mediathek").find(".niveau_aktiv"))?(l=$("#content_"+i+"_mediathek").find(".niveau_aktiv")).attr("id").replace("niveau_"+i+"_mediathek_",""):l.attr("id").replace("niveau_"+t+"_mediathek_",""):(i="#niveau_"+t+"_mediathek_",l="#content_"+t+"_mediathek",""!=a&&(n=$(l).find(".niveau_content_mediathek_"+a)).length?$(n).css("display","block"):(n=$(l).find(".niveau_content_mediathek:first"),$(n).css("display","block"),a=n.attr("id").replace("niveau_"+t+"_mediathek_content_","")),a.length&&($(".niveau_mediathek").removeClass("niveau_aktiv"),$(".niveau_mediathek").addClass("niveau_inaktiv"),$(i+a).removeClass("niveau_inaktiv"),$(i+a).addClass("niveau_aktiv"))),window.location.hash=append_dl_kategorie_group(a)):"autoren_info"==e?($(window).trigger("lookup"),window.location.hash="reiter="+e):"konzeption"==e?window.location.hash="reiter="+e:(l=null!=(s=getUrlVars()).niveau?(a=s.niveau,$("#niveau_"+t+"_"+e+"_content_"+a).length?($("#niveau_"+t+"_"+e+"_content_"+a).css("display","block"),"#niveau_"+t+"_"+e+"_"+a):(o=".niveau_content_"+e+":first",r=$("#content_"+t+"_"+e).find(o),$(r).css("display","block"),"#niveau_"+t+"_"+e+"_"+(a=$(r).attr("id").replace("niveau_"+t+"_"+e+"_content_","")))):null!=s.dl_niveau_str&&(a=s.dl_niveau_str,$("#niveau_"+t+"_"+e+"_content_"+a).length)?($("#niveau_"+t+"_"+e+"_content_"+a).css("display","block"),"#niveau_"+t+"_"+e+"_"+a):(o=".niveau_content_"+e+":first",r=$("#content_"+t+"_"+e).find(o),$(r).css("display","block"),"#niveau_"+t+"_"+e+"_"+(a=$(r).attr("id").replace("niveau_"+t+"_"+e+"_content_",""))),$(".niveau_"+e).removeClass("niveau_aktiv"),$(".niveau_"+e).addClass("niveau_inaktiv"),$(l).removeClass("niveau_inaktiv"),$(l).addClass("niveau_aktiv"),window.location.hash=null!=typeof a?"reiter="+e+"&niveau="+a:"reiter="+e,$(".reiter_content:visible .niveau_aktiv").find("img").trigger("unveil"))}function change_niveaustufe(e,t){var i;$(".niveau_aktiv").addClass("niveau_inaktiv"),$(".niveau_"+t).removeClass("niveau_aktiv"),$("#niveau_mb_"+t+"_"+e).removeClass("niveau_inaktiv"),$("#niveau_dt_"+t+"_"+e).removeClass("niveau_inaktiv"),$("#niveau_mb_"+t+"_"+e).addClass("niveau_aktiv"),$("#niveau_dt_"+t+"_"+e).addClass("niveau_aktiv"),$(".niveau_content_"+t).css("display","none"),$("#niveau_mb_"+t+"_content_"+e).css("display","block"),$("#niveau_dt_"+t+"_content_"+e).css("display","block"),"mediathek"==t?window.location.hash=append_dl_kategorie_group(e):(0<(i=window.location.hash.split("&")).length?window.location.hash="reiter="+i[0].split("=")[1]+"&niveau="+e:window.location.hash="reiter=titel&niveau="+e,"titel"==t&&$(".reiter_content:visible .niveau_content_titel:visible").find("img").trigger("unveil"))}function append_dl_kategorie_group(e){for(var t,i=getUrlVars(),n="niveau_"+(window.innerWidth<=767?"mb":"dt")+"_mediathek_content_"+e,s=$("#"+n).find(".download_aktiv:first"),n=(0===s.length?(n=$("#"+n).find("a:first"),t=$(n).attr("id"),n.click()):t=$(s).attr("id"),t.split("_")),o=(n[n.length-2],"reiter=mediathek"),r=0,a=1;a<i.length;a++)"dl_niveau_str"==i[a]||"niveau"==i[a]?(o+="&dl_niveau_str="+e,r=1):o+="&"+i[a]+"="+i[i[a]];return 0==r&&(o+="&dl_niveau_str="+e),o}function scroll_download_anchor(e){var t=$("#"+e),t=(0<t.length&&(t=$(t).offset().top,$("html, body").animate({scrollTop:t},1e3)),e.split("_").pop()),e=window.location.hash;e.match(/anchor/)?window.location.hash=e.replace(/anchor=.+/,"anchor="+t):0==e.length?window.location.hash+="anchor="+t:window.location.hash+="&anchor="+t}function scroll_form_success(e,t){var e=$("#"+e);0<e.length&&(e=$(e).offset().top-20,$("html, body").animate({scrollTop:e},t))}function load_ajax_downloadliste(e,t,i){a=window.innerWidth<=767?"mb":"dt",$(e).find(".loader-filter").css("top",20),$(e).find(".loader-filter").css("left",100),$(e).find(".loader-filter").show();var n,s=getUrlVars(),o=0,r=0,s=(null!=s.anchor&&(o=s.anchor),null!=s["list-anchor"]&&(r=s["list-anchor"]),$(e).closest(".niveau_content_mediathek")),a=$(s).attr("id").replace("niveau_"+a+"_mediathek_content_",""),l=($(s).find("a").addClass("download_inaktiv"),$(s).find("a").removeClass("download_aktiv"),e.removeClass("download_inaktiv"),e.addClass("download_aktiv"),window.innerWidth<=767?($("li .content_mediathek_right").remove(),$("#content_mb_mediathek .content_mediathek_right").remove(),n=$("<div class='content_mediathek_right' style='padding-top:20px; margin-bottom:20px;'><div class='loader-filter'></div><div class='downloadgruppen_liste_container'></div></div>"),$(e).closest("li").append(n),n=$(e).closest("li").find(".downloadgruppen_liste_container:first"),void 0!==(l=$(e).closest("li").offset())&&window.scrollTo(l.left,l.top-15)):n=$(s).find(".downloadgruppen_liste_container:first"),$(n).empty(),$(e).closest("form")),s="url_"+$(l).find("input:hidden[name=niveau]").val(),l=$(l).find("input:hidden[name="+s+"]").val(),t=(l=(l+="&dl_gruppe="+t)+("&dl_kategorie="+i)+("&dl_niveau_str="+a),0!=o&&(l+="&anchor="+o),0!=r&&(l+="&list-anchor="+r),window.innerWidth,s=$("<div class='downloadgruppen_liste'></div><div class='clear'></div>"),$(n).append(s),$(n).find(".downloadgruppen_liste:first"));window.location.hash=0!=o?"reiter=mediathek&dl_niveau_str="+a+"&dl_kategorie="+i+"&anchor="+o:0!=r?"reiter=mediathek&dl_niveau_str="+a+"&dl_kategorie="+i+"&list-anchor="+r:"reiter=mediathek&dl_niveau_str="+a+"&dl_kategorie="+i,$(t).load(l,function(){$(e).find(".loader-filter").hide()})}function getUrlVars(){for(var e,t=[],i=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<i.length;n++)e=i[n].split("="),t.push(e[0]),t[e[0]]=e[1];return t}function getUrlVarsHashes(){var e,t,i=[];t=(0<window.location.href.indexOf("?")?window.location.href.slice(window.location.href.indexOf("?")+1):window.location.href.slice(window.location.href.indexOf("#")+1)).split("&");for(var n=0;n<t.length;n++)e=t[n].split("="),i.push(e[0]),i[e[0]]=e[1];return i}function add_param_to_url(t,i,n){var t=remove_url_param(t,i),e=new RegExp("([?&]"+i+"=)[^&]+","");function s(e){t+=e+i+"="+encodeURIComponent(n)}return-1===t.indexOf("?")?s("?"):e.test(t)?t=t.replace(e,"$1"+encodeURIComponent(n)):s("&"),t}function remove_url_param(e,t){var i=e.split("?");if(2<=i.length){for(var n=encodeURIComponent(t)+"=",s=i[1].split(/[&;]/g),o=s.length;0<o--;)-1!==s[o].lastIndexOf(n,0)&&s.splice(o,1);return e=i[0]+(0<s.length?"?"+s.join("&"):"")}return e}function toggle_linkfinder_kat(e){"block"==document.getElementById("lw"+e).style.display?document.getElementById("lw"+e).style.display="none":document.getElementById("lw"+e).style.display="block"}function getCookie(e){for(var t=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var s=i[n];" "==s.charAt(0);)s=s.substring(1);if(-1!=s.indexOf(t))return s.substring(t.length,s.length)}return""}function setCookie(e,t,i){var n=new Date,i=(n.setTime(n.getTime()+24*i*60*60*1e3),"expires="+n.toUTCString());document.cookie=e+"="+t+";"+i+";path=/"}function adjustColor(){var e=$(".slide:hidden").css("background-color");$(".moodbar_container").css("background-color",e),adjustWidth()}function adjustWidth(){$("#moodbar_slider").css("width","auto"),$(".slide:visible").css("width","100%")}function toggle_hover(e){var t=e.search("_hover");return-1<t?e.substr(0,t):e+"_hover"}function chosen_resize(){$(".lehrwerksfinder_select").css("width","100%"),$(".lektuerefinder_select").css("width","100%"),$(".downloadfinder_select").css("width","100%"),$(".titelliste_select .chosen-choices .search-field .default").css("width","100%"),$(".veranstaltungen_select").css("width","100%")}function events_init(){if($(".veranstaltungen_select:not(.chosen-container)").chosen({width:"100%",disable_search:!0,inherit_select_classes:!0}),window.location.hash)for(var e=window.location.hash.substring(1).split("&"),t=0;t<e.length;t++){var i=e[t].split("=");if(2==i.length)switch(i[0]){case"reiter":reiter=i[1];break;case"fach":i[1],$('select[name="fach"]').val(i[1]),$('select[name="fach"]').trigger("chosen:updated");break;case"schulart":i[1],$('select[name="schulart"]').val(i[1]),$('select[name="schulart"]').trigger("chosen:updated");break;case"art":"undefined"!=i[1]&&""!=i[1]&&(i[1],(1==i[1]?($('input[id="art_1"]').attr("checked",!0),$('input[id="art_2"]')):($('input[id="art_2"]').attr("checked",!0),$('input[id="art_1"]'))).removeAttr("checked"));break;case"bundesland":i[1],$('select[name="bundesland"]').val(i[1]),$('select[name="bundesland"]').trigger("chosen:updated")}}var n;window.location.search&&("undefined"!=(n=new URLSearchParams(window.location.search).get("art"))&&"0"!=n?(1==n?($('input[id="art_1"]').attr("checked",!0),$('input[id="art_2"]')):($('input[id="art_2"]').attr("checked",!0),$('input[id="art_1"]'))).removeAttr("checked"):($('input[id="art_2"]').attr("checked",!1),$('input[id="art_1"]').attr("checked",!1))),$(".veranstaltungen_select").change(function(e){var t=$("input[type=checkbox][name=art]:checked").val();ajax_veranstaltungen($(this).closest(".ajax_content_class"),t)})}function ajax_veranstaltungen(e,t){var i=e,e=$(i).attr("id"),n=($(i).find(".ajax-loader").show(),$(i).find("select[name=bundesland]").val()),t=(2==t?($("#art_1").attr("checked",!1),$("#bundesland-filter").hide()):$("#bundesland-filter").show(),$("input[type=checkbox][name=art]:checked").val()),s="",o="";switch(e){case"ajax_content":s=$(i).find("select[name=fach]").val(),o=$(i).find("select[name=schulart]").val();break;case"ajax_content_ausland":s=$(i).find("select[name=fach_a]").val(),o=$(i).find("select[name=schulart_a]").val();break;case"ajax_content_online":s=$(i).find("select[name=fach_o]").val(),o=$(i).find("select[name=schulart_o]").val()}var e=$(i).find("input[name=page_id]").val(),r=$(i).find("input[name=url]").val();r+="/c-"+e+"?",void 0!==n&&(r+="bundesland="+n+"&"),r=(r=r+"fach="+s+"&schulart="+o)+(void 0!==t&&""!=t?"&art="+t:"&art=0")+"&reiter=1",window.location.hash="reiter_1",window.location=r+window.location.hash,$(i).find(".ajax-loader").hide()}function highlight_letter(){$(".buchstabe_link").click(function(){$(".buchstabe_link").removeClass("active"),$(this).addClass("active")})}function load_ajax_bg_mega_menu(){$(".off_canvas_link").click(function(){var e,t=this.id.replace("bg_link_",""),i=window.location.href,n=window.location.host,s=window.location.protocol,n=i.substr(n.length+s.length+3,i.length-1).split("/");if(s="en"==n[0]||"de"==n[0]?"/ajax/off_canvas?sprache="+n[0]+"&nav_pos_id="+t:"/ajax/off_canvas?nav_pos_id="+t,17!=t&&578!=t&&763!=t){if(!$(this).hasClass("active"))return e=$("#bg_off_canvas_sub_navi_content"),$(".off_canvas_link").removeClass("active"),$(this).addClass("active"),e.load(s,function(){}),!1;(e=$("#bg_off_canvas_sub_navi_content")).load(s,function(){})}})}function burger_navigate(){$(".bg_navi_head").click(function(){this.id.replace("bg_subnavigation_","");var e=$(this).find("ul");if($(e).is(":hidden")||"hidden"==$(e).css("visibility"))return setTimeout(function(){$(e).removeClass("bg_no_transition"),$(e).addClass("bg_transition")},10),$(".bg_navi_head").css("display","none"),$(this).css("display","block"),$(this).find(".pfeil_rechts-big_blue").addClass("hidden"),!1}),$(".bg_navi_item .back_link").click(function(){var e=$(this).closest("ul");return $(e).removeClass("bg_transition"),$(e).addClass("bg_no_transition"),$(".bg_navi_head").css("display","block"),$(".bg_navi_head").find(".pfeil_rechts-big_blue").removeClass("hidden"),!1}),$(".toggler_item").click(function(){var e=this.id.replace("bg_mega_toggle_","");$(".sub_item_"+e).removeClass("hidden"),$(this).next("hr").addClass("hidden"),$(this).addClass("hidden")})}function toggle_burger(){$("#mega_menu_bg_button i,#bg_off_canvas_close i").click(function(){var e;$("#burger_off_canvas").is(":visible")?($("#burger_off_canvas").css("display","none"),$("#burger_off_canvas").removeClass("visible-xs"),$("#burger_off_canvas").removeClass("visible-ms"),$("#burger_off_canvas").removeClass("visible-sm"),$("#burger_off_canvas").removeClass("visible-md")):($("#burger_off_canvas").css("display","block"),$("#burger_off_canvas").addClass("visible-xs"),$("#burger_off_canvas").addClass("visible-ms"),$("#burger_off_canvas").addClass("visible-sm"),$("#burger_off_canvas").addClass("visible-md"),e=(e="")==window.location.pathname.split("/")[1]?$("#bg_off_canvas_main_navi .navi_list > a[href^='/schule']"):$("#bg_off_canvas_main_navi .navi_list > a[href^='/"+window.location.pathname.split("/")[1]+"']"),$(e).trigger("click"))})}function tooltip_init(){$(".wako_tooltip").tooltip({placement:"auto right",trigger:"hover focus click",delay:{show:200,hide:500}}),$(".wako_anmelde_tooltip").tooltip({placement:"auto right",trigger:"hover focus click",delay:{show:100,hide:1e3},html:!0}),$("a.pruefpreis").tooltip({trigger:"hover focus click",delay:{show:200,hide:500}}),$("a.pruefpreis_2").tooltip({trigger:"hover focus click",delay:{show:200,hide:500}}),$("a.pruefpreis_3").tooltip({trigger:"hover focus click",delay:{show:200,hide:500}}),$("a.pruefpreis_2, a.pruefpreis, a.pruefpreis_3").on("shown.bs.tooltip",function(e){setTimeout(function(){$(e.target).tooltip("hide")},3e3)})}function decryptThis(e){for(var t=0,i="",n=0;n<e.length;n++)8364<=(t=e.charCodeAt(n))&&(t=128),i+=String.fromCharCode(t-2);return i}function decrypt_mail(e,t,i){i=i||"",e.href="mailto:"+decryptThis(t)+i}function tool_html_encode(e){return $("<div/>").text(e).html().replace(/&/g,"%26")}function tool_html_decode(e){return $("<div/>").html(e).text()}function warenkorb_slideout(e){$("#"+e).slideDown("slow"),window.setTimeout(function(){$("#"+e).slideUp("slow")},6e3)}function set_widget_form_config(n,e){return $.each(e,function(e,t){var i=n.find("input[name="+e+"][type!=checkbox]");(i=0==i.length?n.find("select[name="+e+"]"):i).val(decodeURIComponent(t))}),!1}function submit_widget_form(e,t,i){var n=e.find(t),t=e.serialize();return $.post(i,t,function(e){$(n).html(e)}),window.setTimeout(function(e){e.find(".loader-filter").hide()},1e3,$(e)),!1}function init_reihen_overlays(){var i,e=window.innerWidth;i=e<=479?2:e<=767?3:4,$(".reihenuebersicht .akkordeon-content").each(function(){var e=$(this).find(".reihe").toArray();$(this).find(".reihe").removeClass("last-in-row");for(var t=0;t<e.length;t++)(t+1)%i==0&&$(this).find(".reihe").eq(t).addClass("last-in-row")})}function set_fb_optout(){window.localStorage.setItem("fb_optout",!0)}function track_fb_event(e,t){cookiemanager.accepted_marketing&&(window.localStorage.getItem("fb_optout")?console.log("Ignoring FB event due to optout"):window.fbq&&fbq("track",e,t))}function reset_event_form(){$("#reset-event-form").click(function(){$(this).closest("form");$('select[name="fach"]').val("0"),$('select[name="fach"]').trigger("chosen:updated"),$('select[name="schulart"]').val("0"),$('select[name="schulart"]').trigger("chosen:updated"),$('input[id="art_2"]').removeAttr("checked"),$('input[id="art_1"]').removeAttr("checked"),$('select[name="bundesland"]').val("0"),$('select[name="bundesland"]').trigger("chosen:updated"),ajax_veranstaltungen($("#content_1 .ajax_content_class"),1)})}function reset_event_form_force(){$('select[name="fach"]').val("0"),$('select[name="fach"]').trigger("chosen:updated"),$('select[name="schulart"]').val("0"),$('select[name="schulart"]').trigger("chosen:updated"),$('input[id="art_2"]').removeAttr("checked"),$('input[id="art_1"]').removeAttr("checked"),$('select[name="bundesland"]').val("0"),$('select[name="bundesland"]').trigger("chosen:updated"),ajax_veranstaltungen($("#content_1 .ajax_content_class"),1)}function ajax_bdl_tracking(i,n,e){$.ajax({type:"GET",url:"/ajax/bdl_tracking",data:"track_type="+i+"&track_id="+n+"&track_name="+e,cache:!1,success:function(e,t){"true"==$("success",e).text()?console.log("BDL-Tracking erfolgreich - TrackType:"+i+" TrackID:"+n):console.log("Fehler BDL-Tracking")},error:function(){console.log("Fehler BDL-Tracking")}})}function load_not_cached_content(){$.ajax({type:"POST",url:"/ajax/load_not_cached_data",dataType:"json",success:function(e,t){var i;$("#wako_count").html(e.wako_count),$("#mein_konto").html("Anmelden"),2==e.user_logged_in&&($("#mein_konto").html("Mein Konto"),$("#user-eingeloggt").show(),$("#user-nicht-eingeloggt").remove(),0<=$.inArray(e.user_typ_id,[1,2,4,6])?($("svg#svg-konto").css("height","350px"),$("#polypoint-lehrer").show(),$("#polypoint-normalos").hide(),$("#lehrer-punkt").show(),0<=$.inArray(e.user_typ_id,[4,6])&&$("#schule-link").html("Meine Schule")):($("svg#svg-konto").css("height","250px"),$("#polypoint-normalos").show(),$("#polypoint-lehrer").hide(),$("#lehrer-punkt").hide())),"AT"!=e.land_kuerzel&&"LI"!=e.land_kuerzel||0==e.weiterleitung&&"/"==e.ga_page&&(window.location.href=e.weiterleitung_zu),1!==e.show_popup||null===getCookie("whCookieManager")||""!==(i=getCookie("sprachen-overlay-shown"))&&null!==i||(document.cookie="sprachen-overlay-shown=1; max-age=31536000; SameSite=None; path=/; secure=true",$("#header-"+e.popup_type).show(),$("#text-"+e.popup_type).show(),$("#change-button-"+e.popup_type).show(),$("#close-button-"+e.popup_type).show(),$("#wh-info-popup").fadeIn(300),"it"===e.popup_type?document.getElementById("external-link-button").setAttribute("onClick","closeOpenExternalLink('https://www.klett-international.com/en/klett-sprachen-international-2024/c-4495')"):"es"===e.popup_type&&document.getElementById("external-link-button").setAttribute("onClick","closeOpenExternalLink('https://www.klett-sprachen.es')")),void 0!==e.ga_account&&""!=e.ga_account?(glob_ga_account=e.ga_account,cookiemanager.accepted_statistics&&cookiemanager.accepted_marketing?init_analytics(e.ga_account,e.ga_g_account,e.ads_account,{}):cookiemanager.accepted_statistics?init_analytics(e.ga_account,e.ga_g_account,"",{}):cookiemanager.accepted_marketing&&init_analytics("","",e.ads_account,{}),cookiemanager.accepted_statistics&&(1==e.ga_two_active?(glob_ga_two_on=e.ga_two_active,init_tracker_two(),do_analytics(e.ga_tracker),glob_ga_tracker=e.ga_tracker):do_analytics(),void 0!==e.ga_page)&&""!=e.ga_page&&do_send_pageview(e.ga_page,e.ga_tracker),cookiemanager.accepted_marketing&&activate_conversion_tracking()):console.log("no analytics")},error:function(){console.log("Fehler Inital AJAX-Call")}})}function closeWhInfoPopup(){$("#wh-info-popup").fadeOut(500)}function closeOpenExternalLink(e){window.location.href=e}function scroll_any_id(e){var t;window.innerWidth<=991?(t=$("#"+e).offset().top,$("html, body").animate({scrollTop:t},2500)):(t=$("#content_left").offset().top+150,$("html, body").animate({scrollTop:t},1500))}function init_search_tabs(){$(".tab-search-link").click(function(e){trigger_image_unveil()})}function accept_youtube(){cookiemanager.accepted_marketing&&$(".videodetector").each(function(e,t){var i=$(t).find("iframe"),t=$(t).closest(".wh-advice"),n=i.parent().parent().width(),s=i.parent().parent().height();i.attr({width:n,height:s}),t.remove()})}function set_onclick_filter_toggle(){$(".titelliste").on("click",".category-caption:not([id^='titelliste_reset_']), .sub-caption",function(){var e=$(this).next();$(e).slideToggle("slow"),$(this).find(".fa").toggleClass("fa-angle-down fa-angle-up")})}function set_onclick_filter(){$(".titelliste").on("click",".titelliste-filter-button",function(e){return $("#titelliste_filter").toggleClass("d-none"),!1}),$(".titelliste").on("click",".submenu .category-link .filter-listener:not(.unclickable)",function(){var t=$(this).attr("data-item-id"),e=$(this).closest(".filter-block").find(".facet-input"),i=e.val().split(","),n=$(this).closest("form"),s=$(n).find("input[name=url]").val(),o=window.location.href.split("?")[0];-1==i.indexOf(t)?i.push(t):i=jQuery.grep(i,function(e){return e!=t}),i=i.join(","),$(e).val(i),o=(s=add_param_to_url(s,e.attr("name"),i)).replace("/ajax/titelliste",o),load_ajax_titelliste(n,s,o)})}function init_filter_reihe_search(){$.extend($.expr[":"],{containsIN:function(e,t,i,n){return 0<=(e.textContent||e.innerText||"").toLowerCase().indexOf((i[3]||"").toLowerCase())}}),$(".titelliste .filter_series .eingabe-search").keyup(function(){$(".titelliste .filter_series .category-link").css("display","none");var e=$(this).val();$('.titelliste .filter_series .category-link:containsIN("'+e+'")').css("display","block")})}function load_ajax_titelliste(t,e,i){$.get(e,function(e){$(t).replaceWith(e),history.replaceState("titelliste","",i),$(".titelliste_select").chosen({width:"100%",disable_search:!0,inherit_select_classes:!0}),$(".titelliste_select .chosen-choices .search-field .default").css("width","100%"),init_titlelist_ajax_loader(),init_abiturfilter(),init_filter_reihe_search()})}function set_onclick_reset_filter(){$(".titelliste").on("click",".filter_reset",function(){var e=$(this).closest("form"),t=$(e).find("input[name=url]").val(),i=window.location.href;["language","niveau","level","series","hauptnavigation","category","abiturempfehlung","genre","medium","navigation_ebene2"].forEach(function(e){t=remove_url_param(t,e),i=remove_url_param(i,e)}),load_ajax_titelliste(e,t,i)})}function set_onclick_list_sort(){$(".titelliste").on("change",".dropdown select[name='sortierung']",function(){var e=$(this).val(),t=$(this).closest("form"),i=$(t).find("input[name=url]").val(),n=window.location.href.split("?")[0],n=(i=add_param_to_url(i,"sortierung",e)).replace("/ajax/titelliste",n);load_ajax_titelliste(t,i,n)})}function set_onclick_representation(){$(".titelliste").on("click",".switch-darstellung .liste_matrix",function(){var e=$(this).closest("form"),t=$(e).find("input[name=url]").val(),i=window.location.href.split("?")[0],i=(t=add_param_to_url(t,"darstellung",$(this).attr("id").split("_")[0])).replace("/ajax/titelliste",i);load_ajax_titelliste(e,t,i)})}function init_titlelist_ajax_loader(){$(".titelliste .widget_body").wh_ajax_loader({auto_load:!1,next_selector:".link-load-next a",nav_selector:".link-load-next",loading_html:'<span class="loading-indicator"></span>',debug:!1,on_content_loaded:add_page_param})}function init_abiturfilter(){var e=$(".titelliste .sub-submenu .active").parent(),t=e.prev();$(e).show(),$(t).find(".fa").toggleClass("fa-angle-down fa-angle-up")}function add_page_param(){var e=$(".titelliste .widget_body .liste-body").last().attr("data-page"),e=add_param_to_url(window.location.href,"page",e);history.replaceState("titelliste","",e)}function trigger_image_unveil(){var e=window.innerHeight;$(":not(.whcaptcha) img").unveil(e)}function init_detect_pw_strength(){1==(_pw_field=$("input[name=registration_passwort]")).length?(detect_pw_strength({target:[{value:_pw_field[0].value}]}),_pw_field.keyup(function(e){detect_pw_strength(e)})):1==(_pw_field=$("input[name=wako_passwort_new]")).length&&(detect_pw_strength({target:[{value:_pw_field[0].value}]}),_pw_field.keyup(function(e){detect_pw_strength(e)}))}function detect_pw_strength(e){var t=0,i={l_len:!0,l_small:!0,l_big:!0,numbers:!0,l_special:!0},e=(8<=(_pw=$(e.target)[0].value).length&&(t+=40,i.l_len=!1),RegExp("[A-Z]").exec(_pw)),e=(null!=e&&"object"==typeof e&&0<e.length&&(t+=15,i.l_big=!1),RegExp("[a-z]").exec(_pw)),e=(null!=e&&"object"==typeof e&&0<e.length&&(t+=15,i.l_small=!1),RegExp("[^A-Za-z0-9_]").exec(_pw)),e=(null!=e&&"object"==typeof e&&0<e.length&&(t+=15,i.l_special=!1),RegExp("[0-9]").exec(_pw));null!=e&&"object"==typeof e&&0<e.length&&(t+=15,i.numbers=!1),set_pw_strengh_indicator(t=_pw.length<3?0:t),$("#klett-pw-strength-hints").show(),100==t?$("#klett-pw-strength-hints").hide():set_pw_strengh_hints(i)}function set_pw_strengh_indicator(e){var t=$("#klett-pw-strength");$("#passwort_strength_hidden").val(e),t.find(".wrapper").css({"background-size":100-e+"% 100%"})}function set_pw_strengh_hints(e){for(key in(_hint_container=$("#klett-pw-strength-hints")).find(".hint").hide(),e)e[key]&&_hint_container.find(".hint."+key).show()}function warenkorb_add(e,t,i,n,s,o){var r;r="menge"==n||"menge_mobile"==n?$("#"+n).val():1,$.ajax({type:"GET",url:"/warenkorb/ajax_add_artikel.html",data:"artikel_id="+e+"&artikel_typ="+t+"&count="+r,cache:!1,success:function(e,t){"true"==$("success",e).text()?(0<window.parent.$("#wako_count").length&&window.parent.$("#wako_count").html($("basket_count",e).text()),$("#"+i).slideDown("slow"),window.setTimeout(function(){$("#"+i).slideUp("slow")},6e3),e=Number(s.replace(",","."))*r,e=Math.round(100*(e+Number.EPSILON))/100,cookiemanager.accepted_statistics&&wts.push(["send","click",{linkId:"addToCart",product:o,productStatus:"add",productCost:e,productQuantity:r}])):alert("Artikel konnte nicht in den Warenkorb gelegt werden.")},error:function(e,t,i){alert("Artikel konnte nicht in den Warenkorb gelegt werden.")}})}function warenkorb_refresh(e,t,i){var n=document.createElement("input"),t=(n.type="hidden",n.name=t,n.value=i,document.getElementById(e));t.appendChild(n),t.submit()}function delete_school(i,n){confirm("Wollen Sie die Schule wirklich entfernern?")&&$.ajax({type:"GET",url:"/warenkorb/ajax_delete_school.html",data:"schule_id="+i+"&user_typ_id"+n,cache:!1,success:function(e,t){"true"==$("success",e).text()?($("#schule_"+i).remove(),window.parent.$("#erfolgreiche_aenderung").html("Die Schule "+$("schulname",e).text()+" wurde erfolgreich entfernt."),$("#erfolgreiche_aenderung").slideDown("slow"),4!=n&&6!=n||$("#weitere_schulen_hinzufuegen").show(),window.setTimeout(function(){$("#erfolgreiche_aenderung").slideUp("slow")},8e3)):alert("Die Schule konnte nicht gelöscht werden.")},error:function(e,t,i){alert("Die Schule konnte nicht gelöscht werden.")}})}function responsiveAdaptionsWakoSteps(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;768<=e&&e<900?($("#wako_schritt_1").css({width:"18%"}),$("#wako_schritt_2").css({width:"16%"}),$("#wako_schritt_3").css({width:"21%"}),$("#wako_schritt_4").css({width:"28%"}),$("#wako_schritt_5").css({width:"17%"})):900<=e?($("#wako_schritt_1").css({width:"17%"}),$("#wako_schritt_2").css({width:"15%"}),$("#wako_schritt_3").css({width:"18%"}),$("#wako_schritt_4").css({width:"24%"}),$("#wako_schritt_5").css({width:"26%"})):($("#wako_schritt_1").removeAttr("style"),$("#wako_schritt_2").removeAttr("style"),$("#wako_schritt_3").removeAttr("style"),$("#wako_schritt_4").removeAttr("style"),$("#wako_schritt_5").removeAttr("style"))}function responsiveAdaptionsLoginBoxes(e){((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<768?($("#login_box_eins").hide(),$("#login_box_zwei").hide(),$("#login_box_drei").hide(),$("#login_box_"+e)):($("#login_box_eins").show(),$("#login_box_zwei").show(),$("#login_box_drei"))).show()}function change_formular(e){5==e?($("#zeile_firma").show(),$("#firma_label").html("Firma*"),$("#zeile_co").hide(),$("#bisa_hinweis").hide()):4==e?($("#zeile_firma").hide(),$("#bisa_hinweis").show(),$("#zeile_co").hide()):1==e||2==e||6==e?($("#zeile_firma").hide(),$("#bisa_hinweis").show(),$("#zeile_co").show()):($("#zeile_firma").hide(),$("#zeile_co").show(),$("#bisa_hinweis").hide()),$("#zeile_ustid").hide()}function recount(){$("button[name='wako_btn_submit_recalculate']").click()}$(document).ready(function(){scroll_threshold=$("#header").height(),$("#cookie_info").length&&(scroll_threshold+=$("#cookie_info").height());var s=window.innerHeight;document.getElementsByTagName("body")[0].addEventListener("touchstart",function(){},!1),toggle_burger(),load_ajax_bg_mega_menu(),burger_navigate(),tooltip_init(),init_search_tabs(),console.log("load_not_cached_content"),load_not_cached_content(),accept_youtube(),colorbox_init(),$("#navigation .navi_list").hoverIntent({over:show_mega_menu,timeout:250,out:hide_mega_menu}),$(".scrolltop").click(function(){return $("html, body").animate({scrollTop:0},600),!1}),highlight_letter();var e=$(".cycle-slide-active").css("background-color"),e=($("#moodbar_img").css("display","none"),$(".moodbar_container").css("background-color",e),$("#mobile_search_bar form").submit(function(){var e=$(this).find("input[name=mobile_typeahead]").val();if(void 0===e||e==defaultstring||""==e)return alert(warning_empty),!1}),$(".eingabe_absenden").click(function(){var e=$(this).next().val();return""==e||e==defaultstring?(alert(warning_empty),!1):(track_fb_event("Search",{search_string:e}),!0)}),$("area.external, a[rel=external]").attr("target","_blank"),$("a[rel=top]").attr("target","_top"),$("a[rel=self]").attr("target","_self"),$(".akkordeon-title").click(function(){var e,t,i=$(this).parent().find(".akkordeon-content"),n=$(this).find(".arrow-up"),s=i.find(".akkordeon_anzahl").html(),s=Math.floor(s/4)+1;0<n.length?(n.removeClass("arrow-up"),n.addClass("arrow-down"),i.slideUp(350*s)):(e=$(".akkordeon").find(".arrow-up"),t=$(this).closest(".widget_body").find(".akkordeon-content"),e.removeClass("arrow-up"),e.addClass("arrow-down"),t.hide(),e=(n=$(this).find(".arrow-down")).prev(),t=n.offset(),n.removeClass("arrow-down"),n.addClass("arrow-up"),i.slideDown(350*s),void 0!==t&&window.scrollTo(t.left,t.top-e.height()),i.find("img").trigger("unveil"))}),$(".cover").hoverIntent({over:show_overlay,timeout:50,out:hide_overlay}),$(".cover_container").hoverIntent({over:show_overlay,timeout:50,out:hide_overlay}),$(".pfeil_down-big_w").click(function(){$(this).css("display","none"),$(".pfeil_up-big_w").css("display","block")}),$(".pfeil_up-big_w").click(function(){$(this).css("display","none"),$(".pfeil_down-big_w").css("display","block")}),$(".lehrwerksfinder_select").chosen({width:"100%",disable_search:!0,inherit_select_classes:!0}).change(function(e){var t=$(this).closest("form"),i=($(t).find(".loader-filter").css("top",-40),$(t).find(".loader-filter").css("left",600),$(t).find(".loader-filter").show(),$(t).find("select[name=sprache]").val()),n=(null==i&&(i=$(t).find("input[name=sprache]").val()),$(t).find("select[name=institution]").val()),s=(null==n&&(n=$(t).find("input[name=institution]").val()),$(t).find("select[name=kurstyp]").val()),o=$(t).find("input[name=url]").val(),o=(o+="&sprache_lehrwerk="+i)+("&institution="+n)+("&kurstyp="+s);console.log("davor"),$(t).load(o,function(){$(t).find(".loader-filter").hide()}),console.log("danach")}),$(".lektuerefinder_select").chosen({width:"100%",disable_search:!0,inherit_select_classes:!0}),$(".downloadfinder_select").chosen({width:"100%",disable_search:!0,inherit_select_classes:!0}).change(function(e){var t=$(this).closest("form"),i=($(t).find(".loader-filter").css("top",-40),$(t).find(".loader-filter").css("left",600),$(t).find(".loader-filter").show(),$(t).find("select[name=downloadfinder_sprache]").val()),n=(null==i&&(i=$(t).find("input[name=downloadfinder_sprache]").val()),$(t).find("select[name=downloadfinder_lehrwerk]").val()),s=(null==n&&(n=$(t).find("input[name=downloadfinder_lehrwerk]").val()),$(t).find("select[name=downloadfinder_niveaustufe]").val()),o=(s=(s=null==s?$(t).find("input[name=downloadfinder_niveaustufe]").val():s).replace(/\s+/g,""),$(t).find("input[name=downloadfinder_sprache_ids]").val());null==o&&(o=$(t).find("input[name=downloadfinder_sprache_ids]").val());var r=(r=(r=$(t).find("input[name=url]").val())+"&downloadfinder_sprache_sel="+i+"&downloadfinder_lehrwerk="+n)+"&downloadfinder_niveaustufe="+s+"&downloadfinder_sprache_ids="+o;-1!=$(this).attr("class").search("downloadfinder_active_select")?$(t).on("load",r,function(){$(t).find(".loader-filter").hide()}):$(t).find(".loader-filter").hide()}),$(".titelliste_select").chosen({width:"100%",disable_search:!0,inherit_select_classes:!0}),$(".titelliste_select .chosen-choices .search-field .default").css("width","100%"),events_init(),$(".formular_veranstaltungen_select").chosen({width:"100%",disable_search:!0,inherit_select_classes:!0}).change(function(e){}),$(".formular_forum_select").chosen({disable_search:!0,inherit_select_classes:!0}).change(function(e){}),$(".kontakte_select").chosen({width:"100%",disable_search:!1,inherit_select_classes:!0}).change(function(e){var t=$(".kontaktliste").find("form"),t=$(t).find("select[name=land]").val();(0!=t?($(".land").hide(),$(".land_"+t)):$(".land")).show()}),$(".listfield select").chosen({disable_search:!0,inherit_select_classes:!0}).change(function(e){}),$(".land_select").chosen({width:"100%",disable_search:!0,inherit_select_classes:!0}).change(function(e){}),$(".subject_select").chosen({width:"100%",disable_search:!0,inherit_select_classes:!0}).change(function(e){}),$(".position_select").chosen({width:"100%",disable_search:!0,inherit_select_classes:!0}).change(function(e){}),$(".anrede-select").chosen({width:"100%",disable_search_threshold:100,disable_search:!0,inherit_select_classes:!0}).change(function(e){}),init_reihen_overlays(),window.onresize=function(e){chosen_resize(),colorbox_init(),init_reihen_overlays(),scroll_threshold=$("#header").height(),$("#cookie_info").length&&(scroll_threshold+=$("#cookie_info").height()),s=window.innerHeight},$(".widget_text_text_bild_int img, \t\t.widget_text_text_bild img, \t\t.download_thumbnail img").one("load",function(){$(this).css("background-image","none")}).each(function(){this.complete&&$(this).on("load",function(){})}),$(".lehrer_download_register").click(function(){login_download()}),"true"!=getCookie("COOKIE_INFO")&&($("#cookie_info").show(),scroll_threshold=$("#header").height(),$("#cookie_info").length)&&(scroll_threshold+=$("#cookie_info").height()),$("#cookie_confirm").on("mouseenter",function(e){var t=toggle_hover("confirm_close");$("#confirm_close").removeClass(),$("#confirm_close").addClass(t)}),$("#cookie_confirm").on("mouseleave",function(e){var t=toggle_hover("confirm_close_hover");$("#confirm_close").removeClass(),$("#confirm_close").addClass(t)}),$("#cookie_confirm").click(function(e){e.preventDefault(),setCookie("COOKIE_INFO","true",30),$("#cookie_info").hide()}),$(window).bind("scroll",function(){$(window).scrollTop()>scroll_threshold?$("#scroll_top_mobile").show():$("#scroll_top_mobile").hide()}),$(".widget_downloads_downloads.downloadliste"));if(void 0!==$(e)&&0!=$(e).length){var t=getUrlVars().anchor;if(void 0!==t)scroll_download_anchor("anchor_"+t);else{var n=window.location.hash.split("&");if(0<n.length)for(i=0;i<n.length;i++)"#anchor"==n[i].split("=")[0]&&scroll_download_anchor("anchor_"+(t=n[i].split("=")[1]))}}$(".slider-container").on("afterChange",function(e,t,i,n){$(":not(.whcaptcha) img").unveil(s,function(){$(this).on("load",function(){this.style.backgroundImage="none"})})}),$(".slider-container").slick({slidesToShow:4,slidesToScroll:4,infinite:!1,touchMove:!0,arrows:!0,responsive:[{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,arrows:!0,touchMove:!0}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2,arrows:!0,touchMove:!0}},{breakpoint:991,settings:{slidesToShow:3,slidesToScroll:3,arrows:!0}}]}),$(".slick-slider-container.slick-slider").slick({slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:4e3,lazyLoad:"ondemand",dots:!0,arrows:!1,responsive:[{breakpoint:480,settings:{arrows:!1,dots:!0}},{breakpoint:768,settings:{arrows:!1,dots:!0}}]}),$(".warenkorb_slideout").click(function(){return classes=$(this).attr("class"),warenkorb_slideout(id_string=classes.replace("warenkorb_slideout ","")),!1});e=js_scroll_time;"undefined"!=typeof custom_scroll_time&&(e=custom_scroll_time),"undefined"!=typeof js_scroll_anchor&&""!=js_scroll_anchor&&scroll_form_success(js_scroll_anchor,e),reset_event_form(),$("#change_cookie_settings, .change_cookie_settings").on("click",function(e){e.preventDefault(),cookiemanager.show_dialog()})}),$(window).on("load",function(){var e=window.innerHeight;$(":not(.whcaptcha) img").unveil(e,function(){$(this).on("load",function(){this.style.backgroundImage="none"})}),$("#whCookieManager .akkordeon-title").click(function(){$(this).parent();var e=$(this).next(".akkordeon-content"),t=$(this).find(".fa-chevron-up"),i=$(this).find(".fa-chevron-down");t.hasClass("d-none")?(t.removeClass("d-none"),i.addClass("d-none"),e.removeClass("d-none")):(i.removeClass("d-none"),t.addClass("d-none"),e.addClass("d-none"))}),$("#event_error_box").length&&(e=$("#event_error_box").offset().top-100,$("html, body").animate({scrollTop:e},500))}),$(document).ajaxComplete(function(e,t,i){$("area.external, a[rel=external]").attr("target","_blank"),$("a[rel=top]").attr("target","_top"),$("a[rel=self]").attr("target","_self");var n,s,o,r,a,l,i=i.url,c=(-1!=i.search("&anchor=")||-1!=i.search("&list-anchor=")?(a=(l=getUrlVars())["list-anchor"],c=l.anchor,n=l.dl_niveau_str,s=l.dl_kategorie,o=getCookie("dl_kategorie"),r=getCookie("dl_niveau_str"),void 0===a||0==a||o!=s&&""!=o||r!=n&&""!=r?void 0===c||0==c||o!=s&&""!=o||r!=n&&""!=r?o!=s?(window.location.hash="reiter=mediathek&dl_niveau_str="+n+"&dl_kategorie="+s,document.cookie="dl_kategorie="+s,document.cookie="dl_niveau_str="+n):(window.location.hash="reiter=mediathek&dl_niveau_str="+n,document.cookie="dl_kategorie=",document.cookie="dl_niveau_str="):(scroll_download_anchor("anchor_"+n+"_"+c),window.location.hash="reiter=mediathek&dl_niveau_str="+n+"&dl_kategorie="+s+"&anchor="+c,document.cookie="dl_kategorie="+s,document.cookie="dl_niveau_str="+n):(scroll_download_anchor(a),window.location.hash="reiter=mediathek&dl_niveau_str="+n+"&dl_kategorie="+s+"&list-anchor="+a,document.cookie="dl_kategorie="+s,document.cookie="dl_niveau_str="+n)):-1!=i.search("&dl_kategorie=")&&(n=(l=getUrlVars()).dl_niveau_str,s=l.dl_kategorie,o=getCookie("dl_kategorie"),r=getCookie("dl_niveau_str"),c=window.innerWidth<768?$("#niveau_mb_mediathek_content_"+n):$("#niveau_dt_mediathek_content_"+n),a=$(c).find("[name=niveau]").val(),0==s||o!=s&&""!=o||r!=n&&""!=r?o!=s?(window.location.hash="reiter=mediathek&dl_niveau_str="+n+"&dl_kategorie="+s,document.cookie="dl_kategorie="+s,document.cookie="dl_niveau_str="+n):(window.location.hash="reiter=mediathek&dl_niveau_str="+n,document.cookie="dl_kategorie=",document.cookie="dl_niveau_str="):(window.innerWidth<768?scroll_download_anchor("downloads_titel_kategorie_"+s+"_"+a):scroll_download_anchor("reiter"),window.location.hash="reiter=mediathek&dl_niveau_str="+n+"&dl_kategorie="+s,document.cookie="dl_kategorie="+s,document.cookie="dl_niveau_str="+n)),-1!=i.search("&reiter=")&&((l=getUrlVars()).art,0),window.innerHeight);$(":not(.whcaptcha) img").unveil(c,function(){$(this).on("load",function(){this.style.backgroundImage="none"})}),$(".widget_text_text_bild_int img, \t\t.widget_text_text_bild img, \t\t.download_thumbnail img").one("load",function(){$(this).css("background-image","none")}).each(function(){this.complete&&$(this).on("load",function(){})}),burger_navigate(),accept_youtube(),tooltip_init(),colorbox_init(),$(".cover").hoverIntent({over:show_overlay,timeout:50,out:hide_overlay}),$(".cover_container").hoverIntent({over:show_overlay,timeout:50,out:hide_overlay}),events_init(),reset_event_form(),void 0!==glob_ga_account&&""!=glob_ga_account&&cookiemanager.accepted_statistics&&(1==glob_ga_two_on?do_analytics(glob_ga_tracker):do_analytics())}),$(document).ready(function(){set_onclick_filter_toggle(),set_onclick_filter(),set_onclick_reset_filter(),set_onclick_list_sort(),set_onclick_representation(),init_titlelist_ajax_loader(),init_abiturfilter(),$(".filter-close-button").click(function(){var e=$(this).closest("form");$(e).find(".widget_header_titelliste").addClass("hidden-xs hidden-ms"),$(this).addClass("inactive"),$(".filter-open-button").removeClass("inactive")}),$(".filter-open-button").click(function(){var e=$(this).closest("form");$(e).find(".widget_header_titelliste").removeClass("hidden-xs hidden-ms"),$(this).addClass("inactive"),$(".filter-close-button").removeClass("inactive")}),init_filter_reihe_search()}),$(document).ajaxComplete(function(e,t,i){$(".filter-close-button").click(function(){var e=$(this).closest("form");$(e).find(".widget_header_titelliste").addClass("hidden-xs hidden-ms"),$(this).addClass("inactive"),$(".filter-open-button").removeClass("inactive")}),$(".filter-open-button").click(function(){var e=$(this).closest("form");$(e).find(".widget_header_titelliste").removeClass("hidden-xs hidden-ms"),$(this).addClass("inactive"),$(".filter-close-button").removeClass("inactive")})}),$(document).ready(function(){$("a.wako_del").click(function(){var e=$(this).closest("form"),t=$(this).attr("id").replace("wako_del_","");$("input[name=wako_anzahl_"+t+"]").val("0"),warenkorb_refresh(e.attr("id"),"wako_btn_submit_recalculate","1")});var e=$("#gast_email").val();e?$("#email_von_oben").html(e):$("#email_von_oben").html("&nbsp;"),$("#gast_email").bind("keyup change",function(e){var t=$("#gast_email").val();$("#email_von_oben").html(t)}),$(".wako_chosen_select").chosen({width:"100%",disable_search:!1,inherit_select_classes:!0,disable_search_threshold:200}),$(".vhs_chosen_select").chosen({width:"100%",disable_search:!1,inherit_select_classes:!0,placeholder_text_single:"Suchen",no_results_text:"Kein Ergebnis für: "}),$(".chosen-search input").attr("placeholder","Suche"),$("#wako_logout").colorbox({width:"260px",height:"180px",iframe:!0,overlayClose:!1,escKey:!1,closeButton:!1,scrolling:!1,onComplete:function(){$.colorbox.resize({innerHeight:$("iframe").height(),innerWidth:$("iframe").width()})}}),$("#wako_logout_mobile").click(function(){$.ajax({url:"/warenkorb/popup_logout.html",dataType:"html",async:!0,cache:!1,success:function(e,t){"success"==t?($("#wako_logout_mobile").tooltip({placement:"auto top",trigger:"manual",delay:{show:200,hide:500},title:"Sie wurden erfolgreich abgemeldet."}),$("#wako_logout_mobile").tooltip("show"),window.setTimeout(function(){window.location.reload()},2e3)):($("#wako_logout_mobile").tooltip({placement:"auto top",trigger:"manual",delay:{show:200,hide:500},title:"Sie konnten nicht erfolgreich abgemeldet werden."}),$("#wako_logout_mobile").tooltip("show"),window.setTimeout(function(){$("#wako_logout_mobile").tooltip("destroy")},2e3))},error:function(e,t,i){alert("Fehler beim Abmelden.")}})}),$(".wako_versandkosten").colorbox({width:"400px",height:"350px",iframe:!0,overlayClose:!0,escKey:!0,closeButton:!0,scrolling:!1}),$(".wako_at_ch_overlay").colorbox({width:"600px",height:"350px",iframe:!1,overlayClose:!0,escKey:!1,closeButton:!1,scrolling:!1}),$(".fachleiter_select").chosen({width:"100%",disable_search:!0,inherit_select_classes:!0}).change(function(e){var t=$(e.target).val();if(null!==t)for(var i=0;i<t.length;i++)$("#fach_"+t[i]).prop("checked",!0)}),$(".andere_faecher_select").chosen({width:"100%",disable_serach:!0,inherit_select_classes:!0}),$(".anrede_select").chosen({disable_search:!0,inherit_select_classes:!0}).change(function(e){var t=$(".anrede_select").val();$(".weiblich").show(),$(".maenlich").show(),4==t&&$(".weiblich").hide(),3==t&&$(".maenlich").hide(),$("select").trigger("chosen:updated")}),$("#box_eins_klick").click(function(){$("#login_box_eins").toggle("fast"),$("#wako_pfeil_eins").toggleClass("pfeil_up-big_orange pfeil_down-big_orange")}),$("#box_zwei_klick").click(function(){$("#login_box_zwei").toggle("fast"),$("#wako_pfeil_zwei").toggleClass("pfeil_up-big_orange pfeil_down-big_orange")}),$("#box_drei_klick").click(function(){$("#login_box_drei").toggle("fast"),$("#wako_pfeil_drei").toggleClass("pfeil_up-big_orange pfeil_down-big_orange")}),$("span.vorteilsnummern_click").click(function(){$(".vorteilsnummer_formular").show(),$("#link_one_aktionsnummer").show(),$("#link_several_aktionsnummern").hide(),$("#single_aktionsnummer").hide(),$("#wako_aktionscode").val("")}),$("span.vorteilsnummer_click").click(function(){$(".vorteilsnummer_formular").hide(),$("#link_one_aktionsnummer").hide(),$("#link_several_aktionsnummern").show(),$("#single_aktionsnummer").show()}),$(".wako_submit_order_form").submit(function(){$("#wako_submit_button").hide(),$(".arrow_submit").hide(),$(".submit_platzhalter").show()}),$("span.bestellungen_detail").click(function(){var t=$(this).attr("id").replace("bestellungen_detail_","");""==$("#wako_bestellungen_artikel_"+t).html()&&($("#wako_bestellungen_artikel_"+t).removeClass("display_none"),$("#wako_bestellungen_artikel_"+t).addClass("display_block"),$("#wako_bestellungen_artikel_"+t).html('<div class="bestellung_ajax_loader col-xs-12"><img src="/_images_global/lazy-loader.svg" alt="Bitte warten"/></div>'),$("#details_oben_"+t).removeClass("display_block"),$("#details_oben_"+t).addClass("display_none"),$.ajax({type:"GET",url:"/warenkorb/ajax_bestellungen_details.html",data:"bestellung_id="+t,cache:!1,success:function(e){$("#wako_bestellungen_artikel_"+t).html(e),$("#details_unten_"+t).removeClass("display_none"),$("#details_unten_"+t).addClass("display_block")}}))}),"block"==$(".erfolgreiche_aenderung").css("display")&&window.setTimeout(function(){$(".erfolgreiche_aenderung").slideUp("slow")},8e3),$(".mein_konto").hoverIntent({over:function(){$(this).find(".wako_overlay_container").slideDown("fast")},timeout:1e3,out:function(){$(this).find(".wako_overlay_container").slideUp("fast")}})});