(()=>{var __webpack_modules__={773:(e,t,n)=>{var i=n(972),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?o:a[e.$$typeof]||r}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(m){var r=h(n);r&&r!==m&&e(t,r,i)}var o=u(n);d&&(o=o.concat(d(n)));for(var a=l(t),f=l(n),g=0;g<o.length;++g){var v=o[g];if(!(s[v]||i&&i[v]||f&&f[v]||a&&a[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},563:function(e,t){var n;
/*!
 * jQuery JavaScript Library v3.7.0
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-05-11T18:29Z
 */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,l=s.flat?function(e){return s.flat.call(e)}:function(e){return s.concat.apply([],e)},c=s.push,u=s.indexOf,d={},p=d.toString,h=d.hasOwnProperty,m=h.toString,f=m.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var i,r,s=(n=n||b).createElement("script");if(s.text=e,t)for(i in w)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&s.setAttribute(i,r);n.head.appendChild(s).parentNode.removeChild(s)}function E(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var x="3.7.0",S=/HTML$/i,C=function(e,t){return new C.fn.init(e,t)};function N(e){var t=!!e&&"length"in e&&e.length,n=E(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}C.fn=C.prototype={jquery:x,constructor:C,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){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,(function(t,n){return e.call(t,n,t)})))},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(C.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(C.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:s.sort,splice:s.splice},C.extend=C.fn.extend=function(){var e,t,n,i,r,s,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||v(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&o!==i&&(c&&i&&(C.isPlainObject(i)||(r=Array.isArray(i)))?(n=o[t],s=r&&!Array.isArray(n)?[]:r||C.isPlainObject(n)?n:{},r=!1,o[t]=C.extend(c,s,i)):void 0!==i&&(o[t]=i));return o},C.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=o(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&m.call(n)===f)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(N(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r)return e.textContent;if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=C.text(t);return n},makeArray:function(e,t){var n=t||[];return null!=e&&(N(Object(e))?C.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!S.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,s=e.length,o=!n;r<s;r++)!t(e[r],r)!==o&&i.push(e[r]);return i},map:function(e,t,n){var i,r,s=0,o=[];if(N(e))for(i=e.length;s<i;s++)null!=(r=t(e[s],s,n))&&o.push(r);else for(s in e)null!=(r=t(e[s],s,n))&&o.push(r);return l(o)},guid:1,support:g}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=s[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var T=s.pop,L=s.sort,P=s.splice,A="[\\x20\\t\\r\\n\\f]",I=new RegExp("^"+A+"+|((?:^|[^\\\\])(?:\\\\.)*)"+A+"+$","g");C.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var z=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function D(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}C.escapeSelector=function(e){return(e+"").replace(z,D)};var O=b,R=c;!function(){var e,t,n,r,o,l,c,d,p,m,f=R,v=C.expando,y=0,b=0,w=ee(),_=ee(),E=ee(),x=ee(),S=function(e,t){return e===t&&(o=!0),0},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",z="(?:\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",D="\\["+A+"*("+z+")(?:"+A+"*([*^$|!~]?=)"+A+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+A+"*\\]",q=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",B=new RegExp(A+"+","g"),F=new RegExp("^"+A+"*,"+A+"*"),M=new RegExp("^"+A+"*([>+~]|"+A+")"+A+"*"),j=new RegExp(A+"|>"),H=new RegExp(q),$=new RegExp("^"+z+"$"),W={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+A+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+A+"*((?:-\\d)?\\d*)"+A+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,Q=new RegExp("\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\([^\\r\\n\\f])","g"),X=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Y=function(){le()},K=pe((function(e){return!0===e.disabled&&k(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{f.apply(s=a.call(O.childNodes),O.childNodes),s[O.childNodes.length].nodeType}catch(e){f={apply:function(e,t){R.apply(e,a.call(t))},call:function(e){R.apply(e,a.call(arguments,1))}}}function J(e,t,n,i){var r,s,o,a,c,u,h,m=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(le(t),t=t||l,d)){if(11!==y&&(c=Z.exec(e)))if(r=c[1]){if(9===y){if(!(o=t.getElementById(r)))return n;if(o.id===r)return f.call(n,o),n}else if(m&&(o=m.getElementById(r))&&J.contains(t,o)&&o.id===r)return f.call(n,o),n}else{if(c[2])return f.apply(n,t.getElementsByTagName(e)),n;if((r=c[3])&&t.getElementsByClassName)return f.apply(n,t.getElementsByClassName(r)),n}if(!(x[e+" "]||p&&p.test(e))){if(h=e,m=t,1===y&&(j.test(e)||M.test(e))){for((m=G.test(e)&&ae(t.parentNode)||t)==t&&g.scope||((a=t.getAttribute("id"))?a=C.escapeSelector(a):t.setAttribute("id",a=v)),s=(u=ue(e)).length;s--;)u[s]=(a?"#"+a:":scope")+" "+de(u[s]);h=u.join(",")}try{return f.apply(n,m.querySelectorAll(h)),n}catch(t){x(e,!0)}finally{a===v&&t.removeAttribute("id")}}}return ye(e.replace(I,"$1"),t,n,i)}function ee(){var e=[];return function n(i,r){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=r}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return k(t,"input")&&t.type===e}}function re(e){return function(t){return(k(t,"input")||k(t,"button"))&&t.type===e}}function se(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function oe(e){return te((function(t){return t=+t,te((function(n,i){for(var r,s=e([],n.length,t),o=s.length;o--;)n[r=s[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,i=e?e.ownerDocument||e:O;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!C.isXMLDoc(l),m=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,O!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Y),g.getById=ne((function(e){return c.appendChild(e).id=C.expando,!l.getElementsByName||!l.getElementsByName(C.expando).length})),g.disconnectedMatch=ne((function(e){return m.call(e,"*")})),g.scope=ne((function(){return l.querySelectorAll(":scope")})),g.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),g.getById?(t.filter.ID=function(e){var t=e.replace(Q,X);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Q,X);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,i,r,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(r=t.getElementsByName(e),i=0;s=r[i++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},p=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||p.push("\\["+A+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+v+"-]").length||p.push("~="),e.querySelectorAll("a#"+v+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+A+"*name"+A+"*="+A+"*(?:''|\"\")")})),g.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),S=function(e,t){if(e===t)return o=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==O&&J.contains(O,e)?-1:t===l||t.ownerDocument==O&&J.contains(O,t)?1:r?u.call(r,e)-u.call(r,t):0:4&n?-1:1)},l):l}for(e in J.matches=function(e,t){return J(e,null,null,t)},J.matchesSelector=function(e,t){if(le(e),d&&!x[t+" "]&&(!p||!p.test(t)))try{var n=m.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){x(t,!0)}return J(t,l,null,[e]).length>0},J.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),C.contains(e,t)},J.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var i=t.attrHandle[n.toLowerCase()],r=i&&h.call(t.attrHandle,n.toLowerCase())?i(e,n,!d):void 0;return void 0!==r?r:e.getAttribute(n)},J.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},C.uniqueSort=function(e){var t,n=[],i=0,s=0;if(o=!g.sortStable,r=!g.sortStable&&a.call(e,0),L.call(e,S),o){for(;t=e[s++];)t===e[s]&&(i=n.push(s));for(;i--;)P.call(e,n[i],1)}return r=null,e},C.fn.uniqueSort=function(){return this.pushStack(C.uniqueSort(a.apply(this)))},t=C.expr={cacheLength:50,createPseudo:te,match:W,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(Q,X),e[3]=(e[3]||e[4]||e[5]||"").replace(Q,X),"~="===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]||J.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]&&J.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Q,X).toLowerCase();return"*"===e?function(){return!0}:function(e){return k(e,t)}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+A+")"+e+"("+A+"|$)"))&&w(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=J.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(B," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,h,m=s!==o?"nextSibling":"previousSibling",f=t.parentNode,g=a&&t.nodeName.toLowerCase(),b=!l&&!a,w=!1;if(f){if(s){for(;m;){for(d=t;d=d[m];)if(a?k(d,g):1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[o?f.firstChild:f.lastChild],o&&b){for(w=(p=(c=(u=f[v]||(f[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=p&&f.childNodes[p];d=++p&&d&&d[m]||(w=p=0)||h.pop();)if(1===d.nodeType&&++w&&d===t){u[e]=[y,p,w];break}}else if(b&&(w=p=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===w)for(;(d=++p&&d&&d[m]||(w=p=0)||h.pop())&&(!(a?k(d,g):1===d.nodeType)||!++w||(b&&((u=d[v]||(d[v]={}))[e]=[y,w]),d!==t)););return(w-=r)===i||w%i==0&&w/i>=0}}},PSEUDO:function(e,n){var i,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||J.error("unsupported pseudo: "+e);return r[v]?r(n):r.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var i,s=r(e,n),o=s.length;o--;)e[i=u.call(e,s[o])]=!(t[i]=s[o])})):function(e){return r(e,0,i)}):r}},pseudos:{not:te((function(e){var t=[],n=[],i=ve(e.replace(I,"$1"));return i[v]?te((function(e,t,n,r){for(var s,o=i(e,null,r,[]),a=e.length;a--;)(s=o[a])&&(e[a]=!(t[a]=s))})):function(e,r,s){return t[0]=e,i(t,null,s,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return J(e,t).length>0}})),contains:te((function(e){return e=e.replace(Q,X),function(t){return(t.textContent||C.text(t)).indexOf(e)>-1}})),lang:te((function(e){return $.test(e||"")||J.error("unsupported lang: "+e),e=e.replace(Q,X).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:se(!1),disabled:se(!0),checked:function(e){return k(e,"input")&&!!e.checked||k(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!t.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return U.test(e.nodeName)},button:function(e){return k(e,"input")&&"button"===e.type||k(e,"button")},text:function(e){var t;return k(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:oe((function(){return[0]})),last:oe((function(e,t){return[t-1]})),eq:oe((function(e,t,n){return[n<0?n+t:n]})),even:oe((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:oe((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:oe((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:oe((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=re(e);function ce(){}function ue(e,n){var i,r,s,o,a,l,c,u=_[e+" "];if(u)return n?0:u.slice(0);for(a=e,l=[],c=t.preFilter;a;){for(o in i&&!(r=F.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(s=[])),i=!1,(r=M.exec(a))&&(i=r.shift(),s.push({value:i,type:r[0].replace(I," ")}),a=a.slice(i.length)),t.filter)!(r=W[o].exec(a))||c[o]&&!(r=c[o](r))||(i=r.shift(),s.push({value:i,type:o,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?J.error(e):_(e,l).slice(0)}function de(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function pe(e,t,n){var i=t.dir,r=t.next,s=r||i,o=n&&"parentNode"===s,a=b++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,r);return!1}:function(t,n,l){var c,u,d=[y,a];if(l){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||o)if(u=t[v]||(t[v]={}),r&&k(t,r))t=t[i]||t;else{if((c=u[s])&&c[0]===y&&c[1]===a)return d[2]=c[2];if(u[s]=d,d[2]=e(t,n,l))return!0}return!1}}function he(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function me(e,t,n,i,r){for(var s,o=[],a=0,l=e.length,c=null!=t;a<l;a++)(s=e[a])&&(n&&!n(s,i,r)||(o.push(s),c&&t.push(a)));return o}function fe(e,t,n,i,r,s){return i&&!i[v]&&(i=fe(i)),r&&!r[v]&&(r=fe(r,s)),te((function(s,o,a,l){var c,d,p,h,m=[],g=[],v=o.length,y=s||function(e,t,n){for(var i=0,r=t.length;i<r;i++)J(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),b=!e||!s&&t?y:me(y,m,e,a,l);if(n?n(b,h=r||(s?e:v||i)?[]:o,a,l):h=b,i)for(c=me(h,g),i(c,[],a,l),d=c.length;d--;)(p=c[d])&&(h[g[d]]=!(b[g[d]]=p));if(s){if(r||e){if(r){for(c=[],d=h.length;d--;)(p=h[d])&&c.push(b[d]=p);r(null,h=[],c,l)}for(d=h.length;d--;)(p=h[d])&&(c=r?u.call(s,p):m[d])>-1&&(s[c]=!(o[c]=p))}}else h=me(h===o?h.splice(v,h.length):h),r?r(null,o,h,l):f.apply(o,h)}))}function ge(e){for(var i,r,s,o=e.length,a=t.relative[e[0].type],l=a||t.relative[" "],c=a?1:0,d=pe((function(e){return e===i}),l,!0),p=pe((function(e){return u.call(i,e)>-1}),l,!0),h=[function(e,t,r){var s=!a&&(r||t!=n)||((i=t).nodeType?d(e,t,r):p(e,t,r));return i=null,s}];c<o;c++)if(r=t.relative[e[c].type])h=[pe(he(h),r)];else{if((r=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(s=++c;s<o&&!t.relative[e[s].type];s++);return fe(c>1&&he(h),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(I,"$1"),r,c<s&&ge(e.slice(c,s)),s<o&&ge(e=e.slice(s)),s<o&&de(e))}h.push(r)}return he(h)}function ve(e,i){var r,s=[],o=[],a=E[e+" "];if(!a){for(i||(i=ue(e)),r=i.length;r--;)(a=ge(i[r]))[v]?s.push(a):o.push(a);a=E(e,function(e,i){var r=i.length>0,s=e.length>0,o=function(o,a,c,u,p){var h,m,g,v=0,b="0",w=o&&[],_=[],E=n,x=o||s&&t.find.TAG("*",p),S=y+=null==E?1:Math.random()||.1,N=x.length;for(p&&(n=a==l||a||p);b!==N&&null!=(h=x[b]);b++){if(s&&h){for(m=0,a||h.ownerDocument==l||(le(h),c=!d);g=e[m++];)if(g(h,a||l,c)){f.call(u,h);break}p&&(y=S)}r&&((h=!g&&h)&&v--,o&&w.push(h))}if(v+=b,r&&b!==v){for(m=0;g=i[m++];)g(w,_,a,c);if(o){if(v>0)for(;b--;)w[b]||_[b]||(_[b]=T.call(u));_=me(_)}f.apply(u,_),p&&!o&&_.length>0&&v+i.length>1&&C.uniqueSort(u)}return p&&(y=S,n=E),w};return r?te(o):o}(o,s)),a.selector=e}return a}function ye(e,n,i,r){var s,o,a,l,c,u="function"==typeof e&&e,p=!r&&ue(e=u.selector||e);if(i=i||[],1===p.length){if((o=p[0]=p[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===n.nodeType&&d&&t.relative[o[1].type]){if(!(n=(t.find.ID(a.matches[0].replace(Q,X),n)||[])[0]))return i;u&&(n=n.parentNode),e=e.slice(o.shift().value.length)}for(s=W.needsContext.test(e)?0:o.length;s--&&(a=o[s],!t.relative[l=a.type]);)if((c=t.find[l])&&(r=c(a.matches[0].replace(Q,X),G.test(o[0].type)&&ae(n.parentNode)||n))){if(o.splice(s,1),!(e=r.length&&de(o)))return f.apply(i,r),i;break}}return(u||ve(e,p))(r,n,!d,i,!n||G.test(e)&&ae(n.parentNode)||n),i}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,g.sortStable=v.split("").sort(S).join("")===v,le(),g.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),C.find=J,C.expr[":"]=C.expr.pseudos,C.unique=C.uniqueSort,J.compile=ve,J.select=ye,J.setDocument=le,J.escape=C.escapeSelector,J.getText=C.text,J.isXML=C.isXMLDoc,J.selectors=C.expr,J.support=C.support,J.uniqueSort=C.uniqueSort}();var q=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&C(e).is(n))break;i.push(e)}return i},B=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},F=C.expr.match.needsContext,M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return v(t)?C.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?C.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?C.grep(e,(function(e){return u.call(t,e)>-1!==n})):C.filter(t,e,n)}C.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?C.find.matchesSelector(i,e)?[i]:[]:C.find.matches(e,C.grep(t,(function(e){return 1===e.nodeType})))},C.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(C(e).filter((function(){for(t=0;t<i;t++)if(C.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)C.find(e,r[t],n);return i>1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&F.test(e)?C(e):e||[],!1).length}});var H,$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||H,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:$.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),M.test(i[1])&&C.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,H=C(b);var W=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function V(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,s=[],o="string"!=typeof e&&C(e);if(!F.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?C.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?u.call(C(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return q(e,"parentNode")},parentsUntil:function(e,t,n){return q(e,"parentNode",n)},next:function(e){return V(e,"nextSibling")},prev:function(e){return V(e,"previousSibling")},nextAll:function(e){return q(e,"nextSibling")},prevAll:function(e){return q(e,"previousSibling")},nextUntil:function(e,t,n){return q(e,"nextSibling",n)},prevUntil:function(e,t,n){return q(e,"previousSibling",n)},siblings:function(e){return B((e.parentNode||{}).firstChild,e)},children:function(e){return B(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},(function(e,t){C.fn[e]=function(n,i){var r=C.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=C.filter(i,r)),this.length>1&&(U[e]||C.uniqueSort(r),W.test(e)&&r.reverse()),this.pushStack(r)}}));var Z=/[^\x20\t\r\n\f]+/g;function G(e){return e}function Q(e){throw e}function X(e,t,n,i){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(n):e&&v(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(Z)||[],(function(e,n){t[n]=!0})),t}(e):C.extend({},e);var t,n,i,r,s=[],o=[],a=-1,l=function(){for(r=r||e.once,i=t=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=s.length,n=!1);e.memory||(n=!1),t=!1,r&&(s=n?[]:"")},c={add:function(){return s&&(n&&!t&&(a=s.length-1,o.push(n)),function t(n){C.each(n,(function(n,i){v(i)?e.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==E(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return C.each(arguments,(function(e,t){for(var n;(n=C.inArray(t,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(e){return e?C.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return r=o=[],n||t||(s=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return C.Deferred((function(n){C.each(t,(function(t,i){var r=v(e[i[4]])&&e[i[4]];s[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var s=0;function o(e,t,n,r){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(e<s)){if((i=n.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?r?c.call(i,o(s,t,G,r),o(s,t,Q,r)):(s++,c.call(i,o(s,t,G,r),o(s,t,Q,r),o(s,t,G,t.notifyWith))):(n!==G&&(a=void 0,l=[i]),(r||t.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(i){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(i,u.error),e+1>=s&&(n!==Q&&(a=void 0,l=[i]),t.rejectWith(a,l))}};e?u():(C.Deferred.getErrorHook?u.error=C.Deferred.getErrorHook():C.Deferred.getStackHook&&(u.error=C.Deferred.getStackHook()),i.setTimeout(u))}}return C.Deferred((function(i){t[0][3].add(o(0,i,v(r)?r:G,i.notifyWith)),t[1][3].add(o(0,i,v(e)?e:G)),t[2][3].add(o(0,i,v(n)?n:Q))})).promise()},promise:function(e){return null!=e?C.extend(e,r):r}},s={};return C.each(t,(function(e,i){var o=i[2],a=i[5];r[i[1]]=o.add,a&&o.add((function(){n=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(i[3].fire),s[i[0]]=function(){return s[i[0]+"With"](this===s?void 0:this,arguments),this},s[i[0]+"With"]=o.fireWith})),r.promise(s),e&&e.call(s,s),s},when:function(e){var t=arguments.length,n=t,i=Array(n),r=a.call(arguments),s=C.Deferred(),o=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?a.call(arguments):n,--t||s.resolveWith(i,r)}};if(t<=1&&(X(e,s.done(o(n)).resolve,s.reject,!t),"pending"===s.state()||v(r[n]&&r[n].then)))return s.then();for(;n--;)X(r[n],o(n),s.reject);return s.promise()}});var Y=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&Y.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){i.setTimeout((function(){throw e}))};var K=C.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),i.removeEventListener("load",J),C.ready()}C.fn.ready=function(e){return K.then(e).catch((function(e){C.readyException(e)})),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||K.resolveWith(b,[C]))}}),C.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(C.ready):(b.addEventListener("DOMContentLoaded",J),i.addEventListener("load",J));var ee=function(e,t,n,i,r,s,o){var a=0,l=e.length,c=null==n;if("object"===E(n))for(a in r=!0,n)ee(e,t,a,n[a],!0,s,o);else if(void 0!==i&&(r=!0,v(i)||(o=!0),c&&(o?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(C(e),n)})),t))for(;a<l;a++)t(e[a],n,o?i:i.call(e[a],a,t(e[a],n)));return r?e:c?t.call(e):l?t(e[0],n):s},te=/^-ms-/,ne=/-([a-z])/g;function ie(e,t){return t.toUpperCase()}function re(e){return e.replace(te,"ms-").replace(ne,ie)}var se=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function oe(){this.expando=C.expando+oe.uid++}oe.uid=1,oe.prototype={cache:function(e){var t=e[this.expando];return t||(t={},se(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[re(t)]=n;else for(i in t)r[re(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(re):(t=re(t))in i?[t]:t.match(Z)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||C.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var ae=new oe,le=new oe,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return le.hasData(e)||ae.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return ae.access(e,t,n)},_removeData:function(e,t){ae.remove(e,t)}}),C.fn.extend({data:function(e,t){var n,i,r,s=this[0],o=s&&s.attributes;if(void 0===e){if(this.length&&(r=le.get(s),1===s.nodeType&&!ae.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=re(i.slice(5)),de(s,i,r[i]));ae.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(s&&void 0===t)return void 0!==(n=le.get(s,e))||void 0!==(n=de(s,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),C.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=ae.get(e,t),n&&(!i||Array.isArray(n)?i=ae.access(e,t,C.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),i=n.length,r=n.shift(),s=C._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete s.stop,r.call(e,(function(){C.dequeue(e,t)}),s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ae.get(e,n)||ae.access(e,n,{empty:C.Callbacks("once memory").add((function(){ae.remove(e,[t+"queue",n])}))})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?C.queue(this[0],e):void 0===t?this:this.each((function(){var n=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&C.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){C.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=C.Deferred(),s=this,o=this.length,a=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=ae.get(s[o],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=new RegExp("^(?:([+-])=|)("+pe+")([a-z%]*)$","i"),me=["Top","Right","Bottom","Left"],fe=b.documentElement,ge=function(e){return C.contains(e.ownerDocument,e)},ve={composed:!0};fe.getRootNode&&(ge=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ge(e)&&"none"===C.css(e,"display")};function be(e,t,n,i){var r,s,o=20,a=i?function(){return i.cur()}:function(){return C.css(e,t,"")},l=a(),c=n&&n[3]||(C.cssNumber[t]?"":"px"),u=e.nodeType&&(C.cssNumber[t]||"px"!==c&&+l)&&he.exec(C.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)C.style(e,t,u+c),(1-s)*(1-(s=a()/l||.5))<=0&&(o=0),u/=s;u*=2,C.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var we={};function _e(e){var t,n=e.ownerDocument,i=e.nodeName,r=we[i];return r||(t=n.body.appendChild(n.createElement(i)),r=C.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),we[i]=r,r)}function Ee(e,t){for(var n,i,r=[],s=0,o=e.length;s<o;s++)(i=e[s]).style&&(n=i.style.display,t?("none"===n&&(r[s]=ae.get(i,"display")||null,r[s]||(i.style.display="")),""===i.style.display&&ye(i)&&(r[s]=_e(i))):"none"!==n&&(r[s]="none",ae.set(i,"display",n)));for(s=0;s<o;s++)null!=r[s]&&(e[s].style.display=r[s]);return e}C.fn.extend({show:function(){return Ee(this,!0)},hide:function(){return Ee(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?C(this).show():C(this).hide()}))}});var xe,Se,Ce=/^(?:checkbox|radio)$/i,Ne=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ke=/^$|^module$|\/(?:java|ecma)script/i;xe=b.createDocumentFragment().appendChild(b.createElement("div")),(Se=b.createElement("input")).setAttribute("type","radio"),Se.setAttribute("checked","checked"),Se.setAttribute("name","t"),xe.appendChild(Se),g.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",g.option=!!xe.lastChild;var Te={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 Le(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?C.merge([e],n):n}function Pe(e,t){for(var n=0,i=e.length;n<i;n++)ae.set(e[n],"globalEval",!t||ae.get(t[n],"globalEval"))}Te.tbody=Te.tfoot=Te.colgroup=Te.caption=Te.thead,Te.th=Te.td,g.option||(Te.optgroup=Te.option=[1,"<select multiple='multiple'>","</select>"]);var Ae=/<|&#?\w+;/;function Ie(e,t,n,i,r){for(var s,o,a,l,c,u,d=t.createDocumentFragment(),p=[],h=0,m=e.length;h<m;h++)if((s=e[h])||0===s)if("object"===E(s))C.merge(p,s.nodeType?[s]:s);else if(Ae.test(s)){for(o=o||d.appendChild(t.createElement("div")),a=(Ne.exec(s)||["",""])[1].toLowerCase(),l=Te[a]||Te._default,o.innerHTML=l[1]+C.htmlPrefilter(s)+l[2],u=l[0];u--;)o=o.lastChild;C.merge(p,o.childNodes),(o=d.firstChild).textContent=""}else p.push(t.createTextNode(s));for(d.textContent="",h=0;s=p[h++];)if(i&&C.inArray(s,i)>-1)r&&r.push(s);else if(c=ge(s),o=Le(d.appendChild(s),"script"),c&&Pe(o),n)for(u=0;s=o[u++];)ke.test(s.type||"")&&n.push(s);return d}var ze=/^([^.]*)(?:\.(.+)|)/;function De(){return!0}function Oe(){return!1}function Re(e,t,n,i,r,s){var o,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Re(e,a,n,i,t[a],s);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Oe;else if(!r)return e;return 1===s&&(o=r,r=function(e){return C().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=C.guid++)),e.each((function(){C.event.add(this,t,r,i,n)}))}function qe(e,t,n){n?(ae.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var n,i=ae.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=a.call(arguments),ae.set(this,t,i),this[t](),n=ae.get(this,t),ae.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(ae.set(this,t,C.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=De)}})):void 0===ae.get(e,t)&&C.event.add(e,t,De)}C.event={global:{},add:function(e,t,n,i,r){var s,o,a,l,c,u,d,p,h,m,f,g=ae.get(e);if(se(e))for(n.handler&&(n=(s=n).handler,r=s.selector),r&&C.find.matchesSelector(fe,r),n.guid||(n.guid=C.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Z)||[""]).length;c--;)h=f=(a=ze.exec(t[c])||[])[1],m=(a[2]||"").split(".").sort(),h&&(d=C.event.special[h]||{},h=(r?d.delegateType:d.bindType)||h,d=C.event.special[h]||{},u=C.extend({type:h,origType:f,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&C.expr.match.needsContext.test(r),namespace:m.join(".")},s),(p=l[h])||((p=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,m,o)||e.addEventListener&&e.addEventListener(h,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,u):p.push(u),C.event.global[h]=!0)},remove:function(e,t,n,i,r){var s,o,a,l,c,u,d,p,h,m,f,g=ae.hasData(e)&&ae.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(Z)||[""]).length;c--;)if(h=f=(a=ze.exec(t[c])||[])[1],m=(a[2]||"").split(".").sort(),h){for(d=C.event.special[h]||{},p=l[h=(i?d.delegateType:d.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=p.length;s--;)u=p[s],!r&&f!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(p.splice(s,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));o&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,m,g.handle)||C.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)C.event.remove(e,h+t[c],n,i,!0);C.isEmptyObject(l)&&ae.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,s,o,a=new Array(arguments.length),l=C.event.fix(e),c=(ae.get(this,"events")||Object.create(null))[l.type]||[],u=C.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=C.event.handlers.call(this,l,c),t=0;(r=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(i=((C.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,s,o,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(s=[],o={},n=0;n<l;n++)void 0===o[r=(i=t[n]).selector+" "]&&(o[r]=i.needsContext?C(r,this).index(c)>-1:C.find(r,this,null,[c]).length),o[r]&&s.push(i);s.length&&a.push({elem:c,handlers:s})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Ce.test(t.type)&&t.click&&k(t,"input")&&qe(t,"click",!0),!1},trigger:function(e){var t=this||e;return Ce.test(t.type)&&t.click&&k(t,"input")&&qe(t,"click"),!0},_default:function(e){var t=e.target;return Ce.test(t.type)&&t.click&&k(t,"input")&&ae.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?De:Oe,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&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Oe,isPropagationStopped:Oe,isImmediatePropagationStopped:Oe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=De,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=De,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=De,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.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},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=ae.get(this,"handle"),i=C.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else C.event.simulate(t,e.target,C.event.fix(e))}C.event.special[e]={setup:function(){var i;if(qe(this,e,!0),!b.documentMode)return!1;(i=ae.get(this,t))||this.addEventListener(t,n),ae.set(this,t,(i||0)+1)},trigger:function(){return qe(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=ae.get(this,t)-1)?ae.set(this,t,e):(this.removeEventListener(t,n),ae.remove(this,t))},_default:function(t){return ae.get(t.target,e)},delegateType:t},C.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,s=ae.get(r,t);s||(b.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),ae.set(r,t,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,s=ae.get(r,t)-1;s?ae.set(r,t,s):(b.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),ae.remove(r,t))}}})),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||C.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),C.fn.extend({on:function(e,t,n,i){return Re(this,e,t,n,i)},one:function(e,t,n,i){return Re(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,C(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Oe),this.each((function(){C.event.remove(this,e,n,t)}))}});var Be=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function je(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function $e(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function We(e,t){var n,i,r,s,o,a;if(1===t.nodeType){if(ae.hasData(e)&&(a=ae.get(e).events))for(r in ae.remove(t,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)C.event.add(t,r,a[r][n]);le.hasData(e)&&(s=le.access(e),o=C.extend({},s),le.set(t,o))}}function Ue(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ce.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ve(e,t,n,i){t=l(t);var r,s,o,a,c,u,d=0,p=e.length,h=p-1,m=t[0],f=v(m);if(f||p>1&&"string"==typeof m&&!g.checkClone&&Fe.test(m))return e.each((function(r){var s=e.eq(r);f&&(t[0]=m.call(this,r,s.html())),Ve(s,t,n,i)}));if(p&&(s=(r=Ie(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=s),s||i)){for(a=(o=C.map(Le(r,"script"),He)).length;d<p;d++)c=r,d!==h&&(c=C.clone(c,!0,!0),a&&C.merge(o,Le(c,"script"))),n.call(e[d],c,d);if(a)for(u=o[o.length-1].ownerDocument,C.map(o,$e),d=0;d<a;d++)c=o[d],ke.test(c.type||"")&&!ae.access(c,"globalEval")&&C.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?C._evalUrl&&!c.noModule&&C._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):_(c.textContent.replace(Me,""),c,u))}return e}function Ze(e,t,n){for(var i,r=t?C.filter(t,e):e,s=0;null!=(i=r[s]);s++)n||1!==i.nodeType||C.cleanData(Le(i)),i.parentNode&&(n&&ge(i)&&Pe(Le(i,"script")),i.parentNode.removeChild(i));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,s,o,a=e.cloneNode(!0),l=ge(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(o=Le(a),i=0,r=(s=Le(e)).length;i<r;i++)Ue(s[i],o[i]);if(t)if(n)for(s=s||Le(e),o=o||Le(a),i=0,r=s.length;i<r;i++)We(s[i],o[i]);else We(e,a);return(o=Le(a,"script")).length>0&&Pe(o,!l&&Le(e,"script")),a},cleanData:function(e){for(var t,n,i,r=C.event.special,s=0;void 0!==(n=e[s]);s++)if(se(n)){if(t=n[ae.expando]){if(t.events)for(i in t.events)r[i]?C.event.remove(n,i):C.removeEvent(n,i,t.handle);n[ae.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Ze(this,e,!0)},remove:function(e){return Ze(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?C.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 Ve(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return Ve(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ve(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&&(C.cleanData(Le(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return C.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Be.test(e)&&!Te[(Ne.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(Le(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ve(this,arguments,(function(t){var n=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(Le(this)),n&&n.replaceChild(t,this))}),e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){C.fn[e]=function(e){for(var n,i=[],r=C(e),s=r.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),C(r[o])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var Ge=new RegExp("^("+pe+")(?!px)[a-z%]+$","i"),Qe=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Ye=function(e,t,n){var i,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=s[r];return i},Ke=new RegExp(me.join("|"),"i");function Je(e,t,n){var i,r,s,o,a=Qe.test(t),l=e.style;return(n=n||Xe(e))&&(o=n.getPropertyValue(t)||n[t],a&&o&&(o=o.replace(I,"$1")||void 0),""!==o||ge(e)||(o=C.style(e,t)),!g.pixelBoxStyles()&&Ge.test(o)&&Ke.test(t)&&(i=l.width,r=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=o,o=n.width,l.width=i,l.minWidth=r,l.maxWidth=s)),void 0!==o?o+"":o}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",fe.appendChild(c).appendChild(u);var e=i.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),r=36===t(e.width),u.style.position="absolute",s=12===t(u.offsetWidth/3),fe.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,r,s,o,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,C.extend(g,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),s},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",fe.appendChild(e).appendChild(t).appendChild(n),r=i.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,fe.removeChild(e)),a}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,it={};function rt(e){var t=C.cssProps[e]||it[e];return t||(e in nt?e:it[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var st=/^(none|table(?!-c[ea]).+)/,ot={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=he.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ct(e,t,n,i,r,s){var o="width"===t?1:0,a=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(c+=C.css(e,n+me[o],!0,r)),i?("content"===n&&(l-=C.css(e,"padding"+me[o],!0,r)),"margin"!==n&&(l-=C.css(e,"border"+me[o]+"Width",!0,r))):(l+=C.css(e,"padding"+me[o],!0,r),"padding"!==n?l+=C.css(e,"border"+me[o]+"Width",!0,r):a+=C.css(e,"border"+me[o]+"Width",!0,r));return!i&&s>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-a-.5))||0),l+c}function ut(e,t,n){var i=Xe(e),r=(!g.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,i),s=r,o=Je(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&k(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===C.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===C.css(e,"boxSizing",!1,i),(s=a in e)&&(o=e[a])),(o=parseFloat(o)||0)+ct(e,t,n||(r?"border":"content"),s,i,o)+"px"}function dt(e,t,n,i,r){return new dt.prototype.init(e,t,n,i,r)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Je(e,"opacity");return""===n?"1":n}}}},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,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,o,a=re(t),l=Qe.test(t),c=e.style;if(l||(t=rt(a)),o=C.cssHooks[t]||C.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(e,!1,i))?r:c[t];"string"===(s=typeof n)&&(r=he.exec(n))&&r[1]&&(n=be(e,t,r),s="number"),null!=n&&n==n&&("number"!==s||l||(n+=r&&r[3]||(C.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,s,o,a=re(t);return Qe.test(t)||(t=rt(a)),(o=C.cssHooks[t]||C.cssHooks[a])&&"get"in o&&(r=o.get(e,!0,n)),void 0===r&&(r=Je(e,t,i)),"normal"===r&&t in at&&(r=at[t]),""===n||n?(s=parseFloat(r),!0===n||isFinite(s)?s||0:r):r}}),C.each(["height","width"],(function(e,t){C.cssHooks[t]={get:function(e,n,i){if(n)return!st.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,i):Ye(e,ot,(function(){return ut(e,t,i)}))},set:function(e,n,i){var r,s=Xe(e),o=!g.scrollboxSize()&&"absolute"===s.position,a=(o||i)&&"border-box"===C.css(e,"boxSizing",!1,s),l=i?ct(e,t,i,a,s):0;return a&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-ct(e,t,"border",!1,s)-.5)),l&&(r=he.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),lt(0,n,l)}}})),C.cssHooks.marginLeft=et(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Ye(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(e,t){C.cssHooks[e+t]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+me[i]+t]=s[i]||s[i-2]||s[0];return r}},"margin"!==e&&(C.cssHooks[e+t].set=lt)})),C.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var i,r,s={},o=0;if(Array.isArray(t)){for(i=Xe(e),r=t.length;o<r;o++)s[t[o]]=C.css(e,t[o],!1,i);return s}return void 0!==n?C.style(e,t,n):C.css(e,t)}),e,t,arguments.length>1)}}),C.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,i,r,s){this.elem=e,this.prop=n,this.easing=r||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(C.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=dt.prototype.init,C.fx.step={};var pt,ht,mt=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;function gt(){ht&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(gt):i.setTimeout(gt,C.fx.interval),C.fx.tick())}function vt(){return i.setTimeout((function(){pt=void 0})),pt=Date.now()}function yt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=me[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function bt(e,t,n){for(var i,r=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),s=0,o=r.length;s<o;s++)if(i=r[s].call(n,t,e))return i}function wt(e,t,n){var i,r,s=0,o=wt.prefilters.length,a=C.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=pt||vt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),s=0,o=c.tweens.length;s<o;s++)c.tweens[s].run(i);return a.notifyWith(e,[c,i,n]),i<1&&o?n:(o||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:t,originalOptions:n,startTime:pt||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=C.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,r,s,o;for(n in e)if(r=t[i=re(n)],s=e[n],Array.isArray(s)&&(r=s[1],s=e[n]=s[0]),n!==i&&(e[i]=s,delete e[n]),(o=C.cssHooks[i])&&"expand"in o)for(n in s=o.expand(s),delete e[i],s)n in e||(e[n]=s[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);s<o;s++)if(i=wt.prefilters[s].call(c,e,u,c.opts))return v(i.stop)&&(C._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return C.map(u,bt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),C.fx.timer(C.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}C.Animation=C.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,he.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(Z);for(var n,i=0,r=e.length;i<r;i++)n=e[i],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,s,o,a,l,c,u,d="width"in t||"height"in t,p=this,h={},m=e.style,f=e.nodeType&&ye(e),g=ae.get(e,"fxshow");for(i in n.queue||(null==(o=C._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,p.always((function(){p.always((function(){o.unqueued--,C.queue(e,"fx").length||o.empty.fire()}))}))),t)if(r=t[i],mt.test(r)){if(delete t[i],s=s||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;f=!0}h[i]=g&&g[i]||C.style(e,i)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(h))for(i in d&&1===e.nodeType&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],null==(c=g&&g.display)&&(c=ae.get(e,"display")),"none"===(u=C.css(e,"display"))&&(c?u=c:(Ee([e],!0),c=e.style.display||c,u=C.css(e,"display"),Ee([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===C.css(e,"float")&&(l||(p.done((function(){m.display=c})),null==c&&(u=m.display,c="none"===u?"":u)),m.display="inline-block")),n.overflow&&(m.overflow="hidden",p.always((function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]}))),l=!1,h)l||(g?"hidden"in g&&(f=g.hidden):g=ae.access(e,"fxshow",{display:c}),s&&(g.hidden=!f),f&&Ee([e],!0),p.done((function(){for(i in f||Ee([e]),ae.remove(e,"fxshow"),h)C.style(e,i,h[i])}))),l=bt(f?g[i]:0,i,p),i in g||(g[i]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),C.speed=function(e,t,n){var i=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return C.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in C.fx.speeds?i.duration=C.fx.speeds[i.duration]:i.duration=C.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&C.dequeue(this,i.queue)},i},C.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=C.isEmptyObject(e),s=C.speed(t,n,i),o=function(){var t=wt(this,C.extend({},e),s);(r||ae.get(this,"finish"))&&t.stop(!0)};return o.finish=o,r||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",s=C.timers,o=ae.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&ft.test(r)&&i(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=e&&s[r].queue!==e||(s[r].anim.stop(n),t=!1,s.splice(r,1));!t&&n||C.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=ae.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],s=C.timers,o=i?i.length:0;for(n.finish=!0,C.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),C.each(["toggle","show","hide"],(function(e,t){var n=C.fn[t];C.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,i,r)}})),C.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){C.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(pt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),pt=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){ht||(ht=!0,gt())},C.fx.stop=function(){ht=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(r)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var _t,Et=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return ee(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){C.removeAttr(this,e)}))}}),C.extend({attr:function(e,t,n){var i,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?C.prop(e,t,n):(1===s&&C.isXMLDoc(e)||(r=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?_t:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=C.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(Z);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),_t={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=Et[t]||C.find.attr;Et[t]=function(e,t,i){var r,s,o=t.toLowerCase();return i||(s=Et[o],Et[o]=r,r=null!=n(e,t,i)?o:null,Et[o]=s),r}}));var xt=/^(?:input|select|textarea|button)$/i,St=/^(?:a|area)$/i;function Ct(e){return(e.match(Z)||[]).join(" ")}function Nt(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Z)||[]}C.fn.extend({prop:function(e,t){return ee(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[C.propFix[e]||e]}))}}),C.extend({prop:function(e,t,n){var i,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&C.isXMLDoc(e)||(t=C.propFix[t]||t,r=C.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||St.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(e){var t,n,i,r,s,o;return v(e)?this.each((function(t){C(this).addClass(e.call(this,t,Nt(this)))})):(t=kt(e)).length?this.each((function(){if(i=Nt(this),n=1===this.nodeType&&" "+Ct(i)+" "){for(s=0;s<t.length;s++)r=t[s],n.indexOf(" "+r+" ")<0&&(n+=r+" ");o=Ct(n),i!==o&&this.setAttribute("class",o)}})):this},removeClass:function(e){var t,n,i,r,s,o;return v(e)?this.each((function(t){C(this).removeClass(e.call(this,t,Nt(this)))})):arguments.length?(t=kt(e)).length?this.each((function(){if(i=Nt(this),n=1===this.nodeType&&" "+Ct(i)+" "){for(s=0;s<t.length;s++)for(r=t[s];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");o=Ct(n),i!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,r,s,o=typeof e,a="string"===o||Array.isArray(e);return v(e)?this.each((function(n){C(this).toggleClass(e.call(this,n,Nt(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=kt(e),this.each((function(){if(a)for(s=C(this),r=0;r<n.length;r++)i=n[r],s.hasClass(i)?s.removeClass(i):s.addClass(i);else void 0!==e&&"boolean"!==o||((i=Nt(this))&&ae.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":ae.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+Ct(Nt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g;C.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=v(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,C(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=C.map(r,(function(e){return null==e?"":e+""}))),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=C.valHooks[r.type]||C.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Tt,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:Ct(C.text(e))}},select:{get:function(e){var t,n,i,r=e.options,s=e.selectedIndex,o="select-one"===e.type,a=o?null:[],l=o?s+1:r.length;for(i=s<0?l:o?s:0;i<l;i++)if(((n=r[i]).selected||i===s)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(t=C(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,s=C.makeArray(t),o=r.length;o--;)((i=r[o]).selected=C.inArray(C.valHooks.option.get(i),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},g.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Lt=i.location,Pt={guid:Date.now()},At=/\?/;C.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var It=/^(?:focusinfocus|focusoutblur)$/,zt=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,n,r){var s,o,a,l,c,u,d,p,m=[n||b],f=h.call(e,"type")?e.type:e,g=h.call(e,"namespace")?e.namespace.split("."):[];if(o=p=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!It.test(f+C.event.triggered)&&(f.indexOf(".")>-1&&(g=f.split("."),f=g.shift(),g.sort()),c=f.indexOf(":")<0&&"on"+f,(e=e[C.expando]?e:new C.Event(f,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:C.makeArray(t,[e]),d=C.event.special[f]||{},r||!d.trigger||!1!==d.trigger.apply(n,t))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||f,It.test(l+f)||(o=o.parentNode);o;o=o.parentNode)m.push(o),a=o;a===(n.ownerDocument||b)&&m.push(a.defaultView||a.parentWindow||i)}for(s=0;(o=m[s++])&&!e.isPropagationStopped();)p=o,e.type=s>1?l:d.bindType||f,(u=(ae.get(o,"events")||Object.create(null))[e.type]&&ae.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&se(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(m.pop(),t)||!se(n)||c&&v(n[f])&&!y(n)&&((a=n[c])&&(n[c]=null),C.event.triggered=f,e.isPropagationStopped()&&p.addEventListener(f,zt),n[f](),e.isPropagationStopped()&&p.removeEventListener(f,zt),C.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(e,t,n){var i=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(i,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each((function(){C.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}});var Dt=/\[\]$/,Ot=/\r?\n/g,Rt=/^(?:submit|button|image|reset|file)$/i,qt=/^(?:input|select|textarea|keygen)/i;function Bt(e,t,n,i){var r;if(Array.isArray(t))C.each(t,(function(t,r){n||Dt.test(e)?i(e,r):Bt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==E(t))i(e,t);else for(r in t)Bt(e+"["+r+"]",t[r],n,i)}C.param=function(e,t){var n,i=[],r=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,(function(){r(this.name,this.value)}));else for(n in e)Bt(n,e[n],t,r);return i.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&qt.test(this.nodeName)&&!Rt.test(e)&&(this.checked||!Ce.test(e))})).map((function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,(function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}})):{name:t.name,value:n.replace(Ot,"\r\n")}})).get()}});var Ft=/%20/g,Mt=/#.*$/,jt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,$t=/^(?:GET|HEAD)$/,Wt=/^\/\//,Ut={},Vt={},Zt="*/".concat("*"),Gt=b.createElement("a");function Qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,s=t.toLowerCase().match(Z)||[];if(v(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Xt(e,t,n,i){var r={},s=e===Vt;function o(a){var l;return r[a]=!0,C.each(e[a]||[],(function(e,a){var c=a(t,n,i);return"string"!=typeof c||s||r[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!r["*"]&&o("*")}function Yt(e,t){var n,i,r=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&C.extend(!0,e,i),e}Gt.href=Lt.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Zt,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":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Yt(Yt(e,C.ajaxSettings),t):Yt(C.ajaxSettings,e)},ajaxPrefilter:Qt(Ut),ajaxTransport:Qt(Vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,s,o,a,l,c,u,d,p,h=C.ajaxSetup({},t),m=h.context||h,f=h.context&&(m.nodeType||m.jquery)?C(m):C.event,g=C.Deferred(),v=C.Callbacks("once memory"),y=h.statusCode||{},w={},_={},E="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=Ht.exec(s);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)x.always(e[x.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||E;return n&&n.abort(t),S(0,t),this}};if(g.promise(x),h.url=((e||h.url||Lt.href)+"").replace(Wt,Lt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Z)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Gt.protocol+"//"+Gt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=C.param(h.data,h.traditional)),Xt(Ut,h,t,x),c)return x;for(d in(u=C.event&&h.global)&&0==C.active++&&C.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!$t.test(h.type),r=h.url.replace(Mt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ft,"+")):(p=h.url.slice(r.length),h.data&&(h.processData||"string"==typeof h.data)&&(r+=(At.test(r)?"&":"?")+h.data,delete h.data),!1===h.cache&&(r=r.replace(jt,"$1"),p=(At.test(r)?"&":"?")+"_="+Pt.guid+++p),h.url=r+p),h.ifModified&&(C.lastModified[r]&&x.setRequestHeader("If-Modified-Since",C.lastModified[r]),C.etag[r]&&x.setRequestHeader("If-None-Match",C.etag[r])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Zt+"; q=0.01":""):h.accepts["*"]),h.headers)x.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(m,x,h)||c))return x.abort();if(E="abort",v.add(h.complete),x.done(h.success),x.fail(h.error),n=Xt(Vt,h,t,x)){if(x.readyState=1,u&&f.trigger("ajaxSend",[x,h]),c)return x;h.async&&h.timeout>0&&(a=i.setTimeout((function(){x.abort("timeout")}),h.timeout));try{c=!1,n.send(w,S)}catch(e){if(c)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,o,l){var d,p,b,w,_,E=t;c||(c=!0,a&&i.clearTimeout(a),n=void 0,s=l||"",x.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(w=function(e,t,n){for(var i,r,s,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)s=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}if(s)return s!==l[0]&&l.unshift(s),n[s]}(h,x,o)),!d&&C.inArray("script",h.dataTypes)>-1&&C.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),w=function(e,t,n,i){var r,s,o,a,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(s=u.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=c[l+" "+s]||c["* "+s]))for(r in c)if((a=r.split(" "))[1]===s&&(o=c[l+" "+a[0]]||c["* "+a[0]])){!0===o?o=c[r]:!0!==c[r]&&(s=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(h,w,x,d),d?(h.ifModified&&((_=x.getResponseHeader("Last-Modified"))&&(C.lastModified[r]=_),(_=x.getResponseHeader("etag"))&&(C.etag[r]=_)),204===e||"HEAD"===h.type?E="nocontent":304===e?E="notmodified":(E=w.state,p=w.data,d=!(b=w.error))):(b=E,!e&&E||(E="error",e<0&&(e=0))),x.status=e,x.statusText=(t||E)+"",d?g.resolveWith(m,[p,E,x]):g.rejectWith(m,[x,E,b]),x.statusCode(y),y=void 0,u&&f.trigger(d?"ajaxSuccess":"ajaxError",[x,h,d?p:b]),v.fireWith(m,[x,E]),u&&(f.trigger("ajaxComplete",[x,h]),--C.active||C.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],(function(e,t){C[t]=function(e,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:r,data:n,success:i},C.isPlainObject(e)&&e))}})),C.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){C(this).wrapInner(e.call(this,t))})):this.each((function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){C(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Jt=C.ajaxSettings.xhr();g.cors=!!Jt&&"withCredentials"in Jt,g.ajax=Jt=!!Jt,C.ajaxTransport((function(e){var t,n;if(g.cors||Jt&&!e.crossDomain)return{send:function(r,s){var o,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];for(o in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(o,r[o]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Kt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),C.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),C.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 C.globalEval(e),e}}}),C.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),C.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=C("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||C.expando+"_"+Pt.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",(function(e,t,n){var r,s,o,a=!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(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||C.error(r+" was not called"),o[0]},e.dataTypes[0]="json",s=i[r],i[r]=function(){o=arguments},n.always((function(){void 0===s?C(i).removeProp(r):i[r]=s,e[r]&&(e.jsonpCallback=t.jsonpCallback,tn.push(r)),o&&v(s)&&s(o[0]),o=s=void 0})),"script"})),g.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),s=!n&&[],(r=M.exec(e))?[t.createElement(r[1])]:(r=Ie([e],t,s),s&&s.length&&C(s).remove(),C.merge([],r.childNodes)));var i,r,s},C.fn.load=function(e,t,n){var i,r,s,o=this,a=e.indexOf(" ");return a>-1&&(i=Ct(e.slice(a)),e=e.slice(0,a)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),o.length>0&&C.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){s=arguments,o.html(i?C("<div>").append(C.parseHTML(e)).find(i):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,s||[e.responseText,t,e])}))}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,(function(t){return e===t.elem})).length},C.offset={setOffset:function(e,t,n){var i,r,s,o,a,l,c=C.css(e,"position"),u=C(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),s=C.css(e,"top"),l=C.css(e,"left"),("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1?(o=(i=u.position()).top,r=i.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),v(t)&&(t=t.call(e,n,C.extend({},a))),null!=t.top&&(d.top=t.top-a.top+o),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):u.css(d)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){C.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===C.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),r.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-C.css(i,"marginTop",!0),left:t.left-r.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||fe}))}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;C.fn[e]=function(i){return ee(this,(function(e,i,r){var s;if(y(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===r)return s?s[t]:e[i];s?s.scrollTo(n?s.pageXOffset:r,n?r:s.pageYOffset):e[i]=r}),e,i,arguments.length)}})),C.each(["top","left"],(function(e,t){C.cssHooks[t]=et(g.pixelPosition,(function(e,n){if(n)return n=Je(e,t),Ge.test(n)?C(e).position()[t]+"px":n}))})),C.each({Height:"height",Width:"width"},(function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){C.fn[i]=function(r,s){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===s?"margin":"border");return ee(this,(function(t,n,r){var s;return y(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===r?C.css(t,n,a):C.style(t,n,r,a)}),t,o?r:void 0,o)}}))})),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){C.fn[t]=function(e){return this.on(t,e)}})),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.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,t){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;C.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=a.call(arguments,2),r=function(){return e.apply(t||this,i.concat(a.call(arguments)))},r.guid=e.guid=e.guid||C.guid++,r},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=k,C.isFunction=v,C.isWindow=y,C.camelCase=re,C.type=E,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return C}.apply(t,[]))||(e.exports=n);var sn=i.jQuery,on=i.$;return C.noConflict=function(e){return i.$===C&&(i.$=on),e&&i.jQuery===C&&(i.jQuery=sn),C},void 0===r&&(i.jQuery=i.$=C),C}))},433:(e,t,n)=>{var i=n(642);function r(){}function s(){}s.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,s,o){if(o!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:r};return n.PropTypes=n,n}},74:(e,t,n)=>{e.exports=n(433)()},642:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},748:(e,t,n)=>{var i=n(466),r=n(767);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,a={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(a[e]=t,e=0;e<t.length;e++)o.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},m={};function f(e,t,n,i,r,s,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,i){var r=g.hasOwnProperty(t)?g[t]:null;(null!==r?0!==r.type:i||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,i){if(null==t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,i)&&(n=null),i||null===r?function(e){return!!d.call(m,e)||!d.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,i=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),E=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),k=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var R,q=Object.assign;function B(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var F=!1;function M(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var i=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){i=e}e.call(t.prototype)}else{try{throw Error()}catch(e){i=e}e()}}catch(t){if(t&&i&&"string"==typeof t.stack){for(var r=t.stack.split("\n"),s=i.stack.split("\n"),o=r.length-1,a=s.length-1;1<=o&&0<=a&&r[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(r[o]!==s[a]){if(1!==o||1!==a)do{if(o--,0>--a||r[o]!==s[a]){var l="\n"+r[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=a);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?B(e):""}function j(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=M(e.type,!1);case 11:return e=M(e.type.render,!1);case 1:return e=M(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case E:return"Portal";case C:return"Profiler";case S:return"StrictMode";case L:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case N:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){i=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=U(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function K(e,t){Y(e,t);var n=W(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(i&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(te(n)){if(1<n.length)throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function se(e,t){var n=W(t.value),i=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=fe(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}Object.keys(he).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,xe=null,Se=null;function Ce(e){if(e=br(e)){if("function"!=typeof Ee)throw Error(s(280));var t=e.stateNode;t&&(t=_r(t),Ee(e.stateNode,e.type,t))}}function Ne(e){xe?Se?Se.push(e):Se=[e]:xe=e}function ke(){if(xe){var e=xe,t=Se;if(Se=xe=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Te(e,t){return e(t)}function Le(){}var Pe=!1;function Ae(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Te(e,t,n)}finally{Pe=!1,(null!==xe||null!==Se)&&(Le(),ke())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var i=_r(n);if(null===i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var ze=!1;if(u)try{var De={};Object.defineProperty(De,"passive",{get:function(){ze=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ue){ze=!1}function Oe(e,t,n,i,r,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Re=!1,qe=null,Be=!1,Fe=null,Me={onError:function(e){Re=!0,qe=e}};function je(e,t,n,i,r,s,o,a,l){Re=!1,qe=null,Oe.apply(Me,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(He(e)!==e)throw Error(s(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(null===r)break;var o=r.alternate;if(null===o){if(null!==(i=r.return)){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return We(r),e;if(o===i)return We(r),t;o=o.sibling}throw Error(s(188))}if(n.return!==i.return)n=r,i=o;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,i=o;break}if(l===i){a=!0,i=r,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,i=r;break}if(l===i){a=!0,i=o,n=r;break}l=l.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ze=r.unstable_scheduleCallback,Ge=r.unstable_cancelCallback,Qe=r.unstable_shouldYield,Xe=r.unstable_requestPaint,Ye=r.unstable_now,Ke=r.unstable_getCurrentPriorityLevel,Je=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,it=r.unstable_IdlePriority,rt=null,st=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var i=0,r=e.suspendedLanes,s=e.pingedLanes,o=268435455&n;if(0!==o){var a=o&~r;0!==a?i=dt(a):0!==(s&=o)&&(i=dt(s))}else 0!==(o=n&~r)?i=dt(o):0!==s&&(i=dt(s));if(0===i)return 0;if(0!==t&&t!==i&&0==(t&r)&&((r=i&-i)>=(s=t&-t)||16===r&&0!=(4194240&s)))return t;if(0!=(4&i)&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)r=1<<(n=31-ot(t)),i|=e[n],t&=~r;return i}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-ot(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var _t,Et,xt,St,Ct,Nt=!1,kt=[],Tt=null,Lt=null,Pt=null,At=new Map,It=new Map,zt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ot(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Rt(e,t,n,i,r,s){return null===e||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:s,targetContainers:[r]},null!==t&&(null!==(t=br(t))&&Et(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function qt(e){var t=yr(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Ct(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=br(n))&&Et(t),e.blockedOn=n,!1;var i=new(n=e.nativeEvent).constructor(n.type,n);we=i,n.target.dispatchEvent(i),we=null,t.shift()}return!0}function Ft(e,t,n){Bt(e)&&n.delete(t)}function Mt(){Nt=!1,null!==Tt&&Bt(Tt)&&(Tt=null),null!==Lt&&Bt(Lt)&&(Lt=null),null!==Pt&&Bt(Pt)&&(Pt=null),At.forEach(Ft),It.forEach(Ft)}function jt(e,t){e.blockedOn===t&&(e.blockedOn=null,Nt||(Nt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Mt)))}function Ht(e){function t(t){return jt(t,e)}if(0<kt.length){jt(kt[0],e);for(var n=1;n<kt.length;n++){var i=kt[n];i.blockedOn===e&&(i.blockedOn=null)}}for(null!==Tt&&jt(Tt,e),null!==Lt&&jt(Lt,e),null!==Pt&&jt(Pt,e),At.forEach(t),It.forEach(t),n=0;n<zt.length;n++)(i=zt[n]).blockedOn===e&&(i.blockedOn=null);for(;0<zt.length&&null===(n=zt[0]).blockedOn;)qt(n),null===n.blockedOn&&zt.shift()}var $t=w.ReactCurrentBatchConfig,Wt=!0;function Ut(e,t,n,i){var r=bt,s=$t.transition;$t.transition=null;try{bt=1,Zt(e,t,n,i)}finally{bt=r,$t.transition=s}}function Vt(e,t,n,i){var r=bt,s=$t.transition;$t.transition=null;try{bt=4,Zt(e,t,n,i)}finally{bt=r,$t.transition=s}}function Zt(e,t,n,i){if(Wt){var r=Qt(e,t,n,i);if(null===r)Wi(e,t,i,Gt,n),Ot(e,i);else if(function(e,t,n,i,r){switch(t){case"focusin":return Tt=Rt(Tt,e,t,n,i,r),!0;case"dragenter":return Lt=Rt(Lt,e,t,n,i,r),!0;case"mouseover":return Pt=Rt(Pt,e,t,n,i,r),!0;case"pointerover":var s=r.pointerId;return At.set(s,Rt(At.get(s)||null,e,t,n,i,r)),!0;case"gotpointercapture":return s=r.pointerId,It.set(s,Rt(It.get(s)||null,e,t,n,i,r)),!0}return!1}(r,e,t,n,i))i.stopPropagation();else if(Ot(e,i),4&t&&-1<Dt.indexOf(e)){for(;null!==r;){var s=br(r);if(null!==s&&_t(s),null===(s=Qt(e,t,n,i))&&Wi(e,t,i,Gt,n),s===r)break;r=s}null!==r&&i.stopPropagation()}else Wi(e,t,i,null,n)}}var Gt=null;function Qt(e,t,n,i){if(Gt=null,null!==(e=yr(e=_e(i))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ke()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case it:return 536870912;default:return 16}default:return 16}}var Yt=null,Kt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Kt,i=n.length,r="value"in Yt?Yt.value:Yt.textContent,s=r.length;for(e=0;e<i&&n[e]===r[e];e++);var o=i-e;for(t=1;t<=o&&n[i-t]===r[s-t];t++);return Jt=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function sn(e){function t(t,n,i,r,s){for(var o in this._reactName=t,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=s,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(r):r[o]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,an,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=sn(cn),dn=q({},cn,{view:0,detail:0}),pn=sn(dn),hn=q({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:an}}),mn=sn(hn),fn=sn(q({},hn,{dataTransfer:0})),gn=sn(q({},dn,{relatedTarget:0})),vn=sn(q({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=q({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=sn(yn),wn=sn(q({},cn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return Sn}var Nn=q({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),kn=sn(Nn),Tn=sn(q({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=sn(q({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Pn=sn(q({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=q({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=sn(An),zn=[9,13,27,32],Dn=u&&"CompositionEvent"in window,On=null;u&&"documentMode"in document&&(On=document.documentMode);var Rn=u&&"TextEvent"in window&&!On,qn=u&&(!Dn||On&&8<On&&11>=On),Bn=String.fromCharCode(32),Fn=!1;function Mn(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Un(e,t,n,i){Ne(i),0<(t=Vi(t,"onChange")).length&&(n=new un("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Vn=null,Zn=null;function Gn(e){Bi(e,0)}function Qn(e){if(Z(wr(e)))return e}function Xn(e,t){if("change"===e)return t}var Yn=!1;if(u){var Kn;if(u){var Jn="oninput"in document;if(!Jn){var ei=document.createElement("div");ei.setAttribute("oninput","return;"),Jn="function"==typeof ei.oninput}Kn=Jn}else Kn=!1;Yn=Kn&&(!document.documentMode||9<document.documentMode)}function ti(){Vn&&(Vn.detachEvent("onpropertychange",ni),Zn=Vn=null)}function ni(e){if("value"===e.propertyName&&Qn(Zn)){var t=[];Un(t,Zn,e,_e(e)),Ae(Gn,t)}}function ii(e,t,n){"focusin"===e?(ti(),Zn=n,(Vn=t).attachEvent("onpropertychange",ni)):"focusout"===e&&ti()}function ri(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Zn)}function si(e,t){if("click"===e)return Qn(t)}function oi(e,t){if("input"===e||"change"===e)return Qn(t)}var ai="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function li(e,t){if(ai(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!d.call(t,r)||!ai(e[r],t[r]))return!1}return!0}function ci(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ui(e,t){var n,i=ci(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ci(i)}}function di(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?di(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pi(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mi(e){var t=pi(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&di(n.ownerDocument.documentElement,n)){if(null!==i&&hi(n))if(t=i.start,void 0===(e=i.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,s=Math.min(i.start,r);i=void 0===i.end?s:Math.min(i.end,r),!e.extend&&s>i&&(r=i,i=s,s=r),r=ui(n,s);var o=ui(n,i);r&&o&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),s>i?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fi=u&&"documentMode"in document&&11>=document.documentMode,gi=null,vi=null,yi=null,bi=!1;function wi(e,t,n){var i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;bi||null==gi||gi!==G(i)||("selectionStart"in(i=gi)&&hi(i)?i={start:i.selectionStart,end:i.selectionEnd}:i={anchorNode:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset},yi&&li(yi,i)||(yi=i,0<(i=Vi(vi,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=gi)))}function _i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ei={animationend:_i("Animation","AnimationEnd"),animationiteration:_i("Animation","AnimationIteration"),animationstart:_i("Animation","AnimationStart"),transitionend:_i("Transition","TransitionEnd")},xi={},Si={};function Ci(e){if(xi[e])return xi[e];if(!Ei[e])return e;var t,n=Ei[e];for(t in n)if(n.hasOwnProperty(t)&&t in Si)return xi[e]=n[t];return e}u&&(Si=document.createElement("div").style,"AnimationEvent"in window||(delete Ei.animationend.animation,delete Ei.animationiteration.animation,delete Ei.animationstart.animation),"TransitionEvent"in window||delete Ei.transitionend.transition);var Ni=Ci("animationend"),ki=Ci("animationiteration"),Ti=Ci("animationstart"),Li=Ci("transitionend"),Pi=new Map,Ai="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ii(e,t){Pi.set(e,t),l(t,[e])}for(var zi=0;zi<Ai.length;zi++){var Di=Ai[zi];Ii(Di.toLowerCase(),"on"+(Di[0].toUpperCase()+Di.slice(1)))}Ii(Ni,"onAnimationEnd"),Ii(ki,"onAnimationIteration"),Ii(Ti,"onAnimationStart"),Ii("dblclick","onDoubleClick"),Ii("focusin","onFocus"),Ii("focusout","onBlur"),Ii(Li,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ri=new Set("cancel close invalid load scroll toggle".split(" ").concat(Oi));function qi(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,i,r,o,a,l,c){if(je.apply(this,arguments),Re){if(!Re)throw Error(s(198));var u=qe;Re=!1,qe=null,Be||(Be=!0,Fe=u)}}(i,t,void 0,e),e.currentTarget=null}function Bi(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var s=void 0;if(t)for(var o=i.length-1;0<=o;o--){var a=i[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&r.isPropagationStopped())break e;qi(r,a,c),s=l}else for(o=0;o<i.length;o++){if(l=(a=i[o]).instance,c=a.currentTarget,a=a.listener,l!==s&&r.isPropagationStopped())break e;qi(r,a,c),s=l}}}if(Be)throw e=Fe,Be=!1,Fe=null,e}function Fi(e,t){var n=t[fr];void 0===n&&(n=t[fr]=new Set);var i=e+"__bubble";n.has(i)||($i(t,e,2,!1),n.add(i))}function Mi(e,t,n){var i=0;t&&(i|=4),$i(n,e,i,t)}var ji="_reactListening"+Math.random().toString(36).slice(2);function Hi(e){if(!e[ji]){e[ji]=!0,o.forEach((function(t){"selectionchange"!==t&&(Ri.has(t)||Mi(t,!1,e),Mi(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ji]||(t[ji]=!0,Mi("selectionchange",!1,t))}}function $i(e,t,n,i){switch(Xt(t)){case 1:var r=Ut;break;case 4:r=Vt;break;default:r=Zt}n=r.bind(null,t,n,e),r=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),i?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Wi(e,t,n,i,r){var s=i;if(0==(1&t)&&0==(2&t)&&null!==i)e:for(;;){if(null===i)return;var o=i.tag;if(3===o||4===o){var a=i.stateNode.containerInfo;if(a===r||8===a.nodeType&&a.parentNode===r)break;if(4===o)for(o=i.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;o=o.return}for(;null!==a;){if(null===(o=yr(a)))return;if(5===(l=o.tag)||6===l){i=s=o;continue e}a=a.parentNode}}i=i.return}Ae((function(){var i=s,r=_e(n),o=[];e:{var a=Pi.get(e);if(void 0!==a){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=kn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ln;break;case Ni:case ki:case Ti:l=vn;break;case Li:l=Pn;break;case"scroll":l=pn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==a?a+"Capture":null:a;u=[];for(var h,m=i;null!==m;){var f=(h=m).stateNode;if(5===h.tag&&null!==f&&(h=f,null!==p&&(null!=(f=Ie(m,p))&&u.push(Ui(m,f,h)))),d)break;m=m.return}0<u.length&&(a=new l(a,c,null,n,r),o.push({event:a,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!yr(c)&&!c[mr])&&(l||a)&&(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=i,null!==(c=(c=n.relatedTarget||n.toElement)?yr(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=i),l!==c)){if(u=mn,f="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,f="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?a:wr(l),h=null==c?a:wr(c),(a=new u(f,m+"leave",l,n,r)).target=d,a.relatedTarget=h,f=null,yr(r)===i&&((u=new u(p,m+"enter",c,n,r)).target=h,u.relatedTarget=d,f=u),d=f,l&&c)e:{for(p=c,m=0,h=u=l;h;h=Zi(h))m++;for(h=0,f=p;f;f=Zi(f))h++;for(;0<m-h;)u=Zi(u),m--;for(;0<h-m;)p=Zi(p),h--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=Zi(u),p=Zi(p)}u=null}else u=null;null!==l&&Gi(o,a,l,u,!1),null!==c&&null!==d&&Gi(o,d,c,u,!0)}if("select"===(l=(a=i?wr(i):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g=Xn;else if(Wn(a))if(Yn)g=oi;else{g=ri;var v=ii}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=si);switch(g&&(g=g(e,i))?Un(o,g,n,r):(v&&v(e,a,i),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&ee(a,"number",a.value)),v=i?wr(i):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(gi=v,vi=i,yi=null);break;case"focusout":yi=vi=gi=null;break;case"mousedown":bi=!0;break;case"contextmenu":case"mouseup":case"dragend":bi=!1,wi(o,n,r);break;case"selectionchange":if(fi)break;case"keydown":case"keyup":wi(o,n,r)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Mn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(qn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Kt="value"in(Yt=r)?Yt.value:Yt.textContent,Hn=!0)),0<(v=Vi(i,b)).length&&(b=new wn(b,e,null,n,r),o.push({event:b,listeners:v}),y?b.data=y:null!==(y=jn(n))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Dn&&Mn(e,t)?(e=en(),Jt=Kt=Yt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(i=Vi(i,"onBeforeInput")).length&&(r=new wn("onBeforeInput","beforeinput",null,n,r),o.push({event:r,listeners:i}),r.data=y))}Bi(o,t)}))}function Ui(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vi(e,t){for(var n=t+"Capture",i=[];null!==e;){var r=e,s=r.stateNode;5===r.tag&&null!==s&&(r=s,null!=(s=Ie(e,n))&&i.unshift(Ui(e,s,r)),null!=(s=Ie(e,t))&&i.push(Ui(e,s,r))),e=e.return}return i}function Zi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gi(e,t,n,i,r){for(var s=t._reactName,o=[];null!==n&&n!==i;){var a=n,l=a.alternate,c=a.stateNode;if(null!==l&&l===i)break;5===a.tag&&null!==c&&(a=c,r?null!=(l=Ie(n,s))&&o.unshift(Ui(n,l,a)):r||null!=(l=Ie(n,s))&&o.push(Ui(n,l,a))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Qi=/\r\n?/g,Xi=/\u0000|\uFFFD/g;function Yi(e){return("string"==typeof e?e:""+e).replace(Qi,"\n").replace(Xi,"")}function Ki(e,t,n){if(t=Yi(t),Yi(e)!==t&&n)throw Error(s(425))}function Ji(){}var er=null,tr=null;function nr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ir="function"==typeof setTimeout?setTimeout:void 0,rr="function"==typeof clearTimeout?clearTimeout:void 0,sr="function"==typeof Promise?Promise:void 0,or="function"==typeof queueMicrotask?queueMicrotask:void 0!==sr?function(e){return sr.resolve(null).then(e).catch(ar)}:ir;function ar(e){setTimeout((function(){throw e}))}function lr(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===i)return e.removeChild(r),void Ht(t);i--}else"$"!==n&&"$?"!==n&&"$!"!==n||i++;n=r}while(n);Ht(t)}function cr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ur(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var dr=Math.random().toString(36).slice(2),pr="__reactFiber$"+dr,hr="__reactProps$"+dr,mr="__reactContainer$"+dr,fr="__reactEvents$"+dr,gr="__reactListeners$"+dr,vr="__reactHandles$"+dr;function yr(e){var t=e[pr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mr]||n[pr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ur(e);null!==e;){if(n=e[pr])return n;e=ur(e)}return t}n=(e=n).parentNode}return null}function br(e){return!(e=e[pr]||e[mr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function _r(e){return e[hr]||null}var Er=[],xr=-1;function Sr(e){return{current:e}}function Cr(e){0>xr||(e.current=Er[xr],Er[xr]=null,xr--)}function Nr(e,t){xr++,Er[xr]=e.current,e.current=t}var kr={},Tr=Sr(kr),Lr=Sr(!1),Pr=kr;function Ar(e,t){var n=e.type.contextTypes;if(!n)return kr;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,s={};for(r in n)s[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ir(e){return null!=(e=e.childContextTypes)}function zr(){Cr(Lr),Cr(Tr)}function Dr(e,t,n){if(Tr.current!==kr)throw Error(s(168));Nr(Tr,t),Nr(Lr,n)}function Or(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in t))throw Error(s(108,$(e)||"Unknown",r));return q({},n,i)}function Rr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kr,Pr=Tr.current,Nr(Tr,e),Nr(Lr,Lr.current),!0}function qr(e,t,n){var i=e.stateNode;if(!i)throw Error(s(169));n?(e=Or(e,t,Pr),i.__reactInternalMemoizedMergedChildContext=e,Cr(Lr),Cr(Tr),Nr(Tr,e)):Cr(Lr),Nr(Lr,n)}var Br=null,Fr=!1,Mr=!1;function jr(e){null===Br?Br=[e]:Br.push(e)}function Hr(){if(!Mr&&null!==Br){Mr=!0;var e=0,t=bt;try{var n=Br;for(bt=1;e<n.length;e++){var i=n[e];do{i=i(!0)}while(null!==i)}Br=null,Fr=!1}catch(t){throw null!==Br&&(Br=Br.slice(e+1)),Ze(Je,Hr),t}finally{bt=t,Mr=!1}}return null}var $r=[],Wr=0,Ur=null,Vr=0,Zr=[],Gr=0,Qr=null,Xr=1,Yr="";function Kr(e,t){$r[Wr++]=Vr,$r[Wr++]=Ur,Ur=e,Vr=t}function Jr(e,t,n){Zr[Gr++]=Xr,Zr[Gr++]=Yr,Zr[Gr++]=Qr,Qr=e;var i=Xr;e=Yr;var r=32-ot(i)-1;i&=~(1<<r),n+=1;var s=32-ot(t)+r;if(30<s){var o=r-r%5;s=(i&(1<<o)-1).toString(32),i>>=o,r-=o,Xr=1<<32-ot(t)+r|n<<r|i,Yr=s+e}else Xr=1<<s|n<<r|i,Yr=e}function es(e){null!==e.return&&(Kr(e,1),Jr(e,1,0))}function ts(e){for(;e===Ur;)Ur=$r[--Wr],$r[Wr]=null,Vr=$r[--Wr],$r[Wr]=null;for(;e===Qr;)Qr=Zr[--Gr],Zr[Gr]=null,Yr=Zr[--Gr],Zr[Gr]=null,Xr=Zr[--Gr],Zr[Gr]=null}var ns=null,is=null,rs=!1,ss=null;function os(e,t){var n=Ac(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function as(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ns=e,is=cr(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ns=e,is=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qr?{id:Xr,overflow:Yr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ac(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ns=e,is=null,!0);default:return!1}}function ls(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function cs(e){if(rs){var t=is;if(t){var n=t;if(!as(e,t)){if(ls(e))throw Error(s(418));t=cr(n.nextSibling);var i=ns;t&&as(e,t)?os(i,n):(e.flags=-4097&e.flags|2,rs=!1,ns=e)}}else{if(ls(e))throw Error(s(418));e.flags=-4097&e.flags|2,rs=!1,ns=e}}}function us(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ns=e}function ds(e){if(e!==ns)return!1;if(!rs)return us(e),rs=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!nr(e.type,e.memoizedProps)),t&&(t=is)){if(ls(e))throw ps(),Error(s(418));for(;t;)os(e,t),t=cr(t.nextSibling)}if(us(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){is=cr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}is=null}}else is=ns?cr(e.stateNode.nextSibling):null;return!0}function ps(){for(var e=is;e;)e=cr(e.nextSibling)}function hs(){is=ns=null,rs=!1}function ms(e){null===ss?ss=[e]:ss.push(e)}var fs=w.ReactCurrentBatchConfig;function gs(e,t){if(e&&e.defaultProps){for(var n in t=q({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vs=Sr(null),ys=null,bs=null,ws=null;function _s(){ws=bs=ys=null}function Es(e){var t=vs.current;Cr(vs),e._currentValue=t}function xs(e,t,n){for(;null!==e;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==i&&(i.childLanes|=t)):null!==i&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Ss(e,t){ys=e,ws=bs=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ba=!0),e.firstContext=null)}function Cs(e){var t=e._currentValue;if(ws!==e)if(e={context:e,memoizedValue:t,next:null},null===bs){if(null===ys)throw Error(s(308));bs=e,ys.dependencies={lanes:0,firstContext:e}}else bs=bs.next=e;return t}var Ns=null;function ks(e){null===Ns?Ns=[e]:Ns.push(e)}function Ts(e,t,n,i){var r=t.interleaved;return null===r?(n.next=n,ks(t)):(n.next=r.next,r.next=n),t.interleaved=n,Ls(e,i)}function Ls(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ps=!1;function As(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Is(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ds(e,t,n){var i=e.updateQueue;if(null===i)return null;if(i=i.shared,0!=(2&Tl)){var r=i.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),i.pending=t,Ls(e,n)}return null===(r=i.interleaved)?(t.next=t,ks(i)):(t.next=r.next,r.next=t),i.interleaved=t,Ls(e,n)}function Os(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Rs(e,t){var n=e.updateQueue,i=e.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,s=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===s?r=s=o:s=s.next=o,n=n.next}while(null!==n);null===s?r=s=t:s=s.next=t}else r=s=t;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qs(e,t,n,i){var r=e.updateQueue;Ps=!1;var s=r.firstBaseUpdate,o=r.lastBaseUpdate,a=r.shared.pending;if(null!==a){r.shared.pending=null;var l=a,c=l.next;l.next=null,null===o?s=c:o.next=c,o=l;var u=e.alternate;null!==u&&((a=(u=u.updateQueue).lastBaseUpdate)!==o&&(null===a?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(null!==s){var d=r.baseState;for(o=0,u=c=l=null,a=s;;){var p=a.lane,h=a.eventTime;if((i&p)===p){null!==u&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,f=a;switch(p=t,h=n,f.tag){case 1:if("function"==typeof(m=f.payload)){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=f.payload)?m.call(h,d,p):m))break e;d=q({},d,p);break e;case 2:Ps=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(p=r.effects)?r.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,o|=p;if(null===(a=a.next)){if(null===(a=r.shared.pending))break;a=(p=a).next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}if(null===u&&(l=d),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,null!==(t=r.shared.interleaved)){r=t;do{o|=r.lane,r=r.next}while(r!==t)}else null===s&&(r.shared.lanes=0);Rl|=o,e.lanes=o,e.memoizedState=d}}function Bs(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!=typeof r)throw Error(s(191,r));r.call(i)}}}var Fs=(new i.Component).refs;function Ms(e,t,n,i){n=null==(n=n(i,t=e.memoizedState))?t:q({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var js={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=ec(),r=tc(e),s=zs(i,r);s.payload=t,null!=n&&(s.callback=n),null!==(t=Ds(e,s,r))&&(nc(t,e,r,i),Os(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=ec(),r=tc(e),s=zs(i,r);s.tag=1,s.payload=t,null!=n&&(s.callback=n),null!==(t=Ds(e,s,r))&&(nc(t,e,r,i),Os(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),i=tc(e),r=zs(n,i);r.tag=2,null!=t&&(r.callback=t),null!==(t=Ds(e,r,i))&&(nc(t,e,i,n),Os(t,e,i))}};function Hs(e,t,n,i,r,s,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,s,o):!t.prototype||!t.prototype.isPureReactComponent||(!li(n,i)||!li(r,s))}function $s(e,t,n){var i=!1,r=kr,s=t.contextType;return"object"==typeof s&&null!==s?s=Cs(s):(r=Ir(t)?Pr:Tr.current,s=(i=null!=(i=t.contextTypes))?Ar(e,r):kr),t=new t(n,s),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=js,e.stateNode=t,t._reactInternals=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=s),t}function Ws(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&js.enqueueReplaceState(t,t.state,null)}function Us(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Fs,As(e);var s=t.contextType;"object"==typeof s&&null!==s?r.context=Cs(s):(s=Ir(t)?Pr:Tr.current,r.context=Ar(e,s)),r.state=e.memoizedState,"function"==typeof(s=t.getDerivedStateFromProps)&&(Ms(e,t,s,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&js.enqueueReplaceState(r,r.state,null),qs(e,n,r,i),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.flags|=4194308)}function Vs(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var i=n.stateNode}if(!i)throw Error(s(147,e));var r=i,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===Fs&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Zs(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gs(e){return(0,e._init)(e._payload)}function Qs(e){function t(t,n){if(e){var i=t.deletions;null===i?(t.deletions=[n],t.flags|=16):i.push(n)}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=zc(e,t)).index=0,e.sibling=null,e}function o(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.flags|=2,n):i:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,i){return null===t||6!==t.tag?((t=qc(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function c(e,t,n,i){var s=n.type;return s===x?d(e,t,n.props.children,i,n.key):null!==t&&(t.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===I&&Gs(s)===t.type)?((i=r(t,n.props)).ref=Vs(e,t,n),i.return=e,i):((i=Dc(n.type,n.key,n.props,null,e.mode,i)).ref=Vs(e,t,n),i.return=e,i)}function u(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bc(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,i,s){return null===t||7!==t.tag?((t=Oc(n,e.mode,i,s)).return=e,t):((t=r(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=qc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=Vs(e,null,t),n.return=e,n;case E:return(t=Bc(t,e.mode,n)).return=e,t;case I:return p(e,(0,t._init)(t._payload),n)}if(te(t)||O(t))return(t=Oc(t,e.mode,n,null)).return=e,t;Zs(e,t)}return null}function h(e,t,n,i){var r=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==r?null:l(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===r?c(e,t,n,i):null;case E:return n.key===r?u(e,t,n,i):null;case I:return h(e,t,(r=n._init)(n._payload),i)}if(te(n)||O(n))return null!==r?null:d(e,t,n,i,null);Zs(e,n)}return null}function m(e,t,n,i,r){if("string"==typeof i&&""!==i||"number"==typeof i)return l(t,e=e.get(n)||null,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case _:return c(t,e=e.get(null===i.key?n:i.key)||null,i,r);case E:return u(t,e=e.get(null===i.key?n:i.key)||null,i,r);case I:return m(e,t,n,(0,i._init)(i._payload),r)}if(te(i)||O(i))return d(t,e=e.get(n)||null,i,r,null);Zs(t,i)}return null}function f(r,s,a,l){for(var c=null,u=null,d=s,f=s=0,g=null;null!==d&&f<a.length;f++){d.index>f?(g=d,d=null):g=d.sibling;var v=h(r,d,a[f],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),s=o(v,s,f),null===u?c=v:u.sibling=v,u=v,d=g}if(f===a.length)return n(r,d),rs&&Kr(r,f),c;if(null===d){for(;f<a.length;f++)null!==(d=p(r,a[f],l))&&(s=o(d,s,f),null===u?c=d:u.sibling=d,u=d);return rs&&Kr(r,f),c}for(d=i(r,d);f<a.length;f++)null!==(g=m(d,r,f,a[f],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?f:g.key),s=o(g,s,f),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(r,e)})),rs&&Kr(r,f),c}function g(r,a,l,c){var u=O(l);if("function"!=typeof u)throw Error(s(150));if(null==(l=u.call(l)))throw Error(s(151));for(var d=u=null,f=a,g=a=0,v=null,y=l.next();null!==f&&!y.done;g++,y=l.next()){f.index>g?(v=f,f=null):v=f.sibling;var b=h(r,f,y.value,c);if(null===b){null===f&&(f=v);break}e&&f&&null===b.alternate&&t(r,f),a=o(b,a,g),null===d?u=b:d.sibling=b,d=b,f=v}if(y.done)return n(r,f),rs&&Kr(r,g),u;if(null===f){for(;!y.done;g++,y=l.next())null!==(y=p(r,y.value,c))&&(a=o(y,a,g),null===d?u=y:d.sibling=y,d=y);return rs&&Kr(r,g),u}for(f=i(r,f);!y.done;g++,y=l.next())null!==(y=m(f,r,g,y.value,c))&&(e&&null!==y.alternate&&f.delete(null===y.key?g:y.key),a=o(y,a,g),null===d?u=y:d.sibling=y,d=y);return e&&f.forEach((function(e){return t(r,e)})),rs&&Kr(r,g),u}return function e(i,s,o,l){if("object"==typeof o&&null!==o&&o.type===x&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case _:e:{for(var c=o.key,u=s;null!==u;){if(u.key===c){if((c=o.type)===x){if(7===u.tag){n(i,u.sibling),(s=r(u,o.props.children)).return=i,i=s;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===I&&Gs(c)===u.type){n(i,u.sibling),(s=r(u,o.props)).ref=Vs(i,u,o),s.return=i,i=s;break e}n(i,u);break}t(i,u),u=u.sibling}o.type===x?((s=Oc(o.props.children,i.mode,l,o.key)).return=i,i=s):((l=Dc(o.type,o.key,o.props,null,i.mode,l)).ref=Vs(i,s,o),l.return=i,i=l)}return a(i);case E:e:{for(u=o.key;null!==s;){if(s.key===u){if(4===s.tag&&s.stateNode.containerInfo===o.containerInfo&&s.stateNode.implementation===o.implementation){n(i,s.sibling),(s=r(s,o.children||[])).return=i,i=s;break e}n(i,s);break}t(i,s),s=s.sibling}(s=Bc(o,i.mode,l)).return=i,i=s}return a(i);case I:return e(i,s,(u=o._init)(o._payload),l)}if(te(o))return f(i,s,o,l);if(O(o))return g(i,s,o,l);Zs(i,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==s&&6===s.tag?(n(i,s.sibling),(s=r(s,o)).return=i,i=s):(n(i,s),(s=qc(o,i.mode,l)).return=i,i=s),a(i)):n(i,s)}}var Xs=Qs(!0),Ys=Qs(!1),Ks={},Js=Sr(Ks),eo=Sr(Ks),to=Sr(Ks);function no(e){if(e===Ks)throw Error(s(174));return e}function io(e,t){switch(Nr(to,t),Nr(eo,e),Nr(Js,Ks),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Cr(Js),Nr(Js,t)}function ro(){Cr(Js),Cr(eo),Cr(to)}function so(e){no(to.current);var t=no(Js.current),n=le(t,e.type);t!==n&&(Nr(eo,e),Nr(Js,n))}function oo(e){eo.current===e&&(Cr(Js),Cr(eo))}var ao=Sr(0);function lo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var co=[];function uo(){for(var e=0;e<co.length;e++)co[e]._workInProgressVersionPrimary=null;co.length=0}var po=w.ReactCurrentDispatcher,ho=w.ReactCurrentBatchConfig,mo=0,fo=null,go=null,vo=null,yo=!1,bo=!1,wo=0,_o=0;function Eo(){throw Error(s(321))}function xo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ai(e[n],t[n]))return!1;return!0}function So(e,t,n,i,r,o){if(mo=o,fo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,po.current=null===e||null===e.memoizedState?aa:la,e=n(i,r),bo){o=0;do{if(bo=!1,wo=0,25<=o)throw Error(s(301));o+=1,vo=go=null,t.updateQueue=null,po.current=ca,e=n(i,r)}while(bo)}if(po.current=oa,t=null!==go&&null!==go.next,mo=0,vo=go=fo=null,yo=!1,t)throw Error(s(300));return e}function Co(){var e=0!==wo;return wo=0,e}function No(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vo?fo.memoizedState=vo=e:vo=vo.next=e,vo}function ko(){if(null===go){var e=fo.alternate;e=null!==e?e.memoizedState:null}else e=go.next;var t=null===vo?fo.memoizedState:vo.next;if(null!==t)vo=t,go=e;else{if(null===e)throw Error(s(310));e={memoizedState:(go=e).memoizedState,baseState:go.baseState,baseQueue:go.baseQueue,queue:go.queue,next:null},null===vo?fo.memoizedState=vo=e:vo=vo.next=e}return vo}function To(e,t){return"function"==typeof t?t(e):t}function Lo(e){var t=ko(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var i=go,r=i.baseQueue,o=n.pending;if(null!==o){if(null!==r){var a=r.next;r.next=o.next,o.next=a}i.baseQueue=r=o,n.pending=null}if(null!==r){o=r.next,i=i.baseState;var l=a=null,c=null,u=o;do{var d=u.lane;if((mo&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,a=i):c=c.next=p,fo.lanes|=d,Rl|=d}u=u.next}while(null!==u&&u!==o);null===c?a=i:c.next=l,ai(i,t.memoizedState)||(ba=!0),t.memoizedState=i,t.baseState=a,t.baseQueue=c,n.lastRenderedState=i}if(null!==(e=n.interleaved)){r=e;do{o=r.lane,fo.lanes|=o,Rl|=o,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Po(e){var t=ko(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(null!==r){n.pending=null;var a=r=r.next;do{o=e(o,a.action),a=a.next}while(a!==r);ai(o,t.memoizedState)||(ba=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Ao(){}function Io(e,t){var n=fo,i=ko(),r=t(),o=!ai(i.memoizedState,r);if(o&&(i.memoizedState=r,ba=!0),i=i.queue,Wo(Oo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||null!==vo&&1&vo.memoizedState.tag){if(n.flags|=2048,Fo(9,Do.bind(null,n,i,r,t),void 0,null),null===Ll)throw Error(s(349));0!=(30&mo)||zo(n,t,r)}return r}function zo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=fo.updateQueue)?(t={lastEffect:null,stores:null},fo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Do(e,t,n,i){t.value=n,t.getSnapshot=i,Ro(t)&&qo(e)}function Oo(e,t,n){return n((function(){Ro(t)&&qo(e)}))}function Ro(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ai(e,n)}catch(e){return!0}}function qo(e){var t=Ls(e,1);null!==t&&nc(t,e,1,-1)}function Bo(e){var t=No();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:To,lastRenderedState:e},t.queue=e,e=e.dispatch=na.bind(null,fo,e),[t.memoizedState,e]}function Fo(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=fo.updateQueue)?(t={lastEffect:null,stores:null},fo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Mo(){return ko().memoizedState}function jo(e,t,n,i){var r=No();fo.flags|=e,r.memoizedState=Fo(1|t,n,void 0,void 0===i?null:i)}function Ho(e,t,n,i){var r=ko();i=void 0===i?null:i;var s=void 0;if(null!==go){var o=go.memoizedState;if(s=o.destroy,null!==i&&xo(i,o.deps))return void(r.memoizedState=Fo(t,n,s,i))}fo.flags|=e,r.memoizedState=Fo(1|t,n,s,i)}function $o(e,t){return jo(8390656,8,e,t)}function Wo(e,t){return Ho(2048,8,e,t)}function Uo(e,t){return Ho(4,2,e,t)}function Vo(e,t){return Ho(4,4,e,t)}function Zo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Go(e,t,n){return n=null!=n?n.concat([e]):null,Ho(4,4,Zo.bind(null,t,e),n)}function Qo(){}function Xo(e,t){var n=ko();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&xo(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Yo(e,t){var n=ko();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&xo(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Ko(e,t,n){return 0==(21&mo)?(e.baseState&&(e.baseState=!1,ba=!0),e.memoizedState=n):(ai(n,t)||(n=ft(),fo.lanes|=n,Rl|=n,e.baseState=!0),t)}function Jo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var i=ho.transition;ho.transition={};try{e(!1),t()}finally{bt=n,ho.transition=i}}function ea(){return ko().memoizedState}function ta(e,t,n){var i=tc(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},ia(e))ra(t,n);else if(null!==(n=Ts(e,t,n,i))){nc(n,e,i,ec()),sa(n,t,i)}}function na(e,t,n){var i=tc(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(ia(e))ra(t,r);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var o=t.lastRenderedState,a=s(o,n);if(r.hasEagerState=!0,r.eagerState=a,ai(a,o)){var l=t.interleaved;return null===l?(r.next=r,ks(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(e){}null!==(n=Ts(e,t,r,i))&&(nc(n,e,i,r=ec()),sa(n,t,i))}}function ia(e){var t=e.alternate;return e===fo||null!==t&&t===fo}function ra(e,t){bo=yo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sa(e,t,n){if(0!=(4194240&n)){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,yt(e,n)}}var oa={readContext:Cs,useCallback:Eo,useContext:Eo,useEffect:Eo,useImperativeHandle:Eo,useInsertionEffect:Eo,useLayoutEffect:Eo,useMemo:Eo,useReducer:Eo,useRef:Eo,useState:Eo,useDebugValue:Eo,useDeferredValue:Eo,useTransition:Eo,useMutableSource:Eo,useSyncExternalStore:Eo,useId:Eo,unstable_isNewReconciler:!1},aa={readContext:Cs,useCallback:function(e,t){return No().memoizedState=[e,void 0===t?null:t],e},useContext:Cs,useEffect:$o,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,jo(4194308,4,Zo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jo(4194308,4,e,t)},useInsertionEffect:function(e,t){return jo(4,2,e,t)},useMemo:function(e,t){var n=No();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=No();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=ta.bind(null,fo,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},No().memoizedState=e},useState:Bo,useDebugValue:Qo,useDeferredValue:function(e){return No().memoizedState=e},useTransition:function(){var e=Bo(!1),t=e[0];return e=Jo.bind(null,e[1]),No().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=fo,r=No();if(rs){if(void 0===n)throw Error(s(407));n=n()}else{if(n=t(),null===Ll)throw Error(s(349));0!=(30&mo)||zo(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,$o(Oo.bind(null,i,o,e),[e]),i.flags|=2048,Fo(9,Do.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=No(),t=Ll.identifierPrefix;if(rs){var n=Yr;t=":"+t+"R"+(n=(Xr&~(1<<32-ot(Xr)-1)).toString(32)+n),0<(n=wo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_o++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},la={readContext:Cs,useCallback:Xo,useContext:Cs,useEffect:Wo,useImperativeHandle:Go,useInsertionEffect:Uo,useLayoutEffect:Vo,useMemo:Yo,useReducer:Lo,useRef:Mo,useState:function(){return Lo(To)},useDebugValue:Qo,useDeferredValue:function(e){return Ko(ko(),go.memoizedState,e)},useTransition:function(){return[Lo(To)[0],ko().memoizedState]},useMutableSource:Ao,useSyncExternalStore:Io,useId:ea,unstable_isNewReconciler:!1},ca={readContext:Cs,useCallback:Xo,useContext:Cs,useEffect:Wo,useImperativeHandle:Go,useInsertionEffect:Uo,useLayoutEffect:Vo,useMemo:Yo,useReducer:Po,useRef:Mo,useState:function(){return Po(To)},useDebugValue:Qo,useDeferredValue:function(e){var t=ko();return null===go?t.memoizedState=e:Ko(t,go.memoizedState,e)},useTransition:function(){return[Po(To)[0],ko().memoizedState]},useMutableSource:Ao,useSyncExternalStore:Io,useId:ea,unstable_isNewReconciler:!1};function ua(e,t){try{var n="",i=t;do{n+=j(i),i=i.return}while(i);var r=n}catch(e){r="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:r,digest:null}}function da(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}var pa="function"==typeof WeakMap?WeakMap:Map;function ha(e,t,n){(n=zs(-1,n)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){Wl||(Wl=!0,Ul=i)},n}function ma(e,t,n){(n=zs(-1,n)).tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){}}var s=e.stateNode;return null!==s&&"function"==typeof s.componentDidCatch&&(n.callback=function(){"function"!=typeof i&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function fa(e,t,n){var i=e.pingCache;if(null===i){i=e.pingCache=new pa;var r=new Set;i.set(t,r)}else void 0===(r=i.get(t))&&(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function ga(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function va(e,t,n,i,r){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zs(-1,1)).tag=2,Ds(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var ya=w.ReactCurrentOwner,ba=!1;function wa(e,t,n,i){t.child=null===e?Ys(t,null,n,i):Xs(t,e.child,n,i)}function _a(e,t,n,i,r){n=n.render;var s=t.ref;return Ss(t,r),i=So(e,t,n,i,s,r),n=Co(),null===e||ba?(rs&&n&&es(t),t.flags|=1,wa(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Wa(e,t,r))}function Ea(e,t,n,i,r){if(null===e){var s=n.type;return"function"!=typeof s||Ic(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,i,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,xa(e,t,s,i,r))}if(s=e.child,0==(e.lanes&r)){var o=s.memoizedProps;if((n=null!==(n=n.compare)?n:li)(o,i)&&e.ref===t.ref)return Wa(e,t,r)}return t.flags|=1,(e=zc(s,i)).ref=t.ref,e.return=t,t.child=e}function xa(e,t,n,i,r){if(null!==e){var s=e.memoizedProps;if(li(s,i)&&e.ref===t.ref){if(ba=!1,t.pendingProps=i=s,0==(e.lanes&r))return t.lanes=e.lanes,Wa(e,t,r);0!=(131072&e.flags)&&(ba=!0)}}return Na(e,t,n,i,r)}function Sa(e,t,n){var i=t.pendingProps,r=i.children,s=null!==e?e.memoizedState:null;if("hidden"===i.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Nr(zl,Il),Il|=n;else{if(0==(1073741824&n))return e=null!==s?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Nr(zl,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==s?s.baseLanes:n,Nr(zl,Il),Il|=i}else null!==s?(i=s.baseLanes|n,t.memoizedState=null):i=n,Nr(zl,Il),Il|=i;return wa(e,t,r,n),t.child}function Ca(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Na(e,t,n,i,r){var s=Ir(n)?Pr:Tr.current;return s=Ar(t,s),Ss(t,r),n=So(e,t,n,i,s,r),i=Co(),null===e||ba?(rs&&i&&es(t),t.flags|=1,wa(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Wa(e,t,r))}function ka(e,t,n,i,r){if(Ir(n)){var s=!0;Rr(t)}else s=!1;if(Ss(t,r),null===t.stateNode)$a(e,t),$s(t,n,i),Us(t,n,i,r),i=!0;else if(null===e){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;"object"==typeof c&&null!==c?c=Cs(c):c=Ar(t,c=Ir(n)?Pr:Tr.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==i||l!==c)&&Ws(t,o,i,c),Ps=!1;var p=t.memoizedState;o.state=p,qs(t,i,o,r),l=t.memoizedState,a!==i||p!==l||Lr.current||Ps?("function"==typeof u&&(Ms(t,n,u,i),l=t.memoizedState),(a=Ps||Hs(t,n,a,i,p,l,c))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),o.props=i,o.state=l,o.context=c,i=a):("function"==typeof o.componentDidMount&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,Is(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:gs(t.type,a),o.props=c,d=t.pendingProps,p=o.context,"object"==typeof(l=n.contextType)&&null!==l?l=Cs(l):l=Ar(t,l=Ir(n)?Pr:Tr.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==d||p!==l)&&Ws(t,o,i,l),Ps=!1,p=t.memoizedState,o.state=p,qs(t,i,o,r);var m=t.memoizedState;a!==d||p!==m||Lr.current||Ps?("function"==typeof h&&(Ms(t,n,h,i),m=t.memoizedState),(c=Ps||Hs(t,n,c,i,p,m,l)||!1)?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(i,m,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(i,m,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=m),o.props=i,o.state=m,o.context=l,i=c):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),i=!1)}return Ta(e,t,n,i,s,r)}function Ta(e,t,n,i,r,s){Ca(e,t);var o=0!=(128&t.flags);if(!i&&!o)return r&&qr(t,n,!1),Wa(e,t,s);i=t.stateNode,ya.current=t;var a=o&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.flags|=1,null!==e&&o?(t.child=Xs(t,e.child,null,s),t.child=Xs(t,null,a,s)):wa(e,t,a,s),t.memoizedState=i.state,r&&qr(t,n,!0),t.child}function La(e){var t=e.stateNode;t.pendingContext?Dr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Dr(0,t.context,!1),io(e,t.containerInfo)}function Pa(e,t,n,i,r){return hs(),ms(r),t.flags|=256,wa(e,t,n,i),t.child}var Aa,Ia,za,Da,Oa={dehydrated:null,treeContext:null,retryLane:0};function Ra(e){return{baseLanes:e,cachePool:null,transitions:null}}function qa(e,t,n){var i,r=t.pendingProps,o=ao.current,a=!1,l=0!=(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&0!=(2&o)),i?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Nr(ao,1&o),null===e)return cs(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,a?(r=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&r)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Rc(l,r,0,null),e=Oc(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ra(n),t.memoizedState=Oa,e):Ba(t,l));if(null!==(o=e.memoizedState)&&null!==(i=o.dehydrated))return function(e,t,n,i,r,o,a){if(n)return 256&t.flags?(t.flags&=-257,Fa(e,t,a,i=da(Error(s(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=i.fallback,r=t.mode,i=Rc({mode:"visible",children:i.children},r,0,null),(o=Oc(o,r,a,null)).flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,0!=(1&t.mode)&&Xs(t,e.child,null,a),t.child.memoizedState=Ra(a),t.memoizedState=Oa,o);if(0==(1&t.mode))return Fa(e,t,a,null);if("$!"===r.data){if(i=r.nextSibling&&r.nextSibling.dataset)var l=i.dgst;return i=l,Fa(e,t,a,i=da(o=Error(s(419)),i,void 0))}if(l=0!=(a&e.childLanes),ba||l){if(null!==(i=Ll)){switch(a&-a){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!=(r&(i.suspendedLanes|a))?0:r)&&r!==o.retryLane&&(o.retryLane=r,Ls(e,r),nc(i,e,r,-1))}return fc(),Fa(e,t,a,i=da(Error(s(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=kc.bind(null,e),r._reactRetry=t,null):(e=o.treeContext,is=cr(r.nextSibling),ns=t,rs=!0,ss=null,null!==e&&(Zr[Gr++]=Xr,Zr[Gr++]=Yr,Zr[Gr++]=Qr,Xr=e.id,Yr=e.overflow,Qr=t),t=Ba(t,i.children),t.flags|=4096,t)}(e,t,l,r,i,o,n);if(a){a=r.fallback,l=t.mode,i=(o=e.child).sibling;var c={mode:"hidden",children:r.children};return 0==(1&l)&&t.child!==o?((r=t.child).childLanes=0,r.pendingProps=c,t.deletions=null):(r=zc(o,c)).subtreeFlags=14680064&o.subtreeFlags,null!==i?a=zc(i,a):(a=Oc(a,l,n,null)).flags|=2,a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,l=null===(l=e.child.memoizedState)?Ra(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Oa,r}return e=(a=e.child).sibling,r=zc(a,{mode:"visible",children:r.children}),0==(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ba(e,t){return(t=Rc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fa(e,t,n,i){return null!==i&&ms(i),Xs(t,e.child,null,n),(e=Ba(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ma(e,t,n){e.lanes|=t;var i=e.alternate;null!==i&&(i.lanes|=t),xs(e.return,t,n)}function ja(e,t,n,i,r){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=i,s.tail=n,s.tailMode=r)}function Ha(e,t,n){var i=t.pendingProps,r=i.revealOrder,s=i.tail;if(wa(e,t,i.children,n),0!=(2&(i=ao.current)))i=1&i|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ma(e,n,t);else if(19===e.tag)Ma(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(Nr(ao,i),0==(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===lo(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ja(t,!1,r,n,s);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===lo(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ja(t,!0,n,null,s);break;case"together":ja(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $a(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=zc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ua(e,t){if(!rs)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Va(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=14680064&r.subtreeFlags,i|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Za(e,t,n){var i=t.pendingProps;switch(ts(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Va(t),null;case 1:case 17:return Ir(t.type)&&zr(),Va(t),null;case 3:return i=t.stateNode,ro(),Cr(Lr),Cr(Tr),uo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(ds(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ss&&(oc(ss),ss=null))),Ia(e,t),Va(t),null;case 5:oo(t);var r=no(to.current);if(n=t.type,null!==e&&null!=t.stateNode)za(e,t,n,i,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(s(166));return Va(t),null}if(e=no(Js.current),ds(t)){i=t.stateNode,n=t.type;var o=t.memoizedProps;switch(i[pr]=t,i[hr]=o,e=0!=(1&t.mode),n){case"dialog":Fi("cancel",i),Fi("close",i);break;case"iframe":case"object":case"embed":Fi("load",i);break;case"video":case"audio":for(r=0;r<Oi.length;r++)Fi(Oi[r],i);break;case"source":Fi("error",i);break;case"img":case"image":case"link":Fi("error",i),Fi("load",i);break;case"details":Fi("toggle",i);break;case"input":X(i,o),Fi("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!o.multiple},Fi("invalid",i);break;case"textarea":re(i,o),Fi("invalid",i)}for(var l in ye(n,o),r=null,o)if(o.hasOwnProperty(l)){var c=o[l];"children"===l?"string"==typeof c?i.textContent!==c&&(!0!==o.suppressHydrationWarning&&Ki(i.textContent,c,e),r=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(!0!==o.suppressHydrationWarning&&Ki(i.textContent,c,e),r=["children",""+c]):a.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fi("scroll",i)}switch(n){case"input":V(i),J(i,o,!0);break;case"textarea":V(i),oe(i);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(i.onclick=Ji)}i=r,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(n,{is:i.is}):(e=l.createElement(n),"select"===n&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,n),e[pr]=t,e[hr]=i,Aa(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,i),n){case"dialog":Fi("cancel",e),Fi("close",e),r=i;break;case"iframe":case"object":case"embed":Fi("load",e),r=i;break;case"video":case"audio":for(r=0;r<Oi.length;r++)Fi(Oi[r],e);r=i;break;case"source":Fi("error",e),r=i;break;case"img":case"image":case"link":Fi("error",e),Fi("load",e),r=i;break;case"details":Fi("toggle",e),r=i;break;case"input":X(e,i),r=Q(e,i),Fi("invalid",e);break;case"option":default:r=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},r=q({},i,{value:void 0}),Fi("invalid",e);break;case"textarea":re(e,i),r=ie(e,i),Fi("invalid",e)}for(o in ye(n,r),c=r)if(c.hasOwnProperty(o)){var u=c[o];"style"===o?ge(e,u):"dangerouslySetInnerHTML"===o?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===o?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(a.hasOwnProperty(o)?null!=u&&"onScroll"===o&&Fi("scroll",e):null!=u&&b(e,o,u,l))}switch(n){case"input":V(e),J(e,i,!1);break;case"textarea":V(e),oe(e);break;case"option":null!=i.value&&e.setAttribute("value",""+W(i.value));break;case"select":e.multiple=!!i.multiple,null!=(o=i.value)?ne(e,!!i.multiple,o,!1):null!=i.defaultValue&&ne(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof r.onClick&&(e.onclick=Ji)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Va(t),null;case 6:if(e&&null!=t.stateNode)Da(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(s(166));if(n=no(to.current),no(Js.current),ds(t)){if(i=t.stateNode,n=t.memoizedProps,i[pr]=t,(o=i.nodeValue!==n)&&null!==(e=ns))switch(e.tag){case 3:Ki(i.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ki(i.nodeValue,n,0!=(1&e.mode))}o&&(t.flags|=4)}else(i=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[pr]=t,t.stateNode=i}return Va(t),null;case 13:if(Cr(ao),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(rs&&null!==is&&0!=(1&t.mode)&&0==(128&t.flags))ps(),hs(),t.flags|=98560,o=!1;else if(o=ds(t),null!==i&&null!==i.dehydrated){if(null===e){if(!o)throw Error(s(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(s(317));o[pr]=t}else hs(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Va(t),o=!1}else null!==ss&&(oc(ss),ss=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ao.current)?0===Dl&&(Dl=3):fc())),null!==t.updateQueue&&(t.flags|=4),Va(t),null);case 4:return ro(),Ia(e,t),null===e&&Hi(t.stateNode.containerInfo),Va(t),null;case 10:return Es(t.type._context),Va(t),null;case 19:if(Cr(ao),null===(o=t.memoizedState))return Va(t),null;if(i=0!=(128&t.flags),null===(l=o.rendering))if(i)Ua(o,!1);else{if(0!==Dl||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=lo(e))){for(t.flags|=128,Ua(o,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;null!==n;)e=i,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Nr(ao,1&ao.current|2),t.child}e=e.sibling}null!==o.tail&&Ye()>Hl&&(t.flags|=128,i=!0,Ua(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=lo(l))){if(t.flags|=128,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ua(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!rs)return Va(t),null}else 2*Ye()-o.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,i=!0,Ua(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ye(),t.sibling=null,n=ao.current,Nr(ao,i?1&n|2:1&n),t):(Va(t),null);case 22:case 23:return dc(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&0!=(1&t.mode)?0!=(1073741824&Il)&&(Va(t),6&t.subtreeFlags&&(t.flags|=8192)):Va(t),null;case 24:case 25:return null}throw Error(s(156,t.tag))}function Ga(e,t){switch(ts(t),t.tag){case 1:return Ir(t.type)&&zr(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ro(),Cr(Lr),Cr(Tr),uo(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(Cr(ao),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));hs()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Cr(ao),null;case 4:return ro(),null;case 10:return Es(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Aa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ia=function(){},za=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,no(Js.current);var s,o=null;switch(n){case"input":r=Q(e,r),i=Q(e,i),o=[];break;case"select":r=q({},r,{value:void 0}),i=q({},i,{value:void 0}),o=[];break;case"textarea":r=ie(e,r),i=ie(e,i),o=[];break;default:"function"!=typeof r.onClick&&"function"==typeof i.onClick&&(e.onclick=Ji)}for(u in ye(n,i),n=null,r)if(!i.hasOwnProperty(u)&&r.hasOwnProperty(u)&&null!=r[u])if("style"===u){var l=r[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in i){var c=i[u];if(l=null!=r?r[u]:void 0,i.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(o||(o=[]),o.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(o=o||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(o=o||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fi("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},Da=function(e,t,n,i){n!==i&&(t.flags|=4)};var Qa=!1,Xa=!1,Ya="function"==typeof WeakSet?WeakSet:Set,Ka=null;function Ja(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Sc(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Sc(e,t,n)}}var tl=!1;function nl(e,t,n){var i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var r=i=i.next;do{if((r.tag&e)===e){var s=r.destroy;r.destroy=void 0,void 0!==s&&el(t,n,s)}r=r.next}while(r!==i)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pr],delete t[hr],delete t[fr],delete t[gr],delete t[vr])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Ji));else if(4!==i&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==i&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(st&&"function"==typeof st.onCommitFiberUnmount)try{st.onCommitFiberUnmount(rt,n)}catch(e){}switch(n.tag){case 5:Xa||Ja(n,t);case 6:var i=ul,r=dl;ul=null,pl(e,t,n),dl=r,null!==(ul=i)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lr(e.parentNode,n):1===e.nodeType&&lr(e,n),Ht(e)):lr(ul,n.stateNode));break;case 4:i=ul,r=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=i,dl=r;break;case 0:case 11:case 14:case 15:if(!Xa&&(null!==(i=n.updateQueue)&&null!==(i=i.lastEffect))){r=i=i.next;do{var s=r,o=s.destroy;s=s.tag,void 0!==o&&(0!=(2&s)||0!=(4&s))&&el(n,t,o),r=r.next}while(r!==i)}pl(e,t,n);break;case 1:if(!Xa&&(Ja(n,t),"function"==typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(e){Sc(n,t,e)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Xa=(i=Xa)||null!==n.memoizedState,pl(e,t,n),Xa=i):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ya),t.forEach((function(t){var i=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))}))}}function fl(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var r=n[i];try{var o=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(s(160));hl(o,a,r),ul=null,dl=!1;var c=r.alternate;null!==c&&(c.return=null),r.return=null}catch(e){Sc(r,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fl(t,e),vl(e),4&i){try{nl(3,e,e.return),il(3,e)}catch(t){Sc(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Sc(e,e.return,t)}}break;case 1:fl(t,e),vl(e),512&i&&null!==n&&Ja(n,n.return);break;case 5:if(fl(t,e),vl(e),512&i&&null!==n&&Ja(n,n.return),32&e.flags){var r=e.stateNode;try{pe(r,"")}catch(t){Sc(e,e.return,t)}}if(4&i&&null!=(r=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===o.type&&null!=o.name&&Y(r,o),be(l,a);var u=be(l,o);for(a=0;a<c.length;a+=2){var d=c[a],p=c[a+1];"style"===d?ge(r,p):"dangerouslySetInnerHTML"===d?de(r,p):"children"===d?pe(r,p):b(r,d,p,u)}switch(l){case"input":K(r,o);break;case"textarea":se(r,o);break;case"select":var h=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var m=o.value;null!=m?ne(r,!!o.multiple,m,!1):h!==!!o.multiple&&(null!=o.defaultValue?ne(r,!!o.multiple,o.defaultValue,!0):ne(r,!!o.multiple,o.multiple?[]:"",!1))}r[hr]=o}catch(t){Sc(e,e.return,t)}}break;case 6:if(fl(t,e),vl(e),4&i){if(null===e.stateNode)throw Error(s(162));r=e.stateNode,o=e.memoizedProps;try{r.nodeValue=o}catch(t){Sc(e,e.return,t)}}break;case 3:if(fl(t,e),vl(e),4&i&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Sc(e,e.return,t)}break;case 4:default:fl(t,e),vl(e);break;case 13:fl(t,e),vl(e),8192&(r=e.child).flags&&(o=null!==r.memoizedState,r.stateNode.isHidden=o,!o||null!==r.alternate&&null!==r.alternate.memoizedState||(jl=Ye())),4&i&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xa=(u=Xa)||d,fl(t,e),Xa=u):fl(t,e),vl(e),8192&i){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Ka=e,d=e.child;null!==d;){for(p=Ka=d;null!==Ka;){switch(m=(h=Ka).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Ja(h,h.return);var f=h.stateNode;if("function"==typeof f.componentWillUnmount){i=h,n=h.return;try{t=i,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(e){Sc(i,n,e)}}break;case 5:Ja(h,h.return);break;case 22:if(null!==h.memoizedState){_l(p);continue}}null!==m?(m.return=h,Ka=m):_l(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{r=p.stateNode,u?"function"==typeof(o=r.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=p.stateNode,a=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=fe("display",a))}catch(t){Sc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Sc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:fl(t,e),vl(e),4&i&&ml(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var i=n;break e}n=n.return}throw Error(s(160))}switch(i.tag){case 5:var r=i.stateNode;32&i.flags&&(pe(r,""),i.flags&=-33),cl(e,al(e),r);break;case 3:case 4:var o=i.stateNode.containerInfo;ll(e,al(e),o);break;default:throw Error(s(161))}}catch(t){Sc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Ka=e,bl(e,t,n)}function bl(e,t,n){for(var i=0!=(1&e.mode);null!==Ka;){var r=Ka,s=r.child;if(22===r.tag&&i){var o=null!==r.memoizedState||Qa;if(!o){var a=r.alternate,l=null!==a&&null!==a.memoizedState||Xa;a=Qa;var c=Xa;if(Qa=o,(Xa=l)&&!c)for(Ka=r;null!==Ka;)l=(o=Ka).child,22===o.tag&&null!==o.memoizedState?El(r):null!==l?(l.return=o,Ka=l):El(r);for(;null!==s;)Ka=s,bl(s,t,n),s=s.sibling;Ka=r,Qa=a,Xa=c}wl(e)}else 0!=(8772&r.subtreeFlags)&&null!==s?(s.return=r,Ka=s):wl(e)}}function wl(e){for(;null!==Ka;){var t=Ka;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xa||il(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!Xa)if(null===n)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:gs(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Bs(t,o,i);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bs(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ht(p)}}}break;default:throw Error(s(163))}Xa||512&t.flags&&rl(t)}catch(e){Sc(t,t.return,e)}}if(t===e){Ka=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ka=n;break}Ka=t.return}}function _l(e){for(;null!==Ka;){var t=Ka;if(t===e){Ka=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ka=n;break}Ka=t.return}}function El(e){for(;null!==Ka;){var t=Ka;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(e){Sc(t,n,e)}break;case 1:var i=t.stateNode;if("function"==typeof i.componentDidMount){var r=t.return;try{i.componentDidMount()}catch(e){Sc(t,r,e)}}var s=t.return;try{rl(t)}catch(e){Sc(t,s,e)}break;case 5:var o=t.return;try{rl(t)}catch(e){Sc(t,o,e)}}}catch(e){Sc(t,t.return,e)}if(t===e){Ka=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Ka=a;break}Ka=t.return}}var xl,Sl=Math.ceil,Cl=w.ReactCurrentDispatcher,Nl=w.ReactCurrentOwner,kl=w.ReactCurrentBatchConfig,Tl=0,Ll=null,Pl=null,Al=0,Il=0,zl=Sr(0),Dl=0,Ol=null,Rl=0,ql=0,Bl=0,Fl=null,Ml=null,jl=0,Hl=1/0,$l=null,Wl=!1,Ul=null,Vl=null,Zl=!1,Gl=null,Ql=0,Xl=0,Yl=null,Kl=-1,Jl=0;function ec(){return 0!=(6&Tl)?Ye():-1!==Kl?Kl:Kl=Ye()}function tc(e){return 0==(1&e.mode)?1:0!=(2&Tl)&&0!==Al?Al&-Al:null!==fs.transition?(0===Jl&&(Jl=ft()),Jl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function nc(e,t,n,i){if(50<Xl)throw Xl=0,Yl=null,Error(s(185));vt(e,n,i),0!=(2&Tl)&&e===Ll||(e===Ll&&(0==(2&Tl)&&(ql|=n),4===Dl&&ac(e,Al)),ic(e,i),1===n&&0===Tl&&0==(1&t.mode)&&(Hl=Ye()+500,Fr&&Hr()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-ot(s),a=1<<o,l=r[o];-1===l?0!=(a&n)&&0==(a&i)||(r[o]=ht(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}(e,t);var i=pt(e,e===Ll?Al:0);if(0===i)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Fr=!0,jr(e)}(lc.bind(null,e)):jr(lc.bind(null,e)),or((function(){0==(6&Tl)&&Hr()})),n=null;else{switch(wt(i)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=it}n=Lc(n,rc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rc(e,t){if(Kl=-1,Jl=0,0!=(6&Tl))throw Error(s(327));var n=e.callbackNode;if(Ec()&&e.callbackNode!==n)return null;var i=pt(e,e===Ll?Al:0);if(0===i)return null;if(0!=(30&i)||0!=(i&e.expiredLanes)||t)t=gc(e,i);else{t=i;var r=Tl;Tl|=2;var o=mc();for(Ll===e&&Al===t||($l=null,Hl=Ye()+500,pc(e,t));;)try{yc();break}catch(t){hc(e,t)}_s(),Cl.current=o,Tl=r,null!==Pl?t=0:(Ll=null,Al=0,t=Dl)}if(0!==t){if(2===t&&(0!==(r=mt(e))&&(i=r,t=sc(e,r))),1===t)throw n=Ol,pc(e,0),ac(e,i),ic(e,Ye()),n;if(6===t)ac(e,i);else{if(r=e.current.alternate,0==(30&i)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var r=n[i],s=r.getSnapshot;r=r.value;try{if(!ai(s(),r))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)&&(2===(t=gc(e,i))&&(0!==(o=mt(e))&&(i=o,t=sc(e,o))),1===t))throw n=Ol,pc(e,0),ac(e,i),ic(e,Ye()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(s(345));case 2:case 5:_c(e,Ml,$l);break;case 3:if(ac(e,i),(130023424&i)===i&&10<(t=jl+500-Ye())){if(0!==pt(e,0))break;if(((r=e.suspendedLanes)&i)!==i){ec(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=ir(_c.bind(null,e,Ml,$l),t);break}_c(e,Ml,$l);break;case 4:if(ac(e,i),(4194240&i)===i)break;for(t=e.eventTimes,r=-1;0<i;){var a=31-ot(i);o=1<<a,(a=t[a])>r&&(r=a),i&=~o}if(i=r,10<(i=(120>(i=Ye()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Sl(i/1960))-i)){e.timeoutHandle=ir(_c.bind(null,e,Ml,$l),i);break}_c(e,Ml,$l);break;default:throw Error(s(329))}}}return ic(e,Ye()),e.callbackNode===n?rc.bind(null,e):null}function sc(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Ml,Ml=n,null!==t&&oc(t)),e}function oc(e){null===Ml?Ml=e:Ml.push.apply(Ml,e)}function ac(e,t){for(t&=~Bl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),i=1<<n;e[n]=-1,t&=~i}}function lc(e){if(0!=(6&Tl))throw Error(s(327));Ec();var t=pt(e,0);if(0==(1&t))return ic(e,Ye()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var i=mt(e);0!==i&&(t=i,n=sc(e,i))}if(1===n)throw n=Ol,pc(e,0),ac(e,t),ic(e,Ye()),n;if(6===n)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_c(e,Ml,$l),ic(e,Ye()),null}function cc(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Hl=Ye()+500,Fr&&Hr())}}function uc(e){null!==Gl&&0===Gl.tag&&0==(6&Tl)&&Ec();var t=Tl;Tl|=1;var n=kl.transition,i=bt;try{if(kl.transition=null,bt=1,e)return e()}finally{bt=i,kl.transition=n,0==(6&(Tl=t))&&Hr()}}function dc(){Il=zl.current,Cr(zl)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rr(n)),null!==Pl)for(n=Pl.return;null!==n;){var i=n;switch(ts(i),i.tag){case 1:null!=(i=i.type.childContextTypes)&&zr();break;case 3:ro(),Cr(Lr),Cr(Tr),uo();break;case 5:oo(i);break;case 4:ro();break;case 13:case 19:Cr(ao);break;case 10:Es(i.type._context);break;case 22:case 23:dc()}n=n.return}if(Ll=e,Pl=e=zc(e.current,null),Al=Il=t,Dl=0,Ol=null,Bl=ql=Rl=0,Ml=Fl=null,null!==Ns){for(t=0;t<Ns.length;t++)if(null!==(i=(n=Ns[t]).interleaved)){n.interleaved=null;var r=i.next,s=n.pending;if(null!==s){var o=s.next;s.next=r,i.next=o}n.pending=i}Ns=null}return e}function hc(e,t){for(;;){var n=Pl;try{if(_s(),po.current=oa,yo){for(var i=fo.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}yo=!1}if(mo=0,vo=go=fo=null,bo=!1,wo=0,Nl.current=null,null===n||null===n.return){Dl=1,Ol=t,Pl=null;break}e:{var o=e,a=n.return,l=n,c=t;if(t=Al,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=ga(a);if(null!==m){m.flags&=-257,va(m,a,l,0,t),1&m.mode&&fa(o,u,t),c=u;var f=(t=m).updateQueue;if(null===f){var g=new Set;g.add(c),t.updateQueue=g}else f.add(c);break e}if(0==(1&t)){fa(o,u,t),fc();break e}c=Error(s(426))}else if(rs&&1&l.mode){var v=ga(a);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),va(v,a,l,0,t),ms(ua(c,l));break e}}o=c=ua(c,l),4!==Dl&&(Dl=2),null===Fl?Fl=[o]:Fl.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Rs(o,ha(0,c,t));break e;case 1:l=c;var y=o.type,b=o.stateNode;if(0==(128&o.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Vl||!Vl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Rs(o,ma(o,l,t));break e}}o=o.return}while(null!==o)}wc(n)}catch(e){t=e,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function mc(){var e=Cl.current;return Cl.current=oa,null===e?oa:e}function fc(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===Ll||0==(268435455&Rl)&&0==(268435455&ql)||ac(Ll,Al)}function gc(e,t){var n=Tl;Tl|=2;var i=mc();for(Ll===e&&Al===t||($l=null,pc(e,t));;)try{vc();break}catch(t){hc(e,t)}if(_s(),Tl=n,Cl.current=i,null!==Pl)throw Error(s(261));return Ll=null,Al=0,Dl}function vc(){for(;null!==Pl;)bc(Pl)}function yc(){for(;null!==Pl&&!Qe();)bc(Pl)}function bc(e){var t=xl(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?wc(e):Pl=t,Nl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Za(n,t,Il)))return void(Pl=n)}else{if(null!==(n=Ga(n,t)))return n.flags&=32767,void(Pl=n);if(null===e)return Dl=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Dl&&(Dl=5)}function _c(e,t,n){var i=bt,r=kl.transition;try{kl.transition=null,bt=1,function(e,t,n,i){do{Ec()}while(null!==Gl);if(0!=(6&Tl))throw Error(s(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-ot(n),s=1<<r;t[r]=0,i[r]=-1,e[r]=-1,n&=~s}}(e,o),e===Ll&&(Pl=Ll=null,Al=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Zl||(Zl=!0,Lc(tt,(function(){return Ec(),null}))),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=kl.transition,kl.transition=null;var a=bt;bt=1;var l=Tl;Tl|=4,Nl.current=null,function(e,t){if(er=Wt,hi(e=pi())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var m;p!==n||0!==r&&3!==p.nodeType||(l=a+r),p!==o||0!==i&&3!==p.nodeType||(c=a+i),3===p.nodeType&&(a+=p.nodeValue.length),null!==(m=p.firstChild);)h=p,p=m;for(;;){if(p===e)break t;if(h===n&&++u===r&&(l=a),h===o&&++d===i&&(c=a),null!==(m=p.nextSibling))break;h=(p=h).parentNode}p=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(tr={focusedElem:e,selectionRange:n},Wt=!1,Ka=t;null!==Ka;)if(e=(t=Ka).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ka=e;else for(;null!==Ka;){t=Ka;try{var f=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==f){var g=f.memoizedProps,v=f.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:gs(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(s(163))}}catch(e){Sc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ka=e;break}Ka=t.return}f=tl,tl=!1}(e,n),gl(n,e),mi(tr),Wt=!!er,tr=er=null,e.current=n,yl(n,e,r),Xe(),Tl=l,bt=a,kl.transition=o}else e.current=n;if(Zl&&(Zl=!1,Gl=e,Ql=r),o=e.pendingLanes,0===o&&(Vl=null),function(e){if(st&&"function"==typeof st.onCommitFiberRoot)try{st.onCommitFiberRoot(rt,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),ic(e,Ye()),null!==t)for(i=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(Wl)throw Wl=!1,e=Ul,Ul=null,e;0!=(1&Ql)&&0!==e.tag&&Ec(),o=e.pendingLanes,0!=(1&o)?e===Yl?Xl++:(Xl=0,Yl=e):Xl=0,Hr()}(e,t,n,i)}finally{kl.transition=r,bt=i}return null}function Ec(){if(null!==Gl){var e=wt(Ql),t=kl.transition,n=bt;try{if(kl.transition=null,bt=16>e?16:e,null===Gl)var i=!1;else{if(e=Gl,Gl=null,Ql=0,0!=(6&Tl))throw Error(s(331));var r=Tl;for(Tl|=4,Ka=e.current;null!==Ka;){var o=Ka,a=o.child;if(0!=(16&Ka.flags)){var l=o.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Ka=u;null!==Ka;){var d=Ka;switch(d.tag){case 0:case 11:case 15:nl(8,d,o)}var p=d.child;if(null!==p)p.return=d,Ka=p;else for(;null!==Ka;){var h=(d=Ka).sibling,m=d.return;if(sl(d),d===u){Ka=null;break}if(null!==h){h.return=m,Ka=h;break}Ka=m}}}var f=o.alternate;if(null!==f){var g=f.child;if(null!==g){f.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Ka=o}}if(0!=(2064&o.subtreeFlags)&&null!==a)a.return=o,Ka=a;else e:for(;null!==Ka;){if(0!=(2048&(o=Ka).flags))switch(o.tag){case 0:case 11:case 15:nl(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Ka=y;break e}Ka=o.return}}var b=e.current;for(Ka=b;null!==Ka;){var w=(a=Ka).child;if(0!=(2064&a.subtreeFlags)&&null!==w)w.return=a,Ka=w;else e:for(a=b;null!==Ka;){if(0!=(2048&(l=Ka).flags))try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(e){Sc(l,l.return,e)}if(l===a){Ka=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Ka=_;break e}Ka=l.return}}if(Tl=r,Hr(),st&&"function"==typeof st.onPostCommitFiberRoot)try{st.onPostCommitFiberRoot(rt,e)}catch(e){}i=!0}return i}finally{bt=n,kl.transition=t}}return!1}function xc(e,t,n){e=Ds(e,t=ha(0,t=ua(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),ic(e,t))}function Sc(e,t,n){if(3===e.tag)xc(e,e,n);else for(;null!==t;){if(3===t.tag){xc(t,e,n);break}if(1===t.tag){var i=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===Vl||!Vl.has(i))){t=Ds(t,e=ma(t,e=ua(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),ic(t,e));break}}t=t.return}}function Cc(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Ll===e&&(Al&n)===n&&(4===Dl||3===Dl&&(130023424&Al)===Al&&500>Ye()-jl?pc(e,0):Bl|=n),ic(e,t)}function Nc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Ls(e,t))&&(vt(e,t,n),ic(e,n))}function kc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Nc(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(s(314))}null!==i&&i.delete(t),Nc(e,n)}function Lc(e,t){return Ze(e,t)}function Pc(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ac(e,t,n,i){return new Pc(e,t,n,i)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zc(e,t){var n=e.alternate;return null===n?((n=Ac(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,i,r,o){var a=2;if(i=e,"function"==typeof e)Ic(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case x:return Oc(n.children,r,o,t);case S:a=8,r|=8;break;case C:return(e=Ac(12,n,t,2|r)).elementType=C,e.lanes=o,e;case L:return(e=Ac(13,n,t,r)).elementType=L,e.lanes=o,e;case P:return(e=Ac(19,n,t,r)).elementType=P,e.lanes=o,e;case z:return Rc(n,r,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case N:a=10;break e;case k:a=9;break e;case T:a=11;break e;case A:a=14;break e;case I:a=16,i=null;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Ac(a,n,t,r)).elementType=e,t.type=i,t.lanes=o,t}function Oc(e,t,n,i){return(e=Ac(7,e,i,t)).lanes=n,e}function Rc(e,t,n,i){return(e=Ac(22,e,i,t)).elementType=z,e.lanes=n,e.stateNode={isHidden:!1},e}function qc(e,t,n){return(e=Ac(6,e,null,t)).lanes=n,e}function Bc(e,t,n){return(t=Ac(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Mc(e,t,n,i,r,s,o,a,l){return e=new Fc(e,t,n,a,l),1===t?(t=1,!0===s&&(t|=8)):t=0,s=Ac(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},As(s),e}function jc(e){if(!e)return kr;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ir(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(s(171))}if(1===e.tag){var n=e.type;if(Ir(n))return Or(e,n,t)}return t}function Hc(e,t,n,i,r,s,o,a,l){return(e=Mc(n,i,!0,e,0,s,0,a,l)).context=jc(null),n=e.current,(s=zs(i=ec(),r=tc(n))).callback=null!=t?t:null,Ds(n,s,r),e.current.lanes=r,vt(e,r,i),ic(e,i),e}function $c(e,t,n,i){var r=t.current,s=ec(),o=tc(r);return n=jc(n),null===t.context?t.context=n:t.pendingContext=n,(t=zs(s,o)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),null!==(e=Ds(r,t,o))&&(nc(e,r,o,s),Os(e,r,o)),o}function Wc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}xl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Lr.current)ba=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return ba=!1,function(e,t,n){switch(t.tag){case 3:La(t),hs();break;case 5:so(t);break;case 1:Ir(t.type)&&Rr(t);break;case 4:io(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;Nr(vs,i._currentValue),i._currentValue=r;break;case 13:if(null!==(i=t.memoizedState))return null!==i.dehydrated?(Nr(ao,1&ao.current),t.flags|=128,null):0!=(n&t.child.childLanes)?qa(e,t,n):(Nr(ao,1&ao.current),null!==(e=Wa(e,t,n))?e.sibling:null);Nr(ao,1&ao.current);break;case 19:if(i=0!=(n&t.childLanes),0!=(128&e.flags)){if(i)return Ha(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Nr(ao,ao.current),i)break;return null;case 22:case 23:return t.lanes=0,Sa(e,t,n)}return Wa(e,t,n)}(e,t,n);ba=0!=(131072&e.flags)}else ba=!1,rs&&0!=(1048576&t.flags)&&Jr(t,Vr,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;$a(e,t),e=t.pendingProps;var r=Ar(t,Tr.current);Ss(t,n),r=So(null,t,i,e,r,n);var o=Co();return t.flags|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ir(i)?(o=!0,Rr(t)):o=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,As(t),r.updater=js,t.stateNode=r,r._reactInternals=t,Us(t,i,e,n),t=Ta(null,t,i,!0,o,n)):(t.tag=0,rs&&o&&es(t),wa(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch($a(e,t),e=t.pendingProps,i=(r=i._init)(i._payload),t.type=i,r=t.tag=function(e){if("function"==typeof e)return Ic(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===A)return 14}return 2}(i),e=gs(i,e),r){case 0:t=Na(null,t,i,e,n);break e;case 1:t=ka(null,t,i,e,n);break e;case 11:t=_a(null,t,i,e,n);break e;case 14:t=Ea(null,t,i,gs(i.type,e),n);break e}throw Error(s(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,Na(e,t,i,r=t.elementType===i?r:gs(i,r),n);case 1:return i=t.type,r=t.pendingProps,ka(e,t,i,r=t.elementType===i?r:gs(i,r),n);case 3:e:{if(La(t),null===e)throw Error(s(387));i=t.pendingProps,r=(o=t.memoizedState).element,Is(e,t),qs(t,i,null,n);var a=t.memoizedState;if(i=a.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Pa(e,t,i,n,r=ua(Error(s(423)),t));break e}if(i!==r){t=Pa(e,t,i,n,r=ua(Error(s(424)),t));break e}for(is=cr(t.stateNode.containerInfo.firstChild),ns=t,rs=!0,ss=null,n=Ys(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hs(),i===r){t=Wa(e,t,n);break e}wa(e,t,i,n)}t=t.child}return t;case 5:return so(t),null===e&&cs(t),i=t.type,r=t.pendingProps,o=null!==e?e.memoizedProps:null,a=r.children,nr(i,r)?a=null:null!==o&&nr(i,o)&&(t.flags|=32),Ca(e,t),wa(e,t,a,n),t.child;case 6:return null===e&&cs(t),null;case 13:return qa(e,t,n);case 4:return io(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Xs(t,null,i,n):wa(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,_a(e,t,i,r=t.elementType===i?r:gs(i,r),n);case 7:return wa(e,t,t.pendingProps,n),t.child;case 8:case 12:return wa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,o=t.memoizedProps,a=r.value,Nr(vs,i._currentValue),i._currentValue=a,null!==o)if(ai(o.value,a)){if(o.children===r.children&&!Lr.current){t=Wa(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){a=o.child;for(var c=l.firstContext;null!==c;){if(c.context===i){if(1===o.tag){(c=zs(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,null!==(c=o.alternate)&&(c.lanes|=n),xs(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(s(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),xs(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}wa(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,Ss(t,n),i=i(r=Cs(r)),t.flags|=1,wa(e,t,i,n),t.child;case 14:return r=gs(i=t.type,t.pendingProps),Ea(e,t,i,r=gs(i.type,r),n);case 15:return xa(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:gs(i,r),$a(e,t),t.tag=1,Ir(i)?(e=!0,Rr(t)):e=!1,Ss(t,n),$s(t,i,r),Us(t,i,r,n),Ta(null,t,i,!0,e,n);case 19:return Ha(e,t,n);case 22:return Sa(e,t,n)}throw Error(s(156,t.tag))};var Zc="function"==typeof reportError?reportError:function(e){};function Gc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Kc(){}function Jc(e,t,n,i,r){var s=n._reactRootContainer;if(s){var o=s;if("function"==typeof r){var a=r;r=function(){var e=Wc(o);a.call(e)}}$c(t,o,e,r)}else o=function(e,t,n,i,r){if(r){if("function"==typeof i){var s=i;i=function(){var e=Wc(o);s.call(e)}}var o=Hc(t,i,e,0,null,!1,0,"",Kc);return e._reactRootContainer=o,e[mr]=o.current,Hi(8===e.nodeType?e.parentNode:e),uc(),o}for(;r=e.lastChild;)e.removeChild(r);if("function"==typeof i){var a=i;i=function(){var e=Wc(l);a.call(e)}}var l=Mc(e,0,!1,null,0,!1,0,"",Kc);return e._reactRootContainer=l,e[mr]=l.current,Hi(8===e.nodeType?e.parentNode:e),uc((function(){$c(t,l,n,i)})),l}(n,t,e,r,i);return Wc(o)}Qc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(s(409));$c(e,t,null,null)},Qc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){$c(null,e,null,null)})),t[mr]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zt.length&&0!==t&&t<zt[n].priority;n++);zt.splice(n,0,e),0===n&&qt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ic(t,Ye()),0==(6&Tl)&&(Hl=Ye()+500,Hr()))}break;case 13:uc((function(){var t=Ls(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},Et=function(e){if(13===e.tag){var t=Ls(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},xt=function(e){if(13===e.tag){var t=tc(e),n=Ls(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},St=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ee=function(e,t,n){switch(t){case"input":if(K(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=_r(i);if(!r)throw Error(s(90));Z(i),K(i,r)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cc,Le=uc;var eu={usingClientEntryPoint:!1,Events:[br,wr,_r,Ne,ke,cc]},tu={findFiberByHostInstance:yr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{rt=iu.inject(nu),st=iu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(s(200));return function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(s(299));var n=!1,i="",r=Zc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Mc(e,1,!1,null,0,n,0,i,r),e[mr]=t.current,Hi(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw e=Object.keys(e).join(","),Error(s(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Yc(t))throw Error(s(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(s(405));var i=null!=n&&n.hydratedSources||null,r=!1,o="",a=Zc;if(null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Hc(t,null,e,1,null!=n?n:null,r,0,o,a),e[mr]=t.current,Hi(e),i)for(e=0;e<i.length;e++)r=(r=(n=i[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Qc(t)},t.render=function(e,t,n){if(!Yc(t))throw Error(s(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yc(e))throw Error(s(40));return!!e._reactRootContainer&&(uc((function(){Jc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mr]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Yc(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return Jc(e,t,n,!1,i)},t.version="18.2.0-next-9e3b772b8-20220608"},897:(e,t,n)=>{var i=n(116);t.createRoot=i.createRoot,t.hydrateRoot=i.hydrateRoot},116:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),e.exports=n(748)},5:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case u:case d:case s:case a:case o:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case f:case l:return e;default:return t}}case r:return t}}}function E(e){return _(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=p,t.Fragment=s,t.Lazy=g,t.Memo=f,t.Portal=r,t.Profiler=a,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||_(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===s},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===f},t.isPortal=function(e){return _(e)===r},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===o},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===d||e===a||e===o||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},972:(e,t,n)=>{e.exports=n(5)},261:(e,t)=>{var n,i=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case s:case a:case o:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case f:case m:case l:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return v(e)===c}},722:(e,t,n)=>{e.exports=n(261)},751:(e,t)=>{var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,f(w,v.prototype),w.isPureReactComponent=!0;var _=Array.isArray,E=Object.prototype.hasOwnProperty,x={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,i){var r,s={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)E.call(t,r)&&!S.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(1===l)s.children=i;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===s[r]&&(s[r]=l[r]);return{$$typeof:n,type:e,key:o,ref:a,props:s,_owner:x.current}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var k=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function L(e,t,r,s,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case i:l=!0}}if(l)return o=o(l=e),e=""===s?"."+T(l,0):s,_(o)?(r="",null!=e&&(r=e.replace(k,"$&/")+"/"),L(o,t,r,"",(function(e){return e}))):null!=o&&(N(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,r+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(k,"$&/")+"/")+e)),t.push(o)),1;if(l=0,s=""===s?".":s+":",_(e))for(var c=0;c<e.length;c++){var u=s+T(a=e[c],c);l+=L(a,t,r,u,o)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=L(a=a.value,t,r,u=s+T(a,c++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var i=[],r=0;return L(e,i,"","",(function(e){return t.call(n,e,r++)})),i}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},z={transition:null},D={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:z,ReactCurrentOwner:x};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=r,t.Profiler=o,t.PureComponent=b,t.StrictMode=s,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,i){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=f({},e.props),s=e.key,o=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,a=x.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)E.call(t,c)&&!S.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=i;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:n,type:e.type,key:s,ref:o,props:r,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=N,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=z.transition;z.transition={};try{e()}finally{z.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},466:(e,t,n)=>{e.exports=n(751)},794:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,r=e[i];if(!(0<s(r,t)))break e;e[i]=t,e[n]=r,n=i}}function i(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length,o=r>>>1;i<o;){var a=2*(i+1)-1,l=e[a],c=a+1,u=e[c];if(0>s(l,n))c<r&&0>s(u,l)?(e[i]=u,e[c]=n,i=c):(e[i]=l,e[a]=n,i=a);else{if(!(c<r&&0>s(u,n)))break e;e[i]=u,e[c]=n,i=c}}}return t}function s(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,p=null,h=3,m=!1,f=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=i(u);null!==t;){if(null===t.callback)r(u);else{if(!(t.startTime<=e))break;r(u),t.sortIndex=t.expirationTime,n(c,t)}t=i(u)}}function _(e){if(g=!1,w(e),!f)if(null!==i(c))f=!0,z(E);else{var t=i(u);null!==t&&D(_,t.startTime-e)}}function E(e,n){f=!1,g&&(g=!1,y(N),N=-1),m=!0;var s=h;try{for(w(n),p=i(c);null!==p&&(!(p.expirationTime>n)||e&&!L());){var o=p.callback;if("function"==typeof o){p.callback=null,h=p.priorityLevel;var a=o(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?p.callback=a:p===i(c)&&r(c),w(n)}else r(c);p=i(c)}if(null!==p)var l=!0;else{var d=i(u);null!==d&&D(_,d.startTime-n),l=!1}return l}finally{p=null,h=s,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,S=!1,C=null,N=-1,k=5,T=-1;function L(){return!(t.unstable_now()-T<k)}function P(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?x():(S=!1,C=null)}}else S=!1}if("function"==typeof b)x=function(){b(P)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,I=A.port2;A.port1.onmessage=P,x=function(){I.postMessage(null)}}else x=function(){v(P,0)};function z(e){C=e,S||(S=!0,x())}function D(e,n){N=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){f||m||(f=!0,z(E))},t.unstable_forceFrameRate=function(e){0>e||125<e||(k=0<e?Math.floor(1e3/e):5)},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return i(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,r,s){var o=t.unstable_now();switch("object"==typeof s&&null!==s?s="number"==typeof(s=s.delay)&&0<s?o+s:o:s=o,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:d++,callback:r,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>o?(e.sortIndex=s,n(u,e),null===i(c)&&e===i(u)&&(g?(y(N),N=-1):g=!0,D(_,s-o))):(e.sortIndex=a,n(c,e),f||m||(f=!0,z(E))),e},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},767:(e,t,n)=>{e.exports=n(794)},872:(e,t,n)=>{var i=n(466);var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useState,o=i.useEffect,a=i.useLayoutEffect,l=i.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=s({inst:{value:n,getSnapshot:t}}),r=i[0].inst,u=i[1];return a((function(){r.value=n,r.getSnapshot=t,c(r)&&u({inst:r})}),[e,n,t]),o((function(){return c(r)&&u({inst:r}),e((function(){c(r)&&u({inst:r})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:u},541:(e,t,n)=>{var i=n(466),r=n(952);var s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,a=i.useRef,l=i.useEffect,c=i.useMemo,u=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,i,r){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,o=e,e=i(e),void 0!==r&&p.hasValue){var t=p.value;if(r(t,e))return a=t}return a=e}if(t=a,s(o,e))return t;var n=i(e);return void 0!==r&&r(t,n)?t:(o=e,a=n)}var o,a,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,i,r]);var h=o(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},952:(e,t,n)=>{e.exports=n(872)},345:(e,t,n)=>{e.exports=n(541)},242:(e,t,n)=>{"use strict";var i=n(877);$(document).ready((function(){var e=function(){$(".blog-feed").feed({type:"blog",title:"outside",title_class:".item-content",wrapper:".blog-container",item:".item",item_wrapper:".item-wrapper",video_thumb:".b-tb",bottom_line:"true",pager:".pager"})},t=function(){$(".blog-feed-board").feed({type:"blog",title:"outside",title_class:".item-content",wrapper:".blog-container",item:".item",item_wrapper:".item-wrapper",video_thumb:".b-tb",bottom_line:"true",pager:".pager"})};$(".blog-feed")[0]&&(e(),setTimeout((function(){e()}),500),window.addEventListener("resize",(function(){e()})),window.addEventListener("orientationchange",(function(){e()}))),$(".blog-feed-board")[0]&&(t(),window.addEventListener("resize",(function(){t()})),window.addEventListener("orientationchange",(function(){t()}))),(0,i.GI)()&&($(document).on("wnd-redraw",".blog",(function(){$(this).hasClass("blog-feed")&&$(this).feed({type:"blog",title:"outside",title_class:".item-content",wrapper:".blog-container",item:".item",item_wrapper:".item-wrapper",video_thumb:".thumbnail",bottom_line:"true",pager:".pager"}),window.addEventListener("resize",(function(){e()})),window.addEventListener("orientationchange",(function(){e()}))})),$(document).on("wnd-redraw",".blog",(function(){$(this).hasClass("blog-feed-board")&&$(this).feed({type:"blog",title:"outside",title_class:".item-content",wrapper:".blog-container",item:".item",item_wrapper:".item-wrapper",video_thumb:".thumbnail",bottom_line:"true",pager:".pager"}),window.addEventListener("resize",(function(){t()})),window.addEventListener("orientationchange",(function(){t()}))})),$(document).on("wnd-redraw",".ez",(function(){$(".blog-feed")[0]&&setTimeout((function(){e()}),400)})),$(document).on("wnd-redraw",".ez",(function(){$(".blog-feed-board")[0]&&setTimeout((function(){t()}),400)})))}))},298:(e,t,n)=>{"use strict";var i=n(877);(0,i.Cd)((()=>{if(!document.querySelector(".cb"))return;const e=document.querySelector(".cb-bar"),t=document.querySelector(".cb-popup"),n=document.querySelector(".cb-button-popup"),r=document.querySelector(".l"),s=(e,t,n)=>{e.classList.remove(t),e.classList.add(n)};e.querySelectorAll(".cb-close-basic").forEach((t=>{t.addEventListener("click",(t=>{(0,i.C6)(t),s(e,"open","close")}))})),n&&n.addEventListener("click",(n=>{(0,i.C6)(n),s(e,"open","close"),s(t,"close","open"),r.style.overflowX="hidden"})),t.querySelector(".cb-close-popup").addEventListener("click",(n=>{(0,i.C6)(n),s(t,"open","close"),s(e,"close","open"),r.style.overflowY="initial"})),document.onkeydown=n=>{"Escape"!==n.key&&"Escape"!==n.code||(s(t,"open","close"),s(e,"close","open"),r.style.overflowY="initial")},t.querySelector(".cb-save-popup").addEventListener("click",(e=>{(0,i.C6)(e),s(t,"open","close"),r.style.overflowY="initial"}))}))},252:(e,t,n)=>{"use strict";var i=n(877);function r(e){this.formElm=e,this.bindStandardInputs=function(){let e=this.formElm.querySelectorAll(".watch-change input");e=e||[],e.forEach((e=>{["keyup"," blur","input","change","click"].forEach((t=>{e.addEventListener(t,(e=>{e.target.value.length>0?e.target.classList.add("not-empty"):e.target.classList.remove("not-empty")}))}))}))},this.bindSelectInputs=function(){let e=this.formElm.querySelectorAll("select");e=e||[],e.forEach((e=>{e.addEventListener("focus",(e=>{e.target.classList.remove("not-clicked")}))}))},this.bindTextareas=function(){let e=this.formElm.querySelectorAll("textarea");e=e||[],e.forEach((e=>{["keyup"," blur"].forEach((t=>{e.addEventListener(t,(e=>{e.target.value.length>0?e.target.classList.add("not-empty"):e.target.classList.remove("not-empty")}))}))}))},this.resizeTextarea=function(e){const t=e;t.style.height="auto",t.style.height=`${t.scrollHeight+2}px`},this.bindTextareaResize=function(){let e=this.formElm.querySelectorAll("textarea");e=e||[],e.forEach((e=>{["keyup"," input"].forEach((t=>{e.addEventListener(t,(()=>{this.resizeTextarea(e)}))}))}))},this.bindNumberInputs=function(){let e=null,t=this.formElm.querySelectorAll(".form-number button");t=t||[],t.forEach((t=>{["mousedown"," touchstart","click"].forEach((n=>{t.addEventListener(n,(t=>{if(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),null===e)e=t.type;else if(t.type!==e)return;const n=t.target,r=n.parentNode.previousElementSibling.previousElementSibling;r.focus(),(0,i.kE)(r.value)?n.classList.contains("form-number-plus")?r.value=parseInt(r.value,10)+1:r.value=parseInt(r.value,10)-1:void 0!==r.value.length&&0!==r.value.length||(n.classList.contains("form-number-plus")?r.value=1:r.value=-1),r.classList.contains("not-empty")||r.classList.add("not-empty")}))}))}))},this.bindFileInputs=function(){let e=this.formElm.querySelectorAll(".form-file input");e=e||[],e.forEach((e=>{e.addEventListener("change",(e=>{setTimeout((()=>{const t=e.target.parentNode.parentNode.querySelector(".form-file-text").innerHTML;t.lastIndexOf("\\")>-1&&(e.target.parentNode.parentNode.querySelector(".form-file-text").textContent=t.substr(t.lastIndexOf("\\")+1)),""!==e.target.value&&void 0!==e.target.value?e.target.parentNode.parentNode.classList.add("not-empty"):e.target.parentNode.parentNode.classList.remove("not-empty")}),1)}));e.closest(".form-input").querySelector(".form-file-remove").addEventListener("click",(e=>{const t=e.target.parentNode;t.querySelector("input").value="",t.classList.remove("not-empty"),t.classList.contains("wnd-required")&&t.classList.add("wnd-validate-error"),setTimeout((()=>{t.querySelector(".form-file-text").textContent=""}),350)}))}))},this.onFormLoad=function(){let e=this.formElm.querySelectorAll(".form-input");e=e||[],e.forEach((e=>{if(e.classList.contains("form-select"))!(0,i.GI)()&&e.closest(".form").querySelectorAll(".wnd-validate-error").length>0&&e.find("select").removeClass("not-clicked");else if(e.classList.contains("form-textarea")){const t=e.querySelector("textarea");t.value.length>0&&t.classList.add("not-empty")}else if(e.classList.contains("form-email")){const t=e.querySelector("input");t.value.length>0&&"@"!==t.value&&t.classList.add("not-empty")}else{const t=e.querySelector("input");void 0!==t.value&&t.value.length>0&&t.classList.add("not-empty")}}))},this.onSubmit=function(){const e=this.formElm.querySelector("form:not(.wnd-form-submitted)");e&&this.formElm.querySelector(".form-submit").addEventListener("click",(()=>{if(!1===e.checkValidity()){let t=e.querySelectorAll("select");t=t||[],t.forEach((e=>{e.classList.remove("not-clicked")}))}}))},this.init=function(){this.bindStandardInputs(),this.bindSelectInputs(),this.bindTextareas(),this.bindTextareaResize(),this.bindNumberInputs(),this.bindFileInputs(),this.onFormLoad(),this.onSubmit()}}(0,i.Cd)((()=>{let e=document.querySelectorAll(".form.b-form-light");e=e||[],e.forEach((e=>{new r(e).init()}))}))},946:(e,t,n)=>{"use strict";var i=n(877);(0,i.Cd)((()=>{(0,i.GI)()||document.querySelector(".s-hn-bottom")&&!document.querySelector(".s-hn")?.classList.contains("hm-hidden")&&document.body.classList.contains("wnd-free-bar-fixed")&&(document.body.classList.remove("wnd-free-bar-fixed"),document.body.classList.add("wnd-free-bar-default"))}))},196:(e,t,n)=>{"use strict";var i=n(466),r=n(897),s=n(74),o=n.n(s),a=n(914),l="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\gallery\\js\\GalleryImage.jsx";const c=e=>{let{itemData:t,imageSizes:n}=e;return i.createElement("div",{className:"b-gal-img bor-rad",__self:void 0,__source:{fileName:l,lineNumber:16,columnNumber:2}},i.createElement("div",{className:"b-gal-img-pos",__self:void 0,__source:{fileName:l,lineNumber:17,columnNumber:3}},i.createElement("div",{className:"b-gal-img-wrap",__self:void 0,__source:{fileName:l,lineNumber:18,columnNumber:4}},i.createElement(a.Z,{imageData:t,imageSizes:n,__self:void 0,__source:{fileName:l,lineNumber:19,columnNumber:5}}))))};c.propTypes={itemData:o().object,imageSizes:o().string};const u=c;const d=e=>{let{itemData:t}=e;const n=t;return i.createElement("div",{className:"b-gal-t bor-rad",key:n.id,__self:void 0,__source:{fileName:"C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\gallery\\js\\GalleryTitle.jsx",lineNumber:20,columnNumber:3}},n.title)};d.propTypes={itemData:o().object};const p=d;var h="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\gallery\\js\\GalleryItem.jsx";const m=i.forwardRef(((e,t)=>{let n={};"photoFeed"===e.galleryData.variant&&(n={gridRowEnd:e.itemSpanValues[e.itemIndex]}),"horizontalFeed"===e.galleryData.variant&&(n={"--width":e.itemData.size.width,"--height":e.itemData.size.height});const r=e.isClone?"b-gal-item clone":"b-gal-item original";return i.createElement("div",{className:r,ref:t,style:n,__self:void 0,__source:{fileName:h,lineNumber:38,columnNumber:3}},i.createElement("a",{className:"b-gal-a litebox bor-rad","data-litebox-group":"gallery","data-litebox-text":e.itemData.title,href:e.itemData.img.src,width:e.itemData.size.width,height:e.itemData.size.height,__self:void 0,__source:{fileName:h,lineNumber:41,columnNumber:4}},i.createElement("div",{className:"b-gal-img-outer",__self:void 0,__source:{fileName:h,lineNumber:48,columnNumber:5}},i.createElement(u,{itemData:e.itemData,imageSizes:e.imageSizes,__self:void 0,__source:{fileName:h,lineNumber:49,columnNumber:6}}),i.createElement(p,{itemData:e.itemData,__self:void 0,__source:{fileName:h,lineNumber:54,columnNumber:6}}))))}));var f="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\gallery\\js\\GalleryEmpty.jsx";const g=e=>{let{locEmptyGalleryTitle:t,locEmptyGalleryText:n}=e;return i.createElement("div",{className:"wnd-empty-placeholder","data-testid":"gallery-empty",__self:void 0,__source:{fileName:f,lineNumber:9,columnNumber:2}},i.createElement("p",{__self:void 0,__source:{fileName:f,lineNumber:10,columnNumber:3}},i.createElement("strong",{__self:void 0,__source:{fileName:f,lineNumber:11,columnNumber:4}},t),i.createElement("br",{__self:void 0,__source:{fileName:f,lineNumber:12,columnNumber:4}}),n))};var v="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\gallery\\js\\GalleryClassic.jsx";const y=e=>{let{galleryData:t,gridClass:n,locEmptyGalleryText:r,locEmptyGalleryTitle:s}=e,o="(min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw";return 2===t.gridCount?o="(min-width: 768px) calc(100vw * 0.4), (min-width: 320px) calc(100vw * 0.5), 100vw":3===t.gridCount?o="(min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw":4!==t.gridCount&&5!==t.gridCount||(o="(min-width: 768px) calc(100vw * 0.2), (min-width: 320px) calc(100vw * 0.5), 100vw"),i.createElement("div",{className:`b-gal-classic b-gal-grid ${n} `,__self:void 0,__source:{fileName:v,lineNumber:29,columnNumber:3}},t.items&&t.items.length?t.items.map((e=>i.createElement(m,{key:e.id,itemData:e,imageSizes:o,galleryData:t,__self:void 0,__source:{fileName:v,lineNumber:38,columnNumber:5}}))):i.createElement(g,{locEmptyGalleryTitle:s,locEmptyGalleryText:r,__self:void 0,__source:{fileName:v,lineNumber:44,columnNumber:9}}))};y.propTypes={itemData:o().object,galleryData:o().object,locEmptyGalleryTitle:o().string,locEmptyGalleryText:o().string};const b=y;var w="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\gallery\\js\\GalleryFeed.jsx";const _=e=>{let{galleryData:t,gridClass:n,gridCount:r,galleryElement:s,locEmptyGalleryTitle:o,locEmptyGalleryText:a}=e;const[l,c]=(0,i.useState)(""),[u,d]=(0,i.useState)([]),p=(0,i.useRef)([]),h=(0,i.useRef)(null);let f="(min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw";2===t.gridCount?f="(min-width: 768px) calc(100vw * 0.4), (min-width: 320px) calc(100vw * 0.5), 100vw":3===t.gridCount?f="(min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw":4!==t.gridCount&&5!==t.gridCount||(f="(min-width: 768px) calc(100vw * 0.2), (min-width: 320px) calc(100vw * 0.5), 100vw");return(0,i.useEffect)((()=>{const e=()=>{(e=>{const t=[];p.current.forEach(((n,i)=>{const r=n.querySelector(".b-gal-img-outer").clientHeight,s=window.getComputedStyle(e.querySelector(".b-gal-feed")).getPropertyValue("grid-column-gap").slice(0,-2);t[i]=`span ${Math.ceil(r/2+s/2)}`,d(t)}))})(s)};return e(),window.addEventListener("resize",e),s.addEventListener("photoGalleryUpdated",e),document.body.addEventListener("wnd-content-change",e),()=>{window.removeEventListener("resize",e),s.removeEventListener("photoGalleryUpdated",e),document.body.removeEventListener("wnd-content-change",e)}}),[n]),(0,i.useEffect)((()=>{p.current=p.current.slice(0,t.items.length)}),[t.items]),i.createElement("div",{className:`b-gal-feed b-gal-grid ${n} `,ref:h,__self:void 0,__source:{fileName:w,lineNumber:92,columnNumber:3}},t.items.length?t.items.map(((e,n)=>i.createElement(m,{key:e.id,itemData:e,itemSpanValues:u,itemIndex:n,galleryData:t,ref:e=>p.current[n]=e,imageSizes:f,__self:void 0,__source:{fileName:w,lineNumber:95,columnNumber:5}}))):i.createElement(g,{locEmptyGalleryTitle:o,locEmptyGalleryText:a,__self:void 0,__source:{fileName:w,lineNumber:104,columnNumber:9}}))};_.propTypes={galleryData:o().object,galleryElement:o().object,gridClass:o().string,gridCount:o().string,locEmptyGalleryTitle:o().string,locEmptyGalleryText:o().string};const E=_;var x="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\general\\js\\Bullets.jsx";const S=e=>{const t=e.items.length>e.maxBullets?3*e.items.length:e.items.length>1?e.items.length:0,n=e.items.length>e.maxBullets?12*(t-9)+126:14*e.items.length;function r(t,n){let i,r="";if(i=t<0?e.items.length+t:t>e.items.length-1?t%e.items.length:t,r+=i===n?" active":"",e.items.length>e.maxBullets){const t=0===i?e.items.length-1:i-1,s=i===e.items.length-1?0:i+1;r+=n===t||n===s?" large":""}return r}return i.createElement("div",{className:"dots-content "+(e.items.length>e.maxBullets?"infinite":"centered"),__self:void 0,__source:{fileName:x,lineNumber:92,columnNumber:3}},i.createElement("ul",{style:e.items.length>e.maxBullets?{width:`${n}px`,marginLeft:`${function(){let t,n;return e.currentIndex<=0?(t=e.items.length-4,n=2+e.currentIndex):e.currentIndex<e.items.length-1?(t=e.items.length-4+(e.currentIndex-1),n=3):(t=2*(e.items.length-3)-1,n=e.currentIndex-(e.items.length-1)+4),-1*(12*t+14*n)}()}px`}:{},__self:void 0,__source:{fileName:x,lineNumber:93,columnNumber:4}},e.items.length>e.maxBullets&&e.items.map(((t,n)=>i.createElement("li",{className:`clone ${r(e.currentIndex,n)}`,key:`L${t.id}`,onClick:()=>{e.navAction(-1*e.items.length+n)},__self:void 0,__source:{fileName:x,lineNumber:95,columnNumber:44}}))),e.items.length>1&&e.items.map(((t,n)=>i.createElement("li",{className:`original ${r(e.currentIndex,n)}`,key:t.id,onClick:()=>{e.navAction(n)},__self:void 0,__source:{fileName:x,lineNumber:97,columnNumber:44}}))),e.items.length>e.maxBullets&&e.items.map(((t,n)=>i.createElement("li",{className:`clone ${r(e.currentIndex,n)}`,key:`R${t.id}`,onClick:()=>{e.navAction(n+e.items.length)},__self:void 0,__source:{fileName:x,lineNumber:99,columnNumber:45}})))))};var C=n(877),N="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\gallery\\js\\GallerySlideshow.jsx";const k=e=>{let{galleryData:t,locEmptyGalleryTitle:n,locEmptyGalleryText:r}=e;const s="100vw",o=!0,a="5000",l=5,[c,u]=(0,i.useState)({currentIndex:0,itemWidth:0}),[d,p]=(0,i.useState)(!1),[h,f]=(0,i.useState)(0),v=(0,i.useRef)(h),y=(0,i.useRef)(d);(0,i.useEffect)((()=>{v.current=h,y.current=d})),(0,i.useEffect)((()=>{u({currentIndex:0})}),[t.items.length]);const b=()=>{v.current&&(clearInterval(v.current),f(0))},w=()=>{y.current||(p(!0),u((e=>({...e,currentIndex:e.currentIndex-1}))))},_=()=>{y.current||(p(!0),u((e=>({...e,currentIndex:e.currentIndex+1}))))};let E,x;return(0,i.useEffect)((()=>{if(window.addEventListener("resize",b,{once:!0}),o&&t.items.length>1&&!(0,C.GI)()){const e=setInterval(_,a);f(e)}return()=>{window.removeEventListener("resize",b)}}),[]),i.createElement("div",{className:"b-gal-slideshow",__self:void 0,__source:{fileName:N,lineNumber:234,columnNumber:3}},i.createElement("div",{className:"b-gal-c",__self:void 0,__source:{fileName:N,lineNumber:244,columnNumber:4}},i.createElement("div",{className:"b-gal-list "+(d?"transition":""),onTransitionEnd:e=>{(e=>{p(!1);const n=t.items.length;if(c.currentIndex<0||c.currentIndex>n-1){let e=null;c.currentIndex<0?e=n+c.currentIndex:c.currentIndex>=n&&(e=c.currentIndex-n),u((t=>({...t,currentIndex:e})))}})()},style:{"--slideshow-items":(()=>{let e=t.items.length;return t.items.length>1&&(e+=t.items.length>l?4:2),e})(),"--slideshow-position":(()=>{let e=0;return t.items.length>1&&(e+=t.items.length>l?2:1),c.currentIndex+e})()},onTouchStart:e=>{E=e.touches[0].clientX},onTouchEnd:e=>{var t,n;x=e.changedTouches[0].clientX,t=E,n=x,b(),t>n?_():t<n&&w()},__self:void 0,__source:{fileName:N,lineNumber:245,columnNumber:5}},t.items.length>1&&[...t.items].slice(t.items.length-(t.items.length>l?2:1),t.items.length).map((e=>i.createElement(m,{itemData:e,key:`C${e.id}`,itemWidth:c.itemWidth,galleryData:t,imageSizes:s,isClone:!0,__self:void 0,__source:{fileName:N,lineNumber:254,columnNumber:8}}))),!!t.items.length&&t.items.map((e=>i.createElement(m,{itemData:e,key:e.id,itemWidth:c.itemWidth,galleryData:t,imageSizes:s,isClone:!1,__self:void 0,__source:{fileName:N,lineNumber:265,columnNumber:8}}))),t.items.length>1&&[...t.items].slice(0,t.items.length>l?2:1).map((e=>i.createElement(m,{itemData:e,key:`C${e.id}`,itemWidth:c.itemWidth,galleryData:t,imageSizes:s,isClone:!0,__self:void 0,__source:{fileName:N,lineNumber:276,columnNumber:8}})))),i.createElement("button",{className:"arrow arrow-prev "+(t.items.length>1?"show":"hide"),onClick:()=>{b(),w()},__self:void 0,__source:{fileName:N,lineNumber:288,columnNumber:5}},i.createElement("div",{className:"arrow-submit",__self:void 0,__source:{fileName:N,lineNumber:291,columnNumber:6}})),i.createElement("button",{className:"arrow arrow-next "+(t.items.length>1?"show":"hide"),onClick:()=>{b(),_()},__self:void 0,__source:{fileName:N,lineNumber:294,columnNumber:5}},i.createElement("div",{className:"arrow-submit",__self:void 0,__source:{fileName:N,lineNumber:297,columnNumber:6}}))),i.createElement("div",{className:`dots ${t.items.length>1?"show":"hide"} ${d?"transition":""}`,__self:void 0,__source:{fileName:N,lineNumber:304,columnNumber:4}},i.createElement(S,{items:t.items,currentIndex:c.currentIndex,navAction:e=>{b();const n=c.currentIndex,i=e;let r;const s=t.items.length;r=0===n&&i===s-1?c.currentIndex-1:n===s-1&&0===i?c.currentIndex+1:s>l&&(0===n&&i===s-2||1===n&&i===s-1)?c.currentIndex-2:s>l&&(n===s-1&&1===i||n===s-2&&0===i)?c.currentIndex+2:i,p(!0),u((e=>({...e,currentIndex:r})))},maxBullets:l,__self:void 0,__source:{fileName:N,lineNumber:306,columnNumber:5}})),!t.items.length&&i.createElement(g,{locEmptyGalleryTitle:n,locEmptyGalleryText:r,__self:void 0,__source:{fileName:N,lineNumber:315,columnNumber:34}}))};var T="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\gallery\\js\\GalleryHorizontal.jsx";const L=function(e){let{galleryData:t,locEmptyGalleryTitle:n,locEmptyGalleryText:r}=e;const s=(0,i.useRef)(null),o=(0,i.useRef)([]);return i.createElement("div",{className:"b-gal b-gal-horizontal",ref:s,__self:this,__source:{fileName:T,lineNumber:20,columnNumber:3}},i.createElement("div",{className:"b-gal-list",__self:this,__source:{fileName:T,lineNumber:21,columnNumber:4}},t.items.length?t.items.map(((e,n)=>i.createElement(m,{listItemClass:"b-gal-item",key:e.id,itemData:e,galleryData:t,ref:e=>o.current[n]=e,imageSizes:"(min-width: 768px) calc(100vw * 0.2), (min-width: 320px) calc(100vw * 0.5), 100vw",galleryRef:s,galleryItems:o.current,index:n,__self:this,__source:{fileName:T,lineNumber:25,columnNumber:8}}))):i.createElement(g,{locEmptyGalleryTitle:n,locEmptyGalleryText:r,__self:this,__source:{fileName:T,lineNumber:37,columnNumber:11}})))};const P=e=>{let{galleryData:t,onRendered:n,galleryElement:r,locEmptyGalleryTitle:s,locEmptyGalleryText:o}=e;const[a,l]=(0,i.useState)(t),[c,u]=(0,i.useState)(`grid-${t.gridCount}`),[d,p]=(0,i.useState)(t.variant);(0,i.useEffect)((()=>{const e=e=>{const t=JSON.parse(e.detail.data),n=`grid-${t.gridCount}`,i=t.variant;l({...t}),u(n),p(i)};return r.addEventListener("photoGalleryUpdated",e),n&&n(),()=>{r.removeEventListener("photoGalleryUpdated",e)}}),[]),(0,i.useEffect)((()=>{(0,C.Lv)(r)}),[a]);const h={default:b,photoFeed:E,slideshow:k,horizontalFeed:L}[d]||b;return i.createElement(h,{galleryData:a,gridClass:c,locEmptyGalleryTitle:s,locEmptyGalleryText:o,galleryElement:r,__self:void 0,__source:{fileName:"C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\gallery\\js\\Gallery.jsx",lineNumber:81,columnNumber:3}})};P.propTypes={galleryData:o().object,gridClass:o().string};const A=P;var I=n(277),z="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\gallery\\js\\GalleryApp.js";let D=0,O=document.querySelectorAll(".gal-app").length;function R(e){const t=JSON.parse(e.dataset.content);e.removeAttribute("data-content");r.createRoot(e).render(i.createElement(A,{galleryData:t,onRendered:()=>{D++,D===O&&(0,I.K)()},galleryElement:e,locEmptyGalleryTitle:wnd.$system.labels["wnd.pc.PhotoGalleryBlock.placeholder.title"],locEmptyGalleryText:wnd.$system.labels["wnd.pc.PhotoGalleryBlock.placeholder.text"],__self:this,__source:{fileName:z,lineNumber:36,columnNumber:3}}))}document.querySelectorAll(".gal-app").forEach((e=>{R(e)})),document.body.addEventListener("wnd-block-added",(function(e){const t=document.getElementById(e.detail.id);t.classList.contains("gal-app")&&(t.classList.add("b","b-s"),R(t)),O=document.querySelectorAll(".gal-app").length}))},914:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(466),r="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\general\\js\\Picture.jsx";const s=e=>{const[t,n]=(0,i.useState)(!1);const s=e.imageSizes?e.imageSizes:"(min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw",o=e.imageData.sources.some((e=>"image/webp"===e.mimeType))?e.imageData.sources.filter((e=>"image/webp"===e.mimeType)):e.imageData.sources;return i.createElement("picture",{onLoad:e=>{n(!0)},className:t?"":"ldng",__self:void 0,__source:{fileName:r,lineNumber:22,columnNumber:3}},o.map(((e,t)=>i.createElement("source",{key:t,type:e.mimeType,sizes:s,srcSet:e.sizes.map((e=>`${e.src} ${e.width}w`)),className:"img bor-rad",__self:void 0,__source:{fileName:r,lineNumber:25,columnNumber:5}}))),i.createElement("img",{src:e.imageData.img.src,alt:e.imageData.title,width:e.imageData.size.width,height:e.imageData.size.height,style:{aspectRatio:e.imageData.aspectRatio.replace(":","/")},loading:"lazy",className:"img bor-rad",__self:void 0,__source:{fileName:r,lineNumber:34,columnNumber:4}}))}},141:(e,t,n)=>{"use strict";(0,n(877).Cd)((()=>{if(document.getElementById("fb-customer-chat")){const e=document.getElementById("fb-root");document.querySelector(".l-w").insertAdjacentElement("beforeend",e)}}))},142:(e,t,n)=>{"use strict";var i=n(466),r=n(897),s="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\ProductTitle.jsx";const o=e=>i.createElement("span",{className:"prd-title",__self:void 0,__source:{fileName:s,lineNumber:4,columnNumber:2}},i.createElement("span",{className:"prd-title-c",__self:void 0,__source:{fileName:s,lineNumber:5,columnNumber:3}},e.title));var a="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\ProductRibbon.jsx";const l=e=>i.createElement("span",{className:"prd-label",__self:void 0,__source:{fileName:a,lineNumber:4,columnNumber:2}},i.createElement("span",{className:"prd-label-c",__self:void 0,__source:{fileName:a,lineNumber:5,columnNumber:3}},e.text));var c="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\ProductOutOfStock.jsx";const u=e=>i.createElement("span",{className:"prd-label prd-out-of-stock",__self:void 0,__source:{fileName:c,lineNumber:4,columnNumber:2}},i.createElement("span",{className:"prd-label-c prd-out-of-stock-c",__self:void 0,__source:{fileName:c,lineNumber:5,columnNumber:3}},e.text));var d="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\ProductPrice.jsx";const p=e=>i.createElement("span",{className:"prd-price",__self:void 0,__source:{fileName:d,lineNumber:4,columnNumber:2}},e.price.prefixText&&i.createElement("span",{className:"prd-price-pref-text",dangerouslySetInnerHTML:{__html:e.price.prefixText},__self:void 0,__source:{fileName:d,lineNumber:6,columnNumber:7}}),e.price.prefix&&i.createElement("span",{className:"prd-price-pref",dangerouslySetInnerHTML:{__html:e.price.prefix},__self:void 0,__source:{fileName:d,lineNumber:10,columnNumber:7}}),i.createElement("span",{className:"prd-price-c",dangerouslySetInnerHTML:{__html:e.price.value},__self:void 0,__source:{fileName:d,lineNumber:13,columnNumber:3}}),e.price.suffix&&i.createElement("span",{className:"prd-price-suf",dangerouslySetInnerHTML:{__html:e.price.suffix},__self:void 0,__source:{fileName:d,lineNumber:17,columnNumber:7}}),e.price.suffixText&&i.createElement("span",{className:"prd-price-suf-text",dangerouslySetInnerHTML:{__html:e.price.suffixText},__self:void 0,__source:{fileName:d,lineNumber:21,columnNumber:7}}));var h="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\ProductComparativePrice.jsx";const m=e=>i.createElement("span",{className:"prd-price prd-price-com",__self:void 0,__source:{fileName:h,lineNumber:5,columnNumber:2}},e.price.prefixText&&i.createElement("span",{className:"prd-price-pref-text",dangerouslySetInnerHTML:{__html:e.price.prefixText},__self:void 0,__source:{fileName:h,lineNumber:7,columnNumber:7}}),e.price.prefix&&i.createElement("span",{className:"prd-price-pref",dangerouslySetInnerHTML:{__html:e.price.prefix},__self:void 0,__source:{fileName:h,lineNumber:11,columnNumber:7}}),i.createElement("span",{className:"prd-price-c",dangerouslySetInnerHTML:{__html:e.price.value},__self:void 0,__source:{fileName:h,lineNumber:14,columnNumber:3}}),e.price.suffix&&i.createElement("span",{className:"prd-price-suf",dangerouslySetInnerHTML:{__html:e.price.suffix},__self:void 0,__source:{fileName:h,lineNumber:18,columnNumber:7}}),e.price.suffixText&&i.createElement("span",{className:"prd-price-suf-text",dangerouslySetInnerHTML:{__html:e.price.suffixText},__self:void 0,__source:{fileName:h,lineNumber:22,columnNumber:7}}));var f=n(914),g="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\general\\js\\Thumbnail.jsx";const v=e=>i.createElement("div",{className:"b-tb",__self:void 0,__source:{fileName:g,lineNumber:6,columnNumber:3}},e.imageData&&i.createElement(f.Z,{imageData:e.imageData,imageSizes:e.imageSizes,__self:void 0,__source:{fileName:g,lineNumber:8,columnNumber:8}}));var y="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\EshopGridItem.jsx";const b=e=>i.createElement("article",{className:"item "+(e.itemData.image?"":"wnd-empty-thumbnail"),__self:void 0,__source:{fileName:y,lineNumber:10,columnNumber:2}},i.createElement("div",{className:"item-wrapper",__self:void 0,__source:{fileName:y,lineNumber:11,columnNumber:3}},i.createElement("a",{href:e.itemData.detailUrl,__self:void 0,__source:{fileName:y,lineNumber:12,columnNumber:4}},i.createElement("div",{className:"item-media",__self:void 0,__source:{fileName:y,lineNumber:13,columnNumber:5}},i.createElement(v,{imageData:e.itemData.image,imageSizes:e.imageSizes,__self:void 0,__source:{fileName:y,lineNumber:14,columnNumber:6}})),i.createElement("div",{className:"item-head",__self:void 0,__source:{fileName:y,lineNumber:16,columnNumber:5}},i.createElement("h2",{className:"item-title",__self:void 0,__source:{fileName:y,lineNumber:17,columnNumber:6}},i.createElement(o,{title:e.itemData.name,__self:void 0,__source:{fileName:y,lineNumber:17,columnNumber:33}})),i.createElement("div",{className:"item-labels label-small",__self:void 0,__source:{fileName:y,lineNumber:18,columnNumber:6}},!e.itemData.available&&i.createElement(u,{text:"Out Of Stock",__self:void 0,__source:{fileName:y,lineNumber:19,columnNumber:37}}),e.itemData.ribbon&&i.createElement(l,{text:e.itemData.ribbon,__self:void 0,__source:{fileName:y,lineNumber:20,columnNumber:33}})),i.createElement("div",{className:"item-price",__self:void 0,__source:{fileName:y,lineNumber:22,columnNumber:6}},i.createElement(p,{price:e.itemData.price,__self:void 0,__source:{fileName:y,lineNumber:23,columnNumber:7}}),e.itemData.comparativePrice&&i.createElement(m,{price:e.itemData.comparativePrice,__self:void 0,__source:{fileName:y,lineNumber:24,columnNumber:43}}))))));var w="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\pager\\js\\Pager.jsx";const _=e=>{const t=e.paginationData;return i.createElement("div",{className:"b b-s-0 b-s-t150 pager",__self:void 0,__source:{fileName:w,lineNumber:9,columnNumber:3}},"default"===t.type&&i.createElement("div",{className:"pager-container",__self:void 0,__source:{fileName:w,lineNumber:12,columnNumber:6}},t.currentPage*t.itemsPerPage-t.itemsPerPage>=0&&i.createElement("a",{href:"/prev",className:"pager-prev wt-bold",onClick:n=>{n.preventDefault(),e.paginationChange(t.currentPage-1)},__self:void 0,__source:{fileName:w,lineNumber:15,columnNumber:9}},"Prev"),t.currentPage*t.itemsPerPage+t.itemsPerPage<t.itemsTotal&&i.createElement("a",{href:"/next",className:"pager-next wt-bold",onClick:n=>{n.preventDefault(),e.paginationChange(t.currentPage+1)},__self:void 0,__source:{fileName:w,lineNumber:28,columnNumber:9}},"Next")),"infinite"===t.type&&i.createElement("div",{className:"pager-container",__self:void 0,__source:{fileName:w,lineNumber:43,columnNumber:6}},(t.currentPage+1)*t.itemsPerPage<t.itemsTotal&&i.createElement("a",{href:"/more",className:"pager-more wt-bold",onClick:n=>{n.preventDefault(),e.paginationChange(t.currentPage+1)},__self:void 0,__source:{fileName:w,lineNumber:46,columnNumber:9}},"SHOW MORE")))};var E="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\EshopFilterTreeItem.jsx";const x=e=>{const[t,n]=(0,i.useState)(!1);return i.createElement("li",{className:"b-e-f-i "+(e.itemData.children.length?"wnd-with-subcategory":""),__self:void 0,__source:{fileName:E,lineNumber:19,columnNumber:3}},i.createElement("a",{href:"#",rel:"nofollow",className:"wnd-link",onClick:t=>{e.filterCategories(t,e.itemData.id)},__self:void 0,__source:{fileName:E,lineNumber:20,columnNumber:4}},e.itemData.title),!!e.itemData.children.length&&i.createElement(C,{categoriesData:e.itemData.children,showChildren:t,level:"max"!==e.level&&e.level<3?e.level+1:"max",filterCategories:e.filterCategories,__self:void 0,__source:{fileName:E,lineNumber:23,columnNumber:6}}),!!(e.itemData.children.length&&e.level<3)&&i.createElement("a",{className:"ef-arrow "+(t?"ef-up":"ef-down"),href:"#",onClick:e=>(e=>{e.preventDefault(),n(!t)})(e),__self:void 0,__source:{fileName:E,lineNumber:32,columnNumber:6}}))};var S="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\EshopFilterTree.jsx";const C=e=>i.createElement("ul",{className:`ef-level-${e.level} ${e.showChildren?"open":""}`,__self:void 0,__source:{fileName:S,lineNumber:5,columnNumber:2}},e.categoriesData.map((t=>i.createElement(x,{itemData:t,key:t.id,level:e.level,filterCategories:e.filterCategories,__self:void 0,__source:{fileName:S,lineNumber:7,columnNumber:4}}))));var N="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\EshopFilterSelect.jsx";const k=e=>{function t(e,t){let n="";for(let e=1;e<t&&e<3;e++)n+="  ",2===e&&(n+="  ");return n.length?`${n}- ${e}`:e}const n=function e(n,i,r){return n.forEach((n=>{i.push({optionValue:n.title,title:t(n.title,r),level:r}),n.children.length>0&&e(n.children,i,r+1)})),i}(e.categoriesData,[],1);return i.createElement("div",{className:"b-e-f-select",__self:void 0,__source:{fileName:N,lineNumber:37,columnNumber:3}},i.createElement("div",{className:"cf",__self:void 0,__source:{fileName:N,lineNumber:38,columnNumber:4}},i.createElement("div",{className:"select",__self:void 0,__source:{fileName:N,lineNumber:39,columnNumber:5}},i.createElement("select",{className:"wnd-filter-select",__self:void 0,__source:{fileName:N,lineNumber:40,columnNumber:6}},n.length&&n.map((e=>i.createElement("option",{value:e.title,key:e.id,__self:void 0,__source:{fileName:N,lineNumber:42,columnNumber:8}},e.title)))))))};var T="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\EshopFilter.jsx";const L=e=>i.createElement("div",{className:"b-e-f",__self:void 0,__source:{fileName:T,lineNumber:7,columnNumber:3}},i.createElement("div",{className:"b-e-f-c",__self:void 0,__source:{fileName:T,lineNumber:8,columnNumber:4}},i.createElement("h3",{className:"b-e-f-title",__self:void 0,__source:{fileName:T,lineNumber:9,columnNumber:5}},"Categories"),i.createElement(C,{categoriesData:e.categoriesData,level:1,filterCategories:e.filterCategories,__self:void 0,__source:{fileName:T,lineNumber:10,columnNumber:5}}),i.createElement(k,{categoriesData:e.categoriesData,filterCategories:e.filterCategories,__self:void 0,__source:{fileName:T,lineNumber:11,columnNumber:5}})));var P="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\EshopSort.jsx";const A=e=>i.createElement("select",{defaultValue:JSON.stringify(e.sortData),onChange:t=>{e.sortChange(t)},style:{position:"relative",top:"-20px"},__self:void 0,__source:{fileName:P,lineNumber:4,columnNumber:2}},i.createElement("option",{value:JSON.stringify({key:null,direction:null}),__self:void 0,__source:{fileName:P,lineNumber:5,columnNumber:3}},"VÝCHOZÍ ŘAZENÍ"),i.createElement("option",{value:JSON.stringify({key:"name",direction:"asc"}),__self:void 0,__source:{fileName:P,lineNumber:6,columnNumber:3}},"OD A DO Z"),i.createElement("option",{value:JSON.stringify({key:"name",direction:"desc"}),__self:void 0,__source:{fileName:P,lineNumber:7,columnNumber:3}},"OD Z DO A"),i.createElement("option",{value:JSON.stringify({key:"price",direction:"asc"}),__self:void 0,__source:{fileName:P,lineNumber:8,columnNumber:3}},"OD NEJLEVNĚJŠÍHO"),i.createElement("option",{value:JSON.stringify({key:"price",direction:"desc"}),__self:void 0,__source:{fileName:P,lineNumber:9,columnNumber:3}},"OD NEJDRAŽŠÍHO"));var I=n(877);const z=JSON.parse('{"variant":"default","gridCount":3,"classes":[],"sort":{"key":null,"direction":null},"filter":{"active":false,"activeCategory":null,"categories":[{"id":5489714,"title":"Category 1","children":[{"id":4556467,"title":"Category 1-1","children":[]},{"id":98765415,"title":"Category 1-2","children":[]}]},{"id":89745646,"title":"Category 2","children":[{"id":524565445,"title":"Category 2-1","children":[{"id":546546514,"title":"Category 2-1-1","children":[{"id":957541235,"title":"Category 2-1-1-1","children":[{"id":1435486746,"title":"Category 2-1-1-1-1","children":[]}]}]}]}]}]},"pagination":{"type":"default","itemsPerPage":3,"itemsTotal":8,"currentPage":0},"items":[{"id":200000007,"name":"1 Litre of longevity","image":{"id":134612168453,"title":"Image title for 1 Litre of longevity","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/3w/3wd/3wdysg.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/1b/1bo/450/1bofkp.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/1b/1bo/700/1bofkp.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"}]}]},"detailUrl":"/p/litre-of-longevity/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"35.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":"SALE!","available":true},{"id":200000006,"name":"2 Beneficial book","image":{"id":8465486312454,"title":"Image title for 2 Beneficial book","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/0w/0wx/0wxpg1.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/0w/0wx/450/0wxpg1.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/0w/0wx/700/0wxpg1.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/0w/0wx/0wxpg1.png"}]}]},"detailUrl":"/p/beneficial-book/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"19.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":false},{"id":200000005,"name":"3 Excellent encyclopedia","image":{"id":55654678465415,"title":"Image title for 3 Excellent encyclopedia","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/2n/2na/2na8w6.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/2n/2na/450/2na8w6.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/2n/2na/700/2na8w6.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/2n/2na/2na8w6.png"}]}]},"detailUrl":"/p/excellent-encyclopedia/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"79.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":200000004,"name":"4 Spacious sachet","image":{"id":98745641354654,"title":"Image title for 4 Spacious Sachet","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/30/30y/30yuqr.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/30/30y/450/30yuqr.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/30/30y/700/30yuqr.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/30/30y/30yuqr.png"}]}]},"detailUrl":"/p/spacious-sachet/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"2.5000","suffix":null,"suffixText":null},"comparativePrice":{"prefixText":null,"prefix":"£","value":"10.0000","suffix":null,"suffixText":null},"ribbon":null,"available":true},{"id":200000003,"name":"5 Pack of popcorn","image":{"id":4568721324545,"title":"Image title for 5 Pack of popcorn","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/0f/0fz/0fzrq5.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/0f/0fz/450/0fzrq5.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/0f/0fz/700/0fzrq5.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/0f/0fz/0fzrq5.png"}]}]},"detailUrl":"/p/pack-of-popcorn/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"35.6900","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":200000002,"name":"6 Fancy folder","image":{"id":4565657843545341,"title":"Image title for 6 Fancy folder","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/1y/1yp/1yp78v.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/1y/1yp/450/1yp78v.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/1y/1yp/700/1yp78v.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/1y/1yp/1yp78v.png"}]}]},"detailUrl":"/p/fancy-folder/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"12.3900","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":200000001,"name":"7 Birthday box","image":{"id":123454531545314,"title":"Image title for 7 Birthday box","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/3b/3b6/3b6ska.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/3b/3b6/450/3b6ska.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/3b/3b6/700/3b6ska.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/3b/3b6/3b6ska.png"}]}]},"detailUrl":"/p/birthday-box/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"7.9900","suffix":null,"suffixText":null},"comparativePrice":{"prefixText":null,"prefix":"£","value":"10.0000","suffix":null,"suffixText":null},"ribbon":null,"available":true},{"id":200000000,"name":"8 Bottle of bliss","image":{"id":123454531545314,"title":"Image title for 8 Bottle of bliss","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"},"sources":[{"mimeType":"image/png","sizes":[{"width":362,"height":450,"src":"https://static.d.webnodev.com/files/1b/1bo/450/1bofkp.png"},{"width":563,"height":700,"src":"https://static.d.webnodev.com/files/1b/1bo/700/1bofkp.png"},{"width":1181,"height":1468,"src":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"}]}]},"detailUrl":"/p/bottle-of-bliss/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"200.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true}]}'),D=JSON.parse('{"items":[{"id":200000007,"name":"SR1 Litre of longevity","image":{"id":134612168453,"title":"Image title for 1 Litre of longevity","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/3w/3wd/3wdysg.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/3w/3wd/450/3wdysg.png","700":"https://static.d.webnodev.com/files/3w/3wd/700/3wdysg.png","1920":"https://static.d.webnodev.com/files/3w/3wd/3wdysg.png"}}]},"detailUrl":"/p/litre-of-longevity/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"35.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":"SALE!","available":true},{"id":200000006,"name":"SR2 Beneficial book","image":{"id":8465486312454,"title":"Image title for 2 Beneficial book","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/0w/0wx/0wxpg1.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/0w/0wx/450/0wxpg1.png","700":"https://static.d.webnodev.com/files/0w/0wx/700/0wxpg1.png","1920":"https://static.d.webnodev.com/files/0w/0wx/0wxpg1.png"}}]},"detailUrl":"/p/beneficial-book/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"19.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":false},{"id":200000005,"name":"SR3 Excellent encyclopedia","image":{"id":55654678465415,"title":"Image title for 3 Excellent encyclopedia","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/2n/2na/2na8w6.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/2n/2na/450/2na8w6.png","700":"https://static.d.webnodev.com/files/2n/2na/700/2na8w6.png","1920":"https://static.d.webnodev.com/files/2n/2na/2na8w6.png"}}]},"detailUrl":"/p/excellent-encyclopedia/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"79.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":200000004,"name":"SR4 Spacious sachet","image":{"id":98745641354654,"title":"Image title for 4 Spacious Sachet","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/30/30y/30yuqr.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/30/30y/450/30yuqr.png","700":"https://static.d.webnodev.com/files/30/30y/700/30yuqr.png","1920":"https://static.d.webnodev.com/files/30/30y/30yuqr.png"}}]},"detailUrl":"/p/spacious-sachet/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"2.5000","suffix":null,"suffixText":null},"comparativePrice":{"prefixText":null,"prefix":"£","value":"10.0000","suffix":null,"suffixText":null},"ribbon":null,"available":true},{"id":200000003,"name":"SR5 Pack of popcorn","image":{"id":4568721324545,"title":"Image title for 5 Pack of popcorn","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/0f/0fz/0fzrq5.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/0f/0fz/450/0fzrq5.png","700":"https://static.d.webnodev.com/files/0f/0fz/700/0fzrq5.png","1920":"https://static.d.webnodev.com/files/0f/0fz/0fzrq5.png"}}]},"detailUrl":"/p/pack-of-popcorn/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"35.6900","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":200000002,"name":"SR6 Fancy folder","image":{"id":4565657843545341,"title":"Image title for 6 Fancy folder","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/1y/1yp/1yp78v.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/1y/1yp/450/1yp78v.png","700":"https://static.d.webnodev.com/files/1y/1yp/700/1yp78v.png","1920":"https://static.d.webnodev.com/files/1y/1yp/1yp78v.png"}}]},"detailUrl":"/p/fancy-folder/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"12.3900","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":200000001,"name":"SR7 Birthday box","image":{"id":123454531545314,"title":"Image title for 7 Birthday box","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/3b/3b6/3b6ska.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/3b/3b6/450/3b6ska.png","700":"https://static.d.webnodev.com/files/3b/3b6/700/3b6ska.png","1920":"https://static.d.webnodev.com/files/3b/3b6/3b6ska.png"}}]},"detailUrl":"/p/birthday-box/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"7.9900","suffix":null,"suffixText":null},"comparativePrice":{"prefixText":null,"prefix":"£","value":"10.0000","suffix":null,"suffixText":null},"ribbon":null,"available":true},{"id":200000000,"name":"SR8 Bottle of bliss","image":{"id":123454531545314,"title":"Image title for 8 Bottle of bliss","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/1b/1bo/450/1bofkp.png","700":"https://static.d.webnodev.com/files/1b/1bo/400/1bofkp.png","1920":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"}}]},"detailUrl":"/p/bottle-of-bliss/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"250.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":2000011230,"name":"SR9 Test product 1","image":{"id":123454531545314,"title":"Image title for 9 Test product 1","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/1b/1bo/450/1bofkp.png","700":"https://static.d.webnodev.com/files/1b/1bo/400/1bofkp.png","1920":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"}}]},"detailUrl":"/p/bottle-of-bliss/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"200.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true},{"id":2000011231,"name":"SR10 Test product 2","image":{"id":123454531545314,"title":"Image title for 10 Test product 2","size":{"width":1181,"height":1468},"orientation":"portrait","aspectRatio":"1181/1468","img":{"mimeType":"image/png","src":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"},"sources":[{"mimeType":"image/png","sizes":{"450":"https://static.d.webnodev.com/files/1b/1bo/450/1bofkp.png","700":"https://static.d.webnodev.com/files/1b/1bo/400/1bofkp.png","1920":"https://static.d.webnodev.com/files/1b/1bo/1bofkp.png"}}]},"detailUrl":"/p/bottle-of-bliss/","description":"Lorem ipsum doloret sit amet, very najs good prajs very najs bjutifl!","price":{"prefixText":null,"prefix":"£","value":"300.0000","suffix":null,"suffixText":null},"comparativePrice":null,"ribbon":null,"available":true}]}');var O="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\EshopEmpty.jsx";const R=()=>i.createElement("div",{className:"wnd-empty-placeholder",__self:void 0,__source:{fileName:O,lineNumber:4,columnNumber:2}},i.createElement("p",{__self:void 0,__source:{fileName:O,lineNumber:5,columnNumber:3}},i.createElement("strong",{__self:void 0,__source:{fileName:O,lineNumber:6,columnNumber:4}},"Products"),i.createElement("br",{__self:void 0,__source:{fileName:O,lineNumber:7,columnNumber:4}}),"This category is empty. Assign products to it or choose another category."));var q="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\general\\js\\AjaxError.jsx";const B=e=>i.createElement("p",{className:"error",__self:void 0,__source:{fileName:q,lineNumber:24,columnNumber:3}},function(t){const n=t.match(/(.*)<link1>(.*)<\/link1>(.*)/);return i.createElement(i.Fragment,null,n[1]&&i.createElement(i.Fragment,null,n[1]),n[2]&&i.createElement("a",{href:"#",onClick:t=>{e.refreshData(t)},__self:this,__source:{fileName:q,lineNumber:16,columnNumber:9}},n[2]),n[3]&&i.createElement(i.Fragment,null,n[3]))}(wnd.$system.labels["wnd.pc.SearchBlock.requestError"]));var F="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\eshop-react\\js\\EshopGrid.jsx";const M=e=>{const t={3:"(min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw",4:"(min-width: 900px) calc(100vw * 0.25), (min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw",5:"(min-width: 1200px) calc(100vw * 0.2), (min-width: 900px) calc(100vw * 0.25), (min-width: 768px) calc(100vw * 0.3), (min-width: 320px) calc(100vw * 0.5), 100vw"},[n,r]=(0,i.useState)({active:e.blockData.sort.active,key:e.blockData.sort.key,direction:e.blockData.sort.direction}),[s,o]=(0,i.useState)(!1),[a,l]=(0,i.useState)(!1);function c(e){const t=e.searchString?D:z;return new Promise(((n,i)=>{setTimeout((()=>{var i;n([...t.items].sort((i={key:e.sortKey,direction:e.sortDirection},function(e,t){return"name"===i.key?"asc"===i.direction?e[i.key].localeCompare(t[i.key]):t[i.key].localeCompare(e[i.key]):"price"===i.key?"asc"===i.direction?parseFloat(e[i.key].value)-parseFloat(t[i.key].value):parseFloat(t[i.key].value)-parseFloat(e[i.key].value):1})).slice("infinite"===e.paginationType?0:e.paginationCurrentPage*e.paginationItemsPerPage,"infinite"===e.paginationType?(e.paginationCurrentPage+1)*e.paginationItemsPerPage:e.paginationCurrentPage*e.paginationItemsPerPage+e.paginationItemsPerPage))}),1e3)}))}function u(t){void 0!==e.paginationChange?(o(!0),e.paginationChange(t).then((()=>{l(!1)})).catch((e=>{l(e)})).finally((()=>{o(!1)}))):(o(!0),e.blockElement.dispatchEvent(new CustomEvent("wnd-data-changed",{detail:{offset:"infinite"===e.blockData.pagination.type?0:t*e.blockData.pagination.itemsPerPage,limit:"infinite"===e.blockData.pagination.type?(t+1)*e.blockData.pagination.itemsPerPage:e.blockData.pagination.itemsPerPage,sortKey:n.key,sortDirection:n.direction,activeCategory:e.blockData.filter.activeCategory,langBe:wnd.$system.backendLanguage,langFe:wnd.$system.frontendLanguage,langFeId:wnd.$system.page.langId}})),(0,I.GI)()||window.history.replaceState(null,null,`?page=${t+1}${null!==n.key?`&sortKey=${n.key}`:""}${null!==n.direction?`&sortDirection=${n.direction}`:""}#${e.blockID}`))}const[d,p]=(0,i.useState)(!0);return(0,i.useEffect)((()=>{d||(o(!0),c({paginationCurrentPage:0,paginationType:e.blockData.pagination.type,paginationItemsPerPage:e.blockData.pagination.itemsPerPage,sortKey:n.key,sortDirection:n.direction}).then((t=>{const n=e.blockData;n.items=t,n.pagination.currentPage=0,e.updateData(n),o(!1)}))),p(!1)}),[e.blockData.pagination.type,e.blockData.pagination.itemsPerPage]),i.createElement("div",{className:`b-e b-e-g show-f b b-s ${"default"===e.blockData.variant?"b-e-sqr":"b-e-n"} grid-${e.blockData.gridCount} ${e.blockData.filter.active?"wnd-show-filter":""} ${s?"wnd-loading":""}`,__self:void 0,__source:{fileName:F,lineNumber:352,columnNumber:3}},i.createElement("div",{className:"b-e-c",__self:void 0,__source:{fileName:F,lineNumber:354,columnNumber:4}},!1!==n.active&&i.createElement(A,{sortChange:function(t){o(!0),e.blockElement.dispatchEvent(new CustomEvent("wnd-data-changed",{detail:{offset:"infinite"===e.blockData.pagination.type?0:e.blockData.pagination.currentPage*e.blockData.pagination.itemsPerPage,limit:"infinite"===e.blockData.pagination.type?(e.blockData.pagination.currentPage+1)*e.blockData.pagination.itemsPerPage:e.blockData.pagination.itemsPerPage,sortKey:JSON.parse(t.target.value).key,sortDirection:JSON.parse(t.target.value).direction,activeCategory:e.blockData.filter.activeCategory,langBe:wnd.$system.backendLanguage,langFe:wnd.$system.frontendLanguage,langFeId:wnd.$system.page.langId}})),o(!1)},sortData:n,__self:void 0,__source:{fileName:F,lineNumber:355,columnNumber:35}}),!1!==e.blockData.filter.active&&i.createElement(L,{categoriesData:e.blockData.filter.categories,filterCategories:function(t,i){t.preventDefault(),e.blockElement.dispatchEvent(new CustomEvent("wnd-data-changed",{detail:{offset:"infinite"===e.blockData.pagination.type?0:e.blockData.pagination.currentPage*e.blockData.pagination.itemsPerPage,limit:"infinite"===e.blockData.pagination.type?(e.blockData.pagination.currentPage+1)*e.blockData.pagination.itemsPerPage:e.blockData.pagination.itemsPerPage,sortKey:n.key,sortDirection:n.direction,activeCategory:i,langBe:wnd.$system.backendLanguage,langFe:wnd.$system.frontendLanguage,langFeId:wnd.$system.page.langId}}))},__self:void 0,__source:{fileName:F,lineNumber:356,columnNumber:49}}),i.createElement("div",{className:"b-e-w",__self:void 0,__source:{fileName:F,lineNumber:358,columnNumber:5}},i.createElement("div",{className:"b-e-w-correct",__self:void 0,__source:{fileName:F,lineNumber:359,columnNumber:6}},i.createElement("div",{className:"b-e-box",__self:void 0,__source:{fileName:F,lineNumber:360,columnNumber:7}},!!e.blockData.items.length&&e.blockData.items.map(((n,r)=>i.createElement(b,{itemData:n,key:r,imageSizes:t[e.blockData.gridCount],__self:void 0,__source:{fileName:F,lineNumber:362,columnNumber:54}})))),i.createElement("div",{className:"loading",__self:void 0,__source:{fileName:F,lineNumber:365,columnNumber:7}},i.createElement("div",{className:"loading-loader",__self:void 0,__source:{fileName:F,lineNumber:366,columnNumber:8}}))),e.blockData.pagination.itemsTotal>e.blockData.pagination.itemsPerPage&&i.createElement(_,{paginationData:e.blockData.pagination,paginationChange:u,__self:void 0,__source:{fileName:F,lineNumber:372,columnNumber:8}}),!e.blockData.items.length&&(0,I.GI)()&&i.createElement(R,{__self:void 0,__source:{fileName:F,lineNumber:379,columnNumber:10}}),a&&i.createElement(B,{refreshData:function(t){t.preventDefault(),u(e.blockData.pagination.currentPage)},__self:void 0,__source:{fileName:F,lineNumber:381,columnNumber:20}})),i.createElement("div",{className:"cf",__self:void 0,__source:{fileName:F,lineNumber:385,columnNumber:5}})))};var j="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\search-results\\js\\SearchResultsContentItem.jsx";const H=e=>i.createElement("article",{className:"b-sr-ci",__self:void 0,__source:{fileName:j,lineNumber:4,columnNumber:2}},i.createElement("div",{className:"b-sr-ci-head",__self:void 0,__source:{fileName:j,lineNumber:5,columnNumber:3}},i.createElement("h2",{__self:void 0,__source:{fileName:j,lineNumber:6,columnNumber:4}},i.createElement("strong",{__self:void 0,__source:{fileName:j,lineNumber:7,columnNumber:5}},i.createElement("a",{href:e.itemData.detailUrl,dangerouslySetInnerHTML:{__html:e.itemData.name},__self:void 0,__source:{fileName:j,lineNumber:8,columnNumber:6}}))),i.createElement("div",{className:"b-sr-ci-link",__self:void 0,__source:{fileName:j,lineNumber:11,columnNumber:4}},i.createElement("a",{href:e.itemData.detailUrl,__self:void 0,__source:{fileName:j,lineNumber:12,columnNumber:5}},e.itemData.detailUrl))),i.createElement("div",{className:"b-sr-ci-text b-text",dangerouslySetInnerHTML:{__html:e.itemData.longTextWithHighlightedPhrase},__self:void 0,__source:{fileName:j,lineNumber:15,columnNumber:3}}));var $="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\search-results\\js\\SearchResultsContentTab.jsx";const W=e=>{const[t,n]=(0,i.useState)(!1),[r,s]=(0,i.useState)(!1);function o(t){n(!0);const i=new URLSearchParams(window.location.search);window.history.replaceState(null,null,`?text=${i.get("text")}&tab=${e.blockData.type}&page=${t+1}`);const r="pages"===e.blockData.type?"searchPages":"searchListingItems",o=e.blockData,a={query:i.get("text"),offset:"infinite"===e.blockData.pagination.type?0:t*e.blockData.pagination.itemsPerPage,limit:"infinite"===e.blockData.pagination.type?(t+1)*e.blockData.pagination.itemsPerPage:e.blockData.pagination.itemsPerPage,langBe:wnd.$system.backendLanguage,langFe:wnd.$system.frontendLanguage,langFeId:wnd.$system.page.langId},l=`query FetchSearchProducts(\n\t\t\t$query: String!,\n\t\t\t$offset: Int!,\n\t\t\t$limit: Int!,\n\t\t) {\n\t\t\t${r}(\n\t\t\t\tquery: $query\n\t\t\t) {\n\t\t\t\titems(limit: $limit, offset: $offset) {\n\t\t\t\t\tid,\n\t\t\t\t\tname,\n\t\t\t\t\tdetailUrl,\n\t\t\t\t\tshortTextWithHighlightedPhrase(phrase: $query),\n\t\t\t\t\tlongTextWithHighlightedPhrase(phrase: $query)\n\t\t\t\t}\n\t\t\t\tcount\n\t\t\t}\n\t\t}`,c=new Request("/servers/graphql/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:l,variables:a})});fetch(c).then((e=>e.json())).then((e=>{o.items=e.data[r].items,o.pagination.currentPage=t,s(!1)})).catch((e=>{o.pagination.currentPage=t,s(e)})).finally((()=>{e.updateData(o),n(!1)}))}return i.createElement("div",{className:"b-sr-list-results-tab-wrapper "+(t?"wnd-loading":""),__self:void 0,__source:{fileName:$,lineNumber:98,columnNumber:3}},i.createElement("div",{className:"b-sr-list-results-tab-content",__self:void 0,__source:{fileName:$,lineNumber:99,columnNumber:4}},!!e.blockData.pagination.itemsTotal&&!r&&e.blockData.items.map((e=>i.createElement(H,{itemData:e,key:e.id,__self:void 0,__source:{fileName:$,lineNumber:102,columnNumber:47}}))),!e.blockData.pagination.itemsTotal&&!r&&i.createElement("p",{__self:void 0,__source:{fileName:$,lineNumber:105,columnNumber:9}},wnd.$system.labels["wnd.pc.SearchResultsZone.emptyResult"]),r&&i.createElement(B,{refreshData:function(t){t.preventDefault(),o(e.blockData.pagination.currentPage)},__self:void 0,__source:{fileName:$,lineNumber:107,columnNumber:19}})),t&&i.createElement("div",{className:"loading",__self:void 0,__source:{fileName:$,lineNumber:113,columnNumber:6}},i.createElement("div",{className:"loading-loader",__self:void 0,__source:{fileName:$,lineNumber:114,columnNumber:7}})),e.blockData.pagination.itemsTotal>e.blockData.pagination.itemsPerPage&&!r&&i.createElement(_,{paginationData:e.blockData.pagination,paginationChange:o,__self:void 0,__source:{fileName:$,lineNumber:120,columnNumber:6}}))},U="default",V=20,Z=10;var G="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\search-results\\js\\SearchResultsComponent.jsx";const Q=e=>{const t=new URLSearchParams(window.location.search).get("text")||e.blockData.searchString||"",n=wnd.$system.hasBlog,r=wnd.$system.isEshop,s=wnd.$system.isCms?!1!==wnd.$system.cmsReleasedFeatures.siteFulltextSearch:!1!==wnd.$system.feReleasedFeatures.siteFulltextSearch;function o(){const e=new URLSearchParams(window.location.search);return parseInt(e.get("page"),10)-1||0}const[a,l]=(0,i.useState)(new URLSearchParams(window.location.search).get("tab")||function(){if(!s)return"products";let i=r?"products":"pages";return e.blockData.searchProducts.count&&r||(e.blockData.searchPages.count?i="pages":e.blockData.searchListingItems.count&&n&&(i="blogposts"),window.history.replaceState(null,null,`?text=${t}&tab=${i}`)),i}());function c(e,n){e.preventDefault(),l(n),function(e){if((0,I.GI)())return;let n=`?text=${t}&tab=${e}`,i=0;switch(e){case"products":i=p.pagination.currentPage;break;case"pages":i=m.pagination.currentPage;break;case"blogposts":i=g.pagination.currentPage}n+=i>0?`&page=${i+1}`:"",window.history.replaceState(null,null,n)}(n)}const u={type:U,itemsPerPage:Z,itemsTotal:0,currentPage:0},d={variant:U,gridCount:4,classes:[],sort:{active:!1,key:null,direction:null},filter:{active:!1,categories:[],activeCategory:null},pagination:{...u,itemsPerPage:V,itemsTotal:e.blockData.searchProducts.count,currentPage:"products"===a?o():0},searchString:t},[p,h]=(0,i.useState)({...d,items:e.blockData.searchProducts.items}),[m,f]=(0,i.useState)({pagination:{...u,itemsTotal:e.blockData.searchPages.count,currentPage:"pages"===a?o():0},items:e.blockData.searchPages.items,type:"pages"}),[g,v]=(0,i.useState)({pagination:{...u,itemsTotal:e.blockData.searchListingItems.count,currentPage:"blogposts"===a?o():0},items:e.blockData.searchListingItems.items,type:"blogposts"});function y(e){switch(a){case"products":h({...e});break;case"pages":f({...e});break;case"blogposts":v({...e})}}return i.createElement(i.Fragment,null,i.createElement("div",{className:"b-sr-head b-text cf",__self:void 0,__source:{fileName:G,lineNumber:293,columnNumber:4}},i.createElement("h1",{className:"b-sr-title",__self:void 0,__source:{fileName:G,lineNumber:294,columnNumber:5}},i.createElement("span",{__self:void 0,__source:{fileName:G,lineNumber:295,columnNumber:6}},wnd.$system.labels["wnd.pc.SearchResultsZone.title"]," "),i.createElement("strong",{__self:void 0,__source:{fileName:G,lineNumber:296,columnNumber:6}},t))),i.createElement("div",{className:"b-sr-nav line-style line-color cf",__self:void 0,__source:{fileName:G,lineNumber:300,columnNumber:4}},s&&i.createElement("ul",{__self:void 0,__source:{fileName:G,lineNumber:303,columnNumber:9}},r&&i.createElement("li",{__self:void 0,__source:{fileName:G,lineNumber:306,columnNumber:8}},i.createElement("a",{href:"#products",className:"b-sr-tab "+("products"===a?"active":""),onClick:e=>{c(e,"products")},__self:void 0,__source:{fileName:G,lineNumber:307,columnNumber:9}},i.createElement("span",{className:"wt-bold",__self:void 0,__source:{fileName:G,lineNumber:308,columnNumber:10}},wnd.$system.labels["wnd.pc.SearchResultsZone.productsTitle"]),i.createElement("span",{__self:void 0,__source:{fileName:G,lineNumber:309,columnNumber:10}}," (",p.pagination.itemsTotal,")"))),i.createElement("li",{__self:void 0,__source:{fileName:G,lineNumber:313,columnNumber:6}},i.createElement("a",{href:"#pages",className:"b-sr-tab "+("pages"===a?"active":""),onClick:e=>{c(e,"pages")},__self:void 0,__source:{fileName:G,lineNumber:314,columnNumber:7}},i.createElement("span",{className:"wt-bold",__self:void 0,__source:{fileName:G,lineNumber:315,columnNumber:8}},wnd.$system.labels["wnd.pc.SearchResultsZone.pagesTitle"]),i.createElement("span",{__self:void 0,__source:{fileName:G,lineNumber:316,columnNumber:8}}," (",m.pagination.itemsTotal,")"))),n&&i.createElement("li",{__self:void 0,__source:{fileName:G,lineNumber:321,columnNumber:8}},i.createElement("a",{href:"#blogPosts",className:"b-sr-tab "+("blogposts"===a?"active":""),onClick:e=>{c(e,"blogposts")},__self:void 0,__source:{fileName:G,lineNumber:322,columnNumber:9}},i.createElement("span",{className:"wt-bold",__self:void 0,__source:{fileName:G,lineNumber:323,columnNumber:10}},wnd.$system.labels["wnd.pc.SearchResultsZone.listingItemsTitle"]),i.createElement("span",{__self:void 0,__source:{fileName:G,lineNumber:324,columnNumber:10}}," (",g.pagination.itemsTotal,")"))))),i.createElement("div",{className:"b-sr-main cf",__self:void 0,__source:{fileName:G,lineNumber:331,columnNumber:4}},r&&i.createElement("div",{className:"b-sr-list-results-tab "+("products"===a?"active":""),__self:void 0,__source:{fileName:G,lineNumber:335,columnNumber:7}},p.pagination.itemsTotal>0&&i.createElement(M,{blockData:p,blockID:e.blockID,updateData:y,paginationChange:function(e){return new Promise(((n,i)=>{(0,I.GI)()||window.history.replaceState(null,null,`?text=${t}&tab=products&page=${e+1}`);const r={query:t,offset:"infinite"===p.pagination.type?0:e*p.pagination.itemsPerPage,limit:"infinite"===p.pagination.type?(e+1)*p.pagination.itemsPerPage:p.pagination.itemsPerPage,langBe:wnd.$system.backendLanguage,langFe:wnd.$system.frontendLanguage,langFeId:wnd.$system.page.langId},s=new Request("/servers/graphql/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:"query FetchSearchProducts(\n\t\t\t\t$query: String!,\n\t\t\t\t$offset: Int!,\n\t\t\t\t$limit: Int!,\n\t\t\t) {\n\t\t\t    searchProducts(\n\t\t\t        query: $query\n\t\t\t    ) {\n\t\t\t        items(limit: $limit, offset: $offset) {\n\t\t\t            id,\n\t\t\t            name,\n\t\t\t            nameWithHighlightedPhrase(phrase: $query),\n\t\t\t            description,\n\t\t\t            image {id, title, orientation, aspectRatio, size {width, height}, img {mimeType, src}, sources {mimeType, sizes {width, height, src}}},\n\t\t\t            detailUrl,\n\t\t\t            price {prefixText, prefix, value, suffix, suffixText},\n\t\t\t            comparativePrice {prefix, value, suffix},\n\t\t\t            ribbon,\n\t\t\t            available\n\t\t\t        }\n\t\t\t        count\n\t\t\t    }\n\t\t\t}",variables:r})});fetch(s).then((e=>e.json())).then((t=>{const i=p;i.items=t.data.searchProducts.items,i.pagination.currentPage=e,h(i),n(!0)})).catch((e=>{i(e)}))}))},__self:void 0,__source:{fileName:G,lineNumber:336,columnNumber:51}}),0===p.pagination.itemsTotal&&i.createElement("div",{className:"b-sr-list-results-tab-wrapper",__self:void 0,__source:{fileName:G,lineNumber:339,columnNumber:10}},i.createElement("div",{className:"b-sr-list-results-tab-content",__self:void 0,__source:{fileName:G,lineNumber:340,columnNumber:11}},i.createElement("p",{__self:void 0,__source:{fileName:G,lineNumber:341,columnNumber:12}},wnd.$system.labels["wnd.pc.SearchResultsZone.emptyResult"])))),s&&i.createElement("div",{className:"b-sr-list-results-tab "+("pages"===a?"active":""),__self:void 0,__source:{fileName:G,lineNumber:349,columnNumber:9}},i.createElement(W,{blockData:m,blockID:e.blockID,updateData:y,__self:void 0,__source:{fileName:G,lineNumber:350,columnNumber:6}})),s&&n&&i.createElement("div",{className:"b-sr-list-results-tab "+("blogposts"===a?"active":""),__self:void 0,__source:{fileName:G,lineNumber:354,columnNumber:9}},i.createElement(W,{blockData:g,blockID:e.blockID,updateData:y,__self:void 0,__source:{fileName:G,lineNumber:355,columnNumber:6}}))))};const X="data-content",Y=document.querySelector(".s-srd-rr");if(Y){const e=JSON.parse(Y.getAttribute(X));Y.removeAttribute(X),(0,r.createRoot)(Y).render(i.createElement(Q,{blockData:e,blockElement:Y,__self:void 0,__source:{fileName:"C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\search-results\\js\\SearchResultsApp.jsx",lineNumber:22,columnNumber:3}})),Y.classList.remove("wnd-loading"),(0,I.Lv)(Y)}},468:(e,t,n)=>{"use strict";var i=n(466),r=n(897);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}function a(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var d="function"==typeof Symbol&&Symbol.observable||"@@observable",p=function(){return Math.random().toString(36).substring(7).split("").join(".")},h={INIT:"@@redux/INIT"+p(),REPLACE:"@@redux/REPLACE"+p(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+p()}};function m(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(u(1));return n(f)(e,t)}if("function"!=typeof e)throw new Error(u(2));var r=e,s=t,o=[],a=o,l=!1;function c(){a===o&&(a=o.slice())}function p(){if(l)throw new Error(u(3));return s}function g(e){if("function"!=typeof e)throw new Error(u(4));if(l)throw new Error(u(5));var t=!0;return c(),a.push(e),function(){if(t){if(l)throw new Error(u(6));t=!1,c();var n=a.indexOf(e);a.splice(n,1),o=null}}}function v(e){if(!m(e))throw new Error(u(7));if(void 0===e.type)throw new Error(u(8));if(l)throw new Error(u(9));try{l=!0,s=r(s,e)}finally{l=!1}for(var t=o=a,n=0;n<t.length;n++){(0,t[n])()}return e}return v({type:h.INIT}),(i={dispatch:v,subscribe:g,getState:p,replaceReducer:function(e){if("function"!=typeof e)throw new Error(u(10));r=e,v({type:h.REPLACE})}})[d]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(u(11));function n(){e.next&&e.next(p())}return n(),{unsubscribe:t(n)}}})[d]=function(){return this},e},i}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var v=n(952),y=n(345),b=n(116);let w=function(e){e()};const _=()=>w,E=Symbol.for(`react-redux-context-${i.version}`),x=globalThis;const S=new Proxy({},new Proxy({},{get(e,t){const n=function(){let e=x[E];return e||(e=(0,i.createContext)(null),x[E]=e),e}();return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];return Reflect[t](n,...r)}}}));let C=null;function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},N.apply(this,arguments)}function k(e,t){if(null==e)return{};var n,i,r={},s=Object.keys(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}var T=n(773),L=n.n(T),P=n(722);const A=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function I(e,t,n,i,r){let s,o,a,l,c,{areStatesEqual:u,areOwnPropsEqual:d,areStatePropsEqual:p}=r,h=!1;function m(r,h){const m=!d(h,o),f=!u(r,s,h,o);return s=r,o=h,m&&f?(a=e(s,o),t.dependsOnOwnProps&&(l=t(i,o)),c=n(a,l,o),c):m?(e.dependsOnOwnProps&&(a=e(s,o)),t.dependsOnOwnProps&&(l=t(i,o)),c=n(a,l,o),c):f?function(){const t=e(s,o),i=!p(t,a);return a=t,i&&(c=n(a,l,o)),c}():c}return function(r,u){return h?m(r,u):(s=r,o=u,a=e(s,o),l=t(i,o),c=n(a,l,o),h=!0,c)}}function z(e){return function(t){const n=e(t);function i(){return n}return i.dependsOnOwnProps=!1,i}}function D(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function O(e,t){return function(t,n){let{displayName:i}=n;const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=D(e);let i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=D(i),i=r(t,n)),i},r}}function R(e,t){return(n,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function q(e,t,n){return N({},n,e,t)}const B={notify(){},get:()=>[]};function F(e,t){let n,i=B;function r(){o.onStateChange&&o.onStateChange()}function s(){n||(n=t?t.addNestedSub(r):e.subscribe(r),i=function(){const e=_();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let i=!0,r=n={callback:e,next:null,prev:n};return r.prev?r.prev.next=r:t=r,function(){i&&null!==t&&(i=!1,r.next?r.next.prev=r.prev:n=r.prev,r.prev?r.prev.next=r.next:t=r.next)}}}}())}const o={addNestedSub:function(e){return s(),i.subscribe(e)},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:r,isSubscribed:function(){return Boolean(n)},trySubscribe:s,tryUnsubscribe:function(){n&&(n(),n=void 0,i.clear(),i=B)},getListeners:()=>i};return o}const M=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?i.useLayoutEffect:i.useEffect;function j(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function H(e,t){if(j(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!j(e[n[i]],t[n[i]]))return!1;return!0}const W=["reactReduxForwardedRef"];let U=()=>{throw new Error("uSES not initialized!")};const V=[null,null];function Z(e,t,n,i,r,s){e.current=i,n.current=!1,r.current&&(r.current=null,s())}function G(e,t){return e===t}const Q=function(e,t,n){let{pure:r,areStatesEqual:s=G,areOwnPropsEqual:o=H,areStatePropsEqual:a=H,areMergedPropsEqual:l=H,forwardRef:c=!1,context:u=S}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const d=u,p=function(e){return e?"function"==typeof e?O(e):R(e,"mapStateToProps"):z((()=>({})))}(e),h=function(e){return e&&"object"==typeof e?z((t=>function(e,t){const n={};for(const i in e){const r=e[i];"function"==typeof r&&(n[i]=function(){return t(r(...arguments))})}return n}(e,t))):e?"function"==typeof e?O(e):R(e,"mapDispatchToProps"):z((e=>({dispatch:e})))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,n){let i,{displayName:r,areMergedPropsEqual:s}=n,o=!1;return function(t,n,r){const a=e(t,n,r);return o?s(a,i)||(i=a):(o=!0,i=a),i}}}(e):R(e,"mergeProps"):()=>q}(n),f=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:f,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:h,initMergeProps:m,areStatesEqual:s,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:l};function u(t){const[n,s,o]=(0,i.useMemo)((()=>{const{reactReduxForwardedRef:e}=t,n=k(t,W);return[t.context,e,n]}),[t]),a=(0,i.useMemo)((()=>n&&n.Consumer&&(0,P.isContextConsumer)(i.createElement(n.Consumer,null))?n:d),[n,d]),l=(0,i.useContext)(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const p=c?t.store:l.store,h=u?l.getServerState:p.getState,m=(0,i.useMemo)((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:i,initMergeProps:r}=t,s=k(t,A);return I(n(e,s),i(e,s),r(e,s),e,s)}(p.dispatch,r)),[p]),[g,v]=(0,i.useMemo)((()=>{if(!f)return V;const e=F(p,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,l]),y=(0,i.useMemo)((()=>c?l:N({},l,{subscription:g})),[c,l,g]),b=(0,i.useRef)(),w=(0,i.useRef)(o),_=(0,i.useRef)(),E=(0,i.useRef)(!1),x=((0,i.useRef)(!1),(0,i.useRef)(!1)),S=(0,i.useRef)();M((()=>(x.current=!0,()=>{x.current=!1})),[]);const C=(0,i.useMemo)((()=>()=>_.current&&o===w.current?_.current:m(p.getState(),o)),[p,o]),T=(0,i.useMemo)((()=>e=>g?function(e,t,n,i,r,s,o,a,l,c,u){if(!e)return()=>{};let d=!1,p=null;const h=()=>{if(d||!a.current)return;const e=t.getState();let n,h;try{n=i(e,r.current)}catch(e){h=e,p=e}h||(p=null),n===s.current?o.current||c():(s.current=n,l.current=n,o.current=!0,u())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(f,p,g,m,w,b,E,x,_,v,e):()=>{}),[g]);var L,z,D;let O;L=Z,z=[w,b,E,o,_,v],M((()=>L(...z)),D);try{O=U(T,C,h?()=>m(h(),o):C)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}M((()=>{S.current=void 0,_.current=void 0,b.current=O}));const R=(0,i.useMemo)((()=>i.createElement(e,N({},O,{ref:s}))),[s,e,O]);return(0,i.useMemo)((()=>f?i.createElement(a.Provider,{value:y},R):R),[a,R,y])}const g=i.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){const t=i.forwardRef((function(e,t){return i.createElement(g,N({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,L()(t,e)}return L()(g,e)}};const X=function(e){let{store:t,context:n,children:r,serverState:s,stabilityCheck:o="once",noopCheck:a="once"}=e;const l=(0,i.useMemo)((()=>{const e=F(t);return{store:t,subscription:e,getServerState:s?()=>s:void 0,stabilityCheck:o,noopCheck:a}}),[t,s,o,a]),c=(0,i.useMemo)((()=>t.getState()),[t]);M((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,c]);const u=n||S;return i.createElement(u.Provider,{value:l},r)};var Y,K;Y=y.useSyncExternalStoreWithSelector,C=Y,(e=>{U=e})(v.useSyncExternalStore),K=b.unstable_batchedUpdates,w=K;var J=n(74),ee=n.n(J);function te(e){return function(t){var n=t.dispatch,i=t.getState;return function(t){return function(r){return"function"==typeof r?r(n,i,e):t(r)}}}}var ne=te();ne.withExtraArgument=te;const ie=ne,re="UPDATE_VALUE",se=(e,t)=>({type:re,key:e,value:t});var oe=n(850),ae="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\search\\js\\SearchBar.jsx";class le extends i.Component{componentDidUpdate(e,t,n){e.searchQuery!==this.props.searchQuery&&this.props.searchQuery.length<3&&this.props.saveSearchSuggestBoxOpen(!1)}removeOverlay=()=>{this.props.bodyElm.classList.remove("search-active");const e=this;setTimeout((()=>{oe.B.removeOverlay("search-overlay"),e.props.setOverlayStatus(!1)}),200)};handleChange=e=>{clearTimeout(this.debounce),this.debounce=setTimeout((()=>{const t=e.target.value;this.props.saveSearchQuery(t),this.props.searchOverlayVisible||this.props.addOverlay(),"searchBar"===this.props.searchVariant&&"desktop"===this.props.searchResponsive&&""===e.target.value&&this.removeOverlay()}),e.target.value.length?500:0)};handleEnter=e=>{"Enter"!==e.key&&13!==e.keyCode||this.handleSubmit()};handleSubmit=()=>{window.location.href=`${this.props.searchPrefix}?text=${this.props.inputRef.current.value}`};handleClose=()=>{this.props.hideSearchBar(),this.removeOverlay(),this.props.saveSearchSuggestBoxOpen(!1)};render(){return i.createElement("div",{className:"search-bar",__self:this,__source:{fileName:ae,lineNumber:121,columnNumber:4}},i.createElement("input",{onChange:this.handleChange,onKeyDown:this.handleEnter,className:"search-bar-input","wnd-search-input":"",placeholder:this.props.locPlaceholderText,ref:this.props.inputRef,__self:this,__source:{fileName:ae,lineNumber:124,columnNumber:5}}),i.createElement("input",{type:"submit",className:"search-bar-submit",value:"",onClick:this.handleSubmit,__self:this,__source:{fileName:ae,lineNumber:134,columnNumber:5}}),("searchIcon"===this.props.searchVariant||"searchBar"===this.props.searchVariant&&"mobile"===this.props.searchResponsive)&&i.createElement("span",{className:"search-bar-close",role:"button","aria-label":"seach",tabIndex:"0",onClick:this.handleClose,onKeyPress:this.handleClose,__self:this,__source:{fileName:ae,lineNumber:148,columnNumber:7}}))}}le.propTypes={searchQuery:ee().string,searchVariant:ee().string,searchResponsive:ee().string,searchOverlayVisible:ee().bool,saveSearchSuggestBoxOpen:ee().func,bodyElm:ee().instanceOf(Element),saveSearchQuery:ee().func,addOverlay:ee().func,searchPrefix:ee().string,hideSearchBar:ee().func,locPlaceholderText:ee().string,inputRef:ee().shape({current:ee().instanceOf(HTMLInputElement)})};const ce=Q((e=>({searchQuery:e.searchQuery,searchBarOpen:e.searchBarOpen,searchVariant:e.searchVariant,searchResponsive:e.searchResponsive,searchOverlayVisible:e.searchOverlayVisible,searchOverlayLocation:e.searchOverlayLocation,searchSuggestBoxOpen:e.searchSuggestBoxOpen,searchBarVisible:e.searchBarVisible})),(e=>({saveSearchQuery:t=>e(se("searchQuery",t)),setOverlayStatus:t=>e(se("searchOverlayVisible",t)),saveSearchSuggestBoxOpen:t=>e(se("searchSuggestBoxOpen",t)),saveSearchBarVisible:t=>e(se("searchBarVisible",t))})))(le);var ue="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\search\\js\\SearchIcon.jsx";class de extends i.Component{handleClick=()=>{this.props.saveSearchOpenClass("open"),this.props.saveSearchBarVisible(!0),this.props.inputRef.current.focus(),this.props.searchOverlayVisible||this.props.addOverlay()};render(){return i.createElement("div",{className:"search-icon",onClick:this.handleClick,onKeyPress:this.handleClick,role:"button","aria-label":"seach",tabIndex:"0",__self:this,__source:{fileName:ue,lineNumber:43,columnNumber:4}},i.createElement("div",{className:"search-icon-text",__self:this,__source:{fileName:ue,lineNumber:51,columnNumber:5}},this.props.locSearchText))}}de.propTypes={searchOverlayVisible:ee().bool,saveSearchOpenClass:ee().func,saveSearchBarVisible:ee().func,inputRef:ee().shape({current:ee().instanceOf(HTMLInputElement)}),addOverlay:ee().func,locSearchText:ee().string};const pe=Q((e=>({searchBarOpen:e.searchBarOpen,searchOverlayVisible:e.searchOverlayVisible,searchOverlayLocation:e.searchOverlayLocation})),(e=>({setOverlayStatus:t=>e(se("searchOverlayVisible",t)),saveSearchOpenClass:t=>e(se("searchOpenClass",t)),saveSearchBarVisible:t=>e(se("searchBarVisible",t))})))(de);var he=n(914),me="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\search\\js\\SearchSuggestBox.jsx";class fe extends i.Component{constructor(e){super(e),this.state={resultsPageLink:""},this.ssbWrapperRef=i.createRef(),this.debounce=null}componentDidMount(){this.activateScroll(),window.addEventListener("resize",this.activateScroll),window.addEventListener("orientationchange",this.activateScroll),window.addEventListener("touchstart",this.hidePhoneKeyboard),window.addEventListener("resize",this.setPositionInSidebar),window.addEventListener("orientationchange",this.setPositionInSidebar),this.props.searchElm.addEventListener("wnd-redraw",(()=>{this.setPositionInSidebar()}))}componentDidUpdate(e,t,n){e.searchQuery!==this.props.searchQuery&&(this.props.searchQuery.length>=2&&this.props.getData(this.props.searchQuery),this.setState({resultsPageLink:`${this.props.searchPrefix}?text=${this.props.searchQuery}`})),(e.searchResults!==this.props.searchResults||!1===e.searchSuggestBoxOpen&&!0===this.props.searchSuggestBoxOpen||!0===e.searchSuggestBoxOpen&&!1===this.props.searchSuggestBoxOpen)&&(this.setPositionInSidebar(),this.activateScroll())}componentWillUnmount(){window.removeEventListener("resize",this.activateScroll),window.removeEventListener("orientationchange",this.activateScroll),window.removeEventListener("touchstart",this.hidePhoneKeyboard),window.removeEventListener("resize",this.setPositionInSidebar),window.removeEventListener("orientationchange",this.setPositionInSidebar)}activateScroll=()=>{if(null!==this.ssbWrapperRef.current&&!this.props.headerElm.classList.contains("s-hn-bottom")){const e=this.ssbWrapperRef.current.getBoundingClientRect().top,t=window.innerHeight;if(this.ssbWrapperRef.current.scrollHeight>=t-e){const n="mobile"===this.props.searchResponsive?0:20;this.ssbWrapperRef.current.style.overflowY="scroll",this.ssbWrapperRef.current.style.maxHeight=t-e-n+"px"}else this.ssbWrapperRef.current.style.overflowY="hidden",this.ssbWrapperRef.current.style.maxHeight="none"}};hidePhoneKeyboard=()=>{this.props.inputRef.current.blur()};setPositionInSidebar=()=>{const e=this.props.inputRef.current,t=this.ssbWrapperRef.current,n=document.getElementsByClassName("s-f")[0],i=document.querySelector(".s-f .s-c");if(t){if(this.props.searchInSidebar&&"searchBar"===this.props.searchVariant)if("desktop"===this.props.searchResponsive){const r=e.getBoundingClientRect().top+e.offsetHeight+5;t.style.top=`${r}px`;r+parseInt(t.offsetHeight,10)>window.innerHeight-this.props.layoutFooterElm.offsetHeight+parseInt(window.getComputedStyle(i).paddingTop,10)?n.classList.add("invisible"):n.classList.contains("invisible")&&n.classList.remove("invisible")}else t.style.top="",n.classList.contains("invisible")&&n.classList.remove("invisible")}else n.classList.contains("invisible")&&n.classList.remove("invisible")};searchResults;render(){return i.createElement("div",{className:"search-results",__self:this,__source:{fileName:me,lineNumber:208,columnNumber:4}},this.props.searchSuggestBoxOpen&&this.props.searchQuery.length>=2&&void 0!==this.props.searchResults&&void 0!==this.props.searchResults.data&&this.props.searchResults.data.searchProducts.count+this.props.searchResults.data.searchPages.count+this.props.searchResults.data.searchListingItems.count>0&&i.createElement("div",{className:"ssb-wrapper",ref:this.ssbWrapperRef,__self:this,__source:{fileName:me,lineNumber:224,columnNumber:7}},i.createElement("div",{className:"ssb-results",__self:this,__source:{fileName:me,lineNumber:225,columnNumber:8}},this.props.searchResults.data.searchProducts.count>0&&wnd.$system.isEshop&&i.createElement("div",{className:"ssb-results-box",__self:this,__source:{fileName:me,lineNumber:229,columnNumber:11}},i.createElement("div",{className:"ssb-category-header",__self:this,__source:{fileName:me,lineNumber:230,columnNumber:12}},i.createElement("div",{className:"ssb-category-header-title",__self:this,__source:{fileName:me,lineNumber:231,columnNumber:13}},i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:232,columnNumber:14}},this.props.locProducts),i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:233,columnNumber:14}},` (${this.props.searchResults.data.searchProducts.count})`)),i.createElement("div",{className:"ssb-category-header-link",__self:this,__source:{fileName:me,lineNumber:235,columnNumber:13}},i.createElement("a",{href:`${this.props.searchPrefix}?text=${this.props.searchQuery}&tab=products`,__self:this,__source:{fileName:me,lineNumber:236,columnNumber:14}},this.props.locAllProducts))),i.createElement("ul",{className:"ssb-products ssb-results-list",__self:this,__source:{fileName:me,lineNumber:240,columnNumber:12}},this.props.searchResults.data.searchProducts.items.map((e=>i.createElement("li",{className:"ssb-product",key:e.id,__self:this,__source:{fileName:me,lineNumber:244,columnNumber:14}},i.createElement("a",{href:e.detailUrl,__self:this,__source:{fileName:me,lineNumber:245,columnNumber:15}},e.image?i.createElement("div",{className:"ssb-product-image",__self:this,__source:{fileName:me,lineNumber:249,columnNumber:18}},i.createElement(he.Z,{imageData:e.image,__self:this,__source:{fileName:me,lineNumber:250,columnNumber:19}})):i.createElement("div",{className:"ssb-product-image wnd-empty-thumbnail",__self:this,__source:{fileName:me,lineNumber:253,columnNumber:18}}),i.createElement("div",{className:"ssb-product-texts",__self:this,__source:{fileName:me,lineNumber:257,columnNumber:16}},i.createElement("div",{className:"ssb-product-name",dangerouslySetInnerHTML:{__html:e.nameWithHighlightedPhrase},__self:this,__source:{fileName:me,lineNumber:258,columnNumber:17}}),i.createElement("div",{className:"ssb-product-price",dangerouslySetInnerHTML:{__html:(e.price.prefix?e.price.prefix:"")+e.price.value+(e.price.suffix?e.price.suffix:"")},__self:this,__source:{fileName:me,lineNumber:262,columnNumber:17}})))))))),this.props.searchResults.data.searchPages.count>0&&i.createElement("div",{className:"ssb-results-box",__self:this,__source:{fileName:me,lineNumber:276,columnNumber:11}},i.createElement("div",{className:"ssb-category-header",__self:this,__source:{fileName:me,lineNumber:277,columnNumber:12}},i.createElement("span",{className:"ssb-category-header-title",__self:this,__source:{fileName:me,lineNumber:278,columnNumber:13}},i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:279,columnNumber:14}},this.props.locPages),i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:280,columnNumber:14}},` (${this.props.searchResults.data.searchPages.count})`)),i.createElement("span",{className:"ssb-category-header-link",__self:this,__source:{fileName:me,lineNumber:282,columnNumber:13}},i.createElement("a",{href:`${this.props.searchPrefix}?text=${this.props.searchQuery}&tab=pages`,__self:this,__source:{fileName:me,lineNumber:283,columnNumber:14}},this.props.locAllPages))),i.createElement("ul",{className:"ssb-pages ssb-results-list",__self:this,__source:{fileName:me,lineNumber:286,columnNumber:12}},[...this.props.searchResults.data.searchPages.items].slice(0,4).map((e=>i.createElement("li",{className:"ssb-page",key:e.id,__self:this,__source:{fileName:me,lineNumber:289,columnNumber:14}},i.createElement("a",{href:e.detailUrl,__self:this,__source:{fileName:me,lineNumber:290,columnNumber:15}},i.createElement("span",{className:"ssb-page-name",dangerouslySetInnerHTML:{__html:e.shortTextWithHighlightedPhrase},__self:this,__source:{fileName:me,lineNumber:291,columnNumber:16}}))))))),this.props.searchResults.data.searchListingItems.count>0&&wnd.$system.hasBlog&&i.createElement("div",{className:"ssb-results-box",__self:this,__source:{fileName:me,lineNumber:304,columnNumber:11}},i.createElement("div",{className:"ssb-category-header",__self:this,__source:{fileName:me,lineNumber:305,columnNumber:12}},i.createElement("span",{className:"ssb-category-header-title",__self:this,__source:{fileName:me,lineNumber:306,columnNumber:13}},i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:307,columnNumber:14}},this.props.locBlogPosts),i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:308,columnNumber:14}},` (${this.props.searchResults.data.searchListingItems.count})`)),i.createElement("span",{className:"ssb-category-header-link",__self:this,__source:{fileName:me,lineNumber:310,columnNumber:13}},i.createElement("a",{href:`${this.props.searchPrefix}?text=${this.props.searchQuery}&tab=blogposts`,__self:this,__source:{fileName:me,lineNumber:311,columnNumber:14}},this.props.locAllBlogPosts))),i.createElement("ul",{className:"ssb-results-list",__self:this,__source:{fileName:me,lineNumber:314,columnNumber:12}},[...this.props.searchResults.data.searchListingItems.items].slice(0,4).map((e=>i.createElement("li",{className:"ssb-blogpost",key:e.id,__self:this,__source:{fileName:me,lineNumber:317,columnNumber:14}},i.createElement("a",{href:e.detailUrl,__self:this,__source:{fileName:me,lineNumber:318,columnNumber:15}},i.createElement("span",{className:"ssb-blogpost-name",dangerouslySetInnerHTML:{__html:e.shortTextWithHighlightedPhrase},__self:this,__source:{fileName:me,lineNumber:319,columnNumber:16}})))))))),i.createElement("div",{className:"ssb-view-all",__self:this,__source:{fileName:me,lineNumber:337,columnNumber:8}},i.createElement("a",{href:this.state.resultsPageLink,__self:this,__source:{fileName:me,lineNumber:338,columnNumber:9}},i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:339,columnNumber:10}},this.props.locAllSearchResults),i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:340,columnNumber:10}}," ",`(${this.props.searchResults.data.searchProducts.count+this.props.searchResults.data.searchPages.count+this.props.searchResults.data.searchListingItems.count})`)))),this.props.searchSuggestBoxOpen&&this.props.searchQuery.length>=2&&void 0!==this.props.searchResults&&(void 0!==this.props.searchResults.data&&0===this.props.searchResults.data.searchProducts.count&&0===this.props.searchResults.data.searchPages.count&&0===this.props.searchResults.data.searchListingItems.count||void 0!==this.props.searchResults.errors)&&i.createElement("div",{className:"ssb-wrapper",ref:this.ssbWrapperRef,__self:this,__source:{fileName:me,lineNumber:359,columnNumber:7}},i.createElement("div",{className:"ssb-no-results",__self:this,__source:{fileName:me,lineNumber:360,columnNumber:8}},i.createElement("span",{__self:this,__source:{fileName:me,lineNumber:361,columnNumber:9}},this.props.locNoResults))))}}fe.propTypes={searchQuery:ee().string,searchSuggestBoxOpen:ee().bool,searchInSidebar:ee().bool,searchVariant:ee().string,searchResponsive:ee().string,searchPrefix:ee().string,getData:ee().func,headerElm:ee().instanceOf(Element),searchElm:ee().instanceOf(Element),layoutFooterElm:ee().instanceOf(Element),inputRef:ee().shape({current:ee().instanceOf(HTMLInputElement)}),locProducts:ee().string,locAllProducts:ee().string,locPages:ee().string,locAllPages:ee().string,locBlogPosts:ee().string,locAllBlogPosts:ee().string,locAllSearchResults:ee().string,locNoResults:ee().string};const ge=Q((e=>({searchQuery:e.searchQuery,searchResults:e.searchResults,searchSuggestBoxOpen:e.searchSuggestBoxOpen,searchInSidebar:e.searchInSidebar,searchVariant:e.searchVariant,searchResponsive:e.searchResponsive,searchOverlayVisible:e.searchOverlayVisible})),(e=>({saveResultsToStore:t=>e(se("searchResults",t)),saveSearchSuggestBoxOpen:t=>e(se("searchSuggestBoxOpen",t)),updateSsbBottom:t=>e(se("ssbBottom",t)),getData:t=>{return e((n=t,e=>{const t={query:n,limit:4,limitProducts:10,offset:0,langBe:wnd.$system.backendLanguage,langFe:wnd.$system.frontendLanguage,langFeId:wnd.$system.page.langId},i=new Request("/servers/graphql/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:"query FetchSearchProducts(\n\t    $query: String!,\n\t    $limit: Int!,\n\t    $limitProducts: Int!,\n\t    $offset: Int!,\n\t) {\n\t    searchProducts(\n\t        query: $query\n\t    ) {\n\t        items(limit: $limitProducts, offset: $offset) {\n\t            id,\n\t            name,\n\t            nameWithHighlightedPhrase(phrase: $query),\n\t            description,\n\t            image {id, title, orientation, aspectRatio, size {width, height}, img {mimeType, src}, sources {mimeType, sizes {width, height, src}}},\n\t            detailUrl,\n\t            price {prefixText, prefix, value, suffix, suffixText},\n\t            comparativePrice {prefix, value, suffix},\n\t            ribbon,\n\t            available\n\t        }\n\t        count\n\t    },\n\t    searchPages(\n\t        query: $query\n\t    ) {\n\t        items(limit: $limit, offset: $offset) {\n\t            id,\n\t            name,\n\t            detailUrl,\n\t            shortTextWithHighlightedPhrase(phrase: $query),\n\t            longTextWithHighlightedPhrase(phrase: $query)\n\t        }\n\t        count\n\t    },\n\t    searchListingItems(\n\t        query: $query\n\t    ) {\n\t        items(limit: $limit, offset: $offset) {\n\t            id,\n\t            name,\n\t            detailUrl,\n\t            shortTextWithHighlightedPhrase(phrase: $query),\n\t            longTextWithHighlightedPhrase(phrase: $query)\n\t        }\n\t        count\n\t    }\n\t}",variables:t})});fetch(i).then((e=>e.json())).then((t=>{e(se("searchResults",t)),e(se("searchSuggestBoxOpen",!0))}))}));var n}})))(fe);var ve=n(877),ye="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\search\\js\\Search.jsx";class be extends i.Component{constructor(e){super(e),this.inputRef=i.createRef()}componentDidMount(){this.updateSearchVariant(),this.updateSearchResponsive(),this.updateOverlayElement(),this.updateLayoutVariant(),window.addEventListener("resize",this.updateSearchResponsive),window.addEventListener("orientationchange",this.updateSearchResponsive),this.props.searchElm.addEventListener("wnd-redraw",(()=>{this.updateSearchVariant()}))}componentDidUpdate(e,t,n){if(e.searchVariant===this.props.searchVariant&&e.searchResponsive===this.props.searchResponsive||this.updateOverlayElement(),e.searchOverlayVisible!==this.props.searchOverlayVisible&&this.handleOverlayClick(),e.searchResponsive!==this.props.searchResponsive&&(""!==e.searchResponsive&&this.updateOverlayElement(),e.searchResponsive!==this.props.searchResponsive&&""!==e.searchResponsive&&"mobile"===this.props.searchResponsive&&"searchBar"===this.props.searchVariant&&!0===this.props.searchSuggestBoxOpen&&(this.props.saveSearchBarVisible(!0),this.props.saveSearchOpenClass("open"))),e.searchOverlayLocation!==this.props.searchOverlayLocation&&""!==e.searchOverlayLocation&&this.props.searchSuggestBoxOpen&&(oe.B.removeOverlay("search-overlay"),this.addOverlay()),e.searchSuggestBoxOpen!==this.props.searchSuggestBoxOpen&&(0,ve.GI)())if(this.props.searchSuggestBoxOpen){const e=new Event("wnd-open-menu",{bubbles:!0,cancellable:!0});document.getElementsByClassName("menu-wrapper")[0].dispatchEvent(e)}else{const e=new Event("wnd-close-menu",{bubbles:!0,cancellable:!0});document.getElementsByClassName("menu-wrapper")[0].dispatchEvent(e)}}updateSearchVariant=()=>{this.props.bodyElm.classList.contains("wnd-s-i")?this.props.saveSearchVariant("searchIcon"):this.props.bodyElm.classList.contains("wnd-s-b")&&this.props.saveSearchVariant("searchBar")};updateSearchResponsive=()=>{window.innerWidth<=900?this.props.saveSearchResponsive("mobile"):this.props.saveSearchResponsive("desktop")};updateLayoutVariant=()=>{this.props.bodyElm.classList.contains("l-sidebar")&&this.props.saveLayoutVariant(!0)};updateOverlayElement=()=>{""!==this.props.searchVariant&&""!==this.props.searchResponsive&&((0,ve.GI)()||"desktop"!==this.props.searchResponsive||"searchBar"!==this.props.searchVariant&&!this.props.searchInSidebar?this.props.saveOverlayLocation("overlayOnSearchElm"):this.props.saveOverlayLocation("overlayOnWrapper"))};addOverlay=()=>{"overlayOnWrapper"===this.props.searchOverlayLocation?oe.B.addOverlay(this.props.wrapperElm,"append","search-overlay"):"overlayOnSearchElm"===this.props.searchOverlayLocation&&oe.B.addOverlay(this.props.searchElm,"append","search-overlay"),this.props.setOverlayStatus(!0),setTimeout((()=>{this.props.bodyElm.classList.add("search-active")}),10)};hideSearchBar=()=>{setTimeout((()=>{this.props.saveSearchOpenClass(""),this.props.saveSearchBarVisible(!1),this.inputRef.current.value=""}),200)};handleOverlayClick=()=>{const e=document.querySelector(".search-overlay");e&&e.addEventListener("click",(()=>{this.props.bodyElm.classList.remove("search-active"),setTimeout((()=>{oe.B.removeOverlay("search-overlay"),this.props.setOverlayStatus(!1),this.props.saveSearchSuggestBoxOpen(!1),this.props.saveSearchOpenClass("")}),200),this.hideSearchBar()}))};render(){return i.createElement("div",{className:this.props.searchOpenClass,__self:this,__source:{fileName:ye,lineNumber:246,columnNumber:4}},i.createElement(pe,{bodyElm:this.props.bodyElm,wrapperElm:this.props.wrapperElm,searchElm:this.props.searchElm,addOverlay:this.addOverlay,inputRef:this.inputRef,locSearchText:this.props.locSearchText,__self:this,__source:{fileName:ye,lineNumber:247,columnNumber:5}}),i.createElement(ce,{bodyElm:this.props.bodyElm,wrapperElm:this.props.wrapperElm,searchElm:this.props.searchElm,addOverlay:this.addOverlay,hideSearchBar:this.hideSearchBar,inputRef:this.inputRef,locPlaceholderText:this.props.locPlaceholderText,searchPrefix:this.props.searchPrefix,__self:this,__source:{fileName:ye,lineNumber:255,columnNumber:5}}),i.createElement(ge,{locProducts:this.props.locProducts,locAllProducts:this.props.locAllProducts,locPages:this.props.locPages,locAllPages:this.props.locAllPages,locBlogPosts:this.props.locBlogPosts,locAllBlogPosts:this.props.locAllBlogPosts,locAllSearchResults:this.props.locAllSearchResults,locNoResults:this.props.locNoResults,searchPrefix:this.props.searchPrefix,headerElm:this.props.headerElm,searchElm:this.props.searchElm,inputRef:this.inputRef,layoutHeaderElm:this.props.layoutHeaderElm,footerElm:this.props.footerElm,layoutFooterElm:this.props.layoutFooterElm,footerSCElm:this.props.footerSCElm,__self:this,__source:{fileName:ye,lineNumber:265,columnNumber:5}}))}}be.propTypes={searchVariant:ee().string,searchResponsive:ee().string,searchInSidebar:ee().bool,searchOverlayVisible:ee().bool,searchOverlayLocation:ee().string,searchSuggestBoxOpen:ee().bool,searchOpenClass:ee().string,bodyElm:ee().instanceOf(Element),wrapperElm:ee().instanceOf(Element),searchElm:ee().instanceOf(Element),headerElm:ee().instanceOf(Element),layoutHeaderElm:ee().instanceOf(Element),footerElm:ee().instanceOf(Element),layoutFooterElm:ee().instanceOf(Element),footerSCElm:ee().instanceOf(Element),saveSearchBarVisible:ee().func,saveSearchOpenClass:ee().func,saveSearchVariant:ee().func,saveSearchResponsive:ee().func,saveLayoutVariant:ee().func,saveOverlayLocation:ee().func,setOverlayStatus:ee().func,saveSearchSuggestBoxOpen:ee().func,locSearchText:ee().string,locAllSearchResults:ee().string,locNoResults:ee().string,locPlaceholderText:ee().string,locProducts:ee().string,locAllProducts:ee().string,locPages:ee().string,locAllPages:ee().string,locBlogPosts:ee().string,locAllBlogPosts:ee().string,searchPrefix:ee().string};const we=Q((e=>({searchBarOpen:e.searchBarOpen,searchVariant:e.searchVariant,searchResponsive:e.searchResponsive,searchInSidebar:e.searchInSidebar,searchOverlayVisible:e.searchOverlayVisible,searchOverlayLocation:e.searchOverlayLocation,searchSuggestBoxOpen:e.searchSuggestBoxOpen,searchOpenClass:e.searchOpenClass})),(e=>({saveSearchVariant:t=>e(se("searchVariant",t)),saveSearchResponsive:t=>e(se("searchResponsive",t)),saveOverlayLocation:t=>e(se("searchOverlayLocation",t)),saveLayoutVariant:t=>e(se("searchInSidebar",t)),setOverlayStatus:t=>e(se("searchOverlayVisible",t)),saveSearchSuggestBoxOpen:t=>e(se("searchSuggestBoxOpen",t)),saveSearchOpenClass:t=>e(se("searchOpenClass",t)),saveSearchBarVisible:t=>e(se("searchBarVisible",t))})))(be),_e={searchQuery:"",searchResults:{},searchOpenClass:"",searchBarVisible:!1,searchSuggestBoxOpen:!1,searchVariant:"",searchResponsive:"",searchOverlayVisible:!1,searchOverlayLocation:"",searchInSidebar:!1};var Ee="C:\\Users\\jbe\\GIT\\wtf-prime\\ui\\blocks\\search\\js\\SearchApp.jsx";const xe=g(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),i=function(){throw new Error(u(15))},r={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map((function(e){return e(r)}));return i=g.apply(void 0,s)(n.dispatch),c(c({},n),{},{dispatch:i})}}}(ie)),Se=f((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_e,t=arguments.length>1?arguments[1]:void 0;return t.type===re?{...e,[t.key]:t.value}:e}),xe);function Ce(e){const{bodyElm:t,wrapperElm:n,headerElm:r,searchElm:s,layoutHeaderElm:o,footerElm:a,layoutFooterElm:l,footerSCElm:c,locSearchText:u,locAllSearchResults:d,locNoResults:p,locPlaceholderText:h,locProducts:m,locAllProducts:f,locPages:g,locAllPages:v,locBlogPosts:y,locAllBlogPosts:b,searchPrefix:w}=e;return i.createElement(we,{bodyElm:t,wrapperElm:n,headerElm:r,searchElm:s,layoutHeaderElm:o,footerElm:a,layoutFooterElm:l,footerSCElm:c,locSearchText:u,locAllSearchResults:d,locNoResults:p,locPlaceholderText:h,locProducts:m,locAllProducts:f,locPages:g,locAllPages:v,locBlogPosts:y,locAllBlogPosts:b,searchPrefix:w,__self:this,__source:{fileName:Ee,lineNumber:62,columnNumber:3}})}Ce.propTypes={bodyElm:ee().instanceOf(Element),wrapperElm:ee().instanceOf(Element),headerElm:ee().instanceOf(Element),searchElm:ee().instanceOf(Element),layoutHeaderElm:ee().instanceOf(Element),footerElm:ee().instanceOf(Element),layoutFooterElm:ee().instanceOf(Element),footerSCElm:ee().instanceOf(Element),locSearchText:ee().string,locAllSearchResults:ee().string,locNoResults:ee().string,locPlaceholderText:ee().string,locProducts:ee().string,locAllProducts:ee().string,locPages:ee().string,locAllPages:ee().string,locBlogPosts:ee().string,locAllBlogPosts:ee().string,searchPrefix:ee().string},document.addEventListener("DOMContentLoaded",(()=>{const e=()=>{const e=document.getElementsByTagName("body")[0],t=document.querySelector(".l-w"),n=document.getElementsByClassName("l-h")[0],s=document.getElementsByClassName("s-hn")[0],o=document.getElementsByClassName("l-f")[0],a=document.getElementsByClassName("s-f")[0],l=document.querySelector(".s-f .s-c"),c=document.querySelector(".search");r.createRoot(document.querySelector(".search-app")).render(i.createElement(X,{store:Se,__self:void 0,__source:{fileName:Ee,lineNumber:125,columnNumber:4}},i.createElement(Ce,{bodyElm:e,wrapperElm:t,headerElm:s,searchElm:c,layoutHeaderElm:n,footerElm:a,layoutFooterElm:o,footerSCElm:l,locSearchText:wnd.$system.labels["wnd.pc.SearchBlock.iconText"],locAllSearchResults:wnd.$system.labels["wnd.pc.SearchBlock.allResults"],locPlaceholderText:wnd.$system.labels["wnd.pc.SearchBlock.inputPlaceholder"],locProducts:wnd.$system.labels["wnd.pc.SearchResultsZone.productsTitle"],locAllProducts:wnd.$system.labels["wnd.pc.SearchBlock.allProducts"],locPages:wnd.$system.labels["wnd.pc.SearchResultsZone.pagesTitle"],locAllPages:wnd.$system.labels["wnd.pc.SearchBlock.allPages"],locBlogPosts:wnd.$system.labels["wnd.pc.SearchResultsZone.listingItemsTitle"],locAllBlogPosts:wnd.$system.labels["wnd.pc.SearchBlock.allListingItems"],locNoResults:wnd.$system.labels["wnd.pc.SearchBlock.noResults"],searchPrefix:wnd.$system.searchPrefix,__self:void 0,__source:{fileName:Ee,lineNumber:126,columnNumber:5}})))},t=document.body;t.classList.contains("wt-preview")||((t.classList.contains("wnd-s-i")||t.classList.contains("wnd-s-b"))&&e(),$(document).off("wnd-site-search-activated").on("wnd-site-search-activated",(()=>{e()})))}))},999:(e,t,n)=>{"use strict";var i=n(877);function r(){if(document.querySelectorAll('[data-sbm-widget="true"]').length>=3)return!0;return[{type:"script",src:"//widget.webnode.simplybook.ovh/react-widget/public/runtime.js"},{type:"script",src:"//widget.webnode.simplybook.ovh/react-widget/public/app.js"},{type:"link",href:"//widget.webnode.simplybook.ovh/react-widget/public/app.css",rel:"stylesheet"}].forEach((e=>{let t;"script"===e.type?(t=document.createElement("script"),t.src=e.src,t.async=!0):"link"===e.type&&(t=document.createElement("link"),t.href=e.href,t.rel=e.rel),t.setAttribute("data-sbm-widget","true"),document.head.appendChild(t)})),!1}function s(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e=t?[t]:document.querySelectorAll(".sbm-widget"),e.forEach((e=>{e.classList.add("sbm-init");const t=e.getAttribute("data-public-key"),n=e.getAttribute("data-company");if(SimplyBookWidget(e,{apiKey:t,company:n}),(0,i.GI)()){const t=new ResizeObserver((n=>{for(let r of n)r.target===e&&r.contentRect.width>0&&r.contentRect.height>0&&(setTimeout((()=>{(0,i.Lv)(e.parentElement)}),500),t.disconnect())}));t.observe(e)}}))}function o(e){const t=e.target.querySelectorAll(".sbm-widget:not(.sbm-init)");t.length>0&&t.forEach((e=>{if(r())s(e);else{const t=setInterval((()=>{"undefined"!=typeof SimplyBookWidget&&(clearInterval(t),s(e))}),100)}}))}(0,i.Cd)((()=>{if((0,i.GI)()){document.querySelectorAll(".ez").forEach((e=>{e.addEventListener("wnd-redraw",(e=>{o(e)}))})),$(document).on("wnd-content-change",(e=>{o(e)}))}if(document.querySelector(".sbm-widget")){r();const e=setInterval((()=>{"undefined"!=typeof SimplyBookWidget&&(clearInterval(e),s())}),100)}}))},460:(e,t,n)=>{"use strict";var i=n(877);function r(e){const t=parseInt(getComputedStyle(e).height),n=e.parentElement;t<26?n.classList.add("wnd-hide-placeholder"):n.classList.remove("wnd-hide-placeholder")}(0,i.Cd)((()=>{if(i.GI){document.querySelectorAll(".ez").forEach((e=>{var t,n;t=e,n=".b-sp-c",new MutationObserver((e=>{let i=new Set;e.forEach((e=>{if(e.addedNodes)for(let t=0;t<e.addedNodes.length;t++){const r=e.addedNodes[t];r.nodeType===Node.ELEMENT_NODE&&r.matches(n)&&i.add(r)}if(e.removedNodes)for(let i=0;i<e.removedNodes.length;i++){const r=e.removedNodes[i];r.nodeType===Node.ELEMENT_NODE&&r.matches(n)&&t.dispatchEvent(new Event("wnd-redraw"))}e.target.matches(n)&&"style"===e.attributeName&&i.add(e.target)})),i.forEach((e=>r(e)))})).observe(t,{childList:!0,attributes:!0,attributeFilter:["style"],subtree:!0});e.querySelectorAll(".b-sp-c").forEach((e=>r(e)))}))}}))},877:(e,t,n)=>{"use strict";n.d(t,{$W:()=>N,AW:()=>E,C6:()=>_,Cd:()=>k,Ds:()=>v,G6:()=>p,GI:()=>a,JF:()=>l,Lv:()=>g,PZ:()=>y,Qy:()=>m,R2:()=>u,Rv:()=>s,WZ:()=>d,bU:()=>h,iz:()=>c,kE:()=>x,mj:()=>C,n9:()=>f});var i=n(563),r=n.n(i);function s(){const e=document.getElementById("menu");return window.getComputedStyle(e,"::after").getPropertyValue("content").includes("mobile")}function o(e){return document.getElementsByTagName("html")[0].classList.contains(e)}function a(){return document.body.classList.contains("wnd-cms")}function l(){return document.body.classList.contains("wt-preview")}function c(){return null!==document.querySelector(".wnd-nav-sticky")}function u(e){const t=document.querySelector("body"),n=document.querySelector("html");switch(e){case"detect":{/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(!function(){const e=document.getElementById("menu-mobile");return!("none"===window.getComputedStyle(e).display)}()?(o("tablet")||n.classList.add("tablet"),n.classList.remove("mobile")):(o("mobile")||n.classList.add("mobile"),n.classList.remove("tablet")),t.classList.contains("touched")||t.classList.add("touched"),t.classList.remove("desktop"),n.classList.remove("pc")):(t.classList.contains("pc")||t.classList.contains("desktop")||(n.classList.add("pc"),t.classList.add("desktop")),n.classList.remove("tablet","mobile"),t.classList.remove("touched")),/WebnodeFrontendTest/i.test(navigator.userAgent)&&(t.classList.contains("wnd-frontend-test")||t.classList.add("wnd-frontend-test")),/MSIE|Trident|Edge/i.test(navigator.userAgent)&&(t.classList.contains("isIE")||t.classList.add("isIE"));const e=window.navigator.userAgent.toLowerCase();(e.indexOf("ipad")>-1||e.indexOf("macintosh"))>-1&&"ontouchend"in document&&(t.classList.contains("touched")||t.classList.add("touched"),n.classList.remove("mobile","desktop"),n.classList.add("tablet"));let i=!0;/Safari/i.test(navigator.userAgent)&&/Chrome/i.test(navigator.userAgent)&&(i=!1),/Safari/i.test(navigator.userAgent)&&i&&t.classList.add("safari"),(e.indexOf("FBAN")>-1||e.indexOf("FBAV")>-1)&&t.classList.add("safari");break}case"mobile-devices":{let e=!1;return i=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4)))&&(e=!0),e}case"wnd-frontend-test":return t.classList.contains("wnd-frontend-test");case"touched":return t.classList.contains("touched");case"android":return/Android/i.test(navigator.userAgent);case"ios":return/iPhone|iPad|iPod/i.test(navigator.userAgent);case"iphone":return/iPhone|iPod/i.test(navigator.userAgent);case"black-berry":return/BlackBerry/i.test(navigator.userAgent);case"opera-mini":return/Opera Mini/i.test(navigator.userAgent);case"ie-mobile":return/IEMobile/i.test(navigator.userAgent);case"safari":return/Safari/i.test(navigator.userAgent);default:return}var i}function d(){const e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const t=e.indexOf("rv:");return parseInt(e.substring(t+3,e.indexOf(".",t)),10)}const n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):(e.includes("Edg/"),!1)}function p(){return-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")}function h(){return document.body.classList.contains("ghostinspector")}function m(){return document.body.classList.contains("l-sidebar")}function f(){return document.body.classList.contains("wt-checkout")}function g(e){const t=new Event("wnd-redraw-done",{bubbles:!1,cancellable:!0});if(a()){const n=e[0]?e[0]:e;n&&n.dispatchEvent(t)}else document.body.dispatchEvent(t)}function v(e,t,n){let i;return function(){const r=this,s=arguments;clearTimeout(i),i=setTimeout((()=>{i=null,n||e.apply(r,s)}),t),n&&!i&&e.apply(r,s)}}function y(e){"function"==typeof $&&e instanceof $&&(e=e[0]);const t=e.getBoundingClientRect(),n=t.width*t.height,i=window.innerHeight||document.documentElement.clientHeight;let r=0,s=0;return t.bottom<0||t.top>i?s=0:t.top<0&&t.bottom>i?(r=t.width*i,s=r/n):t.top>=0&&t.bottom<=i?s=1:t.top<0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)?(r=(t.height+t.top)*t.width,s=r/n):t.top>=0&&t.bottom>i&&(r=(t.height-(t.bottom-i))*t.width,s=r/n),s}function b(){const e=document.getElementById("menu");if(e){let t=window.getComputedStyle(e,"::after").getPropertyValue("content");return t=t.replace(/"/g,"").replace(/'/g,""),t}}window.jQuery=r(),window.$=r();let w=b();function _(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}function E(e){return document.querySelector("html").classList.contains(e)}function x(e){return!Number.isNaN(parseFloat(e))&&Number.isFinite(parseFloat(e))}function S(e,t,n){const i=[e,t,n].map((e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4));return.2126*i[0]+.7152*i[1]+.0722*i[2]}function C(e,t){const n=S(e.r,e.g,e.b),i=S(t.r,t.g,t.b);return(n>i?(i+.05)/(n+.05):(n+.05)/(i+.05)).toFixed(2)}function N(e){const t={r:0,g:0,b:0};return 4===e.length?(t.r=parseInt(`0x${e[1]}${e[1]}`,16),t.g=parseInt(`0x${e[2]}${e[2]}`,16),t.b=parseInt(`0x${e[3]}${e[3]}`,16)):7===e.length&&(t.r=parseInt(`0x${e[1]}${e[2]}`,16),t.g=parseInt(`0x${e[3]}${e[4]}`,16),t.b=parseInt(`0x${e[5]}${e[6]}`,16)),t}function k(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}k((()=>{const e=document.querySelector("html"),t=document.querySelector("body");e.classList.remove("no-js"),e.classList.add("js"),u("detect"),/ghostinspector/i.test(navigator.userAgent)&&document.body.classList.add("ghostinspector"),window.location!==window.parent.location&&u("iphone")&&t.classList.add("ios-iframe"),u("ios")&&t.classList.add("ios"),function(){const e=document.querySelectorAll("a[href*=\\#]:not([href=\\#])");e&&!a()&&e.forEach((e=>{window.location.pathname.replace(/^\//,"")===e.pathname.replace(/^\//,"")&&window.location.hostname===e.hostname&&e.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const t=document.querySelector(this.hash)||document.querySelector(`[name=${this.hash.slice(1)}]`)||document.querySelector(`[id=${this.hash.slice(1)}]`);if(t){let e=(window.scrollY||window.pageYOffset)+t.getBoundingClientRect().top;a()&&(e-=parseInt(document.querySelector(".wnd-topfixed-wrapper").offsetHeight,10)),m()&&document.querySelector(".s-hb")&&(e-=parseInt(document.querySelector(".s-hb").offsetHeight,10)),$("html,body").animate({scrollTop:e},1e3)}}))}))}(),function(){const e=document.querySelectorAll("a.form-file-button");if(e)for(let t=0;t<e.length;t++)e[t].addEventListener("click",(e=>{e.currentTarget.parentNode.previousElementSibling.querySelectorAll("input")[0].click()}))}(),window.addEventListener("resize",(()=>{const e=b();if(e!==w){const t=new Event(`wnd-view-switched-${e}`,{bubbles:!1,cancellable:!0});document.body.dispatchEvent(t),w=e}})),window.addEventListener("resize",(()=>u("detect")))}))},820:(e,t,n)=>{"use strict";var i=n(877);const r=function(){document.querySelectorAll(".c").forEach((e=>{if((0,i.GI)()){const t=e[0]?e[0]:e;if(t){const e=new Event("wnd-redraw-done",{bubbles:!0,cancellable:!0});t.dispatchEvent(e)}}}))};(0,i.Cd)((()=>{if((0,i.GI)()){document.querySelectorAll(".ez").forEach((e=>{e.addEventListener("wnd-redraw",(function(){this.querySelectorAll(".c")[0]&&setTimeout((()=>{r()}),200)}))}));document.querySelectorAll(".s-f-map").forEach((e=>{e.addEventListener("wnd-redraw",(function(){this.querySelectorAll(".c")[0]&&setTimeout((()=>{r()}),200)}))})),document.body.addEventListener("wnd-redraw",(e=>{e.target.classList.contains("ez")&&setTimeout((()=>{document.querySelectorAll(".c")[0]&&r()}),100)}))}const e=document.querySelectorAll(".c");e[0]&&(r(),window.addEventListener("resize",(()=>r())),window.addEventListener("orientationchange",(()=>r()))),e.forEach((e=>{e.addEventListener("resize",(()=>{setTimeout((()=>{r()}),200)}))}))}))},967:(e,t,n)=>{"use strict";var i=n(877);!function(e){e.fn.feed=function(t){var n=e.extend({},e.fn.feed.defaults,t),r=e(this);r.each((function(){var t=e(this).find(n.wrapper),s=t.width(),o=e(this).find(n.item),a=[],l=[],c=[],u=[],d=[],p=[],h=[],m=[];o.each((function(t){var i="full";if(a[t]=parseFloat(e(this).outerWidth(!0)),l[t]=parseFloat(e(this).css("paddingTop")),c[t]=parseFloat(e(this).css("paddingRight")),u[t]=parseFloat(e(this).css("paddingBottom")),d[t]=parseFloat(e(this).css("paddingLeft")),e(this).hasClass("wnd-video-thumbnail")){var r=e(this).find(n.video_thumb);p[t]=parseFloat(e(r).outerWidth(!0)),h[t]=parseInt(e(r).outerHeight(!0))}else{if("gallery"==n.type)var s=e(this).find("a");else s=e(this).find("img");s[0]?(p[t]=parseInt(e(s).attr("width")),h[t]=parseInt(e(s).attr("height"))):(p[t]=0,h[t]=0,i="no-media")}if("outside"==n.title){if("no-media"==i)var o=e(this).find(n.item_wrapper);else o=e(this).find(n.title_class);"none"!=o.css("display")?m[t]=parseFloat(o.outerHeight(!0)):m[t]=0}else m[t]=0;0}));for(var f=[],g=[],v=[],y=[],b=0,w=[],_=[],E=Math.round(s/a[0]),x=1,S=0,C=[],N=[],k=0;k<E;k++)C.push(0);if(E>1){function z(e,t){var n,i=[];for(n=0;n<e.length;n++)e[n]===t&&i.push(n);return i}var T,L,P,A,I;function D(){var t=C.slice();if("true"==n.bottom_line){var i,r,s,l,c,u;t.sort((function(e,t){return t-e})),i=e(C).index(t[0]),r=t[0],t.sort((function(e,t){return e-t})),s=e(C).index(t[0]),c=r-(l=t[0]),0===i?u=T:1===i?u=L:2===i?u=P:3===i?u=A:4===i&&(u=I);var d=u[u.length-1];if(c>=1.1*g[d]){var p,h=l+g[d],m=r-g[d];if(v[d]=l,y[d]=a[d]*s,e(o[d]).css({top:v[d]+"px",left:y[d]+"px"}),C[i]=m,C[s]=h,0===s)T.push(d),1===i?(p=L.indexOf(d),L.splice(p,1)):2===i?(p=P.indexOf(d),P.splice(p,1)):3===i?(p=A.indexOf(d),A.splice(p,1)):4===i&&(p=I.indexOf(d),I.splice(p,1));else 1===s?(L.push(d),0===i?(p=T.indexOf(d),T.splice(p,1)):2===i?(p=P.indexOf(d),P.splice(p,1)):3===i?(p=A.indexOf(d),A.splice(p,1)):4===i&&(p=I.indexOf(d),I.splice(p,1))):2===s?(P.push(d),0===i?(p=T.indexOf(d),T.splice(p,1)):1===i?(p=L.indexOf(d),L.splice(p,1)):3===i?(p=A.indexOf(d),A.splice(p,1)):4===i&&(p=I.indexOf(d),I.splice(p,1))):3===s?(A.push(d),0===i?(p=T.indexOf(d),T.splice(p,1)):1===i?(p=L.indexOf(d),L.splice(p,1)):2===i&&(p=P.indexOf(d),P.splice(p,1))):4===s&&(I.push(d),0===i?(p=T.indexOf(d),T.splice(p,1)):1===i?(p=L.indexOf(d),L.splice(p,1)):2===i?(p=P.indexOf(d),P.splice(p,1)):3===i&&(p=A.indexOf(d),A.splice(p,1)));D()}}}o.each((function(t){var i;(N[t]=S,f[t]=a[t],b=parseFloat(h[t]/p[t]*(a[t]-d[t]-c[t])),isNaN(b)&&(b=0),w[t]=b,g[t]=b+l[t]+u[t]+m[t],"gallery"==n.type)&&(w[t]=Math.round(w[t]),void 0!==(i=e(this).find(n.item_wrapper)).attr("data-resize-value")?(_[t]=parseInt(i.attr("data-resize-value")),w[t]+=_[t],g[t]+=_[t]):(0===t?_[t]=0:Math.abs(w[t]-w[t-1])<n.resize_threshold?_[t]=Math.floor(Math.random()*(n.resize_max-n.resize_min)+n.resize_min):_[t]=0,i.attr("data-resize-value",_[t]),w[t]+=_[t],g[t]+=_[t]));(1==x?(v[t]=0,y[t]=0==t?0:y[t-1]+f[t-1]):(y[t]=t/E==x-1?0:y[t-1]+f[t-1],v[t]=C[S]),(t+1)/E==x&&x++,C[S]+=g[t],++S+1>E&&(S=0),"gallery"==n.type&&_[t]>0)&&((i=e(this).find(n.item_wrapper)).length>0&&(i.addClass("stretched"),i.css("height",w[t])));e(this).css({top:v[t]+"px",left:y[t]+"px"})})),2===E?(T=z(N,0),L=z(N,1)):3===E?(T=z(N,0),L=z(N,1),P=z(N,2)):4===E?(T=z(N,0),L=z(N,1),P=z(N,2),A=z(N,3)):5===E&&(T=z(N,0),L=z(N,1),P=z(N,2),A=z(N,3),I=z(N,4)),D(),C.sort((function(e,t){return t-e})),t.css({height:C[0]+"px"}),r.addClass("feed-ready"),(0,i.Lv)(r)}else r.removeClass("feed-ready"),t.removeAttr("style"),o.removeAttr("style"),(0,i.Lv)(r)}))},e.fn.feed.defaults={type:"gallery",title:"img-t-u",title_class:".gallery-title",wrapper:".gallery-wrapper",item:".gallery-item",item_wrapper:"",video_thumb:".thumbnail",bottom_line:"false",resize_threshold:3,resize_min:20,resize_max:60}}(jQuery)},910:(e,t,n)=>{"use strict";var i=n(877),r=n(850);(0,i.Cd)((()=>{if((0,i.n9)())return;const e=()=>{let e={"wnd-mt-classic":"horizontal","wnd-mt-boxed":"boxed","wnd-mt-sliding":"vertical","wnd-mt-sidebar":"vertical"};const t=document.querySelector(".s-hn");for(let n in e)if(t.classList.contains(n))return e[n]},t=()=>{const e=document.querySelector(".s-hn");return e.classList.contains("wnd-mt-classic")?e.classList.contains("s-hn-centered")?"centered":e.classList.contains("s-hn-bottom")?"bottom":"default":e.classList.contains("wnd-mt-boxed")?"boxed":e.classList.contains("wnd-mt-sliding")?"sliding":e.classList.contains("wnd-mt-sidebar")?"sidebar":void 0},n=()=>{const e=document.getElementById("menu");if(e)return window.getComputedStyle(e,"::after").getPropertyValue("content")},s=()=>({type:e(),subType:t(),mode:n(),elm:document.querySelector("#menu"),hasItems:!!document.querySelector("#menu ul")});let o=s();const a=document.querySelector("header");let l=o.subType;const c=document.querySelector(".more-text").textContent,u=e=>{if((0,i.GI)()){const t=new Event(e,{bubbles:!0,cancellable:!0});document.querySelector("#menu > div").dispatchEvent(t)}},d=()=>"fixed"===getComputedStyle(document.querySelector(".wnd-fixed")).position,p=e=>{e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()};let h=document.querySelector(".logo-block"),m=h?.clientWidth,f=h?.clientHeight,g=new ResizeObserver((e=>{const t=h.clientWidth,n=h.clientHeight;if(t!==m){const e=new CustomEvent("wnd-logo-resize",{detail:{type:"width",block:"logo"}});a.dispatchEvent(e),m=t}if(n!==f){const e=new CustomEvent("wnd-logo-resize",{detail:{type:"height",block:"logo"}});a.dispatchEvent(e),f=n}}));function v(){h=document.querySelector(".logo-block"),h&&(m=h.clientWidth,f=h.clientHeight,g.observe(h))}let y=document.querySelector("footer"),b=y?.clientHeight,w=new ResizeObserver((e=>{const t=y.clientHeight;if(t!==b){const e=new CustomEvent("wnd-footer-resize",{detail:{type:"height",block:"footer"}});a.dispatchEvent(e),de(y),b=t}}));function _(){y=document.querySelector("footer"),y&&(b=y.clientHeight,w.observe(y))}const E=()=>{const e=document.querySelector(".s-hn");return["wnd-w-narrow","wnd-w-default","wnd-w-wider","wnd-w-wide","wnd-w-max"].find((t=>e.classList.contains(t)))};let x=E(),S=document.querySelector(".menu-nav"),C=S?.clientWidth,N=S?.clientHeight,k=new ResizeObserver((e=>{const t=S.clientWidth,n=S.clientHeight;if(t!==C){const e=new CustomEvent("wnd-navline-resize",{detail:{type:"width",block:"navline"}});a.dispatchEvent(e),C=t}if(n!==N){const e=new CustomEvent("wnd-navline-resize",{detail:{type:"height",block:"navline"}});a.dispatchEvent(e),N=n}}));function T(){S=document.querySelector(".menu-nav"),S&&(C=S.clientWidth,N=S.clientHeight,k.observe(S))}const L=()=>{"default"!==o.subType&&"bottom"!==o.subType&&"sidebar"!==o.subType||v(),"default"!==o.subType&&"bottom"!==o.subType&&"sidebar"!==o.subType&&"centered"!==o.subType&&"sliding"!==o.subType||T(),"sidebar"===o.subType&&_()},P=()=>{void 0!==g&&g.disconnect(),void 0!==k&&k.disconnect(),void 0!==w&&w.disconnect()};function A(){return document.querySelector(".wnd-page").classList.value.replace(/ac-(light|normal|dark)\s*/g,"").match(/ac-\w+/)}async function I(){const e=await new Promise(((e,t)=>{let n=getComputedStyle(document.documentElement).getPropertyValue("--ac-color");if(n)e(n);else{let i=10;const r=setInterval((()=>{n=getComputedStyle(document.documentElement).getPropertyValue("--ac-color"),n&&(clearInterval(r),e(n)),i||t(new Error("Can't return --ac-color custom property")),i-=1}),100)}}));(0,i.mj)((0,i.$W)(e),{r:255,g:255,b:255})>=.6?document.body.classList.add("mm-mono"):document.body.classList.remove("mm-mono")}let z=A(),D=!1;const O=()=>{const e=o.elm,t=document.querySelector("#menu > div");t.offsetHeight>e.offsetHeight?(e.scrollTop+e.offsetHeight===t.clientHeight?document.body.classList.remove("scrolldown-active"):document.body.classList.add("scrolldown-active"),e.scrollTop<=0?document.body.classList.remove("scrollup-active"):document.body.classList.add("scrollup-active")):(document.body.classList.remove("scrolldown-active"),document.body.classList.remove("scrollup-active"))},R=e=>{const t=e.target.classList.contains("scrolldown")?"down":"up";if(D)return;D=!0,setTimeout((()=>{D=!1}),500);const n=document.querySelector(".level-1 > li:not(.menu-more)"),i=n.querySelector(":scope > a"),r=parseInt(i.offsetHeight,10)+parseInt(getComputedStyle(n).paddingTop,10)+parseInt(getComputedStyle(n).paddingBottom,10),s=o.elm.scrollTop,a=Math.abs(s)+("down"===t?r:-r);let l=null,c=o.elm.scrollTop,u=a-c;requestAnimationFrame((function e(t){l||(l=t);let n=t-l,i=Math.min(n/500,1);o.elm.scrollTop=c+u*i,O(),i<1&&requestAnimationFrame(e)}))},q=()=>{o.elm.addEventListener("scroll",O)};let B,F,M=null,j=null,H=null;const W=function(e){if(o.mode.includes("desktop"))if("horizontal"===o.type){const t=(e=e.classList.contains("level-2")?e:e.closest(".level-2")).offsetHeight-parseInt(getComputedStyle(e).paddingBottom),n=e.getBoundingClientRect().top+window.scrollY+t,i=document.querySelector(".s-hn").getBoundingClientRect().top+window.scrollY-t,r=window.innerHeight,s=document.documentElement.scrollHeight;e.classList.contains("top")?(d()||r===s||i<0)&&(i<0?V(e):Z(e)):(d()||r===s||n>s)&&(n>window.scrollY+r?V(e):M===j&&Z(e))}else if("boxed"===o.type){const e=document.getElementById("menu-submit"),t=o.elm,n=document.querySelector(".level-1").clientHeight,i=e.getBoundingClientRect().top+window.scrollY+e.clientHeight+n,r=document.documentElement.clientHeight,s=document.documentElement.scrollHeight;d()&&i>window.scrollY+r||!d()&&i>s?V(t):Z(t)}},U=e=>{const t="boxed"===o.type?o.elm:e.target.closest("ul.level-2"),n=document.querySelectorAll(".s-hn-centered")&&!d()?document.querySelector(".level-1").getBoundingClientRect().top:0,r=(0,i.GI)()?parseInt(getComputedStyle(document.querySelector(".wnd-topfixed-wrapper")).height):0,s="centered"===o.subType;let a;a=t.classList.contains("top")?t.offsetHeight-parseInt(getComputedStyle(t).paddingTop):t.offsetHeight-parseInt(getComputedStyle(t).paddingBottom);let l=null;if("wheel"===e.type?l=e.deltaY:"touchstart"===e.type?B=e.touches[0].clientY:"touchmove"===e.type&&(F=e.touches[0].clientY,l=-1*(F-B),B=F),l=null===l?null:-1*l,t.classList.contains("top"))if(l>0){e.preventDefault();const n=document.querySelector(".s-hn"),i=window.scrollY,s=parseInt(n.getBoundingClientRect().top+i)+parseInt(n.offsetHeight)-M-parseInt(getComputedStyle(t).paddingBottom)-a;t.style.bottom=s+l<0-r?(M-=l)+"px":(M=-1*(a+30+r-(parseInt(n.getBoundingClientRect().top+i)+parseInt(n.offsetHeight)-i)))+"px"}else{e.preventDefault();const n=M+-1*l;t.style.bottom=n<H?(M=n)+"px":(M=H)+"px"}else if(l)if(e.preventDefault(),l>0)t.style.top=M+l<j?(M+=l)+"px":(M=j)+"px";else{const e=M+l,i=window.innerHeight,c=window.scrollY,u=document.getElementById("menu-submit"),p=u.getBoundingClientRect().top+c,h=u.offsetHeight,m=d(),f="boxed"!==o.subType||m?c+i-50:i-50;"boxed"===o.subType?t.style.top=m?(e+a>i?M+=l:M=-1*(a-(c+i-(p+h))))+"px":(e+p+a>f?M+=l:M=-1*(a-f)-(p+h)+30)+"px":t.style.top=m?(e+a>i?M+=l:M=-1*(a-i+30-(s?0:r)))+"px":(e+n+a>f?M+=l:M=-1*(a-f)-n+30-(s?0:r))+"px"}},V=e=>{e.classList.add("scrolling"),null===j&&(j=parseInt(getComputedStyle(e).top),M=e.classList.contains("top")?parseInt(getComputedStyle(e).bottom):j),null===H&&(H=e.classList.contains("top")?parseInt(getComputedStyle(e).bottom):null),e.addEventListener("wheel",U),e.addEventListener("touchstart",U),e.addEventListener("touchmove",U),e.addEventListener("touchend",U)},Z=e=>{H=null,j=null,e.classList.remove("scrolling"),e.removeEventListener("wheel",U),e.removeEventListener("touchstart",U),e.removeEventListener("touchmove",U),e.removeEventListener("touchend",U)},G=e=>{e.style.opacity="0",e.style.display="block";const t=parseInt(e.offsetWidth),n=window.innerWidth,i=e.getBoundingClientRect().left+t;if(e.removeAttribute("style"),i>n&&e.classList.add("align"),"bottom"===o.subType){const t="bottom"!==o.subType||document.querySelector(".wt-home")?180:0;window.scrollY<t&&!document.querySelector(".s-hm-hidden")?e.classList.add("top"):e.classList.remove("top")}else e.classList.contains("top")&&e.classList.remove("top")},Q=e=>{if("mouse"===e.pointerType&&o.mode.includes("desktop")){const t=e.target.querySelector(":scope > ul");G(t),t.classList.add("open"),e.target.classList.add("hover"),u("wnd-open-menu"),setTimeout((()=>{W(t)}),400)}},X=e=>{if("mouse"===e.pointerType&&o.mode.includes("desktop")){const t=e.target.querySelector("ul");e.target.classList.remove("hover"),t.classList.remove("open"),t.classList.remove("align"),Z(t),K(t),u("wnd-close-menu")}},Y=e=>{e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const t=e.target;if(t.classList.contains("mm-down"))if("vertical"===o.type&&o.mode.includes("desktop")){const e=t.previousElementSibling;t.parentNode.classList.add("hover"),t.classList.replace("mm-down","mm-up"),e.style.display="block";let n=e.offsetHeight;e.style.display="none",e.style.height=0,e.classList.add("open");const i=document.querySelector("#menu > div");let r=[{height:0},{height:`${n}px`}],s={duration:500,fill:"forwards",easing:"linear"},a=e.animate(r,s);a.onfinish=function(){e.removeAttribute("style"),a.cancel()};let l=function(){i.offsetHeight>o.elm.offsetHeight&&document.body.classList.add("scrolldown-active"),"running"===a.playState&&window.requestAnimationFrame(l)};window.requestAnimationFrame(l)}else t.parentNode.classList.add("hover"),t.classList.replace("mm-down","mm-up"),t.previousElementSibling.classList.add("open"),u("wnd-open-menu"),setTimeout((()=>{W(t.previousElementSibling)}),400);else if("vertical"===o.type&&o.mode.includes("desktop")){const e=t.previousElementSibling,n=document.querySelector("#menu > div");let i=e.offsetHeight;t.classList.replace("mm-up","mm-down");let r=[{height:`${i}px`},{height:0}],s={duration:500,fill:"forwards",easing:"linear"},a=e.animate(r,s);a.onfinish=function(){e.removeAttribute("style"),e.parentNode.classList.remove("hover"),e.classList.remove("open"),a.cancel()};let l=function(){n.offsetHeight<=o.elm.offsetHeight&&(document.body.classList.remove("scrollup-active"),document.body.classList.remove("scrolldown-active")),"running"===a.playState&&window.requestAnimationFrame(l)};window.requestAnimationFrame(l)}else t.parentNode.classList.remove("hover"),t.classList.replace("mm-up","mm-down"),t.previousElementSibling.classList.remove("open"),K(t.previousElementSibling),"horizontal"===o.type&&o.mode.includes("desktop")&&t.previousElementSibling.classList.contains("level-2")&&u("wnd-close-menu"),setTimeout((()=>{W(t.previousElementSibling)}),400)},K=e=>{const t=e||document;t.querySelectorAll("ul.open")?.forEach((e=>{(e=>{(e.classList.contains("level-2")||e.classList.contains("level-3")&&!e.parentNode.classList.contains("wnd-active-path"))&&(e.classList.remove("open"),e.parentNode.classList.remove("hover"),e.classList.remove("align"),e.nextElementSibling?.classList.replace("mm-up","mm-down"),e.removeAttribute("style"),e.classList.contains("level-2")&&Z(e))})(e)}))},J=e=>{"touch"===e.pointerType&&(e.target.closest("#menu")||(K(),document.documentElement.removeEventListener("pointerdown",J)))},ee=e=>{if(o.mode.includes("desktop")&&"touch"===e.pointerType){const t=e.currentTarget,n=t.parentNode,i=n.querySelector(":scope > ul");t.parentNode.classList.contains("hover")||(t.addEventListener("click",p,{once:!0}),setTimeout((()=>{t.removeEventListener("click",p,{once:!0})}),100),K(),G(i),i.classList.add("open"),n.classList.add("hover"),u("wnd-open-menu"),setTimeout((()=>{W(i)}),400),setTimeout((()=>{document.documentElement.addEventListener("pointerdown",J)}),200))}},te=()=>{o.elm.querySelectorAll("ul li.wnd-with-submenu").forEach((e=>{let t=e.parentNode;if((t.classList.contains("level-1")||t.classList.contains("level-2"))&&!e.querySelector("ul + .mm-arrow")){let t=document.createElement("a");t.setAttribute("href","#"),t.classList.add("mm-arrow","mm-down"),e.append(t)}t.classList.contains("level-3")&&e.classList.remove("wnd-with-submenu")}))},ne=()=>{let e;e=o.mode.includes("mobile")||"boxed"===o.type||"vertical"===o.type?document.querySelectorAll("li.wnd-active-path.wnd-with-submenu"):document.querySelectorAll(".level-2 li.wnd-active-path.wnd-with-submenu"),(e=>{e?.forEach((e=>{let t=e.querySelector(":scope > ul");t&&t.classList.add("open");let n=e.querySelector(":scope > .mm-arrow");n&&n.classList.replace("mm-down","mm-up")}))})(e)},ie=e=>{const t=document.querySelector(".wnd-topfixed-wrapper"),n=document.querySelector(".wnd-fixed");if("compensate"===e){if(document.body.offsetHeight>window.innerHeight){const e=re()+"px";document.body.style.paddingRight=e,d()&&(n.style.paddingRight=e),t&&(t.style.paddingRight=e,t.style.boxSizing="border-box")}}else document.body.removeAttribute("style"),d()&&n.removeAttribute("style"),t&&t.removeAttribute("style")},re=()=>{const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const n=e.offsetWidth-t.offsetWidth;return e.parentNode.removeChild(e),n},se=e=>{e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation();const t=document.querySelector("#menu-submit"),n="sliding"===o.subType&&o.mode.includes("desktop")?document.querySelector("#menu-slider"):o.elm;if(t.classList.contains("active")){const e=new Event("mobile-menu-close",{bubbles:!0,cancellable:!0});document.querySelector(".s-hn").dispatchEvent(e),t.classList.remove("active"),n.classList.remove("open"),r.B.removeClass("show"),document.documentElement.classList.remove("noscroll"),document.body.classList.remove("noscroll"),("sliding"===o.subType||o.mode.includes("mobile"))&&ie("clear"),setTimeout((()=>{n.classList.remove("visible"),document.body.classList.remove("menu-open"),r.B.removeOverlay("menu-overlay")}),250),"boxed"===o.subType&&(o.elm.removeAttribute("style"),Z(o.elm)),u("wnd-close-menu")}else{const e=new Event("mobile-menu-open",{bubbles:!0,cancellable:!0});document.querySelector(".s-hn").dispatchEvent(e),t.classList.add("active"),n.classList.add("visible","open"),r.B.addOverlay("#menu-mobile","before","menu-overlay"),r.B.addClass("show"),r.B.bindOverlayClose("touchend MSPointerDown pointerdown click",(()=>{let e=new Event("click");t.dispatchEvent(e),$(".menu-overlay").off("touchend MSPointerDown pointerdown click")})),("sliding"===o.subType||o.mode.includes("mobile"))&&(document.documentElement.classList.add("noscroll"),document.body.classList.add("noscroll"),ie("compensate")),"boxed"===o.subType&&setTimeout((()=>{W()}),10),document.body.classList.add("menu-open"),u("wnd-open-menu")}},oe=()=>{const e=document.querySelector("#menu-submit"),t=document.querySelectorAll(".menu-close"),n=document.querySelector(".scrollup"),i=document.querySelector(".scrolldown");e.addEventListener("click",se),t.forEach((e=>e.addEventListener("click",se))),n&&i&&(n.addEventListener("pointerdown",R),i.addEventListener("pointerdown",R))},ae=()=>{oe(),(()=>{const e=document.querySelectorAll(".level-1 > li.wnd-with-submenu");"horizontal"===o.type&&(e?.forEach((e=>{e.addEventListener("pointerenter",Q)})),e?.forEach((e=>{e.addEventListener("pointerleave",X)})),e?.forEach((e=>{e.querySelector(":scope > a.menu-item").addEventListener("pointerdown",ee)})));const t=document.querySelectorAll("li.wnd-with-submenu a.mm-arrow");t?.forEach((e=>{e.addEventListener("click",Y)}))})()},le=()=>{oe(),"vertical"===o.type&&(q(),O())};const ce=()=>{const e=document.querySelector(".search-app");e&&!e.hasChildNodes()&&(document.body.classList.contains("wnd-s-i")&&e.insertAdjacentHTML("beforeend",`<div class="search-icon" role="button" aria-label="search" tabindex="0"><div class="search-icon-text">${wnd.$system.labels["wnd.pc.SearchBlock.iconText"]}</div></div>`),document.body.classList.contains("wnd-s-b")&&e.insertAdjacentHTML("beforeend",`<div class="search-bar"><input class="search-bar-input" placeholder="${wnd.$system.labels["wnd.pc.SearchBlock.inputPlaceholder"]}"><input type="submit" class="search-bar-submit" value=""></div>`))},ue=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=document.querySelector(".logo-block");let n,i,r,s=t?t.getBoundingClientRect().width+parseInt(getComputedStyle(t).marginLeft)+parseInt(getComputedStyle(t).marginRight):0,a=document.querySelector(".menu-nav").clientWidth,l=parseInt(getComputedStyle(o.elm).paddingRight),d=document.querySelector(".cart"),h=d?d.getBoundingClientRect().width+parseInt(getComputedStyle(d).marginLeft)+parseInt(getComputedStyle(d).marginRight)+(parseInt(getComputedStyle(d).right)||0):0,m=document.querySelector(".search"),f=0;if(m){const e="none"===getComputedStyle(m).display;ce(),e&&(m.style.display="block"),f=m.getBoundingClientRect().width+parseInt(getComputedStyle(m).marginLeft)+parseInt(getComputedStyle(m).marginRight),e&&m.removeAttribute("style")}let g,v,y=document.querySelector("li.more");if(n=parseInt(getComputedStyle(o.elm).right),0===h&&(n=n>0?n-l:n),n=isNaN(n)?0:n,i=parseInt(getComputedStyle(o.elm).paddingRight)||0,r=parseInt(getComputedStyle(o.elm).paddingLeft)||0,!y){document.querySelector("#menu .level-1").insertAdjacentHTML("beforeend",`<li class="more wnd-with-submenu"><a href="#" class="menu-item"><span class="menu-item-text">${c}</span></a></li>`),y=document.querySelector("#menu .level-1 li.more")}g=y.getBoundingClientRect().width+parseInt(getComputedStyle(y).marginLeft)+parseInt(getComputedStyle(y).marginRight),y.parentNode.removeChild(y),v=parseInt(getComputedStyle(document.querySelector("#menu .level-1 > li:first-child > a")).paddingLeft)||0;const b=Math.floor(a)-Math.ceil(s)-Math.ceil(h)-Math.ceil(f)-Math.ceil(g)-Math.ceil(v)-Math.ceil(i)-Math.ceil(r)-Math.ceil(n)-Math.ceil(20);let w=0,_=0;if(document.querySelectorAll("#menu .level-1 > li:not(.more)")?.forEach((e=>{if(w+=function(e){e.style.display="inline-block";let t=window.getComputedStyle(e),n=parseInt(t.marginLeft)+parseInt(t.marginRight),i=e.offsetWidth+n;return e.removeAttribute("style"),i}(e),w>b){let t;t=document.querySelector("#menu .level-1 li.more"),t||(document.querySelector("#menu .level-1").insertAdjacentHTML("beforeend",`<li class="more wnd-with-submenu"><a href="#" class="menu-item"><span class="menu-item-text">${c}</span></a><ul class="level-2"></ul><a href="#" class="mm-arrow mm-down"></a></li>`),t=document.querySelector("#menu .level-1 li.more"),t.querySelector(":scope > a.menu-item").addEventListener("click",p),u("wnd-more-menu"));const n=e.cloneNode(!0);n.querySelectorAll("ul").forEach((function(e){if(e.classList.contains("level-2"))e.classList.replace("level-2","level-3"),e.removeAttribute("style");else if(e.classList.contains("level-3")){let t=e.parentNode.querySelector(".mm-arrow");t&&t.parentNode.removeChild(t)}else e.removeAttribute("style")}));document.querySelector("#menu .level-1 li.more .level-2").appendChild(n),e.classList.add("overflowed"),_++}else e.classList.remove("overflowed")})),_>0&&e){let e=document.querySelector("#menu li.more");e.addEventListener("pointerenter",Q),e.addEventListener("pointerleave",X),e.querySelector(":scope > a.menu-item").addEventListener("pointerdown",ee);const t=document.querySelectorAll("li.more a.mm-arrow");t?.forEach((e=>{e.addEventListener("click",Y)}))}},de=e=>{const t=e||document.querySelector("footer");"fixed"===getComputedStyle(t).position?document.querySelector(".l-sidebar").style.setProperty("--sidebar-bottom-padding",t.offsetHeight+"px"):document.querySelector(".l-sidebar").removeAttribute("style")},pe=()=>{const e=document.querySelectorAll(".level-1 > li.wnd-with-submenu");e?.forEach((e=>{e.removeEventListener("pointerenter",Q)})),e?.forEach((e=>{e.removeEventListener("pointerleave",X)})),e?.forEach((e=>{e.querySelector(":scope > a.menu-item").removeEventListener("pointerdown",ee)}))},he=()=>{"sidebar"===o.subType&&(de(),ce()),te(),ne(),ae(),function(){if(o.mode.includes("desktop")){let e=getComputedStyle(o.elm).display;"none"===e&&(o.elm.style.display="block"),O(),"none"===e&&o.elm.removeAttribute("style")}}(),q()},me=e=>{o.hasItems&&("horizontal"===o.type&&ue(!0),"vertical"===o.type&&(O(),"sidebar"===o.subType&&de()))},fe=()=>{o=s(),(()=>{o=s();let e=document.querySelector("li.more");e?.parentNode.removeChild(e),document.querySelectorAll("ul.level-1 li.overflowed")?.forEach((e=>{e.classList.remove("overflowed")})),o.elm.removeEventListener("scroll",O);const t=document.querySelector("#menu-slider");t?.classList.remove("visible","open"),o.elm.classList.remove("visible","open"),document.querySelector("#menu-submit").classList.remove("active"),o.elm.classList.remove("open"),document.body.classList.remove("noscroll"),document.documentElement.classList.remove("noscroll"),r.B.removeOverlay("menu-overlay"),document.documentElement.classList.remove("menu-open"),document.body.removeAttribute("style"),K(),document.querySelectorAll(".mm-arrow").forEach((e=>{e.parentNode.removeChild(e)})),document.body.classList.remove("scrollup-active"),document.body.classList.remove("scrolldown-active"),document.querySelector(".l").removeAttribute("style"),pe(),document.body.classList.remove("menu-ready")})(),o.mode.includes("mobile")?(te(),ne(),ae()):o.hasItems&&("horizontal"===o.type&&(ue(),te(),ne(),ae()),"vertical"===o.type&&he(),"boxed"===o.type&&(te(),ne(),ae())),document.body.classList.add("menu-ready");const e=new CustomEvent("wnd-menu-redraw");document.body.dispatchEvent(e)};const ge=e=>{requestAnimationFrame(fe),"wnd-view-switched-desktop"===e.type?L():P()},ve=function(e,t){let n;return function(){const i=this,r=arguments;(r[0].target&&r[0].target.classList.contains("s-hn")||r[0].target&&r[0].target.classList.contains("wnd-page"))&&(clearTimeout(n),n||e.apply(i,r),n=setTimeout((function(){n=null}),t))}}((()=>{o=s(),P();let e=E();x!==e&&(x&&e&&requestAnimationFrame(me),x=e),l!==o.subType?(requestAnimationFrame(fe),l=o.subType):requestAnimationFrame(le),o.mode.includes("desktop")&&requestAnimationFrame(L)}),200),ye=function(e,t){let n;return function(){const i=this,r=arguments;r[0].target&&r[0].target.classList.contains("menu-wrapper")&&(clearTimeout(n),n||e.apply(i,r),n=setTimeout((function(){n=null}),t))}}((()=>{requestAnimationFrame(fe)}),200);a.addEventListener("wnd-redraw",ve),a.addEventListener("wnd-navline-resize",(e=>{"height"!==e.detail.type||"sidebar"!==o.subType&&"sliding"!==o.subType||me(),"width"!==e.detail.type||"default"!==o.subType&&"bottom"!==o.subType&&"centered"!==o.subType||me()})),a.addEventListener("wnd-logo-resize",(e=>{"height"===e.detail.type&&"sidebar"===o.subType&&me(),"width"!==e.detail.type||"default"!==o.subType&&"bottom"!==o.subType||me()})),a.addEventListener("wnd-redraw",ye),document.body.addEventListener("wnd-view-switched-mobile",ge),document.body.addEventListener("wnd-view-switched-desktop",ge);if(window.addEventListener("navfixed",(()=>{"boxed"===o.subType?o.elm.classList.contains("open")&&setTimeout((function(){W(document.querySelector(".level-1"))}),10):document.querySelectorAll(".level-2.open").length&&setTimeout((function(){W(document.querySelector(".level-2.open"))}),10)})),window.addEventListener("navunfixed",(()=>{"horizontal"===o.type&&[".level-2.open",".level-2"].forEach((e=>{const t=document.querySelectorAll(e);t?.forEach((e=>Z(e)))})),"boxed"===o.type&&Z(o.elm),"sidebar"===o.subType&&[".s-hn",".wnd-fixed"].forEach((e=>{const t=document.querySelector(e);t&&(t.classList.remove(".s-hn"===e?"sticky":"bgonscroll"),".wnd-fixed"===e&&t.removeAttribute("style"))}))})),I(),(0,i.GI)()&&new MutationObserver((e=>{e.forEach((e=>{e.target.classList&&!e.target.classList.contains(z)&&(z=A(),I())}))})).observe(document.querySelector(".wnd-page"),{attributes:!0,attributeFilter:["class"]}),fe(),o.mode.includes("desktop")&&(T(),v(),"sidebar"===o.subType&&_()),document.body.classList.contains("wt-typography")){let e=document.querySelector("ul.level-1 > li:first-child"),t=e?.clientWidth;new ResizeObserver((n=>{const i=e.clientWidth;i!==t&&(requestAnimationFrame(me),t=i)})).observe(e)}}))},19:()=>{
/*! modernizr 3.6.0 (Custom Build) | MIT *
 * https://modernizr.com/download/?-sizes-srcset-webp-webpalpha-setclasses !*/
!function(e,t,n){function i(e,t){return typeof e===t}function r(e){var t=p.className,n=u._config.classPrefix||"";if(h&&(t=t.baseVal),u._config.enableJSClass){var i=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(i,"$1"+n+"js$2")}u._config.enableClasses&&(t+=" "+n+e.join(" "+n),h?p.className.baseVal=t:p.className=t)}function s(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):h?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function o(e,t){if("object"==typeof e)for(var n in e)d(e,n)&&o(n,e[n]);else{var i=(e=e.toLowerCase()).split("."),s=u[i[0]];if(2==i.length&&(s=s[i[1]]),void 0!==s)return u;t="function"==typeof t?t():t,1==i.length?u[i[0]]=t:(!u[i[0]]||u[i[0]]instanceof Boolean||(u[i[0]]=new Boolean(u[i[0]])),u[i[0]][i[1]]=t),r([(t&&0!=t?"":"no-")+i.join("-")]),u._trigger(e,t)}return u}var a=[],l=[],c={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout((function(){t(n[e])}),0)},addTest:function(e,t,n){l.push({name:e,fn:t,options:n})},addAsyncTest:function(e){l.push({name:null,fn:e})}},u=function(){};u.prototype=c,u=new u;var d,p=t.documentElement,h="svg"===p.nodeName.toLowerCase();u.addTest("srcset","srcset"in s("img")),function(){var e={}.hasOwnProperty;d=i(e,"undefined")||i(e.call,"undefined")?function(e,t){return t in e&&i(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}(),c._l={},c.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),u.hasOwnProperty(e)&&setTimeout((function(){u._trigger(e,u[e])}),0)},c._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout((function(){var e;for(e=0;e<n.length;e++)(0,n[e])(t)}),0),delete this._l[e]}},u._q.push((function(){c.addTest=o})),u.addAsyncTest((function(){var e,t,n=s("img"),i="sizes"in n;!i&&"srcset"in n?("data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==",e="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",t=function(){o("sizes",2==n.width)},n.onload=t,n.onerror=t,n.setAttribute("sizes","9px"),n.srcset=e+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 8w",n.src=e):o("sizes",i)})),u.addAsyncTest((function(){var e=new Image;e.onerror=function(){o("webpalpha",!1)},e.onload=function(){o("webpalpha",1==e.width)},e.src="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="})),u.addAsyncTest((function(){function e(e,t,n){function i(t){var i=!(!t||"load"!==t.type)&&1==r.width;o(e,"webp"===e&&i?new Boolean(i):i),n&&n(t)}var r=new Image;r.onerror=i,r.onload=i,r.src=t}var t=[{uri:"data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=",name:"webp"},{uri:"data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",name:"webp.alpha"},{uri:"data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA",name:"webp.animation"},{uri:"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",name:"webp.lossless"}],n=t.shift();e(n.name,n.uri,(function(n){if(n&&"load"===n.type)for(var i=0;i<t.length;i++)e(t[i].name,t[i].uri)}))})),function(){var e,t,n,r,s,o;for(var c in l)if(l.hasOwnProperty(c)){if(e=[],(t=l[c]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(r=i(t.fn,"function")?t.fn():t.fn,s=0;s<e.length;s++)1===(o=e[s].split(".")).length?u[o[0]]=r:(!u[o[0]]||u[o[0]]instanceof Boolean||(u[o[0]]=new Boolean(u[o[0]])),u[o[0]][o[1]]=r),a.push((r?"":"no-")+o.join("-"))}}(),r(a),delete c.addTest,delete c.addAsyncTest;for(var m=0;m<u._q.length;m++)u._q[m]();e.Modernizr=u}(window,document)},850:(__unused_webpack_module,exports)=>{var FSOverlay=function(){this.overlayActive=!1,this.overlayClass="fullscreen-overlay"};FSOverlay.prototype.addOverlay=function(targetElm,appendMethod,typeClass){typeClass=void 0===typeClass?"":" "+typeClass,eval("$(targetElm)."+appendMethod+"('<div class=\""+this.overlayClass+typeClass+"\"></div>');"),this.overlayActive=!0},FSOverlay.prototype.removeOverlay=function(e){void 0!==e?$("."+this.overlayClass+"."+e).remove():$(".fullscreen-overlay").remove(),this.overlayActive=!1},FSOverlay.prototype.addClass=function(e){$("."+this.overlayClass).addClass(e)},FSOverlay.prototype.removeClass=function(e){$("."+this.overlayClass).removeClass(e)},FSOverlay.prototype.bindOverlayClose=function(e,t){var n=this.overlayClass;$("."+n).one(e,(function(n,i){t(),$("."+i).off(e)}))};var fullscreenOverlay=new FSOverlay;exports.B=fullscreenOverlay},766:(e,t,n)=>{"use strict";var i=n(877);!function(){const e=document.querySelector(".s-hn"),t=document.querySelector(".l-h");let n,r,s,o;const a=!(0,i.WZ)()&&!(0,i.G6)();//!msieVersion() && !isSafari() && !isFirefox();
function l(e,t,n,i,r,s,o,a,l,c){const u=-e+t,d=n<t?e-n:e-t,p=r-d,h=s+d;let m;if(o&&l){m=0+(u-0)*(i-p)/(h-p)-(0+(u-0)*(t/2-p)/(h-p))}else if(a&&c){m=0+(u-0)*(i-p)/(h-p)+(0+(u-0)*(d+t/2)/(h-p))}else m=0+(u-0)*(i-p)/(h-p);return m}function c(){const e=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,i=t+e,c=(t+i)/2,u=document.querySelectorAll(".bgatt-parallax");u&&u.forEach((u=>{const d=u;let p=d.closest(".s");null===p&&(p=d.closest(".l-bg"));const h=p===document.querySelector(".l-m .sw-c section:first-child"),m=p===document.querySelector(".l-m .sw-c section:last-child"),f=d.classList.contains("bgpos-top-center"),g=d.classList.contains("bgpos-bottom-center"),v=a?p.offsetHeight:parseFloat(getComputedStyle(d,null).height.replace("px","")),y=a?p.getBoundingClientRect().top+window.pageYOffset:d.getBoundingClientRect().top+window.pageYOffset,b=y+v;let w,_,E;if(i>y&&t<b)if(a){w=parseFloat(getComputedStyle(d,null).height.replace("px","")),E=l(w,e,v,c,y,b,h,m,f,g);const t=`translate3d(0px, ${E}px, 0px)`;let i="0px";!n||r||o||(i=`${s+o}px`),d.style.marginLeft=i,d.style["-webkit-transform"]=t,d.style["-ms-transform"]=t,d.style.transform=t}else{_=d.getAttribute("resized-imgw"),w=d.getAttribute("resized-imgh");let t=0;d.style.top.indexOf("px")>0&&parseInt(d.style.top,10)>0&&(t=parseInt(d.style.top,10)),E=l(w,e,v,c,y,b,h,m,f,g),E+=t;let i="50%";n&&!r&&0===o&&(i=`${s+(parseInt(getComputedStyle(d,null).width.replace("px",""),10)-_)/2}px`),d.style.backgroundPosition=`${i} ${E}px`}}))}function u(){n=document.body.classList.contains("l-sidebar")&&"fixed"===getComputedStyle(t).position,r=null!==e&&(e.classList.contains("sc-wt")||e.classList.contains("sc-dt")||e.classList.contains("sc-none")),s=parseInt(getComputedStyle(t,null).width.replace("px",""),10),o=parseInt(getComputedStyle(t).marginLeft,10);const l=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),u=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),d=document.querySelectorAll(".bgatt-parallax");d&&d.forEach((e=>{const t=e,i=t.classList.contains("wnd-background-pattern");if(a){t.classList.contains("parallax")||t.classList.add("parallax");const e=l+200;t.style.height=`${e}px`}else{let e=parseInt(getComputedStyle(t,null).width.replace("px",""),10);if(n&&(r||o>0)&&(e=u),null===t.querySelector("picture")){const n=t.getAttribute("style"),r=n.indexOf("http");let s;s=n.indexOf("')")>-1?n.indexOf("')"):n.indexOf('")')>-1?n.indexOf('")'):n.indexOf(")");const o=n.substr(r,s-r),a=document.createElement("IMG");a.setAttribute("src",o),a.addEventListener("load",(()=>{let n=a.width,r=a.height;const s=n/r;r=l+200,n=r*s,e>n&&(n=e,r=n/s),i||(t.style.backgroundSize=`${n}px ${r}px`),t.setAttribute("resized-imgW",n),t.setAttribute("resized-imgH",r),t.style.backgroundAttachment="fixed"}))}else{const n=t.querySelector("picture > img"),i=n.src;let r=n.naturalHeight,s=n.naturalWidth;r=0===r?parseInt(n.getAttribute("height"),10):r,s=0===s?parseInt(n.getAttribute("width"),10):s;const o=s/r;r=l+200,s=r*o,e>s&&(s=e,r=s/o),t.style.backgroundImage=`url(${i})`,t.style.backgroundSize=`${s}px ${r}px`,t.setAttribute("resized-imgW",s),t.setAttribute("resized-imgH",r),t.style.backgroundAttachment="fixed"}}}));const p=(0,i.WZ)()?300:100;setTimeout((()=>{c()}),p)}(0,i.Cd)((()=>{(0,i.R2)("touched")||(0,i.R2)("wnd-frontend-test")||(0,i.R2)("mobile-devices")||(0,i.n9)()||(0,i.bU)()?document.querySelectorAll(".bgatt-parallax").forEach((e=>{e.classList.remove("bgatt-parallax"),e.classList.add("bgatt-scroll")})):(window.addEventListener("resize",(()=>u())),window.addEventListener("orientationchange",(()=>u())),window.addEventListener("scroll",(()=>window.requestAnimationFrame(c))),(0,i.GI)()?setTimeout((()=>{u()}),50):u()),(0,i.GI)()&&document.body.addEventListener("wnd-redraw",(()=>{setTimeout((()=>{document.querySelectorAll(".s-bg-l.parallax:not(.bgatt-parallax)").forEach((e=>{e.classList.remove("parallax")})),(0,i.R2)("touched")||u()}),200)}))}))}()},277:(e,t,n)=>{"use strict";
/*!
  * PhotoSwipe Lightbox 5.2.8 - https://photoswipe.com
  * (c) 2022 Dmytro Semenov
  */
function i(e,t,n){const i=document.createElement(t||"div");return e&&(i.className=e),n&&n.appendChild(i),i}function r(e,t,n){e.style.width="number"==typeof t?t+"px":t,e.style.height="number"==typeof n?n+"px":n}n.d(t,{K:()=>Ce});const s="idle",o="loading",a="loaded",l="error";function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,i=[];if(e instanceof Element)i=[e];else if(e instanceof NodeList||Array.isArray(e))i=Array.from(e);else{const r="string"==typeof e?e:t;r&&(i=Array.from(n.querySelectorAll(r)))}return i}class u{constructor(e,t){this.type=e,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}}class d{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;this._filters[e]||(this._filters[e]=[]),this._filters[e].push({fn:t,priority:n}),this._filters[e].sort(((e,t)=>e.priority-t.priority)),this.pswp&&this.pswp.addFilter(e,t,n)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter((e=>e.fn!==t))),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this._filters[e]&&this._filters[e].forEach((e=>{n[0]=e.fn.apply(this,n)})),n[0]}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this.pswp&&this.pswp.on(e,t)}off(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((e=>t!==e))),this.pswp&&this.pswp.off(e,t)}dispatch(e,t){if(this.pswp)return this.pswp.dispatch(e,t);const n=new u(e,t);return this._listeners?(this._listeners[e]&&this._listeners[e].forEach((e=>{e.call(this,n)})),n):n}}class p{constructor(e,t){this.element=i("pswp__img pswp__img--placeholder",e?"img":"",t),e&&(this.element.decoding="async",this.element.alt="",this.element.src=e,this.element.setAttribute("role","presentation")),this.element.setAttribute("aria-hiden","true")}setDisplayedSize(e,t){this.element&&("IMG"===this.element.tagName?(r(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=function(e,t,n){let i="translate3d("+e+"px,"+(t||0)+"px,0)";return void 0!==n&&(i+=" scale3d("+n+","+n+",1)"),i}(0,0,e/250)):r(this.element,e,t))}destroy(){this.element.parentNode&&this.element.remove(),this.element=null}}class h{constructor(e,t,n){this.instance=t,this.data=e,this.index=n,this.element=void 0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.state=s,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=null)}),500)}load(e,t){if(!this.placeholder&&this.slide&&this.usePlaceholder()){const e=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new p(e,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?this.loadImage(e):(this.element=i("pswp__content"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){const t=i("pswp__img","img");this.element=t,this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented||(this.data.srcset&&(t.srcset=this.data.srcset),t.src=this.data.src,t.alt=this.data.alt||"",this.state=o,t.complete?this.onLoaded():(t.onload=()=>{this.onLoaded()},t.onerror=()=>{this.onError()}))}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=a,this.slide&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.slide.container.innerHTML="",this.append(),this.slide.updateContentSize(!0)))}onError(){this.state=l,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===o,this)}isError(){return this.state===l}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(r(this.element,e,t),this.isImageContent()&&!this.isError()))){const n=this.element;n.srcset&&(!n.dataset.largestUsedSize||e>parseInt(n.dataset.largestUsedSize,10))&&(n.sizes=e+"px",n.dataset.largestUsedSize=String(e)),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==l,this)}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=null,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=null))}displayError(){if(this.slide){let e=i("pswp__error-msg");e.innerText=this.instance.options.errorMsg,e=this.instance.applyFilters("contentErrorElement",e,this),this.element=i("pswp__content pswp__error-msg-container"),this.element.appendChild(e),this.slide.container.innerHTML="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){this.isAttached=!0,this.state!==l?this.instance.dispatch("contentAppend",{content:this}).defaultPrevented||(this.isImageContent()?this.slide&&!this.slide.isActive&&"decode"in this.element?(this.isDecoding=!0,requestAnimationFrame((()=>{this.element&&"IMG"===this.element.tagName&&this.element.decode().then((()=>{this.isDecoding=!1,requestAnimationFrame((()=>{this.appendImage()}))})).catch((()=>{this.isDecoding=!1}))}))):(!this.placeholder||this.state!==a&&this.state!==l||this.removePlaceholder(),this.appendImage()):this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element)):this.displayError()}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||this.slide&&(this.isImageContent()&&this.isDecoding?this.appendImage():this.isError()&&this.load(!1,!0))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this})}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||this.element&&this.element.parentNode&&this.element.remove()}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||this.slide&&this.element&&!this.element.parentNode&&(this.slide.container.appendChild(this.element),!this.placeholder||this.state!==a&&this.state!==l||this.removePlaceholder()))}}class m extends d{getNumItems(){let e;const{dataSource:t}=this.options;t?"length"in t?e=t.length:"gallery"in t&&(t.items||(t.items=this._getGalleryDOMElements(t.gallery)),t.items&&(e=t.items.length)):e=0;const n=this.dispatch("numItems",{dataSource:t,numItems:e});return this.applyFilters("numItems",n.numItems,t)}createContentFromData(e,t){return new h(e,this,t)}getItemData(e){const{dataSource:t}=this.options;let n;Array.isArray(t)?n=t[e]:t&&t.gallery&&(t.items||(t.items=this._getGalleryDOMElements(t.gallery)),n=t.items[e]);let i=n;i instanceof Element&&(i=this._domElementToItemData(i));const r=this.dispatch("itemData",{itemData:i||{},index:e});return this.applyFilters("itemData",r.itemData,e)}_getGalleryDOMElements(e){return this.options.children||this.options.childSelector?c(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const t={element:e},n="A"===e.tagName?e:e.querySelector("a");if(n){t.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(t.srcset=n.dataset.pswpSrcset),t.width=parseInt(n.dataset.pswpWidth,10),t.height=parseInt(n.dataset.pswpHeight,10),t.w=t.width,t.h=t.height,n.dataset.pswpType&&(t.type=n.dataset.pswpType);const i=e.querySelector("img");i&&(t.msrc=i.currentSrc||i.src,t.alt=i.getAttribute("alt")),(n.dataset.pswpCropped||n.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,n)}}function f(e,t,n,i,r){let s;if(t.paddingFn)s=t.paddingFn(n,i,r)[e];else if(t.padding)s=t.padding[e];else{const n="padding"+e[0].toUpperCase()+e.slice(1);t[n]&&(s=t[n])}return s||0}class g{constructor(e,t,n,i){this.pswp=i,this.options=e,this.itemData=t,this.index=n}update(e,t,n){this.elementSize={x:e,y:t},this.panAreaSize=n;const i=this.panAreaSize.x/this.elementSize.x,r=this.panAreaSize.y/this.elementSize.y;this.fit=Math.min(1,i<r?i:r),this.fill=Math.min(1,i>r?i:r),this.vFill=Math.min(1,r),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const t=e+"ZoomLevel",n=this.options[t];if(n)return"function"==typeof n?n(this):"fill"===n?this.fill:"fit"===n?this.fit:Number(n)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,3*this.fit),e*this.elementSize.x>4e3&&(e=4e3/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){const e=this._parseZoomLevelOption("max");return e||Math.max(1,4*this.fit)}}function v(e,t,n){const i=t.createContentFromData(e,n);if(!i||!i.lazyLoad)return;const{options:r}=t,s=t.viewportSize||function(e,t){if(e.getViewportSizeFn){const n=e.getViewportSizeFn(e,t);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}(r,t),o=function(e,t,n,i){return{x:t.x-f("left",e,t,n,i)-f("right",e,t,n,i),y:t.y-f("top",e,t,n,i)-f("bottom",e,t,n,i)}}(r,s,e,n),a=new g(r,e,-1);return a.update(i.width,i.height,o),i.lazyLoad(),i.setDisplayedSize(Math.ceil(i.width*a.initial),Math.ceil(i.height*a.initial)),i}class y extends m{constructor(e){super(),this.options=e||{},this._uid=0}init(){this.onThumbnailsClick=this.onThumbnailsClick.bind(this),c(this.options.gallery,this.options.gallerySelector).forEach((e=>{e.addEventListener("click",this.onThumbnailsClick,!1)}))}onThumbnailsClick(e){if(function(e){if(2===e.which||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)return!0}(e)||window.pswp||!1===window.navigator.onLine)return;let t={x:e.clientX,y:e.clientY};t.x||t.y||(t=null);let n=this.getClickedIndex(e);n=this.applyFilters("clickedIndex",n,e,this);const i={gallery:e.currentTarget};n>=0&&(e.preventDefault(),this.loadAndOpen(n,i,t))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);const t=e.target,n=c(this.options.children,this.options.childSelector,e.currentTarget).findIndex((e=>e===t||e.contains(t)));return-1!==n?n:this.options.children||this.options.childSelector?-1:0}loadAndOpen(e,t,n){return!window.pswp&&(this.options.index=e,this.options.initialPointerPos=n,this.shouldOpen=!0,this.preload(e,t),!0)}preload(e,t){const{options:n}=this;t&&(n.dataSource=t);const i=[],r=typeof n.pswpModule;if("function"==typeof(s=n.pswpModule)&&s.prototype&&s.prototype.goTo)i.push(Promise.resolve(n.pswpModule));else{if("string"===r)throw new Error("pswpModule as string is no longer supported");if("function"!==r)throw new Error("pswpModule is not valid");i.push(n.pswpModule())}var s;"function"==typeof n.openPromise&&i.push(n.openPromise()),!1!==n.preloadFirstSlide&&e>=0&&(this._preloadedContent=function(e,t){const n=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:n}).defaultPrevented)return v(n,t,e)}(e,this));const o=++this._uid;Promise.all(i).then((e=>{if(this.shouldOpen){const t=e[0];this._openPhotoswipe(t,o)}}))}_openPhotoswipe(e,t){if(t!==this._uid&&this.shouldOpen)return;if(this.shouldOpen=!1,window.pswp)return;const n="object"==typeof e?new e.default(this.options):new e(this.options);this.pswp=n,window.pswp=n,Object.keys(this._listeners).forEach((e=>{this._listeners[e].forEach((t=>{n.on(e,t)}))})),Object.keys(this._filters).forEach((e=>{this._filters[e].forEach((t=>{n.addFilter(e,t.fn,t.priority)}))})),this._preloadedContent&&(n.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=null),n.on("destroy",(()=>{this.pswp=null,window.pswp=null})),n.init()}destroy(){this.pswp&&this.pswp.destroy(),this.shouldOpen=!1,this._listeners=null,c(this.options.gallery,this.options.gallerySelector).forEach((e=>{e.removeEventListener("click",this.onThumbnailsClick,!1)}))}}
/*!
  * PhotoSwipe 5.2.8 - https://photoswipe.com
  * (c) 2022 Dmytro Semenov
  */
function b(e,t,n){const i=document.createElement(t||"div");return e&&(i.className=e),n&&n.appendChild(i),i}function w(e,t){return e.x=t.x,e.y=t.y,void 0!==t.id&&(e.id=t.id),e}function _(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function E(e,t){const n=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y);return Math.sqrt(n*n+i*i)}function x(e,t){return e.x===t.x&&e.y===t.y}function S(e,t,n){return Math.min(Math.max(e,t),n)}function C(e,t,n){let i="translate3d("+e+"px,"+(t||0)+"px,0)";return void 0!==n&&(i+=" scale3d("+n+","+n+",1)"),i}function N(e,t,n,i){e.style.transform=C(t,n,i)}const k="cubic-bezier(.4,0,.22,1)";function T(e,t,n,i){e.style.transition=t?t+" "+n+"ms "+(i||k):"none"}function L(e,t,n){e.style.width="number"==typeof t?t+"px":t,e.style.height="number"==typeof n?n+"px":n}const P="idle",A="loading",I="loaded",z="error";let D=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{D=!0}}))}catch(e){}class O{constructor(){this._pool=[]}add(e,t,n,i){this._toggleListener(e,t,n,i)}remove(e,t,n,i){this._toggleListener(e,t,n,i,!0)}removeAll(){this._pool.forEach((e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)})),this._pool=[]}_toggleListener(e,t,n,i,r,s){if(!e)return;const o=r?"removeEventListener":"addEventListener";t.split(" ").forEach((t=>{if(t){s||(r?this._pool=this._pool.filter((i=>i.type!==t||i.listener!==n||i.target!==e)):this._pool.push({target:e,type:t,listener:n,passive:i}));const a=!!D&&{passive:i||!1};e[o](t,n,a)}}))}}function R(e,t){if(e.getViewportSizeFn){const n=e.getViewportSizeFn(e,t);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function q(e,t,n,i,r){let s;if(t.paddingFn)s=t.paddingFn(n,i,r)[e];else if(t.padding)s=t.padding[e];else{const n="padding"+e[0].toUpperCase()+e.slice(1);t[n]&&(s=t[n])}return s||0}function B(e,t,n,i){return{x:t.x-q("left",e,t,n,i)-q("right",e,t,n,i),y:t.y-q("top",e,t,n,i)-q("bottom",e,t,n,i)}}class F{constructor(e){this.slide=e,this.currZoomLevel=1,this.center={},this.max={},this.min={},this.reset()}update(e){this.currZoomLevel=e,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(e){const{pswp:t}=this.slide,n=this.slide["x"===e?"width":"height"]*this.currZoomLevel,i=q("x"===e?"left":"top",t.options,t.viewportSize,this.slide.data,this.slide.index),r=this.slide.panAreaSize[e];this.center[e]=Math.round((r-n)/2)+i,this.max[e]=n>r?Math.round(r-n)+i:this.center[e],this.min[e]=n>r?i:this.center[e]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(e,t){return S(t,this.max[e],this.min[e])}}class M{constructor(e,t,n,i){this.pswp=i,this.options=e,this.itemData=t,this.index=n}update(e,t,n){this.elementSize={x:e,y:t},this.panAreaSize=n;const i=this.panAreaSize.x/this.elementSize.x,r=this.panAreaSize.y/this.elementSize.y;this.fit=Math.min(1,i<r?i:r),this.fill=Math.min(1,i>r?i:r),this.vFill=Math.min(1,r),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const t=e+"ZoomLevel",n=this.options[t];if(n)return"function"==typeof n?n(this):"fill"===n?this.fill:"fit"===n?this.fit:Number(n)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,3*this.fit),e*this.elementSize.x>4e3&&(e=4e3/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){const e=this._parseZoomLevelOption("max");return e||Math.max(1,4*this.fit)}}class j{constructor(e,t,n){this.data=e,this.index=t,this.pswp=n,this.isActive=t===n.currIndex,this.currentResolution=0,this.panAreaSize={},this.isFirstSlide=this.isActive&&!n.opener.isOpen,this.zoomLevels=new M(n.options,e,t,n),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:t}),this.pan={x:0,y:0},this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=b("pswp__zoom-wrap"),this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.bounds=new F(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(e){e&&!this.isActive?this.activate():!e&&this.isActive&&this.deactivate()}append(e){this.holderElement=e,this.data?(this.calculateSize(),this.container.style.transformOrigin="0 0",this.load(),this.appendHeavy(),this.updateContentSize(),this.holderElement.innerHTML="",this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate()):this.holderElement.innerHTML=""}load(){this.content.load(),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:e}=this;!this.heavyAppended&&e.opener.isOpen&&!e.mainScroll.isShifted()&&(this.isActive,1)&&(this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this})))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel!==this.zoomLevels.initial&&this.isActive?(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y)):(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize())}updateContentSize(e){const t=this.currentResolution||this.zoomLevels.initial;if(!t)return;const n=Math.round(this.width*t)||this.pswp.viewportSize.x,i=Math.round(this.height*t)||this.pswp.viewportSize.y;(this.sizeChanged(n,i)||e)&&this.content.setDisplayedSize(n,i)}sizeChanged(e,t){return(e!==this.prevDisplayedWidth||t!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=e,this.prevDisplayedHeight=t,!0)}getPlaceholderElement(){if(this.content.placeholder)return this.content.placeholder.element}zoomTo(e,t,n,i){const{pswp:r}=this;if(!this.isZoomable()||r.mainScroll.isShifted())return;r.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:t,transitionDuration:n}),r.animations.stopAllPan();const s=this.currZoomLevel;i||(e=S(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",t,s),this.pan.y=this.calculateZoomToPanOffset("y",t,s),_(this.pan);const o=()=>{this._setResolution(e),this.applyCurrentZoomPan()};n?r.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:o,duration:n,easing:r.options.easing}):o()}toggleZoom(e){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,e,this.pswp.options.zoomAnimationDuration)}setZoomLevel(e){this.currZoomLevel=e,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(e,t,n){if(0===this.bounds.max[e]-this.bounds.min[e])return this.bounds.center[e];t||(t=this.pswp.getViewportCenterPoint());const i=this.currZoomLevel/n;return this.bounds.correctPan(e,(this.pan[e]-t[e])*i+t[e])}panTo(e,t){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",t),this.applyCurrentZoomPan()}isPannable(){return this.width&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return this.width&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),w(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,t,n){n/=this.currentResolution||this.zoomLevels.initial,N(this.container,e,t,n)}calculateSize(){const{pswp:e}=this;w(this.panAreaSize,B(e.options,e.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),e.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const e=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return C(this.pan.x,this.pan.y,e)}_setResolution(e){e!==this.currentResolution&&(this.currentResolution=e,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}class H{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={}}start(){w(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:e,prevP1:t,dragAxis:n,pswp:i}=this.gestures,{currSlide:r}=i;if("y"===n&&i.options.closeOnVerticalDrag&&r.currZoomLevel<=r.zoomLevels.fit&&!this.gestures.isMultitouch){const n=r.pan.y+(e.y-t.y);if(!i.dispatch("verticalDrag",{panY:n}).defaultPrevented){this._setPanWithFriction("y",n,.6);const e=1-Math.abs(this._getVerticalDragRatio(r.pan.y));i.applyBgOpacity(e),r.applyCurrentZoomPan()}}else{this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),_(r.pan),r.applyCurrentZoomPan())}}end(){const{pswp:e,velocity:t}=this.gestures,{mainScroll:n}=e;let i=0;if(e.animations.stopAll(),n.isShifted()){const r=(n.x-n.getCurrSlideX())/e.viewportSize.x;t.x<-.5&&r<0||t.x<.1&&r<-.5?(i=1,t.x=Math.min(t.x,0)):(t.x>.5&&r>0||t.x>-.1&&r>.5)&&(i=-1,t.x=Math.max(t.x,0)),n.moveIndexBy(i,!0,t.x)}e.currSlide.currZoomLevel>e.currSlide.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){const{pswp:t}=this,{currSlide:n}=t,{velocity:i}=this.gestures,{pan:r,bounds:s}=n,o=r[e],a=t.bgOpacity<1&&"y"===e,l=o+function(e,t){return e*t/(1-t)}(i[e],.995);if(a){const e=this._getVerticalDragRatio(o),n=this._getVerticalDragRatio(l);if(e<0&&n<-.4||e>0&&n>.4)return void t.close()}const c=s.correctPan(e,l);if(o===c)return;const u=c===l?1:.82,d=t.bgOpacity,p=c-o;t.animations.startSpring({name:"panGesture"+e,isPan:!0,start:o,end:c,velocity:i[e],dampingRatio:u,onUpdate:i=>{if(a&&t.bgOpacity<1){const e=1-(c-i)/p;t.applyBgOpacity(S(d+(1-d)*e,0,1))}r[e]=Math.floor(i),n.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){const{p1:t,pswp:n,dragAxis:i,prevP1:r,isMultitouch:s}=this.gestures,{currSlide:o,mainScroll:a}=n,l=t[e]-r[e],c=a.x+l;if(!l)return;if("x"===e&&!o.isPannable()&&!s)return a.moveTo(c,!0),!0;const{bounds:u}=o,d=o.pan[e]+l;if(n.options.allowPanToNext&&"x"===i&&"x"===e&&!s){const t=a.getCurrSlideX(),n=a.x-t,i=l>0,r=!i;if(d>u.min[e]&&i){if(u.min[e]<=this.startPan[e])return a.moveTo(c,!0),!0;this._setPanWithFriction(e,d)}else if(d<u.max[e]&&r){if(this.startPan[e]<=u.max[e])return a.moveTo(c,!0),!0;this._setPanWithFriction(e,d)}else if(0!==n){if(n>0)return a.moveTo(Math.max(c,t),!0),!0;if(n<0)return a.moveTo(Math.min(c,t),!0),!0}else this._setPanWithFriction(e,d)}else"y"===e&&(a.isShifted()||u.min.y===u.max.y)||this._setPanWithFriction(e,d)}_getVerticalDragRatio(e){return(e-this.pswp.currSlide.bounds.center.y)/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,t,n){const{pan:i,bounds:r}=this.pswp.currSlide;if(r.correctPan(e,t)!==t||n){const r=Math.round(t-i[e]);i[e]+=r*(n||.35)}else i[e]=t}}function $(e,t,n){return e.x=(t.x+n.x)/2,e.y=(t.y+n.y)/2,e}class W{constructor(e){this.gestures=e,this.pswp=this.gestures.pswp,this._startPan={},this._startZoomPoint={},this._zoomPoint={}}start(){this._startZoomLevel=this.pswp.currSlide.currZoomLevel,w(this._startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:e,startP1:t,p2:n,startP2:i,pswp:r}=this.gestures,{currSlide:s}=r,o=s.zoomLevels.min,a=s.zoomLevels.max;if(!s.isZoomable()||r.mainScroll.isShifted())return;$(this._startZoomPoint,t,i),$(this._zoomPoint,e,n);let l=1/E(t,i)*E(e,n)*this._startZoomLevel;if(l>s.zoomLevels.initial+s.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),l<o)if(r.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=s.zoomLevels.initial){const e=1-(o-l)/(o/1.2);r.dispatch("pinchClose",{bgOpacity:e}).defaultPrevented||r.applyBgOpacity(e)}else l=o-.15*(o-l);else l>a&&(l=a+.05*(l-a));s.pan.x=this._calculatePanForZoomLevel("x",l),s.pan.y=this._calculatePanForZoomLevel("y",l),s.setZoomLevel(l),s.applyCurrentZoomPan()}end(){const{pswp:e}=this,{currSlide:t}=e;t.currZoomLevel<t.zoomLevels.initial&&!this._wasOverFitZoomLevel&&e.options.pinchToClose?e.close():this.correctZoomPan()}_calculatePanForZoomLevel(e,t){const n=t/this._startZoomLevel;return this._zoomPoint[e]-(this._startZoomPoint[e]-this._startPan[e])*n}correctZoomPan(e){const{pswp:t}=this,{currSlide:n}=t;if(!n.isZoomable())return;void 0===this._zoomPoint.x&&(e=!0);const i=n.currZoomLevel;let r,s=!0;i<n.zoomLevels.initial?r=n.zoomLevels.initial:i>n.zoomLevels.max?r=n.zoomLevels.max:(s=!1,r=i);const o=t.bgOpacity,a=t.bgOpacity<1,l=w({},n.pan);let c=w({},l);e&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=i,w(this._startPan,l)),s&&(c={x:this._calculatePanForZoomLevel("x",r),y:this._calculatePanForZoomLevel("y",r)}),n.setZoomLevel(r),c={x:n.bounds.correctPan("x",c.x),y:n.bounds.correctPan("y",c.y)},n.setZoomLevel(i);let u=!0;if(x(c,l)&&(u=!1),!u&&!s&&!a)return n._setResolution(r),void n.applyCurrentZoomPan();t.animations.stopAllPan(),t.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:e=>{if(e/=1e3,u||s){if(u&&(n.pan.x=l.x+(c.x-l.x)*e,n.pan.y=l.y+(c.y-l.y)*e),s){const t=i+(r-i)*e;n.setZoomLevel(t)}n.applyCurrentZoomPan()}a&&t.bgOpacity<1&&t.applyBgOpacity(S(o+(1-o)*e,0,1))},onComplete:()=>{n._setResolution(r),n.applyCurrentZoomPan()}})}}function U(e){return!!e.target.closest(".pswp__container")}class V{constructor(e){this.gestures=e}click(e,t){const n=t.target.classList,i=n.contains("pswp__img"),r=n.contains("pswp__item")||n.contains("pswp__zoom-wrap");i?this._doClickOrTapAction("imageClick",e,t):r&&this._doClickOrTapAction("bgClick",e,t)}tap(e,t){U(t)&&this._doClickOrTapAction("tap",e,t)}doubleTap(e,t){U(t)&&this._doClickOrTapAction("doubleTap",e,t)}_doClickOrTapAction(e,t,n){const{pswp:i}=this.gestures,{currSlide:r}=i,s=e+"Action",o=i.options[s];if(!i.dispatch(s,{point:t,originalEvent:n}).defaultPrevented)if("function"!=typeof o)switch(o){case"close":case"next":i[o]();break;case"zoom":r.toggleZoom(t);break;case"zoom-or-close":r.isZoomable()&&r.zoomLevels.secondary!==r.zoomLevels.initial?r.toggleZoom(t):i.options.clickToCloseNonZoomable&&i.close();break;case"toggle-controls":this.gestures.pswp.element.classList.toggle("pswp--ui-visible")}else o.call(i,t,n)}}class Z{constructor(e){this.pswp=e,this.dragAxis=void 0,this.p1={},this.p2={},this.prevP1={},this.prevP2={},this.startP1={},this.startP2={},this.velocity={},this._lastStartP1={},this._intervalP1={},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this.supportsTouch||(e.options.allowPanToNext=!1),this.drag=new H(this),this.zoomLevels=new W(this),this.tapHandler=new V(this),e.on("bindEvents",(()=>{e.events.add(e.scrollWrap,"click",(e=>this._onClick(e))),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),e.scrollWrap.ontouchmove=()=>{},e.scrollWrap.ontouchend=()=>{}):this._bindEvents("mouse","down","up")}))}_bindEvents(e,t,n,i){const{pswp:r}=this,{events:s}=r,o=i?e+i:"";s.add(r.scrollWrap,e+t,this.onPointerDown.bind(this)),s.add(window,e+"move",this.onPointerMove.bind(this)),s.add(window,e+n,this.onPointerUp.bind(this)),o&&s.add(r.scrollWrap,o,this.onPointerUp.bind(this))}onPointerDown(e){let t;if("mousedown"!==e.type&&"mouse"!==e.pointerType||(t=!0),t&&e.button>0)return;const{pswp:n}=this;n.opener.isOpen?n.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(t&&(n.mouseDetected(),this._preventPointerEventBehaviour(e)),n.animations.stopAll(),this._updatePoints(e,"down"),this.pointerDown=!0,1===this._numActivePoints&&(this.dragAxis=null,w(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1):e.preventDefault()}onPointerMove(e){e.preventDefault(),this._numActivePoints&&(this._updatePoints(e,"move"),this.pswp.dispatch("pointerMove",{originalEvent:e}).defaultPrevented||(1!==this._numActivePoints||this.isDragging?this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop()):(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,w(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop()))))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(e){this._numActivePoints&&(this._updatePoints(e,"up"),this.pswp.dispatch("pointerUp",{originalEvent:e}).defaultPrevented||(0===this._numActivePoints&&(this.pointerDown=!1,this._rafStopLoop(),this.isDragging?this._finishDrag():this.isZooming||this.isMultitouch||this._finishTap(e)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),1===this._numActivePoints&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?x(this.p1,this.prevP1)||this.drag.change():x(this.p1,this.prevP1)&&x(this.p2,this.prevP2)||this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(e){const t=Date.now(),n=t-this._intervalTime;n<50&&!e||(this.velocity.x=this._getVelocity("x",n),this.velocity.y=this._getVelocity("y",n),this._intervalTime=t,w(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){const{mainScroll:t}=this.pswp;if(t.isShifted())return void t.moveIndexBy(0,!0);if(e.type.indexOf("cancel")>0)return;if("mouseup"===e.type||"mouse"===e.pointerType)return void this.tapHandler.click(this.startP1,e);const n=this.pswp.options.doubleTapAction?300:0;this._tapTimer?(this._clearTapTimer(),E(this._lastStartP1,this.startP1)<25&&this.tapHandler.doubleTap(this.startP1,e)):(w(this._lastStartP1,this.startP1),this._tapTimer=setTimeout((()=>{this.tapHandler.tap(this.startP1,e),this._clearTapTimer()}),n))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,t){const n=this.p1[e]-this._intervalP1[e];return Math.abs(n)>1&&t>5?n/t:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e){return e.preventDefault(),!0}_updatePoints(e,t){if(this._pointerEventEnabled){const n=e,i=this._ongoingPointers.findIndex((e=>e.id===n.pointerId));"up"===t&&i>-1?this._ongoingPointers.splice(i,1):"down"===t&&-1===i?this._ongoingPointers.push(this._convertEventPosToPoint(n,{})):i>-1&&this._convertEventPosToPoint(n,this._ongoingPointers[i]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&w(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&w(this.p2,this._ongoingPointers[1])}else{const n=e;this._numActivePoints=0,n.type.indexOf("touch")>-1?n.touches&&n.touches.length>0&&(this._convertEventPosToPoint(n.touches[0],this.p1),this._numActivePoints++,n.touches.length>1&&(this._convertEventPosToPoint(n.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),"up"===t?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){w(this.prevP1,this.p1),w(this.prevP2,this.p2)}_updateStartPoints(){w(this.startP1,this.p1),w(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const e=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(0!==e){const t=e>0?"x":"y";Math.abs(this.p1[t]-this.startP1[t])>=10&&(this.dragAxis=t)}}}_convertEventPosToPoint(e,t){return t.x=e.pageX-this.pswp.offset.x,t.y=e.pageY-this.pswp.offset.y,"pointerId"in e?t.id=e.pointerId:void 0!==e.identifier&&(t.id=e.identifier),t}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}}class G{constructor(e){this.pswp=e,this.x=0,this.slideWidth=void 0,this.itemHolders=void 0,this.resetPosition()}resize(e){const{pswp:t}=this,n=Math.round(t.viewportSize.x+t.viewportSize.x*t.options.spacing),i=n!==this.slideWidth;i&&(this.slideWidth=n,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach(((t,n)=>{i&&N(t.el,(n+this._containerShiftIndex)*this.slideWidth),e&&t.slide&&t.slide.resize()}))}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let e=0;e<3;e++){const t=b("pswp__item",!1,this.pswp.container);t.style.display=1===e?"block":"none",this.itemHolders.push({el:t})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,t,n){const{pswp:i}=this;let r=i.potentialIndex+e;const s=i.getNumItems();if(i.canLoop()){r=i.getLoopedIndex(r);const t=(e+s)%s;e=t<=s/2?t:t-s}else r<0?r=0:r>=s&&(r=s-1),e=r-i.potentialIndex;i.potentialIndex=r,this._currPositionIndex-=e,i.animations.stopMainScroll();const o=this.getCurrSlideX();if(t){i.animations.startSpring({isMainScroll:!0,start:this.x,end:o,velocity:n||0,naturalFrequency:30,dampingRatio:1,onUpdate:e=>{this.moveTo(e)},onComplete:()=>{this.updateCurrItem(),i.appendHeavy()}});let e=i.potentialIndex-i.currIndex;if(i.canLoop()){const t=(e+s)%s;e=t<=s/2?t:t-s}Math.abs(e)>1&&this.updateCurrItem()}else this.moveTo(o),this.updateCurrItem();if(e)return!0}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){const{pswp:e}=this,t=this._prevPositionIndex-this._currPositionIndex;if(!t)return;this._prevPositionIndex=this._currPositionIndex,e.currIndex=e.potentialIndex;let n,i=Math.abs(t);i>=3&&(this._containerShiftIndex+=t+(t>0?-3:3),i=3);for(let r=0;r<i;r++)t>0?(n=this.itemHolders.shift(),this.itemHolders[2]=n,this._containerShiftIndex++,N(n.el,(this._containerShiftIndex+2)*this.slideWidth),e.setContent(n,e.currIndex-i+r+2)):(n=this.itemHolders.pop(),this.itemHolders.unshift(n),this._containerShiftIndex--,N(n.el,this._containerShiftIndex*this.slideWidth),e.setContent(n,e.currIndex+i-r-2));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),e.animations.stopAllPan(),this.itemHolders.forEach(((e,t)=>{e.slide&&e.slide.setIsActive(1===t)})),e.currSlide=this.itemHolders[1].slide,e.contentLoader.updateLazy(t),e.currSlide.applyCurrentZoomPan(),e.dispatch("change")}moveTo(e,t){let n,i;!this.pswp.canLoop()&&t&&(n=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth,n+=this.pswp.currIndex,i=Math.round(e-this.x),(n<0&&i>0||n>=this.pswp.getNumItems()-1&&i<0)&&(e=this.x+.35*i)),this.x=e,N(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:t})}}class Q{constructor(e){this.pswp=e,e.on("bindEvents",(()=>{e.options.initialPointerPos||this._focusRoot(),e.events.add(document,"focusin",this._onFocusIn.bind(this)),e.events.add(document,"keydown",this._onKeyDown.bind(this))}));const t=document.activeElement;e.on("destroy",(()=>{e.options.returnFocus&&t&&this._wasFocused&&t.focus()}))}_focusRoot(){this._wasFocused||(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){const{pswp:t}=this;if(t.dispatch("keydown",{originalEvent:e}).defaultPrevented)return;if(function(e){if(2===e.which||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)return!0}(e))return;let n,i,r;switch(e.keyCode){case 27:t.options.escKey&&(n="close");break;case 90:n="toggleZoom";break;case 37:i="x";break;case 38:i="y";break;case 39:i="x",r=!0;break;case 40:r=!0,i="y";break;case 9:this._focusRoot()}if(i){e.preventDefault();const{currSlide:s}=t;t.options.arrowKeys&&"x"===i&&t.getNumItems()>1?n=r?"next":"prev":s&&s.currZoomLevel>s.zoomLevels.fit&&(s.pan[i]+=r?-80:80,s.panTo(s.pan.x,s.pan.y))}n&&(e.preventDefault(),t[n]())}_onFocusIn(e){const{template:t}=this.pswp;document===e.target||t===e.target||t.contains(e.target)||t.focus()}}class X{constructor(e){this.props=e;const{target:t,onComplete:n,transform:i,onFinish:r}=e;let{duration:s,easing:o}=e;this.onFinish=r;const a=i?"transform":"opacity",l=e[a];this._target=t,this._onComplete=n,s=s||333,o=o||"cubic-bezier(.4,0,.22,1)",this._onTransitionEnd=this._onTransitionEnd.bind(this),this._firstFrameTimeout=setTimeout((()=>{T(t,a,s,o),this._firstFrameTimeout=setTimeout((()=>{t.addEventListener("transitionend",this._onTransitionEnd,!1),t.addEventListener("transitioncancel",this._onTransitionEnd,!1),t.style[a]=l}),30)}),0)}_onTransitionEnd(e){e.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._firstFrameTimeout&&clearTimeout(this._firstFrameTimeout),T(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}class Y{constructor(e,t,n){this.velocity=1e3*e,this._dampingRatio=t||.75,this._naturalFrequency=n||12,this._dampingRatio<1&&(this._dampedFrequency=this._naturalFrequency*Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,t){let n,i=0;t/=1e3;const r=Math.E**(-this._dampingRatio*this._naturalFrequency*t);if(1===this._dampingRatio)n=this.velocity+this._naturalFrequency*e,i=(e+n*t)*r,this.velocity=i*-this._naturalFrequency+n*r;else if(this._dampingRatio<1){n=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);const s=Math.cos(this._dampedFrequency*t),o=Math.sin(this._dampedFrequency*t);i=r*(e*s+n*o),this.velocity=i*-this._naturalFrequency*this._dampingRatio+r*(-this._dampedFrequency*e*o+this._dampedFrequency*n*s)}return i}}class K{constructor(e){this.props=e;const{start:t,end:n,velocity:i,onUpdate:r,onComplete:s,onFinish:o,dampingRatio:a,naturalFrequency:l}=e;this.onFinish=o;const c=new Y(i,a,l);let u=Date.now(),d=t-n;const p=()=>{this._raf&&(d=c.easeFrame(d,Date.now()-u),Math.abs(d)<1&&Math.abs(c.velocity)<50?(r(n),s&&s(),this.onFinish()):(u=Date.now(),r(d+n),this._raf=requestAnimationFrame(p)))};this._raf=requestAnimationFrame(p)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=null}}class J{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,t){let n;return n=t?new K(e):new X(e),this.activeAnimations.push(n),n.onFinish=()=>this.stop(n),n}stop(e){e.destroy();const t=this.activeAnimations.indexOf(e);t>-1&&this.activeAnimations.splice(t,1)}stopAll(){this.activeAnimations.forEach((e=>{e.destroy()})),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter((e=>!e.props.isPan||(e.destroy(),!1)))}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter((e=>!e.props.isMainScroll||(e.destroy(),!1)))}isPanRunning(){return this.activeAnimations.some((e=>e.props.isPan))}}class ee{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();const{currSlide:t}=this.pswp;let{deltaX:n,deltaY:i}=e;if(t&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(t.isZoomable()){let n=-i;1===e.deltaMode?n*=.05:n*=e.deltaMode?1:.002,n=2**n;const r=t.currZoomLevel*n;t.zoomTo(r,{x:e.clientX,y:e.clientY})}}else t.isPannable()&&(1===e.deltaMode&&(n*=18,i*=18),t.panTo(t.pan.x-n,t.pan.y-i))}}class te{constructor(e,t){const n=t.name||t.className;let i=t.html;if(!1===e.options[n])return;"string"==typeof e.options[n+"SVG"]&&(i=e.options[n+"SVG"]),e.dispatch("uiElementCreate",{data:t});let r,s="";t.isButton?(s+="pswp__button ",s+=t.className||`pswp__button--${t.name}`):s+=t.className||`pswp__${t.name}`;let o=t.isButton?t.tagName||"button":t.tagName||"div";if(o=o.toLowerCase(),r=b(s,o),t.isButton){r=b(s,o),"button"===o&&(r.type="button");let{title:i}=t;const{ariaLabel:a}=t;"string"==typeof e.options[n+"Title"]&&(i=e.options[n+"Title"]),i&&(r.title=i),(a||i)&&r.setAttribute("aria-label",a||i)}r.innerHTML=function(e){if("string"==typeof e)return e;if(!e||!e.isCustomSVG)return"";const t=e;let n='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return n=n.split("%d").join(t.size||32),t.outlineID&&(n+='<use class="pswp__icn-shadow" xlink:href="#'+t.outlineID+'"/>'),n+=t.inner,n+="</svg>",n}(i),t.onInit&&t.onInit(r,e),t.onClick&&(r.onclick=n=>{"string"==typeof t.onClick?e[t.onClick]():t.onClick(n,r,e)});const a=t.appendTo||"bar";let l;"bar"===a?(e.topBar||(e.topBar=b("pswp__top-bar pswp__hide-on-close","div",e.scrollWrap)),l=e.topBar):(r.classList.add("pswp__hide-on-close"),l="wrapper"===a?e.scrollWrap:e.element),l.appendChild(e.applyFilters("uiElement",r,t))}}function ne(e,t,n){e.classList.add("pswp__button--arrow"),t.on("change",(()=>{t.options.loop||(e.disabled=n?!(t.currIndex<t.getNumItems()-1):!(t.currIndex>0))}))}const ie={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:ne},re={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(e,t)=>{ne(e,t,!0)}},se={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},oe={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M18.9,18.4c1.4-2.1,1.4-4.8,0-6.9c-1.9-2.7-5.6-3.4-8.4-1.5s-3.4,5.6-1.5,8.4s5.6,3.4,8.4,1.5l4.1,4.1l1.5-1.5L18.9,18.4z M17,16h-2v2h-2v-2h-2v-2h2v-2h2v2h2V16z" id="pswp__icn-zoom"/><path d="M18.9,18.4c1.4-2.1,1.4-4.8,0-6.9c-1.9-2.7-5.6-3.4-8.4-1.5s-3.4,5.6-1.5,8.4s5.6,3.4,8.4,1.5l4.1,4.1l1.5-1.5L18.9,18.4z M17,16h-6v-2h6V16z" class="pswp__zoom-icn-bar-v"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},ae={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:(e,t)=>{let n,i;const r=t=>{var i,r;n!==t&&(n=t,i="active",r=t,e.classList[r?"add":"remove"]("pswp__preloader--"+i))},s=()=>{if(!t.currSlide.content.isLoading())return r(!1),void(i&&(clearTimeout(i),i=null));i||(i=setTimeout((()=>{r(t.currSlide.content.isLoading()),i=null}),t.options.preloaderDelay))};t.on("change",s),t.on("loadComplete",(e=>{t.currSlide===e.slide&&s()})),t.ui.updatePreloaderVisibility=s}},le={name:"counter",order:5,onInit:(e,t)=>{t.on("change",(()=>{e.innerText=t.currIndex+1+t.options.indexIndicatorSep+t.getNumItems()}))}};function ce(e,t){e.classList[t?"add":"remove"]("pswp--zoomed-in")}class ue{constructor(e){this.pswp=e,this.updatePreloaderVisibility=void 0,this._lastUpdatedZoomLevel=void 0}init(){const{pswp:e}=this;this.isRegistered=!1,this.uiElementsData=[se,ie,re,oe,ae,le],e.dispatch("uiRegister"),this.uiElementsData.sort(((e,t)=>(e.order||0)-(t.order||0))),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach((e=>{this.registerElement(e)})),e.on("change",(()=>{e.element.classList[1===e.getNumItems()?"add":"remove"]("pswp--one-slide")})),e.on("zoomPanUpdate",(()=>this._onZoomPanUpdate()))}registerElement(e){this.isRegistered?this.items.push(new te(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){const{template:e,currSlide:t,options:n}=this.pswp;let{currZoomLevel:i}=t;if(this.pswp.opener.isClosing)return;if(this.pswp.opener.isOpen||(i=t.zoomLevels.initial),i===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=i;const r=t.zoomLevels.initial-t.zoomLevels.secondary;if(Math.abs(r)<.01||!t.isZoomable())return ce(e,!1),void e.classList.remove("pswp--zoom-allowed");e.classList.add("pswp--zoom-allowed");const s=r<0;i===t.zoomLevels.secondary?ce(e,s):i>t.zoomLevels.secondary?ce(e,!0):ce(e,!1),"zoom"!==n.imageClickAction&&"zoom-or-close"!==n.imageClickAction||e.classList.add("pswp--click-to-zoom")}}class de{constructor(e,t){this.type=e,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}}class pe{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;this._filters[e]||(this._filters[e]=[]),this._filters[e].push({fn:t,priority:n}),this._filters[e].sort(((e,t)=>e.priority-t.priority)),this.pswp&&this.pswp.addFilter(e,t,n)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter((e=>e.fn!==t))),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this._filters[e]&&this._filters[e].forEach((e=>{n[0]=e.fn.apply(this,n)})),n[0]}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this.pswp&&this.pswp.on(e,t)}off(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((e=>t!==e))),this.pswp&&this.pswp.off(e,t)}dispatch(e,t){if(this.pswp)return this.pswp.dispatch(e,t);const n=new de(e,t);return this._listeners?(this._listeners[e]&&this._listeners[e].forEach((e=>{e.call(this,n)})),n):n}}class he{constructor(e,t){this.element=b("pswp__img pswp__img--placeholder",e?"img":"",t),e&&(this.element.decoding="async",this.element.alt="",this.element.src=e,this.element.setAttribute("role","presentation")),this.element.setAttribute("aria-hiden","true")}setDisplayedSize(e,t){this.element&&("IMG"===this.element.tagName?(L(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=C(0,0,e/250)):L(this.element,e,t))}destroy(){this.element.parentNode&&this.element.remove(),this.element=null}}class me{constructor(e,t,n){this.instance=t,this.data=e,this.index=n,this.element=void 0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.state=P,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=null)}),500)}load(e,t){if(!this.placeholder&&this.slide&&this.usePlaceholder()){const e=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new he(e,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?this.loadImage(e):(this.element=b("pswp__content"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){const t=b("pswp__img","img");this.element=t,this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented||(this.data.srcset&&(t.srcset=this.data.srcset),t.src=this.data.src,t.alt=this.data.alt||"",this.state=A,t.complete?this.onLoaded():(t.onload=()=>{this.onLoaded()},t.onerror=()=>{this.onError()}))}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=I,this.slide&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.slide.container.innerHTML="",this.append(),this.slide.updateContentSize(!0)))}onError(){this.state=z,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===A,this)}isError(){return this.state===z}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(L(this.element,e,t),this.isImageContent()&&!this.isError()))){const n=this.element;n.srcset&&(!n.dataset.largestUsedSize||e>parseInt(n.dataset.largestUsedSize,10))&&(n.sizes=e+"px",n.dataset.largestUsedSize=String(e)),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==z,this)}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=null,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=null))}displayError(){if(this.slide){let e=b("pswp__error-msg");e.innerText=this.instance.options.errorMsg,e=this.instance.applyFilters("contentErrorElement",e,this),this.element=b("pswp__content pswp__error-msg-container"),this.element.appendChild(e),this.slide.container.innerHTML="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){this.isAttached=!0,this.state!==z?this.instance.dispatch("contentAppend",{content:this}).defaultPrevented||(this.isImageContent()?this.slide&&!this.slide.isActive&&"decode"in this.element?(this.isDecoding=!0,requestAnimationFrame((()=>{this.element&&"IMG"===this.element.tagName&&this.element.decode().then((()=>{this.isDecoding=!1,requestAnimationFrame((()=>{this.appendImage()}))})).catch((()=>{this.isDecoding=!1}))}))):(!this.placeholder||this.state!==I&&this.state!==z||this.removePlaceholder(),this.appendImage()):this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element)):this.displayError()}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||this.slide&&(this.isImageContent()&&this.isDecoding?this.appendImage():this.isError()&&this.load(!1,!0))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this})}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||this.element&&this.element.parentNode&&this.element.remove()}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||this.slide&&this.element&&!this.element.parentNode&&(this.slide.container.appendChild(this.element),!this.placeholder||this.state!==I&&this.state!==z||this.removePlaceholder()))}}class fe extends pe{getNumItems(){let e;const{dataSource:t}=this.options;t?"length"in t?e=t.length:"gallery"in t&&(t.items||(t.items=this._getGalleryDOMElements(t.gallery)),t.items&&(e=t.items.length)):e=0;const n=this.dispatch("numItems",{dataSource:t,numItems:e});return this.applyFilters("numItems",n.numItems,t)}createContentFromData(e,t){return new me(e,this,t)}getItemData(e){const{dataSource:t}=this.options;let n;Array.isArray(t)?n=t[e]:t&&t.gallery&&(t.items||(t.items=this._getGalleryDOMElements(t.gallery)),n=t.items[e]);let i=n;i instanceof Element&&(i=this._domElementToItemData(i));const r=this.dispatch("itemData",{itemData:i||{},index:e});return this.applyFilters("itemData",r.itemData,e)}_getGalleryDOMElements(e){return this.options.children||this.options.childSelector?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,i=[];if(e instanceof Element)i=[e];else if(e instanceof NodeList||Array.isArray(e))i=Array.from(e);else{const r="string"==typeof e?e:t;r&&(i=Array.from(n.querySelectorAll(r)))}return i}(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const t={element:e},n="A"===e.tagName?e:e.querySelector("a");if(n){t.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(t.srcset=n.dataset.pswpSrcset),t.width=parseInt(n.dataset.pswpWidth,10),t.height=parseInt(n.dataset.pswpHeight,10),t.w=t.width,t.h=t.height,n.dataset.pswpType&&(t.type=n.dataset.pswpType);const i=e.querySelector("img");i&&(t.msrc=i.currentSrc||i.src,t.alt=i.getAttribute("alt")),(n.dataset.pswpCropped||n.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,n)}}const ge=.003;class ve{constructor(e){this.pswp=e,this.isClosed=!0,this._prepareOpen=this._prepareOpen.bind(this),this._thumbBounds=void 0,e.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return!1;const e=this.pswp.currSlide;return this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,e&&e.currZoomLevel*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout((()=>{this._start()}),this._croppedZoom?30:0),!0}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const e=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,e&&e.zoomLevels.initial*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:e}=this,t=this.pswp.currSlide,{options:n}=e;if("fade"===n.showHideAnimationType?(n.showHideOpacity=!0,this._thumbBounds=!1):"none"===n.showHideAnimationType?(n.showHideOpacity=!1,this._duration=0,this._thumbBounds=!1):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=t.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=this._duration>50,this._animateZoom=Boolean(this._thumbBounds)&&t.content&&t.content.usePlaceholder()&&(!this.isClosing||!e.mainScroll.isShifted()),this._animateZoom?this._animateRootOpacity=n.showHideOpacity:(this._animateRootOpacity=!0,this.isOpening&&(t.zoomAndPanToInitial(),t.applyCurrentZoomPan())),this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>ge,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation)return this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,void(this.isOpening&&(e.element.style.opacity=String(ge),e.applyBgOpacity(1)));this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect?(this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=this.pswp.currSlide.holderElement,e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px"):this._croppedZoom=!1,this.isOpening?(this._animateRootOpacity?(e.element.style.opacity=String(ge),e.applyBgOpacity(1)):(this._animateBgOpacity&&(e.bg.style.opacity=String(ge)),e.element.style.opacity="1"),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(ge)))):this.isClosing&&(e.mainScroll.itemHolders[0].el.style.display="none",e.mainScroll.itemHolders[2].el.style.display="none",this._croppedZoom&&0!==e.mainScroll.x&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&"IMG"===this._placeholder.tagName?new Promise((e=>{let t=!1,n=!0;var i;(i=this._placeholder,"decode"in i?i.decode():i.complete?Promise.resolve(i):new Promise(((e,t)=>{i.onload=()=>e(i),i.onerror=t}))).finally((()=>{t=!0,n||e()})),setTimeout((()=>{n=!1,t&&e()}),50),setTimeout(e,250)})).finally((()=>this._initiate())):this._initiate()}_initiate(){this.pswp.element.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),this.pswp.element.classList[this.isOpening?"add":"remove"]("pswp--ui-visible"),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:e}=this;this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,e.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),e.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed?e.destroy():this.isOpen&&(this._animateZoom&&(e.container.style.overflow="visible",e.container.style.width="100%"),e.currSlide.applyCurrentZoomPan())}_animateToOpenState(){const{pswp:e}=this;this._animateZoom&&(this._croppedZoom&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),e.currSlide.zoomAndPanToInitial(),this._animateTo(e.currSlide.container,"transform",e.currSlide.getCurrentTransform())),this._animateBgOpacity&&this._animateTo(e.bg,"opacity",String(e.options.bgOpacity)),this._animateRootOpacity&&this._animateTo(e.element,"opacity","1")}_animateToClosedState(){const{pswp:e}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&e.bgOpacity>.01&&this._animateTo(e.bg,"opacity","0"),this._animateRootOpacity&&this._animateTo(e.element,"opacity","0")}_setClosedStateZoomPan(e){if(!this._thumbBounds)return;const{pswp:t}=this,{innerRect:n}=this._thumbBounds,{currSlide:i,viewportSize:r}=t;if(this._croppedZoom){const t=-r.x+(this._thumbBounds.x-n.x)+n.w,i=-r.y+(this._thumbBounds.y-n.y)+n.h,s=r.x-n.w,o=r.y-n.h;e?(this._animateTo(this._cropContainer1,"transform",C(t,i)),this._animateTo(this._cropContainer2,"transform",C(s,o))):(N(this._cropContainer1,t,i),N(this._cropContainer2,s,o))}w(i.pan,n||this._thumbBounds),i.currZoomLevel=this._thumbBounds.w/i.width,e?this._animateTo(i.container,"transform",i.getCurrentTransform()):i.applyCurrentZoomPan()}_animateTo(e,t,n){if(!this._duration)return void(e.style[t]=n);const{animations:i}=this.pswp,r={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{i.activeAnimations.length||this._onAnimationComplete()},target:e};r[t]=n,i.startTransition(r)}}function ye(e,t){const n=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:n}).defaultPrevented)return function(e,t,n){const i=t.createContentFromData(e,n);if(!i||!i.lazyLoad)return;const{options:r}=t,s=B(r,t.viewportSize||R(r,t),e,n),o=new M(r,e,-1);return o.update(i.width,i.height,s),i.lazyLoad(),i.setDisplayedSize(Math.ceil(i.width*o.initial),Math.ceil(i.height*o.initial)),i}(n,t,e)}class be{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,5),this._cachedItems=[]}updateLazy(e){const{pswp:t}=this;if(t.dispatch("lazyLoad").defaultPrevented)return;const{preload:n}=t.options,i=void 0===e||e>=0;let r;for(r=0;r<=n[1];r++)this.loadSlideByIndex(t.currIndex+(i?r:-r));for(r=1;r<=n[0];r++)this.loadSlideByIndex(t.currIndex+(i?-r:r))}loadSlideByIndex(e){e=this.pswp.getLoopedIndex(e);let t=this.getContentByIndex(e);t||(t=ye(e,this.pswp),t&&this.addToCache(t))}getContentBySlide(e){let t=this.getContentByIndex(e.index);return t||(t=this.pswp.createContentFromData(e.data,e.index),t&&this.addToCache(t)),t&&t.setSlide(e),t}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){const e=this._cachedItems.findIndex((e=>!e.isAttached&&!e.hasSlide));if(-1!==e){this._cachedItems.splice(e,1)[0].destroy()}}}removeByIndex(e){const t=this._cachedItems.findIndex((t=>t.index===e));-1!==t&&this._cachedItems.splice(t,1)}getContentByIndex(e){return this._cachedItems.find((t=>t.index===e))}destroy(){this._cachedItems.forEach((e=>e.destroy())),this._cachedItems=null}}const we={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};class _e extends fe{constructor(e){super(),this._prepareOptions(e),this.offset={},this._prevViewportSize={},this.viewportSize={},this.bgOpacity=1,this.topBar=void 0,this.events=new O,this.animations=new J,this.mainScroll=new G(this),this.gestures=new Z(this),this.opener=new ve(this),this.keyboard=new Q(this),this.contentLoader=new be(this)}init(){if(this.isOpen||this.isDestroying)return;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let e="pswp--open";return this.gestures.supportsTouch&&(e+=" pswp--touch"),this.options.mainClass&&(e+=" "+this.options.mainClass),this.element.className+=" "+e,this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new ee(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",(()=>{this.setContent(this.mainScroll.itemHolders[0],this.currIndex-1),this.setContent(this.mainScroll.itemHolders[2],this.currIndex+1),this.mainScroll.itemHolders[0].el.style.display="block",this.mainScroll.itemHolders[2].el.style.display="block",this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")})),this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(e){const t=this.getNumItems();return this.options.loop&&(e>t-1&&(e-=t),e<0&&(e+=t)),e=S(e,0,t-1)}appendHeavy(){this.mainScroll.itemHolders.forEach((e=>{e.slide&&e.slide.appendHeavy()}))}goTo(e){this.mainScroll.moveIndexBy(this.getLoopedIndex(e)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(){this.currSlide.zoomTo(...arguments)}toggleZoom(){this.currSlide.toggleZoom()}close(){this.opener.isOpen&&!this.isDestroying&&(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){if(!this.isDestroying)return this.options.showHideAnimationType="none",void this.close();this.dispatch("destroy"),this.listeners=null,this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null,this.element.remove(),this.mainScroll.itemHolders.forEach((e=>{e.slide&&e.slide.destroy()})),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach(((t,n)=>{let i=this.currSlide.index-1+n;this.canLoop()&&(i=this.getLoopedIndex(i)),i===e&&(this.setContent(t,e,!0),1===n&&(this.currSlide=t.slide,t.slide.setIsActive(!0)))})),this.dispatch("change")}setContent(e,t,n){if(this.canLoop()&&(t=this.getLoopedIndex(t)),e.slide){if(e.slide.index===t&&!n)return;e.slide.destroy(),e.slide=null}if(!this.canLoop()&&(t<0||t>=this.getNumItems()))return;const i=this.getItemData(t);e.slide=new j(i,t,this),t===this.currIndex&&(this.currSlide=e.slide),e.slide.append(e.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(e){if(this.isDestroying)return;const t=R(this.options,this);!e&&x(t,this._prevViewportSize)||(w(this._prevViewportSize,t),this.dispatch("beforeResize"),w(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(e){this.bgOpacity=Math.max(e,0),this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity)}mouseDetected(){this.hasMouse||(this.hasMouse=!0,this.element.classList.add("pswp--has_mouse"))}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout((()=>{this.updateSize()}),500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(e,t){this.offset.x=e,this.offset.y=t,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=b("pswp"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=b("pswp__bg",!1,this.element),this.scrollWrap=b("pswp__scroll-wrap",!1,this.element),this.container=b("pswp__container",!1,this.scrollWrap),this.mainScroll.appendHolders(),this.ui=new ue(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return function(e,t,n){const i=n.dispatch("thumbBounds",{index:e,itemData:t,instance:n});if(i.thumbBounds)return i.thumbBounds;const{element:r}=t;let s,o;if(r&&!1!==n.options.thumbSelector){const e=n.options.thumbSelector||"img";o=r.matches(e)?r:r.querySelector(e)}return o=n.applyFilters("thumbEl",o,t,e),o&&(s=t.thumbCropped?function(e,t,n){const i=e.getBoundingClientRect(),r=i.width/t,s=i.height/n,o=r>s?r:s,a=(i.width-t*o)/2,l=(i.height-n*o)/2,c={x:i.left+a,y:i.top+l,w:t*o};return c.innerRect={w:i.width,h:i.height,x:a,y:l},c}(o,t.width||t.w,t.height||t.h):function(e){const t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width}}(o)),n.applyFilters("thumbBounds",s,t,e)}(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(e){window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(e.showHideAnimationType="none",e.zoomAnimationDuration=0),this.options={...we,...e}}}const Ee={captionContent:".pswp-caption-content",type:"auto",horizontalEdgeThreshold:20,mobileCaptionOverlapRatio:.3,mobileLayoutBreakpoint:600};const xe=class{constructor(e,t){this.options={...Ee,...t},this.lightbox=e,this.lightbox.on("init",(()=>{this.initPlugin()}))}initPlugin(){this.pswp=this.lightbox.pswp,this.isCaptionHidden=!1,this.tempCaption=!1,this.captionElement=!1,this.pswp.on("uiRegister",(()=>{this.pswp.ui.registerElement({name:"dynamic-caption",order:9,isButton:!1,appendTo:"root",html:"",onInit:e=>{this.captionElement=e,this.initCaption()}})}))}initCaption(){const{pswp:e}=this;e.on("change",(()=>{this.updateCaptionHTML(),this.updateCurrentCaptionPosition(),this.showCaption()})),e.on("calcSlideSize",(e=>this.onCalcSlideSize(e))),e.on("moveMainScroll",(()=>{this.useMobileLayout()||(this.pswp.mainScroll.isShifted()?this.hideCaption():this.showCaption())})),e.on("zoomPanUpdate",(()=>{e.currSlide.currZoomLevel>e.currSlide.zoomLevels.initial?this.hideCaption():this.showCaption()})),e.on("beforeZoomTo",(t=>{const{currSlide:n}=e;n.__dcAdjustedPanAreaSize&&(t.destZoomLevel>n.zoomLevels.initial?(n.panAreaSize.x=n.__dcOriginalPanAreaSize.x,n.panAreaSize.y=n.__dcOriginalPanAreaSize.y):(n.panAreaSize.x=n.__dcAdjustedPanAreaSize.x,n.panAreaSize.y=n.__dcAdjustedPanAreaSize.y))}))}useMobileLayout(){const{mobileLayoutBreakpoint:e}=this.options;return"function"==typeof e?e.call(this):"number"==typeof e&&window.innerWidth<e}hideCaption(){this.isCaptionHidden||(this.isCaptionHidden=!0,this.captionElement.classList.add("pswp__dynamic-caption--faded"),this.captionFadeTimeout&&clearTimeout(this.captionFadeTimeout),this.captionFadeTimeout=setTimeout((()=>{this.captionElement.style.visibility="hidden",this.captionFadeTimeout=null}),400))}showCaption(){this.isCaptionHidden&&(this.isCaptionHidden=!1,this.captionElement.style.visibility="visible",clearTimeout(this.captionFadeTimeout),this.captionFadeTimeout=setTimeout((()=>{this.captionElement.classList.remove("pswp__dynamic-caption--faded"),this.captionFadeTimeout=null}),50))}setCaptionPosition(e,t){const n=e<=this.options.horizontalEdgeThreshold;this.captionElement.classList[n?"add":"remove"]("pswp__dynamic-caption--on-hor-edge"),this.captionElement.style.left=e+"px",this.captionElement.style.top=t+"px"}setCaptionWidth(e,t){t?e.style.width=t+"px":e.style.removeProperty("width")}setCaptionType(e,t){const n=e.dataset.pswpCaptionType;t!==n&&(e.classList.add("pswp__dynamic-caption--"+t),e.classList.remove("pswp__dynamic-caption--"+n),e.dataset.pswpCaptionType=t)}updateCurrentCaptionPosition(){const e=this.pswp.currSlide;if(!e.dynamicCaptionType)return;if("mobile"===e.dynamicCaptionType)return this.setCaptionType(this.captionElement,e.dynamicCaptionType),this.captionElement.style.removeProperty("left"),this.captionElement.style.removeProperty("top"),void this.setCaptionWidth(this.captionElement,!1);const t=e.zoomLevels.initial,n=Math.ceil(e.width*t),i=Math.ceil(e.height*t);this.setCaptionType(this.captionElement,e.dynamicCaptionType),"aside"===e.dynamicCaptionType?(this.setCaptionPosition(this.pswp.currSlide.bounds.center.x+n,this.pswp.currSlide.bounds.center.y),this.setCaptionWidth(this.captionElement,!1)):"below"===e.dynamicCaptionType&&(this.setCaptionPosition(this.pswp.currSlide.bounds.center.x,this.pswp.currSlide.bounds.center.y+i),this.setCaptionWidth(this.captionElement,n))}createTemporaryCaption(){this.tempCaption=document.createElement("div"),this.tempCaption.className="pswp__dynamic-caption pswp__dynamic-caption--temp",this.tempCaption.style.visibility="hidden",this.tempCaption.setAttribute("aria-hidden","true"),this.pswp.bg.after(this.captionElement),this.captionElement.after(this.tempCaption)}onCalcSlideSize(e){const{slide:t}=e;let n,i=!1;if(!this.getCaptionHTML(e.slide))return void(t.dynamicCaptionType=!1);this.storeOriginalPanAreaSize(t),t.bounds.update(t.zoomLevels.initial),this.useMobileLayout()?(t.dynamicCaptionType="mobile",i=!0):"auto"===this.options.type?t.bounds.center.x>t.bounds.center.y?t.dynamicCaptionType="aside":t.dynamicCaptionType="below":t.dynamicCaptionType=this.options.type;const r=Math.ceil(t.width*t.zoomLevels.initial),s=Math.ceil(t.height*t.zoomLevels.initial);if(this.tempCaption||this.createTemporaryCaption(),this.setCaptionType(this.tempCaption,t.dynamicCaptionType),"aside"===t.dynamicCaptionType){this.tempCaption.innerHTML=this.getCaptionHTML(e.slide),this.setCaptionWidth(this.tempCaption,!1),n=this.measureCaptionSize(this.tempCaption,e.slide);const i=n.x,s=r+t.bounds.center.x;t.panAreaSize.x-s<=i&&(t.panAreaSize.x-=i,this.recalculateZoomLevelAndBounds(t))}else if("below"===t.dynamicCaptionType||i){this.setCaptionWidth(this.tempCaption,i?this.pswp.viewportSize.x:r),this.tempCaption.innerHTML=this.getCaptionHTML(e.slide),n=this.measureCaptionSize(this.tempCaption,e.slide);const o=n.y,a=s+t.bounds.center.y,l=t.panAreaSize.y-a,c=t.panAreaSize.y;if(l<=o){t.panAreaSize.y-=Math.min(2*(o-l),o),this.recalculateZoomLevelAndBounds(t);const e=t.panAreaSize.x*this.options.mobileCaptionOverlapRatio/2;i&&t.bounds.center.x>e&&(t.panAreaSize.y=c,this.recalculateZoomLevelAndBounds(t))}}this.storeAdjustedPanAreaSize(t),t===this.pswp.currSlide&&this.updateCurrentCaptionPosition()}measureCaptionSize(e,t){const n=e.getBoundingClientRect();return this.pswp.dispatch("dynamicCaptionMeasureSize",{captionEl:e,slide:t,captionSize:{x:n.width,y:n.height}}).captionSize}recalculateZoomLevelAndBounds(e){e.zoomLevels.update(e.width,e.height,e.panAreaSize),e.bounds.update(e.zoomLevels.initial)}storeAdjustedPanAreaSize(e){e.__dcAdjustedPanAreaSize||(e.__dcAdjustedPanAreaSize={}),e.__dcAdjustedPanAreaSize.x=e.panAreaSize.x,e.__dcAdjustedPanAreaSize.y=e.panAreaSize.y}storeOriginalPanAreaSize(e){e.__dcOriginalPanAreaSize||(e.__dcOriginalPanAreaSize={}),e.__dcOriginalPanAreaSize.x=e.panAreaSize.x,e.__dcOriginalPanAreaSize.y=e.panAreaSize.y}getCaptionHTML(e){if("function"==typeof this.options.captionContent)return this.options.captionContent.call(this,e);const t=e.data.element;let n="";if(t){const e=t.querySelector(this.options.captionContent);if(e)n=e.innerHTML;else{const e=t.querySelector("img");e&&(n=e.getAttribute("alt"))}}return n}updateCaptionHTML(){const e=this.getCaptionHTML(this.pswp.currSlide);this.captionElement.style.visibility=e?"visible":"hidden",this.captionElement.innerHTML=e||"",this.pswp.dispatch("dynamicCaptionUpdateHTML",{captionElement:this.captionElement})}};var Se=n(877);function Ce(){(0,Se.Cd)((()=>{setTimeout((()=>{if(!(0,Se.GI)()||(0,Se.JF)()){const e=(0,Se.AW)("avif"),t=(0,Se.AW)("webp"),n=function(e){["Space","ArrowUp","ArrowDown","PageDown","PageUp"].indexOf(e.code)>-1&&e.preventDefault()},i=function(){document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()},r=function(e){"KeyF"===e.code&&i()},s=function(n,i,r){const s=[];return n.querySelectorAll(i)?.forEach((n=>{const i=n.querySelector("source[type='image/webp']")?.getAttribute("srcset"),o=n.querySelector("source[type='image/avif']")?.getAttribute("srcset"),a=n.querySelector("source[type='image/jpeg']")?.getAttribute("srcset"),l=n.querySelector("source[type='image/png']")?.getAttribute("srcset"),c={src:n.getAttribute("href"),width:parseInt(n.getAttribute("width"),10),height:parseInt(n.getAttribute("height"),10),alt:r&&r.titleSelector?n.querySelector(r.titleSelector).textContent:n.getAttribute("title"),isPicture:!!n.querySelector("picture"),webpSrc:i,avifSrc:o,jpegSrc:a,pngSrc:l,srcset:o&&e?o:i&&t?i:l||a};s.push(c)})),s},o={escKey:!0,arrowKeys:!0,loop:!0,padding:{top:50,bottom:50,left:20,right:20},bgOpacity:.9,appendToEl:document.querySelector(".l-w")};[{mainElmSelector:".b-gal",itemElmSelector:".b-gal-item:not(.clone)",thumbLinkSelector:".b-gal-item:not(.clone) .b-gal-a",titleElmSelector:".b-gal-item:not(.clone) .b-gal-t",type:"gallery"},{mainElmSelector:".prd-gal",itemElmSelector:".prd-gal-photo",thumbLinkSelector:".prd-gal-link",titleElmSelector:".prd-gal-title span",type:"gallery"},{mainElmSelector:".b-img-lightbox",itemElmSelector:null,thumbLinkSelector:"a.litebox",titleElmSelector:null,type:"image"}].forEach((e=>{document.querySelectorAll(e.mainElmSelector).forEach((t=>{const a=s(t,e.thumbLinkSelector,{titleSelector:e.titleElmSelector}),l=new y({dataSource:a,pswpModule:_e,...o});l.on("uiRegister",(function(){l.pswp.ui.registerElement({name:"fullscreen-toggle",order:8,isButton:!0,tagName:"a",html:{isCustomSVG:!0,inner:'<path d="M21.6,10.4h-3.2V8H24v5.6h-2.4V10.4z M10.4,10.4v3.2H8V8h5.6v2.4H10.4z M21.6,21.6v-3.2H24V24h-5.6v-2.4H21.6z M10.4,21.6 h3.2V24H8v-5.6h2.4V21.6z" id="pswp__icn--fullscreen"/>',outlineID:"pswp__icn--fullscreen"},onClick:()=>{i()}})}));new xe(l,{type:"below",mobileLayoutBreakpoint:600,captionContent:e=>e.data.alt});l.init(),t.querySelectorAll(e.thumbLinkSelector).forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault();let i=0;if("gallery"===e.type){const n=t.currentTarget.closest(e.itemElmSelector);i=Array.prototype.indexOf.call(n.closest(e.mainElmSelector).querySelectorAll(e.itemElmSelector),n)}else"image"===e.type&&(i=0);l.loadAndOpen(i);const s=()=>{l.pswp.close()};l.on("beforeOpen",(()=>{window.addEventListener("mousewheel",s,!1)})),window.addEventListener("keydown",r,!1),window.addEventListener("keydown",n,!1),l.on("close",(()=>{window.removeEventListener("keydown",r,!1),window.removeEventListener("keydown",n,!1),window.removeEventListener("mousewheel",s,!1)}))}))}))}))}))}}),0)}))}Ce()},727:(e,t,n)=>{"use strict";var i=n(877);const r=e=>{const t=e.getAttribute("class").split(/\s+/);for(let e=0;e<t.length;e++){const n=t[e];if(n.includes("sc-"))return n}return!1},s=e=>getComputedStyle(e.querySelector(".s-bg-l")).backgroundColor,o=(e,t)=>{t.classList.contains("hn-bottom")?(e.classList.add("wn-space-top"),t.classList.add("wn-space-bottom")):(e.classList.add("wn-space-bottom"),t.classList.add("wn-space-top")),(0,i.Lv)(e)},a=(e,t)=>{t.classList.contains("hn-bottom")?(e.classList.remove("wn-space-top"),t.classList.remove("wn-space-bottom")):(e.classList.remove("wn-space-bottom"),t.classList.remove("wn-space-top")),(0,i.Lv)(e)},l=(e,t)=>{if("reset"===e.getAttribute("data-space")||((e,t)=>e.classList.contains("s-hn-bottom")?(t.classList.contains("s-hm")||!(!t.classList.contains("s-hm")&&document.querySelector(".s-hm:not(.s-hm-hidden)")))&&e.classList.contains("wnd-nav-border"):e.classList.contains("wnd-nav-border"))(e,t)||t.classList.contains("wnd-disabled"))a(e,t);else{const n=r(e);if(n!==r(t)||t.classList.contains("s-f"))a(e,t);else if(n.includes("sc-m")&&e.classList.contains("wnd-background-solid")&&t.classList.contains("wnd-background-solid")){const n=s(e);n===s(t)&&void 0!==n?o(e,t):a(e,t)}else o(e,t)}};function c(){const e=[],t=document.querySelectorAll(".s:not(.s-hm-hidden)");let n="",i="";t.length&&t.forEach(((t,n)=>{t.getAttribute("data-space")&&e.push(n)})),e.length&&e.forEach((e=>{const r=e+1;n=t[e],i=t[r],l(n,i),n.classList.contains("s-hn-bottom")&&i.classList.contains("s-hm")&&(i=t[r+1],l(n,i))}))}(0,i.Cd)((()=>{c();const e=e=>{"SECTION"===e.target.nodeName&&setTimeout((()=>{c()}),50)};(0,i.GI)()&&document.querySelector(".wnd-page").addEventListener("wnd-redraw",e)}))},575:(e,t,n)=>{"use strict";var i=n(877);!function(e){e.fn.productCarousel=function(t){if(e(this).length<=0)return!1;var n=e.extend({},e.fn.productCarousel.defaults,t),r=function(t,n){this.carouselElm=t,this.carouselID="undefined"!==t.attr("id")?t.attr("id"):this.generateBlockID(),this.wrapperElm=t.find(".b-e-w-correct"),this.carouselContainer=t.find(".b-e-box"),this.reelElm=this.carouselContainer,this.productsElements=t.find(".item.original"),this.products=this.loadCarouselProducts(),this.productsTotal=this.products.length,this.navPrevElm=t.find(n.navPrev),this.navNextElm=t.find(n.navNext),this.itemWidth=parseInt(this.carouselElm.width()),this.maxItemCount=parseInt(window.getComputedStyle(t[0],":before").getPropertyValue("content").replace('"',"").replace("'","")),this.itemCount=parseInt(window.getComputedStyle(t[0],":after").getPropertyValue("content").replace('"',"").replace("'","")),this.currentProductIndex=this.maxItemCount,this.options=n,this.autoplay=!1,this.resizeTimeout=!1,this.animationFlag=!1,this.initFlag=!1,this.lastResize=!1,this.eventsBound=!1,this.initialized=!1,this.isInIframe=e("body").hasClass("ios-iframe")};r.prototype.generateBlockID=function(){var e,t;for(e="",t=0;t<10;t++)e+=Math.floor(16*Math.random()).toString(16).toUpperCase();return e},r.prototype.loadCarouselProducts=function(){var t=[];return this.carouselElm.find(".item.original").each((function(){t.push({productImage:e(this).find("img ").attr("src"),productTitle:e(this).find(".prd-title ").text().trim(),productPricePrefix:e(this).find(".prd-price-pref ").text().trim(),productPriceContent:e(this).find(".prd-price-c ").text().trim(),productPriceSufix:e(this).find(".prd-price-suf ").text().trim(),productLink:e(this).find("h2 > a").attr("src")})})),t},r.prototype.enoughContent=function(){return this.products.length<=this.itemCount?(this.hideCarouselControls(),this.stopAutoplay(),!1):(this.showCarouselControls(),!0)},r.prototype.prepareReel=function(e){var t=parseInt(this.wrapperElm.width()/this.itemCount),n=t*this.productsTotal+2*this.maxItemCount*t;this.reelElm.find(".item").css("width",t+"px"),this.reelElm.css("width",n+"px"),this.reelElm.css("marginLeft",(e?this.currentProductIndex*t*-1:this.maxItemCount*t*-1)+"px"),e||(this.currentProductIndex=this.maxItemCount),this.itemWidth=t},r.prototype.replaceImgSrc=function(e,t,n){var i=e.lastIndexOf(t);return e=e.substring(0,i)+n+e.substring(i+t.length)},r.prototype.tooFastClick=function(){return this.animationFlag},r.prototype.bindControls=function(){var t=this;if(this.navNextElm.off(this.options.touchEvents).on(this.options.touchEvents,(function(){t.tooFastClick()||(t.stopAutoplay(),t.nextProduct())})),this.navPrevElm.off(this.options.touchEvents).on(this.options.touchEvents,(function(){t.tooFastClick()||(t.stopAutoplay(),t.prevProduct())})),e(document).on("keydown",(function(e){37===e.keyCode?(0,i.PZ)(t.carouselElm)>.3&&(t.tooFastClick()||(t.stopAutoplay(),t.prevProduct())):39===e.keyCode&&(0,i.PZ)(t.carouselElm)>.3&&(t.tooFastClick()||(t.stopAutoplay(),t.nextProduct()))})),this.options.isCMS)return!1;var n=new Hammer(t.carouselElm.get(0));n.on("swiperight",(function(){t.navPrevElm.click()})),n.on("swipeleft",(function(){t.navNextElm.click()}))},r.prototype.jumpToProduct=function(){var e=this;e.animationFlag=!0,this.reelElm.animate({marginLeft:e.currentProductIndex*e.itemWidth*-1},300,(function(){e.currentProductIndex===e.productsTotal+e.itemCount?(e.reelElm.css("marginLeft",e.itemCount*e.itemWidth*-1+"px"),e.currentProductIndex=e.itemCount):0===e.currentProductIndex&&(e.reelElm.css("marginLeft",e.productsTotal*e.itemWidth*-1+"px"),e.currentProductIndex=e.productsTotal),e.animationFlag=!1}))},r.prototype.nextProduct=function(){this.currentProductIndex++,this.jumpToProduct()},r.prototype.prevProduct=function(){this.currentProductIndex--,this.jumpToProduct()},r.prototype.runAutoplay=function(){if(this.options.autoplay&&!this.isInIframe){var e=this;this.options.isCMS?e.autoplay=setTimeout((function(){e.nextProduct(),e.stopAutoplay()}),e.options.timeout):e.autoplay=setInterval((function(){e.nextProduct()}),e.options.timeout)}},r.prototype.stopAutoplay=function(){this.options.autoplay&&!1!==this.autoplay&&(clearInterval(this.autoplay),this.autoplay=!1)},r.prototype.hideCarouselControls=function(){this.carouselElm.addClass("static"),this.navNextElm.addClass("hide").removeClass("show"),this.navPrevElm.addClass("hide").removeClass("show")},r.prototype.showCarouselControls=function(){this.carouselElm.removeClass("static"),this.navNextElm.addClass("show").removeClass("hide"),this.navPrevElm.addClass("show").removeClass("hide")},r.prototype.bindEvents=function(){var t=this,n=(0,i.Ds)((function(n){var i=n.target;"IMG"!==i.tagName&&(e(i).hasClass("b-e")||(i=e(i).closest(".b-e")),e(i).hasClass("b-e-car")&&e(i).hasClass("not-loaded")?(e(t.carouselElm).find(".clone").remove(),setTimeout((function(){t.reload(t.carouselID)}),100),this.eventsBound=!0):e(i).hasClass("b-e-car")||(t.unbindEvents(),t={}))}),500);e(window).on("resize."+t.carouselID,(function(){t.resizeAction()})),e(document).on("wnd-redraw."+t.carouselID,".ez",(function(n){e(n.target).hasClass("b-e-car")&&t.resizeAction()}));var r=!1;e(document).on("wnd-redraw."+t.carouselID,".s",(function(n){void 0===t.carouselElm||r||(r=!0,setTimeout((function(){t.carouselElm.closest(".s").attr("id")===e(n.target).attr("id")&&(t.resizeAction(),r=!1)}),50))})),e(document).on("wnd-redraw-done."+t.carouselID,".c",(function(){var n=e(this).closest(".ez");e(n).find(".b-e-car").each((function(){e(this).is(t.carouselElm)&&t.resizeAction()}))})),e(document).off("wnd-redraw."+t.carouselID,String("#"+t.carouselID)),e(document).on("wnd-redraw."+t.carouselID,String("#"+t.carouselID),n)},r.prototype.clearReel=function(){this.reelElm.find(".item").css("width",""),this.reelElm.css("width",""),this.reelElm.css("marginLeft","")},r.prototype.resizeAction=function(e){if(!this.initFlag){var t=this;e=void 0!==e&&e;t.resizeFlag||(t.resizeFlag=!0,t.itemCount=parseInt(window.getComputedStyle(t.carouselElm[0],":after").getPropertyValue("content").replace('"',"").replace("'","")),t.enoughContent()?(t.prepareReel(!0),t.bindControls()):t.clearReel(),setTimeout((function(){t.resizeFlag=!1}),100),t.bindEvents(),(0,i.Lv)(this.carouselElm)),e?(clearTimeout(t.lastResize),t.lastResize=!1):(clearTimeout(t.lastResize),t.lastResize=setTimeout((function(){t.resizeAction(!0)}),200))}},r.prototype.unbindEvents=function(){var t=this;e(document).off("wnd-redraw."+t.carouselID,".ez"),e(document).off("wnd-redraw-done."+t.carouselID,".c"),e(document).off("wnd-redraw."+t.carouselID,String("#"+t.carouselID)),e(window).off("resize."+t.carouselID)},r.prototype.clearInlineStyles=function(){this.carouselElm.find(".item .prd-title").removeAttr("style"),this.carouselElm.find(".item .prd-ribbon").removeAttr("style"),this.carouselElm.find(".item .prd-price").removeAttr("style"),this.carouselElm.find(".item .prd-price-com").removeAttr("style")},r.prototype.copyInlineStyles=function(){var t,n,i,r,s=[".prd-title",".prd-ribbon",".prd-price",".prd-price-com"];for(i=this.productsElements.length-1;i>this.productsElements.length-1-this.maxItemCount;i--)for(n=0;n<s.length;n++)void 0!==(t=this.productsElements.eq(i).find(s[n]).attr("style"))&&e('div[data-clone-id="'+i+'"]').find(s[n]).attr("style",t);for(r=0;r<this.maxItemCount;r++)for(n=0;n<s.length;n++)void 0!==(t=this.productsElements.eq(r).find(s[n]).attr("style"))&&e('div[data-clone-id="'+r+'"]').find(s[n]).attr("style",t)},r.prototype.reload=function(t){this.stopAutoplay(),this.carouselElm=e(document).find("#"+t),this.wrapperElm=this.carouselElm.find(".b-e-w-correct"),this.carouselContainer=this.carouselElm.find(".b-e-box"),this.reelElm=this.carouselContainer,this.productsElements=this.carouselElm.find(".item.original"),this.products=this.loadCarouselProducts(),this.productsTotal=this.products.length,this.navPrevElm=this.carouselElm.find(n.navPrev),this.navNextElm=this.carouselElm.find(n.navNext),this.itemWidth=parseInt(this.carouselElm.width()),this.maxItemCount=parseInt(window.getComputedStyle(this.carouselElm[0],":before").getPropertyValue("content").replace('"',"").replace("'","")),this.itemCount=parseInt(window.getComputedStyle(this.carouselElm[0],":after").getPropertyValue("content").replace('"',"").replace("'","")),this.currentProductIndex=this.maxItemCount,this.autoplay=!1,this.resizeTimeout=!1,this.resizeFlag=!1,this.eventsBound=!0,this.init(),this.initFlag=!1},r.prototype.init=function(){var t,n;this.initFlag=!0,0===this.productsElements.length&&!0===this.initialized&&this.reload(this.carouselID),this.carouselElm.find(".clone").remove(),this.productsTotal<this.maxItemCount&&(this.maxItemCount=this.productsTotal);for(var r=this.productsElements.length-1;r>this.productsElements.length-1-this.maxItemCount;r--)n=this.productsElements.eq(r).attr("class").replace("original","clone").trim(),t=e("<div>").addClass(n).attr("data-clone-id",r).html(this.productsElements.eq(r).clone().find(".item-wrapper")),e(t).find(".thumbnail").removeAttr("id"),e(t).prependTo(this.reelElm);for(var s=0;s<this.maxItemCount;s++)n=this.productsElements.eq(s).attr("class").replace("original","clone").trim(),t=e("<div>").addClass(n).attr("data-clone-id",s).html(this.productsElements.eq(s).clone().find(".item-wrapper")),e(t).find(".thumbnail").removeAttr("id"),e(t).appendTo(this.reelElm);this.clearInlineStyles(),this.enoughContent()?(this.prepareReel(!1),this.bindControls(),this.runAutoplay(),this.copyInlineStyles()):this.clearReel(),this.carouselElm.removeClass("not-loaded"),this.eventsBound||this.bindEvents(),(0,i.Lv)(this.carouselElm);const o=new Event("wnd-redraw-done",{bubbles:!0,cancellable:!0});this.carouselElm[0].dispatchEvent(o),this.initFlag=!1,this.initialized=!0},new r(e(this),n).init()},e.fn.productCarousel.defaults={touchEvents:"click",autoplay:!1,timeout:"5000",navPrev:".b-e-car-prev",navNext:".b-e-car-next",isCMS:!1}}(jQuery)},504:(e,t,n)=>{"use strict";var i=n(877);!function(e){e.fn.productSlider=function(t){if(e(this).length<=0)return!1;var n=e.extend({},e.fn.productSlider.defaults,t),r=function(e,t){this.sliderElm=e,this.sliderID="undefined"!==e.attr("id")?e.attr("id"):this.generateBlockID(),this.wrapperElm=e.find(".b-e-c"),this.reelElm=e.find(".b-e-box"),this.productsElements=e.find(".item"),this.navPrevElm=e.find(t.navPrev),this.navNextElm=e.find(t.navNext),this.navBlock=e.find(t.navBlock),this.navBlockContentElm=e.find(t.navBlockContentElm),this.bulletsUl=this.navBlock.find("ul"),this.bullets=this.bulletsUl.find("li").length?this.bulletsUl.find("li"):null,this.products=this.loadSliderProducts(),this.productsTotal=this.products.length,this.itemWidth=parseInt(this.sliderElm.width()),this.CPI=0,this.CPRP=this.CPI+2,this.options=t,this.autoplay=!1,this.resizeTimeout=!1,this.maxBullets=t.maxBullets,this.resizeFlag=!1,this.initFlag=!1,this.lastResize=!1,this.eventsBound=!1,this.animationFlag=!1,this.navReelPosition=this.productsTotal,this.startOriginal=this.productsTotal,this.startClones=2*this.productsTotal};r.prototype.generateBlockID=function(){var e,t;for(e="",t=0;t<10;t++)e+=Math.floor(16*Math.random()).toString(16).toUpperCase();return e},r.prototype.loadSliderProducts=function(){var t=[];return this.sliderElm.find(".item.original").each((function(){t.push({productImage:e(this).find(".item-media img ").attr("src"),productTitle:e(this).find(".item-head .prd-title ").text().trim(),productPricePrefix:e(this).find(".item-head .prd-price-pref ").text().trim(),productPriceContent:e(this).find(".item-head .prd-price-c ").text().trim(),productPriceSufix:e(this).find(".item-head .prd-price-suf ").text().trim(),productLink:e(this).find(".item-media > a").attr("src")})})),t},r.prototype.enoughContent=function(){return this.products.length<=1?(this.hideSliderControls(),!1):(this.showSliderControls(),!0)},r.prototype.prepareReel=function(t){var n=parseInt(this.wrapperElm.width()),i=n*(this.productsTotal+4),r=this;i+=r.productsTotal,e(r.sliderElm).find("article.item").css("width",n+"px"),t?r.reelElm.css("width",i+"px"):setTimeout((function(){r.reelElm.css("width",i+"px")}),500),r.reelElm.css("marginLeft",r.CPRP*n*-1+"px"),r.itemWidth=n},r.prototype.buildNav=function(){var t=this.bulletsUl,r="";t.find(".clone").remove();for(var s=0;s<this.productsTotal;s++)r+='<li class="original'+(s===this.CPI?" active":"")+'" data-slide-number="'+s+'"></li>';if(e(t).html(r),this.bullets=t.find("li"),this.productsTotal<=this.maxBullets)this.navBlockContentElm.hasClass("infinite")&&this.navBlockContentElm.removeClass("infinite"),this.navBlockContentElm.addClass("centered");else{this.navBlockContentElm=this.sliderElm.find(n.navBlockContentElm),this.createBulletClones(),this.navBlockContentElm.hasClass("infinite")||(this.navReelPosition-=2),this.navBlockContentElm.hasClass("centered")&&this.navBlockContentElm.removeClass("centered"),this.navBlockContentElm.addClass("infinite");var o=(this.CPI+1)%this.productsTotal,a=this.CPI-1<0?this.productsTotal-1:this.CPI-1,l=0,c=0,u=0,d=0,p=this;this.bulletsUl.find('li[data-slide-number="'+o+'"]').addClass("large"),this.bulletsUl.find('li[data-slide-number="'+a+'"]').addClass("large"),this.bulletsUl.find("li").each((function(){d=parseInt(e(this).width())+parseInt(e(this).css("marginLeft"))+parseInt(e(this).css("marginRight")),c+=d,u++<p.navReelPosition&&(l+=d)})),this.bulletsUl.css("width",c+"px"),this.bulletsUl.css("marginLeft",-1*l+"px"),this.bulletsUl.css("marginTop",""),this.bulletsUl.css("height","")}(0,i.Lv)(this.sliderElm)},r.prototype.clearInlineStyles=function(){this.sliderElm.find(".clone .item-content div").removeAttr("style")},r.prototype.tooFastClick=function(){return this.animationFlag},r.prototype.bindControls=function(){var t=this;this.navNextElm.off(this.options.touchEvents).on(this.options.touchEvents,(function(){t.tooFastClick()||(t.stopAutoplay(),t.nextSlide())})),this.navPrevElm.off(this.options.touchEvents).on(this.options.touchEvents,(function(){t.tooFastClick()||(t.stopAutoplay(),t.prevSlide())})),e(document).on("keydown",(function(e){37===e.keyCode?(0,i.PZ)(t.sliderElm)>.3&&(t.tooFastClick()||(t.stopAutoplay(),t.prevSlide())):39===e.keyCode&&(0,i.PZ)(t.sliderElm)>.3&&(t.tooFastClick()||(t.stopAutoplay(),t.nextSlide()))})),null!==this.bullets&&this.bullets.off(this.options.touchEvents).on(this.options.touchEvents,(function(n){if(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),!t.tooFastClick()){t.stopAutoplay();var i=parseInt(e(t.bulletsUl).find("li.active").attr("data-slide-number")),r=parseInt(e(this).attr("data-slide-number")),s=null,o=0;0===i&&r===t.productsTotal-1?(t.CPI-=1,t.CPRP-=1,s="forward",o=1):i===t.productsTotal-1&&0===r?(t.CPI+=1,t.CPRP+=1,s="backward",o=1):(0===i&&r===t.productsTotal-2||1===i&&r===t.productsTotal-1)&&t.navBlockContentElm.hasClass("infinite")?(t.CPI-=2,t.CPRP-=2,s="forward",o=2):(i===t.productsTotal-1&&1===r||i===t.productsTotal-2&&0===r)&&t.navBlockContentElm.hasClass("infinite")?(t.CPI+=2,t.CPRP+=2,s="backward",o=2):(t.CPI=r,t.CPRP=t.CPI+2,s=i<r?"backward":"forward",o=Math.abs(i-r)),t.jumpToSlide(s,o)}}));var n=new Hammer(t.sliderElm.get(0));n.on("swiperight",(function(){t.productsTotal>1&&t.navPrevElm.click()})),n.on("swipeleft",(function(){t.productsTotal>1&&t.navNextElm.click()}))},r.prototype.shiftBullets=function(t,n){void 0===n&&(n=1),this.navAnimationFlag=!0;var i=this.bulletsUl,r=this.navReelPosition,s=this,o=0,a=0,l=0,c=0;"backward"===t?s.navReelPosition===s.startClones&&1===n||(s.navReelPosition===s.startClones-1||s.navReelPosition===s.startClones)&&2===n?(r=s.navReelPosition=s.startOriginal-(s.startClones-s.navReelPosition)+n,this.bulletsUl.find("li").each((function(){l=parseInt(e(this).width())+parseInt(e(this).css("marginLeft"))+parseInt(e(this).css("marginRight")),a++<r-n&&(o+=l)})),i.css("marginLeft",-1*o+"px")):r=s.navReelPosition+=n:0===s.navReelPosition&&1===n||s.navReelPosition<=1&&2===n?(r=s.navReelPosition=s.startOriginal+s.navReelPosition-n,this.bulletsUl.find("li").each((function(){l=parseInt(e(this).width())+parseInt(e(this).css("marginLeft"))+parseInt(e(this).css("marginRight")),a++<r+n&&(o+=l)})),i.css("marginLeft",-1*o+"px")):r=this.navReelPosition-=n,a=0,this.bulletsUl.find("li").each((function(){l=parseInt(e(this).width())+parseInt(e(this).css("marginLeft"))+parseInt(e(this).css("marginRight")),a++<s.navReelPosition&&(c+=l)})),i.animate({marginLeft:-1*c},150,(function(){s.navAnimationFlag=!1}))},r.prototype.jumpToSlide=function(t,n){var i=this,r=null;if(i.animationFlag=!0,r=i.CPI<0?i.productsTotal+i.CPI:i.CPI>=i.productsTotal?i.CPI-i.productsTotal:i.CPI,i.bulletsUl.find("li").removeClass("active"),i.bulletsUl.find('li[data-slide-number="'+r+'"]').addClass("active"),i.navBlockContentElm.hasClass("infinite")){e(i.bulletsUl).find("li").removeClass("large");var s=(r+1)%i.productsTotal,o=r-1<0?i.productsTotal-1:r-1;i.bulletsUl.find('li[data-slide-number="'+s+'"]').addClass("large"),i.bulletsUl.find('li[data-slide-number="'+o+'"]').addClass("large"),this.shiftBullets(t,n)}e(i.reelElm).animate({marginLeft:this.CPRP*i.itemWidth*-1},300,(function(){(i.CPI<0||i.CPI>i.productsTotal-1)&&(i.CPI=r,i.CPRP=i.CPI+2,i.reelElm.css("marginLeft",i.itemWidth*i.CPRP*-1+"px")),i.animationFlag=!1}))},r.prototype.nextSlide=function(){s.CPI+=1,s.CPRP+=1,s.jumpToSlide("backward",1)},r.prototype.prevSlide=function(){s.CPI-=1,s.CPRP-=1,s.jumpToSlide("forward",1)},r.prototype.runAutoplay=function(){if(this.options.autoplay){var e=this;this.options.isCMS?e.autoplay=setTimeout((function(){e.nextSlide(),e.stopAutoplay()}),e.options.timeout):e.autoplay=setInterval((function(){e.nextSlide()}),e.options.timeout)}},r.prototype.stopAutoplay=function(){this.options.autoplay&&!1!==this.autoplay&&(clearInterval(this.autoplay),this.autoplay=!1)},r.prototype.hideSliderControls=function(){this.navNextElm.addClass("hide").removeClass("show"),this.navPrevElm.addClass("hide").removeClass("show"),this.navBlock.addClass("hide").removeClass("show")},r.prototype.showSliderControls=function(){this.navNextElm.addClass("show").removeClass("hide"),this.navPrevElm.addClass("show").removeClass("hide"),this.navBlock.addClass("show").removeClass("hide")},r.prototype.disableAnimations=function(){this.sliderElm.addClass("disable-animations")},r.prototype.enableAnimations=function(){s.sliderElm.removeClass("disable-animations"),clearTimeout(s.resizeTimeout)},r.prototype.resizeAction=function(e){if(!this.initFlag){e=void 0!==e&&e;var t=this;t.resizeFlag||(t.resizeFlag=!0,t.disableAnimations(),clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout(t.enableAnimations,200),t.enoughContent()&&t.prepareReel(!0),setTimeout((function(){t.resizeFlag=!1}),100),t.bindControls(),(0,i.Lv)(t.sliderElm)),e?(clearTimeout(t.lastResize),t.lastResize=!1):(clearTimeout(t.lastResize),t.lastResize=setTimeout((function(){t.resizeAction(!0)}),200))}},r.prototype.unbindEvents=function(){var t=this;e(document).off("wnd-redraw."+t.sliderID,".ez"),e(document).off("wnd-redraw-done."+t.sliderID,".c"),e(document).off("wnd-redraw."+t.sliderID,String("#"+t.sliderID)),e(window).off("resize."+t.sliderID)},r.prototype.bindEvents=function(){var t=this,n=(0,i.Ds)((function(n){var i=n.target;"IMG"!==i.tagName&&(e(i).hasClass("b-e")||(i=e(i).closest(".b-e")),e(i).hasClass("b-e-s")&&e(i).hasClass("not-loaded")?(e(i).find(".clone").remove(),setTimeout((function(){t.reinit(t.sliderID)}),50),this.eventsBound=!0):e(i).hasClass("b-e-s")||(t.unbindEvents(),t={}))}),500);e(window).on("resize."+t.sliderID,(function(){t.resizeAction()})),e(document).on("wnd-redraw."+t.sliderID,".ez",(function(n){e(n.target).hasClass("b-e-s")&&t.resizeAction()})),e(document).on("wnd-redraw-done."+t.sliderID,".c",(function(){var n=e(this).closest(".ez");e(n).find(".b-e-s").each((function(){e(this).is(t.sliderElm)&&t.resizeAction()}))})),t.options.isCMS&&(e(document).off("wnd-redraw."+t.sliderID,String("#"+t.sliderID)),e(document).on("wnd-redraw."+t.sliderID,String("#"+t.sliderID),n))},r.prototype.reinit=function(t){this.sliderElm=e(document).find("#"+t),this.wrapperElm=this.sliderElm.find(".b-e-c"),this.reelElm=this.sliderElm.find(".b-e-box"),this.productsElements=this.sliderElm.find(".item"),this.products=this.loadSliderProducts(),this.productsTotal=this.products.length,this.navPrevElm=this.sliderElm.find(this.options.navPrev),this.navNextElm=this.sliderElm.find(this.options.navNext),this.itemWidth=parseInt(this.sliderElm.width()),this.CPI=0,this.CPRP=this.CPI+2,this.autoplay=!1,this.resizeTimeout=!1,this.navBlock=this.sliderElm.find(this.options.navBlock),this.bulletsUl=this.navBlock.find("ul"),this.bullets=this.bulletsUl.find("li").length?this.bulletsUl.find("li"):null,this.resizeFlag=!1,this.initFlag=!1,this.eventsBound=!0,this.navReelPosition=this.productsTotal,this.startOriginal=this.productsTotal,this.startClones=2*this.productsTotal,this.init()},r.prototype.createClones=function(){for(var t,n,i=1;i<=this.options.clones;i++)n=this.productsElements.eq(this.productsTotal-i).attr("class").replace("original","clone").trim(),t=e("<article>").addClass(n).attr("data-clone-id",this.productsTotal-i).html(this.productsElements.eq(this.productsTotal-i).clone().find(".item-wrapper")),e(t).find(".thumbnail").removeAttr("id"),e(t).prependTo(this.reelElm);for(var r=0;r<this.options.clones;r++)n=this.productsElements.eq(r).attr("class").replace("original","clone").trim(),t=e("<article>").addClass(n).attr("data-clone-id",r).html(this.productsElements.eq(r).clone().find(".item-wrapper")),e(t).find(".thumbnail").removeAttr("id"),e(t).appendTo(this.reelElm);this.clearInlineStyles()},r.prototype.createBulletClones=function(){for(var t="",n=0;n<this.products.length;n++)this.products[n],t+='<li class="clone '+(n===this.CPI?" active":"")+'" data-slide-number="'+n+'"></li>';e(this.bulletsUl).prepend(t),e(this.bulletsUl).append(t),this.bullets=this.bulletsUl.find("li")},r.prototype.init=function(){this.initFlag=!0,this.enoughContent()&&(this.createClones(),this.prepareReel(!1),this.buildNav(),this.bindControls(),this.runAutoplay());var e=this;setTimeout((function(){e.sliderElm.removeClass("not-loaded"),e.eventsBound||e.bindEvents(),(0,i.Lv)(e.sliderElm)}),500),(0,i.Lv)(e.sliderElm),this.initFlag=!1};var s=new r(e(this),n);s.init()},e.fn.productSlider.defaults={touchEvents:"click",autoplay:!1,timeout:"5000",navPrev:".b-e-s-prev",navNext:".b-e-s-next",navBlock:".b-e-s-nav",navBlockContentElm:".b-e-s-nav > .dots-content",isCMS:!1,maxBullets:5,clones:2}}(jQuery)},551:(e,t,n)=>{var i;
/*! Hammer.JS - v2.0.8 - 2016-04-23
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */!function(r,s,o,a){"use strict";function l(e,t,n){return setTimeout(h(e,n),t)}function c(e,t,n){return!!Array.isArray(e)&&(u(e,n[t],n),!0)}function u(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==a)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function d(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=r.console&&(r.console.warn||r.console.log);return s&&s.call(r.console,i,n),e.apply(this,arguments)}}function p(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&ae(i,n)}function h(e,t){return function(){return e.apply(t,arguments)}}function m(e,t){return typeof e==ue?e.apply(t&&t[0]||a,t):e}function f(e,t){return e===a?t:e}function g(e,t,n){u(w(t),(function(t){e.addEventListener(t,n,!1)}))}function v(e,t,n){u(w(t),(function(t){e.removeEventListener(t,n,!1)}))}function y(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function b(e,t){return e.indexOf(t)>-1}function w(e){return e.trim().split(/\s+/g)}function _(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function E(e){return Array.prototype.slice.call(e,0)}function x(e,t,n){for(var i=[],r=[],s=0;s<e.length;){var o=t?e[s][t]:e[s];_(r,o)<0&&i.push(e[s]),r[s]=o,s++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function S(e,t){for(var n,i,r=t[0].toUpperCase()+t.slice(1),s=0;s<le.length;){if((i=(n=le[s])?n+r:t)in e)return i;s++}return a}function C(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||r}function N(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){m(e.options.enable,[e])&&n.handler(t)},this.init()}function k(e,t,n){var i=n.pointers.length,r=n.changedPointers.length,s=t&xe&&i-r==0,o=t&(Ce|Ne)&&i-r==0;n.isFirst=!!s,n.isFinal=!!o,s&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,r=i.length;n.firstInput||(n.firstInput=L(t)),r>1&&!n.firstMultiple?n.firstMultiple=L(t):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,a=o?o.center:s.center,l=t.center=P(i);t.timeStamp=he(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=D(a,l),t.distance=z(a,l),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},s=e.prevInput||{};t.eventType!==xe&&s.eventType!==Ce||(r=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=I(t.deltaX,t.deltaY);var c=A(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=pe(c.x)>pe(c.y)?c.x:c.y,t.scale=o?function(e,t){return z(t[0],t[1],Re)/z(e[0],e[1],Re)}(o.pointers,i):1,t.rotation=o?function(e,t){return D(t[1],t[0],Re)+D(e[1],e[0],Re)}(o.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,T(n,t);var u=e.element;y(t.srcEvent.target,u)&&(u=t.srcEvent.target),t.target=u}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function T(e,t){var n,i,r,s,o=e.lastInterval||t,l=t.timeStamp-o.timeStamp;if(t.eventType!=Ne&&(l>Ee||o.velocity===a)){var c=t.deltaX-o.deltaX,u=t.deltaY-o.deltaY,d=A(l,c,u);i=d.x,r=d.y,n=pe(d.x)>pe(d.y)?d.x:d.y,s=I(c,u),e.lastInterval=t}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;t.velocity=n,t.velocityX=i,t.velocityY=r,t.direction=s}function L(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:de(e.pointers[n].clientX),clientY:de(e.pointers[n].clientY)},n++;return{timeStamp:he(),pointers:t,center:P(t),deltaX:e.deltaX,deltaY:e.deltaY}}function P(e){var t=e.length;if(1===t)return{x:de(e[0].clientX),y:de(e[0].clientY)};for(var n=0,i=0,r=0;t>r;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:de(n/t),y:de(i/t)}}function A(e,t,n){return{x:t/e||0,y:n/e||0}}function I(e,t){return e===t?ke:pe(e)>=pe(t)?0>e?Te:Le:0>t?Pe:Ae}function z(e,t,n){n||(n=Oe);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function D(e,t,n){n||(n=Oe);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}function O(){this.evEl=Be,this.evWin=Fe,this.pressed=!1,N.apply(this,arguments)}function R(){this.evEl=He,this.evWin=$e,N.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function q(){this.evTarget=Ue,this.evWin=Ve,this.started=!1,N.apply(this,arguments)}function B(e,t){var n=E(e.touches),i=E(e.changedTouches);return t&(Ce|Ne)&&(n=x(n.concat(i),"identifier",!0)),[n,i]}function F(){this.evTarget=Ge,this.targetIds={},N.apply(this,arguments)}function M(e,t){var n=E(e.touches),i=this.targetIds;if(t&(xe|Se)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=E(e.changedTouches),a=[],l=this.target;if(s=n.filter((function(e){return y(e.target,l)})),t===xe)for(r=0;r<s.length;)i[s[r].identifier]=!0,r++;for(r=0;r<o.length;)i[o[r].identifier]&&a.push(o[r]),t&(Ce|Ne)&&delete i[o[r].identifier],r++;return a.length?[x(s.concat(a),"identifier",!0),a]:void 0}function j(){N.apply(this,arguments);var e=h(this.handler,this);this.touch=new F(this.manager,e),this.mouse=new O(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function H(e,t){e&xe?(this.primaryTouch=t.changedPointers[0].identifier,$.call(this,t)):e&(Ce|Ne)&&$.call(this,t)}function $(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),Qe)}}function W(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(t-r.x),o=Math.abs(n-r.y);if(Xe>=s&&Xe>=o)return!0}return!1}function U(e,t){this.manager=e,this.set(t)}function V(e){this.options=ae({},this.defaults,e||{}),this.id=ge++,this.manager=null,this.options.enable=f(this.options.enable,!0),this.state=ot,this.simultaneous={},this.requireFail=[]}function Z(e){return e&dt?"cancel":e&ct?"end":e&lt?"move":e&at?"start":""}function G(e){return e==Ae?"down":e==Pe?"up":e==Te?"left":e==Le?"right":""}function Q(e,t){var n=t.manager;return n?n.get(e):e}function X(){V.apply(this,arguments)}function Y(){X.apply(this,arguments),this.pX=null,this.pY=null}function K(){X.apply(this,arguments)}function J(){V.apply(this,arguments),this._timer=null,this._input=null}function ee(){X.apply(this,arguments)}function te(){X.apply(this,arguments)}function ne(){V.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ie(e,t){return(t=t||{}).recognizers=f(t.recognizers,ie.defaults.preset),new re(e,t)}function re(e,t){this.options=ae({},ie.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=function(e){var t=e.options.inputClass;return new(t||(ye?R:be?F:ve?j:O))(e,k)}(this),this.touchAction=new U(this,this.options.touchAction),se(this,!0),u(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function se(e,t){var n,i=e.element;i.style&&(u(e.options.cssProps,(function(r,s){n=S(i.style,s),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}function oe(e,t){var n=s.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}var ae,le=["","webkit","Moz","MS","ms","o"],ce=s.createElement("div"),ue="function",de=Math.round,pe=Math.abs,he=Date.now;ae="function"!=typeof Object.assign?function(e){if(e===a||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==a&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t}:Object.assign;var me=d((function(e,t,n){for(var i=Object.keys(t),r=0;r<i.length;)(!n||n&&e[i[r]]===a)&&(e[i[r]]=t[i[r]]),r++;return e}),"extend","Use `assign`."),fe=d((function(e,t){return me(e,t,!0)}),"merge","Use `assign`."),ge=1,ve="ontouchstart"in r,ye=S(r,"PointerEvent")!==a,be=ve&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),we="touch",_e="mouse",Ee=25,xe=1,Se=2,Ce=4,Ne=8,ke=1,Te=2,Le=4,Pe=8,Ae=16,Ie=Te|Le,ze=Pe|Ae,De=Ie|ze,Oe=["x","y"],Re=["clientX","clientY"];N.prototype={handler:function(){},init:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(C(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(C(this.element),this.evWin,this.domHandler)}};var qe={mousedown:xe,mousemove:Se,mouseup:Ce},Be="mousedown",Fe="mousemove mouseup";p(O,N,{handler:function(e){var t=qe[e.type];t&xe&&0===e.button&&(this.pressed=!0),t&Se&&1!==e.which&&(t=Ce),this.pressed&&(t&Ce&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:_e,srcEvent:e}))}});var Me={pointerdown:xe,pointermove:Se,pointerup:Ce,pointercancel:Ne,pointerout:Ne},je={2:we,3:"pen",4:_e,5:"kinect"},He="pointerdown",$e="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(He="MSPointerDown",$e="MSPointerMove MSPointerUp MSPointerCancel"),p(R,N,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=Me[i],s=je[e.pointerType]||e.pointerType,o=s==we,a=_(t,e.pointerId,"pointerId");r&xe&&(0===e.button||o)?0>a&&(t.push(e),a=t.length-1):r&(Ce|Ne)&&(n=!0),0>a||(t[a]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:s,srcEvent:e}),n&&t.splice(a,1))}});var We={touchstart:xe,touchmove:Se,touchend:Ce,touchcancel:Ne},Ue="touchstart",Ve="touchstart touchmove touchend touchcancel";p(q,N,{handler:function(e){var t=We[e.type];if(t===xe&&(this.started=!0),this.started){var n=B.call(this,e,t);t&(Ce|Ne)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:we,srcEvent:e})}}});var Ze={touchstart:xe,touchmove:Se,touchend:Ce,touchcancel:Ne},Ge="touchstart touchmove touchend touchcancel";p(F,N,{handler:function(e){var t=Ze[e.type],n=M.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:we,srcEvent:e})}});var Qe=2500,Xe=25;p(j,N,{handler:function(e,t,n){var i=n.pointerType==we,r=n.pointerType==_e;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)H.call(this,t,n);else if(r&&W.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ye=S(ce.style,"touchAction"),Ke=Ye!==a,Je="compute",et="auto",tt="manipulation",nt="none",it="pan-x",rt="pan-y",st=function(){if(!Ke)return!1;var e={},t=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||r.CSS.supports("touch-action",n)})),e}();U.prototype={set:function(e){e==Je&&(e=this.compute()),Ke&&this.manager.element.style&&st[e]&&(this.manager.element.style[Ye]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return u(this.manager.recognizers,(function(t){m(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(b(e,nt))return nt;var t=b(e,it),n=b(e,rt);return t&&n?nt:t||n?t?it:rt:b(e,tt)?tt:et}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(!this.manager.session.prevented){var i=this.actions,r=b(i,nt)&&!st[nt],s=b(i,rt)&&!st[rt],o=b(i,it)&&!st[it];if(r){var a=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(a&&l&&c)return}return o&&s?void 0:r||s&&n&Ie||o&&n&ze?this.preventSrc(t):void 0}t.preventDefault()},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var ot=1,at=2,lt=4,ct=8,ut=ct,dt=16,pt=32;V.prototype={defaults:{},set:function(e){return ae(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(c(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Q(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return c(e,"dropRecognizeWith",this)||(e=Q(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(c(e,"requireFailure",this))return this;var t=this.requireFail;return-1===_(t,e=Q(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(c(e,"dropRequireFailure",this))return this;e=Q(e,this);var t=_(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,i=this.state;ct>i&&t(n.options.event+Z(i)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),i>=ct&&t(n.options.event+Z(i))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=pt)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(pt|ot)))return!1;e++}return!0},recognize:function(e){var t=ae({},e);return m(this.options.enable,[this,t])?(this.state&(ut|dt|pt)&&(this.state=ot),this.state=this.process(t),void(this.state&(at|lt|ct|dt)&&this.tryEmit(t))):(this.reset(),void(this.state=pt))},process:function(e){},getTouchAction:function(){},reset:function(){}},p(X,V,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=t&(at|lt),r=this.attrTest(e);return i&&(n&Ne||!r)?t|dt:i||r?n&Ce?t|ct:t&at?t|lt:at:pt}}),p(Y,X,{defaults:{event:"pan",threshold:10,pointers:1,direction:De},getTouchAction:function(){var e=this.options.direction,t=[];return e&Ie&&t.push(rt),e&ze&&t.push(it),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,s=e.deltaX,o=e.deltaY;return r&t.direction||(t.direction&Ie?(r=0===s?ke:0>s?Te:Le,n=s!=this.pX,i=Math.abs(e.deltaX)):(r=0===o?ke:0>o?Pe:Ae,n=o!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return X.prototype.attrTest.call(this,e)&&(this.state&at||!(this.state&at)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=G(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),p(K,X,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[nt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&at)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),p(J,V,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[et]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!i||!n||e.eventType&(Ce|Ne)&&!r)this.reset();else if(e.eventType&xe)this.reset(),this._timer=l((function(){this.state=ut,this.tryEmit()}),t.time,this);else if(e.eventType&Ce)return ut;return pt},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===ut&&(e&&e.eventType&Ce?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=he(),this.manager.emit(this.options.event,this._input)))}}),p(ee,X,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[nt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&at)}}),p(te,X,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ie|ze,pointers:1},getTouchAction:function(){return Y.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Ie|ze)?t=e.overallVelocity:n&Ie?t=e.overallVelocityX:n&ze&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&pe(t)>this.options.velocity&&e.eventType&Ce},emit:function(e){var t=G(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),p(ne,V,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[tt]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),e.eventType&xe&&0===this.count)return this.failTimeout();if(i&&r&&n){if(e.eventType!=Ce)return this.failTimeout();var s=!this.pTime||e.timeStamp-this.pTime<t.interval,o=!this.pCenter||z(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,o&&s?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=l((function(){this.state=ut,this.tryEmit()}),t.interval,this),at):ut}return pt},failTimeout:function(){return this._timer=l((function(){this.state=pt}),this.options.interval,this),pt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ut&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ie.VERSION="2.0.8",ie.defaults={domEvents:!1,touchAction:Je,enable:!0,inputTarget:null,inputClass:null,preset:[[ee,{enable:!1}],[K,{enable:!1},["rotate"]],[te,{direction:Ie}],[Y,{direction:Ie},["swipe"]],[ne],[ne,{event:"doubletap",taps:2},["tap"]],[J]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};re.prototype={set:function(e){return ae(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,i=this.recognizers,r=t.curRecognizer;(!r||r&&r.state&ut)&&(r=t.curRecognizer=null);for(var s=0;s<i.length;)n=i[s],2===t.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&n.state&(at|lt|ct)&&(r=t.curRecognizer=n),s++}},get:function(e){if(e instanceof V)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(c(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(c(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=_(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==a&&t!==a){var n=this.handlers;return u(w(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==a){var n=this.handlers;return u(w(e),(function(e){t?n[e]&&n[e].splice(_(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&oe(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&se(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},ae(ie,{INPUT_START:xe,INPUT_MOVE:Se,INPUT_END:Ce,INPUT_CANCEL:Ne,STATE_POSSIBLE:ot,STATE_BEGAN:at,STATE_CHANGED:lt,STATE_ENDED:ct,STATE_RECOGNIZED:ut,STATE_CANCELLED:dt,STATE_FAILED:pt,DIRECTION_NONE:ke,DIRECTION_LEFT:Te,DIRECTION_RIGHT:Le,DIRECTION_UP:Pe,DIRECTION_DOWN:Ae,DIRECTION_HORIZONTAL:Ie,DIRECTION_VERTICAL:ze,DIRECTION_ALL:De,Manager:re,Input:N,TouchAction:U,TouchInput:F,MouseInput:O,PointerEventInput:R,TouchMouseInput:j,SingleTouchInput:q,Recognizer:V,AttrRecognizer:X,Tap:ne,Pan:Y,Swipe:te,Pinch:K,Rotate:ee,Press:J,on:g,off:v,each:u,merge:fe,extend:me,assign:ae,inherit:p,bindFn:h,prefixed:S}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=ie,void 0===(i=function(){return ie}.call(t,n,t,e))||(e.exports=i)}(window,document)},875:(e,t,n)=>{"use strict";var i=n(877);!function(e){e.fn.slideShow=function(t){if(e(this).length<=0)return!1;var n=e.extend({},e.fn.slideShow.defaults,t),r=function(e,t){this.options=t,this.webpSupport=document.getElementsByTagName("html")[0].classList.contains("webp"),this.galleryElm=e,this.galleryID="undefined"!==e.attr("id")?e.attr("id"):this.generateBlockID(),this.blockClass=t.blockClass,this.contentBlockElm=this.galleryElm.find(t.contentBlockElm),this.photoListElm=this.contentBlockElm.find(t.photoListElm),this.photoItems=this.photoListElm.find(t.photoItemElm),this.photoPrevElm=this.contentBlockElm.find(t.photoPrevElm),this.photoNextElm=this.contentBlockElm.find(t.photoNextElm),this.navBlockWrapperElm=this.galleryElm.find(t.navBlockWrapperElm),this.navBlockContentElm=this.navBlockWrapperElm.find(t.navBlockContentElm),this.bulletListElm=null,this.navBullets=null,this.navBlockPrevElm=this.navBlockWrapperElm.find(t.navBlockPrevElm),this.navBlockNextElm=this.navBlockWrapperElm.find(t.navBlockNextElm),this.androidStockBrowser=this.detectAndroidStockBrowser(),this.images=this.loadSlideShowImages(),this.imagesTotal=this.images.length,this.currentImageIndex=0,this.reelPosition=this.imagesTotal,this.startOriginal=this.imagesTotal,this.startClones=2*this.imagesTotal,this.photoListElmWidth=null,this.reelWidth=null,this.reelContainerWidth=null,this.reelItemSize=null,this.reelItemMargin=null,this.reelEnd=!1,this.reelDirection=this.returnReelDirection(),this.lastReelDirection=this.reelDirection,this.autoplay=!1,this.autoplayFlag=!1,this.animationFlag=!1,this.navAnimationFlag=!1,this.initFlag=!1,this.eventsBound=!1,this.maxBullets=t.maxBullets,this.initAction="default"};r.prototype.generateBlockID=function(){var e,t;for(e="",t=0;t<10;t++)e+=Math.floor(16*Math.random()).toString(16).toUpperCase();return e},r.prototype.detectAndroidStockBrowser=function(){var e=navigator.userAgent;return e.indexOf("Mozilla/5.0")>-1&&e.indexOf("Android ")>-1&&e.indexOf("AppleWebKit")>-1&&e.indexOf("Version")>-1},r.prototype.tooFastClick=function(){return this.animationFlag},r.prototype.tooFastClickNav=function(){return this.navAnimationFlag},r.prototype.getSourceType=function(e){return e.substr(e.lastIndexOf(".")+1)},r.prototype.getPictureSources=function(t){let n=new Array;return e(t).find("source").each((function(){n.push({type:e(this).attr("type"),srcset:e(this).attr("srcset")})})),n},r.prototype.loadSlideShowImages=function(){var t=this,n=[];return this.photoItems.each((function(){var i=e(this).find(t.options.photoItemLinkElm),r=e(i).attr("href");n.push({imageId:r.substring(r.lastIndexOf("/")+1,r.lastIndexOf(".")),imageSrc:r,imageTitle:e(i).attr("data-litebox-text"),imageRatio:e(this).attr("class").replace(t.options.slideshowPhotoClass,"").replace("active","").trim(),imageThumbnail:r,sourceType:t.getSourceType(r),sources:t.getPictureSources(e(this))})})),n},r.prototype.returnReelDirection=function(){var e=window.getComputedStyle(this.navBlockWrapperElm.get(0),":after").getPropertyValue("content");return e.indexOf("horizontal")>=0?"horizontal":e.indexOf("vertical")>=0?"vertical":e.indexOf("bullets")>=0?"bullets":void 0},r.prototype.getReelDirection=function(){var e=window.getComputedStyle(this.navBlockWrapperElm.get(0),":after").getPropertyValue("content");e.indexOf("horizontal")>=0?this.reelDirection="horizontal":e.indexOf("vertical")>=0?this.reelDirection="vertical":e.indexOf("bullets")>=0&&(this.reelDirection="bullets")},r.prototype.galleryNotEmpty=function(){s.options.isEshopGallery||this.galleryElm.addClass("slideshow"),"default"===this.initAction&&this.photoListElm.find("li.active").length<=0?this.photoListElm.find("li").eq(this.currentImageIndex).addClass("active"):"add"!==this.initAction&&"delete"!==this.initAction||(this.photoListElm.find("li.active").removeClass("active"),this.photoListElm.find("li").eq(this.currentImageIndex).addClass("active"))},r.prototype.galleryEmpty=function(){this.galleryElm.find(".clone").remove(),this.clearReel(),s.options.isEshopGallery||this.galleryElm.removeClass("slideshow")},r.prototype.clearReel=function(){this.navBlockContentElm.removeClass("reel"),this.navBlockContentElm.removeClass("infinite"),null!==this.bulletListElm&&(this.bulletListElm.css("margin",""),this.bulletListElm.css("width",""),this.bulletListElm.css("height",""),this.bulletListElm.find("li").removeClass("large"))},r.prototype.hideReelControls=function(){this.navBlockWrapperElm.removeClass("show-arrows")},r.prototype.showReelControls=function(){this.navBlockWrapperElm.addClass("show-arrows")},r.prototype.runAutoplay=function(){if(this.options.autoplay&&!this.options.isCMS){var e=this;e.autoplay=setInterval((function(){e.nextImage(e.options.isEshopGallery?"fade":"slidefromright",!1)}),e.options.timeout)}},r.prototype.stopAutoplay=function(){this.options.autoplay&&!1!==this.autoplay&&(clearInterval(this.autoplay),this.autoplay=!1,this.autoplayFlag=!1)},r.prototype.nextImage=function(e,t){this.currentImageIndex=this.currentImageIndex===this.imagesTotal-1?0:this.currentImageIndex+1,s.options.autoShiftReel&&"bullets"!==s.reelDirection&&!t?s.autoShiftReel():"bullets"===s.reelDirection&&s.navBlockContentElm.hasClass("infinite")&&s.shiftBulletsForward(),this.changePhoto(this.currentImageIndex,e)},r.prototype.prevImage=function(e,t){this.currentImageIndex=0===this.currentImageIndex?this.imagesTotal-1:this.currentImageIndex-1,this.changePhoto(this.currentImageIndex,e),"bullets"===s.reelDirection&&s.navBlockContentElm.hasClass("infinite")&&s.shiftBulletsBackward()},r.prototype.shiftReelForward=function(){this.navAnimationFlag=!0;var e=this.bulletListElm,t=this.reelPosition,n=this.reelItemSize+this.reelItemMargin,i=null,r=0,s=e.find("li.clicked");s.length?(i=s.index(),r=Math.abs(i-t),s.hasClass("clone")&&i>this.imagesTotal?(e.css("horizontal"===this.reelDirection?"marginLeft":"marginTop",(t-this.imagesTotal)*n*-1+"px"),t=t-this.imagesTotal+r+1,this.reelPosition=t):(t=i+1,this.reelPosition=t),s.removeClass("clicked")):t===this.startClones?(e.css("horizontal"===this.reelDirection?"marginLeft":"marginTop",this.startOriginal*n*-1+"px"),t=this.reelPosition=this.startOriginal+1):t=this.reelPosition+=1;"horizontal"===this.reelDirection?e.animate({marginLeft:t*n*-1},150,(function(){})):e.animate({marginTop:t*n*-1},150,(function(){}))},r.prototype.shiftReelBackward=function(){this.navAnimationFlag=!0;var e=this.bulletListElm,t=this.reelPosition,n=this.reelItemSize+this.reelItemMargin,i=this.reelItemMargin,r=e.find("li.clicked");r.length?(t=r.index()-1,this.reelPosition=t,r.removeClass("clicked")):0===this.reelPosition?(e.css("horizontal"===this.reelDirection?"marginLeft":"marginTop",this.startOriginal*n*-1+i+"px"),t=this.reelPosition=this.startOriginal-1):t=this.reelPosition-=1;"horizontal"===this.reelDirection?e.animate({marginLeft:t*n*-1},150,(function(){})):e.animate({marginTop:t*n*-1},150,(function(){}))},r.prototype.autoShiftReel=function(){for(var e=this.reelItemSize,t=this.reelItemMargin,n=this.reelContainerWidth,i=1,r=e*this.imagesTotal+t*(this.imagesTotal-1);(i+1)*(e+t)<n;)i++;this.currentImageIndex===i&&!1===this.autoplayFlag&&(this.autoplayFlag=!0),this.autoplayFlag&&r>n&&this.shiftReelForward()},r.prototype.shiftBulletsForward=function(t){void 0===t&&(t=1),this.navAnimationFlag=!0;var n=this.bulletListElm,i=this.reelPosition,r=(parseInt(this.bulletListElm.find("li:not(.active):not(.large)").width()),parseInt(this.bulletListElm.find("li:not(.active):not(.large)").css("marginLeft")),parseInt(this.bulletListElm.find("li.active").width()),parseInt(this.bulletListElm.find("li.active").css("marginLeft")),this);if(r.reelPosition===r.startClones&&1===t||(r.reelPosition===r.startClones-1||r.reelPosition===r.startClones)&&2===t){i=r.reelPosition=r.startOriginal-(r.startClones-r.reelPosition)+t;var s=0,o=0,a=0;this.bulletListElm.find("li").each((function(){a=parseInt(e(this).width())+parseInt(e(this).css("marginLeft"))+parseInt(e(this).css("marginRight")),o++<i-t&&(s+=a)})),n.css("marginLeft",-1*s+"px")}else i=r.reelPosition+=t;var l=0;o=0;this.bulletListElm.find("li").each((function(){a=parseInt(e(this).width())+parseInt(e(this).css("marginLeft"))+parseInt(e(this).css("marginRight")),o++<r.reelPosition&&(l+=a)})),n.animate({marginLeft:-1*l},150,(function(){}))},r.prototype.shiftBulletsBackward=function(t){void 0===t&&(t=1),this.navAnimationFlag=!0;var n=this.bulletListElm,i=this.reelPosition,r=(this.reelItemSize,this.reelItemMargin,this);if(0===r.reelPosition&&1===t||r.reelPosition<=1&&2===t){i=r.reelPosition=r.startOriginal+r.reelPosition-t;var s=0,o=0,a=0;this.bulletListElm.find("li").each((function(){a=parseInt(e(this).width())+parseInt(e(this).css("marginLeft"))+parseInt(e(this).css("marginRight")),o++<i+t&&(s+=a)})),n.css("marginLeft",-1*s+"px")}else i=this.reelPosition-=t;var l=0;o=0;this.bulletListElm.find("li").each((function(){a=parseInt(e(this).width())+parseInt(e(this).css("marginLeft"))+parseInt(e(this).css("marginRight")),o++<r.reelPosition&&(l+=a)})),n.animate({marginLeft:-1*l},150,(function(){}))},r.prototype.changePhoto=function(t,n){var r=this;if(this.animationFlag=!0,parseInt(t)!==parseInt(e(r.photoListElm).find("li.active").index())){if(r.currentImageIndex=parseInt(t),void 0===n||"slidefromright"!==n&&"slidefromleft"!==n&&"fade"!==n)e(r.photoListElm).addClass("switching"),e(r.bulletListElm).find("li").removeClass("active"),e(r.bulletListElm).find('li[data-image-id="'+t+'"]').addClass("active"),e(r.photoListElm).find("li").css("visibility","hidden").css("position","absolute"),e(r.photoListElm).find("li.active").removeClass("active"),e(r.photoListElm).find("li").eq(parseInt(t)).addClass("active"),e(r.photoListElm).find("li").eq(parseInt(t)).css("visibility","visible"),e(r.photoListElm).find("li").eq(parseInt(t)).css("position","static"),e(r.photoListElm).removeClass("switching"),r.animationFlag=!1,r.navAnimationFlag=!1;else{var s=e(r.photoListElm).height();e(r.photoListElm).css("height",s);var o=e(r.photoListElm).find("li.active"),a=e(r.photoListElm).find("li").eq(parseInt(t)),l=(e(o).height(),e(a).height());if(s!==l&&e(r.photoListElm).animate({height:l},{duration:300,step:function(){(0,i.Lv)(r.galleryElm)}},(function(){})),"slidefromright"===n?(e(o).css("position","absolute").css("left","0").css("top","0"),e(o).animate({left:"-120%"},300,(function(){e(o).removeClass("active"),e(o).css("position","").css("left","").css("top","")})),e(a).css("left","120%").css("opacity",1).css("visibility","visible"),e(a).animate({left:"0%"},300,(function(){e(a).addClass("active").css("opacity","").css("left","").css("position",""),r.animationFlag=!1,r.navAnimationFlag=!1,e(r.photoListElm).css("height",""),(0,i.Lv)(r.galleryElm)}))):"slidefromleft"===n?(e(o).css("position","absolute").css("left","0").css("top","0"),e(o).animate({left:"120%"},300,(function(){e(o).removeClass("active"),e(o).css("position","").css("left","").css("top","")})),e(a).css("left","-120%").css("opacity",1).css("visibility","visible"),e(a).animate({left:"0%"},300,(function(){e(a).addClass("active").css("opacity","").css("left","").css("position",""),r.animationFlag=!1,r.navAnimationFlag=!1,e(r.photoListElm).css("height",""),(0,i.Lv)(r.galleryElm)}))):"fade"===n&&(e(o).css("position","absolute").css("left",0).css("top",0).css("opacity",1),e(o).animate({opacity:0},300,(function(){})),e(a).css("position","absolute").css("left",0).css("top",0).css("opacity",0).css("visibility","visible"),e(a).animate({opacity:1},300,(function(){e(o).removeClass("active").css("position","").css("left","").css("top","").css("opacity","").css("visibility","").attr("style",""),e(a).addClass("active").css("opacity","").css("left","").css("top","").css("position","").css("visibility","").attr("style",""),r.animationFlag=!1,r.navAnimationFlag=!1,e(r.photoListElm).css("height",""),(0,i.Lv)(r.galleryElm)}))),e(r.bulletListElm).find("li").removeClass("active"),e(r.bulletListElm).find('li[data-image-id="'+t+'"]').addClass("active"),r.navBlockContentElm.hasClass("infinite")){e(r.bulletListElm).find("li").removeClass("large");var c=(r.currentImageIndex+1)%r.imagesTotal,u=r.currentImageIndex-1<0?r.imagesTotal-1:r.currentImageIndex-1;r.bulletListElm.find('li[data-image-id="'+c+'"]').addClass("large"),r.bulletListElm.find('li[data-image-id="'+u+'"]').addClass("large")}}(0,i.Lv)(r.galleryElm)}},r.prototype.createClones=function(){for(var t="",n=null,i=0;i<this.images.length;i++)n=this.images[i],e(n).find("picture")?(t+='<li class="clone '+n.imageRatio+(i===this.currentImageIndex?" active":"")+'" data-image-id="'+i+'"><picture>',n.sources.forEach((e=>{t+='<source type="'+e.type+'" srcset="'+e.srcset+'" sizes="100px" alt="">'})),t+='<img src="'+n.imageThumbnail+'" alt=""></picture></li>'):t+='<li class="clone '+n.imageRatio+(i===this.currentImageIndex?" active":"")+'" data-image-id="'+i+'"><img src="'+n.imageThumbnail+'" alt=""></li>';e(this.bulletListElm).prepend(t),e(this.bulletListElm).append(t)},r.prototype.prepareReel=function(t){if("bullets"!==this.reelDirection){this.navBlockContentElm.removeClass("bullets"),this.getDimensions(),this.bulletListElm.find("li").removeClass("large");var n=this.reelItemSize,i=this.reelItemMargin,r=n*this.imagesTotal+i*(this.imagesTotal-1),s=this.reelContainerWidth,o=0;r<=s?(this.hideReelControls(),this.clearReel(),this.navBlockContentElm.addClass("centered")):(this.navBlockContentElm.hasClass("infinite")&&(this.navBlockContentElm.removeClass("infinite"),this.reelPosition+=2),this.showReelControls(),this.navBlockContentElm.addClass("reel"),this.navBlockContentElm.removeClass("centered"),r=n*(3*this.imagesTotal)+i*(3*this.imagesTotal-1),o=this.reelPosition*(n+i)*-1,this.bulletListElm.css("horizontal"===this.reelDirection?"width":"height",r+"px"),this.bulletListElm.css("horizontal"===this.reelDirection?"marginTop":"marginLeft",""),this.bulletListElm.css("horizontal"===this.reelDirection?"marginLeft":"marginTop",o+"px"),"vertical"===this.reelDirection?this.bulletListElm.css("width",""):this.bulletListElm.css("height","")),this.getDimensions()}else{this.navBlockContentElm.addClass("bullets"),this.getDimensions();n=this.reelItemSize,i=2*this.reelItemMargin,s=this.reelContainerWidth,o=0,r=0;if(this.imagesTotal<=this.maxBullets)this.clearReel(),this.navBlockContentElm.addClass("centered");else{this.navBlockContentElm.hasClass("reel")||!this.navBlockContentElm.hasClass("infinite")||"delete"===this.initAction||"add"===this.initAction?(this.bulletListElm.find("li.clicked").length?this.reelPosition=this.bulletListElm.find("li.clicked").index()-2:this.reelPosition-=2,this.navBlockContentElm.removeClass("reel")):"resize"!==t&&(this.bulletListElm.find("li.active").length?this.reelPosition=this.bulletListElm.find("li.original.active").index()-2:this.reelPosition-=2),this.navBlockContentElm.addClass("infinite");var a=(this.currentImageIndex+1)%this.imagesTotal,l=this.currentImageIndex-1<0?this.imagesTotal-1:this.currentImageIndex-1;this.bulletListElm.find('li[data-image-id="'+a+'"]').addClass("large"),this.bulletListElm.find('li[data-image-id="'+l+'"]').addClass("large"),o=0;var c=0,u=0,d=this;this.bulletListElm.find("li").each((function(){u=parseInt(e(this).width())+parseInt(e(this).css("marginLeft"))+parseInt(e(this).css("marginRight")),r+=u,c++<d.reelPosition&&(o+=u)})),this.bulletListElm.css("width",r+"px"),this.bulletListElm.css("marginTop",""),this.bulletListElm.css("marginLeft",-1*o+"px"),this.bulletListElm.css("height","")}this.getDimensions(),this.lastReelDirection=this.reelDirection}},r.prototype.buildNavReel=function(){e(this.navBlockWrapperElm).find("ul").length>0&&e(this.navBlockWrapperElm).find("ul").remove();for(var t=this.images.length,i=e("<ul></ul>"),r="",s=null,o=this.currentImageIndex,a=0;a<t;a++)s=this.images[a],e(s).find("picture")?(r='<li class="'+s.imageRatio+" original"+(a===o?" active":"")+'" data-image-id="'+a+'"><picture>',s.sources.forEach((e=>{r+='<source type="'+e.type+'" srcset="'+e.srcset+'" sizes="100px" alt="">'})),r+='<img src="'+s.imageThumbnail+'" alt=""></picture></li>',e(i).append(r)):e(i).append('<li class="'+s.imageRatio+" original"+(a===o?" active":"")+'" data-image-id="'+a+'"><img src="'+s.imageThumbnail+'" alt=""></li>');if(e(this.navBlockContentElm).append(i),this.bulletListElm=this.navBlockContentElm.find(n.bulletListElm),this.navBullets=this.bulletListElm.find(n.bulletItemElm),this.createClones(),this.imagesTotal>this.maxBullets){var l=(this.currentImageIndex+1)%this.imagesTotal,c=this.currentImageIndex-1<0?this.imagesTotal-1:this.currentImageIndex-1;this.bulletListElm.find('li[data-image-id="'+l+'"]').addClass("large"),this.bulletListElm.find('li[data-image-id="'+c+'"]').addClass("large")}},r.prototype.getDimensions=function(){this.getReelDirection(),"horizontal"===this.reelDirection?(this.reelItemSize=parseInt(this.bulletListElm.find("li.original").width()),this.reelItemMargin=parseInt(e(this.navBullets).eq(1).css("marginLeft"))):"vertical"===this.reelDirection?(this.reelItemSize=parseInt(this.bulletListElm.find("li.original").height()),this.reelItemMargin=parseInt(e(this.navBullets).eq(1).css("marginTop"))):(this.reelItemSize=parseInt(this.bulletListElm.find("li:not(.active):not(.large)").width()),this.reelItemMargin=parseInt(this.bulletListElm.find("li:not(.active):not(.large)").css("marginLeft"))),this.reelWidth=this.reelItemSize*this.imagesTotal+this.reelItemMargin*(this.imagesTotal-1),this.reelContainerWidth="horizontal"===this.reelDirection?this.navBlockContentElm.outerWidth(!0):this.navBlockContentElm.outerHeight(!0),this.photoListElmWidth=this.photoListElm.width()},r.prototype.bindControls=function(){var t=this;if(this.galleryElm.off("mouseenter").on("mouseenter",(function(){t.galleryElm.addClass("hover")})),this.galleryElm.off("mouseleave").on("mouseleave",(function(){t.galleryElm.removeClass("hover")})),this.navBlockNextElm.off(this.options.touchEvents).on(this.options.touchEvents,(function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),t.tooFastClickNav()||(t.stopAutoplay(),t.nextImage("fade",!0),t.shiftReelForward())})),this.navBlockPrevElm.off(this.options.touchEvents).on(this.options.touchEvents,(function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),t.tooFastClickNav()||(t.stopAutoplay(),t.prevImage("fade",!0),t.shiftReelBackward())})),this.photoNextElm.off(this.options.touchEvents).on(this.options.touchEvents,(function(){t.tooFastClick()||(t.stopAutoplay(),t.nextImage("slidefromright",!1))})),this.photoPrevElm.off(this.options.touchEvents).on(this.options.touchEvents,(function(){t.tooFastClick()||(t.stopAutoplay(),t.prevImage("slidefromleft",!1))})),e(document).on("keydown",(function(n){var r=e(t.navBlockContentElm).hasClass("reel"),s=37,o=39,a=(0,i.PZ)(t.galleryElm);r&&(e(t.bulletListElm).width()>e(t.bulletListElm).height()?(s=37,o=39):(s=38,o=40)),a>.3&&(n.keyCode===s?t.tooFastClick()||(t.stopAutoplay(),r?(t.prevImage("fade",!0),t.shiftReelBackward()):t.prevImage("slidefromleft",!1)):n.keyCode===o&&(t.tooFastClick()||(t.stopAutoplay(),r?(t.nextImage("fade",!0),t.shiftReelForward()):t.nextImage("slidefromright",!1))))})),this.photoItems.on("click",(function(){t.stopAutoplay()})),e(t.bulletListElm).find("li").each((function(){e(this).on("click",(function(){if(t.bulletListElm.find("li").removeClass("clicked"),e(this).addClass("clicked"),t.stopAutoplay(),"block"===e(this).find("img").css("display")){var n=parseInt(e(this).attr("data-image-id"));t.changePhoto(n,"fade")}else{n=parseInt(e(this).attr("data-image-id"));var i=parseInt(e(t.navBlockWrapperElm).find("li.active").attr("data-image-id")),r="",s=1;0===n&&i===t.imagesTotal-1&&t.imagesTotal>2?r="slidefromright":0===i&&n===t.imagesTotal-1&&t.imagesTotal>2?r="slidefromleft":n<2&&i>t.imagesTotal-1-2&&t.imagesTotal>4?(r="slidefromright",s=2):i<2&&n>t.imagesTotal-1-2&&t.imagesTotal>4?(r="slidefromleft",s=2):n>i?(r="slidefromright",s=n-i):(r="slidefromleft",s=i-n),t.changePhoto(n,r),t.navBlockContentElm.hasClass("infinite")&&("slidefromleft"===r?t.shiftBulletsBackward(s):"slidefromright"===r&&t.shiftBulletsForward(s))}}))})),this.options.isCMS)return!1;var n=new Hammer(t.galleryElm.get(0).querySelector(t.options.photoListElm),{touchAction:"pan-y"}),r=null,s=null,o=null,a=null,l=null,c=null,u=null,d=null,p=null,h=null,m=null,f=null,g=null,v=null,y=null,b=null,w=null,_=null,E=!1,x=0,S=300;if(n.add(new Hammer.Pan({threshold:0,pointers:0,direction:Hammer.DIRECTION_ALL})),n.on("panstart panleft panright pancancel panend ",(function(n){if("bullets"===t.reelDirection)if("panstart"===n.type){if(t.animationFlag||E)return void(E=!0);t.stopAutoplay(),t.galleryElm.addClass("dragged"),x=0,t.currentImageIndex,r=0===t.currentImageIndex?t.imagesTotal-1:t.currentImageIndex-1,s=t.currentImageIndex===t.imagesTotal-1?0:t.currentImageIndex+1,o=e(t.photoListElm).find("li.active"),a=e(t.photoListElm).find("li").eq(parseInt(r)),l=e(t.photoListElm).find("li").eq(parseInt(s)),c=parseInt(e(t.photoListElm).width()),u=parseInt(o.outerHeight()),d=u,p=e(t.photoListElm).find("li").eq(parseInt(r)).height(),h=e(t.photoListElm).find("li").eq(parseInt(s)).height(),m=-1*c,f=c,g=null,v=null,y=null,b=null,w=null,_=null,e(t.photoListElm).addClass("disable-pointer-events"),e(t.photoListElm).css("height",u),e(o).css("position","absolute").css("left","0").css("top","0"),e(a).css("position","absolute").css("left",m).css("top","0").css("opacity",1).css("visibility","visible").css("z-index",1),e(l).css("position","absolute").css("left",f).css("top","0").css("opacity",1).css("visibility","visible").css("z-index",1)}else if("panend"===n.type||"pancancel"===n.type){if(E)return void(E=!1);if(t.galleryElm.removeClass("dragged"),t.photoListElm.removeClass("disable-pointer-events"),(8==n.direction||16==n.direction||24==n.direction)&&0===x)return;if(t.animationFlag=!0,S=Math.abs(n.deltaX)/c*300,Math.abs(n.deltaX)>t.photoListElmWidth/4?(w=!0,parseInt(n.deltaX)<0?(g=-1*c,v=0,y=-2*c,b=h,_="forth"):(g=c,v=2*c,y=0,b=p,_="back")):(g=0,v=c,y=-1*c,b=u,w=!1,_=null),e(o).animate({left:g},S,(function(){w&&(e(o).removeClass("active"),t.currentImageIndex="back"===_?r:s,"back"===_?e(a).addClass("active"):"forth"===_&&e(l).addClass("active")),e(o).css("position","").css("left","").css("top","").css("z-index","").css("visibility","")})),e(a).animate({left:y},S,(function(){e(a).css("opacity","").css("left","").css("position","").css("z-index","").css("visibility",""),(0,i.Lv)(t.galleryElm)})),e(l).animate({left:v},S,(function(){e(l).css("opacity","").css("left","").css("position","").css("z-index","").css("visibility",""),(0,i.Lv)(t.galleryElm)})),e(t.photoListElm).animate({height:b},S,(function(){t.animationFlag=!1,t.navAnimationFlag=!1,e(t.photoListElm).css("height",""),(0,i.Lv)(t.galleryElm)})),w){if(e(t.bulletListElm).find("li").removeClass("active"),e(t.bulletListElm).find('li[data-image-id="'+("back"===_?r:s)+'"]').addClass("active"),t.navBlockContentElm.hasClass("infinite")){e(t.bulletListElm).find("li").removeClass("large");var C=(("back"===_?r:s)+1)%t.imagesTotal,N=("back"===_?r:s)-1<0?t.imagesTotal-1:("back"===_?r:s)-1;t.bulletListElm.find('li[data-image-id="'+C+'"]').addClass("large"),t.bulletListElm.find('li[data-image-id="'+N+'"]').addClass("large")}"forth"===_&&t.navBlockContentElm.hasClass("infinite")?t.shiftBulletsForward():"back"===_&&t.navBlockContentElm.hasClass("infinite")&&t.shiftBulletsBackward()}}else if("panstart"!==n.type){if(t.animationFlag||E)return void(E=!0);d=u+Math.abs(n.deltaX)/c*((parseInt(n.deltaX)<0?h:p)-u),e(t.photoListElm).css("height",d),x=n.deltaX,e(o).css("left",n.deltaX+"px"),e(a).css("left",m+n.deltaX+"px"),e(l).css("left",f+n.deltaX+"px")}})),e("body").hasClass("touched")){var C=new Hammer.Manager(t.bulletListElm.get(0));C.add(new Hammer.Pan({threshold:20,pointers:0})),C.on("pan",(function(e){if("bullets"!==t.returnReelDirection()&&t.navBlockContentElm.hasClass("reel")){var n="horizontal"===t.reelDirection?e.deltaX:e.deltaY;e.isFinal&&(n>0?(t.stopAutoplay(),t.prevImage("fade",!0),t.shiftReelBackward()):n<0&&(t.stopAutoplay(),t.nextImage("fade",!0),t.shiftReelForward()))}}))}},r.prototype.unbindEvents=function(){var t=this;e(document).off("wnd-redraw."+t.galleryID,".ez"),e(document).off("wnd-redraw-done."+t.galleryID,".c"),e(document).off("wnd-dynamic-content-change."+t.galleryID,String("#"+t.galleryID)),e(document).off("wnd-redraw."+t.galleryID),e(window).off("resize."+t.galleryID)},r.prototype.bindEvents=function(){var t=this;if(!t.eventsBound){e("body").hasClass("isIE")&&(document.ondragstart=function(){return!1});var n=(0,i.Ds)((function(n){var i=n.target;"IMG"!==i.tagName&&(e(i).hasClass(t.options.slideshowPhotoClass)&&(i=t.options.isEshopGallery?e(i).closest(".prd-gal"):e(i).closest(".b-gal.b")),e(i).hasClass(t.blockClass)?(e(t.galleryElm).find(".clone").remove(),t.reload(t.galleryID),t.eventsBound=!0):e(i).hasClass(t.blockClass)||(e(t.galleryElm).find(".clone").remove(),t.unbindEvents(),t={}))}),500);e(document).off("wnd-redraw."+t.galleryID,String("#"+t.galleryID)),e(document).on("wnd-redraw."+t.galleryID,String("#"+t.galleryID),n),e(window).on("resize."+t.galleryID,(function(){t.resizeAction()}))}},r.prototype.reload=function(t){this.stopAutoplay(),this.galleryElm=e(document).find("#"+t),this.contentBlockElm=this.galleryElm.find(n.contentBlockElm),this.photoListElm=this.contentBlockElm.find(n.photoListElm),this.photoItems=this.photoListElm.find(n.photoItemElm),this.photoPrevElm=this.contentBlockElm.find(n.photoPrevElm),this.photoNextElm=this.contentBlockElm.find(n.photoNextElm),this.navBlockWrapperElm=this.galleryElm.find(n.navBlockWrapperElm),this.navBlockContentElm=this.navBlockWrapperElm.find(n.navBlockContentElm),this.bulletListElm=null,this.navBullets=null,this.navBlockPrevElm=this.navBlockWrapperElm.find(n.navBlockPrevElm),this.navBlockNextElm=this.navBlockWrapperElm.find(n.navBlockNextElm),this.images=this.loadSlideShowImages(),this.imagesTotal>this.images.length?this.initAction="delete":this.imagesTotal<this.images.length&&(this.initAction="add"),this.imagesTotal=this.images.length,this.reelPosition=this.imagesTotal,this.startOriginal=this.imagesTotal,this.startClones=2*this.imagesTotal,this.reelEnd=!1,this.reelDirection=this.returnReelDirection(),this.autoplay=!1,this.animationFlag=!1,this.navAnimationFlag=!1,this.initFlag=!1,this.currentImageIndex="default"===this.initAction?this.currentImageIndex:0;this.init()},r.prototype.resizeAction=function(){var e=this;e.imagesTotal>1&&(e.getReelDirection(),e.images.length>1&&e.prepareReel("resize"))},r.prototype.init=function(){if(this.initFlag)return!1;this.initFlag=!0;var t=this;if(setTimeout((function(){t.initFlag=!1}),1e3),this.images.length<=1?this.galleryEmpty():(this.galleryNotEmpty(),this.buildNavReel(),this.getDimensions(),this.prepareReel(),this.bindControls(),this.runAutoplay()),this.bindEvents(),this.initAction="default",this.options.isEshopGallery){var n=e(document).find(this.options.eshopDetailElm);n[0]&&(0,i.Lv)(n[0])}else(0,i.Lv)(this.galleryElm)};var s=new r(e(this),n);s.init()},e.fn.slideShow.defaults={touchEvents:"click",autoplay:!1,timeout:"5000",cover:!1,isCMS:!1,autoShiftReel:!0,isEshopGallery:!1,blockClass:"prd-gal",eshopDetailElm:".b-e-d",contentBlockElm:".prd-gal-c",photoListElm:".prd-gal-list",photoItemElm:".prd-gal-photo",photoPrevElm:".arrow-prev",photoNextElm:".arrow-next",photoItemLinkElm:".prd-gal-link",photoItemImageDivElm:".prd-gal-img",photoItemImageElm:"img",navBlockWrapperElm:".prd-gal-nav",navBlockContentElm:".prd-gal-nav-c",bulletListElm:"ul",bulletItemElm:"li",navBlockPrevElm:".prd-gal-nav-arrow-prev",navBlockNextElm:".prd-gal-nav-arrow-next",slideshowPhotoClass:"prd-gal-photo",maxBullets:5}}(jQuery)},710:(e,t,n)=>{"use strict";var i=n(877);const r=(e,t)=>{e.classList.remove("animate"),t.style.height=""},s=(e,t,n)=>{const s=e.querySelector(t),o=e.querySelector(n);if(!(0,i.GI)()){const e=s.querySelector(".it-c");0===e.textContent?.length&&(e.textContent=" ")}o.ontransitionend=()=>{r(e,o)},o.ontransitioncancel=()=>{r(e,o)},s.addEventListener("click",(t=>{(0,i.C6)(t);const n=o.children[0].offsetHeight;(0,i.GI)()&&(0,i.Lv)(e),e.classList.contains("close")?(o.style.height=0,e.classList.replace("close","open"),e.classList.add("animate"),setTimeout((()=>{o.style.height=`${n}px`}),10)):(o.style.height=`${n}px`,setTimeout((()=>{e.classList.replace("open","close"),e.classList.add("animate"),o.style.height=0}),10))}))};function o(e,t,n,i){const r=e.querySelectorAll(t);null!=r&&r.forEach((e=>{s(e,n,i)}))}(0,i.Cd)((()=>{const e=[...document.querySelectorAll(".mt-faq")];e.forEach((e=>{o(e,".mt-faq-item",".mt-faq-title",".mt-faq-text")})),(0,i.GI)()&&e.forEach((e=>{e.querySelector(".mt-faq-title").click()})),document.body.addEventListener("wnd-redraw",(e=>{e.target.classList.contains("mt-faq-item")&&setTimeout((()=>{s(e.target,".mt-faq-title",".mt-faq-text")}),100)})),document.body.addEventListener("wnd-redraw",(e=>{e.target.classList.contains("mt-faq")&&setTimeout((()=>{o(e.target,".mt-faq-item",".mt-faq-title",".mt-faq-text"),(0,i.GI)()&&null===e.target.closest(".pr")&&e.target.querySelector(".mt-faq-title").click()}),100)}))}))},156:(e,t,n)=>{"use strict";var i=n(877);function r(e){let t,n="",i="",r=e.querySelector(".s-bg-l");const s=e.querySelector(".s-bg");return r||(r=e),r.classList.contains("wnd-background-solid")?(t="solid",n=getComputedStyle(r).backgroundColor,"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n&&void 0!==n||(n=getComputedStyle(e).backgroundColor)):r.classList.contains("wnd-background-image")?t="image":r.classList.contains("wnd-background-video")?t="video":r.classList.contains("wnd-background-pattern")?t="pattern":"s-bg-l"===r.getAttribute("class")?(t="solid",n=getComputedStyle(r).backgroundColor,i=getComputedStyle(s).backgroundColor,"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n&&void 0!==n||(n=getComputedStyle(e).backgroundColor,"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n&&void 0!==n||"rgba(0, 0, 0, 0)"===i&&"transparent"===i&&void 0===i||(n=i))):r.classList.contains("s-bg-l")&&(t="solid",n=getComputedStyle(r).backgroundColor),"solid"===t&&(void 0!==n&&"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n||(n=getComputedStyle(document.body).backgroundColor,void 0!==n&&"rgba(0, 0, 0, 0)"!==n&&"transparent"!==n||(n=getComputedStyle(document.querySelector(".wnd-page")).backgroundColor))),{backgroundType:t,backgroundColor:n}}function s(e){return"#fff"===e||"white"===e||"rgb(255, 255, 255)"===e}function o(){const e=document.querySelector(".l-m .s:last-child"),t=document.querySelector(".s-f"),n=t.getAttribute("data-wn-border-element"),i=document.body.classList.contains("l-d-border");let o;if(e&&t&&void 0!==n){const a=r(e),l=r(t);o="solid"===a.backgroundType&&"solid"===l.backgroundType&&!i&&a.backgroundColor===l.backgroundColor||i&&s(a.backgroundColor)&&s(l.backgroundColor)?"add":"remove",function(e,t,n){"section"!==t?"add"===n?e.querySelector(`.${t}`)?.classList.add("border-top"):e.querySelector(`.${t}`)?.classList.remove("border-top"):"add"===n?e.classList.add("border-top"):e.classList.remove("border-top")}(t,n,o)}}function a(){!function(){if(document.body.classList.contains("wnd-fe")){const e=document.querySelectorAll(".s-f-cr > .it"),t=document.querySelector(".sf"),n=document.querySelector(".s-f-lang"),i=document.querySelector(".s-f-ccy"),r=document.querySelector(".s-f-l-w"),s=document.querySelector(".sf-cbr");let o=!0,a=!0;if(e.length&&[].forEach.call(e,(e=>{const t=e.querySelector("span.it-c");t&&""===t.innerHTML.trim()?e.classList.add("empty"):o=!1})),""===t.querySelector(".sf-c").innerHTML.trim()?t.classList.add("empty"):a=!1,!0===o&&!0===a&&""===n.innerHTML.trim()&&""===i.innerHTML.trim()&&!s){r.style.display="none";const e=document.querySelector(".s-f-map"),t=document.querySelector(".s-f-edit");e&&(e.querySelector(".s-bg-w").style.bottom="0px",document.body.classList.contains("l-boxed")&&(e.querySelector(".s-w").style.paddingBottom="45px")),document.body.classList.contains("l-boxed")&&t&&(t.querySelector(".s-bg").style.bottom="0px",t.querySelector(".s-w").style.paddingBottom="45px")}}}(),function(){const e=document.querySelector(".s-f-l-w");if("none"!==getComputedStyle(e).display){const t=document.querySelector(".s-f-map"),n=document.querySelector(".s-f-edit"),i=e.offsetHeight;t&&(t.querySelector(".s-bg-w").style.bottom=`${i}px`),document.body.classList.contains("l-boxed")&&n&&(n.querySelector(".s-bg").style.bottom=`${i}px`)}}();let e,t=0,n=0;if(document.querySelector(".s-f-map")){const i=getComputedStyle(document.querySelector(".s-f-col-map")).clear;"both"!==i?(document.querySelectorAll(".s-f-col").forEach((i=>{if(n<2){const n=getComputedStyle(i);e=i.offsetHeight+parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e>t&&(t=e)}n++})),document.querySelector(".s-f-col-map").style.height=`${t}px`):"both"===i&&(document.querySelector(".s-f-col-map").style.height="")}}function l(){const e=document.querySelector(".l-f"),t=document.querySelector(".s-f"),n=t.classList.toString().split(" ").filter((e=>e.startsWith("sc")));if("relative"===getComputedStyle(e).position){const e=document.querySelector(".l-m .s:last-child").classList.toString().split(" ").filter((e=>e.startsWith("sc")));n.forEach((e=>t.classList.remove(e))),e.forEach((e=>t.classList.add(e)))}else{const e=document.querySelector(".s-hn-sidebar").classList.toString().split(" ").filter((e=>e.startsWith("sc")));n.forEach((e=>t.classList.remove(e))),e.forEach((e=>t.classList.add(e)))}o()}(0,i.Cd)((()=>{if(!(0,i.n9)()){if((0,i.JF)())return;const e=document.querySelector(".s-f-map"),t=document.querySelector(".wnd-page");a(),e&&e.addEventListener("wnd-redraw",a),t.addEventListener("wnd-content-change",a),window.addEventListener("resize",(()=>a())),window.addEventListener("orientationchange",(()=>a())),(0,i.bU)()&&function(){const e=document.querySelector("footer");e&&(e.style.bottom="auto",e.style.top=800-e.offsetHeight+"px")}(),o();let n=!1;const r=(0,i.Ds)(l,20,!1);if((0,i.Qy)()&&(l(),window.addEventListener("wnd-redraw",r),window.addEventListener("resize",l),window.addEventListener("orientationchange",l),n=!0),(0,i.GI)()){const e=e=>{e.target!==document.querySelector(".l-m .s:last-child")&&e.target!==document.querySelector(".s-f")||((0,i.Qy)()?setTimeout(o,50):o())};document.querySelector("main")?.addEventListener("wnd-redraw",e),document.querySelector("footer")?.addEventListener("wnd-redraw",e);document.querySelector(".l").addEventListener("wnd-layout-changed",(()=>{(0,i.Qy)()?(setTimeout(l,10),n||(window.addEventListener("wnd-redraw",r),window.addEventListener("resize",l),window.addEventListener("orientationchange",l),n=!0)):n&&(window.removeEventListener("wnd-redraw",r),window.removeEventListener("resize",l),window.removeEventListener("orientationchange",l),n=!1)}))}else{let e=document.querySelector(".cb");if(e){let t=e.querySelector(".cb-basic");document.querySelector(".sf-cbr > a")?.addEventListener("click",(n=>{(0,i.C6)(n),e.removeAttribute("style"),setTimeout((()=>{t.classList.remove("close"),t.classList.add("open")}),1)}))}}}}))},698:(e,t,n)=>{"use strict";var i=n(877);(0,i.Cd)((()=>{if((0,i.JF)()||!document.querySelector(".s-hb"))return;const e=()=>{const e=document.querySelector(".s-hb");return{elm:e,langOn:e.classList.contains("wnd-hbl-on"),currenciesOn:e.classList.contains("wnd-hbc-on"),infoOn:e.classList.contains("wnd-hbi-on"),iconsOn:e.classList.contains("wnd-hbs-on")}};let t=e();const n=function(){const n=document.querySelector(".menu-wrapper");t=e(),t.langOn&&(document.querySelector(".menu-wrapper .hb-lang")?.remove(),n.insertAdjacentElement("beforeend",document.querySelector(".s-hb .hb-lang").cloneNode(!0))),t.currenciesOn&&(document.querySelector(".menu-wrapper .hb-ccy")?.remove(),n.insertAdjacentElement("beforeend",document.querySelector(".s-hb .hb-ccy").cloneNode(!0))),t.infoOn&&(document.querySelector(".menu-wrapper .hb-ci")?.remove(),n.insertAdjacentElement("beforeend",document.querySelector(".s-hb .hb-ci").cloneNode(!0))),t.iconsOn&&(document.querySelector(".menu-wrapper .hb-si")?.remove(),n.insertAdjacentElement("beforeend",document.querySelector(".s-hb .hb-si").cloneNode(!0))),(()=>{t=e(),document.querySelector(".s-hb .ci-news");const n=document.querySelector(".s-hn .hb-ci .ci-c")&&!document.querySelector(".s-hn .ci-mail span")&&!document.querySelector(".s-hn .ci-phone span"),i=!document.querySelector(".s-hn .hb-si .si-c a");n&&(document.querySelector(".s-hn .hb-ci").style.display="none"),!document.querySelector(".wnd-menu-empty")||t.langOn||t.currenciesOn||!n&&t.infoOn||!i&&t.iconsOn||(document.querySelector("#menu-mobile").style.display="none")})()},r=function(e){if((0,i.GI)()){const t=new Event(`wnd-${e}-hb-dropdown`,{bubbles:!0,cancellable:!0});document.querySelector(".s-hb").dispatchEvent(t)}},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===e?(0,i.Rv)()&&n():"wnd-view-switched-mobile"===e.type?n():"wnd-view-switched-desktop"===e.type&&(document.querySelector("#menu-mobile").removeAttribute("style"),document.querySelector(".menu-wrapper .hb-si")?.remove(),document.querySelector(".menu-wrapper .hb-ci")?.remove(),document.querySelector(".menu-wrapper .hb-ccy")?.remove(),document.querySelector(".menu-wrapper .hb-lang")?.remove())},o=function(e){const t=document.querySelector(`.${e}`);t&&t.querySelector(`.${e}-a`)?.addEventListener("click",(()=>{t.classList.contains("open")?(t.classList.remove("open"),r("close")):(t.classList.add("open"),r("open")),function(e){document.querySelector(`.${e}`).classList.contains("open")&&setTimeout((()=>{document.addEventListener("click",(t=>{t.target.closest(`.${e}`)&&!t.target.closest("li[selected]")||(document.querySelector(`.${e}`).classList.remove("open"),t.target.closest(".hb-ccy")||t.target.closest(".hb-lang")?r("open"):r("close"))}),{once:!0})}),10)}(e)}))};if(!(0,i.GI)()){const e=document.querySelector(".si-c");e&&0===e.innerHTML.trim().length&&document.querySelector(".hb-si").classList.add("empty");const t=document.querySelector(".ci-news");t&&0===t.querySelector("span").innerHTML.trim().length&&t.classList.add("empty");const n=document.querySelector(".ci-mail");n&&0===n.querySelector("span").innerHTML.trim().length&&n.classList.add("empty");const i=document.querySelector(".ci-phone");i&&0===i.querySelector("span").innerHTML.trim().length&&i.classList.add("empty")}["hbl","hbc"].forEach((e=>{o(e),document.querySelector(`.${e}`)?.addEventListener("wnd-redraw",(()=>{o(e)}))})),(0,i.GI)()&&document.body.addEventListener("wnd-redraw",(e=>{e.target.classList.contains("s-hb")&&(0,i.Rv)()&&requestAnimationFrame(n)})),["wnd-view-switched-mobile","wnd-view-switched-desktop"].forEach((e=>{document.body.addEventListener(e,(e=>{s(e)}))})),document.body.addEventListener("wnd-menu-redraw",(e=>{(0,i.Rv)()&&n()})),s()}))},962:(e,t,n)=>{"use strict";var i=n(877);const r=function(){this.mainNavlineElm=document.querySelector(".s-hn"),this.fixedNavlineElm=this.mainNavlineElm.querySelector(".h-f"),this.bgElm=this.mainNavlineElm.querySelector(".h-f"),this.freeBarElm=document.querySelector('body[class*="wnd-free-bar-fixed-top"] .wnd-free-stripe'),this.sloganElm=document.querySelector(".logo-slogan"),this.mainHeaderElm=document.querySelector(".s-hm"),this.hasSlogan=this.mainNavlineElm.classList.contains("s-hn-slogan")||this.mainNavlineElm.classList.contains("slogan-sidebar")&&"relative"===getComputedStyle(document.querySelector(".h-w")).position,this.isMainHeaderVisible=!this.mainHeaderElm.classList.contains("s-hm-hidden"),this.headerType=null,this.hasSolidColorBg=this.mainNavlineElm.classList.contains("wnd-background-solid"),this.solidColorBg=this.hasSolidColorBg?this.getSolidBgColor():null,this.mainNavlineElm.classList.contains("s-hn-bottom")?this.headerType="bottom":this.mainNavlineElm.classList.contains("s-hn-centered")?this.headerType="centered":this.mainNavlineElm.classList.contains("s-hn-sidebar")?this.headerType="sidebar":this.headerType="default",this.defaultNavlineCssPosition=getComputedStyle(this.fixedNavlineElm).position,this.defaultNavlineCssTop="absolute"===this.defaultNavlineCssPosition||"fixed"===this.defaultNavlineCssPosition?getComputedStyle(this.fixedNavlineElm).top:"auto",this.isFullHeightMenu=null,this.isFixable=null,this.freeBarHeight=null,this.stickyTopOffset=null,this.fixAt=0,this.unfixAt=0,this.lastScrollTop=window.pageYOffset,this.sloganEvents=["transitioncancel","animationend","webkitAnimationEnd","oAnimationEnd","MSAnimationEnd","webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"]};r.prototype.getSolidBgColor=function(){const e=this.mainNavlineElm.querySelector(".s-bg-l").getAttribute("style");return e.substring(e.indexOf("#"),e.indexOf("#")+7)},r.prototype.setBackgroundColor=function(){this.fixedNavlineElm.style.setProperty("background",this.solidColorBg,"important")},r.prototype.resetBackgroundColor=function(){this.fixedNavlineElm.style.background=""},r.prototype.switchRefresh=function(){this.isFullHeightMenu=this.mainNavlineElm.classList.contains("s-hn-default")&&this.mainNavlineElm.classList.contains("menu-bottom")&&!(0,i.Rv)(),this.isFixable=!(document.querySelector(".l-sidebar")&&"fixed"===getComputedStyle(document.querySelector(".l-h")).position||this.mainNavlineElm.classList.contains("s-hn-centered")&&"absolute"===getComputedStyle(document.querySelector(".h-f")).position)},r.prototype.resizeRefresh=function(){this.freeBarHeight=this.freeBarElm&&"block"===getComputedStyle(this.freeBarElm).display?parseInt(this.freeBarElm.offsetHeight,10):0,this.stickyTopOffset=this.freeBarHeight;const e="bottom"===this.headerType&&this.isMainHeaderVisible?parseInt(this.mainHeaderElm.getBoundingClientRect().top,10)+window.pageYOffset+parseInt(getComputedStyle(this.mainHeaderElm).height,10)-parseInt(getComputedStyle(this.mainHeaderElm.querySelector(".s-o")).paddingBottom,10)-this.freeBarHeight:parseInt(this.mainNavlineElm.getBoundingClientRect().top,10)+window.pageYOffset-this.freeBarHeight,t=parseInt(getComputedStyle(this.mainNavlineElm).height,10);let n;const i=parseInt(getComputedStyle(this.fixedNavlineElm).height,10),r=parseInt(getComputedStyle(this.fixedNavlineElm).minHeight,10);"fixed"!==getComputedStyle(this.fixedNavlineElm).position?(n=parseInt(this.fixedNavlineElm.getBoundingClientRect().top,10)+window.pageYOffset-this.freeBarHeight,this.isFullHeightMenu?(this.fixAt=e,this.unfixAt=e+(i-r)/2):this.hasSlogan?(this.fixAt=n,this.unfixAt=n+(i-r)/2):(this.fixAt=n,this.unfixAt=this.fixAt)):"fixed"===getComputedStyle(this.fixedNavlineElm).position&&(n=e+(t-i)/2,this.isFullHeightMenu?(this.fixAt=e,this.unfixAt=e+(t-i)/2):this.hasSlogan?this.unfixAt=e+(t-i)/2:"centered"===this.headerType?(this.fixAt=e+t-i,this.unfixAt=this.fixAt):(this.fixAt=n,this.unfixAt=this.fixAt))},r.prototype.dispatchNavEvent=function(e){const t=new Event(e,{bubbles:!0,cancellable:!0});this.mainNavlineElm.dispatchEvent(t)},r.prototype.scroll=function(){const e=this;if(!e.isFixable)return;const t=function(){e.sloganElm?.setAttribute("style",""),e.sloganEvents.forEach((n=>{e.sloganElm.removeEventListener(n,t)})),e.resizeRefresh()},n=function(n){e.hasSlogan&&(e.sloganElm.style.height=`${n}px`,e.sloganEvents.forEach((n=>{e.sloganElm.removeEventListener(n,t)})))};let i=window.pageYOffset;const r=i<e.lastScrollTop?"up":"down";if(i<0&&(i=0),"down"===r&&i>=e.fixAt){if("fixed"!==getComputedStyle(e.fixedNavlineElm).position){let t;e.hasSlogan&&(i!==e.lastScrollTop?n(e.sloganElm.offsetHeight):t=e.sloganElm.offsetHeight),setTimeout((()=>{e.dispatchNavEvent("navfixed"),e.fixedNavlineElm.style.top=`${e.stickyTopOffset}px`,e.fixedNavlineElm.style.position="fixed",e.bgElm.classList.add("bgonscroll"),e.mainNavlineElm.classList.add("sticky"),e.hasSolidColorBg&&e.setBackgroundColor(),"centered"===e.headerType&&(this.mainHeaderElm.style.marginTop=-1*parseFloat(getComputedStyle(e.mainNavlineElm).height)+"px",this.mainHeaderElm.style.paddingTop=`${parseFloat(getComputedStyle(e.mainNavlineElm).height)}px`),i===e.lastScrollTop&&e.hasSlogan&&n(t)}),i===e.lastScrollTop?0:10)}}else"up"===r&&i<=e.unfixAt&&"fixed"===getComputedStyle(e.fixedNavlineElm).position&&(document.body.classList.contains("noscroll")||("centered"!==e.headerType?(e.fixedNavlineElm.style.top=`${e.defaultNavlineCssTop}px`,e.fixedNavlineElm.style.position=e.defaultNavlineCssPosition):e.fixedNavlineElm.setAttribute("style","")),e.bgElm.classList.remove("bgonscroll"),e.mainNavlineElm.classList.remove("sticky"),e.hasSolidColorBg&&e.resetBackgroundColor(),"centered"===e.headerType&&(this.mainHeaderElm.style.marginTop=-1*parseFloat(getComputedStyle(e.mainNavlineElm).height)+"px",this.mainHeaderElm.style.paddingTop=`${parseFloat(getComputedStyle(e.mainNavlineElm).height)}px`),e.dispatchNavEvent("navunfixed"),e.hasSlogan&&e.sloganEvents.forEach((n=>{e.sloganElm.addEventListener(n,t,{once:!0})})));e.lastScrollTop=i},r.prototype.unfixAndReset=function(){this.mainNavlineElm.classList.remove("sticky"),this.bgElm.classList.remove("bgonscroll"),this.fixedNavlineElm.setAttribute("style",""),this.sloganElm?.setAttribute("style",""),this.dispatchNavEvent("navunfixed")},r.prototype.runCookieBarWatcher=function(){const e=this,t=document.getElementById("wnd_cookie_bar");if(t){new MutationObserver((t=>{1===t.length&&e.resizeRefresh()})).observe(t,{attributes:!0,childList:!1,subtree:!1,attributeOldValue:!0})}},r.prototype.init=function(){if(!(0,i.GI)()){const e=this;e.runCookieBarWatcher(),e.switchRefresh(),e.resizeRefresh(),window.pageYOffset&&e.scroll(),window.addEventListener("scroll",(()=>{e.scroll()})),["resize","orientationchange"].forEach((t=>{window.addEventListener(t,(()=>{e.resizeRefresh()}))})),"sidebar"===e.headerType&&document.body.addEventListener("wnd-view-switched-desktop",(()=>{"fixed"===getComputedStyle(document.querySelector(".l-h")).position&&e.unfixAndReset()})),"centered"===e.headerType&&document.body.addEventListener("wnd-view-switched-mobile",(()=>{e.unfixAndReset()})),["wnd-view-switched-mobile","wnd-view-switched-desktop"].forEach((t=>{document.body.addEventListener(t,(()=>{e.switchRefresh()}))}))}},(0,i.Cd)((()=>{if((0,i.JF)())return;const e=document.body.classList.contains("wt-blogpost");let t=document.querySelector(".s-hn"),n=document.querySelector(".s-hm"),s=!1;if((0,i.iz)())if(document.querySelector(".s-hn").classList.contains("s-hn-bottom")&&!document.querySelector(".s-hm").classList.contains("s-hm-hidden"))window.addEventListener("navloaded",(()=>{(new r).init()}));else{(new r).init()}const o=function(){t=document.querySelector(".s-hn"),n=document.querySelector(".s-hm")},a=function(){return t.classList.contains("s-hn-bottom")},l=function(){t.classList.contains("s-hn-centered")&&setTimeout((()=>{if(t.classList.contains("s-hn-centered"))if(n.classList.contains("s-hm-hidden"))n.setAttribute("style",""),n.querySelector(".s-bg")?.setAttribute("style","");else{if(setTimeout((()=>{document.querySelector(".cart-and-mobile .cart")||document.querySelector("#menu .level-1")?t.classList.remove("menu-hidden"):t.classList.add("menu-hidden")}),1),!document.querySelector(".s-hn .logo"))return;n.style.marginTop=-1*parseInt(t.offsetHeight,10)+"px",n.style.paddingTop=`${parseInt(t.offsetHeight,10)}px`,t.classList.contains("hn-no-bg")?(n.querySelector(".s-bg").style.top=-1*parseInt(t.offsetHeight,10)+"px",setTimeout((()=>{n.style.marginTop=-1*parseInt(t.offsetHeight,10)+"px",n.style.paddingTop=`${parseInt(t.offsetHeight,10)}px`}),1)):n.querySelector(".s-bg")?.setAttribute("style","")}}),10)},c=function(){if(a()){if(!e){const e=document.body.classList.contains("hb-on")&&"none"!==getComputedStyle(document.querySelector(".s-hb")).display?parseFloat(getComputedStyle(document.querySelector(".s-hb"),null).height.replace("px","")):0;n.classList.contains("s-hm-hidden")?t.setAttribute("style",""):window.requestAnimationFrame((()=>{t.style.top=e+parseFloat(getComputedStyle(n,null).height.replace("px",""))-t.offsetHeight+"px"}))}if(!s){const e=new Event("navloaded",{bubbles:!0,cancellable:!0});setTimeout((()=>{document.querySelector(".s-hn")?.dispatchEvent(e)}),50),s=!0}}};let u;const d=function(){"undefined"!=typeof ResizeObserver&&(void 0!==u&&(u.unobserve(document.querySelector(".s-hm")),u.unobserve(document.querySelector(".s-hn"))),u=new ResizeObserver((e=>{for(let t=0;t<e.length;t++)o(),l(),c()})),u.observe(document.querySelector(".s-hm")),u.observe(document.querySelector(".s-hn")))};(0,i.n9)()||("undefined"==typeof ResizeObserver&&[t,n].forEach((e=>{e.addEventListener("wnd-content-change",(e=>{e.target.classList.contains("logo")||a()&&c()}))})),["mobile-menu-open","mobile-menu-close"].forEach((e=>{document.body.addEventListener(e,(e=>{e.target.classList.contains("s-hn")&&a()&&setTimeout(c,20)}))})),document.body.addEventListener("wnd-redraw",(e=>{(e.target.classList.contains("s-hn")||e.target.classList.contains("s-hm")||e.target.closest(".s-hn")||e.target.closest(".s-hm"))&&(o(),d(),l(),c())}),!0),o(),l(),c()),(0,i.JF)()||(0,i.n9)()||d()}))}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__(19),__webpack_require__(727),__webpack_require__(820),__webpack_require__(766),__webpack_require__(967),__webpack_require__(551),__webpack_require__(875),__webpack_require__(504),__webpack_require__(575),__webpack_require__(277),__webpack_require__(850),__webpack_require__(910),__webpack_require__(196),__webpack_require__(141),__webpack_require__(252),__webpack_require__(242),__webpack_require__(468),__webpack_require__(142),__webpack_require__(946),__webpack_require__(298),__webpack_require__(460),__webpack_require__(999),__webpack_require__(710),__webpack_require__(156),__webpack_require__(962);var __webpack_exports__=__webpack_require__(698)})();