!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,s,r=t.document,o=r.documentElement,h=t.setTimeout,a=t.clearTimeout,u=i._N2,c=(t.requestAnimationFrame,function(t,i=null,n=null,s=null){const o=r.createElement(t);return i&&("string"==typeof i?g(o,i):b(o,i)),n&&v(o,n),s&&m(o,s),o}),f=Object.assign,l=function(t,i,n){t.setAttribute(i,n)},v=function(t,i){for(var n in i)l(t,n,i[n])},d=function(t,i){return t.dataset[i]},p=function(t,i,n){t.dataset[i]=n},m=function(t,i){for(let n in i)p(t,n,i[n])},g=function(t,i){t.classList.add(i)},b=function(t,i){i.forEach((function(i){t.classList.add(i)}))},w=function(t,i){return t.dispatchEvent(i)},y=function(t,i,n){return n=f({bubbles:!0,cancelable:!0},n),w(t,new Event(i,n))},M=function(t,i,n,s){return s=s||{},t.addEventListener(i,n,s),t.removeEventListener.bind(t,i,n,s)},x=function(t){if("complete"===r.readyState||"interactive"===r.readyState)t();else if(Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==r.addEventListener){const i=()=>{t(),t=()=>{}};r.addEventListener("DOMContentLoaded",i),r.addEventListener("readystatechange",(()=>{"complete"!==r.readyState&&"interactive"!==r.readyState||i()})),Document.prototype.addEventListener.call(r,"DOMContentLoaded",i)}else r.addEventListener("DOMContentLoaded",t)},_=navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1?function(t){t()}:i.requestIdleCallback||function(t){return h(t,1)};i.cancelIdleCallback;x((function(){n=r.body})),function(){"use strict";var t={},n={};i.n2Slow=navigator.userAgent.indexOf("Chrome-Lighthouse")>-1&&navigator.userAgent.indexOf("Android")>-1;var r=[],o=!1;function a(){var t=performance.now(),n=r;r=[];for(var s=n.length-1;s>=0&&(n.pop().call(),!(performance.now()-t>7));s--);!i.n2Slow&&n.length&&(i.n2Slow=!0),n.unshift.apply(n,r),(r=n).length?_(a,{timeout:2e3}):o=!1}function f(t){r.unshift(t),o||(o=!0,_(a,{timeout:2e3}))}var l=new Date,v=function(){if(i.jQuery){var $=i.jQuery;u.d("$",(function(){return $}))}else{if(h(v,20),(new Date).getTime()-l.getTime()>1e3)c("script").src=u._jQueryFallback}};function d(i){return!(!i||t[i]!==s)&&(t[i]=new Promise((function(t){n[i]=t})),"$"===i&&v(),!0)}function p(i,s,r){var o=[];if(d(i)||n[i]){if("function"==typeof s?(r=s,s=[]):"string"==typeof s&&(s=[s]),(s=s||[]).length)for(var h=0;h<s.length;h++)d(s[h]),o.push(t[s[h]]);Promise.all(o).then(function(t){u[i]="function"!=typeof r||r.call(u),t()}.bind(this,n[i])),delete n[i]}}function m(i,n){var r=[];if(n===s?(n=i,i=[]):"string"==typeof i&&(i=[i]),i=i||[])for(var o=0;o<i.length;o++)d(i[o]),r.push(t[i[o]]);Promise.all(r).then((function(){n.call(u)}))}i.N2DISABLESCHEDULER?(u.d=p,u.r=m):(u.d=function(t,i,n){f(p.bind(this,t,i,n))},u.r=function(t,i){f(m.bind(this,t,i))});for(var g=0;g<this._N2._d.length;g++)u.d.apply(this,this._N2._d[g]);for(var b=0;b<this._N2._r.length;b++)u.r.apply(this,this._N2._r[b])}.call(i),i.NextendThrottle=function(t,i){var n,s;return i||(i=250),function(){var r=this,o=+new Date,u=arguments;n&&o<n+i?(a(s),s=h((function(){n=o,t.apply(r,u)}),i)):(n=o,t.apply(r,u))}},i.NextendDeBounce=function(t,i,n){var s;return function(){var r=this,o=arguments,u=function(){s=null,n||t.apply(r,o)},c=n&&!s;a(s),s=h(u,i),c&&t.apply(r,o)}},u.r("nextend-frontend",(function(){if(x((function(){u.d("documentReady")})),"complete"===r.readyState)u.d("windowLoad");else{let s;const o=navigator.userAgent;o.indexOf("Safari")>0&&-1===o.indexOf("Chrome")&&(s=setInterval((function(){"interactive"!==r.readyState&&"complete"!==r.readyState||(u.d("windowLoad"),clearInterval(s))}),2e3)),t="load",n=function(){u.d("windowLoad"),clearInterval(s)},i.addEventListener(t,n,{once:!0})}var t,n})),i.ResizeObserver||(i.ResizeObserver=function(){"use strict";var t=function(){if("undefined"!=typeof Map)return Map;function t(t,i){var n=-1;return t.some((function(t,s){return t[0]===i&&(n=s,!0)})),n}return function(){function i(){this.__entries__=[]}return Object.defineProperty(i.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),i.prototype.get=function(i){var n=t(this.__entries__,i),s=this.__entries__[n];return s&&s[1]},i.prototype.set=function(i,n){var s=t(this.__entries__,i);~s?this.__entries__[s][1]=n:this.__entries__.push([i,n])},i.prototype.delete=function(i){var n=this.__entries__,s=t(n,i);~s&&n.splice(s,1)},i.prototype.has=function(i){return!!~t(this.__entries__,i)},i.prototype.clear=function(){this.__entries__.splice(0)},i.prototype.forEach=function(t,i){void 0===i&&(i=null);for(var n=0,s=this.__entries__;n<s.length;n++){var r=s[n];t.call(i,r[1],r[0])}},i}()}(),n=void 0!==i&&void 0!==r&&i.document===r,s="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:void 0!==i&&i.Math===Math?i:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(t){return h((function(){return t(Date.now())}),1e3/60)},a=2;function u(t,i){var n=!1,s=!1,r=0;function u(){n&&(n=!1,t()),s&&f()}function c(){o(u)}function f(){var t=Date.now();if(n){if(t-r<a)return;s=!0}else n=!0,s=!1,h(c,i);r=t}return f}var c=20,f=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,v=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=u(this.refresh.bind(this),c)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var i=this.observers_,n=i.indexOf(t);~n&&i.splice(n,1),!i.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){n&&!this.connected_&&(r.addEventListener("transitionend",this.onTransitionEnd_),i.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(r,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(r.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){n&&this.connected_&&(r.removeEventListener("transitionend",this.onTransitionEnd_),i.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&r.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var i=t.propertyName,n=void 0===i?"":i;f.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),d=function(t,i){for(var n=0,s=Object.keys(i);n<s.length;n++){var r=s[n];Object.defineProperty(t,r,{value:i[r],enumerable:!1,writable:!1,configurable:!0})}return t},p=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||s},m=k(0,0,0,0);function g(t){return parseFloat(t)||0}function b(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return i.reduce((function(i,n){return i+g(t["border-"+n+"-width"])}),0)}function w(t){for(var i={},n=0,s=["top","right","bottom","left"];n<s.length;n++){var r=s[n],o=t["padding-"+r];i[r]=g(o)}return i}function y(t){var i=t.getBBox();return k(0,0,i.width,i.height)}function M(t){var i=t.clientWidth,n=t.clientHeight;if(!i&&!n)return m;var s=p(t).getComputedStyle(t),r=w(s),o=r.left+r.right,h=r.top+r.bottom,a=g(s.width),u=g(s.height);if("border-box"===s.boxSizing&&(Math.round(a+o)!==i&&(a-=b(s,"left","right")+o),Math.round(u+h)!==n&&(u-=b(s,"top","bottom")+h)),!_(t)){var c=Math.round(a+o)-i,f=Math.round(u+h)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(f)&&(u-=f)}return k(r.left,r.top,a,u)}var x="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof p(t).SVGGraphicsElement}:function(t){return t instanceof p(t).SVGElement&&"function"==typeof t.getBBox};function _(t){return t===p(t).document.documentElement}function O(t){return n?x(t)?y(t):M(t):m}function P(t){var i=t.x,n=t.y,s=t.width,r=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,h=Object.create(o.prototype);return d(h,{x:i,y:n,width:s,height:r,top:n,right:i+s,bottom:r+n,left:i}),h}function k(t,i,n,s){return{x:t,y:i,width:n,height:s}}var S=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=O(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),E=function(){function t(t,i){var n=P(i);d(this,{target:t,contentRect:n})}return t}(),A=function(){function i(i,n,s){if(this.activeObservations_=[],this.observations_=new t,"function"!=typeof i)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=i,this.controller_=n,this.callbackCtx_=s}return i.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(t)||(i.set(t,new S(t)),this.controller_.addObserver(this),this.controller_.refresh())}},i.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(t)&&(i.delete(t),i.size||this.controller_.removeObserver(this))}},i.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},i.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(i){i.isActive()&&t.activeObservations_.push(i)}))},i.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,i=this.activeObservations_.map((function(t){return new E(t.target,t.broadcastRect())}));this.callback_.call(t,i,t),this.clearActive()}},i.prototype.clearActive=function(){this.activeObservations_.splice(0)},i.prototype.hasActive=function(){return this.activeObservations_.length>0},i}(),C="undefined"!=typeof WeakMap?new WeakMap:new t,D=function(){function t(i){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=v.getInstance(),s=new A(i,n,this);C.set(this,s)}return t}();return["observe","unobserve","disconnect"].forEach((function(t){D.prototype[t]=function(){var i;return(i=C.get(this))[t].apply(i,arguments)}})),void 0!==s.ResizeObserver?s.ResizeObserver:D}()),u.StringHelper={capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},function(){var t=function(t){return Symbol.iterator in Object(t)},i={add:function(t){requestAnimationFrame(t)},remove:function(){}};u.t=u.t||i;var n,r=new class{constructor(){this.i=!1,this.o=new Set,this.h=this.u.bind(this)}add(t){this.o.add(t),this.i||(this.i=!0,u.t.add(this.h))}u(){for(let t of this.o)t.render?t.render():t();this.o.clear(),this.i=!1,u.t.remove(this.h)}},o={};n=/Safari/i.test(navigator.userAgent)&&!/Chrom[ei]/i.test(navigator.userAgent)?function(t,i,n,s){var r="";return s&&(t||i||n)?"translate3d("+(t||0)+"px, "+(i||0)+"px, "+(n||0)+"px) ":((t||i)&&(r+="translate("+(t||0)+"px, "+(i||0)+"px) "),n&&(r+="translateZ("+n+"px) "),r)}:function(t,i,n,s){return t||i||n?"translate3d("+(t||0)+"px, "+(i||0)+"px, "+(n||0)+"px) ":""};class h{constructor(i,n){t(i)?this.l=Array.from(i):this.l=[i],this.v=f({},n),this.p=new Set}get scale(){return this.scaleX}set scale(t){this.scaleX=t,this.scaleY=t}render(){for(let i of this.p){var t=this.v[i];switch(i){case"transform":t=this.m();break;case"filter":t=this.g();break;case"n2AutoAlpha":0===this.opacity?this.M||(this.M=!0,this._("data-force-hidden","")):this.M&&(this.M=!1,this.O("data-force-hidden"));continue;case"opacity":this.v.n2AutoAlpha&&(0===t?this.M||(this.M=!0,this._("data-force-hidden","")):this.M&&(this.M=!1,this.O("data-force-hidden")));break;case"width":case"height":case"perspective":"number"==typeof t&&(t+="px")}for(let n of this.l)n.style.setProperty(i,t)}this.p.clear()}m(){let{xP:t,yP:i,x:r,y:o,z:h,xAbs:a,yAbs:u,xPAbs:c,yPAbs:f,parallaxX:l,parallaxY:v,parallaxRotationX:d,parallaxRotationY:p,layerRotation:m,rotationZ:g,rotationY:b,rotationX:w,scaleX:y,scaleY:M,scaleZ:x,skewX:_,skewY:O,transformPerspective:P,force3D:k}=this.v,S="";return P&&(S+="perspective("+P+"px) "),(t||i)&&(S+="translate("+(t||0)+"%, "+(i||0)+"%) "),(a||u)&&(S+="translate("+(a||0)+"px, "+(u||0)+"px) "),(c||f)&&(S+="translate("+(c||0)+"%, "+(f||0)+"%) "),S+=n(r,o,h,k),_&&(S+="skewX("+_+"deg) "),O&&(S+="skewY("+O+"deg) "),m&&(S+="rotate("+m+"deg) "),g&&(S+="rotate("+g+"deg) "),b&&(S+="rotateY("+b+"deg) "),w&&(S+="rotateX("+w+"deg) "),y===s&&(y=1),M===s&&(M=1),1===y&&1===M||(S+="scale("+y+", "+M+") "),x===s&&(x=1),1!==x&&(S+="scaleZ("+x+") "),S||"translate3d(0, 0, 0)"}g(){let{n2blur:t}=this.v,i="";return t>.1&&(i="blur("+t+"px) "),i||"none"}_(t,i){for(let n of this.l)(n.relatedLayer||n).setAttribute(t,i)}O(t){for(let i of this.l)(i.relatedLayer||i).removeAttribute(t)}setValues(t){for(var i in t)this[i]=t[i]}}class a{constructor(t,i){this.P=[];for(var n=0;n<t.length;n++)t[n]&&this.P.push(b.k(t[n],i))}setValues(t){for(var i=0;i<this.P.length;i++)this.P[i].setValues(t)}}var c={},l=function(t){Object.defineProperty(a.prototype,t,{get:function(){return this.P[0][t]},set:function(i){i instanceof Function&&(i=i());for(var n=0;n<this.P.length;n++)this.P[n][t]=i}})},v=function(t,i,n){Object.getOwnPropertyDescriptor(h.prototype,t)||(i===s&&(i=""),n===s&&(n=t),c[n]===s&&(c[n]=[]),c[n].push(t),o[t]=i,Object.defineProperty(h.prototype,t,{get:function(){return this.v[t]===s&&(this.v[t]=o[t]),this.v[t]},set:function(i){i instanceof Function&&(i=i()),this.v[t]!==i&&(this.v[t]=i,this.p.add(n),r.add(this))}}),l(t))},d=function(t,i){Object.defineProperty(h.prototype,t,{get:function(){return this[i]},set:function(t){this[i]=t}}),l(t)};v("property"),v("display"),v("z-index",1),v("overflow","visible"),v("overflow-x","visible"),v("backface-visibility","visible"),v("transform-origin","50% 50% 0"),v("opacity",1),v("width",0),v("height",0),v("justify-content"),v("background"),v("color"),v("will-change",""),v("stroke-dasharray",""),v("visibility"),v("perspective",0),v("transform-style"),v("cursor",""),v("top"),v("right"),v("bottom"),v("left");var p="transform";v("force3D",0,p),v("transformPerspective",0,p),v("xP",0,p),v("yP",0,p),v("x",0,p),v("y",0,p),v("z",0,p),v("xAbs",0,p),v("yAbs",0,p),v("xPAbs",0,p),v("yPAbs",0,p),v("scaleX",1,p),v("scaleY",1,p),v("scaleZ",1,p),v("rotationZ",0,p),v("rotationX",0,p),v("rotationY",0,p),v("skewX",0,p),v("skewY",0,p),v("layerRotation",0,p),v("n2blur",0,"filter"),v("n2AutoAlpha",0),d("zIndex","z-index"),d("backfaceVisibility","backface-visibility"),d("transformOrigin","transform-origin"),d("justifyContent","justify-content"),d("transformStyle","transform-style"),d("overflowX","overflow-x"),d("clipPath","clip-path");var m={0:function(t){this.classList.add(t)},1:function(t){this.classList.remove(t)}};class g{constructor(i){t(i)?this.l=Array.from(i):this.l=[i],this.S=[]}addClass(t){this.S.push([0,t]),r.add(this)}removeClass(t){this.S.push([1,t]),r.add(this)}render(){for(var t=0;t<this.S.length;t++){var i=this.S[t];for(let t of this.l)m[i[0]].apply(t,i.splice(1))}this.S=[]}}var b=u.MW={A:v,k:function(t,i){return t.smw||(t.smw=new h(t,i)),t.smw},C:function(t,i){for(var n=[],s=0;s<t.length;s++)n.push(b.k(t[s],i));return n},D:function(t,i){return new a(t,i)},R:function(t,i){t.forEach((function(t){t.setValues(i)}))},T:function(t,i){i.forEach((function(i){c[i]&&c[i].forEach((function(i){t[i]=o[i]}))}))},j:function(t,i){r.add((function(){t.className.add(i)}))},F:function(t,i){r.add((function(){t.className.remove(i)}))},L:function(t){r.add(t)},N:function(t){return t.umw||(t.umw=new g(t)),t.umw},flush(){r.u()}}}(),customElements.define("ss3-force-full-width",class extends HTMLElement{connectedCallback(){if(this.isConnected){n=n||r.body,this.I="rtl"===o.getAttribute("dir"),this._width=0,this._offset=Number.MAX_SAFE_INTEGER,this.X=u.MW.k(this,{x:Number.MAX_SAFE_INTEGER,opacity:0});var t=d(this,"overflowX");t&&"none"!==t&&r.querySelectorAll(t).forEach((function(t){u.MW.k(t).overflowX="hidden"}));var s=n;if(i.ssForceFullHorizontalSelector)s=i.ssForceFullHorizontalSelector;else{var h=d(this,"horizontalSelector");if(h&&"body"!==h)try{s=this.closest(h)}catch(t){}}if(s===n)for(var a=[".elementor-section-stretched",'.siteorigin-panels-stretch[data-stretch-type="full-stretched"]','.siteorigin-panels-stretch[data-stretch-type="full-stretched-padded"]',".themify_builder_row.fullwidth",'.vce-row[data-vce-stretch-content="true"]'],c=0;c<a.length;c++){var f=this.closest(a[c]);if(f){s=f;break}}this.fullWidthTo=s,this.resizeObserver=new ResizeObserver(this.doResize.bind(this)),this.resizeObserver.observe(this.parentNode),i.addEventListener("resize",this.doResize.bind(this))}}doResize(){var t=0,s=0;if(this.fullWidthTo){var r=this.fullWidthTo.getBoundingClientRect();s=r.width,t=this.I?-s+r.right:r.left}var o,h,a=s>0?s:n.clientWidth,u=i.getComputedStyle(this.parentNode);o=this.I?a-this.parentNode.getBoundingClientRect().right-parseInt(u.getPropertyValue("padding-right"))-parseInt(u.getPropertyValue("border-right-width"))+t:-this.parentNode.getBoundingClientRect().left-parseInt(u.getPropertyValue("padding-left"))-parseInt(u.getPropertyValue("border-left-width"))+t,o+=h=o%1,a-=Math.floor(h),(this._width-a<=0||this._width-a>1||this._offset-o<-1||this._offset-o>=0)&&(this._offset!==o&&(this.X.x=o,this._offset=o,0!==o&&this.classList.add("n2-ss-no-bga-fixed")),this._width!==a&&(this.X.width=a,this._width=a)),this.setVisible&&this.setVisible()}setVisible(){this.X.opacity=1,delete this.setVisible}}),customElements.define("ss3-loader",class extends HTMLElement{connectedCallback(){this.B=[]}set display(t){this.V!==t&&(this.V=t,this.style.display=t)}show(){this.display="grid"}addPromise(t){this.B.push(t),this.syncStyle(),t.finally(this.removePromise.bind(this,t))}removePromise(t){var i=this.B.indexOf(t);i>-1&&(this.B.splice(i,1),this.syncStyle())}syncStyle(){this.B.length?this.Y||(this.Y=h(this.show.bind(this),100)):(this.Y&&(a(this.Y),delete this.Y),this.display="")}});var O,P="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;i.n2const={devicePixelRatio:i.devicePixelRatio||1,isFirefox:/Firefox/i.test(navigator.userAgent),isIOS:/iPad|iPhone|iPod/.test(navigator.platform)||P,isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Silk/i.test(navigator.userAgent)||P,isPhone:/Android/i.test(navigator.userAgent)&&/mobile/i.test(navigator.userAgent)||/webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isSamsungBrowser:navigator.userAgent.match(/SamsungBrowser/i),isBot:/bot|googlebot|crawler|spider|robot|crawling|Google Search Console/i.test(navigator.userAgent),isLighthouse:navigator.userAgent.indexOf("Chrome-Lighthouse")>-1,lightboxMobileNewTab:1,isVideoAutoplayAllowed:function(){var t=!!(navigator.platform.match(/(Win|Mac)/)||!/Mobi/.test(navigator.userAgent)||"playsInline"in c("video")||"webkit-playsinline"in c("video")||navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)&&parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2])>=53||navigator.userAgent.match(/Android.*(Firefox|Edge|Opera)/));return i.n2const.isVideoAutoplayAllowed=function(){return t},t},isWaybackMachine:function(){var t=void 0!==i.__wm;return i.n2const.isWaybackMachine=function(){return t},t},setLocation:function(t){"function"==typeof i.zajax_goto?i.zajax_goto(t):i.location=t},isParentSameOrigin:function(){try{return parent.document,!0}catch(t){}return!1},activeElementBlur:function(){r.activeElement&&r.activeElement.blur()},getScrollbarSize:function(){var t,i,s,r=c("div",t,i,s);r.style.visibility="hidden",r.style.overflow="scroll",n.appendChild(r);var o=r.offsetHeight-r.clientHeight;return n.removeChild(r),n2const.getScrollbarSize=function(){return o},o},fonts:new Promise((function(t){if("fonts"in r){r.fonts.ready.then(t);const i=navigator.userAgent;i.indexOf("Safari")>0&&-1===i.indexOf("Chrome")&&u.r("windowLoad",t)}else u.r("windowLoad",t)}))},i.n2const.isTablet=!i.n2const.isPhone&&(/Android|iPad|tablet|Silk/i.test(navigator.userAgent)||P),i.n2const.rtl=(i.n2const.isRTL=function(){return i.n2const.rtl.isRtl},"rtl"===o.getAttribute("dir")?{isRtl:!0,marginLeft:"marginRight",marginRight:"marginLeft","margin-left":"margin-right","margin-right":"margin-left",left:"right",right:"left",modifier:-1}:{isRtl:!1,marginLeft:"marginLeft",marginRight:"marginRight","margin-left":"margin-left","margin-right":"margin-right",left:"left",right:"right",modifier:1}),u._triggerResize=(O=null,function(){O&&a(O),O=h((function(){y(i,"resize"),O=null}),100)}),u._shouldPreventClick=!1,u._preventClick=function(){u._shouldPreventClick||(u._shouldPreventClick=!0,h((function(){u._shouldPreventClick=!1}),300))},u.d("ImagesLoaded",(function(){return function(t){var i,n=[];i="IMG"===t.tagName?[t]:t.querySelectorAll("img");for(var s=0;s<i.length;s++){var r=i[s];r.loading="eager",r.complete?r.naturalWidth||n.push(new Promise(function(t){h(t,16)}.bind(r))):n.push(new Promise(function(t,i){this.addEventListener("load",(function(){t()})),this.addEventListener("error",(function(){i()}))}.bind(r)))}return Promise.all(n)}})),u.d("UniversalPointer",(function(){var t=!!i.PointerEvent,n=!!i.TouchEvent;function r(t,i){this.el=t,this.handler=i,this.preventMouse=!1,this.timeouts=[],this.localListeners=[],this.globalListeners=[]}function c(i,s,h){var a=this.context=new r(i,s);a.addGlobalEventListener("click",(function(e){a.preventMouse||a.click(e)})),t?a.addGlobalEventListener("pointerdown",(function(t){t.isPrimary&&(a.startComplexInteraction(t.currentTarget),a.addLocalEventListener(o,"pointerup",(function(i){i.isPrimary&&t.pointerId===i.pointerId&&(Math.abs(i.clientX-t.clientX)<10&&Math.abs(i.clientY-t.clientY)<10?a.click(i):a.clear(),a.endComplexInteraction())})))})):n&&a.addGlobalEventListener("touchstart",(function(t){a.clearTimeouts(),a.startComplexInteraction(t.currentTarget),a.addLocalEventListener(o,"touchend",(function(i){Math.abs(i.changedTouches[0].clientX-t.changedTouches[0].clientX)<10&&Math.abs(i.changedTouches[0].clientY-t.changedTouches[0].clientY)<10?a.click(i):a.clear(),a.endComplexInteraction()}),{passive:!0})}),{passive:!0})}function l(t,i,n){this.el=t,this.handler=i,this.leaveOnSecond=n,this.preventMouse=!1,this.isActive=!1,this.timeouts=[],this.localListeners=[],this.globalListeners=[]}function v(i,s,r){r=f({leaveOnSecond:!1},r);var a=this.context=new l(i,s,r.leaveOnSecond);t?(a.addGlobalEventListener("pointerenter",(function(e){e.isPrimary&&(a.clearTimeouts(),a.enter(e)&&"mouse"!==e.pointerType&&(a.addLocalEventListener(o,"pointerdown",(function(e){e.isPrimary&&a.testLeave(e.target)})),a.addTimeout(h((function(){a.leave()}),5e3))))})),a.addGlobalEventListener("pointerleave",(function(e){e.isPrimary&&"mouse"===e.pointerType&&a.leave()}))):(a.addGlobalEventListener("mouseenter",(function(e){a.preventMouse||a.enter(e)})),a.addGlobalEventListener("mouseleave",(function(){a.preventMouse||a.leave()})),n&&a.addGlobalEventListener("touchstart",(function(e){a.preventMouse=!0,a.clearTimeouts(),a.enter(e)&&(a.addLocalEventListener(o,"touchstart",(function(e){a.testLeave(e.target)})),a.addTimeout(h((function(){a.leave(),a.preventMouse=!1}),5e3)))}),{passive:!0}))}r.prototype.addTimeout=function(t){this.timeouts.push(t)},r.prototype.clearTimeouts=function(){for(var t=0;t<this.timeouts.length;t++)a(this.timeouts[t]);this.timeouts=[]},r.prototype.click=function(e){this.currentTarget!==s&&(e={currentTarget:this.currentTarget,target:this.el}),this.handler.call(this.el,e),this.clear()},r.prototype.clear=function(){for(var t=0;t<this.localListeners.length;t++)this.localListeners[t][0].removeEventListener(this.localListeners[t][1],this.localListeners[t][2],this.localListeners[t][3])},r.prototype.addGlobalEventListener=function(t,i,n){this.globalListeners.push(M(this.el,t,i,n))},r.prototype.addLocalEventListener=function(t,i,n,s){this.localListeners.push([t,i,n,s]),t.addEventListener(i,n,s)},r.prototype.remove=function(){this.clear(),this.clearTimeouts();for(var t=0;t<this.globalListeners.length;t++)this.globalListeners[t]();delete this.globalListeners},r.prototype.startComplexInteraction=function(t){this.clearTimeouts(),this.preventMouse=!0,this.currentTarget=t},r.prototype.endComplexInteraction=function(){delete this.currentTarget,this.addTimeout(h(function(){this.preventMouse=!1}.bind(this),1e3))},c.prototype.remove=function(){this.context.remove(),delete this.context},u.UniversalClick=c,l.prototype.enter=function(e){return this.leaveOnSecond&&this.isActive?(this.leave(),!1):(this.handler.apply(this.el,arguments),this.isActive=!0,!0)},l.prototype.leave=function(){this.clearTimeouts();for(var t=0;t<this.localListeners.length;t++)this.localListeners[t][0].removeEventListener(this.localListeners[t][1],this.localListeners[t][2],this.localListeners[t][3]);var i;this.isActive=!1,i=this.el,w(i,new Event("universalleave",{bubbles:!1,cancelable:!1}))},l.prototype.testLeave=function(t){!this.el===t&&this.el.contains(t)&&this.leave()},l.prototype.addTimeout=function(t){this.timeouts.push(t)},l.prototype.clearTimeouts=function(){for(var t=0;t<this.timeouts.length;t++)a(this.timeouts[t]);this.timeouts=[]},l.prototype.addGlobalEventListener=function(t,i,n){this.globalListeners.push(M(this.el,t,i,n))},l.prototype.remove=function(){this.isActive&&this.leave(),this.clearTimeouts();for(var t=0;t<this.globalListeners.length;t++)this.globalListeners[t]();delete this.globalListeners},l.prototype.addLocalEventListener=function(t,i,n,s){this.localListeners.push([t,i,n,s]),t.addEventListener(i,n,s)},v.prototype.remove=function(){this.context.remove(),delete this.context},u.UniversalEnter=v})),u.d("EventBurrito",(function(){var t=function(){return!0},o=!1;return function(a,u){var c={preventDefault:!0,preventScroll:!1,mouse:!0,axis:"x",start:t,move:t,end:t,click:t};f(c,u);var l,v,d,p,m={pointerEvents:!(n2const.isIOS&&i.TouchEvent||!i.PointerEvent&&!i.PointerEventsPolyfill)},g={},b={},w=[],x=!0,_=m.pointerEvents?1:0,O=[["touchstart","touchmove","touchend","touchcancel"],["pointerdown","pointermove","pointerup","pointercancel","pointerleave"],["mousedown","mousemove","mouseup","","mouseleave"]],P=[function(e){return e.touches&&e.touches.length>1||e.scale&&1!==e.scale},function(e){return!e.isPrimary||e.buttons&&1!==e.buttons||!c.mouse&&"touch"!==e.pointerType&&"pen"!==e.pointerType},function(e){return e.buttons&&1!==e.buttons}],k=function(t,i){var n=t.tagName;return"INPUT"===n||"TEXTAREA"===n||"SELECT"===n||"BUTTON"===n||"VIDEO"===n||t.classList.contains("n2_container_scrollable")||t.closest(".n2_container_scrollable")};function S(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function E(t){b={x:(p?t.clientX:t.touches[0].clientX)-g.x,y:(p?t.clientY:t.touches[0].clientY)-g.y,time:Date.now()}}function A(e,t){if((e.isPrimary===s||e.isPrimary)&&!o&&(l=[],x=!0,!P[p=t](e)&&!k(e.target)))if("pointerdown"===e.type&&"mouse"===e.pointerType&&e.target.closest(".n2-ss-text")){var i=M(e.target,"click",(function(t){i(),Math.abs(e.clientX-t.clientX)<10&&Math.abs(e.clientY-t.clientY)<10&&y(e.target,"n2click")}));h(i,2e3)}else o=!0,0!==p&&l.push(M(r,O[p][1],C,{passive:!1,capture:!0})),l.push(M(r,O[p][2],R,{passive:!1,capture:!0})),l.push(M(r,O[p][3],R,{passive:!1,capture:!0})),l.push(M(n,O[p][4],D,{passive:!1,capture:!0})),g={x:p?e.clientX:e.touches[0].clientX,y:p?e.clientY:e.touches[0].clientY,time:Date.now()},v=s,d=!1,b={x:0,y:0},c.start(e,g),C(e)}function C(t){(t.isPrimary===s||t.isPrimary)&&("x"===c.axis&&(!c.preventScroll&&v||P[p](t))||k(t.target)||(E(t),(Math.abs(b.x)>10||Math.abs(b.y)>10)&&(x=!1),v===s&&2!==p&&(v=Math.abs(b.x)<Math.abs(b.y)&&!c.preventScroll)||c.move(t,g,b,d)&&c.preventDefault&&S(t)))}function D(t){t.target===t.currentTarget&&R(t)}function R(t){if(t.isPrimary===s||t.isPrimary){p&&E(t),!x&&t.target&&t.target.blur&&t.target.blur();for(var i=l.length-1;i>=0;i--)l[i]();l=null,n2const.isFirefox&&(d=!1),c.end(t,g,b,d),d=!1,o=!1}}return w.push(M(r,"scroll",(function(){i.nextendScrollFocus!==s&&i.nextendScrollFocus||(d=!0)}))),1===_&&(a.style.touchAction="y"===c.axis?"pan-x":"pan-y"),w.push(M(a,O[_][0],(function(e){A(e,_)}),{passive:!1,capture:!0})),0===_&&w.push(M(a,O[0][1],(function(e){C(e)}),{passive:!1,capture:!0})),w.push(M(a,"dragstart",S)),c.mouse&&0===_&&w.push(M(a,O[2][0],(function(e){A(e,2)}))),w.push(M(a,"click",(function(t){x?c.click(t):S(t)}))),{supportsPointerEvents:m.pointerEvents,getClicksAllowed:function(){return x},kill:function(){for(var t=w.length-1;t>=0;t--)w[t]()}}}})),function(){var t,n=!1,s=-1,r=new Set,o=new Set,a=i.requestAnimationFrame||(t=0,function(i){var n=(new Date).getTime(),s=Math.max(0,16-(n-t));return t=n+s,h((function(){i(n+s)}),s)});function c(t){s=t,n&&(s=t,a(f))}function f(t){if(n&&0===r.size&&0===o.size)s=-1,n=!1;else if(-1!==s){var i=(t-s)/1e3;0!==i&&(r.forEach((function(t){t(i)})),o.forEach((function(t){t()})))}!function(t){n&&(s=t,a(f))}(t)}u.t={addP:function(t){r.add(t),n||(n=!0,a(c))},removeP:function(t){r.delete(t)},add:function(t){o.add(t),n||(n=!0,a(c))},remove:function(t){o.delete(t)}}}(),u.d("Animation",(function(){function t(t){this._tickCallback=null,this._progress=0,this._delayTimeout=!1,this._delay=0,this._duration=4,this._timeScale=1,this._isPlaying=!1,this._startTime=0,this._eventCallbacks={},this._immediateRender=!0,this._timeline=null,this._isCompleted=!1,this._isStarted=!1,this._isReversed=!1,this.toParams=t,this.initParameters()}return t.prototype.initParameters=function(){this.parseParameters(this.toParams),"object"!=typeof this.toParams&&this.paused(!1)},t.prototype.parseParameters=function(t){t&&(t.delay&&(this.delay(t.delay),delete t.delay),t.duration!==s&&(this.duration(t.duration),delete t.duration),t.onComplete&&(this.eventCallback("onComplete",t.onComplete),delete t.onComplete),t.onStart&&(this.eventCallback("onStart",t.onStart),delete t.onStart),t.onUpdate&&(this.eventCallback("onUpdate",t.onUpdate),delete t.onUpdate),t.immediateRender&&(this._immediateRender=t.immediateRender,delete t.immediateRender),t.paused&&(this.paused(!0),delete t.paused))},t.prototype.setTimeline=function(t){this._timeline=t},t.prototype._tick=function(t){var i=this._progress;this._isReversed?(this._progress-=t/this._duration*this._timeScale,1!=i&&this._isStarted?this._progress<=0?(this._progress=0,this._isPlaying=!1,u.t.removeP(this.getTickCallback()),this._onUpdate(),this._onReverseComplete()):this._onUpdate():this._onReverseStart()):(this._progress+=t/this._duration*this._timeScale,0!=i&&this._isStarted?this._progress>=1?(this._progress=1,this._isPlaying=!1,u.t.removeP(this.getTickCallback()),this._onUpdate(),this._onComplete()):this._onUpdate():this._onStart())},t.prototype._onStart=function(){this._isStarted=!0,this._isCompleted=!1,this._dispatch("onStart"),this._onUpdate()},t.prototype._onUpdate=function(){this._dispatch("onUpdate")},t.prototype._onComplete=function(){this._isCompleted=!0,this._onUpdate(),this._dispatch("onComplete")},t.prototype._onReverseComplete=function(){this._isCompleted=!0,this._isReversed=!1,this._onUpdate(),this._dispatch("onReverseComplete")},t.prototype._onReverseStart=function(){this._isStarted=!0,this._isCompleted=!1,this._dispatch("onReverseStart"),this._onUpdate()},t.prototype.getTickCallback=function(){if(!this._tickCallback){var t=this;this._tickCallback=function(){t._tick.apply(t,arguments)}}return this._tickCallback},t.prototype._clearDelayTimeout=function(){this._delayTimeout&&(a(this._delayTimeout),this._delayTimeout=!1)},t.prototype._timeToProgress=function(t){return t/this._duration*this._timeScale},t.prototype.delay=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return!isNaN(t)&&t!=1/0&&t||(t=0),this._delay=Math.max(0,t),this}return this._delay},t.prototype.duration=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return!isNaN(t)&&t!=1/0&&t||(t=0),this._duration=Math.max(0,t),this}return this._duration},t.prototype.eventCallback=function(t){return arguments.length>3?this._eventCallbacks[t]=[arguments[1],arguments[2],arguments[3]]:arguments.length>2?this._eventCallbacks[t]=[arguments[1],arguments[2],this]:arguments.length>1&&(this._eventCallbacks[t]=[arguments[1],[],this]),this._eventCallbacks[t]},t.prototype.pause=function(){return this._isPlaying=!1,u.t.removeP(this.getTickCallback()),arguments.length>0&&null!=arguments[0]&&this.progress(this._timeToProgress(arguments[0])),this},t.prototype.paused=function(){return arguments.length>0?(arguments[0]?this._isPlaying&&this.pause():this._isPlaying||this.play(),this):!this._isPlaying},t.prototype.play=function(){var t=!0;arguments.length>0&&null!=arguments[0]&&(t=!1,this._progress=this._timeToProgress(arguments[0])),this._play(t)},t.prototype._play=function(t){if(this._progress<1)if(0==this._progress&&t&&this._delay>0){if(!this._delayTimeout){var i=this;this._delayTimeout=h((function(){i.__play.apply(i,arguments)}),1e3*this._delay)}}else this.__play();else this._isCompleted||(this._isReversed?this._onReverseComplete():this._onComplete())},t.prototype.__play=function(){this._clearDelayTimeout(),this._isPlaying||(u.t.addP(this.getTickCallback()),this._isPlaying=!0)},t.prototype.progress=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=0),t=Math.min(1,Math.max(0,t)),this._progress=t,this._isPlaying||(this._isStarted||this._onStart(),this._onUpdate()),this}return this._progress},t.prototype.reverse=function(){this._isReversed=!0,0!=this.progress()&&this.play()},t.prototype.restart=function(){return arguments.length>0&&arguments[0]?(this.pause(0),this.play(),this):(this.play(0),this)},t.prototype.seek=function(t){null!=t&&(this._progress=this._timeToProgress(arguments[0]),this._isPlaying||this._onUpdate())},t.prototype.startTime=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=0),this._startTime=Math.max(0,t),this}return this._startTime},t.prototype.timeScale=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=1),t=Math.max(.01,t),this._timeScale!=t&&(this._timeScale=t),this}return this._timeScale},t.prototype._dispatch=function(t){"object"==typeof this._eventCallbacks[t]&&this._eventCallbacks[t][0].apply(this._eventCallbacks[t][2],this._eventCallbacks[t][1])},t.prototype.totalDuration=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=0),t=Math.max(0,t),this.timeScale(this._duration/t),this}return this._duration*this._timeScale},t.prototype.reset=function(){this._isCompleted=!1,this._isStarted=!1,this.progress(0)},t})),u.d("Tween",(function(){var t=2,i=3,n=function(t){return Symbol.iterator in Object(t)};function r(s,r){var o,h;switch(this.ease="linear",this._tweenContainer=null,this._setContainer=null,this._roundProps={},arguments.length){case 4:o=arguments[2],h=arguments[3],this._mode=t;break;default:this._mode=i,o={},h=arguments[2]}if(n(s)||(s=[s]),this._target=s,this.fromParams=o,u.Animation.call(this,h),this.parseParameters({duration:r}),this._mode===t&&this._immediateRender){for(var a in null===this._tweenContainer&&this._makeTweenContainer(this.fromParams,this.toParams),this._tweenContainer){var c=this._tweenContainer[a];this._target.forEach((function(t){t[a]=c.unit?c.startValue+c.unit:c.startValue}))}for(var a in this._setContainer){c=this._setContainer[a];this._target.forEach((function(t){t[a]=c.unit?c.endValue+c.unit:c.endValue}))}}}function o(t){var i=[t,""];t=String(t);var n=parseFloat(t);return isNaN(n)||(i[0]=n,i[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||""),i}function h(t,i,n,r){n===s&&(n=t[0][i]),r===s&&(r=t[0][i]),n=o(n);var h=0;return""!==(r=o(r))[1]&&n[1]!==r[1]&&(n[0]=0,n[1]=r[1]),"number"==typeof n[0]&&"number"==typeof r[0]&&(h=r[0]-n[0]),{startValue:n[0],endValue:r[0],unit:r[1],range:h}}return r.prototype=Object.create(u.Animation.prototype),r.prototype.constructor=r,r.prototype.initParameters=function(){this.parseParameters(this.fromParams),u.Animation.prototype.initParameters.apply(this,arguments)},r.prototype.parseParameters=function(t){t&&(t.ease&&(this.ease=t.ease,delete t.ease),u.Animation.prototype.parseParameters.apply(this,arguments))},r.prototype._onStart=function(){for(var t in null===this._tweenContainer&&this._makeTweenContainer(this.fromParams,this.toParams),this._setContainer){var i=this._setContainer[t];this._target.forEach((function(n){n[t]=i.unit?i.endValue+i.unit:i.endValue}))}u.Animation.prototype._onStart.call(this)},r.prototype._onUpdate=function(){for(var t in this._tweenContainer){var i=this._tweenContainer[t],n=u.Easings[this.ease]?u.Easings[this.ease](this._progress):this._progress,s=i.startValue+i.range*n;this._roundProps[t]&&(s=Math.round((10*s|0)/10)),this._target.forEach((function(n){n[t]=i.unit?s+i.unit:s}))}u.Animation.prototype._onUpdate.call(this)},r.prototype.initRoundProps=function(t){for(var i=t.split(","),n=0;n<i.length;n++)this._roundProps[i[n]]=!0},r.prototype._makeTweenContainer=function(t,i){for(var n in t.snap!==s&&(this.initRoundProps(t.snap),delete t.snap),this._setContainer={},this._tweenContainer={},i.snap!==s&&(this.initRoundProps(i.snap),delete i.snap),i){var r=h(this._target,n,t[n],i[n]);0==r.range?this._setContainer[n]=r:this._tweenContainer[n]=r}},r.to=function(t,i,n){var o=new r(t,i,n);return n.paused!==s&&n.paused||o.play(),o},r.fromTo=function(t,i,n,o){var h=new r(t,i,n,o);return o.paused!==s&&o.paused||h.play(),h},u.W=r,r})),u.d("Timeline",(function(){function t(t){this.originalParams=f({},t),this._tweens=[],u.Animation.call(this,t),this._duration=0}return t.prototype=Object.create(u.Animation.prototype),t.prototype.constructor=t,t.prototype._onUpdate=function(){if(this.tweensContainer)for(var t=0;t<this.tweensContainer.length;t++){var i=this.tweensContainer[t],n=Math.min(1,(this._progress-i.startProgress)/(i.endProgress-i.startProgress));i.tween._isCompleted&&n<=i.endProgress&&i.tween.reset(),!i.tween._isStarted&&n>=0&&0==i.tween.progress()&&i.tween._onStart(),i.tween._isStarted&&(1!=n||i.tween._isCompleted?n>=0&&n<1?i.tween.progress(n):n<0&&0!=i.tween.progress()&&i.tween.progress(0):(i.tween.progress(n),i.tween._onComplete()))}u.Animation.prototype._onUpdate.call(this)},t.prototype.addTween=function(t){t.pause(),t.setTimeline(this);var i=0;i=arguments.length>1?this._parsePosition(arguments[1]):this._parsePosition();var n=t.delay();n>0&&(i+=n,t.delay(0)),t.startTime(i),this._tweens.push(t);var s=t.totalDuration()+i;s>this._duration&&(this._duration=s),this.makeCache()},t.prototype.clear=function(){this.paused()||this.pause(),t.call(this,this.originalParams)},t.prototype.add=function(t,i){this.addTween(t,i)},t.prototype.set=function(t,i,n){this.addTween(u.W.to(t,.05,i),n)},t.prototype.to=function(t,i,n,s){n.paused=!0,this.addTween(u.W.to(t,i,n),s)},t.prototype.fromTo=function(t,i,n,s,r){s.paused=!0,this.addTween(u.W.fromTo(t,i,n,s),r)},t.prototype._play=function(){if(0==this._progress)for(var t=0;t<this._tweens.length;t++)this._tweens[t].pause(0);u.Animation.prototype._play.apply(this,arguments)},t.prototype._parsePosition=function(){var t="+=0";arguments.length>0&&arguments[0]!==s&&!isNaN(arguments[0])&&(t=arguments[0]);var i=0;switch(typeof t){case"string":switch(t.substr(0,2)){case"+=":i=this.duration()+parseFloat(t.substr(2));break;case"-=":i=this.duration()-parseFloat(t.substr(2))}break;default:i=parseFloat(t)}return Math.max(0,i)},t.prototype.makeCache=function(){var t=this.totalDuration();this.tweensContainer=[];for(var i=0;i<this._tweens.length;i++){var n=this._tweens[i],s=n.startTime()/t,r=(n.startTime()+n.totalDuration())/t;this.tweensContainer.push({tween:n,startProgress:s,endProgress:r,range:r-s})}},u.q=t,t})),u.d("Easings",(function(){var t={Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var i,n=4;t<((i=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*i-2)/22-t,2)}};["Quad","Cubic","Quart","Quint","Expo"].forEach((function(i,n){t[i]=function(t){return Math.pow(t,n+2)}}));var i={};for(var n in t)!function(t,n){i["easeIn"+t]=n,i["easeOut"+t]=function(t){return 1-n(1-t)},i["easeInOut"+t]=function(t){return t<.5?n(2*t)/2:1-n(-2*t+2)/2}}(n,t[n]);return i})),u.d("nextend-frontend"),u.d("n2")}(window);
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s,n,h=t.document,o=h.documentElement,r=t.setTimeout,a=t.clearTimeout,u=i._N2,c=(t.requestAnimationFrame,function(t,i=null,s=null,n=null){const o=h.createElement(t);return i&&("string"==typeof i?A(o,i):P(o,i)),s&&v(o,s),n&&S(o,n),o}),f=Object.assign,l=function(t,i){return t.getAttribute(i)},d=function(t,i,s){t.setAttribute(i,s)},v=function(t,i){for(var s in i)d(t,s,i[s])},p=function(t,i){t.removeAttribute(i)},m=function(t,i){return t.dataset[i]},b=function(t,i,s){t.dataset[i]=s},S=function(t,i){for(let s in i)b(t,s,i[s])},w=function(t,s){return i.getComputedStyle(t).getPropertyValue(s)},y=function(t,i,s){t.style.setProperty(i,s)},g=function(t,i){for(var s in i)y(t,s,i[s])},k=function(t,i){t.style.removeProperty(i)},C=function(t,i,s){t.forEach((function(t){y(t,i,s)}))},x=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},A=function(t,i){t.classList.add(i)},P=function(t,i){i.forEach((function(i){t.classList.add(i)}))},I=function(t,i){t.classList.remove(i)},M=function(t,i){return t.dispatchEvent(i)},F=function(t,i,s){return s=f({bubbles:!0,cancelable:!0},s),M(t,new Event(i,s))},R=function(t,i){return M(t,new Event(i,{bubbles:!1,cancelable:!1}))},D=function(t,i,s){return M(t,new CustomEvent(i,{bubbles:!1,cancelable:!1,detail:s}))},z=function(t){t.forEach((function(t){t()})),t.splice(0,t.length)},L=function(t,i,s,n){return n=n||{},t.addEventListener(i,s,n),t.removeEventListener.bind(t,i,s,n)},O=function(t,i,s,n){n=n||{},t.addEventListener(i,s,n)},T=function(t,i,s){t.addEventListener(i,s,{once:!0})},_=function(){return o.scrollTop},V=function(t){o.scrollTop=t},E=function(t){return t.getBoundingClientRect().height},B=function(t){return h.scrollingElement.scrollTop+t.getBoundingClientRect().top},j=function(t){if("complete"===h.readyState||"interactive"===h.readyState)t();else if(Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==h.addEventListener){const i=()=>{t(),t=()=>{}};h.addEventListener("DOMContentLoaded",i),h.addEventListener("readystatechange",(()=>{"complete"!==h.readyState&&"interactive"!==h.readyState||i()})),Document.prototype.addEventListener.call(h,"DOMContentLoaded",i)}else h.addEventListener("DOMContentLoaded",t)},W=function(t,i,s,n){if(Math.abs(t.scrollTop-i)<1)n&&n();else{s=Math.max(300,s||300);var h=t.scrollTop,o=i-h,r=performance.now(),a=function(i){var u=Math.min(1,(i-r)/s);u<.5?u*=2*u:u=(4-2*u)*u-1,t.scrollTop=h+u*o,u<1?requestAnimationFrame(a):n&&n()};a(r)}},H=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Y=navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1?function(t){t()}:i.requestIdleCallback||function(t){return r(t,1)};i.cancelIdleCallback;function q(t){var i=h.getElementById(t);if(i&&i.sheet){var s,n=i.sheet;for(s=n.cssRules.length-1;s>=0;s--)n.cssRules[s].selectorText&&n.cssRules[s].selectorText.includes("div#n2-ss-")&&n.deleteRule(s)}}j((function(){s=h.body})),u.d("SmartSliderBackgrounds",(function(){function t(t){this.device=null,this.slider=t,this.hasFixed=!1,this.lazyLoad=parseInt(t.parameters.lazyLoad),this.lazyLoadNeighbor=parseInt(t.parameters.lazyLoadNeighbor),this.promise=new Promise(function(t){this.resolve=t}.bind(this)),this.slider.stages.done("Resized",this.onResized.bind(this)),this.slider.stages.done("StarterSlide",this.onStarterSlide.bind(this))}return t.prototype.preLoad=function(t){Promise.all(t).then(this.resolve)},t.prototype.getBackgroundImages=function(){for(var t=[],i=0;i<this.slider.realSlides.length;i++)t.push(this.slider.realSlides[i].background);return t},t.prototype.onResized=function(){this.onSlideDeviceChanged(this.slider.responsive.getDeviceMode()),O(this.slider.sliderElement,"SliderDevice",function(e){this.onSlideDeviceChanged(e.detail.device)}.bind(this))},t.prototype.onStarterSlide=function(){1===this.lazyLoad?(this.preLoadSlides=this.preloadSlidesLazyNeighbor,this.preLoad(this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))):2===this.lazyLoad?(this.preLoadSlides=this._preLoadSlides,this.slider.stages.done("SlidesReady",function(){u.r("windowLoad",this.preLoadAll.bind(this))}.bind(this)),this.preLoad(this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))):(this.preLoadSlides=this._preLoadSlides,this.preLoad(this.preLoadAll())),O(this.slider.sliderElement,"visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))},t.prototype.onVisibleSlidesChanged=function(){1!==this.lazyLoad&&2!==this.lazyLoad||this.preLoadSlides(this.slider.getVisibleSlides())},t.prototype.onSlideDeviceChanged=function(t){this.device=t;for(var i=0;i<this.slider.visibleRealSlides.length;i++)this.slider.visibleRealSlides[i].background&&this.slider.visibleRealSlides[i].background.onSlideDeviceChanged(t)},t.prototype.preLoadAll=function(){for(var t=[],i=0;i<this.slider.visibleRealSlides.length;i++)t.push(this.slider.visibleRealSlides[i].preLoad());return t},t.prototype._preLoadSlides=function(t){for(var i=[],s=0;s<t.length;s++)i.push(t[s].preLoad());return i},t.prototype.preloadSlidesLazyNeighbor=function(t){var i=this._preLoadSlides(t);if(this.lazyLoadNeighbor)for(var s=0,n=t[0].getPrevious(),h=t[t.length-1].getNext();s<this.lazyLoadNeighbor;)n&&(i.push(n.preLoad()),n=n.getPrevious()),h&&(i.push(h.preLoad()),h=h.getNext()),s++;if(this.slider.stages.resolved("Visible"))for(var o=0;o<i.length;o++)this.slider.U.addPromise(i[o]);return i},t})),q("litespeed-optm-css-rules"),q("rocket-critical-css"),u.d("SmartSliderLoad",(function(){var t=performance.now();function s(t){this.slider=t}return s.prototype.start=function(){this.showSlider()},s.prototype.loadLayerImages=function(){var t=[];return this.slider.sliderElement.querySelectorAll(".n2-ss-layers-container").forEach((function(i){u.ImagesLoaded(i),t.push(u.ImagesLoaded(i))})),Promise.all(t)},s.prototype.showSlider=function(){this.slider.stages.done("ResizeFirst",this.stage1.bind(this))},s.prototype.stage1=function(){this.slider.responsive.isReadyToResize=!0,this.stage2()},s.prototype.stage2=function(){requestAnimationFrame(function(){this.slider.responsive.doResize(),this.slider.finalizeStarterSlide();var i=Promise.all([this.slider.backgrounds.promise,this.loadLayerImages(),this.slider.stages.get("Fonts").getPromise()]).finally(this.stage3.bind(this)),s=r(function(){this.slider.U.addPromise(i)}.bind(this),Math.max(1,this.slider.parameters.loadingTime-(performance.now()-t)));i.finally(a.bind(null,s))}.bind(this))},s.prototype.stage3=function(){this.slider.responsive.doResize(),this.slider.stages.resolve("LayerAnimations"),this.slider.stages.done("LayerAnimations",this.stage4.bind(this))},s.prototype.stage4=function(){this.slider.stages.resolve("BeforeShow"),this.slider.widgets.onReady(),u.MW.L(function(){A(this.slider.responsive.alignElement,"n2-ss-align-visible"),A(this.slider.sliderElement,"n2-ss-loaded"),I(this.slider.sliderElement,"n2notransition"),requestAnimationFrame((function(){F(i,"scroll")})),Y(this.slider.startVisibilityCheck.bind(this.slider),{timeout:2e3})}.bind(this)),this.slider.stages.resolve("Show")},s})),u.d("SmartSliderPlugins",(function(){function t(t){this.slider=t,this.plugins={}}t.prototype.add=function(t,i){this.plugins[t]=new i(this.slider)},t.prototype.get=function(t){return this.plugins[t]||!1};var i={},s=[];return{addPlugin:function(t,n){for(var h=0;h<s.length;h++)s[h].plugins.add(t,n);i[t]=n},addSlider:function(h){if(h.plugins===n)for(var o in h.plugins=new t(h),i)h.plugins.add(o,i[o]);s.push(h)}}})),u.d("ScrollTracker",(function(){function t(){this.started=!1,this.items=[],this.onScrollCallback=this.onScroll.bind(this)}return t.prototype.add=function(t,s,n,h){var r={el:t,mode:s,onVisible:n,onHide:h,state:"unknown"};this.items.push(r),this._onScroll(r,Math.max(o.clientHeight,i.innerHeight)),this.started||this.start()},t.prototype.start=function(){this.started||(i.addEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.started=!0)},t.prototype.onScroll=function(e){for(var t=Math.max(o.clientHeight,i.innerHeight),s=0;s<this.items.length;s++)this._onScroll(this.items[s],t)},t.prototype._onScroll=function(t,i){var s=t.el.closest(".n2-section-smartslider").getBoundingClientRect(),n=s.height>.7*i,h=!0;"partly-visible"===t.mode?(n&&(s.bottom<0||s.top>=s.height)||!n&&(s.bottom-s.height<0||s.top-i+s.height>=0))&&(h=!1):"not-visible"===t.mode&&(h=s.top-i<0&&s.top+s.height>0),!1===h?"hidden"!==t.state&&("function"==typeof t.onHide&&t.onHide(),t.state="hidden"):"visible"!==t.state&&("function"==typeof t.onVisible&&t.onVisible(),t.state="visible")},new t})),u.d("SmartSliderApi",(function(){function t(){this.sliders={},this.readys={},this.eventListeners={}}t.prototype.makeReady=function(t,i){if(this.sliders[t]=i,this.readys[t]!==n)for(var s=0;s<this.readys[t].length;s++)this.readys[t][s].call(i,i,i.sliderElement)},t.prototype.ready=function(t,i){this.sliders[t]!==n?i.call(this.sliders[t],this.sliders[t],this.sliders[t].sliderElement):(this.readys[t]===n&&(this.readys[t]=[]),this.readys[t].push(i))},t.prototype.on=function(t,i){this.eventListeners[t]===n&&(this.eventListeners[t]=[]),this.eventListeners[t].push(i)},t.prototype.off=function(t,i){if(this.eventListeners[t]!==n)for(var s=this.eventListeners[t].length-1;s>=0;s--)this.eventListeners[t][s]===i&&this.eventListeners[t].splice(s,1)},t.prototype.dispatch=function(t,i){if(this.eventListeners[t]!==n&&this.eventListeners[t].length)for(var s=this.eventListeners[t].length-1;s>=0;s--)this.eventListeners[t][s]&&this.eventListeners[t][s].call(i,i)},t.prototype.trigger=function(t,i,e){e&&e.preventDefault();var s=i.split(","),n=t.closest(".n2-ss-slide,.n2-ss-static-slide"),h=n.ssLastEvent;t.ssResetEvents||(t.ssResetEvents=1,O(n,"layerAnimationPlayIn",function(t){t.ssLastEvent=""}.bind(this,n)));for(var o=s.length-1,r=0;r<s.length;r++)s[r]===h&&(o=r);i=o===s.length-1?s[0]:s[o+1],n.ssLastEvent=i,R(n,"ss"+i)},t.prototype.applyAction=function(e,t){if(this.isClickAllowed(e)){var i=e.currentTarget,s=this.findSliderByElement(i);s[t].apply(s,Array.prototype.slice.call(arguments,2))}},t.prototype.applyActionWithClick=function(e){this.isClickAllowed(e)&&(u._shouldPreventClick||(e.preventDefault(),this.applyAction.apply(this,arguments)))},t.prototype.isClickAllowed=function(e){var t=e.target.closest('a:not([href="#"]), *[onclick]:not([onclick=""]), *[data-n2click]:not([data-n2click=""]), *[data-n2-lightbox]');return!t||e.currentTarget===t||!e.currentTarget.contains(t)},t.prototype.openUrl=function(e,t){if(this.isClickAllowed(e)){var s=m(e.currentTarget,"href");if(t===n&&(t=m(e.currentTarget,"target")),"_blank"===t){var h=i.open();h.opener=null,h.location=s}else n2const.setLocation(s)}},t.prototype.openUrlKeyDown=function(e,t){"Enter"!==e.code&&"Space"!==e.code||!e.target.matches(":not(input,select,textarea)")||this.openUrl(e,t)};var r={focusOffsetTop:0,to:function(t){var s=h.querySelector("html, body, .n2_iframe_application__content");"smooth"===w(o,"scroll-behavior")?s.scrollTop=t:W(s,t,i.n2ScrollSpeed||400)},top:function(){r.to(0)},bottom:function(){r.to(s.scrollHeight-i.innerHeight)},before:function(t){r.to(B(t)-i.innerHeight)},after:function(t){r.to(B(t)+E(t)-r.focusOffsetTop)},next:function(t,i){var s=h.querySelectorAll(i),n=-1;s.forEach((function(i,s){if(t===i||i.contains(t))return n=s+1,!1})),-1!==n&&n<=s.length&&r.element(s[n])},previous:function(t,i){var s=h.querySelectorAll(i),n=-1;s.forEach((function(i,s){if(t===i||i.contains(t))return n=s-1,!1})),n>=0&&r.element(s[n])},element:function(t){"string"==typeof t&&(t=h.querySelector(t)),r.to(B(t)-r.focusOffsetTop)}};return t.prototype.scroll=function(e,t){if(this.isClickAllowed(e)){e.preventDefault();var s=this.findSliderByElement(e.target);s&&(r.focusOffsetTop=s.responsive.focusOffsetTop,e.currentTarget.blur()),r[t].apply(i,Array.prototype.slice.call(arguments,2))}},t.prototype.findSliderByElement=function(t){return(t=t.closest(".n2-ss-slider"))?t.ss:null},i.n2ss=new t,i.n2ss})),u.d("SmartSliderAbstract",(function(){function t(h,o){if(this.editor=null,this.elementID=h,i[h]&&i[h]instanceof t)if(i[h].__sliderElement&&!s.contains(i[h].__sliderElement));else{if(i[h].sliderElement===n)return void console.error("Slider [#"+h+"] inited multiple times");if(s.contains(i[h].sliderElement))return void console.error("Slider [#"+h+"] embedded multiple times")}this.stages=new u.Stages,u.d("#"+h,function(){return this}.bind(this)),this.isAdmin=!!o.admin,u.SmartSliderPlugins.addSlider(this),this.id=parseInt(h.replace("n2-ss-","")),i[h]=this,o.isDelayed!==n&&o.isDelayed?j(function(){this.waitForExists(h,o)}.bind(this)):this.waitForExists(h,o)}t.prototype.kill=function(){this.killed=!0;var t=this.sliderElement.closest(".n2-ss-margin");t?x(t):u.r("documentReady",function(){x(this.sliderElement.closest(".n2-ss-margin"))}.bind(this));var i=this.sliderElement.closest(".n2-ss-align");i?x(i):u.r("documentReady",function(){x(this.sliderElement.closest(".n2-ss-align"))}.bind(this)),n2ss.makeReady(this.id,this)},t.prototype.waitForExists=function(t,i){new Promise((function(i){var s=function(){var n=h.getElementById(t)||h.getElementById(t+"_t");n?i(n):r(s,500)};s()})).then(this.onSliderExists.bind(this,t,i))};var c=[];function l(t,s){if(i.IntersectionObserver)new IntersectionObserver(function(t,i){for(var n=0;n<t.length;n++){t[n].isIntersecting&&(s(),i.disconnect())}}.bind(this),{rootMargin:"200px 0px 200px 0px"}).observe(t);else if(c.push({element:t,callback:s}),1===c.length){var n=[],h=function(){for(var t=1.4*i.innerHeight,s=0;s<c.length;s++)if(c[s].element.getBoundingClientRect().y<t){var o=c[s].callback;c.splice(s,1),s--,o()}0===c.length&&(z(n),u.SmartSliderApi.off("SliderResize",h))};n.push(L(i,"resize",h,{capture:!0})),n.push(L(i,"scroll",h,{capture:!0,passive:!0})),u.SmartSliderApi.on("SliderResize",h),h()}}return t.prototype.onSliderExists=function(t,s,n){if(this.__sliderElement=n,this.K=n.closest(".n2-section-smartslider"),this.U=this.K.querySelector("ss3-loader"),this.stages.resolve("Exists"),"TEMPLATE"===n.tagName){var h=n.parentNode;h.removeChild(n);var o=m(n,"loadingType"),a=n.content.children[0],c=function(){h.appendChild(a),k(this.K,"height"),this.waitForDimension(a,s),D(i,"n2Rocket",{sliderElement:a})}.bind(this);"afterOnLoad"===o?u.r("windowLoad",l.bind(this,this.K,c)):"afterDelay"===o?r(c,m(n,"loadingDelay")):c()}else this.waitForDimension(n,s)},t.prototype.waitForDimension=function(t,i){n2const.isRTL()&&g(t,{"--ss-fs":"flex-end","--ss-fe":"flex-start","--ss-r":"row-reverse","--ss-rr":"row"});var s=new ResizeObserver(function(){s.disconnect(),this.onSliderHasDimension(t,i)}.bind(this));s.observe(t)},t.prototype.onSliderHasDimension=function(t,i){this.stages.resolve("HasDimension"),this.killed=!1,this.isVisible=!0,this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlides=[],this.slides=[],this.visibleRealSlides=[],this.visibleSlides=[],t.ss=this,this.sliderElement=t,this.needBackgroundWrap=!1,this.blockCarousel=!1,this.parameters=f({plugins:[],admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{touch:"horizontal",keyboard:!1,mousewheel:!1,blockCarouselInteraction:1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},parallax:{enabled:0,mobile:0,horizontal:"mouse",vertical:"mouse",origin:"enter"},mainanimation:{},randomize:{randomize:0,randomizeFirst:0},responsive:{},lazyload:{enabled:0},postBackgroundAnimations:!1,initCallbacks:!1,titles:[],descriptions:[],alias:{id:0,smoothScroll:0,slideSwitch:0}},i),this.stages.resolve("Parameters"),this.disabled={layerAnimations:!1,layerSplitTextAnimations:!1,backgroundAnimations:!1,postBackgroundAnimations:!1},n2const.isSamsungBrowser&&(this.disabled.layerSplitTextAnimations=!0,this.disabled.postBackgroundAnimations=!0,this.parameters.postBackgroundAnimations&&I(this.sliderElement,"n2-ss-feature-post-bg-loader")),n2ss.makeReady(this.id,this),this.isAdmin&&(this.changeTo=function(){}),this.load=new u.SmartSliderLoad(this),this.backgrounds=new u.SmartSliderBackgrounds(this),this.initSlides(),"function"==typeof this.parameters.initCallbacks&&this.parameters.initCallbacks.call(this),this.stages.done("VisibleSlides",this.onSlidesReady.bind(this)),requestAnimationFrame(this.initUI.bind(this))},t.prototype.onSlidesReady=function(){this.stages.resolve("SlidesReady")},t.prototype.initUI=function(){for(var t=0;t<this.realSlides.length;t++)this.realSlides[t].setNext(this.realSlides[t+1>this.realSlides.length-1?0:t+1]);this.widgets=new u.SmartSliderWidgets(this);var s;if(new u.UniversalEnter(this.sliderElement,function(e){e.target.closest(".n2-full-screen-widget")||(a(s),!0,A(this.sliderElement,"n2-hover"),this.widgets.setState("hover",!0),T(this.sliderElement,"universalleave",function(e){e.stopPropagation(),s=r(function(){!1,I(this.sliderElement,"n2-hover"),this.widgets.setState("hover",!1)}.bind(this),1e3)}.bind(this)))}.bind(this)),this.parameters.carousel||this.initNotCarousel(),this.initHideArrow(),this.controls={},this.parameters.blockrightclick&&O(this.sliderElement,"contextmenu",(function(e){e.preventDefault()})),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){if(O(this.sliderElement,"touchstart",function(){I(this.sliderElement,"n2-has-hover")}.bind(this),{passive:!0,once:!0}),this.initControls(),this.stages.resolve("UIReady"),!this.isAdmin){var n="click";this.hasTouch()&&(n="n2click"),this.sliderElement.querySelectorAll('[data-n2click="url"]').forEach((function(t){O(t,n,(function(e){n2ss.openUrl(e)})),O(t,"mousedown",(function(e){1===e.button&&(e.preventDefault(),n2ss.openUrl(e,"_blank"))})),O(t,"keydown",(function(e){n2ss.openUrlKeyDown(e)}))}))}this.load.start(),O(this.sliderElement,"keydown",(function(t){"Space"!==t.code&&"Enter"!==t.code||t.target.matches('[role="button"],[tabindex]')&&t.target.matches(":not(a,input,select,textarea)")&&(t.preventDefault(),t.target.click(),R(t.target,"n2Activate"))})),O(this.sliderElement,"mouseleave",(function(e){e.currentTarget.blur()})),i.jQuery&&i.jQuery(this.sliderElement).find("[tabindex]").off("focus")}},t.prototype.initSlides=function(){var t,i=this.sliderElement.querySelectorAll(".n2-ss-slide");for(t=0;t<i.length;t++)this.slides.push(this.createSlide(i[t],t));for(t=0;t<this.slides.length;t++)this.slides[t].init(),1==+m(this.slides[t].element,"first")&&(this.originalRealStarterSlide=this.slides[t]);this.realSlides=this.slides,this.visibleSlides=this.slides,this.initSlidesEnd()},t.prototype.initSlidesEnd=function(){this.afterRawSlidesReady(),this.stages.resolve("RawSlides"),this.randomize(this.realSlides),this.stages.resolve("RawSlidesOrdered"),this.Z()},t.prototype.Z=function(){for(var t=this.sliderElement.querySelectorAll(".n2-ss-static-slide"),i=0;i<t.length;i++)this.staticSlides.push(new u.FrontendSliderStaticSlide(this,t[i]))},t.prototype.createSlide=function(t,i){return new u.FrontendSliderSlide(this,t,i)},t.prototype.afterRawSlidesReady=function(){},t.prototype.G=function(t,i){D(this.sliderElement,t,i)},t.prototype.publicDispatchEvent=function(t,i){this.G(t,i),u.SmartSliderApi.dispatch(t,this)},t.prototype.getVisibleSlides=function(t){return t===n&&(t=this.currentSlide),[t]},t.prototype.getActiveSlides=function(t){return this.getVisibleSlides(t)},t.prototype.findSlideBackground=function(t){return this.sliderElement.querySelector('.n2-ss-slide-background[data-public-id="'+m(t.element,"slidePublicId")+'"]')},t.prototype.getRealIndex=function(t){return t},t.prototype.finalizeStarterSlide=function(){var t=this.originalRealStarterSlide;if(this.isAdmin)this.finalizeStarterSlideComplete(t);else if(this.parameters.randomize.randomizeFirst)t=this.visibleRealSlides[Math.floor(Math.random()*this.visibleRealSlides.length)],this.finalizeStarterSlideComplete(t);else if(i["ss"+this.id]!==n)"object"==typeof i["ss"+this.id]?i["ss"+this.id].done(this.overrideStarterSlideIndex.bind(this)):this.overrideStarterSlideIndex(i["ss"+this.id]);else if(!this.isAdmin&&this.parameters.maintainSession&&i.localStorage!==n){var s=i.localStorage.getItem("ss-"+this.id);this.overrideStarterSlideIndex(s),O(this.sliderElement,"mainAnimationComplete",function(e){i.localStorage.setItem("ss-"+this.id,e.detail.currentSlideIndex)}.bind(this))}else this.finalizeStarterSlideComplete(t)},t.prototype.overrideStarterSlideIndex=function(t){var i;null!==t&&this.realSlides[t]&&(i=this.realSlides[t]),this.finalizeStarterSlideComplete(i)},t.prototype.finalizeStarterSlideComplete=function(t){t!==n&&t.isVisible||(t=this.visibleRealSlides[0]),t!==n?this.finalizeStarterSlideComplete2(t):(this.hide(),T(this.sliderElement,"SliderResize",function(){this.finalizeStarterSlideComplete(t)}.bind(this)))},t.prototype.finalizeStarterSlideComplete2=function(t){t!==this.originalRealStarterSlide&&this.originalRealStarterSlide!==n&&this.originalRealStarterSlide.unsetActive(),this.responsive.onStarterSlide(t),this.stages.resolve("StarterSlide")},t.prototype.randomize=function(t){this.parameters.randomize.randomize&&this.shuffleSlides(t)},t.prototype.shuffleSlides=function(t){t.sort((function(){return.5-Math.random()}));for(var i=t[0].element.parentNode,s=0;s<t.length;s++)i.appendChild(t[s].element),t[s].setIndex(s)},t.prototype.started=function(t){this.stages.done("UIReady",t.bind(this))},t.prototype.ready=function(t){this.stages.done("Show",t.bind(this))},t.prototype.startVisibilityCheck=function(){if(!this.isAdmin&&this.parameters.playWhenVisible&&i.IntersectionObserver){var t=this.parameters.playWhenVisibleAt,s=t/2,n=1-t/2,h=new IntersectionObserver(function(t){t[0].isIntersecting&&this._markVisible()}.bind(this),{rootMargin:-50*t+"% 0px"});h.observe(this.sliderElement);var o=new IntersectionObserver(function(t){t[0].isIntersecting&&this._markVisible()}.bind(this),{threshold:[s,n]});o.observe(this.sliderElement),this.J=[h.disconnect.bind(h),o.disconnect.bind(o),L(this.sliderElement,"pointerover",this._markVisible.bind(this))]}else this.stages.resolve("Visible")},t.prototype._markVisible=function(){this.J&&z(this.J),this.stages.resolve("Visible")},t.prototype.visible=function(t){this.stages.done("Visible",t.bind(this))},t.prototype.isPlaying=function(){return"ended"!==this.mainAnimation.getState()},t.prototype.focus=function(t){var s=!1;if(this.responsive.parameters.focusUser&&!t&&(s=!0),s){var n=_(),h=this.responsive.focusOffsetTop,o=this.responsive.focusOffsetBottom,r=i.innerHeight,a=this.sliderElement.getBoundingClientRect(),u=a.top-h,c=r-a.bottom-o,f=this.responsive.parameters.focusEdge,l="";"top-force"===f?l="top":"bottom-force"===f?l="bottom":u<=0&&c<=0||u>0&&c>0||(u<0?l="top"===f?"top":"bottom"===f?"bottom":-u<=c?"top":"bottom":c<0&&(l="top"===f?"top":"bottom"===f||-c<=u?"bottom":"top"));var d=n;if("top"===l?d=n-h+a.top:"bottom"===l&&(d=n+o+a.bottom-r),(d=Math.round(d))!==n)return this._scrollTo(d,Math.abs(n-d))}return!0},t.prototype._scrollTo=function(t,s){var n=!1;return"smooth"===w(o,"scroll-behavior")&&(y(o,"scroll-behavior",""),n=!0),i.nextendScrollFocus=!0,new Promise((function(i){W(h.scrollingElement,t,s,i)})).then((function(){n&&y(o,"scroll-behavior","smooth"),i.nextendScrollFocus=!1}))},t.prototype.isChangeCarousel=function(t){return"next"===t?this.currentSlide.index+1>=this.slides.length:"previous"===t&&this.currentSlide.index-1<0},t.prototype.initNotCarousel=function(){this.realSlides[0].setPrevious(!1),this.realSlides[this.realSlides.length-1].setNext(!1)},t.prototype.initHideArrow=function(){var t=function(t){this.widgets.setState("nonCarouselFirst",!this.getUIPreviousSlide(t)),this.widgets.setState("nonCarouselLast",!this.getUINextSlide(t))}.bind(this);this.stages.done("StarterSlide",function(){t(this.currentSlide),O(this.sliderElement,"SliderResize",function(){t(this.currentSlide)}.bind(this))}.bind(this)),O(this.sliderElement,"SlideWillChange",(function(e){t(e.detail.targetSlide)}))},t.prototype.next=function(t,i){var s=this.currentSlide.getNext();return!(!s||!this.getUINextSlide(this.currentSlide))&&this.changeTo(s.index,!1,t,i)},t.prototype.previous=function(t,i){var s=this.getUIPreviousSlide(this.currentSlide);return!!s&&this.changeTo(s.index,!0,t,i)},t.prototype.isChangePossible=function(t){var i=!1;if("next"===t){var s=this.currentSlide.getNext();s&&(i=s.index)}else if("previous"===t){var n=this.currentSlide.getPrevious();n&&(i=n.index)}return!1!==i&&i!==this.currentSlide.index},t.prototype.nextCarousel=function(t,i){return this.parameters.carousel?!!this.next(t,i)||this.changeTo(this.getFirstSlide().index,!1,t,i):this.next(t,i)},t.prototype.getFirstSlide=function(){return this.slides[0].isVisible?this.slides[0]:this.slides[0].getNext()},t.prototype.getSlideCount=function(){for(var t=0,i=0;i<this.slides.length;i++)this.slides[i].isVisible&&t++;return t},t.prototype.directionalChangeToReal=function(t){this.directionalChangeTo(t)},t.prototype.directionalChangeTo=function(t){t>this.currentSlide.index?this.changeTo(t,!1):this.changeTo(t,!0)},t.prototype.changeTo=function(t,i,s,h){if((t=parseInt(t))!==this.currentSlide.index){if(!this.slides[t].isVisible)return console.error("this slide is not visible on this device"),!1;this.G("SlideWillChange",{targetSlide:this.slides[t]}),this.G("SlideLoading");var o=performance.now();return Promise.all([Promise.all(this.backgrounds.preLoadSlides(this.getVisibleSlides(this.slides[t]))),this.focus(s)]).then(function(){if(t!==this.currentSlide.index){if(this.mainAnimationLastChangeTime<o){this.mainAnimationLastChangeTime=o;var r=this.mainAnimation.getState();if("ended"===r){s===n&&(s=!1);var a=this.mainAnimation;h!==n&&(a=h),this._changeTo(t,i,s,h),a.changeTo(this.currentSlide,this.slides[t],i,s),this._changeCurrentSlide(t)}else"initAnimation"!==r&&"playing"!==r||(this.__fastChangeRemoveCallback&&this.__fastChangeRemoveCallback(),this.__fastChangeRemoveCallback=L(this.sliderElement,"mainAnimationComplete",function(){this.changeTo.call(this,t,i,s,h)}.bind(this),{once:!0}),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale()))}this.G("SlideLoaded")}}.bind(this)),!0}return!1},t.prototype.setCurrentRealSlide=function(t){this.currentRealSlide=this.currentSlide=t},t.prototype._changeCurrentSlide=function(t){this.setCurrentRealSlide(this.slides[t]),this.G("sliderChangeCurrentSlide")},t.prototype._changeTo=function(t,i,s,n){},t.prototype.revertTo=function(t,i){this.slides[i].unsetActive(),this.slides[t].setActive(),this._changeCurrentSlide(t),this.G("SlideWillChange",{targetSlide:this.slides[t]})},t.prototype.forceSetActiveSlide=function(t){t.setActive()},t.prototype.forceUnsetActiveSlide=function(t){t.unsetActive()},t.prototype.updateInsideSlides=function(t){for(var i=0;i<this.slides.length;i++)this.slides[i].setInside(t.indexOf(this.slides[i])>=0)},t.prototype.findSlideByElement=function(t){var i;for(i=0;i<this.realSlides.length;i++)if(this.realSlides[i].element.contains(t))return this.realSlides[i];for(i=0;i<this.staticSlides.length;i++)if(this.staticSlides[i].element.contains(t))return this.staticSlides[i];return null},t.prototype.findSlideIndexByElement=function(t){var i=this.findSlideByElement(t);return i||-1},t.prototype.initMainAnimation=function(){this.mainAnimation=!1},t.prototype.initResponsiveMode=function(){},t.prototype.hasTouch=function(){return"0"!=this.parameters.controls.touch},t.prototype.initControls=function(){if(!this.parameters.admin){if(this.hasTouch())switch(this.parameters.controls.touch){case"vertical":new u.SmartSliderControlTouchVertical(this);break;case"horizontal":new u.SmartSliderControlTouchHorizontal(this)}this.parameters.controls.keyboard&&(this.controls.touch!==n?new u.SmartSliderControlKeyboard(this,this.controls.touch.axis):new u.SmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.mousewheel&&new u.SmartSliderControlMouseWheel(this,this.parameters.controls.mousewheel),this.controlAutoplay=new u.SmartSliderControlAutoplay(this,this.parameters.autoplay),u.SmartSliderControlFullscreen.isSupported&&(this.controlFullscreen=new u.SmartSliderControlFullscreen(this)),this.parameters.alias.id&&new u.SmartSliderControlAlias(this,this.parameters.alias)}},t.prototype.getSlideIndex=function(t){return t},t.prototype.slideToID=function(t,i,s){for(var n=0;n<this.realSlides.length;n++)if(+this.realSlides[n].id===t)return this.slide(this.getSlideIndex(n),i,s);var o=h.querySelector('[data-id="'+t+'"]');if(o&&(o=o.closest(".n2-ss-slider")),o)return this.id===o.ss.id||(W(h.scrollingElement,B(o),400),o.ss.slideToID(t,i,!0))},t.prototype.slide=function(t,i,s){return t>=0&&t<this.slides.length&&(i===n?this.parameters.carousel&&this.currentSlide.index===this.slides.length-1&&0===t?this.next(s):this.currentSlide.index>t?this.changeTo(t,!0,s):this.changeTo(t,!1,s):this.changeTo(t,!i,s))},t.prototype.hide=function(){this.isVisible&&(A(this.responsive.alignElement,"n2-ss-slider-has-no-slide"),this.load.placeholder&&A(this.load.placeholder,"n2-ss-slider-has-no-slide"),this.isVisible=!1)},t.prototype.show=function(){this.isVisible||(A(this.responsive.alignElement,"n2-ss-slider-has-no-slide"),this.load.placeholder&&I(this.load.placeholder,"n2-ss-slider-has-no-slide"),F(i,"scroll"),this.isVisible=!0)},t.prototype.startAutoplay=function(){return this.controlAutoplay!==n&&(this.controlAutoplay.setState("pausedSecondary",0),!0)},t.prototype.pauseAutoplay=function(){return this.controlAutoplay!==n&&(this.controlAutoplay.setState("pausedSecondary",1),!0)},t.prototype.getAnimationAxis=function(){return"horizontal"},t.prototype.getDirectionPrevious=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"next":"previous"},t.prototype.getDirectionNext=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"previous":"next"},t.prototype.previousWithDirection=function(){return this[this.getDirectionPrevious()]()},t.prototype.nextWithDirection=function(){return this[this.getDirectionNext()]()},t.prototype.getUIPreviousSlide=function(t){return t.getPrevious()},t.prototype.getUINextSlide=function(t){return t.getNext()},t.prototype.getHorizontalTouchDimension=function(){return this.responsive.resizeContext.sliderWidth},t.prototype.getVerticalTouchDimension=function(){return this.responsive.resizeContext.sliderHeight},t})),u.d("Stages",(function(){function t(){this.stages={}}function i(t){this.n=t,this._isResolved=!1,this._promise=new Promise(function(t,i){this._resolve=t,this._reject=i}.bind(this)),this._promise.then(function(){this._isResolved=!0}.bind(this))}return t.prototype.get=function(t){return this.stages[t]===n&&(this.stages[t]=new i(t)),this.stages[t]},t.prototype.resolve=function(t){this.get(t).resolve()},t.prototype.done=function(t,i){var s;if("string"==typeof t)s=this.get(t).getPromise();else{for(var n=[],h=0;h<t.length;h++)n.push(this.get(t[h]).getPromise());s=Promise.all(n)}s.then(i)},t.prototype.resolved=function(t){return this.get(t).resolved()},i.prototype.getPromise=function(){return this._promise},i.prototype.resolve=function(){this.resolved()||this._resolve()},i.prototype.done=function(t){this._promise.then(t)},i.prototype.resolved=function(){return this._isResolved},t})),u.d("SmartSliderWidget",(function(){"use strict";function t(t,i,s){this.slider=t,this.key=i,this.selector=s,this.slider.started(this.register.bind(this))}return t.prototype.register=function(){this.slider.widgets.has(this.key)||(this.widget=this.slider.sliderElement.querySelector(this.selector),this.widget&&(this.slider.widgets.register(this.key,this),this.onStart()))},t.prototype.onStart=function(){},t.prototype.isVisible=function(){var t=this.widget.getBoundingClientRect();return!(!t.width||!t.height)},t.prototype.getWidth=function(){return this.widget.getBoundingClientRect().width},t.prototype.getHeight=function(){return this.widget.getBoundingClientRect().height},t})),u.d("SmartSliderWidgets",(function(){function t(t){this.slider=t,this.sliderElement=t.sliderElement,this.controls={previous:n,next:n,bullet:n,autoplay:n,indicator:n,bar:n,thumbnail:n,shadow:n,fullscreen:n,html:n},this._controlDimensionRegexp=new RegExp("^("+Object.keys(this.controls).join("|")+")(width|height)$","i"),this.excludedSlides={},this.states={hover:!1,nonCarouselFirst:!1,nonCarouselLast:!1,currentSlideIndex:-1,singleSlide:!1}}return t.prototype.register=function(t,i){this.controls[t]=i},t.prototype.has=function(t){return this.controls[t]!==n},t.prototype.setState=function(t,i){if(this.states[t]!=i){this.states[t]=i;var s=t.split(".");switch(s[0]){case"hide":this.onStateChangeSingle(s[1]);break;case"nonCarouselFirst":this.onStateChangeSingle(this.slider.getDirectionPrevious());break;case"nonCarouselLast":this.onStateChangeSingle(this.slider.getDirectionNext());break;default:this.onStateChangeAll()}}},t.prototype.onStateChangeAll=function(){for(var t in this.controls)this.onStateChangeSingle(t)},t.prototype.onStateChangeSingle=function(t){if(this.controls[t]){var i=!0;if(this.controls[t].widget.classList.contains("n2-ss-widget-display-hover")&&(i=this.states.hover),i&&(t===this.slider.getDirectionPrevious()&&this.states.nonCarouselFirst||t===this.slider.getDirectionNext()&&this.states.nonCarouselLast)&&(i=!1),i){var s=t+"-"+(this.states.currentSlideIndex+1);this.excludedSlides[s]&&(i=!1)}i&&this.states["hide."+t]!==n&&this.states["hide."+t]&&(i=!1),i&&this.states.singleSlide&&("previous"!==t&&"next"!==t&&"bullet"!==t&&"autoplay"!==t&&"indicator"!==t||(i=!1)),this.controls[t].widget.classList.toggle("n2-ss-widget-hidden",!i)}},t.prototype.getVerticalsHeight=function(){var t=0;if(this._verticals)for(var i=0;i<this._verticals.length;i++)t+=this._verticals[i].offsetHeight;return t},t.prototype.onReady=function(){this.advancedElement=this.slider.sliderElement.querySelector(".n2-ss-slider-controls-advanced"),this.requiredVariables=this.advancedElement?(m(this.advancedElement,"variables")||"").split(","):[],O(this.slider.sliderElement,"visibleSlidesChanged",function(){this.setState("singleSlide",this.slider.visibleSlides.length<=1)}.bind(this)),this.setState("singleSlide",this.slider.visibleSlides.length<=1),this._verticals=this.sliderElement.querySelectorAll('.n2-ss-widget[data-position="above"]:not(.nextend-shadow),.n2-ss-widget[data-position="below"]:not(.nextend-shadow)');var t=!1;for(var i in this.controls)if(this.controls[i]!==n){var s=m(this.controls[i].widget,"excludeSlides");if(s!==n){for(var h=s.split(","),o=h.length-1;o>=0;o--){var r=h[o].split("-");if(2===r.length){var a=parseInt(r[0]),u=parseInt(r[1]);if(a<=u)for(var c=a;c<=u;c++)h.push(c)}else h[o]=parseInt(h[o])}if(h.length>0){for(o=0;o<h.length;o++)this.excludedSlides[i+"-"+h[o]]=!0;t=!0}}}if(t){var f=function(e){this.setState("currentSlideIndex",e.detail.targetSlide.index)}.bind(this);f({detail:{targetSlide:this.slider.currentRealSlide}}),O(this.slider.sliderElement,"SlideWillChange",f)}this.requiredVariables.length&&this.advancedElement&&(this.flushAdvancedVariables(),O(this.slider.sliderElement,"SliderResize",this.flushAdvancedVariables.bind(this))),this.onStateChangeAll(),this.slider.stages.resolve("WidgetsReady"),this.advancedElement&&this.slider.stages.done("BeforeShow",function(){A(this.advancedElement,"n2-ss-slider-controls-advanced--ready")}.bind(this))},t.prototype.flushAdvancedVariables=function(){for(var t={},i=0;i<this.requiredVariables.length;i++)t[this.requiredVariables[i]]=this.getAdvancedVariable(this.requiredVariables[i]);for(var s in t)y(this.advancedElement,"--"+s,parseInt(t[s]))},t.prototype.getAdvancedVariable=function(t){var i=this.slider.responsive.resizeContext;switch(t){case"outerwidth":return this.sliderElement.parentNode.getBoundingClientRect().width;case"outerheight":return E(this.sliderElement.parentNode);case"width":return i.sliderWidth;case"height":return i.sliderHeight;case"canvaswidth":return i.slideWidth;case"canvasheight":return i.slideHeight;case"panewidth":case"paneWidth":if(i.paneWidth||i.panewidth)return i.paneWidth||i.panewidth}var s=t.match(this._controlDimensionRegexp);if(s){var n=this.controls[s[1]];if(n)switch(s[2]){case"width":return n.getWidth();case"height":return n.getHeight()}}return 0},t.prototype.onAdvancedVariableWidgetChanged=function(t){this.advancedElement&&(m(this.advancedElement,"variables")||"").match(t)&&this.slider.stages.done("BeforeShow",function(){this.flushAdvancedVariables()}.bind(this))},t})),u.d("SmartSliderMainAnimationAbstract",(function(){function t(t,i){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=null,this.isNoAnimation=!1,this.slider=t,this.parameters=f({duration:1500,ease:"easeInOutQuint"},i),this.parameters.duration=Math.max(.01,this.parameters.duration/1e3),this.sliderElement=t.sliderElement,this.timeline=new u.q({paused:!0}),O(this.sliderElement,"mainAnimationStart",function(e){this._revertCurrentSlideIndex=e.detail.previousSlideIndex,this._revertNextSlideIndex=e.detail.currentSlideIndex}.bind(this)),this.slider.stages.done("ResponsiveStart",this.init.bind(this))}return t.prototype.init=function(){this.responsive=this.slider.responsive},t.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new u.q({paused:!0}),D(this.slider.sliderElement,"reverseModeEnabled",{reverseSlideIndex:this.reverseSlideIndex})},t.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},t.prototype.setTouch=function(t){this.isTouch=t},t.prototype.setTouchProgress=function(t){this.parameters.duration<.3&&(t<0?t=-1:t>0&&(t=1)),"ended"!==this.state&&(this.isReverseEnabled?0===t?(this.reverseTimeline.progress(0),this.timeline.progress(t,!1)):t>=0&&t<=1?(this.reverseTimeline.progress(0),this.timeline.progress(t)):t<0&&t>=-1&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(t))):t<=0?this.timeline.progress(Math.max(t,1e-6),!1):t>=0&&t<=1&&this.timeline.progress(t))},t.prototype.setTouchEnd=function(t,i,s){"ended"!==this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(t,i,s):this._setTouchEnd(t,i,s))},t.prototype._setTouchEnd=function(t,i,s){t&&i>0?(this.fixTouchDuration(this.timeline,i,s),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-i,s),this.timeline.reverse(),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},t.prototype._setTouchEndWithReverse=function(t,i,s){t?i<0&&this.reverseTimeline.totalDuration()>0?(this.fixTouchDuration(this.reverseTimeline,i,s),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this._revertNextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,i,s),this.timeline.play()):(i<0?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-i,s),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-i,s),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},t.prototype.fixTouchDuration=function(t,i,s){var n=t.totalDuration(),h=Math.max(n/3,Math.min(n,s/Math.abs(i)/1e3));h!==n&&t.totalDuration(h)},t.prototype.getState=function(){return this.state},t.prototype.timeScale=function(){return arguments.length>0?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},t.prototype.changeTo=function(t,i,s,n){this._initAnimation(t,i,s),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart.bind(this),[t,i,n]),this.timeline.eventCallback("onComplete",this.onChangeToComplete.bind(this),[t,i,n]),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=function(s){s.eventCallback("onReverseComplete",this.onReverseChangeToComplete.bind(this),[i,t,n])}.bind(this),this.isTouch||this.timeline.play()},t.prototype.willRevertTo=function(t,i){D(this.slider.sliderElement,"mainAnimationWillRevertTo",{slideIndex:t,originalNextSlideIndex:i}),T(this.sliderElement,"mainAnimationComplete",this.revertTo.bind(this,t,i))},t.prototype.revertTo=function(t,i){this.slider.revertTo(t,i),R(this.slider.slides[i].element,"mainAnimationStartInCancel")},t.prototype.willCleanSlideIndex=function(t){T(this.sliderElement,"mainAnimationComplete",this.cleanSlideIndex.bind(this,t))},t.prototype.cleanSlideIndex=function(){},t.prototype._initAnimation=function(t,i,s){this.slider.updateInsideSlides([t,i])},t.prototype.onChangeToStart=function(t,i,s){this.state="playing";var n={mainAnimation:this,previousSlideIndex:t.index,currentSlideIndex:i.index,isSystem:s};this.slider.G("mainAnimationStart",n),t.G("mainAnimationStartOut",n),i.G("mainAnimationStartIn",n)},t.prototype.onChangeToComplete=function(t,i,s){var n={mainAnimation:this,previousSlideIndex:t.index,currentSlideIndex:i.index,isSystem:s};this.clearTimelines(),this.disableReverseMode(),t.G("mainAnimationCompleteOut",n),i.G("mainAnimationCompleteIn",n),this.state="ended",this.slider.updateInsideSlides([i]),s||i.focus(),this.slider.G("mainAnimationComplete",n)},t.prototype.onReverseChangeToComplete=function(i,s,n){t.prototype.onChangeToComplete.apply(this,arguments)},t.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},t.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},t})),u.d("SmartSliderControlAlias",(function(){"use strict";function t(t,s){this.tt=t,this.it=t.sliderElement,this.st=t.K,this.nt=m(this.st,"alias"),this.ht=f({id:0,smoothScroll:0,slideSwitch:0,scroll:1},s),this.nt&&(this.ht.smoothScroll&&y(o,"scroll-behavior","smooth"),this.ht.slideSwitch&&(this.switchOnLoad(),O(i,"hashchange",function(){var t=this.getAnchor();t>0&&(1===this.tt.responsive.parameters.focusUser?(this.tt.responsive.parameters.focusUser=0,this.switchToSlide(t-1),this.tt.responsive.parameters.focusUser=1):this.switchToSlide(t-1),this.replaceHash())}.bind(this))))}return t.prototype.getAnchor=function(){var t=i.location.hash.substr(1);if(t){if(t===this.nt)return!0;if(this.ht.slideSwitch&&0===t.indexOf(this.nt)){var s=+t.substr(this.nt.length+1);if(s>0)return s}}return!1},t.prototype.switchOnLoad=function(){var t=this.getAnchor();if(t>0){var s=t-1,n=i["n2-ss-"+this.tt.id];n&&n.stages.resolved("StarterSlide")?n.stages.done("BeforeShow",function(){this.switchToSlide(s)}.bind(this)):i["ss"+this.tt.id]=s,this.replaceHash()}},t.prototype.replaceHash=function(){var t="#"+this.nt;history.replaceState?history.replaceState(null,null,t):location.hash=t},t.prototype.switchToSlide=function(t){this.tt.slide(t)},t})),u.d("SmartSliderControlAutoplay",(function(){"use strict";function t(t,i){this.slider=t,this.state={enabled:1,paused:1,pausedSecondary:0,mainAnimationPlaying:0,wait:0},this._listeners=[],this.wait=new u.SmartSliderControlAutoplayWait(this),this._currentCount=1,this.autoplayToSlide=0,this.autoplayToSlideIndex=-1,this.parameters=f({enabled:0,start:1,duration:8e3,autoplayLoop:0,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0},interval:1,intervalModifier:"loop",intervalSlide:"current"},i),this.clickHandled=!1,t.controls.autoplay=this,this.parameters.enabled?(this.parameters.duration/=1e3,this.slider.visible(this.onReady.bind(this))):this.disable()}return t.prototype.preventClickHandle=function(){this.clickHandled=!0,r(function(){this.clickHandled=!1}.bind(this),300)},t.prototype.onReady=function(){this.et=!0;this.timeline=u.W.to({_progress:0},this.getSlideDuration(this.slider.currentSlide.index),{_progress:1,paused:!0,onComplete:this.next.bind(this)});var t=this.slider.sliderElement;this._listeners.push(L(t,"SlideLoading",function(){this.wait.add("load")}.bind(this))),this._listeners.push(L(t,"SlideLoaded",function(e){this.wait.resolve("load")}.bind(this))),this._listeners.push(L(t,"BeforeCurrentSlideChange",function(){this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this))),this._listeners.push(L(t,"mainAnimationStart",function(){this._currentCount++,this.setState("mainAnimationPlaying",1),this.wait.resolveWeak()}.bind(this))),this._listeners.push(L(t,"mainAnimationComplete",function(e){this.timeline.duration(this.getSlideDuration(e.detail.currentSlideIndex)),this.et=!0,this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this))),this._listeners.push(L(t,"autoplayPause",function(e){this.setState("paused",1)}.bind(this))),this._listeners.push(L(t,"autoplayResume",function(e){(this.state.paused||0===parseInt(this.parameters.start)&&0===parseInt(this.state.paused))&&(this._currentCount=1),this.setState("pausedSecondary",0),this.setState("paused",0);var t=e.detail.progress;t!==n&&this.timeline.progress(t)}.bind(this))),this._listeners.push(L(t,"CurrentSlideChanged",function(e){this.timeline.duration(this.getSlideDuration(e.detail.currentSlide.index)),this.et=!0,this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this))),this.initClick(this.parameters.pause.click,this.parameters.resume.click),this.initHover(this.parameters.pause.mouse,this.parameters.resume.mouse),this.initMedia(this.parameters.pause.mediaStarted,this.parameters.resume.mediaEnded),this.slider.stages.resolve("AutoplayReady"),this.slider.G("autoplay",{progress:0}),this.parameters.start||this.setState("pausedSecondary",1),this.setState("paused",0)},t.prototype.setState=function(t,i){this.state[t]!==i&&(this.state[t]=i,this.timeline!==n&&(!this.state.enabled||this.state.paused||this.state.pausedSecondary||this.state.wait||this.state.mainAnimationPlaying?(this.timeline.paused()||this.timeline.pause(),this.state.mainAnimationPlaying||this.isPaused!==n&&this.isPaused||(this.isPaused=!0,this.slider.G("autoplayPaused"))):(this.timeline.paused()&&this.timeline.play(),(this.isPaused===n||this.isPaused)&&(this.isPaused=!1,this.slider.G("autoplayStarted")))))},t.prototype.initClick=function(t,i){(t||i)&&(this.universalClick=new u.UniversalClick(this.slider.sliderElement,function(e){this.clickHandled||(this.state.pausedSecondary?i&&this.setState("pausedSecondary",0):t&&this.setState("pausedSecondary",1))}.bind(this)))},t.prototype.initHover=function(t,i){if(t||i){var s=!1;this._listeners.push(L(this.slider.sliderElement,"touchend",(function(){s=!0,r((function(){s=!1}),300)}))),this._listeners.push(L(this.slider.sliderElement,"mouseenter",function(e){this.state.pausedSecondary?"enter"===i&&this.setState("pausedSecondary",0):s||"enter"!==t||this.setState("pausedSecondary",1)}.bind(this))),this._listeners.push(L(this.slider.sliderElement,"mouseleave",function(e){this.state.pausedSecondary?"leave"===i&&this.setState("pausedSecondary",0):"leave"===t&&this.setState("pausedSecondary",1)}.bind(this)))}},t.prototype.initMedia=function(t,i){var s=this.slider.sliderElement;t?(this._listeners.push(L(s,"mediaStarted",function(e){this.wait.add(e.detail.id)}.bind(this))),this._listeners.push(L(s,"mediaEnded",function(e){this.wait.resolve(e.detail.id)}.bind(this)))):i&&this._listeners.push(L(s,"mediaEnded",function(){this.setState("pausedSecondary",0)}.bind(this)))},t.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",function(){this.slider.G("autoplay",{progress:this.timeline.progress()})}.bind(this))},t.prototype.next=function(){if(this.et){if(this.et=!1,this.timeline.pause(),!this.parameters.autoplayLoop){switch(this.parameters.intervalModifier){case"slide":this.slideSwitchingSlideCount();break;case"slideindex":this.slideSwitchingIndex();break;default:this.slideSwitchingLoop()}this.autoplayToSlide>0&&this._currentCount>=this.autoplayToSlide&&this.limitAutoplay(),this.autoplayToSlideIndex>=0&&this.slider.slides.length===this.slider.visibleSlides.length&&(this.autoplayToSlideIndex===this.slider.currentRealSlide.index+2||1===this.autoplayToSlideIndex&&this.slider.currentRealSlide.index+this.autoplayToSlideIndex===this.slider.slides.length)&&this.limitAutoplay()}this.slider.nextCarousel(!0)}},t.prototype.slideSwitchingLoop=function(){this.autoplayToSlide=this.parameters.interval*this.slider.visibleSlides.length-1,"next"===this.parameters.intervalSlide&&this.autoplayToSlide++},t.prototype.slideSwitchingSlideCount=function(){this.autoplayToSlide=this.parameters.interval},t.prototype.slideSwitchingIndex=function(){var t=Math.max(1,this.parameters.interval);t>this.slider.slides.length&&(t=1),this.autoplayToSlideIndex=t},t.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.setState("paused",1)):this.disable()},t.prototype.disable=function(){this.setState("enabled",0),z(this._listeners),this.universalClick&&(this.universalClick.remove(),delete this.universalClick),this.slider.stages.resolve("AutoplayDestroyed")},t.prototype.getSlideDuration=function(t){var i=this.slider.realSlides[this.slider.getRealIndex(t)],s=i.minimumSlideDuration;return 0===parseFloat(i.minimumSlideDuration)&&(s=this.parameters.duration),s},t})),u.d("SmartSliderControlFullscreen",(function(){"use strict";function t(i,s,n){this.slider=i,this.responsive=this.slider.responsive,this._type=this.responsive.parameters.type,this._upscale=this.responsive.parameters.upscale,this.ot=!1,this.it=this.slider.sliderElement,this.rt=this.it.closest(".n2-section-smartslider"),O(h,t.event,this.fullScreenChange.bind(this))}return t.isSupported=!(!h.exitFullscreen&&!h.webkitExitFullscreen),t.isSupported&&(t.requestFullscreen=o.requestFullscreen||o.webkitRequestFullscreen,t.exitFullscreen=h.exitFullscreen||h.webkitExitFullscreen,t.event=o.requestFullscreen?"fullscreenchange":o.webkitRequestFullscreen?"webkitfullscreenchange":null),t.prototype.switchState=function(){this.ot=!this.ot,this.ot?this._fullScreen():this._normalScreen()},t.prototype.requestFullscreen=function(){return!this.ot&&(this.ot=!0,this._fullScreen(),!0)},t.prototype.exitFullscreen=function(){return!!this.ot&&(this.ot=!1,this._normalScreen(),!0)},t.prototype._fullScreen=function(){this.responsive.ot=!0,this.responsive.parameters.type="fullpage",this.it.dataset.responsive=this.responsive.parameters.type,this.responsive.parameters.upscale=!0,this._marginLeft=this.responsive.containerElement.style.marginLeft,this._marginRight=this.responsive.containerElement.style.marginRight,g(this.responsive.containerElement,{marginLeft:0,marginRight:0}),g(this.rt,{width:"100%",height:"100%","background-color":i.getComputedStyle(s).backgroundColor}),t.requestFullscreen.call(this.rt)},t.prototype._normalScreen=function(){t.exitFullscreen.call(h)},t.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.G("n2FullScreen"),A(o,"n2-in-fullscreen"),A(this.slider.sliderElement,"n2-ss-slider--fullscreen"),this.ot=!0,"auto"===this._type&&y(this.slider.responsive.alignElement,"max-width","none"),F(i,"resize")):(this.responsive.ot=!1,this.responsive.parameters.type=this._type,this.it.dataset.responsive=this._type,this.responsive.parameters.upscale=this._upscale,g(this.responsive.containerElement,{marginLeft:this._marginLeft,marginRight:this._marginRight}),g(this.rt,{width:"",height:"","background-color":""}),I(this.slider.sliderElement,"n2-ss-slider--fullscreen"),I(o,"n2-in-fullscreen"),"auto"===this._type&&k(this.slider.responsive.alignElement,"max-width"),F(i,"resize"),this.ot=!1,this.slider.G("n2ExitFullScreen"))},t.prototype.isDocumentInFullScreenMode=function(){return h.fullscreenElement||h.webkitIsFullScreen},t})),u.d("SmartSliderControlKeyboard",(function(){"use strict";var t;function n(){this.controls=[],h.addEventListener("keydown",this.onKeyDown.bind(this)),h.addEventListener("mousemove",this.onMouseMove.bind(this),{capture:!0})}function o(i,s,h){this.slider=i,this.parameters=f({},h),this.parseEvent="vertical"===s?o.prototype.parseEventVertical:o.prototype.parseEventHorizontal,t||(t=new n),t.addControl(this),O(this.slider.sliderElement,"SliderKeyDown",function(e){this.onKeyDown(e.detail.e)}.bind(this)),i.controls.keyboard=this}return n.prototype.onMouseMove=function(e){this.mouseEvent=e},n.prototype.addControl=function(t){this.controls.push(t)},n.prototype.onKeyDown=function(e){if(e.target.tagName.match(/BODY|DIV|IMG/)&&!e.target.isContentEditable){var t;if(this.mouseEvent&&(t=this.findSlider(h.elementFromPoint(this.mouseEvent.clientX,this.mouseEvent.clientY))))return void D(t,"SliderKeyDown",{e:e});if(h.activeElement!==s&&(t=this.findSlider(h.activeElement)))return void D(t,"SliderKeyDown",{e:e});for(var i=0;i<this.controls.length;i++)this.controls[i].onKeyDown(e)}},n.prototype.findSlider=function(t){return t?t.classList.contains("n2-ss-slider")?t:t.closest(".n2-ss-slider"):null},o.prototype.isSliderOnScreen=function(){var t=this.slider.sliderElement.getBoundingClientRect(),s=t.height/2;return t.top+s>=0&&t.top+s<=i.innerHeight},o.prototype.onKeyDown=function(e){!e.defaultPrevented&&this.isSliderOnScreen()&&this.parseEvent.call(this,e)&&e.preventDefault()},o.prototype.parseEventHorizontal=function(e){switch(e.code){case"ArrowRight":return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"previous":"next"](),!0;case"ArrowLeft":return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"next":"previous"](),!0;default:return!1}},o.prototype.parseEventVertical=function(e){switch(e.code){case"ArrowDown":return(!this.slider.isChangeCarousel("next")||!this.slider.parameters.controls.blockCarouselInteraction)&&(n2const.activeElementBlur(),this.slider.next(),!0);case"ArrowUp":return(!this.slider.isChangeCarousel("previous")||!this.slider.parameters.controls.blockCarouselInteraction)&&(n2const.activeElementBlur(),this.slider.previous(),!0);default:return!1}},o})),u.d("SmartSliderControlMouseWheel",(function(){"use strict";function t(t,i){this.preventScroll={local:!1,curve:!1,curveGlobal:!1,global:!1,localTimeout:!1,curveTimeout:!1,curveGlobalTimeout:!1,globalTimeout:!1},this.maxDelta=0,this.slider=t,this.at=2===i?"deltaX":"deltaY",h.addEventListener("wheel",this.onGlobalMouseWheel.bind(this),{passive:!1}),t.controls.mouseWheel=this}return t.prototype.hasScrollableParentVertical=function(t,s){for(;s&&s!==this.slider.sliderElement;){if(s.scrollHeight>s.clientHeight){var n=i.getComputedStyle(s).overflowY;if("scroll"===n||"auto"===n)if(t){if(s.scrollTop>0)return!0}else if(s.scrollTop+s.clientHeight<s.scrollHeight)return!0}s=s.parentNode}return!1},t.prototype.hasScrollableParentHorizontal=function(t){for(;t&&t!==this.slider.sliderElement;){var s=i.getComputedStyle(t).overflowX;if(("scroll"===s||"auto"===s)&&t.scrollWidth>t.offsetWidth)return!0;t=t.parentNode}return!1},t.prototype.onGlobalMouseWheel=function(e){e.target.closest(".n2-ss-slider")&&0!==e[this.at]&&(this.onCurveEvent(e),this.preventScroll.local||this.preventScroll.curve||Math.abs(e[this.at])<this.maxDelta/2?e.preventDefault():(this.preventScroll.global&&e.preventDefault(),(this.slider.sliderElement===e.target||this.slider.sliderElement.contains(e.target))&&("deltaY"===this.at?e.shiftKey||this.hasScrollableParentVertical(e.deltaY<0,e.target)||this.onMouseWheel(e):"deltaX"===this.at&&(this.hasScrollableParentHorizontal(e.target)||this.onMouseWheel(e)))))},t.prototype.onMouseWheel=function(e){e[this.at]<0?this.slider.isChangeCarousel("previous")&&this.slider.parameters.controls.blockCarouselInteraction||(this.slider.previous(),e.preventDefault(),this.startCurveWatcher(e),this.local(),this.global()):e[this.at]>0&&(this.slider.isChangeCarousel("next")&&this.slider.parameters.controls.blockCarouselInteraction||(this.slider.next(),e.preventDefault(),this.startCurveWatcher(e),this.local(),this.global()))},t.prototype.startCurveWatcher=function(e){!1!==this.preventScroll.curve&&a(this.preventScroll.curveTimeout),this.preventScroll.curveGlobal||(this.dynamicDelta=!1,this.lastDelta=e[this.at],this.preventScroll.curveGlobal=!0,this.preventScroll.curveGlobalTimeout=r(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0}.bind(this),500)),this.preventScroll.curve=!0,this.preventScroll.curveTimeout=r(this.releaseCurveLock.bind(this),1500)},t.prototype.onCurveEvent=function(e){if(this.preventScroll.curveGlobal){this.dynamicDelta||this.lastDelta===e[this.at]||(this.lastDelta=e[this.at],this.dynamicDelta=!0);var t=Math.abs(e[this.at]);this.preventScroll.curve&&this.maxDelta/2>t&&this.releaseCurveLock(),this.maxDelta=Math.max(this.maxDelta,t),this.preventScroll.curveGlobalTimeout&&a(this.preventScroll.curveGlobalTimeout),this.preventScroll.curveGlobalTimeout=r(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0}.bind(this),500)}},t.prototype.releaseCurveLock=function(){this.preventScroll.curve=!1,a(this.preventScroll.curveTimeout)},t.prototype.local=function(){!1!==this.preventScroll.local&&a(this.preventScroll.localTimeout),this.preventScroll.local=!0,this.preventScroll.localTimeout=r(function(){this.preventScroll.local=!1,this.dynamicDelta||this.releaseCurveLock()}.bind(this),1e3)},t.prototype.global=function(){!1!==this.preventScroll.global&&a(this.preventScroll.globalTimeout),this.preventScroll.global=!0,this.preventScroll.globalTimeout=r(function(){this.preventScroll.global=!1}.bind(this),1e3)},t})),u.d("SmartSliderControlTouch",(function(){"use strict";function t(t){this.slider=t,this.interactiveDrag=!0,this.preventMultipleTap=!1,this._animation=t.mainAnimation,this.swipeElement=this.slider.sliderElement.querySelector(".n2_ss__touch_element"),t.controls.touch=this,t.stages.done("StarterSlide",this.onStarterSlide.bind(this)),O(t.sliderElement,"visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))}return t.prototype.onStarterSlide=function(){this.initTouch(),O(this.slider.sliderElement,"sliderChangeCurrentSlide",this.updatePanDirections.bind(this))},t.prototype.onVisibleSlidesChanged=function(){var t;this.slider.visibleSlides.length>1?g(this.swipeElement,{cursor:"grab",userSelect:"none"}):(t=this.swipeElement,["cursor","userSelect"].forEach((function(i){k(t,i)})))},t.prototype.initTouch=function(){this._animation.isNoAnimation&&(this.interactiveDrag=!1),this.eventBurrito=u.EventBurrito(this.swipeElement,{mouse:!0,axis:"horizontal"===this.axis?"x":"y",start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this)}),this.updatePanDirections(),this.cancelKineticScroll=function(){this.kineticScrollCancelled=!0}.bind(this)},t.prototype._start=function(t){this.currentInteraction={type:"pointerdown"===t.type?"pointer":"touchstart"===t.type?"touch":"mouse",state:f({},this.state),action:"unknown",distance:[],distanceY:[],percent:0,progress:0,scrollTop:_(),animationStartDirection:"unknown",hadDirection:!1,startDistance:0},this.logDistance(0,0)},t.prototype._move=function(t,i,s,n){if(!n||"unknown"!==this.currentInteraction.action){this.currentInteraction.direction=this.measure(s);var h=this.get(s);if((this.currentInteraction.hadDirection||Math.abs(h)>10||Math.abs(s.y)>10)&&(this.logDistance(h,s.y),this.currentInteraction.percent<1&&this.setTouchProgress(h,s.y),"touch"===this.currentInteraction.type&&t.cancelable&&("switch"!==this.currentInteraction.action&&"hold"!==this.currentInteraction.action||(this.currentInteraction.hadDirection=!0))),"switch"===this.currentInteraction.action)return!0}return!1},t.prototype._end=function(t,i,s,n){if("switch"===this.currentInteraction.action){var h=n?0:this.measureRealDirection();if(this.interactiveDrag)this._animation.timeline.progress()<1&&this._animation.setTouchEnd(h,this.currentInteraction.progress,s.time),this._animation.setTouch(!1);else h&&this.callAction(this.currentInteraction.animationStartDirection);I(this.swipeElement,"n2-grabbing")}this.onEnd(),delete this.currentInteraction,Math.abs(s.x)<10&&Math.abs(s.y)<10?this.onTap(t):u._preventClick()},t.prototype.onEnd=function(){if("scroll"===this.currentInteraction.action&&"pointer"===this.currentInteraction.type){var t=this.currentInteraction.distanceY[0],i=this.currentInteraction.distanceY[this.currentInteraction.distanceY.length-1],s=(t.d-i.d)/(i.t-t.t)*10,n=Date.now(),o=function(){requestAnimationFrame(function(){var t,i;if(!this.kineticScrollCancelled&&s&&(t=Date.now()-n,(i=s*Math.exp(-t/325))>1||i<-1))return V(_()+i),void o();this.onEndKineticScroll()}.bind(this))}.bind(this);this.kineticScrollCancelled=!1,o(),h.addEventListener("pointerdown",this.cancelKineticScroll)}},t.prototype.onEndKineticScroll=function(){delete this.kineticScrollCancelled,h.removeEventListener("pointerdown",this.cancelKineticScroll),y(o,"scroll-behavior","")},t.prototype.setTouchProgress=function(t,i){this.recognizeSwitchInteraction(),0===this.currentInteraction.startDistance&&(this.currentInteraction.startDistance=t<0?t+1:t-1);var s,n=this.getPercent(t-this.currentInteraction.startDistance);if(this.currentInteraction.percent=n,"switch"===this.currentInteraction.action){if(this.interactiveDrag){switch(this.currentInteraction.animationStartDirection){case"up":s=-1*n;break;case"down":s=n;break;case"left":s=-1*n;break;case"right":s=n}this.currentInteraction.progress=s,this._animation.setTouchProgress(s)}}else"unknown"!==this.currentInteraction.action&&"scroll"!==this.currentInteraction.action||this.startScrollInteraction(i)},t.prototype.startScrollInteraction=function(t){"vertical"===this.axis&&(this.slider.controlFullscreen&&this.slider.controlFullscreen.ot||(this.currentInteraction.action="scroll","pointer"===this.currentInteraction.type&&(y(o,"scroll-behavior","auto"),V(Math.max(0,this.currentInteraction.scrollTop-t)))))},t.prototype.recognizeSwitchInteraction=function(){if("unknown"===this.currentInteraction.action&&this.slider.visibleSlides.length>1)if("ended"===this._animation.state){var t=this.currentInteraction.direction;if("unknown"!==t&&this.currentInteraction.state[t]){if(this.currentInteraction.animationStartDirection=t,this.interactiveDrag){this._animation.setTouch(this.axis);this.callAction(t,!1)}this.currentInteraction.action="switch",A(this.swipeElement,"n2-grabbing")}}else"playing"===this._animation.state&&(this.currentInteraction.action="hold")},t.prototype.logDistance=function(t,i){this.currentInteraction.distance.length>3&&(this.currentInteraction.distance.shift(),this.currentInteraction.distanceY.shift()),this.currentInteraction.distance.push({d:t,t:Date.now()}),this.currentInteraction.distanceY.push({d:i,t:Date.now()})},t.prototype.measureRealDirection=function(){var t=this.currentInteraction.distance[0],i=this.currentInteraction.distance[this.currentInteraction.distance.length-1];return i.d>=0&&t.d>i.d||i.d<0&&t.d<i.d?0:1},t.prototype.onTap=function(e){this.preventMultipleTap||(F(e.target,"n2click"),this.preventMultipleTap=!0,r(function(){this.preventMultipleTap=!1}.bind(this),500))},t.prototype.updatePanDirections=function(){},t.prototype.setState=function(t,i){"object"!=typeof arguments[0]&&((t={})[arguments[0]]=arguments[1],i=arguments[2]);var s=!1;for(var n in t)this.state[n]!==t[n]&&(this.state[n]=t[n],s=!0);s&&i&&this.eventBurrito.supportsPointerEvents&&this.syncTouchAction()},t})),u.d("SmartSliderControlTouchHorizontal","SmartSliderControlTouch",(function(){"use strict";function t(){this.state={left:!1,right:!1},this.axis="horizontal",u.SmartSliderControlTouch.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(u.SmartSliderControlTouch.prototype),t.prototype.constructor=t,t.prototype.callAction=function(t,i){switch(t){case"left":return this.slider[n2const.isRTL()?"previous":"next"].call(this.slider,i);case"right":return this.slider[n2const.isRTL()?"next":"previous"].call(this.slider,i)}return!1},t.prototype.measure=function(t){return!this.currentInteraction.hadDirection&&Math.abs(t.x)<10||0===t.x||Math.abs(t.x)<Math.abs(t.y)?"unknown":t.x<0?"left":"right"},t.prototype.get=function(t){return t.x},t.prototype.getPercent=function(t){return Math.max(-.99999,Math.min(.99999,t/this.slider.getHorizontalTouchDimension()))},t.prototype.updatePanDirections=function(){var t=this.slider.currentSlide.index,i=t+1<this.slider.slides.length,s=t-1>=0;this.slider.parameters.carousel&&(i=!0,s=!0),n2const.isRTL()&&"vertical"!==this.slider.getAnimationAxis()?this.setState({right:i,left:s},!0):this.setState({right:s,left:i},!0)},t.prototype.syncTouchAction=function(){var t=this.state.left||this.state.right?"pan-y":"";y(this.swipeElement,"touch-action",t),i.PointerEventsPolyfill&&d(this.swipeElement,"touch-action",t)},t})),u.d("SmartSliderControlTouchVertical","SmartSliderControlTouch",(function(){"use strict";function t(){this.state={up:!1,down:!1},this.action={up:"next",down:"previous"},this.axis="vertical",u.SmartSliderControlTouch.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(u.SmartSliderControlTouch.prototype),t.prototype.constructor=t,t.prototype.callAction=function(t,i){switch(t){case"up":return this.slider.next.call(this.slider,i);case"down":return this.slider.previous.call(this.slider,i)}return!1},t.prototype.measure=function(t){return!this.currentInteraction.hadDirection&&Math.abs(t.y)<1||0==t.y||Math.abs(t.y)<Math.abs(t.x)?"unknown":t.y<0?"up":"down"},t.prototype.get=function(t){return t.y},t.prototype.getPercent=function(t){return Math.max(-.99999,Math.min(.99999,t/this.slider.getVerticalTouchDimension()))},t.prototype.updatePanDirections=function(){this.setState({down:!this.slider.isChangeCarousel("previous")||!this.slider.parameters.controls.blockCarouselInteraction,up:!this.slider.isChangeCarousel("next")||!this.slider.parameters.controls.blockCarouselInteraction},!0)},t.prototype.syncTouchAction=function(){var t=this.state.up||this.state.down?"pan-x":"";y(this.swipeElement,"touch-action",t),i.PointerEventsPolyfill&&d(this.swipeElement,"touch-action",t)},t.prototype._start=function(t){this.slider.blockCarousel=!0,u.SmartSliderControlTouch.prototype._start.apply(this,arguments)},t.prototype.onEnd=function(t){u.SmartSliderControlTouch.prototype.onEnd.apply(this,arguments),this.slider.blockCarousel=!1},t})),u.d("SmartSliderControlAutoplayWait",(function(){"use strict";function t(t){this.autoplay=t,this.waits={}}return t.Strong=["lightbox","load"],t.prototype.add=function(t){this.waits[t]=1,this._refresh()},t.prototype.resolve=function(t){delete this.waits[t],this._refresh()},t.prototype.resolveWeak=function(){var i={};for(var s in this.waits)1===this.waits[s]&&-1!==t.Strong.indexOf(s)&&(i[s]=1);this.waits=i,this._refresh()},t.prototype.resolveAll=function(){this.waits={},this._refresh()},t.prototype._refresh=function(){var t=!1;for(var i in this.waits)if(this.waits[i]){t=!0;break}this.autoplay.setState("wait",t)},t})),u.d("SmartSliderSlideBackgroundColor",(function(){function t(t,i){this.el=i}return t.prototype.getLoadPromise=function(){return!0},t})),u.d("SmartSliderSlideBackgroundImage",(function(){function t(t,i,s,n){this.slide=t,this.manager=i,this.background=s,this._promise=new Promise(function(t){this._resolve=t}.bind(this)),this.imageElements=Array.from(n)}return t.prototype.getLoadPromise=function(){return this._promise},t.prototype.preLoad=function(){this.blur=m(this.imageElements[0],"blur");const t=m(this.imageElements[0].parentElement,"mode"),i=[];this.blur&&i.push({item:this.imageElements[this.imageElements.length-1],blur:this.blur}),"blurfit"===t&&(this.blurFitMode=m(this.imageElements[0],"blurfitmode"),this.globalBlurFit=m(this.imageElements[0],"globalblur"),this.editorBlur=m(this.imageElements[0],"bgblur"),i.push({item:this.imageElements[0],blur:this.blurFitMode?this.globalBlurFit:this.editorBlur})),i.length&&i.forEach((function(t){g(t.item,{margin:-2*t.blur+"px",padding:2*t.blur+"px"}),y(t.item.children[0],"filter","blur("+t.blur+"px)")}));var s=this.imageElements[0].querySelector("img");s.loading="eager",s.complete?this.onImageLoaded(s):(s.addEventListener("load",this.onImageLoaded.bind(this,s)),s.addEventListener("error",this.onImageLoaded.bind(this,s)))},t.prototype.onImageLoaded=function(t){"function"==typeof t.decode?(t.decode().then(this._resolve.bind(this)).catch(function(t){console.error(t),this._resolve()}.bind(this)),r(this._resolve.bind(this),50)):this._resolve()},t.prototype.fadeOut=function(){u.W.to(u.MW.C(this.imageElements),.3,{opacity:0})},t.prototype.onSlideDeviceChanged=function(){},t})),u.d("SmartSliderSlideBackground",(function(){function t(t,i,s){this.types=this.types||{color:"SmartSliderSlideBackgroundColor",image:"SmartSliderSlideBackgroundImage",video:"SmartSliderSlideBackgroundVideo"},this.width=0,this.height=0,this.slide=t,this.element=i,this.manager=s,this.readyPromise=new Promise(function(t){this.readyPromiseResolve=t}.bind(this)),this.promise=new Promise(function(t){this.resolve=function(){t(),delete this.resolve}.bind(this)}.bind(this))}return t.prototype.preloadOnce=function(){if(!this.elements){this.elements={color:!1,image:!1,video:!1},this.currentSrc="",this.mode=m(this.element,"mode"),this.opacity=m(this.element,"opacity");var t=this.element.querySelectorAll(".n2-ss-slide-background-image");t.length&&(this.elements.image=new u[this.types.image](this.slide,this.manager,this,t),this.elements.image.preLoad());var i=this.element.querySelector(".n2-ss-slide-background-color");i&&(this.elements.color=new u[this.types.color](this,i)),this.readyPromiseResolve(),delete this.readyPromiseResolve,delete this.readyPromise;var s=[];for(var n in this.elements)this.elements[n]&&s.push(this.elements[n].getLoadPromise());Promise.all(s).then(this.resolve)}},t.prototype.onReady=function(t){this.readyPromise?this.readyPromise.then(t):t()},t.prototype.preLoad=function(){return this.preloadOnce(),this.promise},t.prototype.fadeOut=function(){this.hasImage()&&this.elements.image.fadeOut()},t.prototype.hasColor=function(){return this.elements&&this.elements.color},t.prototype.hasImage=function(){return this.elements&&this.elements.image},t.prototype.hasVideo=function(){return this.elements&&this.elements.video},t.prototype.hasBackground=function(){return this.elements&&(this.elements.color||this.elements.image||this.elements.video)},t.prototype.onSlideDeviceChanged=function(t){this.hasImage()&&this.elements.image.onSlideDeviceChanged(t)},t})),u.d("FrontendComponentCommon",["FrontendComponent"],(function(){function t(t,i,s,n){this.wraps={},u.FrontendComponent.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(u.FrontendComponent.prototype),t.prototype.constructor=t,t.prototype.init=function(t){this.stateCBs=[],this.state={InComplete:!1};var i=this.layer.querySelector(":scope > .n2-ss-layer-mask");switch(i&&(this.wraps.mask=i),m(this.layer,"pm")){case"absolute":this.placement=new u.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new u.FrontendPlacementNormal(this);break;case"content":this.placement=new u.FrontendPlacementContent(this);break;default:this.placement=new u.FrontendPlacementDefault(this)}u.FrontendComponent.prototype.init.call(this,t)},t.prototype.setState=function(t,i){this.state[t]=i;for(var s=0;s<this.stateCBs.length;s++)this.stateCBs[s].call(this,this.state)},t.prototype.addStateCallback=function(t){this.stateCBs.push(t),t.call(this,this.state)},t.prototype.start=function(){this.placement.start(),u.FrontendComponent.prototype.start.call(this);var t=parseFloat(this.get("rotation"));t&&(u.MW.k(this.layer).layerRotation=t)},t.prototype.onDeviceChange=function(t){u.FrontendComponent.prototype.onDeviceChange.call(this,t);for(var i=0;i<this.children.length;i++)this.children[i].onDeviceChange(t);this.placement.onDeviceChange(t),this.onAfterDeviceChange(t)},t.prototype.onAfterDeviceChange=function(t){},t.prototype.onResize=function(t,i){u.FrontendComponent.prototype.onResize.apply(this,arguments),this.placement.onResize(t,i)},t.prototype.hasLayerAnimation=function(){return this.animationManager!==n},t.prototype.addWrap=function(t,i){return this.wraps[t]===n&&(this.wraps[t]=i),i},t.prototype.getContents=function(){return[]},t})),u.d("FrontendComponent",(function(){function t(t,i,s,n){this.device="",this.children=[],this.slide=t,this.parent=i,this.layer=s,s.layer=this,this.isVisible=!0,this.init(n)}return t.prototype.init=function(t){if(t)for(var i=0;i<t.length;i++){var s=t[i];switch(m(s,"sstype")){case"content":this.children.push(new u.FrontendComponentContent(this.slide,this,s));break;case"row":this.children.push(new u.FrontendComponentRow(this.slide,this,s));break;case"col":this.children.push(new u.FrontendComponentCol(this.slide,this,s));break;default:this.children.push(new u.FrontendComponentLayer(this.slide,this,s))}}},t.prototype.start=function(){for(var t=0;t<this.children.length;t++)this.children[t].start()},t.prototype.onDeviceChange=function(t){this.device=t},t.prototype.onResize=function(t,i){for(var s=0;s<this.children.length;s++)this.children[s].onResize(t,i)},t.prototype.getDevice=function(t,i){var s=m(this.layer,this.device+t);return s!==n?s:"desktopportrait"!==this.device?m(this.layer,"desktopportrait"+t):i!==n?i:0},t.prototype.get=function(t){return m(this.layer,t)},t})),u.d("FrontendSlideControls",(function(){function t(t,i){this.slider=t,this.element=i,this.element.ssSlide=this,this.status=new u.SlideStatus}return t.prototype.isCurrentlyEdited=function(){return this._isCurrentlyEdited},t.prototype.is=function(t){return this===t},t.prototype.G=function(t,i){D(this.element,t,i)},t.prototype.isVisibleWhen=function(t){return!0},t.prototype.isActiveWhen=function(t){return!0},t.prototype.isStatic=function(){return!1},t})),u.d("FrontendPlacement",(function(){function t(t){this.layer=t,this.linked=[]}return t.prototype.start=function(){},t.prototype.onDeviceChange=function(t){},t.prototype.ut=function(){if(this.linked.length){var t=this.layer.layer;this._sizePosition={left:t.offsetLeft,top:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}},t.prototype.onResize=function(t,i){if(this.linked.length){this.ut();for(var s=0;s<this.linked.length;s++)this.linked[s].onResizeLinked(t,i)}},t.prototype.addLinked=function(t){this.linked.push(t)},t.prototype.isVisible=function(){return 1!=+m(this.layer.layer,"hide"+this.layer.device)},t.prototype.getPositionSize=function(){return f({},this._sizePosition)},t})),u.d("FrontendSliderSlide",["FrontendSliderSlideAbstract"],(function(){function t(t,i,s){this.slides=[this],this.playCount=0,u.FrontendSliderSlideAbstract.prototype.constructor.apply(this,arguments),this.id=m(i,"id"),this._slideFocus=i.querySelector(".n2-ss-slide--focus"),this.focusableElements=Array.from(i.querySelectorAll('a[href]:not([href=""]),link,button,input:not([type="hidden"]),select,textarea,audio[controls],video[controls],[tabindex]:not([tabindex="-1"])'));var n=l(i,"tabindex");("0"===n||+n>0)&&this.focusableElements.push(i),this.disableFocus(),this.background=!1,t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=+m(i,"slideDuration"),this.minimumSlideDuration||(this.minimumSlideDuration=0)),this._isCurrentlyEdited=this.slider.parameters.admin&&i.classList.contains("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?(this.layer=i.querySelector('.n2-ss-layer[data-sstype="slide"]'),O(t.sliderElement,"SliderDeviceOrientation",function(){this.slider.visibleRealSlides.push(this),this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.G("Visible")}.bind(this))):(this.component=new u.FrontendComponentSectionSlide(this,t,i.querySelector('.n2-ss-layer[data-sstype="slide"]')),this.layer=this.component.layer)}t.prototype=Object.create(u.FrontendSliderSlideAbstract.prototype),t.prototype.constructor=t,t.prototype._setInside=function(t){this.isInside!==t&&(this.isInside=t)};var i=!1;try{c("div").focus(Object.defineProperty({},"preventScroll",{get:function(){i=!0}}))}catch(t){}return t.prototype.focus=function(){i&&this._slideFocus.focus({preventScroll:!0})},t.prototype.allowFocus=function(){for(var t=0;t<this.focusableElements.length;t++)d(this.focusableElements[t],"tabindex",0);p(this.element,"aria-hidden")},t.prototype.disableFocus=function(){for(var t=0;t<this.focusableElements.length;t++)d(this.focusableElements[t],"tabindex",-1);d(this.element,"aria-hidden","true")},t.prototype.init=function(){var t=this.slider.findSlideBackground(this);t&&(this.slider.isAdmin?this.background=new u.SmartSliderSlideBackgroundAdmin(this,t,this.slider.backgrounds):this.background=new u.SmartSliderSlideBackground(this,t,this.slider.backgrounds)),this.element.ssSlideBackground=this.background},t.prototype.onDeviceChange=function(t){m(this.element,"hide"+H(t))?!1!==this.isVisible&&(this.isVisible=!1,this.slider.responsive.visibleRealSlidesChanged=!0,this.G("Hidden")):(this.slider.visibleRealSlides.push(this),!0!==this.isVisible&&(this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.G("Visible")))},t.prototype.hasLayers=function(){return this.component.children.length>0},t.prototype.hasBackgroundVideo=function(){return this.background.hasVideo()},t.prototype.hasLink=function(){return!!m(this.element,"haslink")},t})),u.d("FrontendSliderSlideAbstract",["FrontendSlideControls"],(function(){function t(t,i,s){u.FrontendSlideControls.prototype.constructor.call(this,t,i),this.slides=this.slides||[],this.group=this,this.originalIndex=s,this.index=s,this.localIndex=s,this.groupIndex=0,this.isVisible=!0,this.isInside=-1}for(var i in u.FrontendSlideControls.prototype)t.prototype[i]=u.FrontendSlideControls.prototype[i];return t.prototype.setIndex=function(t){for(var i=0;i<this.slides.length;i++)this.slides[i]._setIndex(t)},t.prototype._setIndex=function(t){this.localIndex=this.index=t},t.prototype.preLoad=function(){for(var t=[],i=0;i<this.slides.length;i++)t.push(this.slides[i]._preLoad());return Promise.all(t)},t.prototype._preLoad=function(){return this.element.querySelectorAll("[data-lazysrc]").forEach((function(t){d(t,"src",m(t,"lazysrc"))})),!this.background||this.background.preLoad()},t.prototype.setPrevious=function(t){this.previousSlide=t},t.prototype.getPrevious=function(){var t=this;do{t=t.previousSlide}while(t&&t!==this&&!t.isVisible);return t},t.prototype.setNext=function(t){this.nextSlide=t,t&&t.setPrevious(this)},t.prototype.getNext=function(){var t=this;do{t=t.nextSlide}while(t&&t!==this&&!t.isVisible);return t},t.prototype.getTitle=function(){return m(this.slides[0].element,"title")||""},t.prototype.getDescription=function(){return m(this.slides[0].element,"description")||""},t.prototype.getThumbnail=function(){var t=this.slides[0].element.querySelector(".n2-ss-slide-thumbnail");return t?l(t,"src"):""},t.prototype.hasLink=function(){return!1},t.prototype.setActive=function(){this.allowFocus(),A(this.element,"n2-ss-slide-active")},t.prototype.unsetActive=function(){this.disableFocus(),I(this.element,"n2-ss-slide-active")},t.prototype.setInside=function(t){for(var i=0;i<this.slides.length;i++)this.slides[i]._setInside(t)},t.prototype._setInside=function(t){},t.prototype.focus=function(){},t.prototype.allowFocus=function(){},t.prototype.disableFocus=function(){},t.prototype.isVisibleWhen=function(t){return-1!==this.slider.getVisibleSlides(t).indexOf(this)},t.prototype.isActiveWhen=function(t){return-1!==this.slider.getActiveSlides(t).indexOf(this)},t})),u.d("SlideStatus",(function(){var t={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3,SUSPENDED:4};function i(){this.status=t.NOT_INITIALIZED}return i.prototype.set=function(i){this.status=t[i]},i.prototype.is=function(i){return this.status===t[i]},i})),u.d("FrontendSliderStaticSlide",["FrontendSlideControls"],(function(){function t(t,i){u.FrontendSlideControls.prototype.constructor.call(this,t,i),this.slides=[this],this.isVisible=!0,this._isCurrentlyEdited=this.slider.parameters.admin&&i.classList.contains("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?this.layer=i.querySelector('.n2-ss-layer[data-sstype="slide"]'):(this.component=new u.FrontendComponentSectionSlide(this,t,i.querySelector('.n2-ss-layer[data-sstype="slide"]')),this.layer=this.component.layer)}for(var i in u.FrontendSlideControls.prototype)t.prototype[i]=u.FrontendSlideControls.prototype[i];return t.prototype.isStatic=function(){return!0},t.prototype.onDeviceChange=function(t){m(this.element,"hide"+H(t))?!1!==this.isVisible&&(this.isVisible=!1,this.G("Hidden")):!0!==this.isVisible&&(this.isVisible=!0,this.status.is("INITIALIZED")&&this.playIn(),this.G("Visible"))},t})),u.d("FrontendPlacementAbsolute",["FrontendPlacement"],(function(){var t=new class{constructor(){this.ct=new Set,this.ft=new Set,this.h=this.u.bind(this)}add(t){this.ct.add(t)}invalidate(t){this.ft.add(t),1===this.ft.size&&u.t.add(this.h)}u(){for(let t of this.ft)t.ut();for(let t of this.ft)t.onResizeSize();for(let t of this.ft)t.onResizePosition();this.ft.clear(),u.t.remove(this.h)}};function i(t){this.parentLayer=!1,this.parentLayerPlacement=!1,u.FrontendPlacement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(u.FrontendPlacement.prototype),i.prototype.constructor=i,i.prototype.start=function(){var i=this.layer.get("parentid");if(i){var s=h.getElementById(i);s&&(this.parentLayer=s.layer,this.parentLayerPlacement=this.parentLayer.placement,this.parentLayerPlacement.addLinked(this),this.onResize=function(){})}t.add(this)},i.prototype.isSingleAxis=function(){if(this.layer.parent instanceof u.FrontendComponentSectionSlide){if(!this.parentLayer)return!1;if(this.parentLayer.placement instanceof u.FrontendPlacementAbsolute)return!1}return!0},i.prototype.ut=function(){u.FrontendPlacement.prototype.ut.apply(this,arguments);var t=this.layer.layer.parentNode;this.lt={width:t.offsetWidth,height:t.offsetHeight}},i.prototype.onResizeSize=function(){var t=u.MW.k(this.layer.layer),i=this.dt.slideW,s=this.dt.slideH;this.isSingleAxis()&&(s=i);var n=i,h=s;parseInt(this.layer.get("responsivesize"))||(n=h=1);var o=this.getWidth(n),r="number"==typeof o,a=this.getHeight(h),c="number"==typeof a;this._sizePosition&&(r&&(this._sizePosition.width=o,c||(y(this.layer.layer,"width",o+"px"),this._sizePosition.height=this.layer.layer.offsetHeight)),c&&(this._sizePosition.height=a)),t.width=o+(r?"px":""),t.height=a+(c?"px":"")},i.prototype.onResizePosition=function(){var t=this.dt,i=this.layer.layer,s=u.MW.k(i),n=t.slideW,h=t.slideH;this.isSingleAxis()&&(h=n),parseInt(this.layer.get("responsiveposition"))||(n=h=1);var o=this.layer.getDevice("left")*n,r=this.layer.getDevice("top")*h,a=this.layer.getDevice("align"),c=this.layer.getDevice("valign");if(this.parentLayerPlacement&&this.parentLayerPlacement.isVisible()){var f=this.parentLayerPlacement.getPositionSize(),l={left:0,top:0};if(this.parentLayerPlacement instanceof u.FrontendPlacementAbsolute){var d=u.MW.k(this.parentLayerPlacement.layer.layer);f.left+=d.xAbs+d.xPAbs/100*f.width,f.top+=d.yAbs+d.yPAbs/100*f.height}switch(this.layer.getDevice("parentalign")){case"right":l.left=f.left+f.width;break;case"center":l.left=f.left+f.width/2;break;default:l.left=f.left}switch(this.layer.getDevice("parentvalign")){case"bottom":l.top=f.top+f.height;break;case"middle":l.top=f.top+f.height/2;break;default:l.top=f.top}switch(a){case"right":s.xAbs=Math.round(l.left+o),s.xPAbs=-100;break;case"center":s.xAbs=Math.round(l.left+o),s.xPAbs=-50;break;default:s.xAbs=Math.round(l.left+o),s.xPAbs=0}switch(c){case"bottom":s.yAbs=Math.round(l.top+r),s.yPAbs=-100;break;case"middle":s.yAbs=Math.round(l.top+r),s.yPAbs=-50;break;default:s.yAbs=Math.round(l.top+r),s.yPAbs=0}}else{var v,p;switch(a){case"right":v=!this.layer.slide.isStatic&&this.layer.parent instanceof u.FrontendComponentSectionSlide?this.vt.slideWidth:this.lt.width,s.xAbs=Math.round(v+o),s.xPAbs=-100;break;case"center":v=!this.layer.slide.isStatic&&this.layer.parent instanceof u.FrontendComponentSectionSlide?this.vt.slideWidth:this.lt.width,s.xAbs=Math.round(v/2+o),s.xPAbs=-50;break;default:s.xAbs=Math.round(o),s.xPAbs=0}switch(c){case"bottom":p=!this.layer.slide.isStatic&&this.layer.parent instanceof u.FrontendComponentSectionSlide?this.vt.slideHeight:this.lt.height,s.yAbs=Math.round(p+r),s.yPAbs=-100;break;case"middle":p=!this.layer.slide.isStatic&&this.layer.parent instanceof u.FrontendComponentSectionSlide?this.vt.slideHeight:this.lt.height,s.yAbs=Math.round(p/2+r),s.yPAbs=-50;break;default:s.yAbs=Math.round(r),s.yPAbs=0}}},i.prototype.onResize=function(i,s){this.isVisible()&&(this.dt=i,this.vt=s,t.invalidate(this),u.FrontendPlacement.prototype.onResize.apply(this,arguments))},i.prototype.onResizeLinked=function(t,s){i.prototype.onResize.call(this,t,s)},i.prototype.getWidth=function(t){var i=this.layer.getDevice("width");return this.isDimensionPropertyAccepted(i)?i:i*t},i.prototype.getHeight=function(t){var i=this.layer.getDevice("height");return this.isDimensionPropertyAccepted(i)?i:i*t},i.prototype.isDimensionPropertyAccepted=function(t){return(t+"").match(/[0-9]+%/)||"auto"===t},i})),u.d("FrontendPlacementContent",["FrontendPlacement"],(function(){function t(t){u.FrontendPlacement.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(u.FrontendPlacement.prototype),t.prototype.constructor=t,t})),u.d("FrontendPlacementDefault",["FrontendPlacement"],(function(){function t(t){u.FrontendPlacement.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(u.FrontendPlacement.prototype),t.prototype.constructor=t,t})),u.d("FrontendPlacementNormal",["FrontendPlacement"],(function(){function t(t){u.FrontendPlacement.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(u.FrontendPlacement.prototype),t.prototype.constructor=t,t})),u.d("FrontendComponentCol",["FrontendComponentCommon"],(function(){function t(t,i,s){this.content=s.querySelector(".n2-ss-layer-col"),u.FrontendComponentCommon.prototype.constructor.call(this,t,i,s,this.content.querySelectorAll(":scope > .n2-ss-layer"))}return t.prototype=Object.create(u.FrontendComponentCommon.prototype),t.prototype.constructor=t,t.prototype.getContents=function(){return[this.content]},t})),u.d("FrontendComponentContent",["FrontendComponentCommon"],(function(){function t(t,i,s){this.content=s.querySelector(".n2-ss-section-main-content"),u.FrontendComponentCommon.prototype.constructor.call(this,t,i,s,this.content.querySelectorAll(":scope > .n2-ss-layer"))}return t.prototype=Object.create(u.FrontendComponentCommon.prototype),t.prototype.constructor=t,t.prototype.getContents=function(){return[this.content]},t})),u.d("FrontendComponentLayer",["FrontendComponentCommon"],(function(){function t(t,i,s){u.FrontendComponentCommon.prototype.constructor.call(this,t,i,s);var n=s;this.wraps.mask&&(n=this.wraps.mask),this.item=n.querySelectorAll(":scope > *")}return t.prototype=Object.create(u.FrontendComponentCommon.prototype),t.prototype.constructor=t,t.prototype.getContents=function(){return this.item},t})),u.d("FrontendComponentRow",["FrontendComponentCommon"],(function(){function t(t,i,s){this.row=s.querySelector(".n2-ss-layer-row"),this.rowInner=s.querySelector(".n2-ss-layer-row-inner"),u.FrontendComponentCommon.prototype.constructor.call(this,t,i,s,this.rowInner.querySelectorAll(":scope > .n2-ss-layer"))}return t.prototype=Object.create(u.FrontendComponentCommon.prototype),t.prototype.constructor=t,t.prototype.getContents=function(){return[this.row]},t})),u.d("FrontendComponentSectionSlide",["FrontendComponent"],(function(){function t(t,i,s){this.realSlide=t,this.slider=i,this.element=t.element,this.layer=s,this.isStatic=t.isStatic(),u.FrontendComponent.prototype.constructor.call(this,this,this,s,s.querySelectorAll(":scope > .n2-ss-layer")),O(i.sliderElement,"SliderDeviceOrientation",function(e){this.onDeviceChange(e.detail.device.toLowerCase())}.bind(this)),O(i.sliderElement,"SliderResize",function(e){this.onResize(e.detail.ratios,e.detail.responsive.resizeContext)}.bind(this)),this.start()}return t.prototype=Object.create(u.FrontendComponent.prototype),t.prototype.constructor=t,t.prototype.onDeviceChange=function(t){u.FrontendComponent.prototype.onDeviceChange.call(this,t);for(var i=0;i<this.children.length;i++)this.children[i].onDeviceChange(t);this.realSlide.onDeviceChange(t)},t})),u.d("SmartSliderResponsive",(function(){let t,c=!1;function l(t,s){for(var n in this.state={StarterSlide:!1},this.isVisible=!0,this.isResetActiveSlideEarly=this.isResetActiveSlideEarly||!1,this.focusOffsetTop=0,this.focusOffsetBottom=0,this.minimumSlideHeight=0,this.ot=!1,this.visibleRealSlidesChanged=!0,this.bt=-1,this.St=-1,this.wt=-1,this.yt=-1,this.filters={SliderWidth:[],SliderHeight:[],SlideHeight:[],SliderVerticalCSS:[]},this.parameters=f({mediaQueries:{},hideOn:{desktopLandscape:0,desktopPortrait:0,tabletLandscape:0,tabletPortrait:0,mobileLandscape:0,mobilePortrait:0},onResizeEnabled:!0,type:"auto",focusUser:1,focusEdge:"auto",enabledDevices:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},breakpoints:[],sizes:{desktopPortrait:{width:1200,height:600,max:1e4,min:40}},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},overflowHiddenPage:0,focus:{offsetTop:"",offsetBottom:""}},s),this.mediaQueries={},this.parameters.mediaQueries)this.parameters.mediaQueries[n]&&(this.mediaQueries[n]=i.matchMedia(this.parameters.mediaQueries[n].join(",")));this.parameters.hideOn=i.ssOverrideHideOn||this.parameters.hideOn,this.doThrottledResize=NextendThrottle(this.doResize.bind(this),50),this.slider=t,this.sliderElement=t.sliderElement,this.gt="1"===m(this.sliderElement,"ssLegacyFontScale"),this.addFilter("SliderWidth",this.filterSliderWidthHorizontalSpacing.bind(this))}return h.addEventListener("scroll",(function(){t&&a(t),c=!0,t=r((function(){c=!1}),300)}),{capture:!0,passive:!0}),l.DeviceMode={unknown:0,desktoplandscape:1,desktopportrait:2,tabletlandscape:3,tabletportrait:4,mobilelandscape:5,mobileportrait:6},l._DeviceMode={0:"unknown",1:"desktopLandscape",2:"desktopPortrait",3:"tabletLandscape",4:"tabletPortrait",5:"mobileLandscape",6:"mobilePortrait"},l._DeviceGroup={desktopLandscape:"desktop",desktopPortrait:"desktop",tabletLandscape:"tablet",tabletPortrait:"tablet",mobileLandscape:"mobile",mobilePortrait:"mobile"},l.prototype.init=function(){this.base=this.parameters.base},l.prototype.setDeviceID=function(t){this.deviceID=t,this.device=l._DeviceMode[t]},l.prototype.start=function(){if(this.slider.stages.done("ResizeFirst",function(){n2const.fonts.then(function(){this.slider.stages.resolve("Fonts")}.bind(this))}.bind(this)),this.normalizeTimeout=null,this.setDeviceID(l.DeviceMode.unknown),this.ratios={slideW:1,slideH:1},this.horizontalSpacingControls={right:[],left:[]},this.horizontalSpacing={right:0,left:0},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.alignElement=this.slider.sliderElement.closest(".n2-ss-align"),this.K=this.slider.K,this.containerElementPadding=this.sliderElement.parentNode,this.containerElement=this.containerElementPadding.parentNode,!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&C([o,s],"overflow","hidden"),u._smallestZoom=320,this.initFocusOffsetObserver(),this.slider.stages.resolve("ResponsiveStart"),this.init(),this.parameters.onResizeEnabled){O(i,"resize",this.onResize.bind(this)),this.lastROWidth=0;var t=this.containerElement.parentNode,n=new ResizeObserver(function(t){this.processResizeObserverRect(t[0].contentRect)}.bind(this));requestAnimationFrame(function(){this.processResizeObserverRect(t.getBoundingClientRect()),n.observe(t)}.bind(this))}else this.onResize()},l.prototype.processResizeObserverRect=function(t){this.isVisible=!!t.width,this.lastROWidth!==t.width&&(this.lastROWidth=t.width,this.internalResize())},l.prototype.internalResize=function(){this.onResize()},l.prototype.getDeviceMode=function(){return l._DeviceMode[this.deviceID]},l.prototype.getDeviceGroup=function(){return l._DeviceGroup[this.getDeviceMode()]},l.prototype.onResize=function(e){this.bt=i.innerWidth,this.St=i.innerHeight,this.slider.mainAnimation&&"playing"===this.slider.mainAnimation.getState()?this.kt||(this.kt=!0,T(this.sliderElement,"mainAnimationComplete",this._onResize.bind(this,e))):this._onResize(e)},l.prototype._onResize=function(e){this.doResize(e),delete this.kt},l.prototype.doNormalizedResize=function(){this.normalizeTimeout&&a(this.normalizeTimeout),this.normalizeTimeout=r(this.doResize.bind(this),10)},l.prototype.identifyDeviceID=function(){for(var t in this.mediaQueries)if(this.mediaQueries[t].matches)return l.DeviceMode[t];return l.DeviceMode.desktopportrait},l.prototype.initFocusOffsetObserver=function(){if(""!==this.parameters.focus.offsetTop){var t;try{t=h.querySelectorAll(this.parameters.focus.offsetTop)}catch(t){console.error('The Top CSS selector: "'+this.parameters.focus.offsetTop+'" used in the slider is invalid!')}if(t&&t.length)for(var i=new ResizeObserver(function(t){this.focusOffsetTop=0;for(var i=0;i<t.length;i++)this.focusOffsetTop+=t[i].target.getBoundingClientRect().height;this.Ct()}.bind(this)),s=0;s<t.length;s++)i.observe(t[s])}if(""!==this.parameters.focus.offsetBottom){var n;try{n=h.querySelectorAll(this.parameters.focus.offsetBottom)}catch(t){console.error('The Bottom CSS selector: "'+this.parameters.focus.offsetBottom+'" used in the slider is invalid!')}if(n&&n.length){var o=new ResizeObserver(function(t){this.focusOffsetBottom=0;for(var i=0;i<t.length;i++)this.focusOffsetBottom+=t[i].target.getBoundingClientRect().height;this.Ct()}.bind(this));for(s=0;s<n.length;s++)o.observe(n[s])}}},l.prototype.Ct=function(){y(this.sliderElement,"--subtract-vertical-offset",(i.n2OffsetTop||this.focusOffsetTop)+(i.n2OffsetBottom||this.focusOffsetBottom)+"px"),this.doResize()},l.prototype.doResize=function(e){if(!this.slider.isAdmin&&c&&this.wt===this.bt){const t=Math.abs(this.yt-this.St);if(t>0&&t<100)return}this.wt=this.bt,this.yt=this.St;var t=this.identifyDeviceID();if(this.parameters.hideOn[l._DeviceMode[t]])return A(this.K,"n2-section-smartslider--hidden"),!1;if(I(this.K,"n2-section-smartslider--hidden"),!this.isVisible)return!1;var i=!1,s=this.device;if(this.deviceID!==t&&(this.setDeviceID(t),s&&I(this.sliderElement,"n2-ss-"+s),b(this.sliderElement,"deviceMode",this.device),A(this.sliderElement,"n2-ss-"+this.device),this.slider.G("SliderDevice",{lastDevice:s,device:this.device,group:l._DeviceGroup[this.device]}),i=!0,this.slider.stages.resolve("Device")),i&&(this.slider.visibleRealSlides=[],this.slider.publicDispatchEvent("SliderDeviceOrientation",{slider:this.slider,lastDevice:s,device:this.device,group:l._DeviceGroup[this.device]}),this.slider.stages.resolve("DeviceOrientation"),this.finalizeVisibleSlidesStage1()),!this.slider.visibleRealSlides.length)return this.parameters.hideOn[l._DeviceMode[t]]=!0,A(this.K,"n2-section-smartslider--hidden"),!1;if(this.slider.isVisible||this.visibleRealSlidesChanged){for(var n=0;n<this.slider.realSlides.length;n++)u.MW.k(this.slider.realSlides[n].element).setValues({width:"",height:""}),g(this.slider.realSlides[n].element,{width:"",height:""});this.resizeStage1Width(),this.slider.G("SliderResizeHorizontal"),this.resizeStage2Height()}},l.prototype.resizeStage1Width=function(){this.resizeContext={}},l.prototype.resizeStage2Height=function(){this.finalizeVisibleSlidesStage2(),this.calculateResponsiveValues(),this.slider.stages.resolve("ResizeFirst"),this.triggerResize()},l.prototype.calculateResponsiveValues=function(){this.ratios={slideW:this.resizeContext.slideWidth/this.base.slideWidth,slideH:this.resizeContext.slideHeight/this.base.slideHeight},this.gt&&C(this.sliderElement.querySelectorAll('.n2-ss-layer[data-sstype="slide"] > .n2-ss-layer[data-pm="absolute"][data-adaptivefont="0"]'),"font-size","calc("+16*this.ratios.slideW+"px * var(--ssfont-scale, 1))");for(var t=0;t<this.slider.realSlides.length;t++)u.MW.k(this.slider.realSlides[t].element).setValues({width:this.resizeContext.slideSelfWidth,height:this.resizeContext.slideSelfHeight})},l.prototype.onStarterSlide=function(t){this.state.StarterSlide=!0,this.calibrateActiveSlide(t),delete this.targetCurrentSlide},l.prototype.finalizeVisibleSlidesStage1=function(){this.visibleRealSlidesChanged&&(this.slider.visibleRealSlides.sort((function(t,i){return t.index-i.index})),this.updateVisibleSlides(),this.slider.G("visibleRealSlidesChanged"),this.slider.stages.resolve("VisibleRealSlides"),this.isResetActiveSlideEarly&&this.calibrateActiveSlide())},l.prototype.updateVisibleSlides=function(){this.slider.visibleSlides=this.slider.visibleRealSlides},l.prototype.calibrateActiveSlide=function(t){if(this.state.StarterSlide&&this.slider.visibleSlides.length>0){var i=t||this.slider.currentRealSlide;i.isVisible||(i=i.getNext())||(i=this.slider.currentSlide.getPrevious()),this.resetActiveRealSlide(i)}},l.prototype.resetActiveRealSlide=function(t){var i,s;t&&t!==this.slider.currentRealSlide?(this.slider.G("BeforeCurrentSlideChange",t),(i=this.slider.currentSlide)&&this.slider.forceUnsetActiveSlide(i),this.slider.setCurrentRealSlide(t),s=this.slider.currentSlide,this.targetCurrentSlide=s,this.slider.forceSetActiveSlide(s),this.slider.G("SlideForceChange",{oldSlide:i,currentSlide:s})):s=this.slider.currentSlide,this.slider.updateInsideSlides([s])},l.prototype.finalizeVisibleSlidesStage2=function(){this.visibleRealSlidesChanged&&(this.visibleRealSlidesChanged=!1,this.isResetActiveSlideEarly||this.calibrateActiveSlide(),this.triggerVisibleSlidesChanged(),this.targetCurrentSlide!==n&&(this.slider.G("SlideWillChange",{targetSlide:this.targetCurrentSlide}),this.slider.G("CurrentSlideChanged",{currentSlide:this.targetCurrentSlide}),this.slider.stages.resolved("Visible")&&this.slider.playSlide(this.targetCurrentSlide),delete this.targetCurrentSlide))},l.prototype.triggerVisibleSlidesChanged=function(){this.slider.G("visibleSlidesChanged"),this.slider.stages.resolve("VisibleSlides"),this.slider.visibleRealSlides.length?this.slider.isVisible||this.slider.show():this.slider.isVisible&&this.slider.hide()},l.prototype.getNormalizedModeString=function(){return l._DeviceMode[this.deviceID]},l.prototype.triggerResize=function(){this.slider.publicDispatchEvent("SliderResize",{ratios:this.ratios,responsive:this}),this.slider.stages.resolve("Resized")},l.prototype.getVerticalOffsetHeight=function(){return this.ot?0:this.slider.widgets.getVerticalsHeight()},l.prototype.addHorizontalSpacingControl=function(t,i){this.horizontalSpacingControls[t].push(i),this.slider.stages.resolved("ResizeFirst")&&this.doNormalizedResize()},l.prototype.filterSliderWidthHorizontalSpacing=function(t){for(var i in this.horizontalSpacing={right:0,left:0},this.horizontalSpacingControls)for(var s=this.horizontalSpacingControls[i],n=s.length-1;n>=0;n--){var h=s[n];h.isVisible()&&(h.refreshSliderSize(t),this.horizontalSpacing[i]+=h.getSize())}return g(this.containerElementPadding,{paddingLeft:this.horizontalSpacing.left+"px",paddingRight:this.horizontalSpacing.right+"px"}),t-this.horizontalSpacing.left-this.horizontalSpacing.right},l.prototype.addFilter=function(t,i){this.filters[t].push(i)},l.prototype.removeFilter=function(t,i){this.filters[t].push(i)},l.prototype.applyFilter=function(t,i){for(var s=0;s<this.filters[t].length;s++)i=this.filters[t][s].call(this,i);return i},l})),u.d("FrontendItemVimeo",(function(){function t(t,i,s,n,o,r){if(this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,InComplete:!1,play:!1,continuePlay:!1},this.promise=new Promise(function(t){this._resolve=t}.bind(this)),this.slider=t,this.playerId=i,this.playerElement=h.getElementById(this.playerId),this.cover=this.playerElement.querySelector(".n2_ss_video_player__cover"),this.hasImage=o,this.start=r,this.parameters=f({vimeourl:"//vimeo.com/144598279",privateid:"",autoplay:"0",ended:"",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1",dnt:"0"},n),1===parseInt(this.parameters.autoplay))if(navigator.userAgent.toLowerCase().indexOf("android")>-1)this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in c("video")&&(this.parameters.autoplay=1,this.parameters.volume=0)}catch(t){}}n2const.isLighthouse||u.r("windowLoad",this.whenLoaded.bind(this))}var i;return t.prototype.whenLoaded=function(){1===parseInt(this.parameters.autoplay)||!this.hasImage||n2const.isMobile?this.ready(this.initVimeoPlayer.bind(this)):this.ready(function(){var t=function(e){z(i),e.preventDefault(),e.stopPropagation(),this.initVimeoPlayer(),this.safePlay()}.bind(this),i=[L(this.playerElement,"click",t),L(this.playerElement,"n2click",t)]}.bind(this))},t.prototype.ready=function(t){i||(i=new Promise((function(t){var i=c("script");i.onload=t,i.src="https://player.vimeo.com/api/player.js",h.head.appendChild(i)}))),i.then(t)},t.prototype.initVimeoPlayer=function(){var t=c("iframe");t.className="intrinsic-ignore",t.allow="fullscreen; autoplay; encrypted-media",t.id=this.playerId+"-frame",t.src="https://player.vimeo.com/video/"+this.parameters.vimeocode+"?autoplay=0&_video&title="+this.parameters.title+"&byline="+this.parameters.byline+"&background="+this.parameters.background+"&portrait="+this.parameters.portrait+"&color="+this.parameters.color+"&loop="+this.parameters.loop+("-1"==this.parameters.quality?"":"&quality="+this.parameters.quality)+"&dnt="+this.parameters["privacy-enhanced"]+(""!==this.parameters.privateid?"&h="+this.parameters.privateid:"")+"&playsinline=1",t.webkitAllowFullScreen=!0,t.allowFullScreen=!0,this.parameters["iframe-title"]!==n&&""!==this.parameters["iframe-title"]&&(t.title=this.parameters["iframe-title"]),g(t,{position:"absolute",top:0,left:0,width:"100%",height:"100%"}),this.playerElement.prepend(t),this.player=new Vimeo.Player(t,{autoplay:!1}),this.promise=this.player.ready(),this.slider.stages.done("BeforeShow",function(){this.promise.then(this.onReady.bind(this))}.bind(this))},t.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>=0&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.playerElement),this.isStatic=this.slide.isStatic();var i=this.playerElement.closest(".n2-ss-layer");this.layer=i.layer,new ResizeObserver(function(t){var i=t[0].contentRect;if(i.width&&i.height)this.state.visible||this.setState("visible",!0,!0);else if(this.state.visible){var s=this.state.play;this.setState("visible",!1,!0),s&&this.setState("continuePlay",!0)}}.bind(this)).observe(this.layer.layer),this.slide.isVisible&&this.setState("slideVisible",!0,!0),O(this.slide.element,"Hidden",function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this)),O(this.slide.element,"Visible",function(){this.setState("slideVisible",!0,!0)}.bind(this)),this.cover&&(n2const.isMobile&&T(this.cover,"click",this.safePlay.bind(this)),T(i,"n2play",function(){u.W.to(u.MW.k(this.cover),.3,{opacity:0,onComplete:function(){x(this.cover)}.bind(this)})}.bind(this))),this.player.on("play",function(){this.isStatic||D(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),R(i,"n2play")}.bind(this)),this.player.on("pause",function(){R(i,"n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)}.bind(this)),this.player.on("ended",function(){this.isStatic||D(this.slider.sliderElement,"mediaEnded",{id:this.playerId}),R(i,"n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&0==this.parameters.loop&&((h.fullscreenElement||h.webkitFullscreenElement)&&(h.exitFullscreen||h.webkitExitFullscreen).call(h),this.slider.next(!0))}.bind(this)),this.isStatic||(O(this.slider.sliderElement,"CurrentSlideChanged",function(e){this.onCurrentSlideChange(e.detail.currentSlide)}.bind(this)),O(this.slider.sliderElement,"mainAnimationStart",function(e){this.onCurrentSlideChange(this.slider.slides[e.detail.currentSlideIndex])}.bind(this))),""!==this.parameters["scroll-pause"]?u.ScrollTracker.add(this.playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(this.initAutoplay.bind(this)),this._resolve()},t.prototype.onCurrentSlideChange=function(t){this.slide.isActiveWhen(t)?(1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",!0,!0)):(parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!0,!0))},t.prototype.initAutoplay=function(){this.setState("InComplete",!0,!0),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(O(this.slider.sliderElement,"mainAnimationComplete",function(e){this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},t.prototype.setState=function(t,i,s){s=s||!1,this.state[t]=i,s&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll&&this.layer.isVisible?this.play():this.pause(),this.state.slideVisible&&this.state.visible&&this.state.slide&&this.layer.isVisible?p(this.player.element,"tabindex"):d(this.player.element,"tabindex","-1"))},t.prototype.play=function(){D(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay(),this.player.getCurrentTime().then(function(t){t<this.start&&0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay()}.bind(this)).catch(function(t){this.safePlay()}.bind(this))},t.prototype.pause=function(){this.safePause()},t.prototype.reset=function(){this.safeSetCurrentTime(this.start)},t.prototype.setVolume=function(t){this.safeCallback(function(){this.promise=this.player.setVolume(t)}.bind(this))},t.prototype.safeSetCurrentTime=function(t){this.safeCallback(function(){this.promise=this.player.setCurrentTime(t)}.bind(this))},t.prototype.safePlay=function(){this.safeCallback(function(){this.promise=this.player.getPaused(),this.safeCallback(function(t){t&&(this.promise=this.player.play())}.bind(this))}.bind(this))},t.prototype.safePause=function(){this.safeCallback(function(){this.promise=this.player.getPaused(),this.safeCallback(function(t){t||(this.promise=this.player.pause())}.bind(this))}.bind(this))},t.prototype.safeCallback=function(t){this.promise&&Promise!==n?this.promise.then(t).catch(t):t()},t})),u.d("FrontendItemYouTube",(function(){function t(t,i,s,n){this.listeners={play:[]},this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,InComplete:!1,play:!1,continuePlay:!1},this.promise=new Promise(function(t){this._resolve=t}.bind(this)),this.slider=t,this.playerId=i,this.playerElement=h.getElementById(this.playerId),this.cover=this.playerElement.querySelector(".n2_ss_video_player__cover"),this.hasImage=n,this.parameters=f({youtubeurl:"//www.youtube.com/watch?v=3PPtkRU7D74",youtubecode:"3PPtkRU7D74",center:0,autoplay:1,ended:"",related:"1",volume:"-1",loop:0,modestbranding:1,reset:0,query:[],playsinline:1},s),n2const.isLighthouse||u.r("windowLoad",this.whenLoaded.bind(this)),this.shouldPlayWhenReady=!1}var s;return t.prototype.whenLoaded=function(){if(1===parseInt(this.parameters.autoplay)||!this.hasImage||n2const.isMobile)this.ready(this.initYoutubePlayer.bind(this));else var t=function(e){z(i),e.preventDefault(),e.stopPropagation(),this.ready(function(){this.promise.then(this.play.bind(this)),this.initYoutubePlayer()}.bind(this))}.bind(this),i=[L(this.playerElement,"click",t),L(this.playerElement,"n2click",t)]},t.prototype.ready=function(t){if(!s&&(s=new Promise((function(t){var s;(s=i._EPYT_!==n?function(){!0===i._EPADashboard_.initStarted?t():r(s,100)}:function(){i.YT!==n&&i.YT.loaded?t():r(s,100)})()})),i.YT===n)){var o=c("script");o.src="https://www.youtube.com/iframe_api",h.head.appendChild(o)}s.then(t)},t.prototype.fadeOutCover=function(){this.coverFadedOut===n&&this.cover&&(this.coverFadedOut=!0,u.W.to(u.MW.k(this.cover),.3,{opacity:0,onComplete:function(){x(this.cover)}.bind(this)}))},t.prototype.initYoutubePlayer=function(){var t=this.layerElement=this.playerElement.closest(".n2-ss-layer");this.layer=t.layer,this.cover&&n2const.isMobile&&this.listeners.play.push(L(this.cover,"click",(()=>{this.shouldPlayWhenReady=!0,z(this.listeners.play)}))),this.slide=this.slider.findSlideByElement(this.playerElement),this.isStatic=this.slide.isStatic();var s={enablejsapi:1,origin:i.location.protocol+"//"+i.location.host,wmode:"opaque",rel:1-this.parameters.related,start:this.parameters.start,end:this.parameters.end,modestbranding:this.parameters.modestbranding,playsinline:this.parameters.playsinline};if(1===parseInt(this.parameters.autoplay))if(navigator.userAgent.toLowerCase().indexOf("android")>-1)this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in c("video")&&(this.parameters.autoplay=1,this.parameters.volume=0,s.playsinline=1)}catch(t){}}for(var n in n2const.isIOS&&this.parameters.controls&&(s.use_native_controls=1),1==this.parameters.center&&(s.controls=0),1!=this.parameters.controls&&(s.autohide=1,s.controls=0),+(navigator.platform.toUpperCase().indexOf("MAC")>=0&&navigator.userAgent.search("Firefox")>-1)&&(s.html5=1),this.parameters.query)this.parameters.query.hasOwnProperty(n)&&(s[n]=this.parameters.query[n]);var o={videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:s,events:{onReady:this.onReady.bind(this),onStateChange:function(i){switch(i.data){case YT.PlayerState.PLAYING:case YT.PlayerState.BUFFERING:this.isStatic||this.slide.isActiveWhen(this.slider.currentSlide)&&D(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),R(t,"n2play");break;case YT.PlayerState.PAUSED:R(t,"n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1);break;case YT.PlayerState.ENDED:1==this.parameters.loop?(this.player.seekTo(this.parameters.start),this.player.playVideo()):(this.isStatic||D(this.slider.sliderElement,"mediaEnded",{id:this.playerId}),R(t,"n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&((h.fullscreenElement||h.webkitFullscreenElement)&&(h.exitFullscreen||h.webkitExitFullscreen).call(h),this.slider.next(!0)))}}.bind(this)}};(this.parameters["privacy-enhanced"]||i.jQuery&&i.jQuery.fn.revolution)&&(o.host="https://www.youtube-nocookie.com"),this.player=new YT.Player(this.playerId+"-frame",o),1==this.parameters.center&&(y(this.playerElement.parentNode,"overflow","hidden"),this.onResize(),O(this.slider.sliderElement,"SliderResize",this.onResize.bind(this)))},t.prototype.onReady=function(){this.cover&&(n2const.isMobile&&T(this.cover,"click",this.play.bind(this)),T(this.layerElement,"n2play",this.fadeOutCover.bind(this))),z(this.listeners.play),this.shouldPlayWhenReady&&this.play(),this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},t.prototype.onBeforeShow=function(){var t=parseFloat(this.parameters.volume);t>0?this.setVolume(t):-1!==t&&this.player.mute(),new ResizeObserver(function(t){var i=t[0].contentRect;if(i.width&&i.height)this.state.visible||this.setState("visible",!0,!0);else if(this.state.visible){var s=this.state.play;this.setState("visible",!1,!0),s&&this.setState("continuePlay",!0)}}.bind(this)).observe(this.layer.layer),this.slide.isVisible&&this.setState("slideVisible",!0,!0),O(this.slide.element,"Hidden",function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this)),O(this.slide.element,"Visible",function(){this.setState("slideVisible",!0,!0)}.bind(this)),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1==this.parameters.autoplay&&this.slider.visible(this.initAutoplay.bind(this)),this.isStatic||(O(this.slider.sliderElement,"CurrentSlideChanged",function(e){this.onCurrentSlideChange(e.detail.currentSlide)}.bind(this)),O(this.slider.sliderElement,"mainAnimationStart",function(e){this.onCurrentSlideChange(this.slider.slides[e.detail.currentSlideIndex])}.bind(this)),parseInt(this.parameters.reset)&&O(this.slider.sliderElement,"mainAnimationComplete",function(e){this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])||0!==this.player.getCurrentTime()&&this.player.seekTo(this.parameters.start)}.bind(this))),this._resolve(),""!==this.parameters["scroll-pause"]?u.ScrollTracker.add(this.playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0)},t.prototype.onCurrentSlideChange=function(t){var i=this.slide.isActiveWhen(t);i&&1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",i,!0)},t.prototype.onResize=function(){var t=this.playerElement.parentNode.getBoundingClientRect(),i=t.width,s=t.height+100,n=16/9,h={width:i+"px",height:s+"px","margin-top":0};h[n2const.rtl["margin-left"]]=0,i/s>n?(h.height=i*n+"px",h["margin-top"]=(s-i*n)/2+"px"):(h.width=s*n+"px",h[n2const.rtl["margin-left"]]=(i-s*n)/2+"px"),g(this.playerElement,h)},t.prototype.initAutoplay=function(){this.setState("InComplete",!0,!0),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(O(this.slider.sliderElement,"mainAnimationComplete",function(e){this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},t.prototype.setState=function(t,i,s){s=s||!1,this.state[t]=i,s&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll?this.play():this.pause())},t.prototype.play=function(){this.isStopped()&&(this.coverFadedOut===n&&r(this.fadeOutCover.bind(this),200),D(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),this.player.playVideo())},t.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},t.prototype.stop=function(){this.player.stopVideo()},t.prototype.isStopped=function(){switch(this.player.getPlayerState()){case-1:case 2:case 5:return!0;default:return!1}},t.prototype.setVolume=function(t){this.player.setVolume(100*t)},t})),u.d("smartslider-frontend")}(window);
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s=t.document,n=(s.documentElement,t.setTimeout),h=t.clearTimeout,o=i._N2;t.requestAnimationFrame,Object.assign,navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;!function(t){if("complete"===s.readyState||"interactive"===s.readyState)t();else if(Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener){const i=()=>{t(),t=()=>{}};s.addEventListener("DOMContentLoaded",i),s.addEventListener("readystatechange",(()=>{"complete"!==s.readyState&&"interactive"!==s.readyState||i()})),Document.prototype.addEventListener.call(s,"DOMContentLoaded",i)}else s.addEventListener("DOMContentLoaded",t)}((function(){s.body})),o.d("SmartSliderBlock",["SmartSliderAbstract"],(function(){function t(t,i){this.type="block",this.responsiveClass=o.SmartSliderResponsiveBlock,o.SmartSliderAbstract.prototype.constructor.call(this,t,i)}return t.prototype=Object.create(o.SmartSliderAbstract.prototype),t.prototype.constructor=t,t.prototype.initResponsiveMode=function(){this.responsive=new o.SmartSliderResponsiveBlock(this,this.parameters.responsive),this.responsive.start(),o.SmartSliderAbstract.prototype.initResponsiveMode.call(this)},t.prototype.initMainAnimation=function(){this.mainAnimation=!1,this.isAdmin||this.disabled.postBackgroundAnimations||0==this.parameters.postBackgroundAnimations||(this.postBackgroundAnimation=new o.SmartSliderPostBackgroundAnimation(this,!1))},t.prototype.afterRawSlidesReady=function(){if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var t=0;t<this.slides.length;t++)this.slides[t].postBackgroundAnimation=this.parameters.postBackgroundAnimations.slides[t];delete this.parameters.postBackgroundAnimations.slides}},t.prototype.getSlideBackgroundContainer=function(){return this.sliderElement.querySelector(".n2-ss-slide").parentNode},t})),o.d("SmartSliderResponsiveBlock",["SmartSliderResponsive"],(function(){function t(){o.SmartSliderResponsive.prototype.constructor.apply(this,arguments),this.H=this.sliderElement.classList.contains("n2-ss-full-page--constrain-ratio")}return t.prototype=Object.create(o.SmartSliderResponsive.prototype),t.prototype.constructor=t,t.prototype.init=function(){o.SmartSliderResponsive.prototype.init.call(this),this._cacheEl={slider:this.sliderElement.querySelector(".n2-ss-slider-wrapper-inside")||this.sliderElement}},t.prototype.calculateResponsiveValues=function(){var t=this.slider.visibleRealSlides[0].element,i=t.getBoundingClientRect();this.resizeContext.slideSelfWidth=i.width,this.resizeContext.slideSelfHeight=i.height;var s=t.querySelector(".n2-ss-layers-container").getBoundingClientRect();this.resizeContext.slideWidth=s.width,this.resizeContext.slideHeight=s.height;var n=this._cacheEl.slider.getBoundingClientRect();if(this.resizeContext.sliderWidth=n.width,this.resizeContext.sliderHeight=n.height,o.SmartSliderResponsive.prototype.calculateResponsiveValues.call(this),this.H){var h=(this.resizeContext.sliderWidth-this.resizeContext.slideWidth)/-2+"px",r=(this.resizeContext.sliderHeight-this.resizeContext.slideHeight)/-2+"px";o.MW.k(this._cacheEl.slider)["--ss-clip-path"]="inset("+r+" "+h+" "+r+" "+h+")"}},t})),o.d("ss-block",["SmartSliderBlock","SmartSliderResponsiveBlock"])}(window);
/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.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,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
CLI_ACCEPT_COOKIE_NAME=(typeof CLI_ACCEPT_COOKIE_NAME!=='undefined'?CLI_ACCEPT_COOKIE_NAME:'viewed_cookie_policy');CLI_PREFERENCE_COOKIE=(typeof CLI_PREFERENCE_COOKIE!=='undefined'?CLI_PREFERENCE_COOKIE:'CookieLawInfoConsent');CLI_ACCEPT_COOKIE_EXPIRE=(typeof CLI_ACCEPT_COOKIE_EXPIRE!=='undefined'?CLI_ACCEPT_COOKIE_EXPIRE:365);CLI_COOKIEBAR_AS_POPUP=(typeof CLI_COOKIEBAR_AS_POPUP!=='undefined'?CLI_COOKIEBAR_AS_POPUP:false);var CLI_Cookie={set:function(name,value,days){var secure="";if(true===Boolean(Cli_Data.secure_cookies)){secure=";secure";}
if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}else{var expires="";}
document.cookie=name+"="+value+secure+expires+"; path=/";if(days<1){host_name=window.location.hostname;document.cookie=name+"="+value+expires+"; path=/; domain=."+host_name+";";if(host_name.indexOf("www")!=1){var host_name_withoutwww=host_name.replace('www','');document.cookie=name+"="+value+secure+expires+"; path=/; domain="+host_name_withoutwww+";";}
host_name=host_name.substring(host_name.lastIndexOf(".",host_name.lastIndexOf(".")-1));document.cookie=name+"="+value+secure+expires+"; path=/; domain="+host_name+";";}},read:function(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1,c.length);}
if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length);}}
return null;},erase:function(name){this.set(name,"",-10);},exists:function(name){return(this.read(name)!==null);},getallcookies:function(){var pairs=document.cookie.split(";");var cookieslist={};for(var i=0;i<pairs.length;i++){var pair=pairs[i].split("=");cookieslist[(pair[0]+'').trim()]=unescape(pair[1]);}
return cookieslist;}}
var CLI={bar_config:{},showagain_config:{},allowedCategories:[],js_blocking_enabled:false,set:function(args){if(typeof JSON.parse!=="function"){console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it");return;}
if(typeof args.settings!=='object'){this.settings=JSON.parse(args.settings);}else{this.settings=args.settings;}
this.js_blocking_enabled=Boolean(Cli_Data.js_blocking);this.settings=args.settings;this.bar_elm=jQuery(this.settings.notify_div_id);this.showagain_elm=jQuery(this.settings.showagain_div_id);this.settingsModal=jQuery('#cliSettingsPopup');this.main_button=jQuery('.cli-plugin-main-button');this.main_link=jQuery('.cli-plugin-main-link');this.reject_link=jQuery('.cookie_action_close_header_reject');this.delete_link=jQuery(".cookielawinfo-cookie-delete");this.settings_button=jQuery('.cli_settings_button');this.accept_all_button=jQuery('.wt-cli-accept-all-btn');if(this.settings.cookie_bar_as=='popup'){CLI_COOKIEBAR_AS_POPUP=true;}
this.mayBeSetPreferenceCookie();this.addStyleAttribute();this.configBar();this.toggleBar();this.attachDelete();this.attachEvents();this.configButtons();this.reviewConsent();var cli_hidebar_on_readmore=this.hideBarInReadMoreLink();if(Boolean(this.settings.scroll_close)===true&&cli_hidebar_on_readmore===false){window.addEventListener("scroll",CLI.closeOnScroll,false);}},hideBarInReadMoreLink:function(){if(Boolean(CLI.settings.button_2_hidebar)===true&&this.main_link.length>0&&this.main_link.hasClass('cli-minimize-bar')){this.hideHeader();cliBlocker.cookieBar(false);this.showagain_elm.slideDown(this.settings.animate_speed_show);return true;}
return false;},attachEvents:function(){jQuery(document).on('click','.wt-cli-privacy-btn',function(e){e.preventDefault();CLI.accept_close();CLI.settingsPopUpClose();});jQuery('.wt-cli-accept-btn').on("click",function(e){e.preventDefault();CLI.acceptRejectCookies(jQuery(this));});jQuery('.wt-cli-accept-all-btn').on("click",function(e){e.preventDefault();CLI.acceptRejectCookies(jQuery(this),'accept');});jQuery('.wt-cli-reject-btn').on("click",function(e){e.preventDefault();CLI.acceptRejectCookies(jQuery(this),'reject');});this.settingsPopUp();this.settingsTabbedAccordion();this.toggleUserPreferenceCheckBox();this.hideCookieBarOnClose();this.cookieLawInfoRunCallBacks();},acceptRejectCookies(element,action='custom'){var open_link=element[0].hasAttribute("href")&&element.attr("href")!='#'?true:false;var new_window=false;if(action=='accept'){this.enableAllCookies();this.accept_close();new_window=CLI.settings.button_7_new_win?true:false;}else if(action=='reject'){this.disableAllCookies();this.reject_close();new_window=Boolean(this.settings.button_3_new_win)?true:false;}else{this.accept_close();new_window=Boolean(this.settings.button_1_new_win)?true:false;}
if(open_link){if(new_window){window.open(element.attr("href"),'_blank');}else{window.location.href=element.attr("href");}}},toggleUserPreferenceCheckBox:function(){jQuery('.cli-user-preference-checkbox').each(function(){categoryCookie='cookielawinfo-'+jQuery(this).attr('data-id');categoryCookieValue=CLI_Cookie.read(categoryCookie);if(categoryCookieValue==null){if(jQuery(this).is(':checked')){CLI_Cookie.set(categoryCookie,'yes',CLI_ACCEPT_COOKIE_EXPIRE);}else{CLI_Cookie.set(categoryCookie,'no',CLI_ACCEPT_COOKIE_EXPIRE);}}else{if(categoryCookieValue=="yes"){jQuery(this).prop("checked",true);}else{jQuery(this).prop("checked",false);}}});jQuery('.cli-user-preference-checkbox').on("click",function(e){var dataID=jQuery(this).attr('data-id');var currentToggleElm=jQuery('.cli-user-preference-checkbox[data-id='+dataID+']');if(jQuery(this).is(':checked')){CLI_Cookie.set('cookielawinfo-'+dataID,'yes',CLI_ACCEPT_COOKIE_EXPIRE);currentToggleElm.prop('checked',true);}else{CLI_Cookie.set('cookielawinfo-'+dataID,'no',CLI_ACCEPT_COOKIE_EXPIRE);currentToggleElm.prop('checked',false);}
CLI.checkCategories();CLI.generateConsent();});},settingsPopUp:function(){jQuery(document).on('click','.cli_settings_button',function(e){e.preventDefault();CLI.settingsModal.addClass("cli-show").css({'opacity':0}).animate({'opacity':1});CLI.settingsModal.removeClass('cli-blowup cli-out').addClass("cli-blowup");jQuery('body').addClass("cli-modal-open");jQuery(".cli-settings-overlay").addClass("cli-show");jQuery("#cookie-law-info-bar").css({'opacity':.1});if(!jQuery('.cli-settings-mobile').is(':visible')){CLI.settingsModal.find('.cli-nav-link:eq(0)').trigger("click");}});jQuery('#cliModalClose').on("click",function(e){CLI.settingsPopUpClose();});CLI.settingsModal.on("click",function(e){if(!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))){CLI.settingsPopUpClose();}});jQuery('.cli_enable_all_btn').on("click",function(e){var cli_toggle_btn=jQuery(this);var enable_text=cli_toggle_btn.attr('data-enable-text');var disable_text=cli_toggle_btn.attr('data-disable-text');if(cli_toggle_btn.hasClass('cli-enabled')){CLI.disableAllCookies();cli_toggle_btn.html(enable_text);}else{CLI.enableAllCookies();cli_toggle_btn.html(disable_text);}
jQuery(this).toggleClass('cli-enabled');});this.privacyReadmore();},settingsTabbedAccordion:function(){jQuery(".cli-tab-header").on("click",function(e){if(!(jQuery(e.target).hasClass('cli-slider')||jQuery(e.target).hasClass('cli-user-preference-checkbox'))){if(jQuery(this).hasClass("cli-tab-active")){jQuery(this).removeClass("cli-tab-active");jQuery(this).siblings(".cli-tab-content").slideUp(200);}else{jQuery(".cli-tab-header").removeClass("cli-tab-active");jQuery(this).addClass("cli-tab-active");jQuery(".cli-tab-content").slideUp(200);jQuery(this).siblings(".cli-tab-content").slideDown(200);}}});},settingsPopUpClose:function(){this.settingsModal.removeClass('cli-show');this.settingsModal.addClass('cli-out');jQuery('body').removeClass("cli-modal-open");jQuery(".cli-settings-overlay").removeClass("cli-show");jQuery("#cookie-law-info-bar").css({'opacity':1});},privacyReadmore:function(){var el=jQuery('.cli-privacy-content .cli-privacy-content-text');if(el.length>0){var clone=el.clone(),originalHtml=clone.html(),originalHeight=el.outerHeight(),Trunc={addReadmore:function(textBlock){if(textBlock.html().length>250){jQuery('.cli-privacy-readmore').show();}else{jQuery('.cli-privacy-readmore').hide();}},truncateText:function(textBlock){var strippedText=jQuery('<div />').html(textBlock.html());strippedText.find('table').remove();textBlock.html(strippedText.html());currentText=textBlock.text();if(currentText.trim().length>250){var newStr=currentText.substring(0,250);textBlock.empty().html(newStr).append('...');}},replaceText:function(textBlock,original){return textBlock.html(original);}};Trunc.addReadmore(el);Trunc.truncateText(el);jQuery('a.cli-privacy-readmore').on("click",function(e){e.preventDefault();if(jQuery('.cli-privacy-overview').hasClass('cli-collapsed')){Trunc.truncateText(el);jQuery('.cli-privacy-overview').removeClass('cli-collapsed');el.css('height','100%');}else{jQuery('.cli-privacy-overview').addClass('cli-collapsed');Trunc.replaceText(el,originalHtml);}});}},attachDelete:function(){this.delete_link.on("click",function(e){CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME);for(var k in Cli_Data.nn_cookie_ids){CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);}
CLI.generateConsent();return false;});},configButtons:function(){this.main_button.css('color',this.settings.button_1_link_colour);if(Boolean(this.settings.button_1_as_button)){this.main_button.css('background-color',this.settings.button_1_button_colour);this.main_button.on('mouseenter',function(){jQuery(this).css('background-color',CLI.settings.button_1_button_hover);}).on('mouseleave',function(){jQuery(this).css('background-color',CLI.settings.button_1_button_colour);});}
this.main_link.css('color',this.settings.button_2_link_colour);if(Boolean(this.settings.button_2_as_button)){this.main_link.css('background-color',this.settings.button_2_button_colour);this.main_link.on('mouseenter',function(){jQuery(this).css('background-color',CLI.settings.button_2_button_hover);}).on('mouseleave',function(){jQuery(this).css('background-color',CLI.settings.button_2_button_colour);});}
this.reject_link.css('color',this.settings.button_3_link_colour);if(Boolean(this.settings.button_3_as_button)){this.reject_link.css('background-color',this.settings.button_3_button_colour);this.reject_link.on('mouseenter',function(){jQuery(this).css('background-color',CLI.settings.button_3_button_hover);}).on('mouseleave',function(){jQuery(this).css('background-color',CLI.settings.button_3_button_colour);});}
this.settings_button.css('color',this.settings.button_4_link_colour);if(Boolean(this.settings.button_4_as_button)){this.settings_button.css('background-color',this.settings.button_4_button_colour);this.settings_button.on('mouseenter',function(){jQuery(this).css('background-color',CLI.settings.button_4_button_hover);}).on('mouseleave',function(){jQuery(this).css('background-color',CLI.settings.button_4_button_colour);});}
this.accept_all_button.css('color',this.settings.button_7_link_colour);if(this.settings.button_7_as_button){this.accept_all_button.css('background-color',this.settings.button_7_button_colour);this.accept_all_button.on('mouseenter',function(){jQuery(this).css('background-color',CLI.settings.button_7_button_hover);}).on('mouseleave',function(){jQuery(this).css('background-color',CLI.settings.button_7_button_colour);});}},toggleBar:function(){if(CLI_COOKIEBAR_AS_POPUP){this.barAsPopUp(1);}
if(CLI.settings.cookie_bar_as=='widget'){this.barAsWidget(1);}
if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)){this.displayHeader();}else{this.hideHeader();}
if(Boolean(this.settings.show_once_yn)){setTimeout(function(){CLI.close_header();},CLI.settings.show_once);}
if(CLI.js_blocking_enabled===false){if(Boolean(Cli_Data.ccpaEnabled)===true){if(Cli_Data.ccpaType==='ccpa'&&Boolean(Cli_Data.ccpaBarEnabled)===false){cliBlocker.cookieBar(false);}}else{jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove();}}
this.showagain_elm.on("click",function(e){e.preventDefault();CLI.showagain_elm.slideUp(CLI.settings.animate_speed_hide,function(){CLI.bar_elm.slideDown(CLI.settings.animate_speed_show);if(CLI_COOKIEBAR_AS_POPUP){CLI.showPopupOverlay();}});});},configShowAgain:function(){this.showagain_config={'background-color':this.settings.background,'color':this.l1hs(this.settings.text),'position':'fixed','font-family':this.settings.font_family};if(Boolean(this.settings.border_on)){var border_to_hide='border-'+this.settings.notify_position_vertical;this.showagain_config['border']='1px solid '+this.l1hs(this.settings.border);this.showagain_config[border_to_hide]='none';}
var cli_win=jQuery(window);var cli_winw=cli_win.width();var showagain_x_pos=this.settings.showagain_x_position;if(cli_winw<300){showagain_x_pos=10;this.showagain_config.width=cli_winw-20;}else{this.showagain_config.width='auto';}
var cli_defw=cli_winw>400?500:cli_winw-20;if(CLI_COOKIEBAR_AS_POPUP){var sa_pos=this.settings.popup_showagain_position;var sa_pos_arr=sa_pos.split('-');if(sa_pos_arr[1]=='left'){this.showagain_config.left=showagain_x_pos;}else if(sa_pos_arr[1]=='right'){this.showagain_config.right=showagain_x_pos;}
if(sa_pos_arr[0]=='top'){this.showagain_config.top=0;}else if(sa_pos_arr[0]=='bottom'){this.showagain_config.bottom=0;}
this.bar_config['position']='fixed';}else if(this.settings.cookie_bar_as=='widget'){this.showagain_config.bottom=0;if(this.settings.widget_position=='left'){this.showagain_config.left=showagain_x_pos;}else if(this.settings.widget_position=='right'){this.showagain_config.right=showagain_x_pos;}}else{if(this.settings.notify_position_vertical=="top"){this.showagain_config.top='0';}else if(this.settings.notify_position_vertical=="bottom"){this.bar_config['position']='fixed';this.bar_config['bottom']='0';this.showagain_config.bottom='0';}
if(this.settings.notify_position_horizontal=="left"){this.showagain_config.left=showagain_x_pos;}else if(this.settings.notify_position_horizontal=="right"){this.showagain_config.right=showagain_x_pos;}}
this.showagain_elm.css(this.showagain_config);},configBar:function(){this.bar_config={'background-color':this.settings.background,'color':this.settings.text,'font-family':this.settings.font_family};if(this.settings.notify_position_vertical=="top"){this.bar_config['top']='0';if(Boolean(this.settings.header_fix)===true){this.bar_config['position']='fixed';}}else{this.bar_config['bottom']='0';}
this.configShowAgain();this.bar_elm.css(this.bar_config).hide();},l1hs:function(str){if(str.charAt(0)=="#"){str=str.substring(1,str.length);}else{return"#"+str;}
return this.l1hs(str);},close_header:function(){CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);this.hideHeader();},accept_close:function(){this.hidePopupOverlay();this.generateConsent();this.cookieLawInfoRunCallBacks();CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE);if(Boolean(this.settings.notify_animate_hide)){if(CLI.js_blocking_enabled===true){this.bar_elm.slideUp(this.settings.animate_speed_hide,cliBlocker.runScripts);}else{this.bar_elm.slideUp(this.settings.animate_speed_hide);}}else{if(CLI.js_blocking_enabled===true){this.bar_elm.hide(0,cliBlocker.runScripts);}else{this.bar_elm.hide();}}
if(Boolean(this.settings.showagain_tab)){this.showagain_elm.slideDown(this.settings.animate_speed_show);}
if(Boolean(this.settings.accept_close_reload)===true){this.reload_current_page();}
return false;},reject_close:function(){this.hidePopupOverlay();this.generateConsent();this.cookieLawInfoRunCallBacks();for(var k in Cli_Data.nn_cookie_ids){CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);}
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'no',CLI_ACCEPT_COOKIE_EXPIRE);if(Boolean(this.settings.notify_animate_hide)){if(CLI.js_blocking_enabled===true){this.bar_elm.slideUp(this.settings.animate_speed_hide,cliBlocker.runScripts);}else{this.bar_elm.slideUp(this.settings.animate_speed_hide);}}else{if(CLI.js_blocking_enabled===true){this.bar_elm.hide(cliBlocker.runScripts);}else{this.bar_elm.hide();}}
if(Boolean(this.settings.showagain_tab)){this.showagain_elm.slideDown(this.settings.animate_speed_show);}
if(Boolean(this.settings.reject_close_reload)===true){this.reload_current_page();}
return false;},reload_current_page:function(){window.location.reload(true);},closeOnScroll:function(){if(window.pageYOffset>100&&!CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)){CLI.accept_close();if(Boolean(CLI.settings.scroll_close_reload)===true){window.location.reload();}
window.removeEventListener("scroll",CLI.closeOnScroll,false);}},displayHeader:function(){if(Boolean(this.settings.notify_animate_show)){this.bar_elm.slideDown(this.settings.animate_speed_show);}else{this.bar_elm.show();}
this.showagain_elm.hide();if(CLI_COOKIEBAR_AS_POPUP){this.showPopupOverlay();}},hideHeader:function(){if(Boolean(this.settings.showagain_tab)){if(Boolean(this.settings.notify_animate_show)){this.showagain_elm.slideDown(this.settings.animate_speed_show);}else{this.showagain_elm.show();}}else{this.showagain_elm.hide();}
this.bar_elm.slideUp(this.settings.animate_speed_show);this.hidePopupOverlay();},hidePopupOverlay:function(){jQuery('body').removeClass("cli-barmodal-open");jQuery(".cli-popupbar-overlay").removeClass("cli-show");},showPopupOverlay:function(){if(this.bar_elm.length){if(Boolean(this.settings.popup_overlay)){jQuery('body').addClass("cli-barmodal-open");jQuery(".cli-popupbar-overlay").addClass("cli-show");}}},barAsWidget:function(a){var cli_elm=this.bar_elm;cli_elm.attr('data-cli-type','widget');var cli_win=jQuery(window);var cli_winh=cli_win.height()-40;var cli_winw=cli_win.width();var cli_defw=cli_winw>400?300:cli_winw-30;cli_elm.css({'width':cli_defw,'height':'auto','max-height':cli_winh,'overflow':'auto','position':'fixed','box-sizing':'border-box'});if(this.checkifStyleAttributeExist()===false){cli_elm.css({'padding':'25px 15px'});}
if(this.settings.widget_position=='left'){cli_elm.css({'left':'15px','right':'auto','bottom':'15px','top':'auto'});}else{cli_elm.css({'left':'auto','right':'15px','bottom':'15px','top':'auto'});}
if(a){this.setResize();}},barAsPopUp:function(a){if(typeof cookie_law_info_bar_as_popup==='function'){return false;}
var cli_elm=this.bar_elm;cli_elm.attr('data-cli-type','popup');var cli_win=jQuery(window);var cli_winh=cli_win.height()-40;var cli_winw=cli_win.width();var cli_defw=cli_winw>700?500:cli_winw-20;cli_elm.css({'width':cli_defw,'height':'auto','max-height':cli_winh,'bottom':'','top':'50%','left':'50%','margin-left':(cli_defw/2)*-1,'margin-top':'-100px','overflow':'auto'}).addClass('cli-bar-popup cli-modal-content');if(this.checkifStyleAttributeExist()===false){cli_elm.css({'padding':'25px 15px'});}
cli_h=cli_elm.height();li_h=cli_h<200?200:cli_h;cli_elm.css({'top':'50%','margin-top':((cli_h/2)+30)*-1});setTimeout(function(){cli_elm.css({'bottom':''});},100);if(a){this.setResize();}},setResize:function(){var resizeTmr=null;jQuery(window).resize(function(){clearTimeout(resizeTmr);resizeTmr=setTimeout(function(){if(CLI_COOKIEBAR_AS_POPUP){CLI.barAsPopUp();}
if(CLI.settings.cookie_bar_as=='widget'){CLI.barAsWidget();}
CLI.configShowAgain();},500);});},enableAllCookies:function(){jQuery('.cli-user-preference-checkbox').each(function(){var cli_chkbox_elm=jQuery(this);var cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');if(cli_chkbox_data_id!='checkbox-necessary'){cli_chkbox_elm.prop('checked',true);CLI_Cookie.set('cookielawinfo-'+cli_chkbox_data_id,'yes',CLI_ACCEPT_COOKIE_EXPIRE);}});},disableAllCookies:function(){jQuery('.cli-user-preference-checkbox').each(function(){var cli_chkbox_elm=jQuery(this);var cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');cliCategorySlug=cli_chkbox_data_id.replace('checkbox-','');if(Cli_Data.strictlyEnabled.indexOf(cliCategorySlug)===-1){cli_chkbox_elm.prop('checked',false);CLI_Cookie.set('cookielawinfo-'+cli_chkbox_data_id,'no',CLI_ACCEPT_COOKIE_EXPIRE);}});},hideCookieBarOnClose:function(){jQuery(document).on('click','.cli_cookie_close_button',function(e){e.preventDefault();var elm=jQuery(this);if(Cli_Data.ccpaType==='ccpa'){CLI.enableAllCookies();}
CLI.accept_close();});},checkCategories:function(){var cliAllowedCategories=[];var cli_categories={};jQuery('.cli-user-preference-checkbox').each(function(){var status=false;cli_chkbox_elm=jQuery(this);cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');cli_chkbox_data_id=cli_chkbox_data_id.replace('checkbox-','');cli_chkbox_data_id_trimmed=cli_chkbox_data_id.replace('-','_')
if(jQuery(cli_chkbox_elm).is(':checked')){status=true;cliAllowedCategories.push(cli_chkbox_data_id);}
cli_categories[cli_chkbox_data_id_trimmed]=status;});CLI.allowedCategories=cliAllowedCategories;},cookieLawInfoRunCallBacks:function(){this.checkCategories();if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes'){if("function"==typeof CookieLawInfo_Accept_Callback){CookieLawInfo_Accept_Callback();}}},generateConsent:function(){var preferenceCookie=CLI_Cookie.read(CLI_PREFERENCE_COOKIE);cliConsent={};if(preferenceCookie!==null){cliConsent=window.atob(preferenceCookie);cliConsent=JSON.parse(cliConsent);}
cliConsent.ver=Cli_Data.consentVersion;categories=[];jQuery('.cli-user-preference-checkbox').each(function(){categoryVal='';cli_chkbox_data_id=jQuery(this).attr('data-id');cli_chkbox_data_id=cli_chkbox_data_id.replace('checkbox-','');if(jQuery(this).is(':checked')){categoryVal=true;}else{categoryVal=false;}
cliConsent[cli_chkbox_data_id]=categoryVal;});cliConsent=JSON.stringify(cliConsent);cliConsent=window.btoa(cliConsent);CLI_Cookie.set(CLI_PREFERENCE_COOKIE,cliConsent,CLI_ACCEPT_COOKIE_EXPIRE);},addStyleAttribute:function(){var bar=this.bar_elm;var styleClass='';if(jQuery(bar).find('.cli-bar-container').length>0){styleClass=jQuery('.cli-bar-container').attr('class');styleClass=styleClass.replace('cli-bar-container','');styleClass=styleClass.trim();jQuery(bar).attr('data-cli-style',styleClass);}},getParameterByName:function(name,url){if(!url){url=window.location.href;}
name=name.replace(/[\[\]]/g,'\\$&');var regex=new RegExp('[?&]'+name+'(=([^&#]*)|&|#|$)'),results=regex.exec(url);if(!results){return null;}
if(!results[2]){return'';}
return decodeURIComponent(results[2].replace(/\+/g,' '));},CookieLawInfo_Callback:function(enableBar,enableBlocking){enableBar=typeof enableBar!=='undefined'?enableBar:true;enableBlocking=typeof enableBlocking!=='undefined'?enableBlocking:true;if(CLI.js_blocking_enabled===true&&Boolean(Cli_Data.custom_integration)===true){cliBlocker.cookieBar(enableBar);cliBlocker.runScripts(enableBlocking);}},checkifStyleAttributeExist:function(){var exist=false;var attr=this.bar_elm.attr('data-cli-style');if(typeof attr!==typeof undefined&&attr!==false){exist=true;}
return exist;},reviewConsent:function(){jQuery(document).on('click','.cli_manage_current_consent,.wt-cli-manage-consent-link',function(){CLI.displayHeader();});},mayBeSetPreferenceCookie:function(){if(CLI.getParameterByName('cli_bypass')==="1"){CLI.generateConsent();}}}
var cliBlocker={blockingStatus:true,scriptsLoaded:false,ccpaEnabled:false,ccpaRegionBased:false,ccpaApplicable:false,ccpaBarEnabled:false,cliShowBar:true,isBypassEnabled:CLI.getParameterByName('cli_bypass'),checkPluginStatus:function(callbackA,callbackB){this.ccpaEnabled=Boolean(Cli_Data.ccpaEnabled);this.ccpaRegionBased=Boolean(Cli_Data.ccpaRegionBased);this.ccpaBarEnabled=Boolean(Cli_Data.ccpaBarEnabled);if(Boolean(Cli_Data.custom_integration)===true){callbackA(false);}else{if(this.ccpaEnabled===true){this.ccpaApplicable=true;if(Cli_Data.ccpaType==='ccpa'){if(this.ccpaBarEnabled!==true){this.cliShowBar=false;this.blockingStatus=false;}}}else{jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove();}
if(cliBlocker.isBypassEnabled==="1"){cliBlocker.blockingStatus=false;}
callbackA(this.cliShowBar);callbackB(this.blockingStatus);}},cookieBar:function(showbar){showbar=typeof showbar!=='undefined'?showbar:true;cliBlocker.cliShowBar=showbar;if(cliBlocker.cliShowBar===false){CLI.bar_elm.hide();CLI.showagain_elm.hide();CLI.settingsModal.removeClass('cli-blowup cli-out');CLI.hidePopupOverlay();jQuery(".cli-settings-overlay").removeClass("cli-show");}else{if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)){CLI.displayHeader();}else{CLI.hideHeader();}}},removeCookieByCategory:function(){if(cliBlocker.blockingStatus===true){if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)!==null){var non_necessary_cookies=Cli_Data.non_necessary_cookies;for(var key in non_necessary_cookies){currentCategory=key;if(CLI.allowedCategories.indexOf(currentCategory)===-1){var nonNecessaryCookies=non_necessary_cookies[currentCategory];for(var i=0;i<nonNecessaryCookies.length;i++){if(CLI_Cookie.read(nonNecessaryCookies[i])!==null){CLI_Cookie.erase(nonNecessaryCookies[i]);}}}}}}},runScripts:function(blocking){blocking=typeof blocking!=='undefined'?blocking:true;cliBlocker.blockingStatus=blocking;srcReplaceableElms=['iframe','IFRAME','EMBED','embed','OBJECT','object','IMG','img'];var genericFuncs={renderByElement:function(callback){cliScriptFuncs.renderScripts();callback();cliBlocker.scriptsLoaded=true;},};var cliScriptFuncs={scriptsDone:function(){if(typeof Cli_Data.triggerDomRefresh!=='undefined'){if(Boolean(Cli_Data.triggerDomRefresh)===true){var DOMContentLoadedEvent=document.createEvent('Event')
DOMContentLoadedEvent.initEvent('DOMContentLoaded',true,true)
window.document.dispatchEvent(DOMContentLoadedEvent);}}},seq:function(arr,callback,index){if(typeof index==='undefined'){index=0}
arr[index](function(){index++
if(index===arr.length){callback()}else{cliScriptFuncs.seq(arr,callback,index)}})},insertScript:function($script,callback){var s='';var scriptType=$script.getAttribute('data-cli-script-type');var elementPosition=$script.getAttribute('data-cli-element-position');var isBlock=$script.getAttribute('data-cli-block');var s=document.createElement('script');var ccpaOptedOut=cliBlocker.ccpaOptedOut();s.type='text/plain';if($script.async){s.async=$script.async;}
if($script.defer){s.defer=$script.defer;}
if($script.src){s.onload=callback
s.onerror=callback
s.src=$script.src}else{s.textContent=$script.innerText}
var attrs=jQuery($script).prop("attributes");for(var ii=0;ii<attrs.length;++ii){if(attrs[ii].nodeName!=='id'){s.setAttribute(attrs[ii].nodeName,attrs[ii].value);}}
if(cliBlocker.blockingStatus===true){if((CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes'&&CLI.allowedCategories.indexOf(scriptType)!==-1)){s.setAttribute('data-cli-consent','accepted');s.type='text/javascript';}
if(cliBlocker.ccpaApplicable===true){if(ccpaOptedOut===true||CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)==null){s.type='text/plain';}}}else{s.type='text/javascript';}
if($script.type!=s.type){if(elementPosition==='head'){document.head.appendChild(s);}else{document.body.appendChild(s);}
if(!$script.src){callback()}
$script.parentNode.removeChild($script);}else{callback();}},renderScripts:function(){var $scripts=document.querySelectorAll('script[data-cli-class="cli-blocker-script"]');if($scripts.length>0){var runList=[]
var typeAttr
Array.prototype.forEach.call($scripts,function($script){typeAttr=$script.getAttribute('type')
runList.push(function(callback){cliScriptFuncs.insertScript($script,callback)})})
cliScriptFuncs.seq(runList,cliScriptFuncs.scriptsDone);}}};genericFuncs.renderByElement(cliBlocker.removeCookieByCategory);},ccpaOptedOut:function(){var ccpaOptedOut=false;var preferenceCookie=CLI_Cookie.read(CLI_PREFERENCE_COOKIE);if(preferenceCookie!==null){cliConsent=window.atob(preferenceCookie);cliConsent=JSON.parse(cliConsent);if(typeof cliConsent.ccpaOptout!=='undefined'){ccpaOptedOut=cliConsent.ccpaOptout;}}
return ccpaOptedOut;}}
jQuery(document).ready(function(){if(typeof cli_cookiebar_settings!='undefined'){CLI.set({settings:cli_cookiebar_settings});if(CLI.js_blocking_enabled===true){cliBlocker.checkPluginStatus(cliBlocker.cookieBar,cliBlocker.runScripts);}}});
function TRP_Translator(){this.is_editor=false;var _this=this;var observer=null;var observerConfig={attributes:true,childList:true,characterData:false,subtree:true};var translate_numerals_opt=trp_data.trp_translate_numerals_opt;var custom_ajax_url=trp_data.trp_custom_ajax_url;var wp_ajax_url=trp_data.trp_wp_ajax_url;var language_to_query;this.except_characters=" \t\n\r   �.,/`~!@#$€£%^&*():;-_=+[]{}\\|?/<>1234567890'";var trim_characters=" \t\n\r   �\x0A\x0B"+"\302"+"\240";var already_detected=[];var duplicate_detections_allowed=parseInt(trp_data.duplicate_detections_allowed)
this.ajax_get_translation=function(nodesInfo,string_originals,url,skip_machine_translation){jQuery.ajax({url:url,type:'post',dataType:'json',data:{action:'trp_get_translations_regular',all_languages:'false',security:trp_data['gettranslationsnonceregular'],language:language_to_query,original_language:original_language,originals:JSON.stringify(string_originals),skip_machine_translation:JSON.stringify(skip_machine_translation),dynamic_strings:'true',translate_numerals_opt:translate_numerals_opt},success:function(response){if(response==='error'){_this.ajax_get_translation(nodesInfo,string_originals,wp_ajax_url,skip_machine_translation);console.log('Notice: TranslatePress trp-ajax request uses fall back to admin ajax.');}else{_this.update_strings(response,nodesInfo);}},error:function(errorThrown){if(url==custom_ajax_url&&custom_ajax_url!=wp_ajax_url){_this.ajax_get_translation(nodesInfo,string_originals,wp_ajax_url,skip_machine_translation);console.log('Notice: TranslatePress trp-ajax request uses fall back to admin ajax.');}else{_this.update_strings(null,nodesInfo);console.log('TranslatePress AJAX Request Error');}}});};this.decode_html=function(html){var txt=document.createElement("textarea");txt.innerHTML=html;return txt.value;};this.update_strings=function(response,nodesInfo){_this.pause_observer();if(response!=null&&response.length>0){var newEntries=[];for(var j=0;j<nodesInfo.length;j++){var nodeInfo=nodesInfo[j];var translation_found=false;var initial_value=nodeInfo.original;for(var i=0;i<response.length;i++){var response_string=response[i].translationsArray[language_to_query];if(response[i].original.trim()==nodeInfo.original.trim()){var entry=response[i]
entry.selector='data-trp-translate-id'
entry.attribute=''
newEntries.push(entry)
if(_this.is_editor){var jquery_object;var trp_translate_id='data-trp-translate-id'
var trp_node_group='data-trp-node-group'
if(nodeInfo.attribute){jquery_object=jQuery(nodeInfo.node)
trp_translate_id=trp_translate_id+'-'+nodeInfo.attribute
trp_node_group=trp_node_group+'-'+nodeInfo.attribute}else{jquery_object=jQuery(nodeInfo.node).parent('translate-press');}
jquery_object.attr(trp_translate_id,response[i].dbID);jquery_object.attr(trp_node_group,response[i].group);}
if(response_string.translated!=''&&language_to_query==current_language){var text_to_set=_this.decode_html(initial_value.replace(initial_value.trim(),response_string.translated));if(nodeInfo.attribute){nodeInfo.node.setAttribute(nodeInfo.attribute,text_to_set)
if(nodeInfo.attribute=='src'){nodeInfo.node.setAttribute('srcset','')
nodeInfo.node.setAttribute('data-src',text_to_set)}}else{nodeInfo.node.textContent=text_to_set;}
translation_found=true;}
break;}}
already_detected[initial_value]=(initial_value in already_detected)?already_detected[initial_value]+1:0
if(!translation_found){if(nodeInfo.attribute){if(nodeInfo.attribute!='src'){nodeInfo.node.setAttribute(nodeInfo.attribute,initial_value)}}else{nodeInfo.node.textContent=initial_value;}}}
if(_this.is_editor){window.parent.dispatchEvent(new Event('trp_iframe_page_updated'));window.dispatchEvent(new Event('trp_iframe_page_updated'));}}else{for(var j=0;j<nodesInfo.length;j++){if(nodesInfo[j].attribute){if(nodesInfo[j].attribute!='src'){nodesInfo[j].node.setAttribute(nodesInfo[j].attribute,nodesInfo[j].original)}}else{nodesInfo[j].node.textContent=nodesInfo[j].original;}
already_detected[nodesInfo[j].original]=(nodesInfo[j].original in already_detected)?already_detected[nodesInfo[j].original]+1:0}}
_this.resume_observer();};this.detect_new_strings_callback=function(mutations){observer.disconnect()
_this.detect_new_strings(mutations);_this.resume_observer();}
this.detect_new_strings=function(mutations){var string_originals=[];var nodesInfo=[];var skip_machine_translation=[];var translateable;mutations.forEach(function(mutation){for(var i=0;i<mutation.addedNodes.length;i++){var node=mutation.addedNodes[i]
if(_this.is_editor){var anchor_tags=jQuery(node).find('a')
if(typeof anchor_tags.context!=='undefined')
anchor_tags.context.href=_this.update_query_string('trp-edit-translation','preview',anchor_tags.context.href);}
if(_this.skip_string(node)){continue;}
translateable=_this.get_translateable_textcontent(node)
string_originals=string_originals.concat(translateable.string_originals);nodesInfo=nodesInfo.concat(translateable.nodesInfo);skip_machine_translation=skip_machine_translation.concat(translateable.skip_machine_translation);translateable=_this.get_translateable_attributes(node)
string_originals=string_originals.concat(translateable.string_originals);nodesInfo=nodesInfo.concat(translateable.nodesInfo);skip_machine_translation=skip_machine_translation.concat(translateable.skip_machine_translation);}
if(mutation.attributeName){if(!_this.in_array(mutation.attributeName,trp_data.trp_attributes_accessors)){return}
if(_this.skip_string_attribute(mutation.target,mutation.attributeName)||_this.skip_string(mutation.target)){return}
translateable=_this.get_translateable_attributes(mutation.target)
string_originals=string_originals.concat(translateable.string_originals);nodesInfo=nodesInfo.concat(translateable.nodesInfo);skip_machine_translation=skip_machine_translation.concat(translateable.skip_machine_translation);}});if(nodesInfo.length>0){var ajax_url_to_call=(_this.is_editor)?wp_ajax_url:custom_ajax_url;_this.ajax_get_translation(nodesInfo,string_originals,ajax_url_to_call,skip_machine_translation);}};this.skip_string=function(node){var selectors=trp_data.trp_skip_selectors;for(var i=0;i<selectors.length;i++){if(jQuery(node).closest(selectors[i]).length>0){return true;}}
return false;};this.skip_string_from_auto_translation=function(node){var selectors=trp_data.trp_no_auto_translation_selectors;for(var i=0;i<selectors.length;i++){if(jQuery(node).closest(selectors[i]).length>0){return true;}}
return false;};this.contains_substring_that_needs_skipped=function(string,attribute){for(var attribute_to_skip in trp_data.skip_strings_from_dynamic_translation_for_substrings){if(trp_data.skip_strings_from_dynamic_translation_for_substrings.hasOwnProperty(attribute_to_skip)&&attribute===attribute_to_skip){for(var i=0;i<trp_data.skip_strings_from_dynamic_translation_for_substrings[attribute_to_skip].length;i++){if(string.indexOf(trp_data.skip_strings_from_dynamic_translation_for_substrings[attribute_to_skip][i])!==-1){return true}}}}
return false};this.skip_string_original=function(string,attribute){return((already_detected[string]>duplicate_detections_allowed)||_this.in_array(string,trp_data.skip_strings_from_dynamic_translation)||_this.contains_substring_that_needs_skipped(string,attribute))}
this.skip_string_attribute=function(node,attribute){var selectors=trp_data.trp_base_selectors;for(var i=0;i<selectors.length;i++){if(typeof jQuery(node).attr(selectors[i]+'-'+attribute)!=='undefined'){return true;}}
return false;};this.in_array=function(needle,array){var i
var length=array.length
for(i=length-1;i>=0;i--){if(array[i]===needle){return true}}
return false}
this.get_translateable_textcontent=function(node){var string_originals=[];var nodesInfo=[];var skip_machine_translation=[]
if(node.textContent&&_this.trim(node.textContent.trim(),_this.except_characters)!=''){var direct_string=get_string_from_node(node);if(direct_string){if(_this.trim(direct_string.textContent,_this.except_characters)!=''){var extracted_original=_this.trim(direct_string.textContent,trim_characters);if(!_this.skip_string_original(extracted_original,false)){nodesInfo.push({node:node,original:extracted_original,attribute:''});string_originals.push(extracted_original)
if(_this.skip_string_from_auto_translation(node)){skip_machine_translation.push(extracted_original)}
direct_string.textContent='';if(_this.is_editor){jQuery(node).wrap('<translate-press></translate-press>');}}}}else{var all_nodes=jQuery(node).find('*').addBack();var all_strings=all_nodes.contents().filter(function(){if(this.nodeType===3&&/\S/.test(this.nodeValue)){if(!_this.skip_string(this)){return this;}}});if(_this.is_editor){all_strings.wrap('<translate-press></translate-press>');}
var all_strings_length=all_strings.length;for(var j=0;j<all_strings_length;j++){if(_this.trim(all_strings[j].textContent,_this.except_characters)!=''){if(!_this.skip_string_original(all_strings[j].textContent,false)){nodesInfo.push({node:all_strings[j],original:all_strings[j].textContent,attribute:''});string_originals.push(all_strings[j].textContent)
if(_this.skip_string_from_auto_translation(all_strings[j])){skip_machine_translation.push(all_strings[j].textContent)}
if(trp_data['showdynamiccontentbeforetranslation']==false){all_strings[j].textContent='';}}}}}}
return{'string_originals':string_originals,'nodesInfo':nodesInfo,'skip_machine_translation':skip_machine_translation};}
this.get_translateable_attributes=function(node){var nodesInfo=[]
var string_originals=[]
var skip_attr_machine_translation=['href','src']
var skip_machine_translation=[]
for(var trp_attribute_key in trp_data.trp_attributes_selectors){if(trp_data.trp_attributes_selectors.hasOwnProperty(trp_attribute_key)){var attribute_selector_item=trp_data.trp_attributes_selectors[trp_attribute_key]
if(typeof attribute_selector_item['selector']!=='undefined'){var all_nodes=jQuery(node).find(attribute_selector_item.selector).addBack(attribute_selector_item.selector)
var all_nodes_length=all_nodes.length
for(var j=0;j<all_nodes_length;j++){if(_this.skip_string(all_nodes[j])||_this.skip_string_attribute(all_nodes[j],attribute_selector_item.accessor)){continue;}
var attribute_content=all_nodes[j].getAttribute(attribute_selector_item.accessor)
if(_this.skip_string_original(attribute_content,attribute_selector_item.accessor)){continue;}
if(attribute_content&&_this.trim(attribute_content.trim(),_this.except_characters)!=''){nodesInfo.push({node:all_nodes[j],original:attribute_content,attribute:attribute_selector_item.accessor});string_originals.push(attribute_content)
if(trp_data['showdynamiccontentbeforetranslation']==false&&(attribute_selector_item.accessor!='src')&&(attribute_selector_item.accessor!='href')){all_nodes[j].setAttribute(attribute_selector_item.accessor,'');}
if(_this.skip_string_from_auto_translation(all_nodes[j])){skip_machine_translation.push(attribute_content)}else{for(var s=0;s<skip_attr_machine_translation.length;s++){if(attribute_selector_item.accessor===skip_attr_machine_translation[s]){skip_machine_translation.push(attribute_content)
break}}}}}}}}
return{'string_originals':string_originals,'nodesInfo':nodesInfo,'skip_machine_translation':skip_machine_translation};}
function get_string_from_node(node){if(node.nodeType===3&&/\S/.test(node.nodeValue)){if(!_this.skip_string(node)){return node;}}}
this.cleanup_gettext_wrapper=function(){jQuery('trp-gettext').contents().unwrap();};this.update_query_string=function(key,value,url){if(!url)return url;if(url.startsWith('#')){return url;}
var re=new RegExp("([?&])"+key+"=.*?(&|#|$)(.*)","gi"),hash;if(re.test(url)){if(typeof value!=='undefined'&&value!==null)
return url.replace(re,'$1'+key+"="+value+'$2$3');else{hash=url.split('#');url=hash[0].replace(re,'$1$3').replace(/(&|\?)$/,'');if(typeof hash[1]!=='undefined'&&hash[1]!==null)
url+='#'+hash[1];return url;}}
else{if(typeof value!=='undefined'&&value!==null){var separator=url.indexOf('?')!==-1?'&':'?';hash=url.split('#');url=hash[0]+separator+key+'='+value;if(typeof hash[1]!=='undefined'&&hash[1]!==null)
url+='#'+hash[1];return url;}
else
return url;}};this.initialize=function(){this.is_editor=(typeof window.parent.tpEditorApp!=='undefined')
if(this.is_editor){trp_data['gettranslationsnonceregular']=window.parent.trp_dynamic_nonce;}
current_language=trp_data.trp_current_language;original_language=trp_data.trp_original_language;language_to_query=trp_data.trp_language_to_query;translate_numerals_opt=trp_data.trp_translate_numerals_opt;if(typeof translate_numerals_opt!=="undefined"&&translate_numerals_opt!==''&&translate_numerals_opt==="yes"){_this.except_characters=" \t\n\r   �.,/`~!@#$€£%^&*():;-_=+[]{}\\|?/<>'";}
observer=new MutationObserver(_this.detect_new_strings_callback);_this.resume_observer();jQuery(document).ajaxComplete(function(event,request,settings){if(typeof window.parent.jQuery!=="undefined"&&window.parent.jQuery('#trp-preview-iframe').length!=0){var settingsdata=""+settings.data;if(typeof settings.data=='undefined'||jQuery.isEmptyObject(settings.data)||settingsdata.indexOf('action=trp_')===-1){window.parent.dispatchEvent(new Event('trp_iframe_page_updated'));}}});_this.cleanup_gettext_wrapper();};this.resume_observer=function(){if(language_to_query===''){return;}
observer.observe(document.body,observerConfig);};this.pause_observer=function(){if(language_to_query===''){return;}
var mutations=observer.takeRecords()
observer.disconnect()
if(mutations.length>0){_this.detect_new_strings(mutations)}};this.trim=function(str,charlist){var whitespace=[' ','\n','\r','\t','\f','\x0b','\xa0','\u2000','\u2001','\u2002','\u2003','\u2004','\u2005','\u2006','\u2007','\u2008','\u2009','\u200a','\u200b','\u2028','\u2029','\u3000'].join('');var l=0;var i=0;str+='';if(charlist){whitespace+=(charlist+'').replace(/([[\]().?/*{}+$^:])/g,'$1');}
l=str.length;for(i=0;i<l;i++){if(whitespace.indexOf(str.charAt(i))===-1){str=str.substring(i);break;}}
l=str.length;for(i=l-1;i>=0;i--){if(whitespace.indexOf(str.charAt(i))===-1){str=str.substring(0,i+1);break;}}
return whitespace.indexOf(str.charAt(0))===-1?str:'';};_this.initialize();}
var trpTranslator;var current_language;var original_language;function trp_get_IE_version(){var sAgent=window.navigator.userAgent;var Idx=sAgent.indexOf("MSIE");if(Idx>0)
return parseInt(sAgent.substring(Idx+5,sAgent.indexOf(".",Idx)));else if(!!navigator.userAgent.match(/Trident\/7\./))
return 11;else
return 0;}
function trp_allow_detect_dom_changes_to_run(){var IE_version=trp_get_IE_version();if(IE_version!=0&&IE_version<=11){return false;}
return true;}
if(trp_allow_detect_dom_changes_to_run()){trpTranslator=new TRP_Translator();};
/*!
 * Video Extension for Jarallax v2.2.0 (https://github.com/nk-o/jarallax)
 * Copyright 2024 nK <https://nkdev.info>
 * Licensed under MIT (https://github.com/nk-o/jarallax/blob/master/LICENSE)
 */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).jarallaxVideo=t()}(this,(function(){"use strict";
/*!
 * Video Worker v2.2.0 (https://github.com/nk-o/video-worker)
 * Copyright 2024 nK <https://nkdev.info>
 * Licensed under MIT (https://github.com/nk-o/video-worker/blob/master/LICENSE)
 */var e={autoplay:!1,loop:!1,mute:!1,volume:100,showControls:!0,accessibilityHidden:!1,startTime:0,endTime:0};let t,o=0;class i{type="none";constructor(t,o){const i=this;i.url=t,i.options_default={...e},i.options=function(e,...t){return e=e||{},Object.keys(t).forEach((o=>{t[o]&&Object.keys(t[o]).forEach((i=>{e[i]=t[o][i]}))})),e}({},i.options_default,o),i.videoID=i.constructor.parseURL(t),i.videoID&&i.init()}isValid(){return!!this.videoID}init(){const e=this;e.ID=o,o+=1,e.playerID=`VideoWorker-${e.ID}`}on(e,t){this.userEventsList=this.userEventsList||[],(this.userEventsList[e]||(this.userEventsList[e]=[])).push(t)}off(e,t){this.userEventsList&&this.userEventsList[e]&&(t?this.userEventsList[e].forEach(((o,i)=>{o===t&&(this.userEventsList[e][i]=!1)})):delete this.userEventsList[e])}fire(e,...t){this.userEventsList&&void 0!==this.userEventsList[e]&&this.userEventsList[e].forEach((e=>{e&&e.apply(this,t)}))}static parseURL(e){return!1}play(e){}pause(){}mute(){}unmute(){}setVolume(e=!1){}getVolume(e){}getMuted(e){}setCurrentTime(e=!1){}getCurrentTime(e){}getImageURL(e){}getVideo(e){}}t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var a=t;function n(){this.doneCallbacks=[],this.failCallbacks=[]}n.prototype={execute(e,t){let o=e.length;for(t=Array.prototype.slice.call(t);o;)o-=1,e[o].apply(null,t)},resolve(...e){this.execute(this.doneCallbacks,e)},reject(...e){this.execute(this.failCallbacks,e)},done(e){this.doneCallbacks.push(e)},fail(e){this.failCallbacks.push(e)}};let s=0,r=0;const l=new n;let p=0,d=0;const u=new n;function m(e,t){let o=!1;return Object.keys(m.providers).forEach((i=>{!o&&m.providers[i].parseURL(e)&&(o=new m.providers[i](e,t))})),o||new i(e,t)}let y;m.BaseClass=i,m.providers={Youtube:class extends i{type="youtube";static parseURL(e){const t=e.match(/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|shorts\/|watch\?v=)([^#\&\?]*).*/);return!(!t||11!==t[1].length)&&t[1]}init(){super.init(),function(){if(s)return;s=!0;let e=document.createElement("script"),t=document.getElementsByTagName("head")[0];e.src="https://www.youtube.com/iframe_api",t.appendChild(e),t=null,e=null}()}play(e){const t=this;t.player&&t.player.playVideo&&(void 0!==e&&t.player.seekTo(e||0),a.YT.PlayerState.PLAYING!==t.player.getPlayerState()&&(t.options.endTime&&!t.options.loop?t.getCurrentTime((e=>{e<t.options.endTime&&t.player.playVideo()})):t.player.playVideo()))}pause(){const e=this;e.player&&e.player.pauseVideo&&a.YT.PlayerState.PLAYING===e.player.getPlayerState()&&e.player.pauseVideo()}mute(){const e=this;e.player&&e.player.mute&&e.player.mute()}unmute(){const e=this;e.player&&e.player.unMute&&e.player.unMute()}setVolume(e=!1){const t=this;t.player&&"number"==typeof e&&t.player.setVolume&&t.player.setVolume(e)}getVolume(e){const t=this;t.player?t.player.getVolume&&e(t.player.getVolume()):e(!1)}getMuted(e){const t=this;t.player?t.player.isMuted&&e(t.player.isMuted()):e(null)}setCurrentTime(e=!1){const t=this;t.player&&"number"==typeof e&&t.player.seekTo&&t.player.seekTo(e)}getCurrentTime(e){const t=this;t.player&&t.player.getCurrentTime&&e(t.player.getCurrentTime())}getImageURL(e){const t=this;if(t.videoImage)return void e(t.videoImage);const o=["maxresdefault","sddefault","hqdefault","0"];let i=0;const a=new Image;a.onload=function(){120!==(this.naturalWidth||this.width)||i===o.length-1?(t.videoImage=`https://img.youtube.com/vi/${t.videoID}/${o[i]}.jpg`,e(t.videoImage)):(i+=1,this.src=`https://img.youtube.com/vi/${t.videoID}/${o[i]}.jpg`)},a.src=`https://img.youtube.com/vi/${t.videoID}/${o[i]}.jpg`}getVideo(e){const t=this;t.$video?e(t.$video):function(e){void 0!==a.YT&&0!==a.YT.loaded||r?"object"==typeof a.YT&&1===a.YT.loaded?e():l.done((()=>{e()})):(r=1,a.onYouTubeIframeAPIReady=function(){a.onYouTubeIframeAPIReady=null,l.resolve("done"),e()})}((()=>{let o,i,n;t.$video||(o=document.createElement("div"),o.style.display="none"),t.playerOptions={host:"https://www.youtube-nocookie.com",videoId:t.videoID,playerVars:{autohide:1,rel:0,autoplay:0,playsinline:1}},t.options.showControls||(t.playerOptions.playerVars.iv_load_policy=3,t.playerOptions.playerVars.modestbranding=1,t.playerOptions.playerVars.controls=0,t.playerOptions.playerVars.showinfo=0,t.playerOptions.playerVars.disablekb=1),t.playerOptions.events={onReady(e){if(t.options.mute?e.target.mute():"number"==typeof t.options.volume&&e.target.setVolume(t.options.volume),t.options.autoplay&&t.play(t.options.startTime),t.fire("ready",e),t.options.loop&&!t.options.endTime){const e=.1;t.options.endTime=t.player.getDuration()-e}setInterval((()=>{t.getVolume((o=>{t.options.volume!==o&&(t.options.volume=o,t.fire("volumechange",e))}))}),150)},onStateChange(e){t.options.loop&&e.data===a.YT.PlayerState.ENDED&&t.play(t.options.startTime),i||e.data!==a.YT.PlayerState.PLAYING||(i=1,t.fire("started",e)),e.data===a.YT.PlayerState.PLAYING&&t.fire("play",e),e.data===a.YT.PlayerState.PAUSED&&t.fire("pause",e),e.data===a.YT.PlayerState.ENDED&&t.fire("ended",e),e.data===a.YT.PlayerState.PLAYING?n=setInterval((()=>{t.fire("timeupdate",e),t.options.endTime&&t.player.getCurrentTime()>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())}),150):clearInterval(n)},onError(e){t.fire("error",e)}};const s=!t.$video;if(s){const e=document.createElement("div");e.setAttribute("id",t.playerID),o.appendChild(e),document.body.appendChild(o)}t.player=t.player||new a.YT.Player(t.playerID,t.playerOptions),s&&(t.$video=document.getElementById(t.playerID),t.options.accessibilityHidden&&(t.$video.setAttribute("tabindex","-1"),t.$video.setAttribute("aria-hidden","true")),t.videoWidth=parseInt(t.$video.getAttribute("width"),10)||1280,t.videoHeight=parseInt(t.$video.getAttribute("height"),10)||720),e(t.$video)}))}},Vimeo:class extends i{type="vimeo";static parseURL(e){const t=e.match(/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/);return!(!t||!t[3])&&t[3]}static parseURLHash(e){const t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return t&&5===t.length?t[4]:null}init(){super.init(),function(){if(p)return;if(p=!0,void 0!==a.Vimeo)return;let e=document.createElement("script"),t=document.getElementsByTagName("head")[0];e.src="https://player.vimeo.com/api/player.js",t.appendChild(e),t=null,e=null}()}play(e){const t=this;t.player&&(void 0!==e&&t.player.setCurrentTime(e),t.player.getPaused().then((e=>{e&&(t.options.endTime&&!t.options.loop?t.getCurrentTime((e=>{e<t.options.endTime&&t.player.play()})):t.player.play())})))}pause(){const e=this;e.player&&e.player.getPaused().then((t=>{t||e.player.pause()}))}mute(){const e=this;e.player&&e.player.setVolume&&e.setVolume(0)}unmute(){const e=this;e.player&&e.player.setVolume&&e.setVolume(e.options.volume||100)}setVolume(e=!1){const t=this;t.player&&"number"==typeof e&&t.player.setVolume&&t.player.setVolume(e/100)}getVolume(e){const t=this;t.player?t.player.getVolume&&t.player.getVolume().then((t=>{e(100*t)})):e(!1)}getMuted(e){const t=this;t.player?t.player.getVolume&&t.player.getVolume().then((t=>{e(!!t)})):e(null)}setCurrentTime(e=!1){const t=this;t.player&&"number"==typeof e&&t.player.setCurrentTime&&t.player.setCurrentTime(e)}getCurrentTime(e){const t=this;t.player&&t.player.getCurrentTime&&t.player.getCurrentTime().then((t=>{e(t)}))}getImageURL(e){const t=this;if(t.videoImage)return void e(t.videoImage);let o=a.innerWidth||1920;a.devicePixelRatio&&(o*=a.devicePixelRatio),o=Math.min(o,1920);let i=new XMLHttpRequest;i.open("GET",`https://vimeo.com/api/oembed.json?url=${t.url}&width=${o}`,!0),i.onreadystatechange=function(){if(4===this.readyState&&this.status>=200&&this.status<400){const o=JSON.parse(this.responseText);o.thumbnail_url&&(t.videoImage=o.thumbnail_url,e(t.videoImage))}},i.send(),i=null}getVideo(e){const t=this;t.$video?e(t.$video):function(e){if(void 0!==a.Vimeo||d)void 0!==a.Vimeo?e():u.done((()=>{e()}));else{d=1;const t=setInterval((()=>{void 0!==a.Vimeo&&(clearInterval(t),u.resolve("done"),e())}),20)}}((()=>{let o;t.$video||(o=document.createElement("div"),o.style.display="none"),t.playerOptions={dnt:1,id:t.videoID,autopause:0,transparent:0,autoplay:t.options.autoplay?1:0,loop:t.options.loop?1:0,muted:t.options.mute||0===t.options.volume?1:0};const i=t.constructor.parseURLHash(t.url);if(i&&(t.playerOptions.h=i),t.options.showControls||(t.playerOptions.controls=0),!t.options.showControls&&t.options.loop&&t.options.autoplay&&(t.playerOptions.background=1),!t.$video){let e="";Object.keys(t.playerOptions).forEach((o=>{""!==e&&(e+="&"),e+=`${o}=${encodeURIComponent(t.playerOptions[o])}`})),t.$video=document.createElement("iframe"),t.$video.setAttribute("id",t.playerID),t.$video.setAttribute("src",`https://player.vimeo.com/video/${t.videoID}?${e}`),t.$video.setAttribute("frameborder","0"),t.$video.setAttribute("mozallowfullscreen",""),t.$video.setAttribute("allowfullscreen",""),t.$video.setAttribute("title","Vimeo video player"),t.options.accessibilityHidden&&(t.$video.setAttribute("tabindex","-1"),t.$video.setAttribute("aria-hidden","true")),o.appendChild(t.$video),document.body.appendChild(o)}let n;t.player=t.player||new a.Vimeo.Player(t.$video,t.playerOptions),t.options.mute||"number"!=typeof t.options.volume||t.setVolume(t.options.volume),t.options.startTime&&t.options.autoplay&&t.player.setCurrentTime(t.options.startTime),t.player.getVideoWidth().then((e=>{t.videoWidth=e||1280})),t.player.getVideoHeight().then((e=>{t.videoHeight=e||720})),t.player.on("timeupdate",(e=>{n||(t.fire("started",e),n=1),t.fire("timeupdate",e),t.options.endTime&&e.seconds>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())})),t.player.on("play",(e=>{t.fire("play",e),t.options.startTime&&0===e.seconds&&t.play(t.options.startTime)})),t.player.on("pause",(e=>{t.fire("pause",e)})),t.player.on("ended",(e=>{t.fire("ended",e)})),t.player.on("loaded",(e=>{t.fire("ready",e)})),t.player.on("volumechange",(e=>{t.getVolume((e=>{t.options.volume=e})),t.fire("volumechange",e)})),t.player.on("error",(e=>{t.fire("error",e)})),e(t.$video)}))}},Local:class extends i{type="local";static parseURL(e){const t=e.split(/,(?=mp4\:|webm\:|ogv\:|ogg\:)/),o={};let i=0;return t.forEach((e=>{const t=e.match(/^(mp4|webm|ogv|ogg)\:(.*)/);t&&t[1]&&t[2]&&(o["ogv"===t[1]?"ogg":t[1]]=t[2],i=1)})),!!i&&o}play(e){const t=this;t.player&&(void 0!==e&&(t.player.currentTime=e),t.player.paused&&(t.options.endTime&&!t.options.loop?t.getCurrentTime((e=>{e<t.options.endTime&&t.player.play()})):t.player.play()))}pause(){const e=this;e.player&&!e.player.paused&&e.player.pause()}mute(){this.player&&(this.$video.muted=!0)}unmute(){this.player&&(this.$video.muted=!1)}setVolume(e=!1){this.player&&"number"==typeof e&&(this.$video.volume=e/100)}getVolume(e){this.player?e(100*this.$video.volume):e(!1)}getMuted(e){this.player?e(this.$video.muted):e(null)}setCurrentTime(e=!1){this.player&&"number"==typeof e&&(this.$video.currentTime=e)}getCurrentTime(e){this.player&&e(this.player.currentTime)}getImageURL(e){const t=this;t.videoImage&&e(t.videoImage)}getVideo(e){const t=this;if(t.$video)return void e(t.$video);let o,i;t.$video||(o=document.createElement("div"),o.style.display="none"),t.$video||(t.$video=document.createElement("video"),t.player=t.$video,t.options.showControls&&(t.$video.controls=!0),"number"==typeof t.options.volume&&t.setVolume(t.options.volume),t.options.mute&&t.mute(),t.options.loop&&(t.$video.loop=!0),t.$video.setAttribute("playsinline",""),t.$video.setAttribute("webkit-playsinline",""),t.options.accessibilityHidden&&(t.$video.setAttribute("tabindex","-1"),t.$video.setAttribute("aria-hidden","true")),t.$video.setAttribute("id",t.playerID),o.appendChild(t.$video),document.body.appendChild(o),Object.keys(t.videoID).forEach((e=>{!function(e,t,o){const i=document.createElement("source");i.src=t,i.type=o,e.appendChild(i)}(t.$video,t.videoID[e],`video/${e}`)}))),t.player.addEventListener("playing",(e=>{i||t.fire("started",e),i=1})),t.player.addEventListener("timeupdate",(function(e){t.fire("timeupdate",e),t.options.endTime&&this.currentTime>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())})),t.player.addEventListener("play",(e=>{t.fire("play",e)})),t.player.addEventListener("pause",(e=>{t.fire("pause",e)})),t.player.addEventListener("ended",(e=>{t.fire("ended",e)})),t.player.addEventListener("loadedmetadata",(function(){t.videoWidth=this.videoWidth||1280,t.videoHeight=this.videoHeight||720,t.fire("ready"),t.options.autoplay&&t.play(t.options.startTime)})),t.player.addEventListener("volumechange",(e=>{t.getVolume((e=>{t.options.volume=e})),t.fire("volumechange",e)})),t.player.addEventListener("error",(e=>{t.fire("error",e)})),e(t.$video)}}},y="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var c,v=y;function h(e=v.jarallax){if(void 0===e)return;const t=e.constructor,o=t.prototype.onScroll;t.prototype.onScroll=function(){const e=this;o.apply(e);!e.isVideoInserted&&e.video&&(!e.options.videoLazyLoading||e.isElementInViewport)&&!e.options.disableVideo()&&(e.isVideoInserted=!0,e.video.getVideo((t=>{const o=t.parentNode;e.css(t,{position:e.image.position,top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden",margin:0,zIndex:-1}),e.$video=t,"local"===e.video.type&&(e.image.src?e.$video.setAttribute("poster",e.image.src):e.image.$item&&"IMG"===e.image.$item.tagName&&e.image.$item.src&&e.$video.setAttribute("poster",e.image.$item.src)),e.options.videoClass&&e.$video.setAttribute("class",`${e.options.videoClass} ${e.options.videoClass}-${e.video.type}`),e.image.$container.appendChild(t),o.parentNode.removeChild(o),e.options.onVideoInsert&&e.options.onVideoInsert.call(e)})))};const i=t.prototype.coverImage;t.prototype.coverImage=function(){const e=this,t=i.apply(e),o=!!e.image.$item&&e.image.$item.nodeName;if(t&&e.video&&o&&("IFRAME"===o||"VIDEO"===o)){let i=t.image.height,a=i*e.image.width/e.image.height,n=(t.container.width-a)/2,s=t.image.marginTop;t.container.width>a&&(a=t.container.width,i=a*e.image.height/e.image.width,n=0,s+=(t.image.height-i)/2),"IFRAME"===o&&(i+=400,s-=200),e.css(e.$video,{width:`${a}px`,marginLeft:`${n}px`,height:`${i}px`,marginTop:`${s}px`})}return t};const a=t.prototype.initImg;t.prototype.initImg=function(){const e=this,t=a.apply(e);return e.options.videoSrc||(e.options.videoSrc=e.$item.getAttribute("data-jarallax-video")||null),e.options.videoSrc?(e.defaultInitImgResult=t,!0):t};const n=t.prototype.canInitParallax;t.prototype.canInitParallax=function(){const e=this;let t=n.apply(e);if(!e.options.videoSrc)return t;const o=new m(e.options.videoSrc,{autoplay:!0,loop:e.options.videoLoop,showControls:!1,accessibilityHidden:!0,startTime:e.options.videoStartTime||0,endTime:e.options.videoEndTime||0,mute:!e.options.videoVolume,volume:e.options.videoVolume||0});function i(){e.image.$default_item&&(e.image.$item=e.image.$default_item,e.image.$item.style.display="block",e.coverImage(),e.onScroll())}if(e.options.onVideoWorkerInit&&e.options.onVideoWorkerInit.call(e,o),o.isValid())if(this.options.disableParallax()&&(t=!0,e.image.position="absolute",e.options.type="scroll",e.options.speed=1),t){if(o.on("ready",(()=>{if(e.options.videoPlayOnlyVisible){const t=e.onScroll;e.onScroll=function(){t.apply(e),e.videoError||!e.options.videoLoop&&(e.options.videoLoop||e.videoEnded)||(e.isVisible()?o.play():o.pause())}}else o.play()})),o.on("started",(()=>{e.image.$default_item=e.image.$item,e.image.$item=e.$video,e.image.width=e.video.videoWidth||1280,e.image.height=e.video.videoHeight||720,e.coverImage(),e.onScroll(),e.image.$default_item&&(e.image.$default_item.style.display="none")})),o.on("ended",(()=>{e.videoEnded=!0,e.options.videoLoop||i()})),o.on("error",(()=>{e.videoError=!0,i()})),e.video=o,!e.defaultInitImgResult&&(e.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7","local"!==o.type))return o.getImageURL((t=>{e.image.bgImage=`url("${t}")`,e.init()})),!1}else e.defaultInitImgResult||o.getImageURL((t=>{const o=e.$item.getAttribute("style");o&&e.$item.setAttribute("data-jarallax-original-styles",o),e.css(e.$item,{"background-image":`url("${t}")`,"background-position":"center","background-size":"cover"})}));return t};const s=t.prototype.destroy;t.prototype.destroy=function(){const e=this;e.image.$default_item&&(e.image.$item=e.image.$default_item,delete e.image.$default_item),s.apply(e)}}return h(),c=()=>{void 0!==v.jarallax&&v.jarallax(document.querySelectorAll("[data-jarallax-video]"))},"complete"===document.readyState||"interactive"===document.readyState?c():document.addEventListener("DOMContentLoaded",c,{capture:!0,once:!0,passive:!0}),v.VideoWorker||(v.VideoWorker=m),h}));//# sourceMappingURL=jarallax-video.min.js.map;
/*! For license information please see awb.js.LICENSE.txt */
!function(){var t={880:function(){document.addEventListener("jetpack-lazy-loaded-image",(t=>{if(t.target.classList.contains("jarallax-img")){const e=t.target.parentNode.parentNode;e&&e.jarallax&&e.jarallax.image&&e.jarallax.image.$item&&(e.jarallax.image.$item=t.target)}}),{passive:!0})}},e={};function i(a){var n=e[a];if(void 0!==n)return n.exports;var o=e[a]={exports:{}};return t[a](o,o.exports,i),o.exports}!function(){"use strict";function t(t,e,i){var a,n=i||{},o=n.noTrailing,r=void 0!==o&&o,s=n.noLeading,l=void 0!==s&&s,d=n.debounceMode,c=void 0===d?void 0:d,g=!1,u=0;function b(){a&&clearTimeout(a)}function w(){for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];var s=this,d=Date.now()-u;function w(){u=Date.now(),e.apply(s,n)}function p(){a=void 0}g||(l||!c||a||w(),b(),void 0===c&&d>t?l?(u=Date.now(),r||(a=setTimeout(c?p:w,t))):w():!0!==r&&(a=setTimeout(c?p:w,void 0===c?t-d:t)))}return w.cancel=function(t){var e=(t||{}).upcomingOnly,i=void 0!==e&&e;b(),g=!i},w}function e(t,e,i){const a=new CustomEvent(`awb-${e}`,{bubbles:!0,cancelable:!0,detail:i});t.dispatchEvent(a)}function a(t,e){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:document).addEventListener(`awb-${t}`,e)}const{AWB:n={}}=window,o=/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/g.test(navigator.userAgent||navigator.vendor||window.opera),r=!!document.documentMode,s=!r&&!!window.StyleMedia,l="undefined"!=typeof InstallTrigger,d=/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||"undefined"!=typeof safari&&safari.pushNotification).toString(),c=!!window.chrome&&!!window.chrome.webstore,g=!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0;let u=!1,b=!1;function w(){return n}n.settings&&n.settings.disable_parallax&&n.settings.disable_parallax.length&&n.settings.disable_parallax.forEach((t=>{if(!u)switch(t){case"everywhere":u=!0;break;case"mobile":u=o;break;case"ie":u=r;break;case"edge":u=s;break;case"firefox":u=l;break;case"safari":u=d;break;case"chrome":u=c;break;case"opera":u=g}})),n.settings&&n.settings.disable_video&&n.settings.disable_video.length&&n.settings.disable_video.forEach((t=>{if(!b)switch(t){case"everywhere":b=!0;break;case"mobile":b=o;break;case"ie":b=r;break;case"edge":b=s;break;case"firefox":b=l;break;case"safari":b=d;break;case"chrome":b=c;break;case"opera":b=g}})),n.isMobile=o,n.disableParallax=u,n.disableVideo=b,i(880),a("before-init",(t=>{!function(t){if(!t||!t.parentNode||!t.parentNode.classList.contains("nk-awb-after-vc_row"))return;const e=t.parentNode;let i=e.previousElementSibling;i=!!i.classList.contains("vc_clearfix")&&i;let a=(i||e).previousElementSibling;a=!(!a||!a.matches(".vc_row:not(.nk-awb)"))&&a,a&&("true"===a.getAttribute("data-vc-full-width")&&t.removeAttribute("data-awb-stretch"),a.classList.add("nk-awb"),a.append(t)),e.remove()}(t.target),function(t){if(!t||!t.parentNode||!t.parentNode.classList.contains("nk-awb-after-vc_column"))return;const e=t.parentNode;let i=e.previousElementSibling;i=!(!i||!i.matches(".wpb_column:not(.nk-awb)"))&&i;const a=i.closest(".vc_row");i&&(a.matches("[data-vc-stretch-content=true]")&&t.removeAttribute("data-awb-stretch"),i.classList.add("nk-awb"),i.append(t)),e.remove()}(t.target)}));let p=!1,f="";a("before-init",(t=>{window.GHOSTKIT||function(t){const e=t.parentNode&&t.parentNode.getAttribute("data-ghostkit-styles");e&&(p||(p=document.createElement("style"),p.setAttribute("id","ghostkit-awb-custom-css-inline-css"),document.head.appendChild(p)),f+=e,t.parentNode.removeAttribute("data-ghostkit-styles"),p.textContent=f)}(t.target)}));const{settings:m}=w(),h=[],v=[],y=[];function x(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;t&&t.length&&t.forEach((t=>{const e=t.getBoundingClientRect(),{left:i,right:a}=e,n=window.innerWidth-a,o=getComputedStyle(t),r=parseFloat(o["margin-left"]||0),s=parseFloat(o["margin-right"]||0);t.style["margin-left"]=r-i+"px",t.style["margin-right"]=s-n+"px"}))}function k(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;t&&t.length&&t.forEach((t=>{const e=t.closest(".vc_row"),i=t.closest(".wpb_column"),a=t.getBoundingClientRect(),n=e.getBoundingClientRect(),o=i.getBoundingClientRect(),r=getComputedStyle(t),s=getComputedStyle(e),l=a.left,d=window.innerWidth-a.right,c=n.left+(parseFloat(s["padding-left"])||0),g=window.innerWidth-n.right+(parseFloat(s["padding-right"])||0),u=o.left,b=window.innerWidth-o.right,w={"margin-left":0,"margin-right":0};if(Math.round(c)===Math.round(u)){const t=parseFloat(r["margin-left"]||0);w["margin-left"]=t-l+"px"}if(Math.round(g)===Math.round(b)){const t=parseFloat(r["margin-right"]||0);w["margin-right"]=t-d+"px"}t.style["margin-left"]=w["margin-left"],t.style["margin-right"]=w["margin-right"]}))}function A(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;t&&t.length&&t.forEach((t=>{const e=t.getBoundingClientRect(),{left:i,bottom:a}=e,n=window.innerWidth-e.right,o=getComputedStyle(t),r=parseFloat(o["margin-left"]||0),s=parseFloat(o["margin-right"]||0),l=parseFloat(o["margin-bottom"]||0);let d=r-i,c=s-n,g="";const u=t.closest(".ghostkit-col");if(u){const e=t.closest(".ghostkit-grid").getBoundingClientRect(),o=u.getBoundingClientRect(),b=e.left,w=window.innerWidth-e.right,p=o.left,f=window.innerWidth-o.right,m=o.bottom;Math.round(b)!==Math.round(p)&&(d=p-i+r),Math.round(w)!==Math.round(f)&&(c=f-n+s),g=l-(m-a)}t.style["margin-left"]=`${d}px`,t.style["margin-right"]=`${c}px`,t.style["margin-bottom"]=`${g}px`}))}const E=t(200,(function(){x(),k(),A()}));a("before-init",(t=>{!function(t){const e=t.getAttribute("data-awb-stretch");e&&t.parentNode.classList.contains("wpb_column")?(k([t]),v.push(t)):e?(x([t]),h.push(t)):m.full_width_fallback&&t.parentNode.classList.contains("alignfull")&&(A([t]),y.push(t))}(t.target)})),window.addEventListener("resize",E,{passive:!0}),window.addEventListener("orientationchange",E,{passive:!0}),window.addEventListener("load",E,{passive:!0});const{IntersectionObserver:L}=window,{isMobile:_}=w(),S=[];let z=1;function M(){S.forEach((t=>{t.awbMouseData.is_in_viewport&&(t.awbMouseData.rect=t.parentNode.getBoundingClientRect())}))}const j=t(200,M);setInterval(M,3e3),window.addEventListener("resize",j,{passive:!0}),window.addEventListener("orientationchange",j,{passive:!0}),window.addEventListener("load",j,{passive:!0}),document.addEventListener("scroll",j,{passive:!0});const C=t(200,((t,e,i)=>{!function(t,e,i){let a,n,o;S.forEach((r=>{a=r.awbMouseData,a&&"object"==typeof a&&(a.is_in_viewport||i&&z)&&(i?(n=-a.size*t,o=-a.size*e):(n=(a.rect.width-(t-a.rect.left))/a.rect.width,o=(a.rect.height-(e-a.rect.top))/a.rect.height,(n>1||n<0||o>1||o<0)&&(n=.5,o=.5),n=a.size*(n-.5)*2,o=a.size*(o-.5)*2),r.style.transform=`translateX(${n}px) translateY(${o}px) translateZ(0)`,i&&z||(r.style.transition=`transform ${i?2:a.speed}s  cubic-bezier(.22, .63, .6, .88)`))})),z=0}(t,e,i)})),N=new L((t=>{t.forEach((t=>{t.target.awbMouseData&&(t.target.awbMouseData.is_in_viewport=t.isIntersecting,t.isIntersecting&&j())}))}),{rootMargin:"50px"});function F(t){t&&t.length||(t=document.querySelectorAll(".nk-awb .nk-awb-inner img")),t&&t.length&&t.forEach((t=>{const e=window.getComputedStyle(t,null);if(e&&e.objectFit&&"cover"===e.objectFit){const e=parseInt(t.getAttribute("height"),10),i=parseInt(t.getAttribute("width"),10);if(e){let a=t.clientWidth;i/e>t.clientWidth/t.clientHeight&&(a=parseInt(t.clientHeight*i/e,10)),t.getAttribute("sizes")!==`${a}px`&&(t.setAttribute("sizes",`${a}px`),t.getAttribute("data-sizes")&&t.setAttribute("data-sizes",`${a}px`),t.getAttribute("data-lazy-sizes")&&t.setAttribute("data-lazy-sizes",`${a}px`))}}}))}a("init",(t=>{!function(t){if(t.classList.contains("nk-awb-mouse-parallax")||!t.getAttribute("data-awb-mouse-parallax-size"))return;const e=t.querySelector(":scope > .nk-awb-inner"),i=parseFloat(t.getAttribute("data-awb-mouse-parallax-size"))||30,a=parseFloat(t.getAttribute("data-awb-mouse-parallax-speed"))||1e4;t.classList.add("nk-awb-mouse-parallax"),e.awbMouseData={is_in_viewport:0,rect:t.getBoundingClientRect(),size:i,speed:a/1e3},e.style.left=-i+"px",e.style.right=-i+"px",e.style.top=-i+"px",e.style.bottom=-i+"px",N.observe(e),S.push(e),1===S.length&&(_&&window.DeviceOrientationEvent?window.addEventListener("deviceorientation",(t=>{C(t.gamma/90,t.beta/180,!0)}),{passive:!0}):window.addEventListener("mousemove",(t=>{C(t.clientX,t.clientY)}),{passive:!0}))}(t.target)}));const B=(500,t(500,F,{debounceMode:!1!==(void 0!==(W={}.atBegin)&&W)}));var W;a("before-init",(t=>{F(t.target.querySelectorAll(".nk-awb-inner img"))})),window.addEventListener("resize",B,{passive:!0}),window.addEventListener("orientationchange",B,{passive:!0}),window.addEventListener("load",B,{passive:!0});const $=!!document.querySelector("#twentytwenty-style-css, #twenty-twenty-style-css, #twenty-twenty-one-style-css");a("before-jarallax-init",(t=>{$&&function(t,e){const i=t.querySelector(":scope > .nk-awb-inner"),a=e.onInit;e.onInit=function(){Array.from(i.children).forEach((t=>{t.classList.add("intrinsic-ignore")})),a&&a()}}(t.target,t.detail)}));const{jarallax:I}=window,{isMobile:P,disableParallax:R,disableVideo:T}=w();a("init",(t=>{!function(t){if(void 0===I)return;const i=t.getAttribute("data-awb-type");if("color"===i)return;const a=t.querySelector(".jarallax-img"),n=t.getAttribute("data-awb-image-background-size"),o=t.getAttribute("data-awb-image-background-position");let r=!1,s=0,l=0,d=0,c=!0,g=!0,u=!1,b=t.getAttribute("data-awb-parallax"),w=t.getAttribute("data-awb-parallax-speed"),p="true"===t.getAttribute("data-awb-parallax-mobile")||"1"===t.getAttribute("data-awb-parallax-mobile");if("yt_vm_video"!==i&&"video"!==i||(r=t.getAttribute("data-awb-video"),s=parseFloat(t.getAttribute("data-awb-video-start-time"))||0,l=parseFloat(t.getAttribute("data-awb-video-end-time"))||0,d=parseFloat(t.getAttribute("data-awb-video-volume"))||0,c="false"!==t.getAttribute("data-awb-video-loop"),g="true"===t.getAttribute("data-awb-video-always-play"),u="1"===t.getAttribute("data-awb-video-mobile")||"true"===t.getAttribute("data-awb-video-mobile"),!r||b||w||(b="scroll",w=1,p=u)),!b&&!r){const e=t.getAttribute("data-awb-image-background-size")||"cover",i=t.getAttribute("data-awb-image-background-position")||"50% 50%";return void(a&&(a.style.objectFit=e,a.style.objectPosition=i))}const f={type:b,speed:w,disableParallax(){return R||!p&&P},disableVideo(){return T||!u&&P},imgSize:n||"cover",imgPosition:o||"50% 50%"};"pattern"===n&&(f.imgSize="auto",f.imgRepeat="repeat"),r&&(f.speed=b?w:1,f.videoSrc=r,f.videoStartTime=s,f.videoEndTime=l,f.videoVolume=d,f.videoLoop=c,f.videoPlayOnlyVisible=!g);const m=t.querySelector(":scope > .nk-awb-inner"),h=m.querySelector("picture .jarallax-img");h&&(h.classList.remove("jarallax-img"),h.closest("picture").classList.add("jarallax-img")),e(t,"before-jarallax-init",f),I(m,f),e(t,"after-jarallax-init",f)}(t.target)}));const q=w();q.selector=".nk-awb .nk-awb-wrap:not(.nk-awb-rendered)",q.events={on:a,trigger:e},q.init=function(t){const i=document.querySelectorAll(t||q.selector);i&&i.length&&i.forEach((function(t){e(t,"before-init"),t.classList.add("nk-awb-rendered"),e(t,"init"),e(t,"after-init")}))},q.initThrottled=t(200,(()=>{q.init()})),q.init(),new window.MutationObserver((t=>{if(!t||!t.length)return;let e=!1;t.forEach((t=>{let{addedNodes:i}=t;!e&&i&&i.length&&i.forEach((t=>{!e&&t.tagName&&(t.classList.contains("nk-awb")||t.classList.contains("nk-awb-after-vc_row")||t.classList.contains("nk-awb-after-vc_column")||t.firstElementChild&&t.querySelector(".nk-awb, .nk-awb-after-vc_row, .nk-awb-after-vc_column"))&&(e=!0)}))})),e&&q.initThrottled()})).observe(document.documentElement,{childList:!0,subtree:!0}),window.AWB=q,e(document,"ready"),window.nkAwbInit=function(){console.warn('You are using the "nkAwbInit()" function, which is deprecated since v1.11.1. Please, use "AWB.init()" instead.'),window.AWB.init()}}()}();
/*! content-views 07-2024 */
/*!
 * Bootstrap v3.4.1 (http://getbootstrap.com)
 * Copyright 2011-2019 Twitter, Inc.
 * Licensed under the MIT license
 */
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.cvslide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".pt-cv-carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.4.1",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("pt-cv-slide")?(f.addClass(b),"object"==typeof f&&f.length&&f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}},a.fn.cvcarousel=b,a.fn.cvcarousel.Constructor=c;var d=function(c){var d=a(this),e=d.attr("href");e&&(e=e.replace(/.*(?=#[^\s]+$)/,""));var f=d.attr("data-target")||e,g=a(document).find(f);if(g.hasClass("pt-cv-carousel")){var h=a.extend({},g.data(),d.data()),i=d.attr("data-cvslide-to");i&&(h.interval=!1),b.call(g,h),i&&g.data("bs.carousel").to(i),c.preventDefault()}};a(document).ready(function(){a(".pt-cv-wrapper").on("click.bs.carousel.data-api","[data-cvslide]",d).on("click.bs.carousel.data-api","[data-cvslide-to]",d)}),a(window).on("load",function(){a('[data-ride="cvcarousel"]',".pt-cv-wrapper").each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(document).find(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="cvcollapse"][href="#'+b.id+'"],[data-toggle="cvcollapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.4.1",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){!window.cv_collapse_ignore_others&&e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(document).find(this.options.parent).find('[data-toggle="cvcollapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)},a.fn.cvcollapse=c,a.fn.cvcollapse.Constructor=d,a(document).ready(function(){a(".pt-cv-wrapper").on("click.bs.collapse.data-api",'[data-toggle="cvcollapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})})}(jQuery),+function(a){function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d="#"!==c?a(document).find(c):null;return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(d).remove(),a(e).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}var d=".dropdown-backdrop",e='[data-toggle="dropdown"]',f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.VERSION="3.4.1",f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},f.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var f=b(d),g=f.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&f.find(e).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=f.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}},a(document).ready(function(){a(".pt-cv-wrapper").on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",e,f.prototype.toggle).on("keydown.bs.dropdown.data-api",e,f.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",f.prototype.keydown)})}(jQuery),+function(a){function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.4.1",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(document).find(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).ready(function(){a(".pt-cv-wrapper").on("click.bs.tab.data-api",'[data-toggle="tab"]',d).on("click.bs.tab.data-api",'[data-toggle="pill"]',d)})}(jQuery),
/*!
 * Bootstrap paginator v0.5
 * Copyright 2013 Yun Lai <lyonlai1984@gmail.com>
 * Licensed http://www.apache.org/licenses/LICENSE-2.0
 */
function(a){var b=function(a,b){this.init(a,b)},c=null;b.prototype={init:function(b,c){this.$element=a(b);{var d=c&&c.bootstrapMajorVersion?c.bootstrapMajorVersion:a.fn.bootstrapPaginator.defaults.bootstrapMajorVersion;this.$element.attr("id")}if(2===d&&!this.$element.is("div"))throw"in Bootstrap version 2 the pagination must be a div element. Or if you are using Bootstrap pagination 3. Please specify it in bootstrapMajorVersion in the option";if(d>2&&!this.$element.is("ul"))throw"in Bootstrap version 3 the pagination root item must be an ul element.";this.currentPage=1,this.lastPage=1,this.setOptions(c),this.initialized=!0},setOptions:function(b){this.options=a.extend({},this.options||a.fn.bootstrapPaginator.defaults,b),this.totalPages=parseInt(this.options.totalPages,10),this.numberOfPages=parseInt(this.options.numberOfPages,10),b&&"undefined"!=typeof b.currentPage&&this.setCurrentPage(b.currentPage),this.listen(),this.render(),this.initialized||this.lastPage===this.currentPage||this.$element.trigger("page-changed",[this.lastPage,this.currentPage])},listen:function(){this.$element.off("page-clicked"),this.$element.off("page-changed"),"function"==typeof this.options.onPageClicked&&this.$element.on("page-clicked",this.options.onPageClicked),"function"==typeof this.options.onPageChanged&&this.$element.on("page-changed",this.options.onPageChanged),this.$element.on("page-clicked",this.onPageClicked)},destroy:function(){this.$element.off("page-clicked"),this.$element.off("page-changed"),this.$element.removeData("bootstrapPaginator"),this.$element.empty()},show:function(a){this.setCurrentPage(a),this.render(),this.lastPage!==this.currentPage&&this.$element.trigger("page-changed",[this.lastPage,this.currentPage])},showNext:function(){var a=this.getPages();a.next&&this.show(a.next)},showPrevious:function(){var a=this.getPages();a.prev&&this.show(a.prev)},showFirst:function(){var a=this.getPages();a.first&&this.show(a.first)},showLast:function(){var a=this.getPages();a.last&&this.show(a.last)},onPageItemClicked:function(a){var b=a.data.type,c=a.data.page;this.$element.trigger("page-clicked",[a,b,c])},onPageClicked:function(b,c,d,e){var f=a(b.currentTarget);switch(d){case"first":f.bootstrapPaginator("showFirst");break;case"prev":f.bootstrapPaginator("showPrevious");break;case"next":f.bootstrapPaginator("showNext");break;case"last":f.bootstrapPaginator("showLast");break;case"page":f.bootstrapPaginator("show",e)}},render:function(){var b=this.getValueFromOption(this.options.containerClass,this.$element),c=this.options.size||"normal",d=this.options.alignment||"left",e=this.getPages(),f=2===this.options.bootstrapMajorVersion?a("<ul></ul>"):this.$element,g=2===this.options.bootstrapMajorVersion?this.getValueFromOption(this.options.listContainerClass,f):null,h=null,i=null,j=null,k=null,l=null,m=0;switch(c.toLowerCase()){case"large":case"small":case"mini":this.$element.addClass(a.fn.bootstrapPaginator.sizeArray[this.options.bootstrapMajorVersion][c.toLowerCase()])}if(2===this.options.bootstrapMajorVersion)switch(d.toLowerCase()){case"center":this.$element.addClass("pagination-centered");break;case"right":this.$element.addClass("pagination-right")}for(this.$element.addClass(b),this.$element.empty(),2===this.options.bootstrapMajorVersion&&(this.$element.append(f),f.addClass(g)),this.pageRef=[],e.first&&(h=this.buildPageItem("first",e.first),h&&f.append(h)),e.prev&&(i=this.buildPageItem("prev",e.prev),i&&f.append(i)),m=0;m<e.length;m+=1)l=this.buildPageItem("page",e[m]),l&&f.append(l);e.next&&(j=this.buildPageItem("next",e.next),j&&f.append(j)),e.last&&(k=this.buildPageItem("last",e.last),k&&f.append(k))},buildPageItem:function(b,c){var d=a("<li></li>"),e=a("<a></a>"),f="",g="",h=this.options.itemContainerClass(b,c,this.currentPage),i=this.getValueFromOption(this.options.itemContentClass,b,c,this.currentPage),j=null;switch(b){case"first":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage);break;case"last":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage);break;case"prev":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage);break;case"next":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage);break;case"page":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage)}return d.addClass(h).append(e),e.addClass(i).html(f).on("click",null,{type:b,page:c},a.proxy(this.onPageItemClicked,this)),this.options.pageUrl&&e.attr("href",this.getValueFromOption(this.options.pageUrl,b,c,this.currentPage)),this.options.useBootstrapTooltip?(j=a.extend({},this.options.bootstrapTooltipOptions,{title:g}),e.tooltip(j)):e.attr("title",g),d},setCurrentPage:function(a){(a>this.totalPages||1>a)&&(a=this.totalPages),this.lastPage=this.currentPage,this.currentPage=parseInt(a,10)},getPages:function(){var a=this.totalPages,b=this.currentPage-parseInt(this.numberOfPages/2),b=b+this.numberOfPages>a?a-this.numberOfPages+1:b,c=[],d=0,e=0;for(b=1>b?1:b,d=b,e=0;e<this.numberOfPages&&a>=d;d+=1,e+=1)c.push(d);return c.first=1,c.prev=this.currentPage>1?this.currentPage-1:1,c.next=this.currentPage<a?this.currentPage+1:a,c.last=a,c.current=this.currentPage,c.total=a,c.numberOfPages=this.options.numberOfPages,c},getValueFromOption:function(a){var b=null,c=Array.prototype.slice.call(arguments,1);return b="function"==typeof a?a.apply(this,c):a}},c=a.fn.bootstrapPaginator,a.fn.bootstrapPaginator=function(c){var d=arguments,e=null;return a(this).each(function(f,g){var h=a(g),i=h.data("bootstrapPaginator"),j="object"!=typeof c?null:c;if(!i)return i=new b(this,j),h=a(i.$element),void h.data("bootstrapPaginator",i);if("string"==typeof c){if(!i[c])throw"Method "+c+" does not exist";e=i[c].apply(i,Array.prototype.slice.call(d,1))}else e=i.setOptions(c)}),e},a.fn.bootstrapPaginator.sizeArray={2:{large:"pagination-large",small:"pagination-small",mini:"pagination-mini"},3:{large:"pagination-lg",small:"pagination-sm",mini:""}},a.fn.bootstrapPaginator.defaults={containerClass:"",size:"normal",alignment:"left",bootstrapMajorVersion:2,listContainerClass:"",itemContainerClass:function(a,b,c){return b===c?"active":""},itemContentClass:function(){return""},currentPage:1,numberOfPages:5,totalPages:1,pageUrl:function(){return null},onPageClicked:null,onPageChanged:null,useBootstrapTooltip:!1,shouldShowPage:function(a,b,c){var d=!0;switch(a){case"first":d=1!==c;break;case"prev":d=1!==c;break;case"next":d=c!==this.totalPages;break;case"last":d=c!==this.totalPages;break;case"page":d=!0}return d},itemTexts:function(a,b){switch(a){case"first":return PT_CV_PAGINATION.first;case"prev":return PT_CV_PAGINATION.prev;case"next":return PT_CV_PAGINATION.next;case"last":return PT_CV_PAGINATION.last;case"page":return b}},tooltipTitles:function(a,b,c){switch(a){case"first":return PT_CV_PAGINATION.goto_first;case"prev":return PT_CV_PAGINATION.goto_prev;case"next":return PT_CV_PAGINATION.goto_next;case"last":return PT_CV_PAGINATION.goto_last;case"page":return b===c?PT_CV_PAGINATION.current_page+" "+b:PT_CV_PAGINATION.goto_page+" "+b}},bootstrapTooltipOptions:{animation:!0,html:!0,placement:"top",selector:!1,title:"",container:!1}},a.fn.bootstrapPaginator.Constructor=b}(window.jQuery),function(a){"use strict";a.PT_CV_Public=a.PT_CV_Public||{},PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix;a.PT_CV_Public=function(b){this.options=a.extend({},b),"undefined"==typeof this.options.skip&&(this.pagination(),this.some_fixes())},a.PT_CV_Public.prototype={pagination:function(){var c=this;a("."+b+"pagination."+b+"ajax").each(function(){var b=a(this),d=a(this).attr("data-totalpages"),e=a(this).attr("data-currentpage");a(this).bootstrapPaginator({bootstrapMajorVersion:3,currentPage:e?parseInt(e):1,totalPages:d?parseInt(d):1,numberOfPages:PT_CV_PUBLIC.page_to_show,shouldShowPage:function(a,b,c){var d=null;if("undefined"!=typeof this&&"function"==typeof this.getPages){var e=this.getPages(),f=Array.isArray(e)?e.slice(0,parseInt(this.numberOfPages)):[];f.includes(e.first)&&"first"===a&&(d=!1),f.includes(e.last)&&"last"===a&&(d=!1)}if(null!==d)return d;var g=!0;switch(a){case"first":g=1!==c;break;case"prev":g=1!==c;break;case"next":g=c!==this.totalPages;break;case"last":g=c!==this.totalPages;break;case"page":g=!0}return g},itemContainerClass:function(a,b,c){var d="cv-pageitem-"+("page"===a?"number":a);return d+" "+(b===c?"active":"")},onPageClicked:function(a,d,e,f){c._setup_pagination(b,f,function(){PT_CV_PUBLIC.paging=0})}})})},_setup_pagination:function(a,c,d){var e=this;if(PT_CV_PUBLIC.paging=PT_CV_PUBLIC.paging||0,!PT_CV_PUBLIC.paging&&!a.data("disabled")){PT_CV_PUBLIC.paging=1;var f=a.next("."+b+"spinner"),g=a;a.parent("."+b+"pagination-wrapper").length&&(g=a.parent("."+b+"pagination-wrapper"));var h=g.closest("."+b+"wrapper").children("."+b+"view");if(h.hasClass(b+"timeline")&&(h=h.children(".tl-items").first()),g.find("."+b+"more").length>0){var i=h.children("."+b+"page").first();i.length>0&&(h=i)}e._get_page(a,c,f,h,d)}},_get_page:function(c,d,e,f,g){var h=this;d=parseInt(d);var i=h._active_page(d,f,g);if(i)return g&&"function"==typeof g&&g(),void a("body").trigger(b+"pagination-finished-simple");a("body").trigger(b+"before-pagination");var j={action:"pagination_request",sid:c.attr("data-sid"),unid:c.attr("data-unid"),iselementor:c.attr("data-iselementor"),isblock:c.attr("data-isblock"),postid:c.attr("data-postid"),page:d,lang:PT_CV_PUBLIC.lang,ajax_nonce:PT_CV_PUBLIC._nonce,custom_data:window.cvdata};a.ajax({type:"POST",url:PT_CV_PUBLIC.ajaxurl,data:j,beforeSend:function(){e.addClass("active")}}).done(function(c){e.removeClass("active"),c.indexOf(b+"no-post")<0&&f.append(c),h._active_page(d,f,g),g&&"function"==typeof g&&g(),a("body").trigger(b+"pagination-finished",[f,a(c)])})},_active_page:function(c,d){var e=!1,f='[data-id="'+b+"page-"+c+'"]';return d.children(f).length&&(e=!0,d.children().hide(),d.children(f).show(),this._update_url(c),window.cvp_pagination_no_scroll||d.hasClass("paging-noscroll")||a("html, body").animate({scrollTop:d.children(f).offset().top-160},1e3)),e},_get_paginated_url:function(a){return PT_CV_PAGINATION.links&&PT_CV_PAGINATION.links.page_n&&PT_CV_PAGINATION.links.page_n.replace("_CVNUMBER_",parseInt(a))},_update_url:function(a){var b=this;if(!PT_CV_PUBLIC.is_admin&&!window.cv_pagination_no_update_url){var c=!1;c=a>1?b._get_paginated_url(a):PT_CV_PAGINATION.links&&PT_CV_PAGINATION.links.page_1,c&&history.replaceState(null,null,c)}},some_fixes:function(){"function"==typeof a.CVP_LazyLoad&&"function"==typeof cvp_imagesLoaded&&a(window).cvp_imagesLoaded(function(){a(window).trigger("load")})}},a(function(){new a.PT_CV_Public})}(jQuery);
/*! content-views-pro 01-2024 */
/*!
 Colorbox v1.5.4
 (c) 2014 Jack Moore - http://www.jacklmoore.com/colorbox
 MIT License
 */
!function(a,b,c){function d(c,d,e){var f=b.createElement(c);return d&&(f.id=_+d),e&&(f.style.cssText=e),a(f)}function e(){return c.innerHeight?c.innerHeight:a(c).height()}function f(b,c){c!==Object(c)&&(c={}),this.cache={},this.el=b,this.value=function(b){var d;return void 0===this.cache[b]&&(d=a(this.el).attr("data-cvpbox-"+b),void 0!==d?this.cache[b]=d:void 0!==c[b]?this.cache[b]=c[b]:void 0!==Z[b]&&(this.cache[b]=Z[b])),this.cache[b]},this.get=function(a){var b=this.value(a);return"function"==typeof b?b.call(this.el,this):b}}function g(a){var b=A.length,c=(R+a)%b;return 0>c?b+c:c}function h(a,b){return Math.round((/%/.test(a)?("x"===b?B.width():e())/100:1)*parseInt(a,10))}function i(a,b){return a.get("photo")||a.get("photoRegex").test(b)}function j(a,b){return a.get("retinaUrl")&&c.devicePixelRatio>1?b.replace(a.get("photoRegex"),a.get("retinaSuffix")):b}function k(a){"contains"in t[0]&&!t[0].contains(a.target)&&a.target!==s[0]&&(a.stopPropagation(),t.trigger("focus"))}function l(a){l.str!==a&&(t.add(s).removeClass(l.str).addClass(a),l.str=a)}function m(){R=0,rel&&"nofollow"!==rel?(A=a("."+ab).filter(function(){var b=a.data(this,$),c=new f(this,b);return c.get("rel")===rel}),R=A.index(M.el),-1===R&&(A=A.add(M.el),R=A.length-1)):A=a(M.el)}function n(c){a(b).trigger(c),hb.triggerHandler(c)}function o(c){var e;V||(e=a(c).data("cvpcolorbox"),M=new f(c,e),rel=M.get("rel"),m(),T||(T=U=!0,l(M.get("className")),t.css({visibility:"hidden",display:"block"}),C=d(ib,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),v.css({width:"",height:""}).append(C),N=w.height()+z.height()+v.outerHeight(!0)-v.height(),O=x.width()+y.width()+v.outerWidth(!0)-v.width(),P=C.outerHeight(!0),Q=C.outerWidth(!0),M.w=h(M.get("initialWidth"),"x"),M.h=h(M.get("initialHeight"),"y"),C.css({width:"",height:M.h}),X.position(),n(bb),M.get("onOpen"),L.add(F).hide(),t.trigger("focus"),M.get("trapFocus")&&b.addEventListener&&(b.addEventListener("focus",k,!0),hb.one(fb,function(){b.removeEventListener("focus",k,!0)})),M.get("returnFocus")&&hb.one(fb,function(){a(M.el).trigger("focus")})),s.css({opacity:parseFloat(M.get("opacity")),cursor:M.get("overlayClose")?"pointer":"auto",visibility:"visible"}).show(),M.get("closeButton")?K.html(M.get("close")).appendTo(v):K.appendTo("<div/>"),r())}function p(){!t&&b.body&&(Y=!1,B=a(c),t=d(ib).attr({id:$,"class":a.support.opacity===!1?_+"IE":"",role:"dialog",tabindex:"-1"}).hide(),s=d(ib,"Overlay").hide(),E=a([d(ib,"LoadingOverlay")[0],d(ib,"LoadingGraphic")[0]]),u=d(ib,"Wrapper"),v=d(ib,"Content").append(F=d(ib,"Title"),G=d(ib,"Current"),J=a('<button type="button">previous</button>').attr({id:_+"Previous"}),I=a('<button type="button">next</button>').attr({id:_+"Next"}),H=a('<button type="button">slideshow</button>').attr({id:_+"Slideshow"}),E),K=a('<button type="button">close</button>').attr({id:_+"Close"}),u.append(d(ib).append(d(ib,"TopLeft"),w=d(ib,"TopCenter"),d(ib,"TopRight")),d(ib,!1,"clear:left").append(x=d(ib,"MiddleLeft"),v,y=d(ib,"MiddleRight")),d(ib,!1,"clear:left").append(d(ib,"BottomLeft"),z=d(ib,"BottomCenter"),d(ib,"BottomRight"))).find("div div").css({"float":"left"}),D=d(ib,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),L=I.add(J).add(G).add(H),a(b.body).append(s,t.append(u,D)))}function q(){function c(a){a.which>1||a.shiftKey||a.altKey||a.metaKey||a.ctrlKey||(a.preventDefault(),o(this))}return t?(Y||(Y=!0,I.on("click",function(){X.next()}),J.on("click",function(){X.prev()}),K.on("click",function(){X.close()}),s.on("click",function(){M.get("overlayClose")&&X.close()}),a(b).on("keydown."+_,function(a){var b=a.keyCode;T&&M.get("escKey")&&27===b&&(a.preventDefault(),X.close()),T&&M.get("arrowKey")&&A[1]&&!a.altKey&&(37===b?(a.preventDefault(),J.trigger("click")):39===b&&(a.preventDefault(),I.trigger("click")))}),"function"==typeof a.fn.on?a(b).on("click."+_,"."+ab,c):a("."+ab).live("click."+_,c)),!0):!1}function r(){var e,f,g,k=X.prep,l=++jb;U=!0,S=!1,n(gb),n(cb),M.get("onLoad"),M.h=M.get("height")?h(M.get("height"),"y")-P-N:M.get("innerHeight")&&h(M.get("innerHeight"),"y"),M.w=M.get("width")?h(M.get("width"),"x")-Q-O:M.get("innerWidth")&&h(M.get("innerWidth"),"x"),M.mw=M.w,M.mh=M.h,M.get("maxWidth")&&(M.mw=h(M.get("maxWidth"),"x")-Q-O,M.mw=M.w&&M.w<M.mw?M.w:M.mw),M.get("maxHeight")&&(M.mh=h(M.get("maxHeight"),"y")-P-N,M.mh=M.h&&M.h<M.mh?M.h:M.mh),e=M.get("href"),W=setTimeout(function(){E.show()},100),M.get("inline")?(g=d(ib).hide().insertBefore(a(e)[0]),hb.one(gb,function(){g.replaceWith(C.children())}),k(a(e))):M.get("iframe")?k(" "):M.get("html")?k(M.get("html")):i(M,e)?(e=j(M,e),S=b.createElement("img"),a(S).addClass(_+"Photo").on("error",function(){k(d(ib,"Error").html(M.get("imgError")))}).one("load",function(){var b;l===jb&&(a.each(["alt","longdesc","aria-describedby"],function(b,c){var d=a(M.el).attr(c)||a(M.el).attr("data-"+c);d&&S.setAttribute(c,d)}),M.get("retinaImage")&&c.devicePixelRatio>1&&(S.height=S.height/c.devicePixelRatio,S.width=S.width/c.devicePixelRatio),M.get("scalePhotos")&&(f=function(){S.height-=S.height*b,S.width-=S.width*b},M.mw&&S.width>M.mw&&(b=(S.width-M.mw)/S.width,f()),M.mh&&S.height>M.mh&&(b=(S.height-M.mh)/S.height,f())),M.h&&(S.style.marginTop=Math.max(M.mh-S.height,0)/2+"px"),A[1]&&(M.get("loop")||A[R+1])&&(S.style.cursor="pointer",S.onclick=function(){X.next()}),S.style.width=S.width+"px",S.style.height=S.height+"px",setTimeout(function(){k(S)},1))}),setTimeout(function(){S.src=e},1)):e&&D.load(e,M.get("data"),function(b,c){l===jb&&k("error"===c?d(ib,"Error").html(M.get("xhrError")):a(this).contents())})}var s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"{current} / {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return a(this).attr("href")},title:function(){return this.title}},$="cvpcolorbox",_="cvpbox",ab=_+"Element",bb=_+"_open",cb=_+"_load",db=_+"_complete",eb=_+"_cleanup",fb=_+"_closed",gb=_+"_purge",hb=a("<a/>"),ib="div",jb=0,kb={},lb=function(){function a(){clearTimeout(g)}function b(){(M.get("loop")||A[R+1])&&(a(),g=setTimeout(X.next,M.get("slideshowSpeed")))}function c(){H.html(M.get("slideshowStop")).off(i).one(i,d),hb.on(db,b).on(cb,a),t.removeClass(h+"off").addClass(h+"on")}function d(){a(),hb.off(db,b).off(cb,a),H.html(M.get("slideshowStart")).off(i).one(i,function(){X.next(),c()}),t.removeClass(h+"on").addClass(h+"off")}function e(){f=!1,H.hide(),a(),hb.off(db,b).off(cb,a),t.removeClass(h+"off "+h+"on")}var f,g,h=_+"Slideshow_",i="click."+_;return function(){f?M.get("slideshow")||(hb.off(eb,e),e()):M.get("slideshow")&&A[1]&&(f=!0,hb.one(eb,e),M.get("slideshowAuto")?c():d(),H.show())}}();a.cvpcolorbox||(a(p),X=a.fn[$]=a[$]=function(b,c){var d,e=this;if(b=b||{},"function"==typeof e)e=a("<a/>"),b.open=!0;else if(!e[0])return e;return e[0]?(p(),q()&&(c&&(b.onComplete=c),e.each(function(){var c=a.data(this,$)||{};a.data(this,$,a.extend(c,b))}).addClass(ab),d=new f(e[0],b),d.get("open")&&o(e[0])),e):e},X.position=function(b,c){function d(){w[0].style.width=z[0].style.width=v[0].style.width=parseInt(t[0].style.width,10)-O+"px",v[0].style.height=x[0].style.height=y[0].style.height=parseInt(t[0].style.height,10)-N+"px"}var f,g,i,j=0,k=0,l=t.offset();if(B.off("resize."+_),t.css({top:-9e4,left:-9e4}),g=B.scrollTop(),i=B.scrollLeft(),M.get("fixed")?(l.top-=g,l.left-=i,t.css({position:"fixed"})):(j=g,k=i,t.css({position:"absolute"})),k+=M.get("right")!==!1?Math.max(B.width()-M.w-Q-O-h(M.get("right"),"x"),0):M.get("left")!==!1?h(M.get("left"),"x"):Math.round(Math.max(B.width()-M.w-Q-O,0)/2),j+=M.get("bottom")!==!1?Math.max(e()-M.h-P-N-h(M.get("bottom"),"y"),0):M.get("top")!==!1?h(M.get("top"),"y"):Math.round(Math.max(e()-M.h-P-N,0)/2),t.css({top:l.top,left:l.left,visibility:"visible"}),u[0].style.width=u[0].style.height="9999px",f={width:M.w+Q+O,height:M.h+P+N,top:j,left:k},b){var m=0;a.each(f,function(a){return f[a]!==kb[a]?void(m=b):void 0}),b=m}kb=f,b||t.css(f),t.dequeue().animate(f,{duration:b||0,complete:function(){d(),U=!1,u[0].style.width=M.w+Q+O+"px",u[0].style.height=M.h+P+N+"px",M.get("reposition")&&setTimeout(function(){B.on("resize."+_,X.position)},1),c&&c()},step:d})},X.resize=function(a){var b;T&&(a=a||{},a.width&&(M.w=h(a.width,"x")-Q-O),a.innerWidth&&(M.w=h(a.innerWidth,"x")),C.css({width:M.w}),a.height&&(M.h=h(a.height,"y")-P-N),a.innerHeight&&(M.h=h(a.innerHeight,"y")),a.innerHeight||a.height||(b=C.scrollTop(),C.css({height:"auto"}),M.h=C.height()),C.css({height:M.h}),b&&C.scrollTop(b),X.position("none"===M.get("transition")?0:M.get("speed")))},X.prep=function(c){function e(){return M.w=M.w||C.width(),M.w=M.mw&&M.mw<M.w?M.mw:M.w,M.w}function h(){return M.h=M.h||C.height(),M.h=M.mh&&M.mh<M.h?M.mh:M.h,M.h}if(T){var k,m="none"===M.get("transition")?0:M.get("speed");C.remove(),C=d(ib,"LoadedContent").append(c),C.hide().appendTo(D.show()).css({width:e(),overflow:M.get("scrolling")?"auto":"hidden"}).css({height:h()}).prependTo(v),D.hide(),a(S).css({"float":"none"}),l(M.get("className")),k=function(){function c(){a.support.opacity===!1&&t[0].style.removeAttribute("filter")}var d,e,h=A.length;T&&(e=function(){clearTimeout(W),E.hide(),n(db),M.get("onComplete")},F.html(M.get("title")).show(),C.show(),h>1?("string"==typeof M.get("current")&&G.html(M.get("current").replace("{current}",R+1).replace("{total}",h)).show(),I[M.get("loop")||h-1>R?"show":"hide"]().html(M.get("next")),J[M.get("loop")||R?"show":"hide"]().html(M.get("previous")),lb(),M.get("preloading")&&a.each([g(-1),g(1)],function(){var c,d=A[this],e=new f(d,a.data(d,$)),g=e.get("href");g&&i(e,g)&&(g=j(e,g),c=b.createElement("img"),c.src=g)})):L.hide(),M.get("iframe")?(d=b.createElement("iframe"),"frameBorder"in d&&(d.frameBorder=0),"allowTransparency"in d&&(d.allowTransparency="true"),M.get("scrolling")||(d.scrolling="no"),a(d).attr({src:M.get("href"),name:(new Date).getTime(),id:_+"Iframe","class":_+"Iframe",allowFullScreen:!0}).one("load",e).appendTo(C),hb.one(gb,function(){d.src="//about:blank"}),M.get("fastIframe")&&a(d).trigger("load")):e(),"fade"===M.get("transition")?t.fadeTo(m,1,c):c())},"fade"===M.get("transition")?t.fadeTo(m,0,function(){X.position(0,k)}):X.position(m,k)}},X.relaunch=function(){R=g(0),o(A[R])},X.next=function(){!U&&A[1]&&(M.get("loop")||A[R+1])&&(R=g(1),o(A[R]))},X.prev=function(){!U&&A[1]&&(M.get("loop")||R)&&(R=g(-1),o(A[R]))},X.close=function(){T&&!V&&(V=!0,T=!1,n(eb),M.get("onCleanup"),B.off("."+_),s.fadeTo(M.get("fadeOut")||0,0),t.stop().fadeTo(M.get("fadeOut")||0,0,function(){t.add(s).css({opacity:1,cursor:"auto"}).hide(),n(gb),C.remove(),setTimeout(function(){V=!1,n(fb),M.get("onClosed")},1)}))},X.remove=function(){t&&(t.stop(),a.cvpcolorbox.close(),t.stop().remove(),s.remove(),V=!1,t=null,a("."+ab).removeData($).removeClass(ab),a(b).off("click."+_))},X.element=function(){return a(M.el)},X.settings=Z)}(jQuery,document,window),/*! jQuery UI - v1.13.1 - 2022-03-17
 * http://jqueryui.com
 * Includes: keycode.js, widgets/datepicker.js
 * Copyright jQuery Foundation and other contributors; Licensed MIT */
function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(a){for(var b,c;a.length&&a[0]!==document;){if(b=a.css("position"),("absolute"===b||"relative"===b||"fixed"===b)&&(c=parseInt(a.css("zIndex"),10),!isNaN(c)&&0!==c))return c;a=a.parent()}return 0}function c(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="jqui-datepicker-div",this._inlineClass="jqui-datepicker-inline",this._appendClass="jqui-datepicker-append",this._triggerClass="jqui-datepicker-trigger",this._dialogClass="jqui-datepicker-dialog",this._disableClass="jqui-datepicker-disabled",this._unselectableClass="jqui-datepicker-unselectable",this._currentClass="jqui-datepicker-current-day",this._dayOverClass="jqui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},a.extend(this._defaults,this.regional[""]),this.regional.en=a.extend(!0,{},this.regional[""]),this.regional["en-US"]=a.extend(!0,{},this.regional.en),this.dpDiv=d(a("<div id='"+this._mainDivId+"' class='jqui-datepicker jqui-widget jqui-widget-content jqui-helper-clearfix jqui-corner-all'></div>"))}function d(b){var c="button, .jqui-datepicker-prev, .jqui-datepicker-next, .jqui-datepicker-calendar td a";return b.on("mouseout",c,function(){a(this).removeClass("jqui-state-hover"),-1!==this.className.indexOf("jqui-datepicker-prev")&&a(this).removeClass("jqui-datepicker-prev-hover"),-1!==this.className.indexOf("jqui-datepicker-next")&&a(this).removeClass("jqui-datepicker-next-hover")}).on("mouseover",c,e)}function e(){a.cvp_datepicker._isDisabledDatepicker(g.inline?g.dpDiv.parent()[0]:g.input[0])||(a(this).parents(".jqui-datepicker-calendar").find("a").removeClass("jqui-state-hover"),a(this).addClass("jqui-state-hover"),-1!==this.className.indexOf("jqui-datepicker-prev")&&a(this).addClass("jqui-datepicker-prev-hover"),-1!==this.className.indexOf("jqui-datepicker-next")&&a(this).addClass("jqui-datepicker-next-hover"))}function f(b,c){a.extend(b,c);for(var d in c)null==c[d]&&(b[d]=c[d]);return b}a.ui=a.ui||{};a.ui.version="1.13.1",a.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};/*!
	 * jQuery UI Datepicker 1.13.1
	 * http://jqueryui.com
	 *
	 * Copyright jQuery Foundation and other contributors
	 * Released under the MIT license.
	 * http://jquery.org/license
	 */
a.extend(a.ui,{datepicker:{version:"1.13.1"}});var g;a.extend(c.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return f(this._defaults,a||{}),this},_attachDatepicker:function(b,c){var d,e,f;d=b.nodeName.toLowerCase(),e="div"===d||"span"===d,b.id||(this.uuid+=1,b.id="dp"+this.uuid),f=this._newInst(a(b),e),f.settings=a.extend({},c||{}),"input"===d?this._connectDatepicker(b,f):e&&this._inlineDatepicker(b,f)},_newInst:function(b,c){var e=b[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:e,input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:c?d(a("<div class='"+this._inlineClass+" jqui-datepicker jqui-widget jqui-widget-content jqui-helper-clearfix jqui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(b,c){var d=a(b);c.append=a([]),c.trigger=a([]),d.hasClass(this.markerClassName)||(this._attachments(d,c),d.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(c),a.data(b,"datepicker",c),c.settings.disabled&&this._disableDatepicker(b))},_attachments:function(b,c){var d,e,f,g=this._get(c,"appendText"),h=this._get(c,"isRTL");c.append&&c.append.remove(),g&&(c.append=a("<span>").addClass(this._appendClass).text(g),b[h?"before":"after"](c.append)),b.off("focus",this._showDatepicker),c.trigger&&c.trigger.remove(),d=this._get(c,"showOn"),("focus"===d||"both"===d)&&b.on("focus",this._showDatepicker),("button"===d||"both"===d)&&(e=this._get(c,"buttonText"),f=this._get(c,"buttonImage"),this._get(c,"buttonImageOnly")?c.trigger=a("<img>").addClass(this._triggerClass).attr({src:f,alt:e,title:e}):(c.trigger=a("<button type='button'>").addClass(this._triggerClass),f?c.trigger.html(a("<img>").attr({src:f,alt:e,title:e})):c.trigger.text(e)),b[h?"before":"after"](c.trigger),c.trigger.on("click",function(){return a.cvp_datepicker._datepickerShowing&&a.cvp_datepicker._lastInput===b[0]?a.cvp_datepicker._hideDatepicker():a.cvp_datepicker._datepickerShowing&&a.cvp_datepicker._lastInput!==b[0]?(a.cvp_datepicker._hideDatepicker(),a.cvp_datepicker._showDatepicker(b[0])):a.cvp_datepicker._showDatepicker(b[0]),!1}))},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,d,e,f=new Date(2009,11,20),g=this._get(a,"dateFormat");g.match(/[DM]/)&&(b=function(a){for(c=0,d=0,e=0;e<a.length;e++)a[e].length>c&&(c=a[e].length,d=e);return d},f.setMonth(b(this._get(a,g.match(/MM/)?"monthNames":"monthNamesShort"))),f.setDate(b(this._get(a,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())),a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(b,c){var d=a(b);d.hasClass(this.markerClassName)||(d.addClass(this.markerClassName).append(c.dpDiv),a.data(b,"datepicker",c),this._setDate(c,this._getDefaultDate(c),!0),this._updateDatepicker(c),this._updateAlternate(c),c.settings.disabled&&this._disableDatepicker(b),c.dpDiv.css("display","block"))},_dialogDatepicker:function(b,c,d,e,g){var h,i,j,k,l,m=this._dialogInst;return m||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=a("<input type='text' id='"+h+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),a("body").append(this._dialogInput),m=this._dialogInst=this._newInst(this._dialogInput,!1),m.settings={},a.data(this._dialogInput[0],"datepicker",m)),f(m.settings,e||{}),c=c&&c.constructor===Date?this._formatDate(m,c):c,this._dialogInput.val(c),this._pos=g?g.length?g:[g.pageX,g.pageY]:null,this._pos||(i=document.documentElement.clientWidth,j=document.documentElement.clientHeight,k=document.documentElement.scrollLeft||document.body.scrollLeft,l=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[i/2-100+k,j/2-150+l]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),m.settings.onSelect=d,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],"datepicker",m),this},_destroyDatepicker:function(b){var c,d=a(b),e=a.data(b,"datepicker");d.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),a.removeData(b,"datepicker"),"input"===c?(e.append.remove(),e.trigger.remove(),d.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===c||"span"===c)&&d.removeClass(this.markerClassName).empty(),g===e&&(g=null,this._curInst=null))},_enableDatepicker:function(b){var c,d,e=a(b),f=a.data(b,"datepicker");e.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),"input"===c?(b.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===c||"span"===c)&&(d=e.children("."+this._inlineClass),d.children().removeClass("jqui-state-disabled"),d.find("select.jqui-datepicker-month, select.jqui-datepicker-year").prop("disabled",!1)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}))},_disableDatepicker:function(b){var c,d,e=a(b),f=a.data(b,"datepicker");e.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),"input"===c?(b.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===c||"span"===c)&&(d=e.children("."+this._inlineClass),d.children().addClass("jqui-state-disabled"),d.find("select.jqui-datepicker-month, select.jqui-datepicker-year").prop("disabled",!0)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}),this._disabledInputs[this._disabledInputs.length]=b)},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]===a)return!0;return!1},_getInst:function(b){try{return a.data(b,"datepicker")}catch(c){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(b,c,d){var e,g,h,i,j=this._getInst(b);return 2===arguments.length&&"string"==typeof c?"defaults"===c?a.extend({},a.cvp_datepicker._defaults):j?"all"===c?a.extend({},j.settings):this._get(j,c):null:(e=c||{},"string"==typeof c&&(e={},e[c]=d),void(j&&(this._curInst===j&&this._hideDatepicker(),g=this._getDateDatepicker(b,!0),h=this._getMinMaxDate(j,"min"),i=this._getMinMaxDate(j,"max"),f(j.settings,e),null!==h&&void 0!==e.dateFormat&&void 0===e.minDate&&(j.settings.minDate=this._formatDate(j,h)),null!==i&&void 0!==e.dateFormat&&void 0===e.maxDate&&(j.settings.maxDate=this._formatDate(j,i)),"disabled"in e&&(e.disabled?this._disableDatepicker(b):this._enableDatepicker(b)),this._attachments(a(b),j),this._autoSize(j),this._setDate(j,g),this._updateAlternate(j),this._updateDatepicker(j))))},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){var b=this._getInst(a);b&&this._updateDatepicker(b)},_setDateDatepicker:function(a,b){var c=this._getInst(a);c&&(this._setDate(c,b),this._updateDatepicker(c),this._updateAlternate(c))},_getDateDatepicker:function(a,b){var c=this._getInst(a);return c&&!c.inline&&this._setDateFromField(c,b),c?this._getDate(c):null},_doKeyDown:function(b){var c,d,e,f=a.cvp_datepicker._getInst(b.target),g=!0,h=f.dpDiv.is(".jqui-datepicker-rtl");if(f._keyEvent=!0,a.cvp_datepicker._datepickerShowing)switch(b.keyCode){case 9:a.cvp_datepicker._hideDatepicker(),g=!1;break;case 13:return e=a("td."+a.cvp_datepicker._dayOverClass+":not(."+a.cvp_datepicker._currentClass+")",f.dpDiv),e[0]&&a.cvp_datepicker._selectDay(b.target,f.selectedMonth,f.selectedYear,e[0]),c=a.cvp_datepicker._get(f,"onSelect"),c?(d=a.cvp_datepicker._formatDate(f),c.apply(f.input?f.input[0]:null,[d,f])):a.cvp_datepicker._hideDatepicker(),!1;case 27:a.cvp_datepicker._hideDatepicker();break;case 33:a.cvp_datepicker._adjustDate(b.target,b.ctrlKey?-a.cvp_datepicker._get(f,"stepBigMonths"):-a.cvp_datepicker._get(f,"stepMonths"),"M");break;case 34:a.cvp_datepicker._adjustDate(b.target,b.ctrlKey?+a.cvp_datepicker._get(f,"stepBigMonths"):+a.cvp_datepicker._get(f,"stepMonths"),"M");break;case 35:(b.ctrlKey||b.metaKey)&&a.cvp_datepicker._clearDate(b.target),g=b.ctrlKey||b.metaKey;break;case 36:(b.ctrlKey||b.metaKey)&&a.cvp_datepicker._gotoToday(b.target),g=b.ctrlKey||b.metaKey;break;case 37:(b.ctrlKey||b.metaKey)&&a.cvp_datepicker._adjustDate(b.target,h?1:-1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.cvp_datepicker._adjustDate(b.target,b.ctrlKey?-a.cvp_datepicker._get(f,"stepBigMonths"):-a.cvp_datepicker._get(f,"stepMonths"),"M");break;case 38:(b.ctrlKey||b.metaKey)&&a.cvp_datepicker._adjustDate(b.target,-7,"D"),g=b.ctrlKey||b.metaKey;break;case 39:(b.ctrlKey||b.metaKey)&&a.cvp_datepicker._adjustDate(b.target,h?-1:1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.cvp_datepicker._adjustDate(b.target,b.ctrlKey?+a.cvp_datepicker._get(f,"stepBigMonths"):+a.cvp_datepicker._get(f,"stepMonths"),"M");break;case 40:(b.ctrlKey||b.metaKey)&&a.cvp_datepicker._adjustDate(b.target,7,"D"),g=b.ctrlKey||b.metaKey;break;default:g=!1}else 36===b.keyCode&&b.ctrlKey?a.cvp_datepicker._showDatepicker(this):g=!1;g&&(b.preventDefault(),b.stopPropagation())},_doKeyPress:function(b){var c,d,e=a.cvp_datepicker._getInst(b.target);return a.cvp_datepicker._get(e,"constrainInput")?(c=a.cvp_datepicker._possibleChars(a.cvp_datepicker._get(e,"dateFormat")),d=String.fromCharCode(null==b.charCode?b.keyCode:b.charCode),b.ctrlKey||b.metaKey||" ">d||!c||c.indexOf(d)>-1):void 0},_doKeyUp:function(b){var c,d=a.cvp_datepicker._getInst(b.target);if(d.input.val()!==d.lastVal)try{c=a.cvp_datepicker.parseDate(a.cvp_datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.cvp_datepicker._getFormatConfig(d)),c&&(a.cvp_datepicker._setDateFromField(d),a.cvp_datepicker._updateAlternate(d),a.cvp_datepicker._updateDatepicker(d))}catch(e){}return!0},_showDatepicker:function(c){if(c=c.target||c,"input"!==c.nodeName.toLowerCase()&&(c=a("input",c.parentNode)[0]),!a.cvp_datepicker._isDisabledDatepicker(c)&&a.cvp_datepicker._lastInput!==c){var d,e,g,h,i,j,k;d=a.cvp_datepicker._getInst(c),a.cvp_datepicker._curInst&&a.cvp_datepicker._curInst!==d&&(a.cvp_datepicker._curInst.dpDiv.stop(!0,!0),d&&a.cvp_datepicker._datepickerShowing&&a.cvp_datepicker._hideDatepicker(a.cvp_datepicker._curInst.input[0])),e=a.cvp_datepicker._get(d,"beforeShow"),g=e?e.apply(c,[c,d]):{},g!==!1&&(f(d.settings,g),d.lastVal=null,a.cvp_datepicker._lastInput=c,a.cvp_datepicker._setDateFromField(d),a.cvp_datepicker._inDialog&&(c.value=""),a.cvp_datepicker._pos||(a.cvp_datepicker._pos=a.cvp_datepicker._findPos(c),a.cvp_datepicker._pos[1]+=c.offsetHeight),h=!1,a(c).parents().each(function(){return h|="fixed"===a(this).css("position"),!h}),i={left:a.cvp_datepicker._pos[0],top:a.cvp_datepicker._pos[1]},a.cvp_datepicker._pos=null,d.dpDiv.empty(),d.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),a.cvp_datepicker._updateDatepicker(d),i=a.cvp_datepicker._checkOffset(d,i,h),d.dpDiv.css({position:a.cvp_datepicker._inDialog&&a.blockUI?"static":h?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"}),d.inline||(j=a.cvp_datepicker._get(d,"showAnim"),k=a.cvp_datepicker._get(d,"duration"),d.dpDiv.css("z-index",b(a(c))+1),a.cvp_datepicker._datepickerShowing=!0,a.effects&&a.effects.effect[j]?d.dpDiv.show(j,a.cvp_datepicker._get(d,"showOptions"),k):d.dpDiv[j||"show"](j?k:null),a.cvp_datepicker._shouldFocusInput(d)&&d.input.trigger("focus"),a.cvp_datepicker._curInst=d))}},_updateDatepicker:function(b){this.maxRows=4,g=b,b.dpDiv.empty().append(this._generateHTML(b)),this._attachHandlers(b);var c,d=this._getNumberOfMonths(b),f=d[1],h=17,i=b.dpDiv.find("."+this._dayOverClass+" a"),j=a.cvp_datepicker._get(b,"onUpdateDatepicker");i.length>0&&e.apply(i.get(0)),b.dpDiv.removeClass("jqui-datepicker-multi-2 jqui-datepicker-multi-3 jqui-datepicker-multi-4").width(""),f>1&&b.dpDiv.addClass("jqui-datepicker-multi-"+f).css("width",h*f+"em"),b.dpDiv[(1!==d[0]||1!==d[1]?"add":"remove")+"Class"]("jqui-datepicker-multi"),b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("jqui-datepicker-rtl"),b===a.cvp_datepicker._curInst&&a.cvp_datepicker._datepickerShowing&&a.cvp_datepicker._shouldFocusInput(b)&&b.input.trigger("focus"),b.yearshtml&&(c=b.yearshtml,setTimeout(function(){c===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.jqui-datepicker-year").first().replaceWith(b.yearshtml),c=b.yearshtml=null},0)),j&&j.apply(b.input?b.input[0]:null,[b])},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(b,c,d){var e=b.dpDiv.outerWidth(),f=b.dpDiv.outerHeight(),g=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,i=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),j=document.documentElement.clientHeight+(d?0:a(document).scrollTop());return c.left-=this._get(b,"isRTL")?e-g:0,c.left-=d&&c.left===b.input.offset().left?a(document).scrollLeft():0,c.top-=d&&c.top===b.input.offset().top+h?a(document).scrollTop():0,c.left-=Math.min(c.left,c.left+e>i&&i>e?Math.abs(c.left+e-i):0),c.top-=Math.min(c.top,c.top+f>j&&j>f?Math.abs(f+h):0),c},_findPos:function(b){for(var c,d=this._getInst(b),e=this._get(d,"isRTL");b&&("hidden"===b.type||1!==b.nodeType||a.expr.pseudos.hidden(b));)b=b[e?"previousSibling":"nextSibling"];return c=a(b).offset(),[c.left,c.top]},_hideDatepicker:function(b){var c,d,e,f,g=this._curInst;!g||b&&g!==a.data(b,"datepicker")||this._datepickerShowing&&(c=this._get(g,"showAnim"),d=this._get(g,"duration"),e=function(){a.cvp_datepicker._tidyDialog(g)},a.effects&&(a.effects.effect[c]||a.effects[c])?g.dpDiv.hide(c,a.cvp_datepicker._get(g,"showOptions"),d,e):g.dpDiv["slideDown"===c?"slideUp":"fadeIn"===c?"fadeOut":"hide"](c?d:null,e),c||e(),this._datepickerShowing=!1,f=this._get(g,"onClose"),f&&f.apply(g.input?g.input[0]:null,[g.input?g.input.val():"",g]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).off(".jqui-datepicker-calendar")},_checkExternalClick:function(b){if(a.cvp_datepicker._curInst){var c=a(b.target),d=a.cvp_datepicker._getInst(c[0]);(c[0].id!==a.cvp_datepicker._mainDivId&&0===c.parents("#"+a.cvp_datepicker._mainDivId).length&&!c.hasClass(a.cvp_datepicker.markerClassName)&&!c.closest("."+a.cvp_datepicker._triggerClass).length&&a.cvp_datepicker._datepickerShowing&&(!a.cvp_datepicker._inDialog||!a.blockUI)||c.hasClass(a.cvp_datepicker.markerClassName)&&a.cvp_datepicker._curInst!==d)&&a.cvp_datepicker._hideDatepicker()}},_adjustDate:function(b,c,d){var e=a(b),f=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(f,c,d),this._updateDatepicker(f))},_gotoToday:function(b){var c,d=a(b),e=this._getInst(d[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(c=new Date,e.selectedDay=c.getDate(),e.drawMonth=e.selectedMonth=c.getMonth(),e.drawYear=e.selectedYear=c.getFullYear()),this._notifyChange(e),this._adjustDate(d)},_selectMonthYear:function(b,c,d){var e=a(b),f=this._getInst(e[0]);f["selected"+("M"===d?"Month":"Year")]=f["draw"+("M"===d?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(e)},_selectDay:function(b,c,d,e){var f,g=a(b);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=parseInt(a("a",e).attr("data-date")),f.selectedMonth=f.currentMonth=c,f.selectedYear=f.currentYear=d,this._selectDate(b,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(b){var c=a(b);this._selectDate(c,"")},_selectDate:function(b,c){var d,e=a(b),f=this._getInst(e[0]);c=null!=c?c:this._formatDate(f),f.input&&f.input.val(c),this._updateAlternate(f),d=this._get(f,"onSelect"),d?d.apply(f.input?f.input[0]:null,[c,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(b){var c,d,e,f=this._get(b,"altField");f&&(c=this._get(b,"altFormat")||this._get(b,"dateFormat"),d=this._getDate(b),e=this.formatDate(c,d,this._getFormatConfig(b)),a(document).find(f).val(e))},noWeekends:function(a){var b=a.getDay();return[b>0&&6>b,""]},iso8601Week:function(a){var b,c=new Date(a.getTime());return c.setDate(c.getDate()+4-(c.getDay()||7)),b=c.getTime(),c.setMonth(0),c.setDate(1),Math.floor(Math.round((b-c)/864e5)/7)+1},parseDate:function(b,c,d){if(null==b||null==c)throw"Invalid arguments";if(c="object"==typeof c?c.toString():c+"",""===c)return null;var e,f,g,h,i=0,j=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,k="string"!=typeof j?j:(new Date).getFullYear()%100+parseInt(j,10),l=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,m=(d?d.dayNames:null)||this._defaults.dayNames,n=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,o=(d?d.monthNames:null)||this._defaults.monthNames,p=-1,q=-1,r=-1,s=-1,t=!1,u=function(a){var c=e+1<b.length&&b.charAt(e+1)===a;return c&&e++,c},v=function(a){var b=u(a),d="@"===a?14:"!"===a?20:"y"===a&&b?4:"o"===a?3:2,e="y"===a?d:1,f=new RegExp("^\\d{"+e+","+d+"}"),g=c.substring(i).match(f);if(!g)throw"Missing number at position "+i;return i+=g[0].length,parseInt(g[0],10)},w=function(b,d,e){var f=-1,g=a.map(u(b)?e:d,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)});if(a.each(g,function(a,b){var d=b[1];return c.substr(i,d.length).toLowerCase()===d.toLowerCase()?(f=b[0],i+=d.length,!1):void 0}),-1!==f)return f+1;throw"Unknown name at position "+i},x=function(){if(c.charAt(i)!==b.charAt(e))throw"Unexpected literal at position "+i;i++};for(e=0;e<b.length;e++)if(t)"'"!==b.charAt(e)||u("'")?x():t=!1;else switch(b.charAt(e)){case"d":r=v("d");break;case"D":w("D",l,m);break;case"o":s=v("o");break;case"m":q=v("m");break;case"M":q=w("M",n,o);break;case"y":p=v("y");break;case"@":h=new Date(v("@")),p=h.getFullYear(),q=h.getMonth()+1,r=h.getDate();break;case"!":h=new Date((v("!")-this._ticksTo1970)/1e4),p=h.getFullYear(),q=h.getMonth()+1,r=h.getDate();break;case"'":u("'")?x():t=!0;break;default:x()}if(i<c.length&&(g=c.substr(i),!/^\s+/.test(g)))throw"Extra/unparsed characters found in date: "+g;if(-1===p?p=(new Date).getFullYear():100>p&&(p+=(new Date).getFullYear()-(new Date).getFullYear()%100+(k>=p?0:-100)),s>-1)for(q=1,r=s;;){if(f=this._getDaysInMonth(p,q-1),f>=r)break;q++,r-=f}if(h=this._daylightSavingAdjust(new Date(p,q-1,r)),h.getFullYear()!==p||h.getMonth()+1!==q||h.getDate()!==r)throw"Invalid date";return h},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d,e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){var c=d+1<a.length&&a.charAt(d+1)===b;return c&&d++,c},j=function(a,b,c){var d=""+b;if(i(a))for(;d.length<c;)d="0"+d;return d},k=function(a,b,c,d){return i(a)?d[b]:c[b]},l="",m=!1;if(b)for(d=0;d<a.length;d++)if(m)"'"!==a.charAt(d)||i("'")?l+=a.charAt(d):m=!1;else switch(a.charAt(d)){case"d":l+=j("d",b.getDate(),2);break;case"D":l+=k("D",b.getDay(),e,f);break;case"o":l+=j("o",Math.round((new Date(b.getFullYear(),b.getMonth(),b.getDate()).getTime()-new Date(b.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=j("m",b.getMonth()+1,2);break;case"M":l+=k("M",b.getMonth(),g,h);break;case"y":l+=i("y")?b.getFullYear():(b.getFullYear()%100<10?"0":"")+b.getFullYear()%100;break;case"@":l+=b.getTime();break;case"!":l+=1e4*b.getTime()+this._ticksTo1970;break;case"'":i("'")?l+="'":m=!0;break;default:l+=a.charAt(d)}return l},_possibleChars:function(a){var b,c="",d=!1,e=function(c){var d=b+1<a.length&&a.charAt(b+1)===c;return d&&b++,d};for(b=0;b<a.length;b++)if(d)"'"!==a.charAt(b)||e("'")?c+=a.charAt(b):d=!1;else switch(a.charAt(b)){case"d":case"m":case"y":case"@":c+="0123456789";break;case"D":case"M":return null;case"'":e("'")?c+="'":d=!0;break;default:c+=a.charAt(b)}return c},_get:function(a,b){return void 0!==a.settings[b]?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!==a.lastVal){var c=this._get(a,"dateFormat"),d=a.lastVal=a.input?a.input.val():null,e=this._getDefaultDate(a),f=e,g=this._getFormatConfig(a);try{f=this.parseDate(c,d,g)||e}catch(h){d=b?"":d}a.selectedDay=f.getDate(),a.drawMonth=a.selectedMonth=f.getMonth(),a.drawYear=a.selectedYear=f.getFullYear(),a.currentDay=d?f.getDate():0,a.currentMonth=d?f.getMonth():0,a.currentYear=d?f.getFullYear():0,this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(b,c,d){var e=function(a){var b=new Date;return b.setDate(b.getDate()+a),b},f=function(c){try{return a.cvp_datepicker.parseDate(a.cvp_datepicker._get(b,"dateFormat"),c,a.cvp_datepicker._getFormatConfig(b))}catch(d){}for(var e=(c.toLowerCase().match(/^c/)?a.cvp_datepicker._getDate(b):null)||new Date,f=e.getFullYear(),g=e.getMonth(),h=e.getDate(),i=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,j=i.exec(c);j;){switch(j[2]||"d"){case"d":case"D":h+=parseInt(j[1],10);break;case"w":case"W":h+=7*parseInt(j[1],10);break;case"m":case"M":g+=parseInt(j[1],10),h=Math.min(h,a.cvp_datepicker._getDaysInMonth(f,g));break;case"y":case"Y":f+=parseInt(j[1],10),h=Math.min(h,a.cvp_datepicker._getDaysInMonth(f,g))}j=i.exec(c)}return new Date(f,g,h)},g=null==c||""===c?d:"string"==typeof c?f(c):"number"==typeof c?isNaN(c)?d:e(c):new Date(c.getTime());return g=g&&"Invalid Date"===g.toString()?d:g,g&&(g.setHours(0),g.setMinutes(0),g.setSeconds(0),g.setMilliseconds(0)),this._daylightSavingAdjust(g)},_daylightSavingAdjust:function(a){return a?(a.setHours(a.getHours()>12?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e===a.selectedMonth&&f===a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(b){var c=this._get(b,"stepMonths"),d="#"+b.id.replace(/\\\\/g,"\\");b.dpDiv.find("[data-handler]").map(function(){var b={prev:function(){a.cvp_datepicker._adjustDate(d,-c,"M")},next:function(){a.cvp_datepicker._adjustDate(d,+c,"M")},hide:function(){a.cvp_datepicker._hideDatepicker()},today:function(){a.cvp_datepicker._gotoToday(d)},selectDay:function(){return a.cvp_datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return a.cvp_datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return a.cvp_datepicker._selectMonthYear(d,this,"Y"),!1}};a(this).on(this.getAttribute("data-event"),b[this.getAttribute("data-handler")])})},_generateHTML:function(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P=new Date,Q=this._daylightSavingAdjust(new Date(P.getFullYear(),P.getMonth(),P.getDate())),R=this._get(b,"isRTL"),S=this._get(b,"showButtonPanel"),T=this._get(b,"hideIfNoPrevNext"),U=this._get(b,"navigationAsDateFormat"),V=this._getNumberOfMonths(b),W=this._get(b,"showCurrentAtPos"),X=this._get(b,"stepMonths"),Y=1!==V[0]||1!==V[1],Z=this._daylightSavingAdjust(b.currentDay?new Date(b.currentYear,b.currentMonth,b.currentDay):new Date(9999,9,9)),$=this._getMinMaxDate(b,"min"),_=this._getMinMaxDate(b,"max"),ab=b.drawMonth-W,bb=b.drawYear;if(0>ab&&(ab+=12,bb--),_)for(c=this._daylightSavingAdjust(new Date(_.getFullYear(),_.getMonth()-V[0]*V[1]+1,_.getDate())),c=$&&$>c?$:c;this._daylightSavingAdjust(new Date(bb,ab,1))>c;)ab--,0>ab&&(ab=11,bb--);for(b.drawMonth=ab,b.drawYear=bb,d=this._get(b,"prevText"),d=U?this.formatDate(d,this._daylightSavingAdjust(new Date(bb,ab-X,1)),this._getFormatConfig(b)):d,e=this._canAdjustMonth(b,-1,bb,ab)?a("<a>").attr({"class":"jqui-datepicker-prev jqui-corner-all","data-handler":"prev","data-event":"click",title:d}).append(a("<span>").addClass("jqui-icon jqui-icon-circle-triangle-"+(R?"e":"w")).text(d))[0].outerHTML:T?"":a("<a>").attr({"class":"jqui-datepicker-prev jqui-corner-all jqui-state-disabled",title:d}).append(a("<span>").addClass("jqui-icon jqui-icon-circle-triangle-"+(R?"e":"w")).text(d))[0].outerHTML,f=this._get(b,"nextText"),f=U?this.formatDate(f,this._daylightSavingAdjust(new Date(bb,ab+X,1)),this._getFormatConfig(b)):f,g=this._canAdjustMonth(b,1,bb,ab)?a("<a>").attr({"class":"jqui-datepicker-next jqui-corner-all","data-handler":"next","data-event":"click",title:f}).append(a("<span>").addClass("jqui-icon jqui-icon-circle-triangle-"+(R?"w":"e")).text(f))[0].outerHTML:T?"":a("<a>").attr({"class":"jqui-datepicker-next jqui-corner-all jqui-state-disabled",title:f}).append(a("<span>").attr("class","jqui-icon jqui-icon-circle-triangle-"+(R?"w":"e")).text(f))[0].outerHTML,h=this._get(b,"currentText"),i=this._get(b,"gotoCurrent")&&b.currentDay?Z:Q,h=U?this.formatDate(h,i,this._getFormatConfig(b)):h,j="",b.inline||(j=a("<button>").attr({type:"button","class":"jqui-datepicker-close jqui-state-default jqui-priority-primary jqui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(b,"closeText"))[0].outerHTML),k="",S&&(k=a("<div class='jqui-datepicker-buttonpane jqui-widget-content'>").append(R?j:"").append(this._isInRange(b,i)?a("<button>").attr({type:"button","class":"jqui-datepicker-current jqui-state-default jqui-priority-secondary jqui-corner-all","data-handler":"today","data-event":"click"}).text(h):"").append(R?"":j)[0].outerHTML),l=parseInt(this._get(b,"firstDay"),10),l=isNaN(l)?0:l,m=this._get(b,"showWeek"),n=this._get(b,"dayNames"),o=this._get(b,"dayNamesMin"),p=this._get(b,"monthNames"),q=this._get(b,"monthNamesShort"),r=this._get(b,"beforeShowDay"),s=this._get(b,"showOtherMonths"),t=this._get(b,"selectOtherMonths"),u=this._getDefaultDate(b),v="",x=0;x<V[0];x++){for(y="",this.maxRows=4,z=0;z<V[1];z++){if(A=this._daylightSavingAdjust(new Date(bb,ab,b.selectedDay)),B=" jqui-corner-all",C="",Y){if(C+="<div class='jqui-datepicker-group",V[1]>1)switch(z){case 0:C+=" jqui-datepicker-group-first",B=" jqui-corner-"+(R?"right":"left");break;case V[1]-1:C+=" jqui-datepicker-group-last",B=" jqui-corner-"+(R?"left":"right");break;default:C+=" jqui-datepicker-group-middle",B=""}C+="'>"}for(C+="<div class='jqui-datepicker-header jqui-widget-header jqui-helper-clearfix"+B+"'>"+(/all|left/.test(B)&&0===x?R?g:e:"")+(/all|right/.test(B)&&0===x?R?e:g:"")+this._generateMonthYearHeader(b,ab,bb,$,_,x>0||z>0,p,q)+"</div><table class='jqui-datepicker-calendar'><thead><tr>",D=m?"<th class='jqui-datepicker-week-col'>"+this._get(b,"weekHeader")+"</th>":"",w=0;7>w;w++)E=(w+l)%7,D+="<th scope='col'"+((w+l+6)%7>=5?" class='jqui-datepicker-week-end'":"")+"><span title='"+n[E]+"'>"+o[E]+"</span></th>";for(C+=D+"</tr></thead><tbody>",F=this._getDaysInMonth(bb,ab),bb===b.selectedYear&&ab===b.selectedMonth&&(b.selectedDay=Math.min(b.selectedDay,F)),G=(this._getFirstDayOfMonth(bb,ab)-l+7)%7,H=Math.ceil((G+F)/7),I=Y&&this.maxRows>H?this.maxRows:H,this.maxRows=I,J=this._daylightSavingAdjust(new Date(bb,ab,1-G)),K=0;I>K;K++){for(C+="<tr>",L=m?"<td class='jqui-datepicker-week-col'>"+this._get(b,"calculateWeek")(J)+"</td>":"",w=0;7>w;w++)M=r?r.apply(b.input?b.input[0]:null,[J]):[!0,""],N=J.getMonth()!==ab,O=N&&!t||!M[0]||$&&$>J||_&&J>_,L+="<td class='"+((w+l+6)%7>=5?" jqui-datepicker-week-end":"")+(N?" jqui-datepicker-other-month":"")+(J.getTime()===A.getTime()&&ab===b.selectedMonth&&b._keyEvent||u.getTime()===J.getTime()&&u.getTime()===A.getTime()?" "+this._dayOverClass:"")+(O?" "+this._unselectableClass+" jqui-state-disabled":"")+(N&&!s?"":" "+M[1]+(J.getTime()===Z.getTime()?" "+this._currentClass:"")+(J.getTime()===Q.getTime()?" jqui-datepicker-today":""))+"'"+(N&&!s||!M[2]?"":" title='"+M[2].replace(/'/g,"&#39;")+"'")+(O?"":" data-handler='selectDay' data-event='click' data-month='"+J.getMonth()+"' data-year='"+J.getFullYear()+"'")+">"+(N&&!s?"&#xa0;":O?"<span class='jqui-state-default'>"+J.getDate()+"</span>":"<a class='jqui-state-default"+(J.getTime()===Q.getTime()?" jqui-state-highlight":"")+(J.getTime()===Z.getTime()?" jqui-state-active":"")+(N?" jqui-priority-secondary":"")+"' href='#' aria-current='"+(J.getTime()===Z.getTime()?"true":"false")+"' data-date='"+J.getDate()+"'>"+J.getDate()+"</a>")+"</td>",J.setDate(J.getDate()+1),J=this._daylightSavingAdjust(J);C+=L+"</tr>"}ab++,ab>11&&(ab=0,bb++),C+="</tbody></table>"+(Y?"</div>"+(V[0]>0&&z===V[1]-1?"<div class='jqui-datepicker-row-break'></div>":""):""),y+=C}v+=y}return v+=k,b._keyEvent=!1,v},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t=this._get(a,"selectMonthLabel"),u=this._get(a,"selectYearLabel"),v="<div class='jqui-datepicker-title'>",w="";if(f||!q)w+="<span class='jqui-datepicker-month'>"+g[b]+"</span>";else{for(i=d&&d.getFullYear()===c,j=e&&e.getFullYear()===c,w+="<select class='jqui-datepicker-month' aria-label='"+t+"' data-handler='selectMonth' data-event='change'>",k=0;12>k;k++)(!i||k>=d.getMonth())&&(!j||k<=e.getMonth())&&(w+="<option value='"+k+"'"+(k===b?" selected='selected'":"")+">"+h[k]+"</option>");w+="</select>"}if(s||(v+=w+(!f&&q&&r?"":"&#xa0;")),!a.yearshtml)if(a.yearshtml="",f||!r)v+="<span class='jqui-datepicker-year'>"+c+"</span>";else{for(l=this._get(a,"yearRange").split(":"),m=(new Date).getFullYear(),n=function(a){var b=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?m+parseInt(a,10):parseInt(a,10);return isNaN(b)?m:b},o=n(l[0]),p=Math.max(o,n(l[1]||"")),o=d?Math.max(o,d.getFullYear()):o,p=e?Math.min(p,e.getFullYear()):p,a.yearshtml+="<select class='jqui-datepicker-year' aria-label='"+u+"' data-handler='selectYear' data-event='change'>";p>=o;o++)a.yearshtml+="<option value='"+o+"'"+(o===c?" selected='selected'":"")+">"+o+"</option>";a.yearshtml+="</select>",v+=a.yearshtml,a.yearshtml=null}return v+=this._get(a,"yearSuffix"),s&&(v+=(!f&&q&&r?"":"&#xa0;")+w),v+="</div>"},_adjustInstDate:function(a,b,c){var d=a.selectedYear+("Y"===c?b:0),e=a.selectedMonth+("M"===c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+("D"===c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),("M"===c||"Y"===c)&&this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&c>b?c:b;return d&&e>d?d:e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return null==b?[1,1]:"number"==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()
},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(0>b?b:e[0]*e[1]),1));return 0>b&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c,d,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),g=null,h=null,i=this._get(a,"yearRange");return i&&(c=i.split(":"),d=(new Date).getFullYear(),g=parseInt(c[0],10),h=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(g+=d),c[1].match(/[+\-].*/)&&(h+=d)),(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!g||b.getFullYear()>=g)&&(!h||b.getFullYear()<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),a.fn.cvp_datepicker=function(b){if(!this.length)return this;a.cvp_datepicker.initialized||(a(document).on("mousedown",a.cvp_datepicker._checkExternalClick),a.cvp_datepicker.initialized=!0),0===a("#"+a.cvp_datepicker._mainDivId).length&&a("body").append(a.cvp_datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return"string"!=typeof b||"isDisabled"!==b&&"getDate"!==b&&"widget"!==b?"option"===b&&2===arguments.length&&"string"==typeof arguments[1]?a.cvp_datepicker["_"+b+"Datepicker"].apply(a.cvp_datepicker,[this[0]].concat(c)):this.each(function(){"string"==typeof b?a.cvp_datepicker["_"+b+"Datepicker"].apply(a.cvp_datepicker,[this].concat(c)):a.cvp_datepicker._attachDatepicker(this,b)}):a.cvp_datepicker["_"+b+"Datepicker"].apply(a.cvp_datepicker,[this[0]].concat(c))},a.cvp_datepicker=new c,a.cvp_datepicker.initialized=!1,a.cvp_datepicker.uuid=(new Date).getTime(),a.cvp_datepicker.version="1.13.1";a.cvp_datepicker}),/*!
 * imagesLoaded v3.1.8
 * MIT License
 */
function(){function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;a.length>b;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;a.length>b;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.cvp_imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"===m.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0,d=a.length;d>c;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a){this.src=a,n[a]=this}var j=a.jQuery,k=a.console,l=void 0!==k,m=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0,b=this.elements.length;b>a;a++){var c=this.elements[a];"IMG"===c.nodeName&&this.addImage(c);var d=c.nodeType;if(d&&(1===d||9===d||11===d))for(var e=c.querySelectorAll("img"),f=0,g=e.length;g>f;f++){var h=e[f];this.addImage(h)}}},g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.check=function(){function a(a,e){return b.options.debug&&l&&k.log("confirm",a,e),b.progress(a),c++,c===d&&b.complete(),!0}var b=this,c=0,d=this.images.length;if(this.hasAnyBroken=!1,!d)return void this.complete();for(var e=0;d>e;e++){var f=this.images[e];f.on("confirm",a),f.check()}},g.prototype.progress=function(a){this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded;var b=this;setTimeout(function(){b.emit("progress",b,a),b.jqDeferred&&b.jqDeferred.notify&&b.jqDeferred.notify(b,a)})},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var b=this;setTimeout(function(){if(b.emit(a,b),b.emit("always",b),b.jqDeferred){var c=b.hasAnyBroken?"reject":"resolve";b.jqDeferred[c](b)}})},j&&(j.fn.cvp_imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))}),h.prototype=new b,h.prototype.check=function(){var a=n[this.img.src]||new i(this.img.src);if(a.isConfirmed)return void this.confirm(a.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var b=this;a.on("confirm",function(a,c){return b.confirm(a.isLoaded,c),!0}),a.check()},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("confirm",this,b)};var n={};return i.prototype=new b,i.prototype.check=function(){if(!this.isChecked){var a=new Image;c.bind(a,"load",this),c.bind(a,"error",this),a.src=this.src,this.isChecked=!0}},i.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},i.prototype.onload=function(a){this.confirm(!0,"onload"),this.unbindProxyEvents(a)},i.prototype.onerror=function(a){this.confirm(!1,"onerror"),this.unbindProxyEvents(a)},i.prototype.confirm=function(a,b){this.isConfirmed=!0,this.isLoaded=a,this.emit("confirm",this,b)},i.prototype.unbindProxyEvents=function(a){c.unbind(a.target,"load",this),c.unbind(a.target,"error",this)},g}),/*!
 * Ion.RangeSlider | version 2.1.7 | https://github.com/IonDen/ion.rangeSlider
 * MIT License https://github.com/IonDen/ion.rangeSlider/blob/master/License.md
 */
function(a){"function"==typeof define&&define.amd?define(["jquery"],function(b){return a(b,document,window,navigator)}):"object"==typeof exports?a(require("jquery"),document,window,navigator):a(jQuery,document,window,navigator)}(function(a,b,c,d,e){var f=0,g=function(){var b=d.userAgent,c=/msie\s\d+/i;return 0<b.search(c)&&(b=c.exec(b).toString(),b=b.split(" ")[1],9>b)?(a("html").addClass("lt-ie9"),!0):!1}();Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=[].slice;if("function"!=typeof b)throw new TypeError;var d=c.call(arguments,1),e=function(){if(this instanceof e){var f=function(){};f.prototype=b.prototype;var f=new f,g=b.apply(f,d.concat(c.call(arguments)));return Object(g)===g?g:f}return b.apply(a,d.concat(c.call(arguments)))};return e}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c;if(null==this)throw new TypeError('"this" is null or not defined');var d=Object(this),e=d.length>>>0;if(0===e)return-1;if(c=+b||0,1/0===Math.abs(c)&&(c=0),c>=e)return-1;for(c=Math.max(c>=0?c:e-Math.abs(c),0);e>c;){if(c in d&&d[c]===a)return c;c++}return-1});var h=function(d,f,g){this.VERSION="2.1.7",this.input=d,this.plugin_count=g,this.old_to=this.old_from=this.update_tm=this.calc_count=this.current_plugin=0,this.raf_id=this.old_min_interval=null,this.is_update=this.is_key=this.no_diapason=this.force_redraw=this.dragging=!1,this.is_start=!0,this.is_click=this.is_resize=this.is_active=this.is_finish=!1,f=f||{},this.$cache={win:a(c),body:a(b.body),input:a(d),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var h=this.$cache.input;d=h.prop("value");var i;g={type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!1,keyboard_step:5,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" — ",input_values_separator:";",disable:!1,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==h[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",h[0]),h={type:h.data("type"),min:h.data("min"),max:h.data("max"),from:h.data("from"),to:h.data("to"),step:h.data("step"),min_interval:h.data("minInterval"),max_interval:h.data("maxInterval"),drag_interval:h.data("dragInterval"),values:h.data("values"),from_fixed:h.data("fromFixed"),from_min:h.data("fromMin"),from_max:h.data("fromMax"),from_shadow:h.data("fromShadow"),to_fixed:h.data("toFixed"),to_min:h.data("toMin"),to_max:h.data("toMax"),to_shadow:h.data("toShadow"),prettify_enabled:h.data("prettifyEnabled"),prettify_separator:h.data("prettifySeparator"),force_edges:h.data("forceEdges"),keyboard:h.data("keyboard"),keyboard_step:h.data("keyboardStep"),grid:h.data("grid"),grid_margin:h.data("gridMargin"),grid_num:h.data("gridNum"),grid_snap:h.data("gridSnap"),hide_min_max:h.data("hideMinMax"),hide_from_to:h.data("hideFromTo"),prefix:h.data("prefix"),postfix:h.data("postfix"),max_postfix:h.data("maxPostfix"),decorate_both:h.data("decorateBoth"),values_separator:h.data("valuesSeparator"),input_values_separator:h.data("inputValuesSeparator"),disable:h.data("disable")},h.values=h.values&&h.values.split(",");for(i in h)h.hasOwnProperty(i)&&(h[i]!==e&&""!==h[i]||delete h[i]);d!==e&&""!==d&&(d=d.split(h.input_values_separator||f.input_values_separator||";"),d[0]&&d[0]==+d[0]&&(d[0]=+d[0]),d[1]&&d[1]==+d[1]&&(d[1]=+d[1]),f&&f.values&&f.values.length?(g.from=d[0]&&f.values.indexOf(d[0]),g.to=d[1]&&f.values.indexOf(d[1])):(g.from=d[0]&&+d[0],g.to=d[1]&&+d[1])),a.extend(g,f),a.extend(g,h),this.options=g,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};h.prototype={init:function(a){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),a?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){this.$cache.input.before('<span class="irs js-irs-'+this.plugin_count+'"></span>'),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="-1"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span><span class="irs-bar"></span>'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar-edge"></span><span class="irs-shadow shadow-single"></span><span class="irs-slider single"></span>'),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-slider from"></span><span class="irs-slider to"></span>'),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.max===this.options.min&&(this.$cache.line[0].style.display="none",this.$cache.grid[0].style.display="none",this.$cache.max[0].style.display="none"),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.cont.removeClass("irs-disabled"),this.$cache.input[0].disabled=!1,this.bindEvents()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var a=this.options.max,b=this.options.to;this.options.from>this.options.min&&b===a?this.$cache.s_from.addClass("type_last"):a>b&&this.$cache.s_to.addClass("type_last")},changeLevel:function(a){switch(a){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake);break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),g&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),g&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerMove:function(a){this.dragging&&(this.coords.x_pointer=(a.pageX||a.originalEvent.touches&&a.originalEvent.touches[0].pageX)-this.coords.x_gap,this.calc())},pointerUp:function(b){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,g&&a("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(a.contains(this.$cache.cont[0],b.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(b,c){c.preventDefault();var d=c.pageX||c.originalEvent.touches&&c.originalEvent.touches[0].pageX;2!==c.button&&("both"===b&&this.setTempMinInterval(),b||(b=this.target||"from"),this.current_plugin=this.plugin_count,this.target=b,this.dragging=this.is_active=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=d-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(b),g&&a("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(a,b){b.preventDefault();var c=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;2!==b.button&&(this.current_plugin=this.plugin_count,this.target=a,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(c-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(a,b){if(!(this.current_plugin!==this.plugin_count||b.altKey||b.ctrlKey||b.shiftKey||b.metaKey)){switch(b.which){case 83:case 65:case 40:case 37:b.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:b.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(a){var b=this.coords.p_pointer,b=a?b+this.options.keyboard_step:b-this.options.keyboard_step;this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*b),this.is_key=!0,this.calc()},setMinMax:function(){this.options&&(this.options.hide_min_max?(this.$cache.min[0].style.display="none",this.$cache.max[0].style.display="none"):(this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(this.$cache.min.html(this.decorate(this._prettify(this.options.min),this.options.min)),this.$cache.max.html(this.decorate(this._prettify(this.options.max),this.options.max))),this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)))},setTempMinInterval:function(){var a=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=a},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(a){if(this.options&&(this.calc_count++,(10===this.calc_count||a)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){switch(this.calcPointerPercent(),a=this.getHandleX(),"both"===this.target&&(this.coords.p_gap=0,a=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,a=this.getHandleX(),this.target=this.options.drag_interval?"both_one":this.chooseHandle(a)),this.target){case"base":var b=(this.options.max-this.options.min)/100;a=(this.result.from-this.options.min)/b,b=(this.result.to-this.options.min)/b,this.coords.p_single_real=this.toFixed(a),this.coords.p_from_real=this.toFixed(a),this.coords.p_to_real=this.toFixed(b),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(a),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(a),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(a),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;a=this.toFixed(a+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(a)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(a)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(!this.options.from_fixed&&!this.options.to_fixed){var c=this.convertToRealPercent(a);a=this.result.to_percent-this.result.from_percent;var d=a/2,b=c-d,c=c+d;0>b&&(b=0,c=b+a),c>100&&(c=100,b=c-a),this.coords.p_from_real=this.calcWithStep(b),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(c),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}},calcPointerPercent:function(){this.coords.w_rs?(0>this.coords.x_pointer||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(a){return a/(100-this.coords.p_handle)*100},convertToFakePercent:function(a){return a/100*(100-this.coords.p_handle)},getHandleX:function(){var a=100-this.coords.p_handle,b=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return 0>b?b=0:b>a&&(b=a),b},calcHandlePercent:function(){this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(a){return"single"===this.options.type?"single":a>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%":(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%")),this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start,this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_click=this.is_key=!1,this.callOnFinish()),this.is_finish=this.is_resize=this.is_update=!1),this.force_redraw=this.is_click=this.is_key=this.is_start=!1))},drawLabels:function(){if(this.options){var a,b=this.options.values.length,c=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)b=b?this.decorate(c[this.result.from]):this.decorate(this._prettify(this.result.from),this.result.from),this.$cache.single.html(b),this.calcLabels(),this.$cache.min[0].style.visibility=this.labels.p_single_left<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?"hidden":"visible";else{b?(this.options.decorate_both?(b=this.decorate(c[this.result.from]),b+=this.options.values_separator,b+=this.decorate(c[this.result.to])):b=this.decorate(c[this.result.from]+this.options.values_separator+c[this.result.to]),a=this.decorate(c[this.result.from]),c=this.decorate(c[this.result.to])):(this.options.decorate_both?(b=this.decorate(this._prettify(this.result.from),this.result.from),b+=this.options.values_separator,b+=this.decorate(this._prettify(this.result.to),this.result.to)):b=this.decorate(this._prettify(this.result.from)+this.options.values_separator+this._prettify(this.result.to),this.result.to),a=this.decorate(this._prettify(this.result.from),this.result.from),c=this.decorate(this._prettify(this.result.to),this.result.to)),this.$cache.single.html(b),this.$cache.from.html(a),this.$cache.to.html(c),this.calcLabels(),c=Math.min(this.labels.p_single_left,this.labels.p_from_left),b=this.labels.p_single_left+this.labels.p_single_fake,a=this.labels.p_to_left+this.labels.p_to_fake;var d=Math.max(b,a);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",d=a):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",d=Math.max(b,a))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),this.$cache.min[0].style.visibility=c<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=d>100-this.labels.p_max-1?"hidden":"visible"}}},drawShadow:function(){var a=this.options,b=this.$cache,c="number"==typeof a.from_min&&!isNaN(a.from_min),d="number"==typeof a.from_max&&!isNaN(a.from_max),e="number"==typeof a.to_min&&!isNaN(a.to_min),f="number"==typeof a.to_max&&!isNaN(a.to_max);"single"===a.type?a.from_shadow&&(c||d)?(c=this.convertToPercent(c?a.from_min:a.min),d=this.convertToPercent(d?a.from_max:a.max)-c,c=this.toFixed(c-this.coords.p_handle/100*c),d=this.toFixed(d-this.coords.p_handle/100*d),c+=this.coords.p_handle/2,b.shad_single[0].style.display="block",b.shad_single[0].style.left=c+"%",b.shad_single[0].style.width=d+"%"):b.shad_single[0].style.display="none":(a.from_shadow&&(c||d)?(c=this.convertToPercent(c?a.from_min:a.min),d=this.convertToPercent(d?a.from_max:a.max)-c,c=this.toFixed(c-this.coords.p_handle/100*c),d=this.toFixed(d-this.coords.p_handle/100*d),c+=this.coords.p_handle/2,b.shad_from[0].style.display="block",b.shad_from[0].style.left=c+"%",b.shad_from[0].style.width=d+"%"):b.shad_from[0].style.display="none",a.to_shadow&&(e||f)?(e=this.convertToPercent(e?a.to_min:a.min),a=this.convertToPercent(f?a.to_max:a.max)-e,e=this.toFixed(e-this.coords.p_handle/100*e),a=this.toFixed(a-this.coords.p_handle/100*a),e+=this.coords.p_handle/2,b.shad_to[0].style.display="block",b.shad_to[0].style.left=e+"%",b.shad_to[0].style.width=a+"%"):b.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&this.options.onStart(this.result)},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&this.options.onChange(this.result)},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&this.options.onFinish(this.result)},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&this.options.onUpdate(this.result)},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input")},convertToPercent:function(a,b){var c=this.options.max-this.options.min;return c?this.toFixed((b?a:a-this.options.min)/(c/100)):(this.no_diapason=!0,0)},convertToValue:function(a){var b,c,d=this.options.min,e=this.options.max,f=d.toString().split(".")[1],g=e.toString().split(".")[1],h=0,i=0;return 0===a?this.options.min:100===a?this.options.max:(f&&(h=b=f.length),g&&(h=c=g.length),b&&c&&(h=b>=c?b:c),0>d&&(i=Math.abs(d),d=+(d+i).toFixed(h),e=+(e+i).toFixed(h)),a=(e-d)/100*a+d,(d=this.options.step.toString().split(".")[1])?a=+a.toFixed(d.length):(a/=this.options.step,a*=this.options.step,a=+a.toFixed(0)),i&&(a-=i),i=d?+a.toFixed(d.length):this.toFixed(a),i<this.options.min?i=this.options.min:i>this.options.max&&(i=this.options.max),i)},calcWithStep:function(a){var b=Math.round(a/this.coords.p_step)*this.coords.p_step;return b>100&&(b=100),100===a&&(b=100),this.toFixed(b)},checkMinInterval:function(a,b,c){var d=this.options;return d.min_interval?(a=this.convertToValue(a),b=this.convertToValue(b),"from"===c?b-a<d.min_interval&&(a=b-d.min_interval):a-b<d.min_interval&&(a=b+d.min_interval),this.convertToPercent(a)):a},checkMaxInterval:function(a,b,c){var d=this.options;return d.max_interval?(a=this.convertToValue(a),b=this.convertToValue(b),"from"===c?b-a>d.max_interval&&(a=b-d.max_interval):a-b>d.max_interval&&(a=b+d.max_interval),this.convertToPercent(a)):a},checkDiapason:function(a,b,c){a=this.convertToValue(a);var d=this.options;return"number"!=typeof b&&(b=d.min),"number"!=typeof c&&(c=d.max),b>a&&(a=b),a>c&&(a=c),this.convertToPercent(a)
},toFixed:function(a){return a=a.toFixed(20),+a},_prettify:function(a){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(a):this.prettify(a):a},prettify:function(a){return a.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(a,b){return this.options.force_edges?(0>a?a=0:a>100-b&&(a=100-b),this.toFixed(a)):this.toFixed(a)},validate:function(){var a,b,c=this.options,d=this.result,e=c.values,f=e.length;if("string"==typeof c.min&&(c.min=+c.min),"string"==typeof c.max&&(c.max=+c.max),"string"==typeof c.from&&(c.from=+c.from),"string"==typeof c.to&&(c.to=+c.to),"string"==typeof c.step&&(c.step=+c.step),"string"==typeof c.from_min&&(c.from_min=+c.from_min),"string"==typeof c.from_max&&(c.from_max=+c.from_max),"string"==typeof c.to_min&&(c.to_min=+c.to_min),"string"==typeof c.to_max&&(c.to_max=+c.to_max),"string"==typeof c.keyboard_step&&(c.keyboard_step=+c.keyboard_step),"string"==typeof c.grid_num&&(c.grid_num=+c.grid_num),c.max<c.min&&(c.max=c.min),f)for(c.p_values=[],c.min=0,c.max=f-1,c.step=1,c.grid_num=c.max,c.grid_snap=!0,b=0;f>b;b++)a=+e[b],isNaN(a)?a=e[b]:(e[b]=a,a=this._prettify(a)),c.p_values.push(a);("number"!=typeof c.from||isNaN(c.from))&&(c.from=c.min),("number"!=typeof c.to||isNaN(c.to))&&(c.to=c.max),"single"===c.type?(c.from<c.min&&(c.from=c.min),c.from>c.max&&(c.from=c.max)):(c.from<c.min&&(c.from=c.min),c.from>c.max&&(c.from=c.max),c.to<c.min&&(c.to=c.min),c.to>c.max&&(c.to=c.max),this.update_check.from&&(this.update_check.from!==c.from&&c.from>c.to&&(c.from=c.to),this.update_check.to!==c.to&&c.to<c.from&&(c.to=c.from)),c.from>c.to&&(c.from=c.to),c.to<c.from&&(c.to=c.from)),("number"!=typeof c.step||isNaN(c.step)||!c.step||0>c.step)&&(c.step=1),("number"!=typeof c.keyboard_step||isNaN(c.keyboard_step)||!c.keyboard_step||0>c.keyboard_step)&&(c.keyboard_step=5),"number"==typeof c.from_min&&c.from<c.from_min&&(c.from=c.from_min),"number"==typeof c.from_max&&c.from>c.from_max&&(c.from=c.from_max),"number"==typeof c.to_min&&c.to<c.to_min&&(c.to=c.to_min),"number"==typeof c.to_max&&c.from>c.to_max&&(c.to=c.to_max),d&&(d.min!==c.min&&(d.min=c.min),d.max!==c.max&&(d.max=c.max),(d.from<d.min||d.from>d.max)&&(d.from=c.from),(d.to<d.min||d.to>d.max)&&(d.to=c.to)),("number"!=typeof c.min_interval||isNaN(c.min_interval)||!c.min_interval||0>c.min_interval)&&(c.min_interval=0),("number"!=typeof c.max_interval||isNaN(c.max_interval)||!c.max_interval||0>c.max_interval)&&(c.max_interval=0),c.min_interval&&c.min_interval>c.max-c.min&&(c.min_interval=c.max-c.min),c.max_interval&&c.max_interval>c.max-c.min&&(c.max_interval=c.max-c.min)},decorate:function(a,b){var c="",d=this.options;return d.prefix&&(c+=d.prefix),c+=a,d.max_postfix&&(d.values.length&&a===d.p_values[d.max]?(c+=d.max_postfix,d.postfix&&(c+=" ")):b===d.max&&(c+=d.max_postfix,d.postfix&&(c+=" "))),d.postfix&&(c+=d.postfix),c},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var a,b,c=this.options;a=c.max-c.min;var d,e,f,g,h,i=c.grid_num,j=4,k="";for(this.calcGridMargin(),c.grid_snap?a>50?(i=50/c.step,d=this.toFixed(c.step/.5)):(i=a/c.step,d=this.toFixed(c.step/(a/100))):d=this.toFixed(100/i),i>4&&(j=3),i>7&&(j=2),i>14&&(j=1),i>28&&(j=0),a=0;i+1>a;a++){for(f=j,e=this.toFixed(d*a),e>100&&(e=100,f-=2,0>f&&(f=0)),this.coords.big[a]=e,g=(e-d*(a-1))/(f+1),b=1;f>=b&&0!==e;b++)h=this.toFixed(e-g*b),k+='<span class="irs-grid-pol small" style="left: '+h+'%"></span>';k+='<span class="irs-grid-pol" style="left: '+e+'%"></span>',b=this.convertToValue(e),b=c.values.length?c.p_values[b]:this._prettify(b),k+='<span class="irs-grid-text js-grid-text-'+a+'" style="left: '+e+'%">'+b+"</span>"}this.coords.big_num=Math.ceil(i+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(k),this.cacheGridLabels()}},cacheGridLabels:function(){var a,b,c=this.coords.big_num;for(b=0;c>b;b++)a=this.$cache.grid.find(".js-grid-text-"+b),this.$cache.grid_labels.push(a);this.calcGridLabels()},calcGridLabels:function(){var a,b;b=[];var c=[],d=this.coords.big_num;for(a=0;d>a;a++)this.coords.big_w[a]=this.$cache.grid_labels[a].outerWidth(!1),this.coords.big_p[a]=this.toFixed(this.coords.big_w[a]/this.coords.w_rs*100),this.coords.big_x[a]=this.toFixed(this.coords.big_p[a]/2),b[a]=this.toFixed(this.coords.big[a]-this.coords.big_x[a]),c[a]=this.toFixed(b[a]+this.coords.big_p[a]);for(this.options.force_edges&&(b[0]<-this.coords.grid_gap&&(b[0]=-this.coords.grid_gap,c[0]=this.toFixed(b[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),c[d-1]>100+this.coords.grid_gap&&(c[d-1]=100+this.coords.grid_gap,b[d-1]=this.toFixed(c[d-1]-this.coords.big_p[d-1]),this.coords.big_x[d-1]=this.toFixed(this.coords.big_p[d-1]-this.coords.grid_gap))),this.calcGridCollision(2,b,c),this.calcGridCollision(4,b,c),a=0;d>a;a++)b=this.$cache.grid_labels[a][0],this.coords.big_x[a]!==Number.POSITIVE_INFINITY&&(b.style.marginLeft=-this.coords.big_x[a]+"%")},calcGridCollision:function(a,b,c){var d,e,f,g=this.coords.big_num;for(d=0;g>d&&(e=d+a/2,!(e>=g));d+=a)f=this.$cache.grid_labels[e][0],f.style.visibility=c[d]<=b[e]?"visible":"hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(b){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=a.extend(this.options,b),this.validate(),this.updateResult(b),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),a.data(this.input,"ionRangeSlider",null),this.remove(),this.options=this.input=null)}},a.fn.cvp_ionRangeSlider=function(b){return this.each(function(){a.data(this,"ionRangeSlider")||a.data(this,"ionRangeSlider",new h(this,b,f++))})},function(){for(var a=0,b=["ms","moz","webkit","o"],d=0;d<b.length&&!c.requestAnimationFrame;++d)c.requestAnimationFrame=c[b[d]+"RequestAnimationFrame"],c.cancelAnimationFrame=c[b[d]+"CancelAnimationFrame"]||c[b[d]+"CancelRequestAnimationFrame"];c.requestAnimationFrame||(c.requestAnimationFrame=function(b){var d=(new Date).getTime(),e=Math.max(0,16-(d-a)),f=c.setTimeout(function(){b(d+e)},e);return a=d+e,f}),c.cancelAnimationFrame||(c.cancelAnimationFrame=function(a){clearTimeout(a)})}()}),/*! Modernizr 2.6.2 (Custom Build) | MIT & BSD
 */
window.cvp_Modernizr=function(a,b,c){function d(a){s.cssText=a}function e(a,b){return typeof a===b}function f(a,b){return!!~(""+a).indexOf(b)}function g(a,b){for(var d in a){var e=a[d];if(!f(e,"-")&&s[e]!==c)return"pfx"==b?e:!0}return!1}function h(a,b,d){for(var f in a){var g=b[a[f]];if(g!==c)return d===!1?a[f]:e(g,"function")?g.bind(d||b):g}return!1}function i(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),f=(a+" "+v.join(d+" ")+d).split(" ");return e(b,"string")||e(b,"undefined")?g(f,b):(f=(a+" "+w.join(d+" ")+d).split(" "),h(f,b,c))}var j,k,l,m="2.6.2",n={},o=!0,p=b.documentElement,q="modernizr",r=b.createElement(q),s=r.style,t=({}.toString," -webkit- -moz- -o- -ms- ".split(" ")),u="Webkit Moz O ms",v=u.split(" "),w=u.toLowerCase().split(" "),x={},y=[],z=y.slice,A=function(a,c,d,e){var f,g,h,i,j=b.createElement("div"),k=b.body,l=k||b.createElement("body");if(parseInt(d,10))for(;d--;)h=b.createElement("div"),h.id=e?e[d]:q+(d+1),j.appendChild(h);return f=["&#173;",'<style id="s',q,'">',a,"</style>"].join(""),j.id=q,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background="",l.style.overflow="hidden",i=p.style.overflow,p.style.overflow="hidden",p.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),p.style.overflow=i),!!g},B={}.hasOwnProperty;l=e(B,"undefined")||e(B.call,"undefined")?function(a,b){return b in a&&e(a.constructor.prototype[b],"undefined")}:function(a,b){return B.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=z.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(z.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(z.call(arguments)))};return d}),x.csstransforms=function(){return!!i("transform")},x.csstransforms3d=function(){var a=!!i("perspective");return a&&"webkitPerspective"in p.style&&A("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b){a=9===b.offsetLeft&&3===b.offsetHeight}),a},x.csstransitions=function(){return i("transition")};for(var C in x)l(x,C)&&(k=C.toLowerCase(),n[k]=x[C](),y.push((n[k]?"":"no-")+k));return n.addTest=function(a,b){if("object"==typeof a)for(var d in a)l(a,d)&&n.addTest(d,a[d]);else{if(a=a.toLowerCase(),n[a]!==c)return n;b="function"==typeof b?b():b,"undefined"!=typeof o&&o&&(p.className+=" "+(b?"":"no-")+a),n[a]=b}return n},d(""),r=j=null,n._version=m,n._prefixes=t,n._domPrefixes=w,n._cssomPrefixes=v,n.testProp=function(a){return g([a])},n.testAllProps=i,n.testStyles=A,n.prefixed=function(a,b,c){return b?i(a,b,c):i(a,"pfx")},p.className=p.className+(o?" "+y.join(" "):""),n}(this,this.document),/*!
 * Shuffle.js by @Vestride
 * @license MIT license
 * @version 3.1.1
 */
function(a){"function"==typeof define&&define.amd?define(["jquery","modernizr"],a):"object"==typeof exports?module.exports=a(require("jquery"),window.cvp_Modernizr):window.cvp_Shuffle=a(window.jQuery,window.cvp_Modernizr)}(function(a,b,c){"use strict";function d(a){return a?a.replace(/([A-Z])/g,function(a,b){return"-"+b.toLowerCase()}).replace(/^ms-/,"-ms-"):""}function e(b,c,d){var e,f,g,h=null,i=0;d=d||{};var j=function(){i=d.leading===!1?0:a.now(),h=null,g=b.apply(e,f),e=f=null};return function(){var k=a.now();i||d.leading!==!1||(i=k);var l=c-(k-i);return e=this,f=arguments,0>=l||l>c?(clearTimeout(h),h=null,i=k,g=b.apply(e,f),e=f=null):h||d.trailing===!1||(h=setTimeout(j,l)),g}}function f(a,b,c){for(var d=0,e=a.length;e>d;d++)if(b.call(c,a[d],d,a)==={})return}function g(b,c,d){return setTimeout(a.proxy(b,c),d)}function h(a){return Math.max.apply(Math,a)}function i(a){return Math.min.apply(Math,a)}function j(a){var b=function(a){var b=typeof a;return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))};return b(a)?a:0}function k(a){var b,c,d=a.length;if(!d)return a;for(;--d;)c=Math.floor(Math.random()*(d+1)),b=a[c],a[c]=a[d],a[d]=b;return a}if("object"!=typeof b)throw new Error("Shuffle.js requires Modernizr.\nhttp://vestride.github.io/Shuffle/#dependencies");var l=b.prefixed("transition"),m=b.prefixed("transitionDelay"),n=b.prefixed("transitionDuration"),o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[l],p=b.prefixed("transform"),q=d(p),r=(b.csstransforms&&b.csstransitions,b.csstransforms3d),s=!!window.getComputedStyle,t="shuffle",u="all",v="groups",w=1,x=.001,y=window.getComputedStyle||function(){},z=function(a,b){this.x=j(a),this.y=j(b)};z.equals=function(a,b){return"undefined"==typeof a||"undefined"==typeof b?!0:a.x===b.x&&a.y===b.y};var A=function(){if(!s)return!1;var a=document.body||document.documentElement,b=document.createElement("div");b.style.cssText="width:10px;padding:2px;-webkit-box-sizing:border-box;box-sizing:border-box;",a.appendChild(b);var c=y(b,null).width,d="10px"===c;return a.removeChild(b),d}(),B=0,C=a(window),D=function(b,c){c=c||{},a.extend(this,D.options,c,D.settings),this.$el=a(b),this.element=b,this.unique="shuffle_"+B++,this._fire(D.EventType.LOADING),this._init(),g(function(){this.initialized=!0,this._fire(D.EventType.DONE)},this,16)};return D.EventType={LOADING:"loading",DONE:"done",LAYOUT:"layout",REMOVED:"removed"},D.ClassName={BASE:t,SHUFFLE_ITEM:"shuffle-item",FILTERED:"filtered",CONCEALED:"concealed"},D.options={group:u,speed:250,easing:"ease-out",itemSelector:"",sizer:null,gutterWidth:0,columnWidth:0,delimeter:null,buffer:0,columnThreshold:s?.01:.1,initialSort:null,throttle:e,throttleTime:300,sequentialFadeDelay:150,supported:!1},D.settings={useSizer:!1,itemCss:{position:"absolute",top:0,left:0,visibility:"visible"},revealAppendedDelay:300,lastSort:{},lastFilter:u,enabled:!0,destroyed:!1,initialized:!1,_animations:[],_transitions:[],_isMovementCanceled:!1,styleQueue:[]},D.Point=z,D._getItemTransformString=function(a,b){return a&&null!==a.x&&null!==a.y?r?"translate3d("+a.x+"px, "+a.y+"px, 0) scale3d("+b+", "+b+", 1)":"translate("+a.x+"px, "+a.y+"px) scale("+b+")":void 0},D._getNumberStyle=function(b,c,d){if(s){d=d||y(b,null);var e=D._getFloat(d[c]);return A||"width"!==c?A||"height"!==c||(e+=D._getFloat(d.paddingTop)+D._getFloat(d.paddingBottom)+D._getFloat(d.borderTopWidth)+D._getFloat(d.borderBottomWidth)):e+=D._getFloat(d.paddingLeft)+D._getFloat(d.paddingRight)+D._getFloat(d.borderLeftWidth)+D._getFloat(d.borderRightWidth),e}return D._getFloat(a(b).css(c))},D._getFloat=function(a){return j(parseFloat(a))},D._getOuterWidth=function(a,b){var c=y(a,null),d=D._getNumberStyle(a,"width",c);if(b){var e=D._getNumberStyle(a,"marginLeft",c),f=D._getNumberStyle(a,"marginRight",c);d+=e+f}return d},D._getOuterHeight=function(a,b){var c=y(a,null),d=D._getNumberStyle(a,"height",c);if(b){var e=D._getNumberStyle(a,"marginTop",c),f=D._getNumberStyle(a,"marginBottom",c);d+=e+f}return d},D._skipTransition=function(a,b,c){var d=a.style[n];a.style[n]="0ms",b.call(c);var e=a.offsetWidth;e=null,a.style[n]=d},D.prototype._init=function(){this.$items=this._getItems(),this.sizer=this._getElementOption(this.sizer),this.sizer&&(this.useSizer=!0),this.$el.addClass(D.ClassName.BASE),this._initItems(),C.on("resize."+t+"."+this.unique,this._getResizeFunction());var a=this.$el.css(["position","overflow"]),b=D._getOuterWidth(this.element);this._validateStyles(a),this._setColumns(b),this.shuffle(this.group,this.initialSort),this.supported&&g(function(){this._setTransitions(),this.element.style[l]="height "+this.speed+"ms "+this.easing},this)},D.prototype._getResizeFunction=function(){var b=a.proxy(this._onResize,this);return this.throttle?this.throttle(b,this.throttleTime):b},D.prototype._getElementOption=function(a){return"string"==typeof a?this.$el.find(a)[0]||null:a&&a.nodeType&&1===a.nodeType?a:a&&a.jquery?a[0]:null},D.prototype._validateStyles=function(a){"static"===a.position&&(this.element.style.position="relative"),"hidden"!==a.overflow&&(this.element.style.overflow="hidden")},D.prototype._filter=function(a,b){a=a||this.lastFilter,b=b||this.$items;var c=this._getFilteredSets(a,b);return this._toggleFilterClasses(c.filtered,c.concealed),this.lastFilter=a,"string"==typeof a&&(this.group=a),c.filtered},D.prototype._getFilteredSets=function(b,c){var d=a(),e=a();return b===u?d=c:f(c,function(c){var f=a(c);this._doesPassFilter(b,f)?d=d.add(f):e=e.add(f)},this),{filtered:d,concealed:e}},D.prototype._doesPassFilter=function(b,c){if("function"==typeof b)return b.call(c[0],c,this);var d=c.data(v),e=null===this.delimeter||Array.isArray(d)?d:d.toString().split(this.delimeter);return a.inArray(b,e)>-1},D.prototype._toggleFilterClasses=function(a,b){a.removeClass(D.ClassName.CONCEALED).addClass(D.ClassName.FILTERED),b.removeClass(D.ClassName.FILTERED).addClass(D.ClassName.CONCEALED)},D.prototype._initItems=function(a){a=a||this.$items,a.addClass([D.ClassName.SHUFFLE_ITEM,D.ClassName.FILTERED].join(" ")),a.css(this.itemCss).data("point",new z).data("scale",w)},D.prototype._updateItemCount=function(){this.visibleItems=this._getFilteredItems().length},D.prototype._setTransition=function(a){a.style[l]=q+" "+this.speed+"ms "+this.easing+", opacity "+this.speed+"ms "+this.easing},D.prototype._setTransitions=function(a){a=a||this.$items,f(a,function(a){this._setTransition(a)},this)},D.prototype._setSequentialDelay=function(a){this.supported&&f(a,function(a,b){a.style[m]="0ms,"+(b+1)*this.sequentialFadeDelay+"ms"},this)},D.prototype._getItems=function(){return this.$el.children(this.itemSelector)},D.prototype._getFilteredItems=function(){return this.$items.filter("."+D.ClassName.FILTERED)},D.prototype._getConcealedItems=function(){return this.$items.filter("."+D.ClassName.CONCEALED)},D.prototype._getColumnSize=function(a,b){var c;return c="function"==typeof this.columnWidth?this.columnWidth(a):this.useSizer?D._getOuterWidth(this.sizer):this.columnWidth?this.columnWidth:this.$items.length>0?D._getOuterWidth(this.$items[0],!0):a,0===c&&(c=a),c+b},D.prototype._getGutterSize=function(a){var b;return b="function"==typeof this.gutterWidth?this.gutterWidth(a):this.useSizer?D._getNumberStyle(this.sizer,"marginLeft"):this.gutterWidth},D.prototype._setColumns=function(b){var c=b||D._getOuterWidth(this.element);window.cvp_sf_fixdropcol&&(c=a(this.element).width());var d=this._getGutterSize(c),e=this._getColumnSize(c,d),f=(c+d)/e;Math.abs(Math.round(f)-f)<this.columnThreshold&&(f=Math.round(f)),this.cols=Math.max(Math.floor(f),1),this.containerWidth=c,this.colWidth=e,window.cvp_sf_debug_width&&console.log(c,this.cols,this.colWidth)},D.prototype._setContainerSize=function(){this.$el.css("height",this._getContainerSize())},D.prototype._getContainerSize=function(){return h(this.positions)},D.prototype._fire=function(a,b){this.$el.trigger(a+"."+t,b&&b.length?b:[this])},D.prototype._resetCols=function(){var a=this.cols;for(this.positions=[];a--;)this.positions.push(0)},D.prototype._layout=function(a,b){f(a,function(a){this._layoutItem(a,!!b)},this),this._processStyleQueue(),this._setContainerSize()},D.prototype._layoutItem=function(b,c){var d=a(b),e=d.data(),f=e.point,g=e.scale,h={width:D._getOuterWidth(b,!0),height:D._getOuterHeight(b,!0)},i=this._getItemPosition(h);z.equals(f,i)&&g===w||(e.point=i,e.scale=w,this.styleQueue.push({$item:d,point:i,scale:w,opacity:c?0:1,skipTransition:c||0===this.speed,callfront:function(){c||d.css("visibility","visible")},callback:function(){c&&d.css("visibility","hidden")}}))},D.prototype._getItemPosition=function(a){for(var b=this._getColumnSpan(a.width,this.colWidth,this.cols),c=this._getColumnSet(b,this.cols),d=this._getShortColumn(c,this.buffer),e=new z(this.colWidth*d,c[d]),f=c[d]+a.height,g=this.cols+1-c.length,h=0;g>h;h++)this.positions[d+h]=f;return e},D.prototype._getColumnSpan=function(a,b,c){var d=a/b;return Math.abs(Math.round(d)-d)<this.columnThreshold&&(d=Math.round(d)),Math.min(Math.ceil(d),c)},D.prototype._getColumnSet=function(a,b){if(1===a)return this.positions;for(var c=b+1-a,d=[],e=0;c>e;e++)d[e]=h(this.positions.slice(e,e+a));return d},D.prototype._getShortColumn=function(a,b){for(var c=i(a),d=0,e=a.length;e>d;d++)if(a[d]>=c-b&&a[d]<=c+b)return d;return 0},D.prototype._shrink=function(b){var c=b||this._getConcealedItems();f(c,function(b){var c=a(b),d=c.data();d.scale!==x&&(d.scale=x,this.styleQueue.push({$item:c,point:d.point,scale:x,opacity:0,callback:function(){c.css("visibility","hidden")}}))},this)},D.prototype._onResize=function(){if(this.enabled&&!this.destroyed){var b=D._getOuterWidth(this.element);a(this.element).is(":hidden")||b===this.containerWidth||setTimeout(a.proxy(function(){this.update()},this),window.cvp_sf_timeout||500)}},D.prototype._getStylesForTransition=function(a){var b={opacity:a.opacity};return this.supported?b[p]=D._getItemTransformString(a.point,a.scale):a.point&&(b.left=a.point.x,b.top=a.point.y),b},D.prototype._transition=function(b){var c=this._getStylesForTransition(b);this._startItemAnimation(b.$item,c,b.callfront||a.noop,b.callback||a.noop)},D.prototype._startItemAnimation=function(b,c,d,e){function f(b){b.target===b.currentTarget&&(a(b.target).off(o,f),g._removeTransitionReference(h),e())}var g=this,h={$element:b,handler:f};if(d(),!this.initialized)return b.css(c),void e();if(b.hasClass(D.ClassName.CONCEALED)&&(c={opacity:0}),this.supported||this.cvp_appending||window.cvp_sf_disable_animation)b.css(c),b.on(o,f),this._transitions.push(h);else{var i=b.stop(!0).animate(c,this.speed,"swing",e);this._animations.push(i.promise())}},D.prototype._processStyleQueue=function(b){this.isTransitioning&&this._cancelMovement();var c=a();f(this.styleQueue,function(a){a.skipTransition?this._styleImmediately(a):(c=c.add(a.$item),this._transition(a))},this),c.length>0&&this.initialized&&this.speed>0?(this.isTransitioning=!0,this.supported?this._whenCollectionDone(c,o,this._movementFinished):this._whenAnimationsDone(this._movementFinished)):b||g(this._layoutEnd,this),this.styleQueue.length=0},D.prototype._cancelMovement=function(){this.supported?f(this._transitions,function(a){a.$element.off(o,a.handler)}):(this._isMovementCanceled=!0,this.$items.stop(!0),this._isMovementCanceled=!1),this._transitions.length=0,this.isTransitioning=!1},D.prototype._removeTransitionReference=function(b){var c=a.inArray(b,this._transitions);c>-1&&this._transitions.splice(c,1)},D.prototype._styleImmediately=function(a){D._skipTransition(a.$item[0],function(){a.$item.css(this._getStylesForTransition(a))},this)},D.prototype._movementFinished=function(){this.isTransitioning=!1,this._layoutEnd()},D.prototype._layoutEnd=function(){this._fire(D.EventType.LAYOUT)},D.prototype._addItems=function(a,b,c){this._initItems(a),this.$items=this._getItems(),this._shrink(a),f(this.styleQueue,function(a){a.skipTransition=!0}),this._processStyleQueue(!0),b?this._addItemsToEnd(a,c):this.shuffle(this.lastFilter)},D.prototype._addItemsToEnd=function(a,b){var c=this._filter(null,a),d=c.get();this._updateItemCount(),this._layout(d,!0),b&&this.supported&&this._setSequentialDelay(d),this._revealAppended(d)},D.prototype._revealAppended=function(b){g(function(){f(b,function(b){var c=a(b);this._transition({$item:c,opacity:1,point:c.data("point"),scale:w})},this),this._whenCollectionDone(a(b),o,function(){a(b).css(m,"0ms"),this._movementFinished()})},this,this.revealAppendedDelay)},D.prototype._whenCollectionDone=function(b,c,d){function e(b){b.target===b.currentTarget&&(a(b.target).off(c,e),f++,f===g&&(h._removeTransitionReference(i),d.call(h)))}var f=0,g=b.length,h=this,i={$element:b,handler:e};b.on(c,e),this._transitions.push(i)},D.prototype._whenAnimationsDone=function(b){a.when.apply(null,this._animations).always(a.proxy(function(){this._animations.length=0,this._isMovementCanceled||b.call(this)},this))},D.prototype.shuffle=function(a,b){this.enabled&&(a||(a=u),this._filter(a),this._updateItemCount(),this._shrink(),this.sort(b))},D.prototype.sort=function(a){if(this.enabled){this._resetCols();var b=a||this.lastSort,c=this._getFilteredItems().cvp_sorted(b);this._layout(c),this.lastSort=b}},D.prototype.update=function(a){this.enabled&&(a||this._setColumns(),this.sort())},D.prototype.layout=function(){this.update(!0)},D.prototype.appended=function(a,b,c){this.cvp_appending=!0,this._addItems(a,b===!0,c!==!1),this.cvp_appending=!1},D.prototype.disable=function(){this.enabled=!1},D.prototype.enable=function(a){this.enabled=!0,a!==!1&&this.update()},D.prototype.remove=function(b){function c(){b.remove(),this.$items=this._getItems(),this._updateItemCount(),this._fire(D.EventType.REMOVED,[b,this]),b=null}b.length&&b.jquery&&(this._toggleFilterClasses(a(),b),this._shrink(b),this.sort(),this.$el.one(D.EventType.LAYOUT+"."+t,a.proxy(c,this)))},D.prototype.destroy=function(){C.off("."+this.unique),this.$el.removeClass(t).removeAttr("style").removeData(t),this.$items.removeAttr("style").removeData("point").removeData("scale").removeClass([D.ClassName.CONCEALED,D.ClassName.FILTERED,D.ClassName.SHUFFLE_ITEM].join(" ")),this.$items=null,this.$el=null,this.sizer=null,this.element=null,this._transitions=null,this.destroyed=!0},a.fn.cvp_shuffle=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),e=d.data(t);e?"string"==typeof b&&e[b]&&e[b].apply(e,c):(e=new D(this,b),d.data(t,e))})},a.fn.cvp_sorted=function(b){var d=a.extend({},a.fn.cvp_sorted.defaults,b),e=this.get(),f=!1;return e.length?d.randomize?k(e):("function"==typeof d.by&&e.sort(function(b,e){if(f)return 0;var g=d.by(a(b)),h=d.by(a(e));return g===c&&h===c?(f=!0,0):h>g||"sortFirst"===g||"sortLast"===h?-1:g>h||"sortLast"===g||"sortFirst"===h?1:0}),f?this.get():(d.reverse&&e.reverse(),e)):[]},a.fn.cvp_sorted.defaults={reverse:!1,by:null,randomize:!1},D}),/*!
 * TouchSwipe - jQuery Plugin v1.6.18
 * @author Matt Bryson http://www.github.com/mattbryson
 * @license
 * Copyright (c) 2010-2015 Matt Bryson
 * Dual licensed under the MIT or GPL Version 2 licenses.
 */
!function(a){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],a):a("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(a){"use strict";function b(b){return!b||void 0!==b.allowPageScroll||void 0===b.swipe&&void 0===b.swipeStatus||(b.allowPageScroll=k),void 0!==b.click&&void 0===b.tap&&(b.tap=b.click),b||(b={}),b=a.extend({},a.fn.cvp_swipe.defaults,b),this.each(function(){var d=a(this),e=d.data(C);e||(e=new c(this,b),d.data(C,e))})}function c(b,c){function d(b){if(!(jb()||a(b.target).closest(c.excludedElements,Tb).length>0)){var d=b.originalEvent?b.originalEvent:b;if(!d.pointerType||"mouse"!=d.pointerType||0!=c.fallbackToMouseEvents){var e,f=d.touches,g=f?f[0]:d;return Ub=v,f?Vb=f.length:c.preventDefaultEvents!==!1&&b.preventDefault(),Jb=0,Kb=null,Lb=null,Rb=null,Mb=0,Nb=0,Ob=0,Pb=1,Qb=0,Sb=qb(),hb(),lb(0,g),!f||Vb===c.fingers||c.fingers===t||R()?(Xb=zb(),2==Vb&&(lb(1,f[1]),Nb=Ob=tb(Wb[0].start,Wb[1].start)),(c.swipeStatus||c.pinchStatus)&&(e=J(d,Ub))):e=!1,e===!1?(Ub=y,J(d,Ub),e):(c.hold&&(bc=setTimeout(a.proxy(function(){Tb.trigger("hold",[d.target]),c.hold&&(e=c.hold.call(Tb,d,d.target))},this),c.longTapThreshold)),kb(!0),null)}}}function D(a){var b=a.originalEvent?a.originalEvent:a;if(Ub!==x&&Ub!==y&&!ib()){var d,e=b.touches,f=e?e[0]:b,g=mb(f);if(Yb=zb(),e&&(Vb=e.length),c.hold&&clearTimeout(bc),Ub=w,2==Vb&&(0==Nb?(lb(1,e[1]),Nb=Ob=tb(Wb[0].start,Wb[1].start)):(mb(e[1]),Ob=tb(Wb[0].end,Wb[1].end),Rb=vb(Wb[0].end,Wb[1].end)),Pb=ub(Nb,Ob),Qb=Math.abs(Nb-Ob)),Vb===c.fingers||c.fingers===t||!e||R()){if(Kb=yb(g.start,g.end),Lb=yb(g.last,g.end),P(a,Lb),Jb=wb(g.start,g.end),Mb=sb(),ob(Kb,Jb),d=J(b,Ub),!c.triggerOnTouchEnd||c.triggerOnTouchLeave){var h=!0;if(c.triggerOnTouchLeave){var i=Ab(this);h=Bb(g.end,i)}!c.triggerOnTouchEnd&&h?Ub=I(w):c.triggerOnTouchLeave&&!h&&(Ub=I(x)),Ub!=y&&Ub!=x||J(b,Ub)}}else Ub=y,J(b,Ub);d===!1&&(Ub=y,J(b,Ub))}}function E(a){var b=a.originalEvent?a.originalEvent:a,d=b.touches;if(d){if(d.length&&!ib())return gb(b),!0;if(d.length&&ib())return!0}return ib()&&(Vb=$b),Yb=zb(),Mb=sb(),M()||!L()?(Ub=y,J(b,Ub)):c.triggerOnTouchEnd||c.triggerOnTouchEnd===!1&&Ub===w?(c.preventDefaultEvents!==!1&&a.preventDefault(),Ub=x,J(b,Ub)):!c.triggerOnTouchEnd&&Y()?(Ub=x,K(b,Ub,o)):Ub===w&&(Ub=y,J(b,Ub)),kb(!1),null}function F(){Vb=0,Yb=0,Xb=0,Nb=0,Ob=0,Pb=1,hb(),kb(!1)}function G(a){var b=a.originalEvent?a.originalEvent:a;c.triggerOnTouchLeave&&(Ub=I(x),J(b,Ub))}function H(){Tb.off(Eb,d),Tb.off(Ib,F),Tb.off(Fb,D),Tb.off(Gb,E),Hb&&Tb.off(Hb,G),kb(!1)}function I(a){var b=a,d=O(),e=L(),f=M();return!d||f?b=y:!e||a!=w||c.triggerOnTouchEnd&&!c.triggerOnTouchLeave?!e&&a==x&&c.triggerOnTouchLeave&&(b=y):b=x,b}function J(a,b){var c,d=a.touches;return(V()||U())&&(c=K(a,b,m)),(S()||R())&&c!==!1&&(c=K(a,b,n)),eb()&&c!==!1?c=K(a,b,p):fb()&&c!==!1?c=K(a,b,q):db()&&c!==!1&&(c=K(a,b,o)),b===y&&F(a),b===x&&(d?d.length||F(a):F(a)),c}function K(b,d,k){var l;if(k==m){if(Tb.trigger("swipeStatus",[d,Kb||null,Jb||0,Mb||0,Vb,Wb,Lb]),c.swipeStatus&&(l=c.swipeStatus.call(Tb,b,d,Kb||null,Jb||0,Mb||0,Vb,Wb,Lb),l===!1))return!1;if(d==x&&T()){if(clearTimeout(ac),clearTimeout(bc),Tb.trigger("swipe",[Kb,Jb,Mb,Vb,Wb,Lb]),c.swipe&&(l=c.swipe.call(Tb,b,Kb,Jb,Mb,Vb,Wb,Lb),l===!1))return!1;switch(Kb){case e:Tb.trigger("swipeLeft",[Kb,Jb,Mb,Vb,Wb,Lb]),c.swipeLeft&&(l=c.swipeLeft.call(Tb,b,Kb,Jb,Mb,Vb,Wb,Lb));break;case f:Tb.trigger("swipeRight",[Kb,Jb,Mb,Vb,Wb,Lb]),c.swipeRight&&(l=c.swipeRight.call(Tb,b,Kb,Jb,Mb,Vb,Wb,Lb));break;case g:Tb.trigger("swipeUp",[Kb,Jb,Mb,Vb,Wb,Lb]),c.swipeUp&&(l=c.swipeUp.call(Tb,b,Kb,Jb,Mb,Vb,Wb,Lb));break;case h:Tb.trigger("swipeDown",[Kb,Jb,Mb,Vb,Wb,Lb]),c.swipeDown&&(l=c.swipeDown.call(Tb,b,Kb,Jb,Mb,Vb,Wb,Lb))}}}if(k==n){if(Tb.trigger("pinchStatus",[d,Rb||null,Qb||0,Mb||0,Vb,Pb,Wb]),c.pinchStatus&&(l=c.pinchStatus.call(Tb,b,d,Rb||null,Qb||0,Mb||0,Vb,Pb,Wb),l===!1))return!1;if(d==x&&Q())switch(Rb){case i:Tb.trigger("pinchIn",[Rb||null,Qb||0,Mb||0,Vb,Pb,Wb]),c.pinchIn&&(l=c.pinchIn.call(Tb,b,Rb||null,Qb||0,Mb||0,Vb,Pb,Wb));break;case j:Tb.trigger("pinchOut",[Rb||null,Qb||0,Mb||0,Vb,Pb,Wb]),c.pinchOut&&(l=c.pinchOut.call(Tb,b,Rb||null,Qb||0,Mb||0,Vb,Pb,Wb))}}return k==o?d!==y&&d!==x||(clearTimeout(ac),clearTimeout(bc),Z()&&!ab()?(_b=zb(),ac=setTimeout(a.proxy(function(){_b=null,Tb.trigger("tap",[b.target]),c.tap&&(l=c.tap.call(Tb,b,b.target))},this),c.doubleTapThreshold)):(_b=null,Tb.trigger("tap",[b.target]),c.tap&&(l=c.tap.call(Tb,b,b.target)))):k==p?d!==y&&d!==x||(clearTimeout(ac),clearTimeout(bc),_b=null,Tb.trigger("doubletap",[b.target]),c.doubleTap&&(l=c.doubleTap.call(Tb,b,b.target))):k==q&&(d!==y&&d!==x||(clearTimeout(ac),_b=null,Tb.trigger("longtap",[b.target]),c.longTap&&(l=c.longTap.call(Tb,b,b.target)))),l}function L(){var a=!0;return null!==c.threshold&&(a=Jb>=c.threshold),a}function M(){var a=!1;return null!==c.cancelThreshold&&null!==Kb&&(a=pb(Kb)-Jb>=c.cancelThreshold),a}function N(){return null!==c.pinchThreshold?Qb>=c.pinchThreshold:!0}function O(){var a;return a=c.maxTimeThreshold?!(Mb>=c.maxTimeThreshold):!0}function P(a,b){if(c.preventDefaultEvents!==!1)if(c.allowPageScroll===k)a.preventDefault();else{var d=c.allowPageScroll===l;switch(b){case e:(c.swipeLeft&&d||!d&&c.allowPageScroll!=r)&&a.preventDefault();break;case f:(c.swipeRight&&d||!d&&c.allowPageScroll!=r)&&a.preventDefault();break;case g:(c.swipeUp&&d||!d&&c.allowPageScroll!=s)&&a.preventDefault();break;case h:(c.swipeDown&&d||!d&&c.allowPageScroll!=s)&&a.preventDefault();break;case k:}}}function Q(){var a=W(),b=X(),c=N();return a&&b&&c}function R(){return!!(c.pinchStatus||c.pinchIn||c.pinchOut)}function S(){return!(!Q()||!R())}function T(){var a=O(),b=L(),c=W(),d=X(),e=M(),f=!e&&d&&c&&b&&a;return f}function U(){return!!(c.swipe||c.swipeStatus||c.swipeLeft||c.swipeRight||c.swipeUp||c.swipeDown)}function V(){return!(!T()||!U())}function W(){return Vb===c.fingers||c.fingers===t||!z}function X(){return 0!==Wb[0].end.x}function Y(){return!!c.tap}function Z(){return!!c.doubleTap}function $(){return!!c.longTap}function _(){if(null==_b)return!1;var a=zb();return Z()&&a-_b<=c.doubleTapThreshold}function ab(){return _()}function bb(){return(1===Vb||!z)&&(isNaN(Jb)||Jb<c.threshold)}function cb(){return Mb>c.longTapThreshold&&u>Jb}function db(){return!(!bb()||!Y())}function eb(){return!(!_()||!Z())}function fb(){return!(!cb()||!$())}function gb(a){Zb=zb(),$b=a.touches.length+1}function hb(){Zb=0,$b=0}function ib(){var a=!1;if(Zb){var b=zb()-Zb;b<=c.fingerReleaseThreshold&&(a=!0)}return a}function jb(){return!(Tb.data(C+"_intouch")!==!0)}function kb(a){Tb&&(a===!0?(Tb.on(Fb,D),Tb.on(Gb,E),Hb&&Tb.on(Hb,G)):(Tb.off(Fb,D,!1),Tb.off(Gb,E,!1),Hb&&Tb.off(Hb,G,!1)),Tb.data(C+"_intouch",a===!0))}function lb(a,b){var c={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return c.start.x=c.last.x=c.end.x=b.pageX||b.clientX,c.start.y=c.last.y=c.end.y=b.pageY||b.clientY,Wb[a]=c,c}function mb(a){var b=void 0!==a.identifier?a.identifier:0,c=nb(b);return null===c&&(c=lb(b,a)),c.last.x=c.end.x,c.last.y=c.end.y,c.end.x=a.pageX||a.clientX,c.end.y=a.pageY||a.clientY,c}function nb(a){return Wb[a]||null}function ob(a,b){a!=k&&(b=Math.max(b,pb(a)),Sb[a].distance=b)}function pb(a){return Sb[a]?Sb[a].distance:void 0}function qb(){var a={};return a[e]=rb(e),a[f]=rb(f),a[g]=rb(g),a[h]=rb(h),a}function rb(a){return{direction:a,distance:0}}function sb(){return Yb-Xb}function tb(a,b){var c=Math.abs(a.x-b.x),d=Math.abs(a.y-b.y);return Math.round(Math.sqrt(c*c+d*d))}function ub(a,b){var c=b/a*1;return c.toFixed(2)}function vb(){return 1>Pb?j:i}function wb(a,b){return Math.round(Math.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2)))}function xb(a,b){var c=a.x-b.x,d=b.y-a.y,e=Math.atan2(d,c),f=Math.round(180*e/Math.PI);return 0>f&&(f=360-Math.abs(f)),f}function yb(a,b){if(Cb(a,b))return k;var c=xb(a,b);return 45>=c&&c>=0?e:360>=c&&c>=315?e:c>=135&&225>=c?f:c>45&&135>c?h:g}function zb(){var a=new Date;return a.getTime()}function Ab(b){b=a(b);var c=b.offset(),d={left:c.left,right:c.left+b.outerWidth(),top:c.top,bottom:c.top+b.outerHeight()};return d}function Bb(a,b){return a.x>b.left&&a.x<b.right&&a.y>b.top&&a.y<b.bottom}function Cb(a,b){return a.x==b.x&&a.y==b.y}var c=a.extend({},c),Db=z||B||!c.fallbackToMouseEvents,Eb=Db?B?A?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Fb=Db?B?A?"MSPointerMove":"pointermove":"touchmove":"mousemove",Gb=Db?B?A?"MSPointerUp":"pointerup":"touchend":"mouseup",Hb=Db?B?"mouseleave":null:"mouseleave",Ib=B?A?"MSPointerCancel":"pointercancel":"touchcancel",Jb=0,Kb=null,Lb=null,Mb=0,Nb=0,Ob=0,Pb=1,Qb=0,Rb=0,Sb=null,Tb=a(b),Ub="start",Vb=0,Wb={},Xb=0,Yb=0,Zb=0,$b=0,_b=0,ac=null,bc=null;try{Tb.on(Eb,d),Tb.on(Ib,F)}catch(cc){a.error("events not supported "+Eb+","+Ib+" on jQuery.swipe")}this.enable=function(){return this.disable(),Tb.on(Eb,d),Tb.on(Ib,F),Tb},this.disable=function(){return H(),Tb},this.destroy=function(){H(),Tb.data(C,null),Tb=null},this.option=function(b,d){if("object"==typeof b)c=a.extend(c,b);else if(void 0!==c[b]){if(void 0===d)return c[b];c[b]=d}else{if(!b)return c;a.error("Option "+b+" does not exist on jQuery.swipe.options")}return null}}var d="1.6.18",e="left",f="right",g="up",h="down",i="in",j="out",k="none",l="auto",m="swipe",n="pinch",o="tap",p="doubletap",q="longtap",r="horizontal",s="vertical",t="all",u=10,v="start",w="move",x="end",y="cancel",z="ontouchstart"in window,A=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!z,B=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!z,C="TouchSwipe",D={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0};a.fn.cvp_swipe=function(c){var d=a(this),e=d.data(C);if(e&&"string"==typeof c){if(e[c])return e[c].apply(e,Array.prototype.slice.call(arguments,1));a.error("Method "+c+" does not exist on jQuery.swipe")}else if(e&&"object"==typeof c)e.option.apply(e,arguments);else if(!(e||"object"!=typeof c&&c))return b.apply(this,arguments);return d},a.fn.cvp_swipe.version=d,a.fn.cvp_swipe.defaults=D,a.fn.cvp_swipe.phases={PHASE_START:v,PHASE_MOVE:w,PHASE_END:x,PHASE_CANCEL:y},a.fn.cvp_swipe.directions={LEFT:e,RIGHT:f,UP:g,DOWN:h,IN:i,OUT:j},a.fn.cvp_swipe.pageScroll={NONE:k,HORIZONTAL:r,VERTICAL:s,AUTO:l},a.fn.cvp_swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:t}}),/**
 * CVPro JS
 * @author    PT Guy <http://www.contentviewspro.com/>
 * @license   GPL-2.0+
 */
function(a){"use strict";"undefined"==typeof window.PT_CV_PUBLIC&&(window.PT_CV_PUBLIC={}),PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b,c=PT_CV_PUBLIC._prefix,d=function(){};d.cdata={debug:!1,delay_seconds:800,selectors:{wrapper:"."+c+"wrapper",view:"."+c+"view",item:"."+c+"content-item",pagination:"."+c+"pagination-wrapper",sfilter:"."+c+"filter-bar",foption:"."+c+"filter-option"},"class":{sf_active:"active",sf_group_active:"selected",sfilter_taxogroup:c+"groupsf"},_debug:function(a,b){d.cdata.debug&&console.log("<DEBUG> "+a+" : "+("object"==typeof b?JSON.stringify(b):b))}},d._pagination_handle=function(c){var e=function(){PT_CV_PUBLIC.paging=0};if(!c.attr("data-disabled")){var f=parseInt(c.attr("data-nextpages"));if(!f)return void e();b||(b=new a.PT_CV_Public({skip:!0})),b._setup_pagination(c,f,function(){if(e(),!c.closest(d.cdata.selectors.wrapper).find(d.cdata.selectors.sfilter).length){var a=f+1;if(a<=parseInt(c.attr("data-totalpages"))?c.attr("data-nextpages",a):c.remove(),"function"==typeof b._get_paginated_url){var g=b._get_paginated_url(a);c.attr("href",g)}}})}},d.overlay_box=function(b){var d=c+"overlay-box";return"add"===b?'<div class="'+d+'"><img alt="loading" src="'+PT_CV_PUBLIC.loading_image_src+'"></div>':void a("."+d).remove()},d.add_param_tourl=function(a,b){return a+(a.indexOf("?")>=0?"&":"?")+b},d.change_url_wo_reload=function(a){a&&history.pushState(null,null,a)},d.pathname_from_url=function(a){var b=document.createElement("a");b.href=a;var c=b.pathname;return c.startsWith("/")||(c="/"+c),c},d.image_in_viewport=function(a){var b=a[0];return b.getBoundingClientRect().top<=window.innerHeight&&b.getBoundingClientRect().bottom>=0&&"none"!==getComputedStyle(b).display},d.do_lazyload=function(b){var c;c&&clearTimeout(c),c=setTimeout(function(){a(".cvplazy[data-cvpsrc]",b).each(function(){var b=a(this);d.image_in_viewport(b)&&(b.attr("src",b.data("cvpsrc")),b.removeAttr("data-cvpsrc"),b.addClass("cvploaded"),b.data("cvpset")&&(b.attr("srcset",b.data("cvpset")),b.removeAttr("data-cvpset")),b.parent().cvp_imagesLoaded(function(){b.parent().removeClass("cvp-lazy-container"),d.shuffle_update_each(b)}))})},300),a(".cvp-play").on("click",function(b){b.preventDefault();var c=a(this).parent().children("iframe");if(c.length){var e=c.data("cvpsrc");c.attr("src",d.add_param_tourl(e,e.indexOf("soundcloud")>=0?"auto_play=true":"autoplay=true")),c.removeAttr("data-cvpsrc"),a(this).next("img").remove(),a(this).remove()}})},d.shuffle_update_each=function(a){var b=a.closest("."+c+"page");b.data("shuffle")&&(b.data("cv_viewid")||b.data("cv_viewid",d.get_view_id(b)),window["cvpShuffleThrottle"+b.data("cv_viewid")]&&clearTimeout(window["cvpShuffleThrottle"+b.data("cv_viewid")]),window["cvpShuffleThrottle"+b.data("cv_viewid")]=setTimeout(function(){b.cvp_shuffle("appended",a.closest(d.cdata.selectors.item),!1,!1)},300))},d.shuffle_before=function(){},d.get_view_id=function(a){var b=a.is(d.cdata.selectors.view)?a:a.parent(),e=b.attr("id"),f=new RegExp(c+"view-");return e?e.replace(f,""):""},d.shuffle_after=function(b){b.addClass("cvpshuffled"),setTimeout(function(){a(window).trigger("cvpload")},300),a("body").on("cvp-resize",function(){d.hidden_or_not_hidden(b,function(){b.cvp_shuffle("update")})})},d.shuffle_append=function(a,b){a&&a.length&&(a.css({opacity:0}),a.cvp_imagesLoaded(function(){b.cvp_shuffle("appended",a),a.css({opacity:1})}))},d.hidden_or_not_hidden=function(a,b,c,e){var f=d.cdata.delay_seconds;setTimeout(function(){if(!a.is(":visible")||a.is(":hidden")){if(!a.hasClass("cvp-hidden")){a.addClass("cvp-hidden");var d=setInterval(function(){a.width()>0&&(clearInterval(d),a.removeClass("cvp-hidden"),"function"==typeof b&&b())},f)}}else"function"==typeof c&&c()},e?e:f)},d.get_device_by_width=function(){var a=null;return a=window.matchMedia("(min-width: 992px)").matches?"pc":window.matchMedia("(min-width: 768px)").matches?"tablet":"mobile"},d.dynamic_init=function(){new a.PT_CV_Pinterest,new a.PT_CV_Glossary;var b="."+c+"scrollable";a(".carousel-control.left",b).off("click").on("click",function(){"function"==typeof jQuery.fn.cvcarousel?a(this).parent().cvcarousel("prev"):a(this).parent().carousel("prev")}),a(".carousel-control.right",b).off("click").on("click",function(){"function"==typeof jQuery.fn.cvcarousel?a(this).parent().cvcarousel("next"):a(this).parent().carousel("next")})},d.lineup_fields=function(b,d){var e=new Array("title","content","meta-fields","ctf-list"),f="."+c+"readmore:not(."+c+"textlink)",g=function(b){b.cvp_imagesLoaded(function(){var g;a.each(e,function(e,h){var i=b.find("."+c+h);if(!("resized"!==d&&i.attr("style")&&i.attr("style").indexOf("height")>=0)){var j="content"===h;if(j&&(g=b.find(f)),i.length){"resized"===d&&(i.height("auto"),j&&g.css("position","relative"));var k=i.map(function(){return a(this).height()}).get(),l=Math.max.apply(null,k);parseInt(l)&&(i.height(l),j&&g.css({position:"absolute",bottom:"0px"}))}}})})};g(b)},window.cvp_common=d}(jQuery),function(a){"use strict";PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c=window.cvp_common,d=!1,e={sf_term:{},sf_solved_term:[],sf_triggered_term:[],sf_term_taxo:{},sf_taxo_operator:{},separator:" "},f={reset_view:function(a){e.sf_term[a]={},e.sf_solved_term[a]=[],e.sf_triggered_term[a]=[],e.sf_term_taxo[a]={}},set_term:function(a,b){e.sf_term[a]=b,c.cdata._debug("set term",f.get_val("sf_term",a))},set_solved_term:function(a){e.sf_solved_term[a]=e.sf_solved_term[a]||[];var b=f.get_val("sf_term",a);e.sf_solved_term[a].indexOf(b)<0&&e.sf_solved_term[a].push(b)},set_sf_triggered_term:function(a){e.sf_triggered_term[a]=e.sf_triggered_term[a]||[];var b=f.get_val("sf_term",a);e.sf_triggered_term[a].indexOf(b)<0&&e.sf_triggered_term[a].push(b)},do_sf_triggered_term:function(b,c){var d=f.get_val("sf_triggered_term",b),e=f.get_val("sf_term",b);d.length>0&&a.inArray(e,d)>=0||(f.set_sf_triggered_term(b),c())},set_stt:function(a,b,c){e.sf_term_taxo[a]=e.sf_term_taxo[a]||{},e.sf_term_taxo[a][b]=e.sf_term_taxo[a][b]||[],e.sf_term_taxo[a][b].indexOf(c)<0&&e.sf_term_taxo[a][b].push(c)},set_operator:function(a,b,c){e.sf_taxo_operator[a]=e.sf_taxo_operator[a]||{},e.sf_taxo_operator[a][b]=c},is_empty:function(a){var b=f.get_val("sf_term",a);return null===b||""===b||"all"===b},get_val:function(a,b){return e[a][b]},reset_val:function(a){e.sf_term_taxo[a]={},e.sf_taxo_operator[a]={}},setWindowData:function(a,b){window.cvdata=window.cvdata||{},window.cvdata.sf_taxo=JSON.stringify(e.sf_term_taxo),window.cvdata.sf_opera=JSON.stringify(e.sf_taxo_operator),window.cvdata.sf_pids=window.cvdata.sf_pids||{},a&&(window.cvdata.sf_pids[a]=JSON.stringify(b))}};a.CVP_Shuffle_Filter=function(){this.init()},a.CVP_Shuffle_Filter.prototype={init:function(){var d=this;a(c.cdata.selectors.wrapper).each(function(){var e=a(this).find(c.cdata.selectors.sfilter);if(e.length){var g=d._shuffle_get_items(e.first()),h=c.get_view_id(g);c.shuffle_before(g),f.reset_view(h),g.cvp_imagesLoaded(function(){f.set_term(h,"all");var a=e.hasClass(b+"filter-group");g.addClass(a?c.cdata["class"].sfilter_taxogroup:""),d._shuffle_main(e,g,h,a),d._shuffle_actions(g,h)}),c.hidden_or_not_hidden(g,function(){g.cvp_shuffle("update")})}}),a("body").on(b+"before-pagination",function(){f.setWindowData(0,0)}),a("body").on(b+"pagination-finished "+b+"pagination-finished-simple",function(a,b,e){if(b){var f=b.closest(c.cdata.selectors.wrapper).find(c.cdata.selectors.sfilter);if(f.length){var g=d._shuffle_get_items(f.first());g.trigger("cvpsf-paginated",[e])}}})},_shuffle_init:function(a){a.cvp_shuffle({itemSelector:c.cdata.selectors.item,delimeter:e.separator,supported:a.parent().hasClass(b+"collapsible")?!0:!1})},_shuffle_get_items:function(d){null===d&&(d=a(c.cdata.selectors.sfilter));var e=d.parent().find(c.cdata.selectors.view);return e.find("."+b+"page").length?e.find("."+b+"page"):e},_filter_this_item:function(b,c,d){var e=a.map(c,function(c){return a.inArray(c.toString(),b)<0?null:c});return"or"===d?e.length:e.length===c.length},_get_item_groups:function(a){var b=a.data("groups");return b.toString().split(e.separator)},_get_taxonomy:function(a){var c=a.attr("id"),d=new RegExp(b+"filter-bar-[^-]+-");return c?c.replace(d,""):""},_get_term_to_filter:function(a,b,c,d,e){var g=b.data("value");g&&"all"!==g&&(c.push(g),d&&f.set_stt(a,e,g))},_pagination_toggle:function(a,b){var d=a.closest(c.cdata.selectors.wrapper).find(c.cdata.selectors.pagination);b?d.show():(d.hide(),c.cdata._debug("pagination HIDE",1))},_is_sf_type:function(a,b,d){if(!Object.keys(f.get_val("sf_term_taxo",d)).length)return!1;var e=b.hasClass(c.cdata["class"].sfilter_taxogroup);return"group"===a?e:!e},_no_item_found:function(b){if(window.cvp_sf_nopost){var d={},e=b.closest(c.cdata.selectors.wrapper),f="cvpsfnpf";return d.init=function(){if(!e.find("."+f).length){var b=a("<div/>",{"class":f,text:PT_CV_PUBLIC.sf_no_post_found,style:"display:none"});e.append(b)}},d.handle=function(){b.find(".filtered").length?e.find("."+f).hide():e.find("."+f).show()},d.init(),d.handle(),d}},_do_shuffle:function(d,e){var g=this,h=d.length;if(h>0)if(1===h)e.cvp_shuffle("shuffle",""+d[0]);else{var i=c.get_view_id(e),j=g._is_sf_type("group",e,i);e.cvp_shuffle("shuffle",function(c){var h=g._get_item_groups(c),k=e.data("sfop");if(j){var l="or"===k,m=l?!1:!0;return a.each(f.get_val("sf_term_taxo",i),function(c,d){if(d.length){var e=a('[data-taxonomy="'+c+'"]').parent().find("."+b+"filter-operator input:checked").val(),j=g._filter_this_item(h,d,e)?!0:!1;m=l?m||j:m&&j,f.set_operator(i,c,e)}}),m}return g._filter_this_item(h,d,k)})}else e.cvp_shuffle("shuffle","all")},_shuffle_steps:function(a,b,c){var d=a();this._do_shuffle(d,b),c!==!1&&b.trigger("cvpsf-toggle-pagination",[d.join()])},_shuffle_main:function(d,e,g,h){var i=this;i._shuffle_init(e);var j=function(){var e=[];return f.reset_val(g),h?d.find("."+b+"filter-title").each(function(){var b=a(this).data("taxonomy");a(this).parent().find("."+c.cdata["class"].sf_group_active).each(function(){var c=a(this);i._get_term_to_filter(g,c,e,!0,b)})}):d.each(function(){var b=a(this),f=i._get_taxonomy(b),h=b.find("."+c.cdata["class"].sf_active);h.is(c.cdata.selectors.foption)||(h=h.children()),i._get_term_to_filter(g,h,e,d.length,f)}),e};window.sf_enable_trigger||a(c.cdata.selectors.foption,d).off("click");var k=c.cdata["class"].sf_active;a(c.cdata.selectors.foption,d).on("click",function(b){b.preventDefault(),a(this).hasClass(k)||a(this).parent().hasClass(k)||i._shuffle_styles(a(this),function(){i._shuffle_steps(j,e)})}),h&&a("."+b+"filter-operator input",d).on("change",function(){i._shuffle_steps(j,e,!1)}),a("body").trigger("cvp-shuffle-main")},_shuffle_actions:function(e,g){var h=this;e.on("cvpsf-toggle-pagination",function(b,c){var d=f.get_val("sf_solved_term",g);d.length>0&&a.inArray(c,d)>=0?(f.set_term(g,null),h._pagination_toggle(e)):(f.set_term(g,c),h._pagination_toggle(e,"show"))}),e.on("layout.shuffle",function(i,j){c.shuffle_after(e);var k=[];if(j.$items.each(function(){a(this).hasClass("filtered")&&k.push(a(this).data("pid"))}),f.setWindowData(g,k),!f.is_empty(g)&&void 0!==e.data("sftp")){var l=e.closest(c.cdata.selectors.wrapper).find("."+b+"more:visible");l.length&&f.do_sf_triggered_term(g,function(){c.cdata._debug("Trigger pagination",l.length),c._pagination_handle(l),d=!0})}h._no_item_found(e)}),e.on("cvpsf-paginated",function(b,i){var j,k=h._is_sf_type("others-multi",e,g),l=a.map(f.get_val("sf_term_taxo",g),function(a){return a}),m=e.data("sfop"),n=0;i.each(function(){var b=a(this).data("pid");if(b){n++;var c=e.find('[data-pid="'+b+'"]');if(1===c.length){var d=1;if(k){var f=h._get_item_groups(c);d=h._filter_this_item(f,l,m)}d&&(j="undefined"==typeof j?c:j.add(c))}else c.length>1&&c.not(":first").remove()}});var o=j&&j.length;o&&c.shuffle_append(j,e),e.trigger("cvpsf-solve-term",[o||n]),d=!1}),e.on("cvpsf-solve-term",function(a,b){var c=parseInt(e.data("sfpp")),d=e.data("sfshowall");(void 0!==d&&!b||void 0===d&&(c>b||!b))&&(f.set_solved_term(g),h._pagination_toggle(e))})},_shuffle_styles:function(b,e){if(!d){var f=function(a,b){var d=c.cdata["class"].sf_active;a.children("."+d).removeClass(d),b.addClass(d)},g=b.data("sftype");switch(g){case"button":f(b.parent(),b);break;case"dropdown":f(b.closest(".dropdown-menu"),b.parent()),b.parents(".btn-group").find(".dropdown-toggle").html(b.text()+' <span class="caret"></span>');break;case"breadcrumb":f(b.closest(".breadcrumb"),b.parent());break;case"group":b.toggleClass(c.cdata["class"].sf_group_active)}a("body").trigger("cvp-shuffle-clicked",[b]),"function"==typeof e&&e()}}}}(jQuery),function(a){"use strict";var b=function(){a(".cvp-replayout").parent('[style*="height: 0px"]').css("height","auto"),a(".cvp-replayout").removeClass("elementor-post elementor-grid-item"),"function"==typeof window.Isotope&&a(".cvp-replayout").parent().data("isotope")&&setTimeout(function(){a(".cvp-replayout").parent().removeClass("masonry_full_width"),a(".cvp-replayout").parent().removeClass("row-isotope"),a(".cvp-replayout").parent().isotope("destroy")},1e3),navigator.userAgent.match("CriOS")&&a(window).on("orientationchange",function(){setTimeout(function(){a(".cvpshuffled").cvp_shuffle("update")},500)}),a("body").on("added_to_cart",function(){a(".woocommerce .ajax_add_to_cart").closest(".cvpshuffled").cvp_shuffle("update")})};a(window).on("load",function(){setTimeout(function(){new b},100)}),a(function(){var b=a.fn.simpleselect;a.fn.simpleselect=function(){return a(this).parent().hasClass("cvp-dropdown")?void a("head").append('<style type="text/css">.pt-cv-wrapper select {-webkit-appearance: menulist; -moz-appearance: menulist; appearance: menulist;}</style>'):b.apply(this,arguments)}})}(jQuery),function(a){"use strict";PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c=window.cvp_common,d=function(b){b||(b=a(c.cdata.selectors.view)),b.each(function(){c.do_lazyload(a(this))})};a(window).on("load scroll resize orientationchange cvpload",function(){new d}),a("body").on(b+"pagination-finished",function(a,b){new d(b)})}(jQuery),function(a){"use strict";PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c=window.cvp_common,d=".cvp-live-filter",e=1,f=0,g=null,h=null,i=PT_CV_PUBLIC.lf__separator||",";a.CVP_LIVE_FILTER=function(){this.init()},a(window).on("load",function(){setTimeout(function(){a(window).on("popstate",function(b){if(a(d).length){var e=b.originalEvent.state&&b.originalEvent.state.query?b.originalEvent.state.query:"";if(e){var f=new a.CVP_LIVE_FILTER;f.get_result(e,a(d).closest(c.cdata.selectors.wrapper))}else window.cvp_lf_disable_state||window.location.hash||window.location.reload()}})},0)}),a.CVP_LIVE_FILTER.prototype={init:function(){var b=this;b.init_lib(),a("input, select",d).on("change",function(){a(this).off("change"),a(this).data("nosubmit")||b.process_filter(a(this),1)}),setTimeout(function(){b.on_click_pagination()},100)},init_lib:function(){var b=this;a(".cvp-range input").each(function(){a(this).cvp_ionRangeSlider({prettify_separator:a(this).data("thousand-separator"),input_values_separator:i,onFinish:function(b){a(b.input).trigger("change")}});var c=a(this).attr("name"),d=b.param_in_url(c),e="cvplf_track_"+c;window[e]=0,d&&(a(this).val(decodeURIComponent(d)),window[e]="changed"),a(this).on("change",function(){var b=a(this),c=b.data("from"),d=b.data("to");b.val(c+i+d),window[e]="changed"})}),this.search_field(),this.date_field(),b.submit_reset()},search_field:function(){var b=this,c=a("[name]",".cvp-search-box");c.on("keypress",function(c){var d=c.which||c.keyCode;13===d&&b.process_filter(a(this),1)});var d=function(){var b=function(a){a.next("span").toggle(Boolean(a.val()))};c.on("keyup",function(){b(a(this))}),b(c)};d()},date_field:function(){var b=a("[class^='cvp-date']",".cvp-live-filter");b.each(function(){a(this).cvp_datepicker({dateFormat:"yy-mm-dd",changeMonth:!0,changeYear:!0});var b=[];a(this).on("change",function(){var c=a(this).closest(".cvp-daterange");c.find("label:not(.hidden) input").each(function(){b.push(a(this).val())});var d=c.find('input[type="hidden"]'),e=b.join(i);d.val(e.trim()!==i?e:""),d.trigger("change")})})},submit_reset:function(){var b=this,f=function(f){var g=f||a(d+":last"),h=g.closest(c.cdata.selectors.wrapper),i="cvp-live-button";if(!h.find("."+i).length&&(h.find(".cvp-range").length||h.find(".cvp-search-box").length||window.cvp_lf_submit_reset)){var j="cvp-live-submit",k="cvp-live-reset",l=window.cvp_lf_submit_text||"Submit",m=window.cvp_lf_reset_text||"Reset";g.after('<div class="'+i+'"><button class="btn-sm btn-success '+j+'">'+l+'</button><button class="btn-sm btn-danger '+k+'">'+m+'</button></div><div class="clear"></div><br>'),window.cvp_lf_is_ajax?window.cvp_lf_is_ajax=0:(a("."+i,h).css("opacity",0),setTimeout(function(){a("."+j,h).text(window.cvp_lf_submit_text||"Submit"),a("."+k,h).text(window.cvp_lf_reset_text||"Reset"),a("."+i,h).css("opacity",1)},100)),a("."+j,h).on("click",function(){b.process_filter(a(this),1)}),a("."+k,h).on("click",function(){e=1,b.get_result("",h)}),a("."+j+", ."+k).prop("tabindex",0),a("."+j+", ."+k).on("keypress",function(b){var c=b.which||b.keyCode;13===c&&a(this).trigger("click")})}};f();var g=[];a(d).each(function(){var b=a(this).data("sid");if(-1===g.indexOf(b)){g.push(b);var c=a(d+'[data-sid="'+b+'"]:last');f(c)}})},get_configuration:function(a,b){var c=a.find(".cvp-live-config");return c.length?c.data(b):null},is_in_sidebar:function(a,b){return b||(b=a.children(c.cdata.selectors.view)),!b.length},is_replacing_layout:function(a){return a.parent().hasClass("cvp-replayout")},before_process:function(a){if(f)return void(h&&h.addClass("active"));a.prepend(c.overlay_box("add"));var b=a.children(c.cdata.selectors.view);b.length&&a.children().first().css("height",parseInt(b.position().top)+10+"px"),(this.is_in_sidebar(a,b)||this.is_replacing_layout(a))&&(window.cvp_lf_reload_url=!0)},process_filter:function(b,d){e=d;var f=b.closest(c.cdata.selectors.wrapper),g=this;window.cvp_lf_changed_filter=b.attr("name")||f.find("[data-nosubmit]").last().attr("name");var h=f.find("input, select").serialize(),j=[],k=[];a.each(h.split("&"),function(a,b){var c=b.split("="),d=c[0],e=c[1];!e||"undefined"!=typeof window["cvplf_track_"+d]&&"changed"!==window["cvplf_track_"+d]||(j[d]="undefined"==typeof j[d]?e:j[d]+i+e)}),"function"==typeof window.cvp_lf_fn_modify_query&&(j=window.cvp_lf_fn_modify_query(j)),j=g.get_current_page(j),Object.keys(j).forEach(function(a){k.push(a+"="+j[a])}),k=k.join("&"),g.get_result(k,f)},param_in_url:function(b){var c,d=window.location.search.replace("?","").split("&");return a.each(d,function(a,d){var e=d.split("=");e[0]===b&&(c=e[1])}),c},update_url:function(a,b){if(window.cvp_lf_no_change_url!==!0){var c,d=window.location.href,e=window.location.search,f=a?"?"+a:"",g=this.get_configuration(b,"submit-to");if(window.location.hash&&(d=d.replace(window.location.hash,"")),c=g?g.indexOf("?")>=0?g+f.replace("?","&"):g+f:e?d.replace(e,f):d+f,c=c.replace(/\/page(d)?\/\d+/,""),window.cvp_lf_reload_url)history.replaceState({query:a},null,c),window.location.href=c;else{var h=history&&history.state&&history.state.query?history.state.query:null;a!==h&&history.pushState({query:a},null,c)}}},get_result:function(b,c){var d=this;if(!window.cvp_lf_processing){window.cvp_lf_processing=!0;var e=a('[data-lfpage="search"]',c).length?"s=":"";e&&!b.match("[&]?s=")&&(b+=b?"&"+e:e);var f=window.cvp_lf_special_url_params||["lang","m","p","posts","w","cat","withcomments","withoutcomments","search","exact","sentence","calendar","page","paged","more","tb","pb","author","order","orderby","year","monthnum","day","hour","minute","second","name","category_name","tag","feed","author_name","static","pagename","page_id","error","attachment","attachment_id","subpost","subpost_id","preview","robots","taxonomy","term","cpage","post_type","embed"];!a("body").hasClass("search")||e||b.match("[?&]s=")||f.push("s"),Array.isArray(f)&&!this.get_configuration(c,"submit-to")&&f.forEach(function(a){var c=new RegExp("[?&]"+a+"=");if(window.location.search.match(c)&&!b.match(c)){var e=encodeURI(d.param_in_url(a));e&&(e=a+"="+e,b+=b?"&"+e:e)}}),d.before_process(c),(PT_CV_PUBLIC.is_admin||!window.cvp_lf_reload_url)&&d.ajax_request(b,c),PT_CV_PUBLIC.is_admin||d.update_url(b,c),window.cvp_lf_processing=!1}},ajax_request:function(c,d){var e=this;a.ajax({type:"POST",url:PT_CV_PUBLIC.ajaxurl,data:{action:"live_filter_reload",query:c,view_data:PT_CV_PUBLIC.is_admin?window.cvp_admin_form:0,sid:d.find("[data-sid]").first().data("sid"),isblock:d.find("[data-isblock]").first().data("isblock"),postid:d.find("[data-postid]").first().data("postid"),lang:PT_CV_PUBLIC.lang,ajax_nonce:PT_CV_PUBLIC._nonce},beforeSend:function(){}}).done(function(c){PT_CV_PUBLIC.is_admin&&d.after(d.find('style[id*="inline-style"]')),window.cvp_lf_is_ajax=!0,f?e.loadmore_append(d,c):(d.html(c),e.init_pagination(d),e.init());var g=d.find("."+b+"page");a("body").trigger(b+"pagination-finished",[g,a(c)]),d.find("."+b+"pinterest").length>0&&new a.PT_CV_Pinterest({container:g})})},init_pagination:function(c){a("."+b+"pagination."+b+"ajax",c).each(function(){var b=a(this).attr("data-totalpages");a(this).bootstrapPaginator({bootstrapMajorVersion:3,currentPage:e,totalPages:b?parseInt(b):1,numberOfPages:PT_CV_PUBLIC.page_to_show,shouldShowPage:function(a){if(!(b&&10>b))return!0;switch(a){case"first":case"last":return!1;default:return!0}},itemContainerClass:function(a,b,c){var d="cv-pageitem-"+("page"===a?"number":a);return d+" "+(b===c?"active":"")}})})},on_click_pagination:function(){var f=this;a(".cvp-lfres").each(function(){var g=a(this),h=c.get_view_id(a(this));a('[data-sid="'+h+'"]').parent(c.cdata.selectors.pagination).each(function(){var i=a(this),j=i.find("."+b+"pagination");j.attr("data-disabled",1),j.find(".active a").off("click"),j.on("page-changed",function(a,b,c){e=c}),j.on("page-clicked",function(b,e,i,k){if(g.parent().find(d).length>0){var l=g.parent().find(d).first();f.process_filter(l,k),window.cvp_lf_reload_url||window.cvp_pagination_no_scroll||("function"==typeof window.cvp_theme_scrollto?window.cvp_theme_scrollto(l.offset().top-50):a("html, body").animate({scrollTop:window.cvp_lf_scroll_top||l.offset().top-50},1e3))}else{j.closest(c.cdata.selectors.pagination).prev(c.cdata.selectors.view).length>0&&sessionStorage.setItem("cvp_offsettop"+h,j.closest(c.cdata.selectors.pagination).prev(c.cdata.selectors.view).offset().top-50);var m=new a.PT_CV_Public({skip:!0}),n=m._get_paginated_url(k);window.location.href=n}}),f.loadmore_click(i,g,f,h)});var i=sessionStorage.getItem("cvp_offsettop"+h);parseInt(i)>0&&(a("html, body").animate({scrollTop:i},1e3),sessionStorage.removeItem("cvp_offsettop"+h))})},get_current_page:function(a){return e>1&&(a._page=e),a},loadmore_click:function(c,e,i,j){var k=c.find("."+b+"more");k.length&&(k.attr("data-disabled",1),k.on("click.lfloadmore",function(){var c=a(this),l=parseInt(c.attr("data-nextpages"));if(l&&!(1>=l))if(f=1,g=function(){var a=l+1;a<=parseInt(c.attr("data-totalpages"))?c.attr("data-nextpages",a):c.remove()},h=c.next("."+b+"spinner"),e.parent().find(d).length>0){var m=e.parent().find(d).first();i.process_filter(m,l)}else{sessionStorage.setItem("cvp_offsettop"+j,k.offset().top-50);var n=new a.PT_CV_Public({skip:!0}),o=n._get_paginated_url(l);window.location.href=o}}))},loadmore_append:function(c,d){h&&h.removeClass("active");var e=c.find("."+b+"page");e.append(a(d).find("."+b+"page").html()),"function"==typeof g&&g(),f=0,g=null,h=null}}}(jQuery),/**
 * CVPro JS
 * @author    PT Guy <http://www.contentviewspro.com/>
 * @license   GPL-2.0+
 */
function(a){"use strict";PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c=a(window).width(),d=window.cvp_common,e=function(c){if(this.options=a.extend({_prefix:b,_autoload:1},c),0!==this.options._autoload){this.animation(),this.pagination(),this.openin_window(),this.openin_lightbox(),this.open_in(),this.grid_same_height(),this.iframe_dimension(),this.quicksand_filter(),this.parties_compatible();var d=this;a(window).on("orientationchange resize",function(){d.grid_same_height("resized"),a("body").trigger("cvp-resize")}),a("."+b+"same-height").length&&a('[role="tab"] a, [role="tab"], [data-toggle] a, [data-toggle]').on("click",function(){setTimeout(function(){d.grid_same_height("tab")},1e3)}),a("body").on(b+"pagination-finished-simple",function(){d.grid_same_height("resized")})}};e.prototype={reset_after:function(b){this.view_init(b),this.animation(),this.grid_same_height(b?"paging":"preview"),this.open_in(),this.openin_lightbox(),void 0===b&&this.quicksand_filter(),new a.PT_CV_Share_Count},view_init:function(c){new a.PT_CV_Collapsible,new a.PT_CV_Scrollable,new a.PT_CV_Glossary,void 0===c&&new a.PT_CV_Pinterest({container:a("."+b+"pinterest")})},iframe_dimension:function(){PT_CV_PUBLIC.is_mobile_tablet&&a("."+b+"view iframe").each(function(){var b=function(a){var b=a.width(),c=parseInt(a.attr("width")),d=parseInt(a.attr("height"));a.attr("width",b),a.attr("height",b*d/c)};a(this).on("load",function(){b(a(this))})})},open_in:function(){a("."+b+"none").each(function(){a(this).removeAttr("href")}),a("."+b+"none").on("click",function(a){a.preventDefault()})},grid_same_height:function(c){a("."+b+"same-height").children("."+b+"page").each(function(){if(!a(this).is(":hidden")){var b,e=d.get_device_by_width();switch(e){case"pc":b="cvc";break;case"tablet":b="cvct";break;case"mobile":b="cvcm"}var f=d.cdata.selectors.item,g=a(this).data(b),h=g,i=-1;if(g>1)for(;i<a(f,this).length;){var j=":lt("+h+")",k=i>0?":gt("+i+")":"";i+=g,h+=g;var l=a(f+j+k,this);d.lineup_fields(l,c)}}})},animation:function(){var c="."+b+"content-hover";PT_CV_PUBLIC.is_mobile&&a("."+b+"thumbnail",c).on("click",function(c){var e=a(this).closest(d.cdata.selectors.view);e.hasClass(b+"force-mask")||c.preventDefault()});var e=function(a){var c=a.find("."+b+"href-thumbnail"),d=c.attr("target")||c.attr("class");d.match(/\b(_self|_blank)\b/gi)?c[0].click():c.trigger("click")};a("."+b+"hover-wrapper","."+b+"clickable").off("click").on("click",function(b){b.target==this&&e(a(this).parent())}),a("."+b+"hover-wrapper *:not(."+b+"href-thumbnail)","."+b+"clickable").off("click").on("click",function(c){c.stopPropagation(),e(a(this).closest("."+b+"hover-wrapper")),a(c.target).is("a")&&c.preventDefault()}),a("."+b+"overlay-wrapper","."+b+"clickable").off("click").on("click",function(b){b.target==this&&e(a(this).parent())}),a("."+b+"overlay-wrapper *","."+b+"clickable").off("click").on("click",function(c){c.stopPropagation(),e(a(this).closest("."+b+"content-item")),a(c.target).is("a")&&c.preventDefault()}),a("."+b+"overlay-wrapper","."+b+"clickable").css("cursor","pointer")},pagination:function(){this._pagination_loadmore(),this._pagination_infinite()},_pagination_loadmore:function(){a("body").on("click","."+b+"more",function(){var b=a(this);d._pagination_handle(b)})},_pagination_infinite:function(){var c,e=this,f=function(c){a(d.cdata.selectors.pagination).each(function(){if(c=c?c:e._scrollTo(a(this),window.cvp_trigger_infinite?window.cvp_trigger_infinite:300),a(this).prev().hasClass(b+"pginfinite")&&c){var f=a(this).find("."+b+"more");a(this).prev().hasClass("cvp-lfres")?f.trigger("click.lfloadmore"):d._pagination_handle(f)}})},g=function(a,b){a.on("scroll",function(){c&&clearTimeout(c),c=setTimeout(b,200)})};g(a(window),function(){f()}),g(a("#"+b+"preview-box"),function(){f(a(this).scrollTop()+a(this).innerHeight()>=a(this)[0].scrollHeight)})},_scrollTo:function(b,c){if(0===a(b).length||a(b).is(":hidden"))return!1;var d=a(window).scrollTop(),e=d+a(window).height(),f=a(b).offset().top,g=f+a(b).height();return e>=g-(c?c:0)&&f>=d},openin_window:function(){var c=this;a("body").on("click","."+b+"window",function(b){b.preventDefault(),c.fn_openin_window(a(this))})},fn_openin_window:function(a){var b=a.attr("href"),c=parseInt(a.attr("data-width")),d=parseInt(a.attr("data-height")),e=window.screen.width/2-c/2,f=window.screen.height/2-d/2,g="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=1, resizable=no, copyhistory=no, ";window.open(b,"_blank",g+" top="+f+", left="+e+", width="+c+", height="+d)},openin_lightbox:function(){var e=this;a(document).on("cvpbox_complete",function(){if(a("#cvpcolorbox").hasClass(b+"lightbox-dialog")){var c=a.cvpcolorbox.element().attr("href");if(c){var e=d.pathname_from_url(c);"undefined"!=typeof _gaq&&_gaq.push(["_trackPageview",e]),"undefined"!=typeof ga&&ga("send",{hitType:"pageview",page:e})}}});var f=function(){var b="cvp-overflow-hidden";a(document).on("cvpbox_open",function(){a("html").addClass(b)}),a(document).on("cvpbox_closed",function(){a("html").removeClass(b)})};f();var g=function(){var b,c=window.location.href;a(document).on("cvpbox_clicked",function(a,c){b=c.attr("href")}),a(document).on("cvpbox_complete",function(){d.change_url_wo_reload(b)}),a(document).on("cvpbox_closed",function(){b=null,d.change_url_wo_reload(c)})};g(),a(document).on("cvpbox_closed",function(){a('[id="cvpcolorbox"]:not(#cvpcolorbox:first)').remove(),a('[id="cvpboxOverlay"]:not(#cvpboxOverlay:first)').remove()}),e.fn_lightbox_image(a("."+b+"lightbox-image")),a("body").off("click.cvplb","."+b+"lightbox").on("click.cvplb","."+b+"lightbox",function(b){b.preventDefault(),e.fn_lightbox_content(a(this))}),a("body").on("cvp-resize",function(){var b=a(window).width(),d=c;if(c=b,!(Math.abs(d-b)<30)){var e;"undefined"!=typeof e&&clearTimeout(e),e=setTimeout(function(){a("#cvpboxOverlay").is(":visible")&&a.cvpcolorbox.relaunch()},500)}})},fn_lightbox_image:function(c){var e=/\.(jpeg|jpg|gif|png|webp|bmp|tif|tiff|ico|svg)/i;c.cvpcolorbox({maxWidth:"95%",maxHeight:"90%",href:function(){var b=a(this).attr("href");return b.match(/youtube\.com|youtu\.be/)&&(b=b.replace("/watch?v=","/embed/").replace("/playlist","/embed/videoseries")),b},rel:function(){var b=a(this).attr("class"),c=b.split(" ");return b.indexOf("cvplbd")<0?c[1]:!1},title:function(){var c=a('a[href="'+a(this).attr("href")+'"]',d.cdata.selectors.item),e=c.closest(d.cdata.selectors.item).find("."+b+"title"),f=c.find("img"),g=e.length?e.text():f.length?f.attr("alt"):!1;return"function"==typeof window.cvp_set_lbtitle&&(g=window.cvp_set_lbtitle(c)),g},iframe:function(){return a(this).attr("href").match(e)?!1:!0},innerWidth:function(){return a(this).attr("href").match(e)?!1:window.cvp_lbwidth||"600px"},innerHeight:function(){return a(this).attr("href").match(e)?!1:window.cvp_lbheight||"400px"}})},fn_lightbox_content:function(c){var e,f,g=c.attr("data-content-selector");if(window.cvp_lb_change_url&&a(document).trigger("cvpbox_clicked",[c]),PT_CV_PUBLIC.is_mobile?(e=window.cvp_lbwidth_mobile||90,f=window.cvp_lbheight_mobile||75):(e=parseInt(c.attr("data-width"))||75,f=parseInt(c.attr("data-height"))||75),g){var h=b+"overlay",i=a("#"+h).length?a("#"+h):a("<div/>",{id:b+"overlay"}).css({background:"#000",opacity:.9,position:"fixed",width:"100%",height:"100%",left:0,top:0,zIndex:1e6}).appendTo("body");i.show(),a("body").css("cursor","progress");var j=b+"lightbox-content",k=a("#"+j).length?a("#"+j):a("<div/>",{id:j}).hide().appendTo("body");k.load(c.attr("href")+" "+g,function(g,h){i.hide(),a("body").css("cursor","default"),"error"!==h&&c.cvpcolorbox({open:!0,fixed:!0,className:b+"lightbox-dialog",width:e+"%",height:f+"%",html:k.html()?k.html():g,onComplete:function(){a("body").trigger(b+"lightbox-loaded"),a("#"+j).remove(),d.dynamic_init()}})})}else c.cvpcolorbox({iframe:!0,width:e+"%",height:f+"%"})},quicksand_filter:function(){new a.CVP_Shuffle_Filter,new a.CVP_LIVE_FILTER},unFitVids:function(){a(function(){setTimeout(function(){a("iframe",d.cdata.selectors.view).each(function(){var b=a(this).parent("div");b.length&&b.attr("class")&&b.attr("class").indexOf("fluid")>=0&&(a(this).insertBefore(b),b.remove())})},1500)})},parties_compatible:function(){var c=function(c){var e=0,f=setInterval(function(){var g=c.find("."+b+"page");g.length>0&&(clearInterval(f),window.cvp_reload_layout=!0,a("body").trigger(b+"pagination-finished",[g,g.find(d.cdata.selectors.item)])),e++>10&&clearInterval(f)},1e3)};a(document).on("facetwp-loaded",function(){c(a(".facetwp-template"))}),a("body").on("cvp-reload",function(a,b){c(b)})}},a(function(){var c=new e;a("body").on(b+"pagination-finished "+b+"pagination-finished-simple",function(a,b){b&&c.reset_after(1)}),window.cvp_enable_fitvid||c.unFitVids()}),window.cvp_js=e}(jQuery),function(a){"use strict";PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c=window.cvp_common,d=function(b){b=b?a('.cvp-responsive-image:not([style*="background-image"])',b):a('.cvp-responsive-image:not([style*="background-image"])'),b.each(function(){var b=a(this).find("img"),d=b.data("cvpsrc")||b.data("src")||b.attr("src");if("function"==typeof window.cvp_bgimg_set&&(d=window.cvp_bgimg_set(b)),!b.hasClass("cvplazy")||c.image_in_viewport(b)){"undefined"!=typeof d&&d&&a(this).css("background-image","url("+d+")");var f=a(this);f.cvp_imagesLoaded(function(){e(f),c.shuffle_update_each(b)})}})},e=function(a){if(void 0===a.css("aspect-ratio")&&a.is(":visible")&&!a.is(":hidden")){var b=a.width(),c=a.data("iw"),d=a.data("ih");if(b&&c&&d){var e=b*d/c;e>d&&(e=d),e+="px",a.css("height",e)}}},f=function(b){b=b?b:c.cdata.selectors.view,a(".pt-cv-carousel",b).off("slid.bs.carousel").on("slid.bs.carousel",function(){d(a(this).find(".carousel-inner .active"))}),a(".panel-collapse",b).off("show.bs.collapse").on("show.bs.collapse",function(){d(a(this))})};a(window).on("load scroll resize orientationchange cvpload",function(){d(),f()}),a("body").on(b+"pagination-finished",function(a,b){d(b),f(b)}),a("body").on("cvp-resize",function(){a(".cvp-responsive-image").each(function(){e(a(this))})})}(jQuery),function(a){"use strict";PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c={scclass:b+"socialsc",view:"."+b+"view",item:"."+b+"content-item",buttons:"."+b+"social-buttons",sprefix:b+"social-"};a.PT_CV_Share_Count=function(){this.do_count()},a.PT_CV_Share_Count.prototype={do_count:function(){a(c.view).each(function(){if(a(this).hasClass(c.scclass)){var b=a(this),d=[],e=a.map(b.find(c.item),function(b,e){return 0===e&&(d=a.map(a(b).find(c.buttons).find("a"),function(b){var d=a(b).attr("class");return d.replace(c.sprefix,"")})),a(b).data("pid")});a.ajax({type:"POST",url:PT_CV_PUBLIC.ajaxurl,data:{action:"share_count",posts:e,services:d,ajax_nonce:PT_CV_PUBLIC._nonce}}).done(function(d){var e=JSON.parse(d);a.each(e,function(d,e){var f=b.find(c.item+'[data-pid="'+d+'"]');a.each(e,function(a,b){f.find("."+c.sprefix+a).html(b)})})})}})}},a(function(){new a.PT_CV_Share_Count})}(jQuery),function(a){"use strict";a.PT_CV_Collapsible=a.PT_CV_Collapsible||{},PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix;a.PT_CV_Collapsible=function(c){this.options=a.extend({collapse_box:"."+b+"collapsible",icon_plus:"glyphicon-plus",icon_minus:"glyphicon-minus"},c),this._toggle_panel(this.options.collapse_box)},a.PT_CV_Collapsible.prototype={_toggle_panel:function(b){var c=this,d=a(".panel-collapse",b);d.each(function(){a(this).hasClass("in")&&c._toggle_class(a(this),"show")}),d.on("shown.bs.collapse",function(){c._toggle_class(a(this),"show")}),d.on("hidden.bs.collapse",function(){c._toggle_class(a(this))}),a(b).on("click","span.panel-collapsed",function(){"function"==typeof jQuery.fn.cvcollapse?a(this).parent().next().cvcollapse("toggle"):a(this).parent().next().collapse("toggle")}),d.on("show.bs.collapse",function(){c.for_sf(a(this),"hide-items")})},_toggle_class:function(a,b){var c,d,e=this,f=this.options;"show"===b?(c=f.icon_plus,d=f.icon_minus):(c=f.icon_minus,d=f.icon_plus),a.prev().find(".glyphicon").removeClass(c).addClass(d),setTimeout(function(){e.for_sf(a,"show-items-then-update")},250)},for_sf:function(a,b){var c=a.closest(".pt-cv-page");c.hasClass("cvpshuffled")&&("hide-items"===b?a.closest(".pt-cv-content-item").nextAll().css("opacity",0):(a.closest(".pt-cv-content-item").nextAll().css("opacity",1),c.cvp_shuffle("update")))}},a(function(){new a.PT_CV_Collapsible})}(jQuery),function(a){"use strict";a.PT_CV_Glossary=a.PT_CV_Glossary||{},PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix;a.PT_CV_Glossary=function(a){this.options=a;var b=this;setTimeout(function(){b._click()},500)},a.PT_CV_Glossary.prototype={_click:function(){a("."+b+"gls-menu a").off("click").on("click",function(c){if(c.preventDefault(),!a(this).hasClass("pt-active")){var d=this.hash;a(this).closest("."+b+"gls-menu").find(".pt-active").removeClass("pt-active"),a(this).addClass("pt-active");var e=a(this).closest("."+b+"gls-menu").parent().children("."+b+"glossary");e.length>0&&(a(this).parent().index()>0?(e.find("."+b+"gls-group").hide(),e.find(d).fadeIn()):e.find("."+b+"gls-group").show())}})}},a(function(){new a.PT_CV_Glossary})}(jQuery),function(a){a.PT_CV_Pinterest=a.PT_CV_Pinterest||{},PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c=window.cvp_common;a.PT_CV_Pinterest=function(c){this.options=a.extend({wrapper:"."+b+"wrapper",sfilter:"."+b+"filter-bar",container:"."+b+"pinterest",item:"."+b+"content-item",page:"."+b+"page"},c),this.init()},a.PT_CV_Pinterest.prototype={init:function(){var d=this;a(d.options.container).each(function(){var e=a(this),f=e.hasClass(b+"masonry"),g=e.closest(d.options.wrapper).find(d.options.sfilter);g.length||c.hidden_or_not_hidden(e,function(){d.render_layout(e,f)},function(){d.render_layout(e,f)},100)})},render_layout:function(b,d){var e=this,f=b.find(e.options.page).length?b.find(e.options.page+":visible"):b;c.shuffle_before(f),f.cvp_imagesLoaded(function(){f.cvp_shuffle({itemSelector:e.options.item,sizer:d?".col-md-3":null})}),f.on("layout.shuffle",function(){c.shuffle_after(f)}),f.on("cvp-pinterest-paginated",function(b,d){var e;d.each(function(){var b=a(this).data("pid");if(b){var c=f.find('[data-pid="'+b+'"]');c.length&&(e="undefined"==typeof e?c:e.add(c))}}),"undefined"!=typeof e&&c.shuffle_append(e,f)})}},a(function(){new a.PT_CV_Pinterest,a("body").on(b+"pagination-finished",function(c,d,e){if(d){var f=d.is("."+b+"view")?d:d.parent();f.hasClass(b+"pinterest")&&(f.hasClass(b+"pgregular")||window.cvp_reload_layout?new a.PT_CV_Pinterest({container:d}):d.trigger("cvp-pinterest-paginated",[e]))}})})}(jQuery),function(a){"use strict";a.PT_CV_Scrollable=a.PT_CV_Scrollable||{},PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix;a.PT_CV_Scrollable=function(a){this.options=a,this.swipe(),this.keyboard()},a.PT_CV_Scrollable.prototype={swipe:function(){a('[data-ride="cvcarousel"]',"."+b+"scrollable").cvp_swipe({swipe:function(b,c){"left"===c&&("function"==typeof jQuery.fn.cvcarousel?a(this).cvcarousel("next"):a(this).carousel("next")),"right"===c&&("function"==typeof jQuery.fn.cvcarousel?a(this).cvcarousel("prev"):a(this).carousel("prev"))},allowPageScroll:"vertical"})},keyboard:function(){a(".pt-cv-carousel").length&&a(document).on("keydown",function(b){if(!/input|textarea/i.test(b.target.tagName)){var c=a(".pt-cv-carousel"),d="function"==typeof jQuery.fn.cvcarousel;switch(b.which){case 37:b.preventDefault(),d?c.cvcarousel("prev"):c.carousel("prev");break;case 39:b.preventDefault(),d?c.cvcarousel("next"):c.carousel("next")}}})}},a(function(){new a.PT_CV_Scrollable})}(jQuery);
jQuery.noConflict(),jQuery(function(o){var t=100,e=o("a#scroll-to-top"),n=600,a="swing";e.hide(),o(window).scroll(function(){var n=o(document).scrollTop();n>t?o(e).stop().fadeTo(300,1):o(e).stop().fadeTo(300,0)}),o(e).click(function(){return o("html, body").animate({scrollTop:0},n,a),!1}),o('a[href*="#"]:not([href="#"]):not([href^="#tab"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")||location.hostname==this.hostname){var t=o(this.hash);o(".primary-header").height()+5;if(t=t.length?t:o("[name="+this.hash.slice(1)+"]"),t.length)return o("html,body").animate({scrollTop:t.offset().top},n,a),!1}})});
jQuery(function(e){new DLM_XHR_Download});class DLM_XHR_Download{responsHeaders={};constructor(){(dlmXHRinstance=this).init()}init(){dlmXHRinstance.attachButtonEvent()}attachButtonEvent(){jQuery("html, body").on("click",".dlm-no-access-modal-overlay, .dlm-no-access-modal-close",function(e){jQuery("#dlm-no-access-modal").remove()}),jQuery("html, body").on("click","a",function(e){const d=jQuery(this).attr("href");let o=!1;var r,s;jQuery(this).hasClass("dlm-no-xhr-download")&&(o=!0),"undefined"!=typeof dlmNonXHRGlobalLinks&&0<dlmNonXHRGlobalLinks.length&&void 0!==d&&dlmNonXHRGlobalLinks.forEach(e=>{0<=d.indexOf(e)&&(o=!0)}),o?jQuery("#dlm-no-access-modal").remove():(jQuery(document).trigger("dlm-xhr-download-button-click",[d,this,dlmXHRGlobalLinks]),void 0!==d&&0<=d.indexOf(dlmXHRGlobalLinks)&&(r=jQuery(this).data("redirect"),s=jQuery(this).attr("target"),void 0!==r&&!0===r&&"_blank"===s||dlmXHRinstance.handleDownloadClick(this,e)))})}handleDownloadClick(e,d){d.stopPropagation();var o=e.getAttribute("href");let r={button:e,href:o,buttonObj:jQuery(e)};-1===r.href.indexOf("blob:http")&&"#"!==r.href&&(d.preventDefault(),dlmXHRinstance.retrieveBlob(r))}retrieveBlob(e){const f=this;let{button:h,href:x,buttonObj:H}=e,w;const g=new XMLHttpRequest,b=dlmXHR.prevent_duplicates,R=H.attr("target");let y=H.attr("class");y=void 0!==y&&""!==y?y.replace("dlm-download-started","").replace("dlm-download-completed",""):"",H.addClass("dlm-download-started"),h.setAttribute("href","#"),h.removeAttribute("download"),h.setAttribute("disabled","disabled"),dlmXHRProgress&&(e='<img src="'+dlmXHRgif+'" class="dlm-xhr-loading-gif" style="display:inline-block; vertical-align: middle; margin-left:15px;">',h.innerHTML+=e),jQuery(document).trigger("dlm_download_triggered",[this,h,H,w,g]);let X=!1;g.responseType="blob",g.onreadystatechange=function(){var{status:e,readyState:d,statusText:o}=g,r=g.getAllResponseHeaders().split("\r\n").reduce((e,d)=>{var[d,o]=d.split(": ");return e[d]=o,e},{});1<Object.keys(r).length&&(X=!0,f.responseHeaders=r);let s="download",n=!1,t=!1,l=!1,a=!1,i=null,m=!1,c=!1,p=!1,v=!1,u=!1;if(X&&void 0!==f.responseHeaders["dlm-file-name"]&&(n=f.responseHeaders["dlm-file-name"]),X&&void 0!==f.responseHeaders["dlm-no-waypoints"]&&(t=!0),X&&void 0!==f.responseHeaders["dlm-redirect"]&&(l=f.responseHeaders["dlm-redirect"]),X&&void 0!==f.responseHeaders["dlm-external-download"]&&(a=!0),X&&void 0!==f.responseHeaders["dlm-no-access"]&&(i=f.responseHeaders["dlm-no-access"]),X&&void 0!==f.responseHeaders["dlm-no-access-modal"]&&(m=f.responseHeaders["dlm-no-access-modal"]),X&&void 0!==f.responseHeaders["dlm-error"]&&(c=f.responseHeaders["dlm-error"]),X&&void 0!==f.responseHeaders["dlm-download-id"]&&(p=f.responseHeaders["dlm-download-id"]),X&&void 0!==f.responseHeaders["dlm-version-id"]&&(v=f.responseHeaders["dlm-version-id"]),X&&void 0!==f.responseHeaders["dlm-no-access-modal-text"]&&(u=f.responseHeaders["dlm-no-access-modal-text"]),X&&void 0!==f.responseHeaders["x-dlm-file-name"]&&(n=f.responseHeaders["x-dlm-file-name"]),X&&void 0!==f.responseHeaders["x-dlm-no-waypoints"]&&(t=!0),X&&void 0!==f.responseHeaders["x-dlm-redirect"]&&(l=f.responseHeaders["x-dlm-redirect"]),X&&void 0!==f.responseHeaders["x-dlm-external-download"]&&(a=!0),X&&void 0!==f.responseHeaders["x-dlm-no-access"]&&(i=f.responseHeaders["x-dlm-no-access"]),X&&void 0!==f.responseHeaders["x-dlm-no-access-modal"]&&(m=f.responseHeaders["x-dlm-no-access-modal"]),X&&void 0!==f.responseHeaders["x-dlm-error"]&&(c=f.responseHeaders["x-dlm-error"]),X&&void 0!==f.responseHeaders["x-dlm-download-id"]&&(p=f.responseHeaders["x-dlm-download-id"]),X&&void 0!==f.responseHeaders["x-dlm-version-id"]&&(v=f.responseHeaders["x-dlm-version-id"]),X&&void 0!==f.responseHeaders["x-dlm-no-access-modal-text"]&&(u=f.responseHeaders["x-dlm-no-access-modal-text"]),n?(s=n.replace(/\"/g,"").replace(";",""),s=decodeURI(s)):X&&void 0!==f.responseHeaders["content-disposition"]&&(s=(s=f.responseHeaders["content-disposition"].split(/(?:filename\*=UTF-8'')|(?:filename=)/)[1]).replace(/\"/g,"").replace(";",""),s=decodeURI(s)),c=c&&(c in dlmXHRtranslations?dlmXHRtranslations[c]:dlmXHRtranslations.error),2===g.readyState){if(X&&void 0!==f.responseHeaders["x-dlm-force-abort"]&&""!==f.responseHeaders["x-dlm-force-abort"])return h.removeAttribute("download"),h.setAttribute("href",x),H.removeClass().addClass(y).find("span.dlm-xhr-progress").remove(),H.find(".dlm-xhr-loading-gif").remove(),g.abort(),void jQuery("#dlm-no-access-modal").remove();if(t)return g.abort(),l?void(window.location.href=l):void(window.location.href=x);if(a)return g.abort(),void dlmXHRinstance.dlmExternalDownload(f.responseHeaders,h,H,s,x);if(0===Object.keys(f.responseHeaders).filter(e=>-1!==e.indexOf("dlm-")).length)return g.abort(),void(window.location.href=x);if(i&&"true"===i&&m&&0!=m)return dlmXHRinstance.dlmNoAccessModal(f.responseHeaders),h.removeAttribute("download"),h.setAttribute("href",x),H.removeClass().addClass(y).find("span.dlm-xhr-progress").remove(),H.find(".dlm-xhr-loading-gif").remove(),void g.abort();if(c&&""!==c&&null!==c)return dlmXHRinstance.dlmLogDownload(f.responseHeaders,"failed",!1),h.removeAttribute("download"),h.setAttribute("href",x),H.removeClass().addClass(y).find("span.dlm-xhr-progress").remove(),H.find(".dlm-xhr-loading-gif").remove(),g.abort(),void(m&&0!=m?dlmXHRinstance.dlmNoAccessModal(f.responseHeaders):(H.find(".dlm-xhr-error").remove(),H.append('<span class="dlm-xhr-error">'+c+"</span>")));if(l&&""!==l&&null!==l)return dlmXHRinstance.dlmLogDownload(f.responseHeaders,"redirected",!1,l,i,R),h.removeAttribute("download"),h.setAttribute("href",x),H.removeClass().addClass(y).find("span.dlm-xhr-progress").remove(),H.find(".dlm-xhr-loading-gif").remove(),void g.abort()}if(404==e&&2==d){let e=document.createElement("p");e.innerHTML=o,h.parentNode.appendChild(e)}if(401==e&&2==d)window.location.href=o;else{if(403==e&&2==d){let e=document.createElement("p");e.innerHTML=o,h.parentNode.appendChild(e)}200==e&&4==d&&(r=g.response,w=URL.createObjectURL(r),h.removeEventListener("click",dlmXHRinstance.handleDownloadClick),h.setAttribute("download",""+s),h.setAttribute("href",w),h.click(),H.removeClass().addClass(y+" dlm-download-complete"),dlmXHRinstance.attachButtonEvent(),jQuery(document).trigger("dlm_download_complete",[this,h,H,w]),dlmXHRinstance.dlmLogDownload(f.responseHeaders,"completed",b),window.URL.revokeObjectURL(w),h.removeAttribute("download"),h.setAttribute("href",x),H.find(".dlm-xhr-loading-gif").remove(),setTimeout(function(){H.removeClass().addClass(y).find("span.dlm-xhr-progress").remove()},4e3))}},dlmXHRProgress&&g.addEventListener("progress",function(e){let d=e.total,o=(void 0!==e.total&&"undefined"!==e.total&&0!==e.total||void 0!==f.responseHeaders["x-dlm-filesize"]&&(d=f.responseHeaders["x-dlm-filesize"]),e.loaded/d*100);o=o.toFixed();var r;H.find("span.dlm-xhr-progress").remove(),r="dlm-download-started download-"+10*Math.ceil(o/10),1/0!=o&&H.append('<span class="dlm-xhr-progress">&nbsp;'+o+"%</span>"),H.removeClass().addClass(y+" "+r),jQuery(document).trigger("dlm_download_progress",[this,h,H,w,e,o])}),g.onerror=function(){h.removeAttribute("download"),h.setAttribute("href",x),H.removeClass().addClass(y+" dlm-no-xhr-download").find("span.dlm-xhr-progress").remove(),H.find(".dlm-xhr-error").remove(),H.append('<span class="dlm-xhr-error">'+dlmXHRtranslations.error+"</span>"),console.log("** An error occurred during the transaction")},g.open("GET",x,!0),g.setRequestHeader("Cache-Control","no-store, no-cache, no-transform, max-age=0"),g.setRequestHeader("dlm-xhr-request","dlm_XMLHttpRequest"),g.send()}dlmLogDownload(e,d,o,r=null,s=null,n="_self"){null!==s?window.open(r,n):(s=window.location.href,d={download_id:void 0!==e["x-dlm-download-id"]?e["x-dlm-download-id"]:e["dlm-download-id"],version_id:void 0!==e["x-dlm-version-id"]?e["x-dlm-version-id"]:e["dlm-version-id"],status:d,cookie:o,currentURL:s,action:"log_dlm_xhr_download",responseHeaders:e,nonce:e["x-dlm-nonce"]},jQuery.post(dlmXHR.ajaxUrl,d,function(e){null!==r&&(null==n&&(n="_self"),window.open(r,n))}))}dlmNoAccessModal(e){let d="empty-download",o="empty-version",r="empty-restriction",s="",n=(void 0!==e["dlm-download-id"]&&(d=e["dlm-download-id"]),void 0!==e["dlm-version-id"]&&(o=e["dlm-version-id"]),void 0!==e["dlm-no-access-modal-text"]&&(s=e["dlm-no-access-modal-text"]),void 0!==e["dlm-no-access-restriction"]&&(r=e["dlm-no-access-restriction"]),void 0!==e["x-dlm-download-id"]&&(d=e["x-dlm-download-id"]),void 0!==e["x-dlm-version-id"]&&(o=e["x-dlm-version-id"]),void 0!==e["x-dlm-no-access-modal-text"]&&(s=e["x-dlm-no-access-modal-text"]),void 0!==e["x-dlm-no-access-restriction"]&&(r=e["x-dlm-no-access-restriction"]),{download_id:d,version_id:o,modal_text:s,restriction:r,action:"no_access_dlm_xhr_download",nonce:e["x-dlm-nonce"]});jQuery(document).trigger("dlm-xhr-modal-data",[n,e]),document.dispatchEvent(new CustomEvent("dlm-xhr-modal-data",{detail:{data:n,headers:e}})),jQuery.post(dlmXHR.ajaxUrl,n,function(e){jQuery("#dlm-no-access-modal").remove(),jQuery("body").append(e),jQuery(document).trigger(n.action,[e,n]),document.dispatchEvent(new CustomEvent(n.action,{detail:[e,n]}))})}dlmExternalDownload(o,s,n,r,t){const l=new XMLHttpRequest;n.attr("target");let a=n.attr("class"),i,e="";void 0!==o["dlm-external-download"]&&(e=o["dlm-external-download"]),void 0!==o["x-dlm-external-download"]&&(e=o["x-dlm-external-download"]),a=void 0!==a&&""!==a?a.replace("dlm-download-started","").replace("dlm-download-completed",""):"",n.addClass("dlm-download-started"),s.setAttribute("href","#"),s.removeAttribute("download"),s.setAttribute("disabled","disabled"),jQuery(document).trigger("dlm_download_triggered",[this,s,n,i,l]),l.responseType="blob",l.onreadystatechange=function(){var{status:e,readyState:d}=l;if(403===e)return dlmXHRinstance.dlmLogDownload(o,"failed",!1),l.abort(),n.find(".dlm-xhr-error").remove(),void n.append('<span class="dlm-xhr-error">Acces Denied to file.</span>');200==e&&4==d&&(e=l.response,i=URL.createObjectURL(e),s.removeEventListener("click",dlmXHRinstance.handleDownloadClick),s.setAttribute("download",""+r),s.setAttribute("href",i),s.click(),n.removeClass().addClass(a+" dlm-download-complete"),dlmXHRinstance.attachButtonEvent(),jQuery(document).trigger("dlm_download_complete",[this,s,n,i]),dlmXHRinstance.dlmLogDownload(o,"completed",!1),window.URL.revokeObjectURL(i),s.removeAttribute("download"),s.setAttribute("href",t),n.find(".dlm-xhr-loading-gif").remove(),setTimeout(function(){n.removeClass().addClass(a).find("span.dlm-xhr-progress").remove()},1e3))},dlmXHRProgress&&l.addEventListener("progress",function(e){let d=e.total,o=(void 0!==e.total&&"undefined"!==e.total||(d=l.getResponseHeader("X-DLM-Filesize")),e.loaded/d*100);o=o.toFixed();var r;n.find("span.dlm-xhr-progress").remove(),r="dlm-download-started download-"+10*Math.ceil(o/10),1/0!=o&&n.append('<span class="dlm-xhr-progress">&nbsp;'+o+"%</span>"),n.removeClass().addClass(a+" "+r),jQuery(document).trigger("dlm_download_progress",[this,s,n,i,e,o])}),l.onerror=function(){s.removeAttribute("download"),s.setAttribute("href",t),n.removeClass().addClass(a+" .dlm-no-xhr-download").find("span.dlm-xhr-progress").remove(),n.find(".dlm-xhr-error").remove(),n.append('<span class="dlm-xhr-error">'+dlmXHRtranslations.error+"</span>"),console.log("** An error occurred during the transaction")},l.open("GET",e,!0),l.setRequestHeader("Cache-Control","no-store, no-cache, no-transform, max-age=0"),l.setRequestHeader("dlm-xhr-request","dlm_XMLHttpRequest"),l.send()}};
jQuery(window).load(function(){function makeSameHeights(){jQuery('.same-height-container').each(function(){var HighestElement=0;jQuery(this).find('.same-height').each(function(){jQuery(this).css({'height':'auto'});var itemHeight=jQuery(this).height();if(itemHeight>HighestElement){HighestElement=itemHeight;}})
jQuery(this).find('.same-height').height(HighestElement);})}
makeSameHeights();jQuery(window).resize(function(){makeSameHeights();})
function centraliseSmallerDiv(){jQuery('.centralise-content').each(function(){var ccTallestDiv=0;jQuery(this).find('.centralised').each(function(){if(jQuery(this).height()>ccTallestDiv){ccTallestDiv=jQuery(this).height();}})
jQuery(this).find('.centralised').each(function(){var ccItemsHeight=jQuery(this).height();var ccMargintoAdd=ccTallestDiv-ccItemsHeight;var ccMargintoAddtoTop=ccMargintoAdd/2;var ccItemsCurrentMarginTop=parseInt(jQuery(this).css('padding-top'));var ccMargintoAddtoTopFinal=ccMargintoAddtoTop+ccItemsCurrentMarginTop;jQuery(this).css({'padding-top':ccMargintoAddtoTopFinal});})})}
if(jQuery(window).width()>550){centraliseSmallerDiv();}
jQuery('.slider-wrapper').each(function(){var slider=jQuery(this);var sliderHeight=0;var slideTime=jQuery(this).attr('data-slide-speed');jQuery(this).find('.slide:first-child').addClass('active');jQuery(this).find('.slide').each(function(){if(jQuery(this).height()>sliderHeight){sliderHeight=jQuery(this).height();}})
jQuery(this).height(sliderHeight);jQuery(this).find('.slide').height(sliderHeight);var max=jQuery(slider).find('.slide').length;var index=0;function changeSlide(){if(index>max){index=1;}
if(index<=0){index=max;}
jQuery(slider).find('.sliding.active').addClass('slide-out-left');jQuery(slider).find('.slide').removeClass('active');jQuery(slider).find('.slide:nth-of-type('+index+')').addClass('active')
jQuery(slider).find('.slide.sliding:nth-of-type('+index+')').addClass('slide-in-right');}
function changeSlideBack(){if(index>max){index=1;}
if(index<=0){index=max;}
jQuery(slider).find('.sliding.active').addClass('slide-out-right');jQuery(slider).find('.slide').removeClass('active');jQuery(slider).find('.slide:nth-of-type('+index+')').addClass('active')
jQuery(slider).find('.slide.sliding:nth-of-type('+index+')').addClass('slide-in-left');}
function loopThroughSlides(){var loop=setInterval(function(){index++;changeSlide();},slideTime)
jQuery('.slide-button-navigation').on('click',function(){clearInterval(loop);if(jQuery(this).hasClass('next-button')){index++
changeSlide();}else{index--;changeSlideBack();}
loop=setInterval(function(){index++
changeSlide();},slideTime);})}
if(max>1){loopThroughSlides(slider)
jQuery(this).find('.container').css({'position':'absolute','transform':'translate(-50%, -50%)'})}
jQuery(this).on('DOMSubtreeModified',function(){setTimeout(function(){jQuery('.slide-out-right').removeClass('slide-out-right')
jQuery('.slide-in-left').removeClass('slide-in-left')
jQuery('.slide-in-right').removeClass('slide-in-right')
jQuery('.slide-out-left').removeClass('slide-out-left')},500)})})
jQuery(function(){var $el=jQuery('.parallax-background');jQuery(window).on('scroll',function(){var scroll=jQuery(document).scrollTop();$el.css({'background-position':'50% '+(-.5*scroll)+'px'});});});});
jQuery('.slider').each(function(){var autoplay=jQuery(this).attr('data-autoplay')
var speed=parseInt(jQuery(this).attr('data-speed'));var adaptive_height=Boolean(jQuery(this).attr('data-adaptive-height'));var slides_show_desktop=parseInt(jQuery(this).attr('data-slides-show-desktop'));var slides_scroll_desktop=parseInt(jQuery(this).attr('data-slides-scroll-desktop'));var slides_show_mobile=parseInt(jQuery(this).attr('data-slides-show-mobile'));var slides_scroll_mobile=parseInt(jQuery(this).attr('data-slides-scroll-mobile'));if(jQuery(this).hasClass('slick-initialized')){jQuery(this).slick('unslick');}
jQuery(this).slick({infinite:true,slidesToShow:slides_show_desktop,slidesToScroll:slides_scroll_desktop,autoplay:autoplay,autoplaySpeed:speed,adaptiveHeight:adaptive_height,arrows:true,dots:true,prevArrow:'<div class="slider-prev slider-nav-button"></div>',nextArrow:'<div class="slider-next slider-nav-button"></div>',responsive:[{breakpoint:1200,settings:{slidesToShow:4,slidesToScroll:4,}},{breakpoint:768,settings:{slidesToShow:slides_show_mobile,slidesToScroll:slides_scroll_mobile,}},]});});