!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(C,z){"use strict";function y(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item}function m(e){return null!=e&&e===e.window}var t=[],D=Object.getPrototypeOf,s=t.slice,R=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},H=t.push,q=t.indexOf,M={},F=M.toString,B=M.hasOwnProperty,Q=B.toString,W=Q.call(Object),g={},$=C.document,V={type:!0,src:!0,nonce:!0,noModule:!0};function U(e,t,n){var i,o,a=(n=n||$).createElement("script");if(a.text=e,t)for(i in V)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&a.setAttribute(i,o);n.head.appendChild(a).parentNode.removeChild(a)}function p(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?M[F.call(e)]||"object":typeof e}var e="3.6.0",j=function(e,t){return new j.fn.init(e,t)};function Y(e){var t=!!e&&"length"in e&&e.length,n=p(e);return!y(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&0>10|55296,1023&e|56320))}function D(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function R(){$()}var e,f,w,a,H,h,q,M,C,l,c,$,j,n,k,p,i,o,m,x="sizzle"+ +new Date,u=z.document,T=0,F=0,B=E(),Q=E(),W=E(),g=E(),V=function(e,t){return e===t&&(c=!0),0},U={}.hasOwnProperty,t=[],Y=t.pop,G=t.push,_=t.push,K=t.slice,y=function(e,t){for(var n=0,i=e.length;n+~]|"+r+")"+r+"*"),ie=new RegExp(r+"|>"),oe=new RegExp(Z),ae=new RegExp("^"+s+"$"),b={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+X+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},re=/HTML$/i,se=/^(?:input|select|textarea|button)$/i,le=/^h\d$/i,S=/^[^{]+\{\s*\[native \w/,ce=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ue=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),de=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,fe=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{_.apply(t=K.call(u.childNodes),u.childNodes),t[u.childNodes.length].nodeType}catch(e){_={apply:t.length?function(e,t){G.apply(e,K.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function A(t,e,n,i){var o,a,r,s,l,c,u=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!i&&($(e),e=e||j,k)){if(11!==d&&(s=ce.exec(t)))if(o=s[1]){if(9===d){if(!(c=e.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(u&&(c=u.getElementById(o))&&m(e,c)&&c.id===o)return n.push(c),n}else{if(s[2])return _.apply(n,e.getElementsByTagName(t)),n;if((o=s[3])&&f.getElementsByClassName&&e.getElementsByClassName)return _.apply(n,e.getElementsByClassName(o)),n}if(f.qsa&&!g[t+" "]&&(!p||!p.test(t))&&(1!==d||"object"!==e.nodeName.toLowerCase())){if(c=t,u=e,1===d&&(ie.test(t)||ne.test(t))){for((u=ue.test(t)&&ge(e.parentNode)||e)===e&&f.scope||((r=e.getAttribute("id"))?r=r.replace(de,D):e.setAttribute("id",r=x)),a=(l=h(t)).length;a--;)l[a]=(r?"#"+r:":scope")+" "+L(l[a]);c=l.join(",")}try{return _.apply(n,u.querySelectorAll(c)),n}catch(e){g(t,!0)}finally{r===x&&e.removeAttribute("id")}}}return M(t.replace(v,"$1"),e,n,i)}function E(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function P(e){return e[x]=!0,e}function N(e){var t=j.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function he(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function me(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&fe(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function I(r){return P(function(a){return a=+a,P(function(e,t){for(var n,i=r([],e.length,a),o=i.length;o--;)e[n=i[o]]&&(e[n]=!(t[n]=e[n]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=A.support={},H=A.isXML=function(e){var t=e&&e.namespaceURI,e=e&&(e.ownerDocument||e).documentElement;return!re.test(t||e&&e.nodeName||"HTML")},$=A.setDocument=function(e){var e=e?e.ownerDocument||e:u;return e!=j&&9===e.nodeType&&e.documentElement&&(n=(j=e).documentElement,k=!H(j),u!=j&&(e=j.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",R,!1):e.attachEvent&&e.attachEvent("onunload",R)),f.scope=N(function(e){return n.appendChild(e).appendChild(j.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),f.attributes=N(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=N(function(e){return e.appendChild(j.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=S.test(j.getElementsByClassName),f.getById=N(function(e){return n.appendChild(e).id=x,!j.getElementsByName||!j.getElementsByName(x).length}),f.getById?(w.filter.ID=function(e){var t=e.replace(O,d);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&k)return(t=t.getElementById(e))?[t]:[]}):(w.filter.ID=function(e){var t=e.replace(O,d);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var n,i,o,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(o=t.getElementsByName(e),i=0;a=o[i++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),w.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,a=t.getElementsByTagName(e);if("*"!==e)return a;for(;n=a[o++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&k)return t.getElementsByClassName(e)},i=[],p=[],(f.qsa=S.test(j.querySelectorAll))&&(N(function(e){var t;n.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&p.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\["+r+"*(?:value|"+X+")"),e.querySelectorAll("[id~="+x+"-]").length||p.push("~="),(t=j.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||p.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll("\\\f"),p.push("[\\r\\n\\f]")}),N(function(e){e.innerHTML="";var t=j.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&p.push(":enabled",":disabled"),n.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")})),(f.matchesSelector=S.test(o=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&N(function(e){f.disconnectedMatch=o.call(e,"*"),o.call(e,"[s!='']:x"),i.push("!=",Z)}),p=p.length&&new RegExp(p.join("|")),i=i.length&&new RegExp(i.join("|")),e=S.test(n.compareDocumentPosition),m=e||S.test(n.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=e?function(e,t){var n;return e===t?(c=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e==j||e.ownerDocument==u&&m(u,e)?-1:t==j||t.ownerDocument==u&&m(u,t)?1:l?y(l,e)-y(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,o=e.parentNode,a=t.parentNode,r=[e],s=[t];if(!o||!a)return e==j?-1:t==j?1:o?-1:a?1:l?y(l,e)-y(l,t):0;if(o===a)return pe(e,t);for(n=e;n=n.parentNode;)r.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;r[i]===s[i];)i++;return i?pe(r[i],s[i]):r[i]==u?-1:s[i]==u?1:0}),j},A.matches=function(e,t){return A(e,null,null,t)},A.matchesSelector=function(e,t){if($(e),f.matchesSelector&&k&&!g[t+" "]&&(!i||!i.test(t))&&(!p||!p.test(t)))try{var n=o.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){g(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,d),e[3]=(e[3]||e[4]||e[5]||"").replace(O,d),"~="===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]||A.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]&&A.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return b.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&oe.test(n)&&(t=(t=h(n,!0))&&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(O,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&B(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=A.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function J(e,n,i){return y(n)?j.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?j.grep(e,function(e){return e===n!==i}):"string"!=typeof n?j.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/,te=((j.fn.init=function(e,t,n){if(e){if(n=n||Z,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(j):j.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:ee.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof j?t[0]:t,j.merge(this,j.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:$,!0)),X.test(i[1])&&j.isPlainObject(t))for(var i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i])}else(n=$.getElementById(i[2]))&&(this[0]=n,this.length=1)}return this}).prototype=j.fn,Z=j($),/^(?:parents|prev(?:Until|All))/),ne={children:!0,contents:!0,next:!0,prev:!0};function ie(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}j.fn.extend({has:function(e){var t=j(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,je=/^$|^module$|\/(?:java|ecma)script/i,S=(P=$.createDocumentFragment().appendChild($.createElement("div")),(r=$.createElement("input")).setAttribute("type","radio"),r.setAttribute("checked","checked"),r.setAttribute("name","t"),P.appendChild(r),g.checkClone=P.cloneNode(!0).cloneNode(!0).lastChild.checked,P.innerHTML="",g.noCloneChecked=!!P.cloneNode(!0).lastChild.defaultValue,P.innerHTML="",g.option=!!P.lastChild,{thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]});function O(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&l(e,t)?j.merge([e],n):n}function ke(e,t){for(var n=0,i=e.length;n",""]);var xe=/<|?\w+;/;function Te(e,t,n,i,o){for(var a,r,s,l,c,u=t.createDocumentFragment(),d=[],f=0,h=e.length;f\s*$/g;function Ie(e,t){return l(e,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")&&j(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function De(e,t){var n,i,o,a;if(1===t.nodeType){if(w.hasData(e)&&(a=w.get(e).events))for(o in w.remove(t,"handle events"),a)for(n=0,i=a[o].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(e){i.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),$.head.appendChild(i[0])},abort:function(){o&&o()}}}),[]),Gt=/(=)\?(?=&|$)|\?\?/,Kt=(j.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Yt.pop()||j.expando+"_"+_t.guid++;return this[e]=!0,e}}),j.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,a,r=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(r||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(Gt,"$1"+i):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||j.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=C[i],C[i]=function(){a=arguments},n.always(function(){void 0===o?j(C).removeProp(i):C[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Yt.push(i)),a&&y(o)&&o(a[0]),a=o=void 0}),"script"}),g.createHTMLDocument=((e=$.implementation.createHTMLDocument("").body).innerHTML="",2===e.childNodes.length),j.parseHTML=function(e,t,n){var i;return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=$.implementation.createHTMLDocument("")).createElement("base")).href=$.location.href,t.head.appendChild(i)):t=$),i=!n&&[],(n=X.exec(e))?[t.createElement(n[1])]:(n=Te([e],t,i),i&&i.length&&j(i).remove(),j.merge([],n.childNodes)))},j.fn.load=function(e,t,n){var i,o,a,r=this,s=e.indexOf(" ");return-1").append(j.parseHTML(e)).find(i):e)}).always(n&&function(e,t){r.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},j.expr.pseudos.animated=function(t){return j.grep(j.timers,function(e){return t===e.elem}).length},j.offset={setOffset:function(e,t,n){var i,o,a,r,s=j.css(e,"position"),l=j(e),c={};"static"===s&&(e.style.position="relative"),a=l.offset(),i=j.css(e,"top"),r=j.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(i+r).indexOf("auto")?(o=(s=l.position()).top,s.left):(o=parseFloat(i)||0,parseFloat(r)||0),null!=(t=y(t)?t.call(e,n,j.extend({},a)):t).top&&(c.top=t.top-a.top+o),null!=t.left&&(c.left=t.left-a.left+s),"using"in t?t.using.call(e,c):l.css(c)}},j.fn.extend({offset:function(t){var e,n;return arguments.length?void 0===t?this:this.each(function(e){j.offset.setOffset(this,t,e)}):(n=this[0])?n.getClientRects().length?(e=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===j.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"===j.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=j(e).offset()).top+=j.css(e,"borderTopWidth",!0),o.left+=j.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-j.css(i,"marginTop",!0),left:t.left-o.left-j.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===j.css(e,"position");)e=e.offsetParent;return e||x})}}),j.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var a="pageYOffset"===o;j.fn[t]=function(e){return d(this,function(e,t,n){var i;if(m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[o]:e[t];i?i.scrollTo(a?i.pageXOffset:n,a?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),j.each(["top","left"],function(e,n){j.cssHooks[n]=Ze(g.pixelPosition,function(e,t){if(t)return t=Je(e,n),Ye.test(t)?j(e).position()[n]+"px":t})}),j.each({Height:"height",Width:"width"},function(r,s){j.each({padding:"inner"+r,content:s,"":"outer"+r},function(i,a){j.fn[a]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),o=i||(!0===e||!0===t?"margin":"border");return d(this,function(e,t,n){var i;return m(e)?0===a.indexOf("outer")?e["inner"+r]:e.document.documentElement["client"+r]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+r],i["scroll"+r],e.body["offset"+r],i["offset"+r],i["client"+r])):void 0===n?j.css(e,t,o):j.style(e,t,n,o)},s,n?e:void 0,n)}})}),j.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){j.fn[t]=function(e){return this.on(t,e)}}),j.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)}}),j.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){j.fn[n]=function(e,t){return 0'),$(".crying-message-outer").click(function(e){return e.stopPropagation(),n.closeMessage(),!1}),$(".crying-message").click(function(e){return e.stopPropagation(),!1}),$(".crying-message-button").click(function(e){return e.stopPropagation(),n.closeMessage(),!1}),$(".crying-layer").show(t.duration),$(".crying-message-outer").show(t.duration)}},NA.Messager.instance=null,NA.showMessage=function(e,t){NA.Messager.instance||(NA.Messager.instance=new NA.Messager),NA.Messager.instance.showMessage(e,t)},NA.statClick=function(){"use strict";return{execute:function(e,t,n,i){var t=this.getStatParameters(t),o=this.getStatParametersFromCookie(i),a={},a=0===NA.keys(t).length?o:t;o=t,i.getCookie("stat_click")||0!==NA.keys(o).length||(a={},0===document.referrer.search(/https?:\/\/(.*\.)?(google|bing|yahoo|ask|onet|yandex|globo|babylon)\.([^\/?]*)/)?a.statId="6541":0!==document.referrer.length&&-1===document.referrer.search(globalConfigParams.panelSiteUrl)&&-1===document.referrer.search(globalConfigParams.loginSiteUrl)?a.statId="8955":a.statId="8875"),NA.statClick.addOrdinaryStat(a,i,e)},getStatParameters:function(e){var t={},n=new URL(e).searchParams.get("statClick");return n?t.statId=n:2===(n=e.split(",")).length?t.statId=n[1].split(".")[0]:3===n.length&&(t.statId=n[2].split(".")[0]),t},getStatParametersFromCookie:function(e){var t={},n=e.getCookie("stat_click"),n=(n&&(n=n.split(":")[0],t.statId=n),e.getCookie("stat_click_set")),i=(n&&(i=n.split(":")[0],t.statClickSetId=i),e.getCookie("stat_click_userid"));return n&&(t.statClickUserId=i),t},addOrdinaryStat:function(e,t,n){e.statId&&(window.location.pathname!==NA.getLogoutUrl()&&jQuery.ajax({data:{stat:e.statId},url:"/panel/Module.json?ajaxParam_module=netartComponentRepository&ajaxParam_instance=ClickerCounter",dataType:"jsonp",contentType:"application/json",success:function(e){t.setCookie("stat_click_userid",e.statUserId,6e4,"/")}}),NA.statClick.setStatPublisher(e.statId,t,n))},setStatPublisher:function(t,n,e){e.execute({componentName:"StatIdSet",componentInstanceName:"StatIdSet",data:{statId:t},success:function(e){NA.statClick.statIdSetSuccessCallback(t,n,e)}})},setStatCookies:function(e,t,n){n.setCookie("stat_click",e+":"+NA.date.getCurrentDate(),60,"/"),n.setCookie("stat_click_set",e+":"+(t?"support":"set"),60,"/")},statIdSetSuccessCallback:function(e,t,n){if(n.hasErrors)return!1;NA.statClick.setStatCookies(e,"SET_STAT_ID_SUPPORTED"==n.result.result,t)}}}(),NA.pkLeadId=function(){"use strict";return{execute:function(e){(new pkCookieSet).execute(e,"leadId","leadIdNotSetOnPk","ClickerLeadIdSetter")}}}(),NA.pkTradedoublerCookie=function(){"use strict";return{execute:function(e){(new pkCookieSet).execute(e,"TRADEDOUBLER","tradedoublerNotSetOnPk","ClickerTradedoublerSetter")}}}(),NA.setRecommendedCookie=function(){"use strict";var t=urlParam("poleca");return{execute:function(e){t.length&&(e.setCookie("recommender",t,30,"/"),NA.clearUrlParamsInBrowser())}}}(),NA.cookieContainer=function(){"use strict";function i(e){for(var t=document.cookie.split(";"),n="",i="",o=!1,a=0;a<\/script>')},NA.getPkUrl=function(){return globalConfigParams.panelSiteUrl},NA.getLoginUrl=function(){return globalConfigParams.loginSiteUrl},NA.featureToggle={},NA.featureToggle.isActive=function(e){for(var t=globalConfigParams.activeFeatureTogglers.split(","),n=0;n'),u=C(''),d=C(''),i=-1,o=-1,a=[],t=!1,f="",h=!1,p={afterContainerClass:"optionAfterInfoContainer",afterContainerPromoClass:"optionAfterInfoContainerPromo",afterContainerTooltipClass:"naTooltip-onClick",optionTextClass:"optionLabel"},n=(u.insertAfter(l),c.prependTo(u),d.appendTo(u),l.hide(),r=0==l.children("optgroup").length?(l.children().each(function(e){var t=C(this).text(),n=C(this).attr("data-option-additional-info-promo"),i=C(this).attr("data-option-additional-info-standard"),e=(a.push(t.charAt(0).toLowerCase()),C(this).is(":selected")&&(s.defaultText=t,o=e),"");n&&(e+=''+n+""),i&&(e+=''+i+""),f+=''+t+""+e+""}),d.html(f),f="",d.children()):(l.children("optgroup").each(function(e){var t=C(this).attr("label"),t=C(''+t+""),n=(t.appendTo(d),C(""));n.appendTo(t),C(this).children().each(function(){++i;var e=C(this).text();a.push(e.charAt(0).toLowerCase()),C(this).is(":selected")&&(s.defaultText=e,o=i),f+=""+e+""}),n.html(f),f=""}),d.find("ul li")),d.height()+3),m=u.height()+3;r.length;function e(){var e=u.offset().top;jQuery(window).height()<=(e-=jQuery(window).scrollTop())+(n=n>parseInt(s.ddMaxHeight)?parseInt(s.ddMaxHeight):n)?(d.css({top:"-"+n+"px",height:n}),l.onTop=!0):(d.css({top:m+"px",height:n}),l.onTop=!1)}function g(){u.css("position","static")}function v(e,t){var n=u.offset().top,i=r.eq(e).offset().top,o=d.scrollTop(),a=(1==l.onTop?l.liOffsetTop=i-n-m+o+parseInt(s.ddMaxHeight):l.liOffsetTop=i-n-m+o,d.scrollTop(l.liOffsetTop),r.removeClass("hiLite").eq(e).addClass("hiLite"),r.eq(e).children("strong."+p.optionTextClass).text());1==t?(l.children("option").removeAttr("selected"),l.children("option").each(function(){C(this).html()==a&&(C(this).attr({selected:"selected"}),y(C(this)))})):(l.children("option").removeAttr("selected"),l.children("option").each(function(){C(this).html()==a&&(C(this).attr({selected:"selected"}),y(C(this)))}),l.change()),c.text(a)}function y(e){var t,n=u.next(),n=(n.hasClass(p.afterContainerClass)&&n.remove(),e.attr("data-option-after-info-standard")),i=e.attr("data-option-after-info-promo"),e=e.attr("data-option-after-info-tooltip");n&&(t=C(''+n+"")).insertAfter(u),i&&(t=C(''+i+"")).insertAfter(u),(n||i)&&e&&(t.append(''+e+""),t.naInfoTooltip({tipOnClick:!0}))}function b(e){e.onkeydown=function(e){switch(e=null==e?event.keyCode:e.which,h=!0,e){case 40:case 39:return!1;case 38:case 37:return!1;case 33:case 36:return!1;case 34:case 35:return!1;case 13:case 27:return d.hide(),g(),!1}if(keyPressed=String.fromCharCode(e).toLowerCase(),void 0!==a.indexOf(keyPressed))return++o,v(o=-1!=(o=a.indexOf(keyPressed,o))&&null!=o&&t==keyPressed?o:a.indexOf(keyPressed)),t=keyPressed,!1}}-1!=o?v(o,!0):c.text(s.defaultText),e(),C(window).resize(function(){e()}),C(window).scroll(function(){e()}),c.parent().hasClass("newListDisabled")?(u.css({opacity:.4}),c.css({cursor:"default"})):c.click(function(){if(d.is(":visible"))return d.hide(),g(),!1;u.focus(),triggerSSelectGAevent(l,"open"),d.slideDown(s.animationSpeed),u.css("position","relative"),d.scrollTop(l.liOffsetTop)}),r.hover(function(e){C(this).addClass("newListHover")},function(e){C(this).removeClass("newListHover")}),r.click(function(e){var t=l.val(),n=C(this);o=r.index(n),h=!0,v(o),l.val()!=t&&triggerSSelectGAevent(l,"change"),d.hide(),u.css("position","static")}),l.change(function(e){if($targetInput=C(e.target),1==h)return h=!1;$currentOpt=$targetInput.find(":selected"),v(o=$targetInput.find("option").index($currentOpt),!0)}),u.click(function(){b(this)}),u.focus(function(){C(this).addClass("newListSelFocus"),b(this)}),u.blur(function(){C(this).removeClass("newListSelFocus"),d.hide(),g()}),c.hover(function(e){C(e.target).parent().addClass("newListSelHover")},function(e){C(e.target).parent().removeClass("newListSelHover")}),d.css("left","0").hide()})}}(jQuery);var triggerSSelectGAevent=function(e,t){e.attr("data-alt-name")?e.attr("data-alt-name"):e.attr("name")};function Observable(){var i=[];this.attachObserver=function(e){if("function"!=typeof e.update)throw"Invalid observer given";i.push(e)},this.notifyObservers=function(e,t){for(var n=0;n div",{effect:"fade",fadeOutSpeed:"slow",rotate:!0}).slideshow({autoplay:!0,autopause:!0,interval:8e3,clickable:!1})})}function initMainBox(){0 div"),$("div.tabs-product ul.list-tab a.external").on("click",function(){$("body").hide();var e=$(this).attr("href");window.location.href=e})})}function initProductTabsSmall(){jQuery().tabs&&jQuery(function(){jQuery("div.tab-product-inner ul.list-tab-inner").tabs("div.tab-content-inner > div")})}function changecolors(e){Select_Value_Set("colorsDropdown","SiteForm",e.id)}function Select_Value_Set(SelectName,FormName,Value){for(eval("SelectObject = document."+FormName+"."+SelectName+";"),index=0;index').cycle({fx:"fade",speed:"slow",timeout:9e3,pager:".nav",cleartype:!0,cleartypeNoBg:!0})}function initDecorateTable(){0|"),jQuery(".footer-links ul li:last-child span").remove())}function initSubMenu(){var t;jQuery(".nav-level-1").hide(),$(".nav-main ul li").hover(function(){t=$(this);var e=".level-"+$(this).attr("class").split(" ")[1];$(".details .nav-level-1").parent().attr("id",""),$(".details").find(e).attr("id","activated"),t.addClass("activeHover")},function(){t=$(this),$(this).attr("class"),$(".details .nav-level-1").hover(function(){$(this).parent().attr("id","activated"),t.addClass("activeHover")},function(){$(this).parent().attr("id",""),$(".details .nav-level-1").parent().attr("id",""),t.removeClass("activeHover")}),$(".details .nav-level-1").parent().attr("id",""),t.removeClass("activeHover")})}function initSearchResultsProject(){$(".sliderFavouriteSites-options span").click(function(){$(this).parent().parent().remove()}),$(".projekt-tabs-contents .projekt-tabs-content").eq(0).addClass("active"),$(".projekt-tabs li").eq(0).addClass("active"),$(".projekt-tabs li").click(function(){$(".projekt-tabs li").removeClass("active"),$(this).addClass("active"),$(".projekt-tabs-contents .projekt-tabs-content").removeClass("active");var e=$(this).index();$(".projekt-tabs-contents .projekt-tabs-content").eq(e).addClass("active")}),$(".projekt-search-results-listed-projects li:nth-child(3n)").addClass("projekt-list-remove-margin")}function initGoogleAdvert(){0");for(var e=jQuery("ol").length,t=0;t'+e+"")}),t++}$("ol.regulation span.number").remove(),jQuery(".afil-text-content p").eq(0).addClass("first")}function initPromotion(){$(".promotion-list li:nth-child(2n)").addClass("whitout-margin")}function initShopSelect(){0").css({width:0,height:0,position:"absolute",top:"11px","border-top":"8px solid transparent","border-bottom":"8px solid transparent"});switch(i){case"right":t=e.offset().left+e.width()+8,o.css({left:"-12px","border-right":"8px solid "+r.tipColor});break;case"left":t=e.offset().left-r.tipWidth-50,o.css({right:"-12px","border-left":"8px solid "+r.tipColor})}(a=c("").addClass(r.tipClass).addClass(r.tipExtraClass).css({position:"absolute",top:n,left:t,border:"4px solid "+r.tipColor,padding:"17px",background:"#FFF",color:"#474747",opacity:r.tipOpacity,width:r.tipWidth+"px","box-shadow":r.tipShadow})).html(e.find(c("."+r.tipSourceElementClass)).html()).append(o),a.find("h3").css({background:r.tipColor}),c("body").append(a),a.mouseenter(function(){clearTimeout(a.data("removeTipTimeout"))}),a.mouseleave(function(){l(!0)})}),s=function(e){var t=r.tipWidth+50,e=e.offset().left+e.width()+t;return c(window).width()+c(window).scrollLeft()The requested content cannot be loaded.
Please try again later.
'),P())}function o(){var i,e,t,n,o,a,r=w[y];if(l(),b=s.extend({},s.fn.fancybox.defaults,void 0===s(r).data("fancybox")?b:s(r).data("fancybox")),!1===(a=b.onStart(w,y,b)))A=!1;else if(t=(b="object"==typeof a?s.extend(b,a):b).title||(r.nodeName?s(r).attr("title"):r.title)||"",r.nodeName&&!b.orig&&(b.orig=s(r).children("img:first").length?s(r).children("img:first"):s(r)),""===t&&b.orig&&b.titleFromAlt&&(t=b.orig.attr("alt")),i=b.href||(r.nodeName?s(r).attr("href"):r.href)||null,!/^(?:javascript)/i.test(i)&&"#"!=i||(i=null),b.type?(e=b.type,i=i||b.content):b.content?e="html":i&&(e=i.match(T)?"image":i.match(D)?"swf":s(r).hasClass("iframe")?"iframe":0===i.indexOf("#")?"inline":"ajax"),e)switch("inline"==e&&(r=i.substr(i.indexOf("#")),e=0').hide().insertBefore(s(r)).bind("fancybox-cleanup",function(){s(this).replaceWith(f.children())}).bind("fancybox-cancel",function(){s(this).replaceWith(u.children())}),s(r).appendTo(u),P());break;case"image":A=!1,s.fancybox.showActivity(),(x=new Image).onerror=function(){c()},x.onload=function(){A=!0,x.onerror=x.onload=null,b.width=x.width,b.height=x.height,s("").attr({id:"fancybox-img",src:x.src,alt:b.title}).appendTo(u),N()},x.src=i;break;case"swf":b.scrolling="no",n='",u.html(n),P();break;case"ajax":A=!1,s.fancybox.showActivity(),b.ajax.win=b.ajax.success,k=s.ajax(s.extend({},b.ajax,{url:i,data:b.ajax.data||{},error:function(e,t,n){0")[0],{prop:0}),P=function(){var e=b.width,t=b.height,e=-1'),b.width=u.width(),b.height=u.height(),N()},N=function(){var e,t;d.hide(),$.onCleanup&&i.is(":visible")&&!1===$.onCleanup(j,C,$)?(s.event.trigger("fancybox-cancel"),A=!1):(A=!0,s(f.add(n)).unbind(),s(window).unbind("resize.fb scroll.fb"),s(document).unbind("keydown.fb"),i.is(":visible")&&"outside"!==$.titlePosition&&i.css("height",i.height()),j=w,C=y,($=b).overlayShow?(n.css({"background-color":$.overlayColor,opacity:$.overlayOpacity,cursor:$.hideOnOverlayClick?"pointer":"auto",height:s(document).height()}),n.is(":visible")||n.show()):n.hide(),v=H(),R(),i.is(":visible")?(s(r.add(p).add(m)).hide(),e=i.position(),g={top:e.top,left:e.left,width:i.width(),height:i.height()},t=g.width==v.width&&g.height==v.height,f.fadeTo($.changeFade,.3,function(){function e(){f.html(u.contents()).fadeTo($.changeFade,1,I)}s.event.trigger("fancybox-change"),f.empty().removeAttr("filter").css({"border-width":$.padding,width:v.width-2*$.padding,height:b.autoDimensions?"auto":v.height-S-2*$.padding}),t?e():(E.prop=0,s(E).animate({prop:1},{duration:$.changeSpeed,easing:$.easingChange,step:L,complete:e}))})):(i.removeAttr("style"),f.css("border-width",$.padding),"elastic"==$.transitionIn?(g=q(),f.html(u.contents()),i.show(),$.opacity&&(v.opacity=0),E.prop=0,s(E).animate({prop:1},{duration:$.speedIn,easing:$.easingIn,step:L,complete:I})):("inside"==$.titlePosition&&0 | '+e+' | |
':''+e+"
"))&&""!==O))switch(h.addClass("fancybox-title-"+$.titlePosition).html(O).appendTo("body").show(),$.titlePosition){case"inside":h.css({width:v.width-2*$.padding,marginLeft:$.padding,marginRight:$.padding}),S=h.outerHeight(!0),h.appendTo(t),v.height+=S;break;case"over":h.css({marginLeft:$.padding,width:v.width-2*$.padding,bottom:$.padding}).appendTo(t);break;case"float":h.css("left",-1*parseInt((h.width()-v.width-40)/2,10)).appendTo(i);break;default:h.css({width:v.width-2*$.padding,paddingLeft:$.padding,paddingRight:$.padding}).appendTo(i)}h.hide()},I=function(){var e,t;s.support.opacity||(s("#fancybox-content").css("filter",0),s("#fancybox-wrap").css("filter",0)),b.autoDimensions&&f.css("height","auto"),i.css("height","auto"),O&&O.length&&h.show(),$.showCloseButton&&r.show(),($.enableEscapeButton||$.enableKeyboardNav)&&s(document).bind("keydown.fb",function(e){27==e.keyCode&&$.enableEscapeButton?(e.preventDefault(),s.fancybox.close()):37!=e.keyCode&&39!=e.keyCode||!$.enableKeyboardNav||"INPUT"===e.target.tagName||"TEXTAREA"===e.target.tagName||"SELECT"===e.target.tagName||(e.preventDefault(),s.fancybox[37==e.keyCode?"prev":"next"]())}),$.showNavArrows?(($.cyclic&&1').appendTo(f),i.show(),A=!1,s.fancybox.center(),$.onComplete(j,C,$),j.length-1>C&&(void 0!==(e=j[C+1].href)&&e.match(T)&&((t=new Image).src=e));0e[0]||t.height>e[1])&&("image"==b.type||"swf"==b.type?(n=$.width/$.height,t.width>e[0]&&(t.width=e[0],t.height=parseInt((t.width-i)/n+i,10)),t.height>e[1]&&(t.height=e[1],t.width=parseInt((t.height-i)*n+i,10))):(t.width=Math.min(t.width,e[0]),t.height=Math.min(t.height,e[1]))),t.top=parseInt(Math.max(e[3]-20,e[3]+.5*(e[1]-t.height-40)),10),t.left=parseInt(Math.max(e[2]-20,e[2]+.5*(e[0]-t.width-40)),10),t},q=function(){var e,t=!!b.orig&&s(b.orig);return t&&t.length?((e=(t=t).offset()).top+=parseInt(t.css("paddingTop"),10)||0,e.left+=parseInt(t.css("paddingLeft"),10)||0,e.top+=parseInt(t.css("border-top-width"),10)||0,e.left+=parseInt(t.css("border-left-width"),10)||0,e.width=t.width(),e.height=t.height(),{width:(t=e).width+2*$.padding,height:t.height+2*$.padding,top:t.top-$.padding-20,left:t.left-$.padding-20}):(e=a(),{width:2*$.padding,height:2*$.padding,top:parseInt(e[3]+.5*e[1],10),left:parseInt(e[2]+.5*e[0],10)})};s.fn.fancybox=function(e){return s(this).length&&s(this).data("fancybox",s.extend({},e,s.metadata?s(this).metadata():{})).unbind("click.fb").bind("click.fb",function(e){e.preventDefault(),A||(A=!0,s(this).blur(),w=[],y=0,(e=s(this).attr("rel")||"")&&""!=e&&"nofollow"!==e?(w=s("a[rel="+e+"], area[rel="+e+"]"),y=w.index(this)):w.push(this),o())}),this},s.fancybox=function(e){var t;if(!A){if(A=!0,t=void 0!==arguments[1]?arguments[1]:{},w=[],y=parseInt(t.index,10)||0,s.isArray(e)){for(var n=0,i=e.length;nw.length||y<0)&&(y=0),o()}},s.fancybox.showActivity=function(){clearInterval(e),d.show(),e=setInterval(z,66)},s.fancybox.hideActivity=function(){d.hide()},s.fancybox.next=function(){return s.fancybox.pos(C+1)},s.fancybox.prev=function(){return s.fancybox.pos(C-1)},s.fancybox.pos=function(e){A||(e=parseInt(e),w=j,-1=j.length?0:j.length-1,o()))},s.fancybox.cancel=function(){A||(A=!0,s.event.trigger("fancybox-cancel"),l(),b.onCancel(w,y,b),A=!1)},s.fancybox.close=function(){var e;function t(){n.fadeOut("fast"),h.empty().hide(),i.hide(),s.event.trigger("fancybox-cleanup"),f.empty(),$.onClosed(j,C,$),j=b=[],C=y=0,$=b={},A=!1}A||i.is(":hidden")||(A=!0,$.onCleanup&&$&&!1===$.onCleanup(j,C,$)?A=!1:(l(),s(r.add(p).add(m)).hide(),s(f.add(n)).unbind(),s(window).unbind("resize.fb scroll.fb"),s(document).unbind("keydown.fb"),f.find("iframe").attr("src","about:blank"),"inside"!==$.titlePosition&&h.empty(),i.stop(),"elastic"==$.transitionOut?(g=q(),e=i.position(),v={top:e.top,left:e.left,width:i.width(),height:i.height()},$.opacity&&(v.opacity=1),h.empty().hide(),E.prop=1,s(E).animate({prop:0},{duration:$.speedOut,easing:$.easingOut,step:L,complete:t})):i.fadeOut("none"==$.transitionOut?0:$.speedOut,t)))},s.fancybox.resize=function(){n.is(":visible")&&n.css("height",s(document).height()),s.fancybox.center(!0)},s.fancybox.center=function(){var e,t;A||(t=!0===arguments[0]?1:0,e=a(),!t&&(i.width()>e[0]||i.height()>e[1]))||i.stop().animate({top:parseInt(Math.max(e[3]-20,e[3]+.5*(e[1]-f.height()-40)-$.padding)),left:parseInt(Math.max(e[2]-20,e[2]+.5*(e[0]-f.width()-40)-$.padding))},"number"==typeof arguments[0]?arguments[0]:200)},s.fancybox.init=function(){s("#fancybox-wrap").length||(s("body").append(u=s(''),d=s(''),n=s(''),i=s('')),(t=s('').append('').appendTo(i)).append(f=s(''),r=s(''),h=s(''),p=s(''),m=s('')),r.click(s.fancybox.close),d.click(s.fancybox.cancel),p.click(function(e){e.preventDefault(),s.fancybox.prev()}),m.click(function(e){e.preventDefault(),s.fancybox.next()}),s.fn.mousewheel&&i.bind("mousewheel.fb",function(e,t){A?e.preventDefault():0!=s(e.target).get(0).clientHeight&&s(e.target).get(0).scrollHeight!==s(e.target).get(0).clientHeight||(e.preventDefault(),s.fancybox[0=a&&(T=c.top)<=K&&(S=c.right)>=a*u&&(_=c.left)<=G&&(O||S||_||T)&&(p.loadHidden||re(d[t]))&&(k&&P<3&&!r&&(x<3||N<4)||function(e,t){var n,i=e,o=re(e);for(T-=t,O+=t,_-=t,S+=t;o&&(i=i.offsetParent)&&i!=f.body&&i!=m;)(o=0<(C(i,"opacity")||1))&&"visible"!=C(i,"overflow")&&(n=i.getBoundingClientRect(),o=S>n.left&&_n.top-1&&T')).click(function(){e.click()}),$("body").off("keydown"),$("*").blur(),$("body").append(t),$("#loadingLayer").show(loadingLayerSettingDuration),isLoadingLayerSet+=e.value)},removeLoadingLayer=function(){--isLoadingLayerSet<=0&&(isLoadingLayerSet=0,$("#loadingLayer").hide(loadingLayerSettingDuration,function(){$("body").on("keydown"),$("#loadingLayer").remove()}))};function initClickTooltip(){0')).html(e.result),$("body").append(n);var t,e=$(".panel-link.logged"),n=n.find("#logged-in-username");e.length&&n.length&&((t=$('')).find("#login_user_name").append(n.text()),e.append(t),e.mouseenter(function(){t.addClass("open_login_box")}),e.mouseleave(function(){t.removeClass("open_login_box")}))}function slideToElement(e){e.length&&$("html,body").animate({scrollTop:e.offset().top-10},500)}function urlParam(e){try{var t=decodeURIComponent(window.location.search.replace(/\+/g," "))}catch(e){return!1}for(var n,i=new RegExp("[\\?&]"+e+"=([^]*)"),o=[];(n=i.exec(t))&&(t=t.replace(i,""),o.push(n[1])),n;);switch(o.length){case"0":return!1;case"1":return o[0];default:return o}}function sendVirtualPageView(){var e={componentName:"GoogleAnalyticsEcommerceTracking",componentInstanceName:"VirtualPageView",data:{pageType:window.location.pathname},onSuccess:function(e){var t;e.hasErrors||((t=$('')).html(e.result),$("body").append(t))}};(new NA.ajaxComponentLoader).execute(e)}function sendAjaxProductPage(e){var t=window.location.pathname,e={componentName:"GoogleAnalyticsEcommerceTracking",componentInstanceName:"AjaxProductPage",data:{category:null!=e?e:t},onSuccess:function(e){var t;e.hasErrors||((t=$('')).html(e.result),$("body").append(t))}};(new NA.ajaxComponentLoader).execute(e)}function collectDomains(e){var t,n=[];for(t in e){var i=e[t];".eu"!==i.type&&[".net",".info",".org",".biz",".com"].includes(i.type)&&i.type,n.push({id:i.name,price:100*i.price,currency:"PLN",qty:1,item:{baseObjectType:"DOMAIN_TYPE",objectType:i.type,features:{}}})}return n}async function setGlobalLanguage(e){e&&multiLanguageEnabled()&&(setRegionalCookie("country",e=e.slice(-2).toLowerCase()),setRegionalCookie("url-country",e),setRegionalCookie("useCountryDetection",1),globalConfigParams.homepage="/"+e+"/",clientLogoutByAjax(async e=>{var t;!e.hasErrors&&(await executeCountryCheck(!1,1),e=getReferrer())&&((t=document.createElement("form")).method="POST",t.action=e,document.body.appendChild(t),t.submit())}))}function getReferrer(){return"production"!==globalConfigParams.env?"/":window.chooseCountryReferrer&&window.chooseCountryReferrer.includes(location.origin)?window.chooseCountryReferrer.replace(window.location.origin,""):null}function setCountryCookieBasedOnPath(){var e,t;multiLanguageEnabled()&&!isNotCachedPage()&&(e=window.location.pathname.split("/").filter(e=>e).shift(),t=NA.cookieContainer.getCookie("country"),e&&2===e.length?setRegionalCookie("country",e):t||setRegionalCookie("country","gb"))}function clientLogoutByAjax(e){var t={componentName:"ClientLogout",componentInstanceName:"ClientLogoutJson",data:{isChangeCountryRequest:1}};t.onSuccess=e,(new NA.ajaxComponentLoader).execute(t)}function getCountryUrlPrefix(){return"/"===globalConfigParams.homepage&&(globalConfigParams.homepage="/us/"),globalConfigParams.homepage}async function executeCountryCheck(o=!0,e=0){if(multiLanguageEnabled()&&!isNotCachedPage())return new Promise((n,i)=>{$.ajax({type:"post",url:getCountryUrlPrefix()+"?countryCheck",dataType:"json",mode:"abort",data:{reqType:"countryCheck",isChangeCountryRequest:e},timeout:5e3}).done(e=>{if(e.status&&e.cookies){for(const t in e.cookies)setRegionalCookie(t,e.cookies[t]);(e.reload&&o?(window.location.href="/",i):n)()}else n()}).fail(i)})}function setRegionalCookie(e,t){t?NA.cookieContainer.setCookie(e,t,null,"/"):NA.cookieContainer.removeCookie(e,"/")}function multiLanguageEnabled(){return Boolean(parseInt(globalConfigParams.multiLanguage))}function isNotCachedPage(){return Boolean(parseInt(globalConfigParams.isNotCachedPage))}function setStatClick(){var e=new NA.ajaxComponentLoader;NA.statClick.execute(e,window.location.href,$("body"),NA.cookieContainer),NA.pkLeadId.execute(NA.cookieContainer),(new NA.ajaxComponentContainer).run()}openSelectedTab=function(e,t,n){(e=parseInt(e))<=$(t).length&&((selectedTabObject=$(t+":eq("+(e-1)+")")).click(),n)&&slideToElement($(n))},openSelectedNATab=function(e){openSelectedTab(e,"ul.list-tab2 li a:not(.external)")};var impressionsListName="";function GoogleAnalyticsEcommerceTracking(e){const n={EMAIL_SERVER_TYPE:function(e){return e.find("input[name=emailServerType]").val()},SERVER_TYPE:function(e){return e.find("input[name=serverType]").val()},CERTIFICATE_STAND_ALONE_TYPE:function(e){return e.find("input[name=sslType]").val()},ANTIVIRUS_TYPE:function(e){return e.find("input[name=antivirusType]").val()},PREMIUM_SUPPORT_TYPE:function(e){return e.find("input[name=premiumSupportType]").val()}};this.getProductFromForm=function(e){var t=i(e);return void 0!==t?{id:e=t+" "+n[t](e),name:e,category:t,brand:"nazwa.pl",quantity:1}:null},this.sendDataLayer=function(e){window.dataLayer.push(JSON.parse(e))},this.getOldPhpVersionProduct=function(){return{id:"OBJECT_EXTENSION_TYPE ACTIVE_OLD_PHP_VERSION",name:"OBJECT_EXTENSION_TYPE ACTIVE_OLD_PHP_VERSION",brand:"Nazwa.pl",category:"OBJECT_EXTENSION_TYPE",quantity:1}},this.getDedicatedIpAddressProduct=function(){return{id:"OBJECT_EXTENSION_TYPE ACTIVE_DEDICATED_IP_ADDRESS",name:"OBJECT_EXTENSION_TYPE ACTIVE_DEDICATED_IP_ADDRESS",brand:"Nazwa.pl",category:"OBJECT_EXTENSION_TYPE",quantity:1}},this.getEmailIpAddressToCartEvent=function(e){return{id:"OBJECT_EXTENSION_TYPE "+e,name:"OBJECT_EXTENSION_TYPE ACTIVE_DEDICATED_IP_ADDRESS"+e,brand:"Nazwa.pl",category:"OBJECT_EXTENSION_TYPE",quantity:1}},this.getVpsAdditionalIpAddressProduct=function(){return{id:"OBJECT_EXTENSION_TYPE VPS2_ADDITIONAL_IP_ADDRESS",name:"OBJECT_EXTENSION_TYPE VPS2_ADDITIONAL_IP_ADDRESS",brand:"Nazwa.pl",category:"OBJECT_EXTENSION_TYPE",quantity:1}},this.getRevDnsProduct=function(e){return{id:"OBJECT_EXTENSION_TYPE "+e,name:"OBJECT_EXTENSION_TYPE "+e,brand:"Nazwa.pl",category:"OBJECT_EXTENSION_TYPE",quantity:1}},this.getVpsRevDnsProduct=function(){return{id:"OBJECT_EXTENSION_TYPE VPS2_REVERSE_DNS",name:"OBJECT_EXTENSION_TYPE VPS2_REVERSE_DNS",brand:"Nazwa.pl",category:"OBJECT_EXTENSION_TYPE",quantity:1}},this.getAddActiveAdditionalSpaceProduct=function(e){return{id:"OBJECT_EXTENSION_TYPE "+e,name:"OBJECT_EXTENSION_TYPE "+e,brand:"Nazwa.pl",category:"OBJECT_EXTENSION_TYPE",quantity:1}},this.hasDedicatedIpAddress=function(e){return"true"===e.find("input[name=individualIpAddress]").val()},this.setImpressionsListName=function(e){impressionsListName=e},this.getImpressionsListName=function(){return impressionsListName};var i=function(e){return e.find("input[name=serviceType]").val()}}var googleAnalyticsEcommerceTracking=new GoogleAnalyticsEcommerceTracking;function AddToCartEventTracking(s){window.dataLayer=window.dataLayer||[],s=jQuery.extend({impressionsListName:""},s);var l=this,c=(this.init=function(){$(document).ready(function(){var e=$(document).find(".product_column form, .box-offer form"),t=$(document).find(".last_spec_tr td form"),n=$(document).find(".hide-for-small-only form").closest("form"),i=$(document).find(".addToCartEventTracking");o(e,1),o(t,1),o(n,e.length),o(i,1),a()})},this.sendAddToCartEvent=function(e){window.dataLayer.push({event:"addToCart",ecommerce:{add:{actionField:{list:t()},products:e}}})},this.sendAddOldPhpVersionToCartEvent=function(){this.sendAddToCartEvent([googleAnalyticsEcommerceTracking.getOldPhpVersionProduct()])},this.sendAddDedicatedIpAddressToCartEvent=function(){this.sendAddToCartEvent([googleAnalyticsEcommerceTracking.getDedicatedIpAddressProduct()])},this.sendAddEmailIpAddressToCartEvent=function(e){this.sendAddToCartEvent([googleAnalyticsEcommerceTracking.getEmailIpAddressToCartEvent(e)])},this.sendAddVpsAdditionalIpAddressToCartEvent=function(){this.sendAddToCartEvent([googleAnalyticsEcommerceTracking.getVpsAdditionalIpAddressProduct()])},this.sendAddRevDnsToCartEvent=function(e){this.sendAddToCartEvent([googleAnalyticsEcommerceTracking.getRevDnsProduct(e)])},this.sendAddVpsRevDnsToCartEvent=function(){this.sendAddToCartEvent([googleAnalyticsEcommerceTracking.getVpsRevDnsProduct()])},this.sendAddActiveAdditionalSpaceToCartEvent=function(e){this.sendAddToCartEvent([googleAnalyticsEcommerceTracking.getAddActiveAdditionalSpaceProduct(e)])},function(e){return googleAnalyticsEcommerceTracking.getProductFromForm(e)}),u=function(e){return e.find("input[name=quantity]").length?parseInt(e.find("input[name=quantity]").val()):1},o=function(a,r){a.each(function(){var o=$(this);o.on("submit.AddToCartEventTracking",function(e){var t,n,i;o.is(":visible")&&(t=$.extend(c(o),{list:s.impressionsListName,position:a.index(this)+r}),n=u(o),(i=[]).length=n,i.fill(t,0,n),googleAnalyticsEcommerceTracking.hasDedicatedIpAddress(o)&&i.push(googleAnalyticsEcommerceTracking.getDedicatedIpAddressProduct()),l.sendAddToCartEvent(i))})})},a=function(){$(document).on("click","#domainsOrderSubmitButton",function(e){var t=$(".search-domain-box-content ul li a.button.chose:not(.ng-hide) span span").parents("li").find("div").first();t.length&&(t=2<(t=t.data("name").split(".")).length?"."+t[t.length-2]+"."+t[t.length-1]:"."+t[t.length-1],l.sendAddToCartEvent({id:"DOMAIN_TYPE "+t,name:"DOMAIN_TYPE "+t,brand:"Nazwa.pl",category:"DOMAIN_TYPE",list:s.impressionsListName,position:1,quantity:1}))})},t=function(){return s.impressionsListName||window.location.pathname}}function RemoveFromCartEventTracking(e){window.dataLayer=window.dataLayer||[],e=jQuery.extend({deleteRow:"",impressionsListName:""},e),this.update=function(e,t){if(t.response.result&&t.response.result.result.length){for(var n=t.response.result.result,i=[],o=0;o{$(i).on("click",e=>{var t=$(i).closest(".objectContainer").find(a.css.setPromotion).is(":checked");let n={};void 0!==$(i).data("masterobjecthash")&&(n={masterObjectHash:$(i).data("masterobjecthash")}),void 0!==$(i).data("masterobjectid")&&(n={masterObjectId:$(i).data("masterobjectid"),additionalIpAddressOrderLimit:$(i).data("additionalipaddressorderlimit")}),o(t,n)})}),$(a.css.decrementVpsIpLocation).each((e,t)=>{$(t).on("click",e=>{p({reqType:"Ajax",serviceHash:$(t).data("servicehash"),single:!0})})})},r.initVpsAdditionalIpAddressSwitcher=function(){$(".vps-additional-ip-switcher").each((e,t)=>{const n=$(t);i(n,function(t){if(t){t=n.closest(".objectContainer").find(a.css.setPromotion).is(":checked");let e={};void 0!==n.data("masterobjecthash")&&(e={masterObjectHash:n.data("masterobjecthash")}),void 0!==n.data("masterobjectid")&&(e={masterObjectId:n.data("masterobjectid"),additionalIpAddressOrderLimit:n.data("additionalipaddressorderlimit")}),o(t,e)}else s(n.data("masterobjecthash"),n.data("extensiontype"))})})},r.initVpsRevDnsSwitcher=function(){$(".vps-rev-dns-switcher").each(function(){const t=$(this);i(t,function(e){e?(e=t.closest(".objectContainer").find(a.css.setPromotion).is(":checked"),n(t.data("masterobjecthash"),e)):s(t.data("masterobjecthash"),t.data("extensiontype"))})})},r.setChangeVpsOperatingSystemHandler=function(){$(a.css.vpsOperatingSystem).each(function(){const e=$(this);e.sSelect(),e.change(function(){t(e)})})},r.setChangeVpsDirectAdminOperatingSystemHandler=function(){$(a.css.vpsDirectAdminOperatingSystem).each(function(){const e=$(this);e.sSelect(),e.change(function(){c(e)})})},r.setDirectAdminHandler=function(){$(a.css.directAdminAdd).on("click",function(){var e,t;$(this).hasClass("active-green")?($(this).find(".switcher").removeClass("active_suwak"),$(this).removeClass("active-green"),d($(this).find(a.css.serviceHash).val())):($(this).find(".switcher").addClass("active_suwak"),$(this).addClass("active-green"),e=$(this).parents(".objectContainer").find(a.css.serviceHash).val(),t=$(this).parents(".objectContainer").find(a.css.hasPromotion).is(":checked"),u(e,t))})},r.setChangeVpsRevDnsHandler=function(){$(a.css.setVpsRevDns).each(function(e,t){$(t).change(function(){l($(t))})})},r.setVpsType=function(){$(a.css.vpsType).each(function(){const e=$(this);e.sSelect(),e.change(function(){y(e)})})},function(e,t){e.on("click",function(){$(this).hasClass("active-green")?($(this).find(".switcher").removeClass("active_suwak"),$(this).removeClass("active-green"),t(!1)):($(this).find(".switcher").addClass("active_suwak"),$(this).addClass("active-green"),t(!0))})}),o=function(e,t){e={componentName:"ServicesAddToShoppingCart",componentInstanceName:"ServicesAddToShoppingCart",data:{reqType:"Ajax",serviceType:"OBJECT_EXTENSION_TYPE",objectExtension:"VPS2_ADDITIONAL_IP_ADDRESS",serviceReadyForAddToCart:"true",promotionName:e?"PROMOTION_DEFAULT":""}},t.additionalIpAddressOrderLimit&&(e.data.features.additionalIpAddressOrderLimit=t.additionalIpAddressOrderLimit),delete t.additionalIpAddressOrderLimit,jQuery.extend(e.data,t),r.sendAjaxRequest(e)},n=function(e,t){e={componentName:"ServicesAddToShoppingCart",componentInstanceName:"ServicesAddToShoppingCart",data:{reqType:"Ajax",serviceType:"OBJECT_EXTENSION_TYPE",objectExtension:"VPS2_REVERSE_DNS",serviceReadyForAddToCart:"true",masterObjectHash:e,promotionName:t?"PROMOTION_DEFAULT":""}},jQuery.extend(e.data),r.sendAjaxRequest(e)},s=function(e,t){e={componentName:a.removeItemComponentName,componentInstanceName:a.removeItemComponentInstanceName,data:{reqType:"Ajax",masterHash:e,extensionType:t}},jQuery.extend(e.data),r.sendAjaxRequest(e)},l=function(e){var t,n=e.data("servicehash");e.is(":checked")?(t={reqType:"Ajax",serviceType:"OBJECT_EXTENSION_TYPE",objectExtension:"VPS2_REVERSE_DNS",serviceReadyForAddToCart:"true",promotionName:e.parents(".objectContainer").find(a.css.hasPromotion).is(":checked")?"PROMOTION_DEFAULT":"",features:{}},void 0!==e.data("ipaddresshash")&&(t.features.ipAddressHash=e.data("ipaddresshash")),void 0!==e.data("ipaddressobjectid")&&(t.features.ipAddressObjectId=e.data("ipaddressobjectid")),void 0!==e.data("masterobjecthash")&&(t.masterObjectHash=e.data("masterobjecthash")),void 0!==e.data("masterobjectid")&&(t.masterObjectId=e.data("masterobjectid")),g(t)):v(n)},t=function(e){const t=e.parents(".objectContainer").find(a.css.serviceHash).val(),n=e.parents(".objectContainer").find(a.css.hasPromotion).is(":checked");if(e.data("initValue")===e.val())return!1;var i={serviceHash:t,name:"vpsOperatingSystem",value:e.val()};let o;e.find(":selected").data("directadmin")&&(o=function(){var e={masterObjectHash:t,objectExtension:"VPS2_DIRECT_ADMIN",promotionName:n?"PROMOTION_DEFAULT":""};h(e)}),f(i,o)},c=function(e){var t=e.data("servicehash");if(e.data("initValue")===e.val())return!1;t={serviceHash:t,name:"vpsOperatingSystem",value:e.val()},f(t)},u=function(e,t){e={masterObjectHash:e,objectExtension:"VPS2_DIRECT_ADMIN",promotionName:t?"PROMOTION_DEFAULT":""},h(e)},d=function(e){e={reqType:"Ajax",serviceHash:e,single:!0},p(e)},f=function(e,t){var n={componentName:"ShoppingCartChangeItemFeature",componentInstanceName:"ShoppingCartChangeItemFeature",data:{reqType:"Ajax"}};"function"==typeof t&&(n.onSuccess=t),jQuery.extend(n.data,e),r.sendAjaxRequest(n)},h=function(e){var t={componentName:"ServicesAddToShoppingCart",componentInstanceName:"ServicesAddToShoppingCart",data:{reqType:"Ajax",serviceType:"OBJECT_EXTENSION_TYPE",serviceReadyForAddToCart:"true"}};jQuery.extend(t.data,e),r.sendAjaxRequest(t)},p=function(e){e={componentName:"ShoppingCartRemoveItem",componentInstanceName:"ShoppingCartRemoveItem",data:e},r.sendAjaxRequest(e)},m=function(e){e={componentName:"ServicesAddToShoppingCart",componentInstanceName:"ServicesAddToShoppingCart",data:e},r.sendAjaxRequest(e)},g=function(e){e={componentName:"ServicesAddToShoppingCart",componentInstanceName:"ServicesAddToShoppingCart",data:e},r.sendAjaxRequest(e)},v=function(e){e={componentName:a.removeItemComponentName,componentInstanceName:a.removeItemComponentInstanceName,data:{reqType:"Ajax",serviceHash:e,single:!0}},jQuery.extend(e.data),r.sendAjaxRequest(e)},y=function(t){var e=t.parents(".objectContainer").find(a.css.serviceHash).val();const n=t.parents(".objectContainer").find(a.css.hasPromotion).is(":checked"),i=t.parents(".objectContainer").find(".itemPeriod input:checked").val(),o=t.find("option[value="+t.val()+"]").data("default-os");if(t.data("init-value")===t.val())return!1;e={componentName:"ShoppingCartRemoveItem",componentInstanceName:"ShoppingCartRemoveItem",data:{reqType:"Ajax",serviceHash:e,single:!0},onSuccess:function(){var e={reqType:"Ajax",serviceType:"SERVER_TYPE",serverType:t.val(),serviceReadyForAddToCart:"true",promotionName:n?"PROMOTION_DEFAULT":"",period:i,vpsOperatingSystem:o};m(e)}},r.sendAjaxRequest(e)},b=(r.setVpsLocationHandler=function(){$(a.css.vpsLocation).each(function(){const e=$(this);e.sSelect(),e.change(function(){b(e)})})},function(e){var t=e.parents(".objectContainer").find(a.css.serviceHash).val();if(e.data("initValue")===e.val())return!1;t={serviceHash:t,name:"vpsLocation",value:e.val()},f(t)})}function SaasConfigurationController(e,t){const i=this,n=(i.sendAjaxRequest=t,i.execute=function(){n()},()=>{$("[name=objectConfig_saasLocation], [name=objectConfig_saasVersion]").each((e,i)=>{$(i).sSelect().change(()=>{var e=$(i).data("feature"),t=$(i).val(),n=o($(i));a(n,e,t)})})}),o=e=>e.parentsUntil(".objectContainer").parent().find("[name='serviceHash[]']").val(),a=function(e,t,n){i.sendAjaxRequest({componentName:"ShoppingCartChangeItemFeature",componentInstanceName:"ShoppingCartChangeItemFeature",data:{reqType:"Ajax",serviceHash:e,name:t,value:n}})}}function IpLocationConfigurationController(i,e){var n=this,o=(i=$.extend(!0,{css:{ipLocation:"select[name=objectConfig_ipLocation]",cloudHostingPpuIpLocation:"select[name=objectConfig_cloudHostingPpuIpLocation]",serviceHash:"input[name='serviceHash[]']",hasPromotion:"input[name=setPromotion]"}},i||{}),n.sendAjaxRequest=e,n.execute=function(){n.setChangeIpLocationHandler()},n.setChangeIpLocationHandler=function(){$(i.css.ipLocation).each(function(){let t=$(this);if(t.is(":visible")){t.sSelect();let e=t.hasClass("cloudHostingPpuIpLocationSelect")?"cloudHostingPpuIpLocation":"ipLocation";t.change(function(){o(t,e)})}})},function(e,t){if(e.parents(".objectContainer").find(i.css.serviceHash).val(),e.parents(".objectContainer").length){if(n=e.data("servicehash"),e.data("initValue")===e.val())return!1;var n={serviceHash:n,name:t,value:e.val()};a(n)}}),a=function(e){var t={componentName:"ShoppingCartChangeItemFeature",componentInstanceName:"ShoppingCartChangeItemFeature",data:{reqType:"Ajax"}};jQuery.extend(t.data,e),n.sendAjaxRequest(t)}}function CartController(a){Observable.call(this);var r=this,s=(a=$.extend(!0,{removeItemComponentName:void 0,removeItemComponentInstanceName:void 0,changeItemPeriodComponentName:void 0,changeItemPeriodInstanceName:void 0,setClientInfoComponentName:void 0,setClientInfoInstanceName:void 0,changeItemPromotionComponentName:void 0,changeItemPromotionInstanceName:void 0,changeClientStatusComponentName:void 0,changeClientStatusInstanceName:void 0,addVoucherComponentName:void 0,addVoucherInstanceName:void 0,removeVoucherComponentName:void 0,removeSingleVoucherInstanceName:void 0,updateMasterObjectComponentName:void 0,updateMasterObjectInstanceName:void 0,css:{period:"input.period",promotionName:"input.variant",setPromotion:'input[name="setPromotion"]',clientSendInfo:'input[name="clientSendInfo"]',rollContainer:"div.roll-container",rollDeleteRow:"a.roll-delete-row",clientStatus:'select[name="clientStatus"]',addVoucher:'input[name="addVoucher"]',serviceHash:'input[name="serviceHash[]"]',voucherCode:'input[name="voucherCode"]',itemVoucherCode:'input[name="itemVoucherCode"]',cartItemsGroup:'input[name="cartItemsGroup"]',voucherType:'input[name="voucherType"]',cartItem:'input[name="cartItem"]',confirmOrder:".proceed-login a",confirmOrderLogged:"#resume-confirm-button",removeSingleVoucher:"div.remove-voucher",availableMasterObject:"select.available-master-objects",expandableHandler:".expandable-handler",cdnVoucher:"#cdnVoucher",activeBackupOrderSelect:".active-backup-select.order",activeBackupChangeSelect:".active-backup-select.change",domainSelect:"select.domain-period-select"}},a||{}),r.execute=function(){r.initVpsConfigurationController(),r.initIpLocationConfigurationController(),r.initRollContent(),r.setRemoveItemsHandler(),r.setChangeItemPeriodHandler(),r.setChangeItemPromotionHandler(),r.setChangeClientStatusHandler(),r.addVoucherHandler(),r.removeSingleVoucherHandler(),r.initDedicatedIpAddressSwitcher(),r.initStandardImageConversionSwitcher(),r.initExtensionSwitcher(),r.initRevDnsSwitcher(),r.initActiveAdditionalSpaceSwitcher(),r.initMigrationSwitcher(),r.initRegulationsValidator(),r.confirmOrderHandler(),r.confirmOrderLoggedHandler(),r.toggleChangeItemPromotionHandler(),r.bindRegulations(),r.toggleChangeClientSendInfo(),r.initAvailableMasterObject(),r.initExpandableItemAdditives(),r.expandAdditionalExtensions(),r.cdnVoucherRadio(),r.initActiveBackupSwitcher(),r.initActiveBackupOrderSelect(),r.initActiveBackupChangeSelect(),r.initEmailOptionChange(),r.initAdditionalSpaceOptionChange(),r.initAdditionalSpaceOptionChangeStandalone(),r.initDomainSelect(),r.initSaasConfigurationController()},r.initAdditionalSpaceOptionChange=()=>{$(".additional-space-switcher").each((e,t)=>{const n=(t=$(t)).parentsUntil(".objectExtensionContainer").parent().find("[name=objectConfig_additionalSpace]"),i=n.data("servicehash");o(t,e=>{e?(e=t.data("masterobjecthash"),(e=$("[name=objectConfig_additionalSpace][data-masterobjecthash="+e+"]")).length&&u(t.data("masterobjecthash"),!1,e.val())):m(t.data("servicehash"))}),n.sSelect().change(()=>{t.hasClass("active-green")&&m(i,()=>{u(n.data("masterobjecthash"),!1,n.val())})})})},r.initAdditionalSpaceOptionChangeStandalone=()=>{$("[name=objectConfig_additionalSpaceStandalone]").each((e,l)=>{(l=$(l)).sSelect(),l.change(e=>{var t=l.data("servicehash");const n=l.data("masterobjectid"),i=l.val(),o=l.data("frontmasterobjectname"),a=l.data("allowmasterobjectchange");var r=l.data("changetype")||!1;const s={additionalSpaceAlreadyOrdered:l.data("additionalspacealreadyordered")||!1,changeType:r,associatedExtension:l.data("associatedextension")||!1};1{d(n,i,o,a,s)})})})},r.initDomainSelect=function(){$(a.css.domainSelect).each((e,t)=>{$(t).sSelect(),$(t).change(g)})},r.initActiveBackupSwitcher=function(){$(".active-backup-switcher").each(function(){const t=$(this);o(t,function(e){e?(e=t.data("masterobjecthash"),(e=$("[name=objectConfig_activeBackup][data-masterobjecthash="+e+"]")).length&&u(t.data("masterobjecthash"),!1,e.val())):m(t.data("servicehash"))})})},r.initActiveBackupOrderSelect=()=>{$(a.css.activeBackupOrderSelect).each((e,t)=>{(t=$(t)).sSelect();const n=t.data("servicehash");t.filter(".active").change(()=>{m(n,()=>{u(t.data("masterobjecthash"),!1,t.val())})})})},r.initActiveBackupChangeSelect=()=>{$(a.css.activeBackupChangeSelect).each((e,t)=>{(t=$(t)).sSelect();const n=t.data("servicehash"),i=t.data("masterobjectid"),o=t.data("currentactivebackup"),a=t.data("frontmasterobjectname"),r=t.data("allowmasterobjectchange");t.change(()=>{const e=t.val();1{f(n,i,o,e,a,r)})})})},r.initEmailOptionChange=()=>{$("[name=activeEmailType]").each((e,t)=>{$(t).change(e=>{var t=$(e.target).parentsUntil(".objectExtensionContainer").parent(),n=t.find("[name='serviceHash[]']").val();const i=t.find(".email-with-ip-switcher").data("masterobjecthash"),o=$(e.target).val();m(n,()=>{u(i,!1,o)})})})},r.initVpsConfigurationController=function(){new VpsConfigurationController(a,j).execute()},r.bindRegulations=function(){var n=$('.acceptRegulations input[type="checkbox"]');$("#acceptAll").click(function(){var t=$(this).is(":checked");n.each(function(){var e;"acceptAll"!==$(this).attr("id")&&(e=$(this).is(":checked"),t&&!e||!t&&e)&&$(this).click()})}),n.click(function(){var e=!0;n.each(function(){"acceptAll"==$(this).attr("id")||$(this).is(":checked")||(e=!1)}),e?$("#acceptAll").attr("checked","checked"):$("#acceptAll").removeAttr("checked","checked")})},r.initIpLocationConfigurationController=function(){new IpLocationConfigurationController(a,j).execute()},r.initRollContent=function(){0 h3").click(function(){jQuery(this).parent().find(".roll-content").is(":visible")?(jQuery(this).addClass("off"),jQuery(this).parent().find(".roll-content").slideUp("slow")):(jQuery(this).removeClass("off"),jQuery(this).parent().find(".roll-content").slideDown("slow"))})},r.setRemoveItemsHandler=function(e){var t=$(a.css.rollContainer).find(a.css.rollDeleteRow);e?(t.unbind("click"),t.click(function(){return!1})):t.click(p)},r.setChangeItemPeriodHandler=function(){$(a.css.period).change(g)},r.setChangeItemPromotionHandler=function(){$(a.css.promotionName).change(e)},r.toggleChangeItemPromotionHandler=function(){$(a.css.setPromotion).change(e)},r.toggleChangeClientSendInfo=function(){$(a.css.clientSendInfo).change(v)},r.initAvailableMasterObject=function(){var e=$(a.css.availableMasterObject);e.sSelect(),e.change(t)},r.initExpandableItemAdditives=function(){$(a.css.expandableHandler).each(function(){var e=$(this),t=e.find(".expand-btn.expand"),n=e.find(".expand-btn.collapse"),i=(e=e.parentsUntil(".objectContainer").parent()).find(".expandable-content").first(),o=e.find("[name='serviceHash[]']").val();t.click(function(e){e.preventDefault(),t.hide(),n.show(),i.finish().slideDown(),l(o)}),n.click(function(e){e.preventDefault(),t.show(),n.hide(),i.finish().slideUp(),s(o)})})},function(t){var e=(e=JSON.parse(NA.cookieContainer.getCookie("expandedServicesAdditions")||"[]")).filter(function(e){return e!==t});NA.cookieContainer.setCookie("expandedServicesAdditions",JSON.stringify(e))}),l=function(e){s(e);var t=JSON.parse(NA.cookieContainer.getCookie("expandedServicesAdditions")||"[]");t.push(e),NA.cookieContainer.setCookie("expandedServicesAdditions",JSON.stringify(t))},t=function(e){var t=$(e.target).data("servicehash"),n=parseInt($(e.target).val());n!==parseInt($(e.target).data("masterobjectid"))&&(e={componentName:a.updateMasterObjectComponentName,componentInstanceName:a.updateMasterObjectInstanceName,data:{reqType:"Ajax",serviceHash:t,masterObjectId:n},onSuccess:function(e,t,n){_(e,t,n)}},j(e))},n=(r.setChangeClientStatusHandler=function(){var e=$(a.css.clientStatus);e.resetSS(),e.change(y)},r.addVoucherHandler=function(){$(".objectContainer").each((e,t)=>{$(t).find(a.css.addVoucher).click(()=>{b($(t))})})},r.removeSingleVoucherHandler=function(){$(a.css.removeSingleVoucher).click(C)},r.confirmOrderHandler=function(){$(a.css.confirmOrder).each(function(){$(this).click(A)})},r.confirmOrderLoggedHandler=function(){$(a.css.confirmOrderLogged).each(function(){$(this).click(A)})},r.initStandardImageConversionSwitcher=function(){$(".image-conversion-switcher.standard").each(function(){var t=$(this);o(t,function(e){e?(e=t.closest(".objectContainer").find(a.css.setPromotion).is(":checked"),u(t.data("masterobjecthash"),e,t.data("objectextensiontype"))):m(t.data("servicehash"))})})},r.initDedicatedIpAddressSwitcher=function(){$(".dedicated-ip-switcher").each(function(){var i=$(this);o(i,function(e){var t,n;e?(e=i.closest(".objectContainer").find(a.css.setPromotion).is(":checked"),t=i.closest(".objectContainer").find('select[name="objectConfig_ipLocation"]').val(),(n=i.closest(".objectContainer").find(".wrapperIP").find(".newListSelected:not(.newListDisabled)").parent().find("[name=objectConfig_ipLocation]")).length&&(t=n.val()),c(i.data("masterobjecthash"),e,t)):m(i.data("servicehash"))})})},r.initExtensionSwitcher=function(){$(".email-with-ip-switcher, .old-version-switcher, .cdn-switcher").each(function(){var t=$(this);o(t,function(e){e?(e=t.closest(".objectContainer").find(a.css.setPromotion).is(":checked"),u(t.data("masterobjecthash"),e,t.data("objectextensiontype"))):m(t.data("servicehash"))})})},r.initRevDnsSwitcher=function(){$(".rev-dns-switcher").each(function(){var t=$(this);o(t,function(e){e?(e=t.closest(".objectContainer").find(a.css.setPromotion).is(":checked"),i(t.data(),e)):m(t.data("servicehash"))})})},r.initActiveAdditionalSpaceSwitcher=function(){$(".active-additional-space-switcher").each(function(){var t=$(this);o(t,function(e){e?(e=t.closest(".objectContainer").find(a.css.setPromotion).is(":checked"),h(t.data("masterobjecthash"),e,t.data("objectextensiontype"))):m(t.data("servicehash"))})})},r.initMigrationSwitcher=function(){$(".migrate-feature-switcher").each(function(){var t=$(this);o(t,function(e){n(t,e)})})},r.initRegulationsValidator=function(){$("#ShoppingCartListing").find("form").submit(function(){let e;var n;if($("ul.accept-regulations-list li").length){if(e=1===$("ul.accept-regulations-list li").length?$(".personal-info.accept-regulations").find("label.single"):$(".personal-info.accept-regulations").find("label.multi"),!$("input[name=acceptRegulations]").is(":checked"))return e.show(),!1}else{const i=[];if($(".checkbox.acceptRegulation").each(function(){var e;$(this).is(":checked")||($(this).parent().find("a.popup").length?i.push($(this).parent().find("a.popup").html()):(e=$(this).parent().text().split(":")).length&&i.push(e.slice(-1).shift().trim()))}),e=$(".personal-info.accept-regulations").find("label.error.multiRegulations"),n=$(".personal-info.accept-regulations").find(".invalidRegulations"),0{_(e,t,n)})},j(e)},g=function(){var e=parseInt($(this).val());if(!e)return!1;j({componentName:a.changeItemPeriodComponentName,componentInstanceName:a.changeItemPeriodInstanceName,data:{reqType:"Ajax",serviceHash:$(this).closest(".objectContainer").find(a.css.serviceHash).val(),period:e,voucherAvailable:parseInt($(this).attr("data-voucher-available"))}})};var e=function(){var e=$(this).closest(".objectContainer"),t=e.find(a.css.setPromotion),n={componentName:a.changeItemPromotionComponentName,componentInstanceName:a.changeItemPromotionInstanceName,data:{reqType:"Ajax",serviceHash:e.find(a.css.serviceHash).val()}};t.is(":checked")?n.data.promotionName=$(this).val():n.data.promotionName=null,$(this).data("expandOnChange")&&(t=e.find(".expandable-additives .expand-btn.expand").filter(":visible")).length&&t.click(),j(n)},v=function(){var e=$('.acceptRegulations input[type="checkbox"]'),t=[],e=(e.each(function(){"acceptAll"!==$(this).attr("id")&&"clientSendInfo"!==$(this).attr("id")&&$(this).is(":checked")&&t.push($(this).attr("id"))}),{componentName:a.setClientInfoComponentName,componentInstanceName:a.setClientInfoInstanceName,data:{reqType:"Ajax",clientSendInfo:$(this).is(":checked")?1:0,acceptedRegulations:t,checkAll:$("#acceptAll").is(":checked")?1:0}});j(e)},y=function(){var e={componentName:a.changeClientStatusComponentName,componentInstanceName:a.changeClientStatusInstanceName,data:{reqType:"Ajax",clientStatus:$(this).val()},onSuccess:(e,t,n)=>{_(e,t,n),window.location.reload()}};j(e)};const b=function(o){var e=o.find(a.css.voucherCode),t=e.val().trim();t.length?(t={componentName:a.addVoucherComponentName,componentInstanceName:a.addVoucherInstanceName,data:{reqType:"Ajax",voucherCode:t,cartItemsGroup:e.parent().find(a.css.cartItemsGroup).val(),voucherType:e.parent().find(a.css.voucherType).val(),cartItem:e.parent().find(a.css.cartItem).val()},onSuccess:function(t,n,e){let i;if(t.result.success){if(_(t,n,e),n=o.find("[name=objectType]").val(),t.result.payPerUseVoucher){let e=(i=(i=$(".voucher-info.special-voucher-success."+n)).length?i:$(".voucher-info.special-voucher-success.default")).find(".csc-default").html();e=e.replace("__AMOUNT__",t.result.amount),i.find(".csc-default").html(e)}else i=$(".voucher-info.voucher-success.default");o.find(a.css.cdnVoucher).prop("checked",!1)}else i=$(".voucher-info.voucher-error"),void 0!==t.result.reason&&("REASON_VOUCHER_LIMIT_EXCEEDED"===t.result.reason&&(i=$(".voucher-info.voucher-limit-exceeded-error")),"REASON_VOUCHER_CART_LIMIT_EXCEEDED"===t.result.reason)&&(i=$(".voucher-info.voucher-cart-limit-exceeded-error")),removeLoadingLayer(),r.setRemoveItemsHandler();i.length&&$.fancybox({content:i.clone(),showCloseButton:!1,transitionIn:"none",width:600,onStart:function(e){e[0].content.show()}})}},j(t)):(e=$(".voucher-info.voucher-code-empty-error")).length&&$.fancybox({content:e.clone(),showCloseButton:!1,transitionIn:"none",width:600,onStart:function(e){e[0].content.show()}})};function w(){removeLoadingLayer(),x(),initClickTooltip(),initHoverTooltip(),loadMiniCart()}var C=function(){var e={componentName:a.removeVoucherComponentName,componentInstanceName:a.removeSingleVoucherInstanceName,data:{reqType:"Ajax",serviceHash:$(this).data("servicehash")}};j(e)},j=(this.sendRequest=function(e){j(e)},function(e){setLoadingLayer();var t={beforeSend:function(){r.setRemoveItemsHandler(!0)},onSuccess:function(e,t,n){_(e,t,n)},onComplete:function(e,t){S(t)},onError:function(e,t,n){T(e,t,n)}};$.extend(t,e),(new NA.ajaxComponentLoader).execute(t)}),k=(r.cdnVoucherRadio=function(){$(".objectContainer").each((e,t)=>{$(t).find(a.css.cdnVoucher).change(()=>{$(t).find(a.css.voucherCode).focus()})})},r.expandAdditionalExtensions=function(){var e,t=JSON.parse(NA.cookieContainer.getCookie("expandedServicesAdditions")||"[]");for(e in t){var n=t[e],i=$("[name='serviceHash[]'][value="+n+"]");i.length?(i.parent().find(".expand-btn.expand").hide(),i.parent().find(".expand-btn.collapse").show(),i.parent().find(".expandable-content").finish().slideDown()):s(n)}},function(){loadCart({onSuccess:w,onError:w,onContainerMissing:()=>{loadMiniCart()}})}),x=function(){(new NA.ajaxComponentLoader).execute({reqType:"Ajax",componentName:"Crosseling",componentInstanceName:"CrosselingKoszyk",onSuccess:function(e){$("#crossell-basket div.recommended-prod").remove(),""!==e.result?$("#crossell-basket").append(e.result):$("#crossell-basket").hide()}})};const T=function(){k()},_=function(e,t,n){e.result.addToCartDataLayer&&googleAnalyticsEcommerceTracking.sendDataLayer(e.result.addToCartDataLayer),k()},S=function(e,t){};this.changeWildcardForSsl=function(e,t){var e=$(e).closest(".objectContainer"),n=$(e).find(".sslDomainName").val(),i=$(e).find('input[name="serviceHash[]"]').val();r.sendRequest({componentName:"ServicesAddToShoppingCart",componentInstanceName:"ServicesAddToShoppingCart",data:{reqType:"Ajax",serviceType:"CERTIFICATE_STAND_ALONE_TYPE",serviceReadyForAddToCart:"true",front_orderFromPk:"true",sslType:t,promotionName:"PROMOTION_DEFAULT",commonName:n},onSuccess:function(){O(i)}})};var O=function(e){r.sendRequest({componentName:"ShoppingCartRemoveItem",componentInstanceName:"ShoppingCartRemoveItem",data:{reqType:"Ajax","serviceHash[]":e},onSuccess:function(){loadCart({onSuccess:function(){removeLoadingLayer(),$(".info-box-success").hide(),loadMiniCart()}})}})};this.addServiceForDomain=function(e){var t=$(e).closest(".objectContainer"),n=$(t).find(".domainName").text(),t=$(t).find('input[name="serviceHash[]"]').val(),i=$(e).data("object-type-parameter-name"),o=$(e).data("object-type"),e=$(e).data("base-type");r.sendRequest({componentName:"ServicesAddToShoppingCart",componentInstanceName:"ServicesAddToShoppingCart",data:{reqType:"Ajax",serviceType:e,serviceReadyForAddToCart:"true",masterObjectHash:t,[i]:o,promotionName:"PROMOTION_DEFAULT",commonName:n,period:12}})},this.removeServiceForDomain=function(e){e=$(e).data("hash"),r.sendRequest({componentName:"ShoppingCartRemoveItem",componentInstanceName:"ShoppingCartRemoveItem",data:{reqType:"Ajax",serviceHash:e}})};const A=function(t){$(".roll-elements").each(function(){for(const e of $(this).find(a.css.serviceHash).map(function(){return $(this).val()}).get())if($(this).find('input[name="period_'+e+'"]:checked').val(),$(this).find('input[name="variant_'+e+'"]:checked').val(),$(this).find('input[name="cartItem"][value="'+e+'"]').parent().find('input[name="voucherCode"]').val()){t.preventDefault(),$.fancybox({content:$(".voucher-info.voucher-code-empty-error"),showCloseButton:!1,transitionIn:"none",width:600,onStart:function(e){e[0].content.show()}});break}})};r.initSaasConfigurationController=function(){new SaasConfigurationController(a,j).execute()}}function CartLoader(i){i=$.extend({},i),this.execute=function(){$(i.shoppingCartContainer).length?e():(removeLoadingLayer(),i.onContainerMissing&&i.onContainerMissing())};var e=function(e){i.onInit&&i.onInit(),ajaxCfg={componentName:i.componentName,componentInstanceName:i.componentInstanceName,data:{reqType:"Ajax"},onSuccess:function(e,t,n){a(e,t,n)},onError:function(e,t,n){o(e,t,n)},onComplete:function(){return function(e,t){n(t)}}},(ajaxComponentLoader=new NA.ajaxComponentLoader).execute(ajaxCfg)},o=function(e,t,n){i.onError&&i.onError()},a=function(e,t,n){e.hasErrors||($(i.shoppingCartContainer).replaceWith(e.result),i.onSuccess&&i.onSuccess())},n=function(e,t){i.onComplete&&i.onComplete()}}function MiniCartController(t){var n=this;CartController.call(n,t),n.execute=function(){n.setRemoveItemsHandler(),n.setChangeClientStatusHandler(),n.initMiniCartToggling()},n.closeMiniCart=function(){$(".mini-cart .mini-cart-info .mini-cart-summary-up").addClass("mini-cart-summary").removeClass("mini-cart-summary-up"),$(t.miniShoppingCartDetailsContainerName).slideUp({duration:500}),"undefined"!=typeof EventEmitter&&EventEmitter.$emit(DomainSearch_Engine_Event.SHOPPING_CARD_SHRUNK)},n.openMiniCart=function(){$(".navigation-bar .menu-icon").is(":visible")&&$("#main-menu").hide();var e=$(".mini-cart .mini-cart-info .mini-cart-summary");e.hasClass("mini-cart-summary-up")||(e.addClass("mini-cart-summary-up").removeClass("mini-cart-summary"),$(t.miniShoppingCartDetailsContainerName).slideDown({duration:500}),"undefined"!=typeof EventEmitter&&EventEmitter.$emit(DomainSearch_Engine_Event.SHOPPING_CARD_EXPANDED))},n.initMiniCartToggling=function(){$(t.miniShoppingCartContainer).click(function(e){e.stopPropagation(),$(".mini-cart .mini-cart-info .mini-cart-summary-up").length?n.closeMiniCart():n.openMiniCart()}),$(t.miniShoppingCartDetailsContainerName).click(function(e){e.stopPropagation()}),$(document).on("click","body",function(){$(t.miniShoppingCartDetailsContainerName).is(":visible")&&n.closeMiniCart()})}}ProductImpressionsTracking.current=null,CartController.prototype=new Observable,MiniCartController.prototype=new CartController,MiniCartController.prototype.constructor=MiniCartController;var ClientStatusLayerManager=function(t){"use strict";var n=this,i=null,e=(t=jQuery.extend({instanceName:"ClientStatusLayer",componentName:"ClientStatusLayer",condition:function(e){return"0"===e},fancyboxContent:$("#switch-status-layer").parent().html(),data:{action:"is_reliable"},target:null,actionClick:function(){}},t),this.init=function(){ClientStatusLayerManager.current=this,e()},this.complete=function(){$.fancybox.close(),t.actionClick(i)},function(){t.target?$(t.target).each(function(){$(this).on("click.clientStatus",function(e){i=$(this),e.stopPropagation(),e.preventDefault(),o({componentName:t.componentName,componentInstanceName:t.instanceName,data:t.data})})}):o({componentName:t.componentName,componentInstanceName:t.instanceName,data:t.data})}),o=function(e){e=jQuery.extend(e,{onSuccess:r,onError:s,onComplete:l}),(new NA.ajaxComponentLoader).execute(e)},a=function(){$.fancybox({content:t.fancyboxContent})},r=function(e){t.condition(e.result)?a():n.complete()},s=function(){},l=function(){}};ClientStatusLayerManager.current=null,jQuery(document).ready(async()=>{setCountryCookieBasedOnPath(),await executeCountryCheck(),setStatClick(),initPromoBar(),initMail(),initHelp(),initAffiliateProgram(),initSubOtherMenu(),initSearchResultsProject(),initSlideBanner(),initProductTabs(),initDomainPromotionBanner(),initDecorateTable(),initForms(),initCompareTables(),initDataTablesSelect(),initDomainSelect(),initMainBox(),initfooterMenu(),initSubMenu(),initActivePhoto(),initCrosellSelect(),initCennikSelect(),initCollors(),initGoogleAdvert(),initAfilTable(),initPromotion(),initShopSelect(),initAccordionHelp(),initDomainPrice(),initProductTabsSmall(),initClickTooltip(),initClickTooltipOrange(),initHoverTooltip(),initHoverTooltipOrange(),initFirstChildDomain(),StepsSubCheckHeight(),initLoginInfo(),loadMiniCart(),initPopups(),initFiltersRight(),initFiltersLeft(),initCurentFilterList()}),function(n){var i=n.ajax,o={};n.ajax=function(e){var t=(e=n.extend(e,n.extend({},n.ajaxSettings,e))).port;return 1==e.abort?(o[t]&&o[t].abort(),o[t]=i.apply(this,arguments)):i.apply(this,arguments)}}(jQuery);const RegistrantListManager=function(i){const o=this;o.loadRegistrantList=function(e){setLoadingLayer(),o.serviceHash=[e],e={componentName:"RegistrantList",componentInstanceName:"RegistrantList",onSuccess:o.afterRegistrantListLoaded},(new NA.ajaxComponentLoader).execute(e)},o.afterRegistrantListLoaded=function(e){$("#RegistrantList").replaceWith(e.result),jQuery("#RegistrantList .radio").prop("c"),jQuery("#RegistrantList .form-list select").sSelect(),initAddRegistrantForm(function(){o.addRegistrant()},i),$("#RegistrantList .proceed-overlay-content").fadeIn(),$("#RegistrantList .proceed-overlay").fadeIn(),$("#RegistrantList .close-layer").click(function(){$("#RegistrantList .proceed-overlay-content").fadeOut(),$("#RegistrantList .proceed-overlay").fadeOut()}),$("#RegistrantList .naTooltip-onClick").naInfoTooltip({tipOnClick:!0,tipWidth:283}),$("#RegistrantList .naTooltip-onClick").click(o.onRegistrantListTooltipClicked),$("#RegistrantList .registrant-select-button").click(o.onRegistrantSelectButtonClicked),$("#registrant-add-new-button").click(function(){return $("#registrant-add-new-form").is(":visible")||$("#registrant-add-new-form").show(100,function(){$("#RegistrantList .form-list select").resetSS(),addRegistrantFormSetup($("#add-registrant-form"))}),!1}),$("#close-add-registrant-form").click(function(e){$("#add-registrant-form").find('input[name!="firm"]').val(""),$(".registrant-province-id").val("0"),$(".registrant-country-code").val("pl"),$('label[for="Status-1"]').click(),$("#phonePrefix").val("+48"),$("#add-registrant-form")[0].reset(),$("#RegistrantList .form-list select").resetSS(),$("#registrant-add-new-form .validate-error").removeClass("validate-error"),$(".registrant-list-error").hide(),$("#registrant-add-new-form").hide(100)}),$("html,body").animate({scrollTop:0},"slow"),removeLoadingLayer()},o.onRegistrantListTooltipClicked=function(){$(".registrant-list-error").hide();const t=$(this);var e;t.attr("registrant-data-loaded")||(e={componentName:"RegistrantDetails",componentInstanceName:"RegistrantDetails",onSuccess:function(e){$(".registrant-data-"+t.attr("registrant-id")).html(e.result),t.attr("registrant-data-loaded",!0)},onError:function(){r({hasErrors:!0,error:i.error})},data:{registrantId:t.attr("registrant-id")}},(new NA.ajaxComponentLoader).execute(e))};let n,a="";o.onRegistrantSelectButtonClicked=function(e){$(".registrant-list-error").hide(),$(e.currentTarget).addClass("disabled");var t=$(this),t=(n=t.attr("registrant-id"),a=t.attr("registrant-short-name"),{componentName:"ShoppingCartChangeRegistrant",componentInstanceName:"ShoppingCartChangeRegistrant",onSuccess:o.afterRegistrantSelected,onError:function(){$(e.currentTarget).removeClass("disabled"),r({hasErrors:!0,error:i.error})},data:{registrantId:n,objectHash:o.serviceHash}});(new NA.ajaxComponentLoader).execute(t)};const r=function(e){$(".registrant-list-error").show().find(".reportMessage").html(e.error)};o.afterRegistrantSelected=function(e){e.hasErrors?r(e):($(".registrant-name-"+o.serviceHash).html(a),$(".close-layer").click())},o.addRegistrant=function(){var e={componentName:"ClientAddRegistrant",componentInstanceName:"ClientAddRegistrant",onSuccess:o.afterRegistrantAdded,onError:function(){r({hasErrors:!0,error:i.error})}},t=$("#add-registrant-form").serializeArray();e.data={};for(const n in t)e.data[t[n].name]=t[n].value;(new NA.ajaxComponentLoader).execute(e)},o.afterRegistrantAdded=function(e){e.hasErrors?r(e):o.loadRegistrantList(o.serviceHash[0])}};function addRegistrantFormSetup(e){var t="#add-registrant-form",n=e.find('select[name="countryCode"]').val(),e=parseInt(e.find('input[name="firm"]:checked').val()),i=$(".chooseRegistrantRepresentative"),o="pl"===n,a=[],r=[],s=$("#province-box-provinceId"),l=$("#province-box-provinceCode"),c=$("#province-fields"),n=$("select[data-country="+n.toUpperCase()+"]"),u=(s.hide(),l.hide(),c.hide(),$("#provinceId_error").hide()),d=$("#provinceCode_error").hide();$("#postCode_error").hide(),s.find("select").prop("disabled",!0),o?(s.show().find("select").prop("disabled",!1).resetSS(),u.show(),c.show()):n.length&&(l.show().find("select").each((e,t)=>{$(t).prop("disabled",!0).next().hide()}),n.prop("disabled",!1).resetSS(),n.next().show(),d.show(),c.show()),e?(a.push(t+' input[name="nip"]'),a.push(t+' input[name="organization"]'),r.push(t+' input[name="countryCodeOfCitizenship"]'),i.show()):(r.push(t+' input[name="nip"]'),r.push(t+' input[name="organization"]'),a.push(t+' input[name="countryCodeOfCitizenship"]'),i.hide()),$.each(a,function(e,t){$(t).attr("disabled",!1),$(t).closest("li.fields").show()}),$.each(r,function(e,t){$(t).attr("disabled",!0),$(t).closest("li.fields").hide()})}const initAddRegistrantForm=function(e,t){const n=$("#add-registrant-form");addRegistrantFormSetup(n),n.find('input[name="firm"], select[name="countryCode"]').change(function(){addRegistrantFormSetup(n)}),n.find("#phone").blur(function(){n.find("#phone").val($(this).val().replace(/ /g,"").replace(/-/g,"")).valid()}),n.find("#fax").blur(function(){n.find("#fax").val($(this).val().replace(/ /g,"").replace(/-/g,""))}),jQuery.validator.messages.required="",n.validate({rules:{shortName:{required:!0,maxlength:50,allowedShortName:!0},name:{required:!0,maxlength:255,allowedName:!0,notAllowedFirmName:!0},organization:{required:!0,preventEqualFields:'input[name="name"]',maxlength:255,allowedName:!0},street:{required:!0,maxlength:255,allowedStreet:!0},localNo:{required:!0,validateLocalNo:!0},postCode:{required:!0,validatePostalCode:!0},place:{required:!0,maxlength:255,validateTown:!0},provinceId:{required:!0,selectWithout0:!0},provinceCode:{required:!0,selectWithout0:!0},countryCode:{required:!0,selectWithout0:!0},phonePrefix:{required:!0,validatePrefix:!0},phone:{required:!0,onlyDigits:!0,phoneMinLength:!0,phoneMaxLength:!0},email:{required:!0,allowedEmail:!0,remote:{url:globalConfigParams.homepage,type:"post",data:{componentName:"CheckRegistrantEmail",reqType:"Ajax",instanceName:"CheckRegistrantEmail"}}},nip:{required:!0,validateNip:!0}},messages:t.messages,errorPlacement:function(e,t){var n=t.attr("name");e.attr("id",n+"_error"),e.appendTo(t.closest(".fields"))},highlight:function(e,t,n){$(e).parent().addClass("validate-error"),$(e).removeClass(n)},unhighlight:function(e,t,n){$(e).parent().removeClass("validate-error"),$(e).addClass(n)},submitHandler:function(){e()}})};class DomainAdditionalFields{constructor(e){this.container=e}focusOnFirstField=()=>{this.container.find(".additional-fields").first().find("input, select").first().focus()};typesAreIntended=(e,t)=>0===e.data("domain-types").split(",").filter(e=>!t.domainTypes.includes(e)).length;additionalFieldsDependencies=()=>{this.container.find(".additional-required-data").each((e,t)=>{var n=$(t).data("id");for(const i of AdditionalFieldsConfig.DEPENDENCIES){const t=$("[name='additionalFields["+n+"]["+i.name+"]']"),o=t.parent();if(t.length&&this.typesAreIntended(t,i))for(const a of i.required){const r=$("[name='additionalFields["+n+"]["+a.name+"]']");r.on("change",()=>{var e="object"==typeof a.value?a.value.includes(r.val()):r.val()===a.value;o.toggle(e),t.prop("readonly",!e),e||t.val("")}).change()}}})};execute(){this.focusOnFirstField(),this.additionalFieldsDependencies()}}class AdditionalFieldsConfig{static DEPENDENCIES=[{domainTypes:[".es"],name:"ES_OTHER",required:[{name:"ES_TIPO",value:"0"}]},{domainTypes:[".es"],name:"ES_NIF",required:[{name:"ES_TIPO",value:"1"}]},{domainTypes:[".es"],name:"ES_NIE",required:[{name:"ES_TIPO",value:"3"}]},{domainTypes:[".uk",".co.uk"],name:"companyNumber",required:[{name:"UK_CATEGORY",value:["LTD","PLC","LLP","IP","SCH","RCHAR"]}]},{domainTypes:[".kr"],name:"companyNumber",required:[{name:"KR_DOC",value:["BUSINESS","TAX","LLP","ORG","BRAND"]}]},{domainTypes:[".kr"],name:"idNumber",required:[{name:"KR_DOC",value:["SOCIAL","DRIVELIC","PASSPORT"]}]}]}function initToolsMenu(){var e=$("header .menuTools .tools");0]+|\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\))+(?:\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))$/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/,datetime:/^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,time:/^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,dateISO:/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,month_day_year:/^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,day_month_year:/^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,website:{test:function(e){return u.defaults.patterns.domain.test(e)||u.defaults.patterns.url.test(e)}}},validators:{equalTo:function(e,t,n){return s()("#".concat(e.attr("data-equalto"))).val()===e.val()}}}},"./js/foundation.accordion.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Accordion",function(){return d});var t=n("jquery"),a=n.n(t),r=n("./js/foundation.core.utils.js"),o=n("./js/foundation.util.keyboard.js"),i=n("./js/foundation.core.plugin.js");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})(e)}function l(e,t){for(var n=0;n'),a.options.submenuToggle?(t.addClass("has-submenu-toggle"),t.children("a").after('")):t.attr({"aria-controls":i,"aria-expanded":o,id:e}),n.attr({"aria-labelledby":e,"aria-hidden":!o,role:"group",id:i})}),this.$element.find("li").attr({role:"treeitem"}),this.$element.find(".is-active"));e.length&&(a=this,e.each(function(){a.down(s()(this))})),this._events()}},{key:"_events",value:function(){var r=this;this.$element.find("li").each(function(){var t=s()(this).children("[data-submenu]");t.length&&(r.options.submenuToggle?s()(this).children(".submenu-toggle").off("click.zf.accordionMenu").on("click.zf.accordionMenu",function(e){r.toggle(t)}):s()(this).children("a").off("click.zf.accordionMenu").on("click.zf.accordionMenu",function(e){e.preventDefault(),r.toggle(t)}))}).on("keydown.zf.accordionmenu",function(t){var n,i,o=s()(this),a=o.parent("ul").children("li"),e=o.children("[data-submenu]");a.each(function(e){s()(this).is(o)&&(n=a.eq(Math.max(0,e-1)).find("a").first(),i=a.eq(Math.min(e+1,a.length-1)).find("a").first(),s()(this).children("[data-submenu]:visible").length&&(i=o.find("li:first-child").find("a").first()),s()(this).is(":first-child")?n=o.parents("li").first().find("a").first():n.parents("li").first().children("[data-submenu]:visible").length&&(n=n.parents("li").find("li:last-child").find("a").first()),s()(this).is(":last-child"))&&(i=o.parents("li").first().next("li").find("a").first())}),l.Keyboard.handleKey(t,"AccordionMenu",{open:function(){e.is(":hidden")&&(r.down(e),e.find("li").first().find("a").first().focus())},close:function(){e.length&&!e.is(":hidden")?r.up(e):o.parent("[data-submenu]").length&&(r.up(o.parent("[data-submenu]")),o.parents("li").first().find("a").first().focus())},up:function(){return n.focus(),!0},down:function(){return i.focus(),!0},toggle:function(){return!r.options.submenuToggle&&(o.children("[data-submenu]").length?(r.toggle(o.children("[data-submenu]")),!0):void 0)},closeAll:function(){r.hideAll()},handled:function(e){e&&t.preventDefault(),t.stopImmediatePropagation()}})})}},{key:"hideAll",value:function(){this.up(this.$element.find("[data-submenu]"))}},{key:"showAll",value:function(){this.down(this.$element.find("[data-submenu]"))}},{key:"toggle",value:function(e){e.is(":animated")||(e.is(":hidden")?this.down(e):this.up(e))}},{key:"down",value:function(e){var t,n=this;this.options.multiOpen||(t=e.parentsUntil(this.$element).add(e).add(e.find(".is-active")),t=this.$element.find(".is-active").not(t),this.up(t)),e.addClass("is-active").attr({"aria-hidden":!1}),(this.options.submenuToggle?e.prev(".submenu-toggle"):e.parent(".is-accordion-submenu-parent")).attr({"aria-expanded":!0}),e.slideDown(this.options.slideSpeed,function(){n.$element.trigger("down.zf.accordionMenu",[e])})}},{key:"up",value:function(e){var t=this,n=e.find("[data-submenu]"),i=e.add(n);n.slideUp(0),i.removeClass("is-active").attr("aria-hidden",!0),(this.options.submenuToggle?i.prev(".submenu-toggle"):i.parent(".is-accordion-submenu-parent")).attr("aria-expanded",!1),e.slideUp(this.options.slideSpeed,function(){t.$element.trigger("up.zf.accordionMenu",[e])})}},{key:"_destroy",value:function(){this.$element.find("[data-submenu]").slideDown(0).css("display",""),this.$element.find("a").off("click.zf.accordionMenu"),this.$element.find("[data-is-parent-link]").detach(),this.options.submenuToggle&&(this.$element.find(".has-submenu-toggle").removeClass("has-submenu-toggle"),this.$element.find(".submenu-toggle").remove()),i.Nest.Burn(this.$element,"accordion")}}]),n}();f.defaults={parentLink:!1,slideSpeed:250,submenuToggle:!1,submenuToggleText:"Toggle menu",multiOpen:!0}},"./js/foundation.core.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Foundation",function(){return l});var t=n("jquery"),a=n.n(t),i=n("./js/foundation.core.utils.js"),r=n("./js/foundation.util.mediaQuery.js");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})(e)}var l={version:"6.5.3",_plugins:{},_uuids:[],plugin:function(e,t){var t=t||c(e),n=o(t);this._plugins[n]=this[t]=e},registerPlugin:function(e,t){t=t?o(t):c(e.constructor).toLowerCase();e.uuid=Object(i.GetYoDigits)(6,t),e.$element.attr("data-".concat(t))||e.$element.attr("data-".concat(t),e.uuid),e.$element.data("zfPlugin")||e.$element.data("zfPlugin",e),e.$element.trigger("init.zf.".concat(t)),this._uuids.push(e.uuid)},unregisterPlugin:function(e){var t,n=o(c(e.$element.data("zfPlugin").constructor));for(t in this._uuids.splice(this._uuids.indexOf(e.uuid),1),e.$element.removeAttr("data-".concat(n)).removeData("zfPlugin").trigger("destroyed.zf.".concat(n)),e)e[t]=null},reInit:function(e){var t,n,i=e instanceof a.a;try{i?e.each(function(){a()(this).data("zfPlugin")._init()}):(t=s(e),n=this,{object:function(e){e.forEach(function(e){e=o(e),a()("[data-"+e+"]").foundation("_init")})},string:function(){e=o(e),a()("[data-"+e+"]").foundation("_init")},undefined:function(){this.object(Object.keys(n._plugins))}}[t](e))}catch(e){console.error(e)}finally{return e}},reflow:function(n,e){void 0===e?e=Object.keys(this._plugins):"string"==typeof e&&(e=[e]);var o=this;a.a.each(e,function(e,t){var i=o._plugins[t];a()(n).find("[data-"+t+"]").addBack("[data-"+t+"]").each(function(){var e=a()(this),n={};if(e.data("zfPlugin"))console.warn("Tried to initialize "+t+" on an element that already has a Foundation plugin.");else{e.attr("data-options")&&e.attr("data-options").split(";").forEach(function(e,t){var e=e.split(":").map(function(e){return e.trim()});e[0]&&(n[e[0]]="true"===(e=e[1])||"false"!==e&&(isNaN(+e)?e:parseFloat(e)))});try{e.data("zfPlugin",new i(a()(this),n))}catch(e){console.error(e)}finally{return}}})})},getFnName:c,addToJquery:function(a){return a.fn.foundation=function(n){var e=s(n),t=a(".no-js");if(t.length&&t.removeClass("no-js"),"undefined"===e)r.MediaQuery._init(),l.reflow(this);else{if("string"!==e)throw new TypeError("We're sorry, ".concat(e," is not a valid parameter. You must use a string representing the method you wish to invoke."));var i=Array.prototype.slice.call(arguments,1),o=this.data("zfPlugin");if(void 0===o||void 0===o[n])throw new ReferenceError("We're sorry, '"+n+"' is not an available method for "+(o?c(o):"this element")+".");1===this.length?o[n].apply(o,i):this.each(function(e,t){o[n].apply(a(t).data("zfPlugin"),i)})}return this},a}};function c(e){return void 0!==Function.prototype.name?(void 0===e.prototype?e:e.prototype).constructor.name:(e=/function\s([^(]{1,})\(/.exec(e.toString()))&&1'),e.data("savedHref",e.attr("href")).removeAttr("href").attr("tabindex",0),e.children("[data-submenu]").attr({"aria-hidden":!0,tabindex:0,role:"group"}),n._events(e)}),this.$submenus.each(function(){var e=r()(this);if(!e.find(".js-drilldown-back").length)switch(n.options.backButtonPosition){case"bottom":e.append(n.options.backButton);break;case"top":e.prepend(n.options.backButton);break;default:console.error("Unsupported backButtonPosition value '"+n.options.backButtonPosition+"'")}n._back(e)}),this.$submenus.addClass("invisible"),this.options.autoHeight||this.$submenus.addClass("drilldown-submenu-cover-previous"),this.$element.parent().hasClass("is-drilldown")||(this.$wrapper=r()(this.options.wrapper).addClass("is-drilldown"),this.options.animateHeight&&this.$wrapper.addClass("animate-height"),this.$element.wrap(this.$wrapper)),this.$wrapper=this.$element.parent(),this.$wrapper.css(this._getMaxDims())}},{key:"_resize",value:function(){this.$wrapper.css({"max-width":"none","min-height":"none"}),this.$wrapper.css(this._getMaxDims())}},{key:"_events",value:function(n){var i=this;n.off("click.zf.drilldown").on("click.zf.drilldown",function(e){var t;r()(e.target).parentsUntil("ul","li").hasClass("is-drilldown-submenu-parent")&&(e.stopImmediatePropagation(),e.preventDefault()),i._show(n.parent("li")),i.options.closeOnClick&&(t=r()("body")).off(".zf.drilldown").on("click.zf.drilldown",function(e){e.target===i.$element[0]||r.a.contains(i.$element[0],e.target)||(e.preventDefault(),i._hideAll(),t.off(".zf.drilldown"))})})}},{key:"_registerEvents",value:function(){this.options.scrollTop&&(this._bindHandler=this._scrollTop.bind(this),this.$element.on("open.zf.drilldown hide.zf.drilldown closed.zf.drilldown",this._bindHandler)),this.$element.on("mutateme.zf.trigger",this._resize.bind(this))}},{key:"_scrollTop",value:function(){var e=this,t=""!=e.options.scrollTopElement?r()(e.options.scrollTopElement):e.$element,t=parseInt(t.offset().top+e.options.scrollTopOffset,10);r()("html, body").stop(!0).animate({scrollTop:t},e.options.animationDuration,e.options.animationEasing,function(){this===r()("html")[0]&&e.$element.trigger("scrollme.zf.drilldown")})}},{key:"_keyboardEvents",value:function(){var e=this;this.$menuItems.add(this.$element.find(".js-drilldown-back > a, .is-submenu-parent-item > a")).on("keydown.zf.drilldown",function(t){var n,i,o=r()(this),a=o.parent("li").parent("ul").children("li").children("a");a.each(function(e){r()(this).is(o)&&(n=a.eq(Math.max(0,e-1)),i=a.eq(Math.min(e+1,a.length-1)))}),s.Keyboard.handleKey(t,"Drilldown",{next:function(){if(o.is(e.$submenuAnchors))return e._show(o.parent("li")),o.parent("li").one(Object(l.transitionend)(o),function(){o.parent("li").find("ul li a").not(".js-drilldown-back a").first().focus()}),!0},previous:function(){return e._hide(o.parent("li").parent("ul")),o.parent("li").parent("ul").one(Object(l.transitionend)(o),function(){setTimeout(function(){o.parent("li").parent("ul").parent("li").children("a").first().focus()},1)}),!0},up:function(){return n.focus(),!o.is(e.$element.find("> li:first-child > a"))},down:function(){return i.focus(),!o.is(e.$element.find("> li:last-child > a"))},close:function(){o.is(e.$element.find("> li > a"))||(e._hide(o.parent().parent()),o.parent().parent().siblings("a").focus())},open:function(){return(!e.options.parentLink||!o.attr("href"))&&(o.is(e.$menuItems)?o.is(e.$submenuAnchors)?(e._show(o.parent("li")),o.parent("li").one(Object(l.transitionend)(o),function(){o.parent("li").find("ul li a").not(".js-drilldown-back a").first().focus()}),!0):void 0:(e._hide(o.parent("li").parent("ul")),o.parent("li").parent("ul").one(Object(l.transitionend)(o),function(){setTimeout(function(){o.parent("li").parent("ul").parent("li").children("a").first().focus()},1)}),!0))},handled:function(e){e&&t.preventDefault(),t.stopImmediatePropagation()}})})}},{key:"_hideAll",value:function(){var t=this.$element.find(".is-drilldown-submenu.is-active").addClass("is-closing");this.options.autoHeight&&this.$wrapper.css({height:t.parent().closest("ul").data("calcHeight")}),t.one(Object(l.transitionend)(t),function(e){t.removeClass("is-active is-closing")}),this.$element.trigger("closed.zf.drilldown")}},{key:"_back",value:function(t){var n=this;t.off("click.zf.drilldown"),t.children(".js-drilldown-back").on("click.zf.drilldown",function(e){e.stopImmediatePropagation(),n._hide(t);e=t.parent("li").parent("ul").parent("li");e.length&&n._show(e)})}},{key:"_menuLinkEvents",value:function(){var t=this;this.$menuItems.not(".is-drilldown-submenu-parent").off("click.zf.drilldown").on("click.zf.drilldown",function(e){setTimeout(function(){t._hideAll()},0)})}},{key:"_setShowSubMenuClasses",value:function(e,t){e.addClass("is-active").removeClass("invisible").attr("aria-hidden",!1),e.parent("li").attr("aria-expanded",!0),!0===t&&this.$element.trigger("open.zf.drilldown",[e])}},{key:"_setHideSubMenuClasses",value:function(e,t){e.removeClass("is-active").addClass("invisible").attr("aria-hidden",!0),e.parent("li").attr("aria-expanded",!1),!0===t&&e.trigger("hide.zf.drilldown",[e])}},{key:"_showMenu",value:function(t,n){var i,o=this;this.$element.find('li[aria-expanded="true"] > ul[data-submenu]').each(function(e){o._setHideSubMenuClasses(r()(this))}),(this.$currentMenu=t).is("[data-drilldown]")?(!0===n&&t.find('li[role="treeitem"] > a').first().focus(),this.options.autoHeight&&this.$wrapper.css("height",t.data("calcHeight"))):(i=t.children().first().parentsUntil("[data-drilldown]","[data-submenu]")).each(function(e){0===e&&o.options.autoHeight&&o.$wrapper.css("height",r()(this).data("calcHeight"));e=e==i.length-1;!0==e&&r()(this).one(Object(l.transitionend)(r()(this)),function(){!0===n&&t.find('li[role="treeitem"] > a').first().focus()}),o._setShowSubMenuClasses(r()(this),e)})}},{key:"_show",value:function(e){var t=e.children("[data-submenu]");e.attr("aria-expanded",!0),(this.$currentMenu=t).addClass("is-active").removeClass("invisible").attr("aria-hidden",!1),this.options.autoHeight&&this.$wrapper.css({height:t.data("calcHeight")}),this.$element.trigger("open.zf.drilldown",[e])}},{key:"_hide",value:function(e){this.options.autoHeight&&this.$wrapper.css({height:e.parent().closest("ul").data("calcHeight")}),e.parent("li").attr("aria-expanded",!1),e.attr("aria-hidden",!0),e.addClass("is-closing").one(Object(l.transitionend)(e),function(){e.removeClass("is-active is-closing"),e.blur().addClass("invisible")}),e.trigger("hide.zf.drilldown",[e])}},{key:"_getMaxDims",value:function(){var t=0,e={},n=this;return this.$submenus.add(this.$element).each(function(){r()(this).children("li").length;var e=o.Box.GetDimensions(this).height;t=tBack',backButtonPosition:"top",wrapper:"",parentLink:!1,closeOnClick:!1,autoHeight:!1,animateHeight:!1,scrollTop:!1,scrollTopElement:"",scrollTopOffset:0,animationDuration:500,animationEasing:"swing"}},"./js/foundation.dropdown.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Dropdown",function(){return h});var t=n("jquery"),i=n.n(t),o=n("./js/foundation.util.keyboard.js"),a=n("./js/foundation.core.utils.js"),r=n("./js/foundation.positionable.js"),s=n("./js/foundation.util.triggers.js");function l(e){return(l="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})(e)}function c(e,t){for(var n=0;n a:first").focus(),t.preventDefault())}function o(){var e=s.parent("ul").parent("li");e.children("a:first").focus(),d._hide(e),t.preventDefault()}var a,r,s=f()(t.target).parentsUntil("ul",'[role="menuitem"]'),l=-1n,(this.scrollPos=n)i.$slides.filter(".is-active").data("slide"),n=i.$slides.eq(e);i.changeSlide(t,n,e)}),this.options.accessible)&&this.$wrapper.add(this.$bullets).on("keydown.zf.orbit",function(e){o.Keyboard.handleKey(e,"Orbit",{next:function(){i.changeSlide(!0)},previous:function(){i.changeSlide(!1)},handled:function(){a()(e.target).is(i.$bullets)&&i.$bullets.filter(".is-active").focus()}})})}},{key:"_reset",value:function(){void 0!==this.$slides&&1"),a=new t.plugin(o,this.options);for(n in a.options)a.options.hasOwnProperty(n)&&"zfPlugin"!==n&&(i=a.options[n],this.allOptions[n]=i);a.destroy()}catch(e){}}}},{key:"_events",value:function(){this._changedZfMediaQueryHandler=this._checkMediaQueries.bind(this),c()(window).on("changed.zf.mediaquery",this._changedZfMediaQueryHandler)}},{key:"_checkMediaQueries",value:function(){var t,n=this;c.a.each(this.rules,function(e){a.MediaQuery.atLeast(e)&&(t=e)}),!t||this.currentPlugin instanceof this.rules[t].plugin||(c.a.each(d,function(e,t){n.$element.removeClass(t.cssClass)}),this.$element.addClass(this.rules[t].cssClass),this.currentPlugin&&(!this.currentPlugin.$element.data("zfPlugin")&&this.storezfData&&this.currentPlugin.$element.data("zfPlugin",this.storezfData),this.currentPlugin.destroy()),this._handleMarkup(this.rules[t].cssClass),this.currentPlugin=new this.rules[t].plugin(this.$element,{}),this.storezfData=this.currentPlugin.$element.data("zfPlugin"))}},{key:"_handleMarkup",value:function(e){var t,a,r,s,l,n=this,i="accordion",o=c()("[data-tabs-content="+this.$element.attr("id")+"]");(i=o.length?"tabs":i)!==e&&(t=n.allOptions.linkClass||"tabs-title",a=n.allOptions.panelClass||"tabs-panel",this.$element.removeAttr("role"),r=this.$element.children("."+t+",[data-accordion-item]").removeClass(t).removeClass("accordion-item").removeAttr("data-accordion-item"),s=r.children("a").removeClass("accordion-title"),"tabs"===i?(o=o.children("."+a).removeClass(a).removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby")).children("a").removeAttr("role").removeAttr("aria-controls").removeAttr("aria-selected"):o=r.children("[data-tab-content]").removeClass("accordion-content"),o.css({display:"",visibility:""}),r.css({display:"",visibility:""}),"accordion"===e?o.each(function(e,t){c()(t).appendTo(r.get(e)).addClass("accordion-content").attr("data-tab-content","").removeClass("is-active").css({height:""}),c()("[data-tabs-content="+n.$element.attr("id")+"]").after('').detach(),r.addClass("accordion-item").attr("data-accordion-item",""),s.addClass("accordion-title")}):"tabs"===e&&(l=c()("[data-tabs-content="+n.$element.attr("id")+"]"),(i=c()("#tabs-placeholder-"+n.$element.attr("id"))).length?(l=c()('').insertAfter(i).attr("data-tabs-content",n.$element.attr("id")),i.remove()):l=c()('').insertAfter(n.$element).attr("data-tabs-content",n.$element.attr("id")),o.each(function(e,t){var n=c()(t).appendTo(l).addClass(a),i=s.get(e).hash.slice(1),o=c()(t).attr("id")||Object(u.GetYoDigits)(6,"accordion");i!==o&&(""!==i?c()(t).attr("id",i):(i=o,c()(t).attr("id",i),c()(s.get(e)).attr("href",c()(s.get(e)).attr("href").replace("#","")+"#"+i))),c()(r.get(e)).hasClass("is-active")&&n.addClass("is-active")}),r.addClass(t)))}},{key:"_destroy",value:function(){this.currentPlugin&&this.currentPlugin.destroy(),c()(window).off("changed.zf.mediaquery",this._changedZfMediaQueryHandler)}}]),n}();f.defaults={}},"./js/foundation.responsiveMenu.js":function(e,t,n){"use strict";n.r(t),n.d(t,"ResponsiveMenu",function(){return h});var t=n("jquery"),a=n.n(t),r=n("./js/foundation.util.mediaQuery.js"),s=n("./js/foundation.core.utils.js"),i=n("./js/foundation.core.plugin.js"),t=n("./js/foundation.dropdownMenu.js"),o=n("./js/foundation.drilldown.js"),n=n("./js/foundation.accordionMenu.js");function l(e){return(l="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})(e)}function c(e,t){for(var n=0;n").addClass("reveal-overlay"+e).appendTo(this.options.appendTo)}},{key:"_updatePosition",value:function(){var e=this.$element.outerWidth(),t=a()(window).width(),n=this.$element.outerHeight(),i=a()(window).height(),o=null,t="auto"===this.options.hOffset?parseInt((t-e)/2,10):parseInt(this.options.hOffset,10);"auto"===this.options.vOffset?o=ia()(window).height()&&a()("html").css("top",-e)}},{key:"_enableScroll",value:function(e){e=e||parseInt(a()("html").css("top")),a()(document).height()>a()(window).height()&&(a()("html").css("top",""),a()(window).scrollTop(-e))}},{key:"open",value:function(){var e=this,t="#".concat(this.id),n=(this.options.deepLink&&window.location.hash!==t&&(window.history.pushState?this.options.updateHistory?window.history.pushState({},"",t):window.history.replaceState({},"",t):window.location.hash=t),this.$activeAnchor=a()(document.activeElement).is(this.$anchor)?a()(document.activeElement):this.$anchor,this.isActive=!0,this.$element.css({visibility:"hidden"}).show().scrollTop(0),this.options.overlay&&this.$overlay.css({visibility:"hidden"}).show(),this._updatePosition(),this.$element.hide().css({visibility:""}),this.$overlay&&(this.$overlay.css({visibility:""}).hide(),this.$element.hasClass("fast")?this.$overlay.addClass("fast"):this.$element.hasClass("slow")&&this.$overlay.addClass("slow")),this.options.multipleOpened||this.$element.trigger("closeme.zf.reveal",this.id),this._disableScroll(),this);this.options.animationIn?(this.options.overlay&&s.Motion.animateIn(this.$overlay,"fade-in"),s.Motion.animateIn(this.$element,this.options.animationIn,function(){e.$element&&(e.focusableElements=o.Keyboard.findFocusable(e.$element),n.$element.attr({"aria-hidden":!1,tabindex:-1}).focus(),n._addGlobalClasses(),o.Keyboard.trapFocus(n.$element))})):(this.options.overlay&&this.$overlay.show(0),this.$element.show(this.options.showDelay)),this.$element.attr({"aria-hidden":!1,tabindex:-1}).focus(),o.Keyboard.trapFocus(this.$element),this._addGlobalClasses(),this._addGlobalListeners(),this.$element.trigger("open.zf.reveal")}},{key:"_addGlobalClasses",value:function(){function e(){a()("html").toggleClass("zf-has-scroll",!!(a()(document).height()>a()(window).height()))}this.$element.on("resizeme.zf.trigger.revealScrollbarListener",e),e(),a()("html").addClass("is-reveal-open")}},{key:"_removeGlobalClasses",value:function(){this.$element.off("resizeme.zf.trigger.revealScrollbarListener"),a()("html").removeClass("is-reveal-open"),a()("html").removeClass("zf-has-scroll")}},{key:"_addGlobalListeners",value:function(){var t=this;this.$element&&(this.focusableElements=o.Keyboard.findFocusable(this.$element),this.options.overlay||!this.options.closeOnClick||this.options.fullScreen||a()("body").on("click.zf.reveal",function(e){e.target!==t.$element[0]&&!a.a.contains(t.$element[0],e.target)&&a.a.contains(document,e.target)&&t.close()}),this.options.closeOnEsc)&&a()(window).on("keydown.zf.reveal",function(e){o.Keyboard.handleKey(e,"Reveal",{close:function(){t.options.closeOnEsc&&t.close()}})})}},{key:"close",value:function(){if(!this.isActive||!this.$element.is(":visible"))return!1;var e,t=this;function n(){var e=parseInt(a()("html").css("top"));0===a()(".reveal:visible").length&&t._removeGlobalClasses(),o.Keyboard.releaseFocus(t.$element),t.$element.attr("aria-hidden",!0),t._enableScroll(e),t.$element.trigger("closed.zf.reveal")}this.options.animationOut?(this.options.overlay&&s.Motion.animateOut(this.$overlay,"fade-out"),s.Motion.animateOut(this.$element,this.options.animationOut,n)):(this.$element.hide(this.options.hideDelay),this.options.overlay?this.$overlay.hide(0,n):n()),this.options.closeOnEsc&&a()(window).off("keydown.zf.reveal"),!this.options.overlay&&this.options.closeOnClick&&a()("body").off("click.zf.reveal"),this.$element.off("keydown.zf.reveal"),this.options.resetOnClose&&this.$element.html(this.$element.html()),this.isActive=!1,t.options.deepLink&&window.location.hash==="#".concat(this.id)&&(window.history.replaceState?(e=window.location.pathname+window.location.search,this.options.updateHistory?window.history.pushState({},"",e):window.history.replaceState("",document.title,e)):window.location.hash=""),this.$activeAnchor.focus()}},{key:"toggle",value:function(){this.isActive?this.close():this.open()}},{key:"_destroy",value:function(){this.options.overlay&&(this.$element.appendTo(a()(this.options.appendTo)),this.$overlay.hide().off().remove()),this.$element.hide().off(),this.$anchor.off(".zf"),a()(window).off(".zf.reveal:".concat(this.id)),this.onLoadListener&&a()(window).off(this.onLoadListener),0===a()(".reveal:visible").length&&this._removeGlobalClasses()}}]),n}();p.defaults={animationIn:"",animationOut:"",showDelay:0,hideDelay:0,closeOnClick:!0,closeOnEsc:!0,multipleOpened:!1,vOffset:"auto",hOffset:"auto",fullScreen:!1,overlay:!0,resetOnClose:!1,deepLink:!1,updateHistory:!1,appendTo:"body",additionalOverlayClasses:""}},"./js/foundation.slider.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Slider",function(){return p});var t=n("jquery"),u=n.n(t),r=n("./js/foundation.util.keyboard.js"),h=n("./js/foundation.util.motion.js"),d=n("./js/foundation.core.utils.js"),i=n("./js/foundation.core.plugin.js"),o=n("./js/foundation.util.touch.js"),a=n("./js/foundation.util.triggers.js");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})(e)}function l(e,t){for(var n=0;nthis.options.end&&(t=this.options.end),d=this.options.doubleSided,this.options.vertical&&!n&&(t=this.options.end-t),d&&(t=0===this.handles.index(e)?(n=parseFloat(this.$handle2.attr("aria-valuenow")))<=t?n-this.options.step:t:t<=(n=parseFloat(this.$handle.attr("aria-valuenow")))?n+this.options.step:t),n=(o=this).options.vertical,a=n?"height":"width",r=n?"top":"left",n=e[0].getBoundingClientRect()[a],s=this.$element[0].getBoundingClientRect()[a],l=this._pctOfBar(t),c=((s-n)*l/s*100).toFixed(this.options.decimal),t=parseFloat(t.toFixed(this.options.decimal)),u={},this._setValues(e,t),d&&(t=~~(n/s*100),0===this.handles.index(e)?(u[r]="".concat(c,"%"),f=parseFloat(this.$handle2[0].style[r])-c+t,i&&"function"==typeof i&&i()):(d=parseFloat(this.$handle[0].style[r]),f=c-(isNaN(d)?(this.options.initialStart-this.options.start)/((this.options.end-this.options.start)/100):d)+t),u["min-".concat(a)]="".concat(f,"%")),this.$element.one("finished.zf.animate",function(){o.$element.trigger("moved.zf.slider",[e])}),n=this.$element.data("dragging")?1e3/60:this.options.moveTime,Object(h.Move)(n,e,function(){isNaN(c)?e.css(r,"".concat(100*l,"%")):e.css(r,"".concat(c,"%")),o.options.doubleSided?o.$fill.css(u):o.$fill.css(a,"".concat(100*l,"%"))}),clearTimeout(o.timeout),o.timeout=setTimeout(function(){o.$element.trigger("changed.zf.slider",[e])},o.options.changedDelay))}},{key:"_setInitAttr",value:function(e){var t=0===e?this.options.initialStart:this.options.initialEnd,n=this.inputs.eq(e).attr("id")||Object(d.GetYoDigits)(6,"slider");this.inputs.eq(e).attr({id:n,max:this.options.end,min:this.options.start,step:this.options.step}),this.inputs.eq(e).val(t),this.handles.eq(e).attr({role:"slider","aria-controls":n,"aria-valuemax":this.options.end,"aria-valuemin":this.options.start,"aria-valuenow":t,"aria-orientation":this.options.vertical?"vertical":"horizontal",tabindex:0})}},{key:"_setValues",value:function(e,t){var n=this.options.doubleSided?this.handles.index(e):0;this.inputs.eq(n).val(t),e.attr("aria-valuenow",t)}},{key:"_handleEvent",value:function(e,t,n){var i,o,a,r,s,l,c;n?(c=this._adjustValue(null,n),i=!0):(e.preventDefault(),o=(n=this.options.vertical)?"height":"width",a=n?"top":"left",l=n?e.pageY:e.pageX,this.$handle[0].getBoundingClientRect()[o],r=this.$element[0].getBoundingClientRect()[o],n=n?u()(window).scrollTop():u()(window).scrollLeft(),s=this.$element.offset()[a],e.clientY===e.pageY&&(l+=n),l=(n=(e=l-s)<0?0:r=n.topPoint))}),n._events(t.split("-").reverse().join("-"))})}},{key:"_parsePoints",value:function(){for(var e,t,n,i=[""==this.options.topAnchor?1:this.options.topAnchor,""==this.options.btmAnchor?document.documentElement.scrollHeight:this.options.btmAnchor],o={},a=0,r=i.length;a=this.topPoint?t<=this.bottomPoint?this.isStuck||this._setSticky():this.isStuck&&this._removeSticky(!1):this.isStuck&&this._removeSticky(!0)}},{key:"_setSticky",value:function(){var e=this,t=this.options.stickTo,n="top"===t?"marginTop":"marginBottom",i="top"===t?"bottom":"top",o={};o[n]="".concat(this.options[n],"em"),o[t]=0,o[i]="auto",this.isStuck=!0,this.$element.removeClass("is-anchored is-at-".concat(i)).addClass("is-stuck is-at-".concat(t)).css(o).trigger("sticky.zf.stuckto:".concat(t)),this.$element.on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",function(){e._setSizes()})}},{key:"_removeSticky",value:function(e){var t=this.options.stickTo,n={},i=(this.points?this.points[1]-this.points[0]:this.anchorHeight)-this.elemHeight,o=e?"top":"bottom";n["top"===t?"marginTop":"marginBottom"]=0,n.bottom="auto",n.top=e?0:i,this.isStuck=!1,this.$element.removeClass("is-stuck is-at-".concat(t)).addClass("is-anchored is-at-".concat(o)).css(n).trigger("sticky.zf.unstuckfrom:".concat(o))}},{key:"_setSizes",value:function(e){this.canStick=o.MediaQuery.is(this.options.stickyOn),this.canStick||e&&"function"==typeof e&&e();var t=this.$container[0].getBoundingClientRect().width,n=window.getComputedStyle(this.$container[0]),i=parseInt(n["padding-left"],10),n=parseInt(n["padding-right"],10),t=(this.$anchor&&this.$anchor.length?this.anchorHeight=this.$anchor[0].getBoundingClientRect().height:this._parsePoints(),this.$element.css({"max-width":"".concat(t-i-n,"px")}),this.$element[0].getBoundingClientRect().height||this.containerHeight);"none"==this.$element.css("display")&&(t=0),this.containerHeight=t,this.$container.css({height:t}),this.elemHeight=t,!this.isStuck&&this.$element.hasClass("is-at-bottom")&&(i=(this.points?this.points[1]-this.$container.offset().top:this.anchorHeight)-this.elemHeight,this.$element.css("top",i)),this._setBreakPoints(t,function(){e&&"function"==typeof e&&e()})}},{key:"_setBreakPoints",value:function(e,t){if(!this.canStick){if(!t||"function"!=typeof t)return!1;t()}var n=h(this.options.marginTop),i=h(this.options.marginBottom),o=this.points?this.points[0]:this.$anchor.offset().top,a=this.points?this.points[1]:o+this.anchorHeight,r=window.innerHeight;"top"===this.options.stickTo?(o-=n,a-=e+n):"bottom"===this.options.stickTo&&(o-=r-(e+i),a-=r-i),this.topPoint=o,this.bottomPoint=a,t&&"function"==typeof t&&t()}},{key:"_destroy",value:function(){this._removeSticky(!0),this.$element.removeClass("".concat(this.options.stickyClass," is-anchored is-at-top")).css({height:"",top:"",bottom:"","max-width":""}).off("resizeme.zf.trigger").off("mutateme.zf.trigger"),this.$anchor&&this.$anchor.length&&this.$anchor.off("change.zf.sticky"),this.scrollListener&&s()(window).off(this.scrollListener),this.onLoadListener&&s()(window).off(this.onLoadListener),this.wasWrapped?this.$element.unwrap():this.$container.removeClass(this.options.containerClass).css({height:""})}}]),n}();function h(e){return parseInt(window.getComputedStyle(document.body,null).fontSize,10)*e}f.defaults={container:"",stickTo:"top",anchor:"",topAnchor:"",btmAnchor:"",marginTop:1,marginBottom:1,stickyOn:"medium",stickyClass:"sticky",containerClass:"sticky-container",checkEvery:-1}},"./js/foundation.tabs.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Tabs",function(){return f});var t=n("jquery"),s=n.n(t),l=n("./js/foundation.core.utils.js"),r=n("./js/foundation.util.keyboard.js"),o=n("./js/foundation.util.imageLoader.js"),i=n("./js/foundation.core.plugin.js");function a(e){return(a="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})(e)}function c(e,t){for(var n=0;n").addClass(t).attr({role:"tooltip","aria-hidden":!0,"data-is-active":!1,"data-is-focus":!1,id:e})}},{key:"_setPosition",value:function(){u(d(n.prototype),"_setPosition",this).call(this,this.$element,this.template)}},{key:"show",value:function(){if("all"!==this.options.showOn&&!a.MediaQuery.is(this.options.showOn))return!1;this.template.css("visibility","hidden").show(),this._setPosition(),this.template.removeClass("top bottom left right").addClass(this.position),this.template.removeClass("align-top align-bottom align-left align-right align-center").addClass("align-"+this.alignment),this.$element.trigger("closeme.zf.tooltip",this.template.attr("id")),this.template.attr({"data-is-active":!0,"aria-hidden":!1}),this.isActive=!0,this.template.stop().hide().css("visibility","").fadeIn(this.options.fadeInDuration,function(){}),this.$element.trigger("show.zf.tooltip")}},{key:"hide",value:function(){var e=this;this.template.stop().attr({"aria-hidden":!0,"data-is-active":!1}).fadeOut(this.options.fadeOutDuration,function(){e.isActive=!1,e.isClick=!1}),this.$element.trigger("hide.zf.tooltip")}},{key:"_events",value:function(){var t=this,n=(this.template,!1);this.options.disableHover||this.$element.on("mouseenter.zf.tooltip",function(e){t.isActive||(t.timeout=setTimeout(function(){t.show()},t.options.hoverDelay))}).on("mouseleave.zf.tooltip",Object(o.ignoreMousedisappear)(function(e){clearTimeout(t.timeout),n&&(!t.isClick||t.options.clickOpen)||t.hide()})),this.options.clickOpen?this.$element.on("mousedown.zf.tooltip",function(e){e.stopImmediatePropagation(),t.isClick||(t.isClick=!0,!t.options.disableHover&&t.$element.attr("tabindex"))||t.isActive||t.show()}):this.$element.on("mousedown.zf.tooltip",function(e){e.stopImmediatePropagation(),t.isClick=!0}),this.options.disableForTouch||this.$element.on("tap.zf.tooltip touchend.zf.tooltip",function(e){t.isActive?t.hide():t.show()}),this.$element.on({"close.zf.trigger":this.hide.bind(this)}),this.$element.on("focus.zf.tooltip",function(e){if(n=!0,t.isClick)return t.options.clickOpen||(n=!1),!1;t.show()}).on("focusout.zf.tooltip",function(e){n=!1,t.isClick=!1,t.hide()}).on("resizeme.zf.trigger",function(){t.isActive&&t._setPosition()})}},{key:"toggle",value:function(){this.isActive?this.hide():this.show()}},{key:"_destroy",value:function(){this.$element.attr("title",this.template.text()).off(".zf.trigger .zf.tooltip").removeClass(this.options.triggerClass).removeClass("top right left bottom").removeAttr("aria-describedby data-disable-hover data-resize data-toggle data-tooltip data-yeti-box"),this.template.remove()}}]),n}();h.defaults={disableForTouch:!1,hoverDelay:200,fadeInDuration:150,fadeOutDuration:150,disableHover:!1,templateClasses:"",tooltipClass:"tooltip",triggerClass:"has-tip",showOn:"small",template:"",tipText:"",touchCloseText:"Tap to close.",clickOpen:!0,position:"auto",alignment:"auto",allowOverlap:!1,allowBottomOverlap:!1,vOffset:0,hOffset:0,tooltipHeight:14,tooltipWidth:12,allowHtml:!1}},"./js/foundation.util.box.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Box",function(){return i});var r=n("./js/foundation.core.utils.js"),i={ImNotTouchingYou:function(e,t,n,i,o){return 0===a(e,t,n,i,o)},OverlapArea:a,GetDimensions:d,GetOffsets:function(e,t,n,i,o,a){switch(console.log("NOTE: GetOffsets is deprecated in favor of GetExplicitOffsets and will be removed in 6.5"),n){case"top":return Object(r.rtl)()?s(e,t,"top","left",i,o,a):s(e,t,"top","right",i,o,a);case"bottom":return Object(r.rtl)()?s(e,t,"bottom","left",i,o,a):s(e,t,"bottom","right",i,o,a);case"center top":return s(e,t,"top","center",i,o,a);case"center bottom":return s(e,t,"bottom","center",i,o,a);case"center left":return s(e,t,"left","center",i,o,a);case"center right":return s(e,t,"right","center",i,o,a);case"left bottom":return s(e,t,"bottom","left",i,o,a);case"right bottom":return s(e,t,"bottom","right",i,o,a);case"center":return{left:$eleDims.windowDims.offset.left+$eleDims.windowDims.width/2-$eleDims.width/2+o,top:$eleDims.windowDims.offset.top+$eleDims.windowDims.height/2-($eleDims.height/2+i)};case"reveal":return{left:($eleDims.windowDims.width-$eleDims.width)/2+o,top:$eleDims.windowDims.offset.top+i};case"reveal full":return{left:$eleDims.windowDims.offset.left,top:$eleDims.windowDims.offset.top};default:return{left:Object(r.rtl)()?$anchorDims.offset.left-$eleDims.width+$anchorDims.width-o:$anchorDims.offset.left+o,top:$anchorDims.offset.top+$anchorDims.height+i}}},GetExplicitOffsets:s};function a(e,t,n,i,o){var a,r,s,e=d(e);return t=t?(a=(t=d(t)).height+t.offset.top-(e.offset.top+e.height),r=e.offset.top-t.offset.top,s=e.offset.left-t.offset.left,t.width+t.offset.left-(e.offset.left+e.width)):(a=e.windowDims.height+e.windowDims.offset.top-(e.offset.top+e.height),r=e.offset.top-e.windowDims.offset.top,s=e.offset.left-e.windowDims.offset.left,e.windowDims.width-(e.offset.left+e.width)),a=o?0:Math.min(a,0),r=Math.min(r,0),s=Math.min(s,0),t=Math.min(t,0),n?s+t:i?r+a:Math.sqrt(r*r+a*a+s*s+t*t)}function d(e){if((e=e.length?e[0]:e)===window||e===document)throw new Error("I'm sorry, Dave. I'm afraid I can't do that.");var t=e.getBoundingClientRect(),e=e.parentNode.getBoundingClientRect(),n=document.body.getBoundingClientRect(),i=window.pageYOffset,o=window.pageXOffset;return{width:t.width,height:t.height,offset:{top:t.top+i,left:t.left+o},parentDims:{width:e.width,height:e.height,offset:{top:e.top+i,left:e.left+o}},windowDims:{width:n.width,height:n.height,offset:{top:i,left:o}}}}function s(e,t,n,i,o,a,r){var s,l,c=d(e),u=t?d(t):null;switch(n){case"top":s=u.offset.top-(c.height+o);break;case"bottom":s=u.offset.top+u.height+o;break;case"left":l=u.offset.left-(c.width+a);break;case"right":l=u.offset.left+u.width+a}switch(n){case"top":case"bottom":switch(i){case"left":l=u.offset.left+a;break;case"right":l=u.offset.left-c.width+u.width-a;break;case"center":l=r?a:u.offset.left+u.width/2-c.width/2+a}break;case"right":case"left":switch(i){case"bottom":s=u.offset.top-o+u.height-c.height;break;case"top":s=u.offset.top+o;break;case"center":s=u.offset.top+o+u.height/2-c.height/2}}return{top:s,left:l}}},"./js/foundation.util.imageLoader.js":function(e,t,n){"use strict";n.r(t),n.d(t,"onImagesLoaded",function(){return i});var t=n("jquery"),o=n.n(t);function i(e,t){var n=e.length;function i(){0==--n&&t()}0===n&&t(),e.each(function(){var e,n;this.complete&&void 0!==this.naturalWidth?i():(e=new Image,n="load.zf.images error.zf.images",o()(e).one(n,function e(t){o()(this).off(n,e),i()}),e.src=o()(this).attr("src"))})}},"./js/foundation.util.keyboard.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Keyboard",function(){return c});var t=n("jquery"),i=n.n(t),o=n("./js/foundation.core.utils.js"),a={9:"TAB",13:"ENTER",27:"ESCAPE",32:"SPACE",35:"END",36:"HOME",37:"ARROW_LEFT",38:"ARROW_UP",39:"ARROW_RIGHT",40:"ARROW_DOWN"},r={};function s(e){return!!e&&e.find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter(function(){return!(!i()(this).is(":visible")||i()(this).attr("tabindex")<0)})}function l(e){var t=(t=a[e.which||e.keyCode]||String.fromCharCode(e.which).toUpperCase()).replace(/\W+/,"");return e.shiftKey&&(t="SHIFT_".concat(t)),e.ctrlKey&&(t="CTRL_".concat(t)),(t=e.altKey?"ALT_".concat(t):t).replace(/_$/,"")}var c={keys:function(e){var t,n={};for(t in e)n[e[t]]=e[t];return n}(a),parseKey:l,handleKey:function(e,t,n){var t=r[t],e=this.parseKey(e);if(!t)return console.warn("Component not defined!");(t=n[(void 0===t.ltr?t:Object(o.rtl)()?i.a.extend({},t.ltr,t.rtl):i.a.extend({},t.rtl,t.ltr))[e]])&&"function"==typeof t?(e=t.apply(),!n.handled&&"function"!=typeof n.handled||n.handled(e)):!n.unhandled&&"function"!=typeof n.unhandled||n.unhandled()},findFocusable:s,register:function(e,t){r[e]=t},trapFocus:function(e){var t=s(e),n=t.eq(0),i=t.eq(-1);e.on("keydown.zf.trapfocus",function(e){e.target===i[0]&&"TAB"===l(e)?(e.preventDefault(),n.focus()):e.target===n[0]&&"SHIFT_TAB"===l(e)&&(e.preventDefault(),i.focus())})},releaseFocus:function(e){e.off("keydown.zf.trapfocus")}}},"./js/foundation.util.mediaQuery.js":function(e,t,n){"use strict";n.r(t),n.d(t,"MediaQuery",function(){return l});var i,o,a,t=n("jquery"),r=n.n(t);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})(e)}window.matchMedia||(window.matchMedia=((a=window.styleMedia||window.media)||(o=document.createElement("style"),n=document.getElementsByTagName("script")[0],o.type="text/css",o.id="matchmediajs-test",n?n.parentNode.insertBefore(o,n):document.head.appendChild(o),i="getComputedStyle"in window&&window.getComputedStyle(o,null)||o.currentStyle,a={matchMedium:function(e){e="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return o.styleSheet?o.styleSheet.cssText=e:o.textContent=e,"1px"===i.width}}),function(e){return{matches:a.matchMedium(e||"all"),media:e||"all"}}));var l={queries:[],current:"",_init:function(){r()("meta.foundation-mq").length||r()('').appendTo(document.head);var e,t,n,i=r()(".foundation-mq").css("font-family"),o={};for(n in e="string"==typeof(t=i)&&(t=i.trim().slice(1,-1))?o=t.split("&").reduce(function(e,t){var t=t.replace(/\+/g," ").split("="),n=t[0],t=t[1],n=decodeURIComponent(n),t=void 0===t?null:decodeURIComponent(t);return e.hasOwnProperty(n)?Array.isArray(e[n])?e[n].push(t):e[n]=[e[n],t]:e[n]=t,e},{}):o)e.hasOwnProperty(n)&&this.queries.push({name:n,value:"only screen and (min-width: ".concat(e[n],")")});this.current=this._getCurrentSize(),this._watcher()},atLeast:function(e){e=this.get(e);return!!e&&window.matchMedia(e).matches},is:function(e){return 1<(e=e.trim().split(" ")).length&&"only"===e[1]?e[0]===this._getCurrentSize():this.atLeast(e[0])},get:function(e){for(var t in this.queries)if(this.queries.hasOwnProperty(t)){t=this.queries[t];if(e===t.name)return t.value}return null},_getCurrentSize:function(){for(var e,t=0;tli, > li > ul, .menu, .menu > li, [data-submenu] > li").removeClass("".concat(n," ").concat(i," ").concat(t," is-submenu-item submenu is-active")).removeAttr("data-submenu").css("display","")}}},"./js/foundation.util.timer.js":function(e,t,n){"use strict";function i(t,e,n){var i,o,a=this,r=e.duration,s=Object.keys(t.data())[0]||"timer",l=-1;this.isPaused=!1,this.restart=function(){l=-1,clearTimeout(o),this.start()},this.start=function(){this.isPaused=!1,clearTimeout(o),l=l<=0?r:l,t.data("paused",!1),i=Date.now(),o=setTimeout(function(){e.infinite&&a.restart(),n&&"function"==typeof n&&n()},l),t.trigger("timerstart.zf.".concat(s))},this.pause=function(){this.isPaused=!0,clearTimeout(o),t.data("paused",!0);var e=Date.now();l-=e-i,t.trigger("timerpaused.zf.".concat(s))}}n.r(t),n.d(t,"Timer",function(){return i}),n("jquery")},"./js/foundation.util.touch.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Touch",function(){return c});var t=n("jquery"),i=n.n(t);function o(e,t){for(var n=0;n=i.a.spotSwipe.moveThreshold&&s<=i.a.spotSwipe.timeThreshold?0