1function transitionEnd(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}!function(h,p,f){function m(e,t){return typeof e===t}function g(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function v(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function _(e){return"function"!=typeof p.createElement?p.createElement(e):w?p.createElementNS.call(p,"http://www.w3.org/2000/svg",e):p.createElement.apply(p,arguments)}function b(e,t,n,i){var s,o,a,r,l,c="modernizr",d=_("div"),u=((l=p.body)||((l=_(w?"svg":"body")).fake=!0),l);if(parseInt(n,10))for(;n--;)(a=_("div")).id=i?i[n]:c+(n+1),d.appendChild(a);return(s=_("style")).type="text/css",s.id="s"+c,(u.fake?u:d).appendChild(s),u.appendChild(d),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(p.createTextNode(e)),d.id=c,u.fake&&(u.style.background="",u.style.overflow="hidden",r=y.style.overflow,y.style.overflow="hidden",y.appendChild(u)),o=t(d,e),u.fake?(u.parentNode.removeChild(u),y.style.overflow=r,y.offsetHeight):d.parentNode.removeChild(d),!!o}function r(e,t){return function(){return e.apply(t,arguments)}}function l(e,t,n,i){function s(){a&&(delete k.style,delete k.modElem)}if(i=!m(i,"undefined")&&i,!m(n,"undefined")){var o=function(e,t){var n=e.length;if("CSS"in h&&"supports"in h.CSS){for(;n--;)if(h.CSS.supports(v(e[n]),t))return!0;return!1}if("CSSSupportsRule"in h){for(var i=[];n--;)i.push("("+v(e[n])+":"+t+")");return b("@supports ("+(i=i.join(" or "))+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return f}(e,n);if(!m(o,"undefined"))return o}for(var a,r,l,c,d,u=["modernizr","tspan","samp"];!k.style&&u.length;)a=!0,k.modElem=_(u.shift()),k.style=k.modElem.style;for(l=e.length,r=0;r<l;r++)if(c=e[r],d=k.style[c],~(""+c).indexOf("-")&&(c=g(c)),k.style[c]!==f){if(i||m(n,"undefined"))return s(),"pfx"!=t||c;try{k.style[c]=n}catch(e){}if(k.style[c]!=d)return s(),"pfx"!=t||c}return s(),!1}function i(e,t,n,i,s){var o=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+x.join(o+" ")+o).split(" ");return m(t,"string")||m(t,"undefined")?l(a,t,i,s):function(e,t,n){var i;for(var s in e)if(e[s]in t)return!1===n?e[s]:m(i=t[e[s]],"function")?r(i,n||t):i;return!1}(a=(e+" "+$.join(o+" ")+o).split(" "),t,n)}function e(e,t,n){return i(e,f,f,t,n)}var c=[],d=[],t={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){d.push({name:e,fn:t,options:n})},addAsyncTest:function(e){d.push({name:null,fn:e})}},u=function(){};u.prototype=t,u=new u;var a=t._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];t._prefixes=a;var y=p.documentElement,w="svg"===y.nodeName.toLowerCase();w||function(e,l){function c(){var e=f.elements;return"string"==typeof e?e.split(" "):e}function d(e){var t=r[e[n]];return t||(t={},a++,e[n]=a,r[a]=t),t}function u(e,t,n){return t=t||l,p?t.createElement(e):!(i=(n=n||d(t)).cache[e]?n.cache[e].cloneNode():o.test(e)?(n.cache[e]=n.createElem(e)).cloneNode():n.createElem(e)).canHaveChildren||s.test(e)||i.tagUrn?i:n.frag.appendChild(i);var i}function i(e){var t,n,i,s,o,a,r=d(e=e||l);return!f.shivCSS||h||r.hasCSS||(r.hasCSS=(s="article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}",o=(i=e).createElement("p"),a=i.getElementsByTagName("head")[0]||i.documentElement,o.innerHTML="x<style>"+s+"</style>",!!a.insertBefore(o.lastChild,a.firstChild))),p||(t=e,(n=r).cache||(n.cache={},n.createElem=t.createElement,n.createFrag=t.createDocumentFragment,n.frag=n.createFrag()),t.createElement=function(e){return f.shivMethods?u(e,t,n):n.createElem(e)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/[\w\-:]+/g,function(e){return n.createElem(e),n.frag.createElement(e),'c("'+e+'")'})+");return n}")(f,n.frag)),e}var h,p,t=e.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,o=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,n="_html5shiv",a=0,r={};!function(){try{var e=l.createElement("a");e.innerHTML="<xyz></xyz>",h="hidden"in e,p=1==e.childNodes.length||function(){l.createElement("a");var e=l.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){p=h=!0}}();var f={elements:t.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==t.shivCSS,supportsUnknownElements:p,shivMethods:!1!==t.shivMethods,t
1ype:"default",shivDocument:i,createElement:u,createDocumentFragment:function(e,t){if(e=e||l,p)return e.createDocumentFragment();for(var n=(t=t||d(e)).frag.cloneNode(),i=0,s=c(),o=s.length;i<o;i++)n.createElement(s[i]);return n},addElements:function(e,t){var n=f.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),f.elements=n+" "+e,i(t)}};e.html5=f,i(l),"object"==typeof module&&module.exports&&(module.exports=f)}(void 0!==h?h:this,p);var n="Moz O ms Webkit",$=t._config.usePrefixes?n.toLowerCase().split(" "):[];t._domPrefixes=$;t.prefixedCSSValue=function(e,t){var n=!1,i=_("div").style;if(e in i){var s=$.length;for(i[e]=t,n=i[e];s--&&!n;)i[e]="-"+$[s]+"-"+t,n=i[e]}return""===n&&(n=!1),n},u.addTest("cssgradients",function(){for(var e,t="background-image:",n="",i=0,s=a.length-1;i<s;i++)e=0===i?"to ":"",n+=t+a[i]+"linear-gradient("+e+"left top, #9f9, white);";u._config.usePrefixes&&(n+=t+"-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));");var o=_("a").style;return o.cssText=n,-1<(""+o.backgroundImage).indexOf("gradient")}),u.addTest("opacity",function(){var e=_("a").style;return e.cssText=a.join("opacity:.55;"),/^0.55$/.test(e.opacity)}),u.addTest("cssremunit",function(){var e=_("a").style;try{e.fontSize="3rem"}catch(e){}return/rem/.test(e.fontSize)}),u.addTest("rgba",function(){var e=_("a").style;return e.cssText="background-color:rgba(150,255,150,.5)",-1<(""+e.backgroundColor).indexOf("rgba")});var s,o=(s=h.matchMedia||h.msMatchMedia)?function(e){var t=s(e);return t&&t.matches||!1}:function(e){var t=!1;return b("@media "+e+" { #modernizr { position: absolute; } }",function(e){t="absolute"==(h.getComputedStyle?h.getComputedStyle(e,null):e.currentStyle).position}),t};t.mq=o,u.addTest("mediaqueries",o("only all")),(t.testStyles=b)("#modernizr div {width:1px} #modernizr div:nth-child(2n) {width:2px;}",function(e){for(var t=e.getElementsByTagName("div"),n=!0,i=0;i<5;i++)n=n&&t[i].offsetWidth===i%2+1;u.addTest("nthchild",n)},5);var x=t._config.usePrefixes?n.split(" "):[];t._cssomPrefixes=x;function C(e){var t,n=a.length,i=h.CSSRule;if(void 0===i)return f;if(!e)return!1;if((t=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+e;for(var s=0;s<n;s++){var o=a[s];if(o.toUpperCase()+"_"+t in i)return"@-"+o.toLowerCase()+"-"+e}return!1}t.atRule=C;var S={elem:_("modernizr")};u._q.push(function(){delete S.elem});var k={style:S.elem.style};u._q.unshift(function(){delete k.style}),t.testAllProps=i;var T=t.prefixed=function(e,t,n){return 0===e.indexOf("@")?C(e):(-1!=e.indexOf("-")&&(e=g(e)),t?i(e,t,n
1):i(e,"pfx"))};t.prefixedCSS=function(e){var t=T(e);return t&&v(t)},t.testAllProps=e,u.addTest("borderradius",e("borderRadius","0px",!0)),u.addTest("boxshadow",e("boxShadow","1px 1px",!0)),u.addTest("flexbox",e("flexBasis","1px",!0)),u.addTest("flexboxlegacy",e("boxDirection","reverse",!0)),u.addTest("flexboxtweener",e("flexAlign","end",!0)),u.addTest("csstransitions",e("transition","all",!0)),function(){var e,t,n,i,s,o;for(var a in d)if(d.hasOwnProperty(a)){if(e=[],(t=d[a]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(i=m(t.fn,"function")?t.fn():t.fn,s=0;s<e.length;s++)1===(o=e[s].split(".")).length?u[o[0]]=i:(!u[o[0]]||u[o[0]]instanceof Boolean||(u[o[0]]=new Boolean(u[o[0]])),u[o[0]][o[1]]=i),c.push((i?"":"no-")+o.join("-"))}}(),function(e){var t=y.className,n=u._config.classPrefix||"";if(w&&(t=t.baseVal),u._config.enableJSClass){var i=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(i,"$1"+n+"js$2")}u._config.enableClasses&&(t+=" "+n+e.join(" "+n),w?y.className.baseVal=t:y.className=t)}(c),delete t.addTest,delete t.addAsyncTest;for(var A=0;A<u._q.length;A++)u._q[A]();h.Modernizr=u}(window,document),function(s){"use strict";s.fn.fitVids=function(e){var t={customSelector:null},n=document.createElement("div"),i=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return n.className="fit-vids-style",n.innerHTML="­<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>",i.parentNode.insertBefore(n,i),e&&s.extend(t,e),this.each(function(){var e=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.kickstarter.com']","object","embed"];t.customSelector&&e.push(t.customSelector),s(this).find(e.join(",")).each(function(){var e=s(this);if(!("embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){var t=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("id")){var n="fitvid"+Math.floor(999999*Math.random());e.attr("id",n)}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*t+"%"),e.removeAttr("height").removeAttr("width")}})})}}(jQuery),function(F){var H={},B={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};F.fn.bxSlider=function(t){if(0==this.length)return this;if(1<this.length)return this.each(function(){F(this).bxSlider(t)}),this;var c={},d=this;H.el=this;function n(){c.settings=F.extend({},B,t),c.settings.slideWidth=parseInt(c.settings.slideWidth),c.children=d.children(c.settings.slideSelector),c.children.length<c.settings.minSlides&&(c.settings.minSlides=c.children.length),c.children.length<c.settings.maxSlides&&(c.settings.maxSlides=c.children.length),c.settings.randomStart&&(c.settings.startSlide=Math.floor(Math.random()*c.children.length)),c.active={index:c.settings.startSlide},c.carousel=1<c.settings.minSlides||1<c.settings.maxSlides,c.carousel&&(c.settings.preloadImages="all"),c.minThreshold=c.settings.minSlides*c.settings.slideWidth+(c.settings.minSlides-1)*c.settings.slideMargin,c.maxThreshold=c.settings.maxSlides*c.settings.slideWidth+(c.settings.maxSlides-1)*c.settings.slideMargin,c.working=!1,c.controls={},c.interval=null,c.animProp="vertical"==c.settings.mode?"top":"left",c.usingCSS=c.settings.useCSS&&"fade"!=c.settings.mode&&function(){var e=document.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in t)if(void 0!==e.style[t[n]])return c.cssPrefix=t[n].replace("Perspective","").toLowerCase(),c.animProp="-"+c.cssPrefix+"-transform",!0;return!1}(),"vertical"==c.settings.mode&&(c.settings.maxSlides=c.settings.minSlides),d.data("origStyle",d.attr("style")),d.children(c.settings.slideSelector).each(function(){F(this).data("origStyle",F(this).attr("style"))}),a()}function e(){for(var e="",t=m(),n=0;n<t;n++){var i="";c.settings.buildPager&&F.isFunction(c.settings.buildPager)?(i=c.settings.buildPager(n),c.pagerEl.addClass("bx-custom-pager")):(i=n+1,c.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item">
1<a href="" data-slide-index="'+n+'" class="bx-pager-link">'+i+"</a></div>"}c.pagerEl.html(e)}var s=F(window).width(),o=F(window).height(),a=function(){d.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>'),c.viewport=d.parent(),c.loader=F('<div class="bx-loading" />'),c.viewport.prepend(c.loader),d.css({width:"horizontal"==c.settings.mode?100*c.children.length+215+"%":"auto",position:"relative"}),c.usingCSS&&c.settings.easing?d.css("-"+c.cssPrefix+"-transition-timing-function",c.settings.easing):c.settings.easing||(c.settings.easing="swing"),f(),c.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),c.viewport.parent().css({maxWidth:h()}),c.settings.pager||c.viewport.parent().css({margin:"0 auto 0px"}),c.children.css({float:"horizontal"==c.settings.mode?"left":"none",listStyle:"none",position:"relative"}),c.children.css("width",p()),"horizontal"==c.settings.mode&&0<c.settings.slideMargin&&c.children.css("marginRight",c.settings.slideMargin),"vertical"==c.settings.mode&&0<c.settings.slideMargin&&c.children.css("marginBottom",c.settings.slideMargin),"fade"==c.settings.mode&&(c.children.css({position:"absolute",zIndex:0,display:"none"}),c.children.eq(c.settings.startSlide).css({zIndex:c.settings.slideZIndex,display:"block"})),c.controls.el=F('<div class="bx-controls" />'),c.settings.captions&&$(),c.active.last=c.settings.startSlide==m()-1,c.settings.video&&d.fitVids();var e=c.children.eq(c.settings.startSlide);"all"==c.settings.preloadImages&&(e=c.children),c.settings.ticker?c.settings.pager=!1:(c.settings.pager&&b(),c.settings.controls&&y(),c.settings.auto&&c.settings.autoControls&&w(),(c.settings.controls||c.settings.autoControls||c.settings.pager)&&c.viewport.after(c.controls.el)),r(e,l)},r=function(e,t){var n=e.find("img, iframe").length;if(0!=n){var i=0;e.find("img, iframe").each(function(){F(this).one("load",function(){++i==n&&t()}).each(function(){this.complete&&F(this).load()})})}else t()},l=function(){if(c.settings.infiniteLoop&&"fade"!=c.settings.mode&&!c.settings.ticker){var e="vertical"==c.settings.mode?c.settings.minSlides:c.settings.maxSlides,t=c.children.slice(0,e).clone().addClass("bx-clone"),n=c.children.slice(-e).clone().addClass("bx-clone");d.append(t).prepend(n)}c.loader.remove(),v(),"vertical"==c.settings.mode&&(c.settings.adaptiveHeight=!0),c.viewport.height(u()),d.redrawSlider(),c.settings.onSliderLoad(c.active.index),c.initialized=!0,c.settings.responsive&&F(window).bind("resize",O),c.settings.auto&&c.settings.autoStart&&z(),c.settings.ticker&&M(),c.settings.pager&&A(c.settings.startSlide),c.settings.controls&&I(),c.settings.touchEnabled&&!c.settings.ticker&&q()},u=function(){var e=0,t=F();if("vertical"==c.settings.mode||c.settings.adaptiveHeight)if(c.carousel){var n=1==c.settings.moveSlides?c.active.index:c.active.index*g();for(t=c.children.eq(n),i=1;i<=c.settings.maxSlides-1;i++)t=n+i>=c.children.length?t.add(c.children.eq(i-1)):t.add(c.children.eq(n+i))}else t=c.children.eq(c.active.index);else t=c.children;return"vertical"==c.settings.mode?(t.each(function(){e+=F(this).outerHeight()}),0<c.settings.slideMargin&&(e+=c.settings.slideMargin*(c.settings.minSlides-1))):e=Math.max.apply(Math,t.map(function(){return F(this).outerHeight(!1)}).get()),e},h=function(){var e="100%";return 0<c.settings.slideWidth&&(e="horizontal"==c.settings.mode?c.settings.maxSlides*c.settings.slideWidth+(c.settings.maxSlides-1)*c.settings.slideMargin:c.settings.slideWidth),e},p=function(){var e=c.settings.slideWidth,t=c.viewport.width();return 0==c.settings.slideWidth||c.settings.slideWidth>t&&!c.carousel||"vertical"==c.settings.mode?e=t:1<c.settings.maxSlides&&"horizontal"==c.settings.mode&&(t>c.maxThreshold||t<c.minThreshold&&(e=(t-c.settings.slideMargin*(c.settings.minSlides-1))/c.settings.minSlides)),e},f=function(){var e=1;if("horizontal"==c.settings.mode&&0<c.settings.slideWidth)if(c.viewport.width()<c.minThreshold)e=c.settings.minSlides;else if(c.viewport.width()>c.maxThreshold)e=c.settings.maxSlides;else{var t=c.children.first().width();e=Math.floor(c.viewport.width()/t)}else"vertical"==c.settings.mode&&(e=c.settings.minSlides);return e},m=function(){var e=0;if(0<c.settings.moveSlides)if(c.settings.infiniteLoop)e=c.children.length/g();else for(var t=0,n=0;t<c.children.length;)++e,t=n+f(),n+=c.settings.moveSlides<=f()?c.settings.moveSlides:f();else e=Math.ceil(c.children.length/f());return e},g=function(){return 0<c.settings.moveSlides&&c.settings.moveSlides<=f()?c.settings.moveSlides:f()},v=function(){if(c.children.length>c.settings.maxSlides&&c.active.last&&!c.settings.infiniteLoop){if("horizontal"==c.settings.mode){var e=c.children.last(
1),t=e.position();_(-(t.left-(c.viewport.width()-e.width())),"reset",0)}else if("vertical"==c.settings.mode){var n=c.children.length-c.settings.minSlides;t=c.children.eq(n).position();_(-t.top,"reset",0)}}else{t=c.children.eq(c.active.index*g()).position();c.active.index==m()-1&&(c.active.last=!0),null!=t&&("horizontal"==c.settings.mode?_(-t.left,"reset",0):"vertical"==c.settings.mode&&_(-t.top,"reset",0))}},_=function(e,t,n,i){if(c.usingCSS){var s="vertical"==c.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)";d.css("-"+c.cssPrefix+"-transition-duration",n/1e3+"s"),"slide"==t?(d.css(c.animProp,s),d.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){d.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),P()})):"reset"==t?d.css(c.animProp,s):"ticker"==t&&(d.css("-"+c.cssPrefix+"-transition-timing-function","linear"),d.css(c.animProp,s),d.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){d.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),_(i.resetValue,"reset",0),j()}))}else{var o={};o[c.animProp]=e,"slide"==t?d.animate(o,n,c.settings.easing,function(){P()}):"reset"==t?d.css(c.animProp,e):"ticker"==t&&d.animate(o,speed,"linear",function(){_(i.resetValue,"reset",0),j()})}},b=function(){c.settings.pagerCustom?c.pagerEl=F(c.settings.pagerCustom):(c.pagerEl=F('<div class="bx-pager" />'),c.settings.pagerSelector?F(c.settings.pagerSelector).html(c.pagerEl):c.controls.el.addClass("bx-has-pager").append(c.pagerEl),e()),c.pagerEl.on("click","a",T)},y=function(){c.controls.next=F('<a class="bx-next" href="">'+c.settings.nextText+"</a>"),c.controls.prev=F('<a class="bx-prev" href="">'+c.settings.prevText+"</a>"),c.controls.next.bind("click",x),c.controls.prev.bind("click",C),c.settings.nextSelector&&F(c.settings.nextSelector).append(c.controls.next),c.settings.prevSelector&&F(c.settings.prevSelector).append(c.controls.prev),c.settings.nextSelector||c.settings.prevSelector||(c.controls.directionEl=F('<div class="bx-controls-direction" />'),c.controls.directionEl.append(c.controls.prev).append(c.controls.next),c.controls.el.addClass("bx-has-controls-direction").append(c.controls.directionEl))},w=function(){c.controls.start=F('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+c.settings.startText+"</a></div>"),c.controls.stop=F('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+c.settings.stopText+"</a></div>"),c.controls.autoEl=F('<div class="bx-controls-auto" />'),c.controls.autoEl.on("click",".bx-start",S),c.controls.autoEl.on("click",".bx-stop",k),c.settings.autoControlsCombine?c.controls.autoEl.append(c.controls.start):c.controls.autoEl.append(c.controls.start).append(c.controls.stop),c.settings.autoControlsSelector?F(c.settings.autoControlsSelector).html(c.controls.autoEl):c.controls.el.addClass("bx-has-controls-auto").append(c.controls.autoEl),E(c.settings.autoStart?"stop":"start")},$=function(){c.children.each(function(){var e=F(this).find("img:first").attr("title");null!=e&&(""+e).length&&F(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},x=function(e){c.settings.auto&&d.stopAuto(),d.goToNextSlide(),e.preventDefault()},C=function(e){c.settings.auto&&d.stopAuto(),d.goToPrevSlide(),e.preventDefault()},S=function(e){d.startAuto(),e.preventDefault()},k=function(e){d.stopAuto(),e.preventDefault()},T=function(e){c.settings.auto&&d.stopAuto();var t=F(e.currentTarget),n=parseInt(t.attr("data-slide-index"));n!=c.active.index&&d.goToSlide(n),e.preventDefault()},A=function(n){var e=c.children.length;return"short"==c.settings.pagerType?(1<c.settings.maxSlides&&(e=Math.ceil(c.children.length/c.settings.maxSlides)),void c.pagerEl.html(n+1+c.settings.pagerShortSeparator+e)):(c.pagerEl.find("a").removeClass("active"),void c.pagerEl.each(function(e,t){F(t).find("a").eq(n).addClass("active")}))},P=function(){if(c.settings.infiniteLoop){var e="";0==c.active.index?e=c.children.eq(0).position():c.active.index==m()-1&&c.carousel?e=c.children.eq((m()-1)*g()).position():c.active.index==c.children.length-1&&(e=c.children.eq(c.children.length-1).position()),e&&("horizontal"==c.settings.mode?_(-e.left,"reset",0):"vertical"==c.settings.mode&&_(-e.top,"reset",0))}c.working=!1,c.settings.onSlideAfter(c.children.eq(c.active.index),c.oldIndex,c.active.index)},E=function(e){c.settings.autoControlsCombine?c.controls.autoEl.html(c.controls[e]):(c.controls.autoEl.find("a").removeClass("active"),c.controls.autoEl.find("a:not(.bx-"+e+")").addClass("active"))},I=function(){1==m()?(c.controls.prev.addClass("disabled"),c.controls.next.addClass("disabled")):!c.settings.infiniteLoop&&c.settings.hideControlOnEnd&&(0==c.active.index?(c.controls.prev.addClass("disabled"),c.controls.next.removeClass("disabled")):c.active.index==m()-1?(c.controls.next.addClass("disabled"),c.controls.prev.removeClass("disabled")):(c.controls.prev.removeClass("disabled"),c.controls.next.removeClass("disabled")))},z=function(){0<c.settings.autoDelay?setTimeout(d.startAuto,c.settings.autoDelay):d.startAuto(),c.settings.autoHover&&d.hover(function(){c.interval&&(d.stopAuto(!0),c.autoPaused=!0)},function(){c.autoPaused&&(d.startAuto(!0),c.autoPaused=null)})},M=function(){var e=0;if("next"==c.settings.autoDirection)d.append(c.children.clone().addClass("bx-clone"));else{d.prepend(c.children.clone().addClass("bx-clone"));var t=c.children.first().position();e="horizontal"==c.settings.mode?-t.left:-t.top}_(e,"reset",0),c.settings.pager=!1,c.settings.controls=!1,c.settings.autoControls=!1,c.settings.tickerHover&&!c.usingCSS&&c.viewport.hover(function(){d.stop()},function(){var e=0;c.children.each(function(){e+="horizontal"==c.settings.mode?F(this).outerWidth(!0):F(this).outerHeight(!0)});
1var t=c.settings.speed/e,n="horizontal"==c.settings.mode?"left":"top",i=t*(e-Math.abs(parseInt(d.css(n))));j(i)}),j()},j=function(e){speed=e||c.settings.speed;var t={left:0,top:0},n={left:0,top:0};"next"==c.settings.autoDirection?t=d.find(".bx-clone").first().position():n=c.children.first().position();var i="horizontal"==c.settings.mode?-t.left:-t.top,s="horizontal"==c.settings.mode?-n.left:-n.top;_(i,"ticker",speed,{resetValue:s})},q=function(){c.touch={start:{x:0,y:0},end:{x:0,y:0}},c.viewport.bind("touchstart",D)},D=function(e){if(c.working)e.preventDefault();else{c.touch.originalPos=d.position();var t=e.originalEvent;c.touch.start.x=t.changedTouches[0].pageX,c.touch.start.y=t.changedTouches[0].pageY,c.viewport.bind("touchmove",L),c.viewport.bind("touchend",N)}},L=function(e){var t=e.originalEvent,n=Math.abs(t.changedTouches[0].pageX-c.touch.start.x),i=Math.abs(t.changedTouches[0].pageY-c.touch.start.y);if(i<3*n&&c.settings.preventDefaultSwipeX?e.preventDefault():n<3*i&&c.settings.preventDefaultSwipeY&&e.preventDefault(),"fade"!=c.settings.mode&&c.settings.oneToOneTouch){var s=0;if("horizontal"==c.settings.mode){var o=t.changedTouches[0].pageX-c.touch.start.x;s=c.touch.originalPos.left+o}else{o=t.changedTouches[0].pageY-c.touch.start.y;s=c.touch.originalPos.top+o}_(s,"reset",0)}},N=function(e){c.viewport.unbind("touchmove",L);var t=e.originalEvent,n=0;if(c.touch.end.x=t.changedTouches[0].pageX,c.touch.end.y=t.changedTouches[0].pageY,"fade"==c.settings.mode){(i=Math.abs(c.touch.start.x-c.touch.end.x))>=c.settings.swipeThreshold&&(c.touch.start.x>c.touch.end.x?d.goToNextSlide():d.goToPrevSlide(),d.stopAuto())}else{var i=0;n="horizontal"==c.settings.mode?(i=c.touch.end.x-c.touch.start.x,c.touch.originalPos.left):(i=c.touch.end.y-c.touch.start.y,c.touch.originalPos.top),!c.settings.infiniteLoop&&(0==c.active.index&&0<i||c.active.last&&i<0)?_(n,"reset",200):Math.abs(i)>=c.settings.swipeThreshold?(i<0?d.goToNextSlide():d.goToPrevSlide(),d.stopAuto()):_(n,"reset",200)}c.viewport.unbind("touchend",N)},O=function(){var e=F(window).width(),t=F(window).height();s==e&&o==t||(s=e,o=t,d.redrawSlider(),c.settings.onSliderResize.call(d,c.active.index))};return d.goToSlide=function(e,t){if(!c.working&&c.active.index!=e)if(c.working=!0,c.oldIndex=c.active.index,c.active.index=e<0?m()-1:e>=m()?0:e,c.settings.onSlideBefore(c.children.eq(c.active.index),c.oldIndex,c.active.index),"next"==t?c.settings.onSlideNext(c.children.eq(c.active.index),c.oldIndex,c.active.index):"prev"==t&&c.settings.onSlidePrev(c.children.eq(c.active.index),c.oldIndex,c.active.index),c.active.last=c.active.index>=m()-1,c.settings.pager&&A(c.active.index),c.settings.controls&&I(),"fade"==c.settings.mode)c.settings.adaptiveHeight&&c.viewport.height()!=u()&&c.viewport.animate({height:u()},c.settings.adaptiveHeightSpeed),c.children.filter(":visible").fadeOut(c.settings.speed).css({zIndex:0}),c.children.eq(c.active.index).css("zIndex",c.settings.slideZIndex+1).fadeIn(c.settings.speed,function(){F(this).css("zIndex",c.settings.slideZIndex),P()});else{c.settings.adaptiveHeight&&c.viewport.height()!=u()&&c.viewport.animate({height:u()},c.settings.adaptiveHeightSpeed);var n=0,i={left:0,top:0};if(!c.settings.infiniteLoop&&c.carousel&&c.active.last)if("horizontal"==c.settings.mode){i=(o=c.children.eq(c.children.length-1)).position(),n=c.viewport.width()-o.outerWidth()}else{var s=c.children.length-c.settings.minSlides;i=c.children.eq(s).position()}else if(c.carousel&&c.active.last&&"prev"==t){var o,a=1==c.settings.moveSlides?c.settings.maxSlides-g():(m()-1)*g()-(c.children.length-c.settings.maxSlides);i=(o=d.children(".bx-clone").eq(a)).position()}else if("next"==t&&0==c.active.index)i=d.find("> .bx-clone").eq(c.settings.maxSlides).position(),c.active.last=!1;else if(0<=e){var r=e*g();i=c.children.eq(r).position()}if(void 0!==i){var l="horizontal"==c.settings.mode?-(i.left-n):-i.top;_(l,"slide",c.settings.speed)}}},d.goToNextSlide=function(){if(c.settings.infiniteLoop||!c.active.last){var e=parseInt(c.active.index)+1;d.goToSlide(e,"next")}},d.goToPrevSlide=function(){if(c.settings.infiniteLoop||0!=c.active.index){var e=parseInt(c.active.index)-1;d.goToSlide(e,"prev")}},d.startAuto=function(e){c.interval||(c.interval=setInterval(function(){"next"==c.settings.autoDirection?d.goToNextSlide():d.goToPrevSlide()},c.settings.pause),c.settings.autoControls&&1!=e&&E("stop"))},d.stopAuto=function(e){c.interval&&(clearInterval(c.interval),c.interval=null,c.settings.autoControls&&1!=e&&E("start"))},d.getCurrentSlide=function(){return c.active.index},d.getCurrentSlideElement=function(){return c.children.eq(c.active.index)},d.getSlideCount=function(){return c.children.length},d.redrawSlider=function(){c.children.add(d.find(".bx-clone")).outerWidth(p()),c.viewport.css("height",u()),c.settings.ticker||v(),c.active.last&&(c.active.index=m()-1),c.active.index>=m()&&(c.active.last=!0),c.settings.pager&&!c.settings.pagerCustom&&(e(),A(c.active.index))},d.destroySlider=function(){c.initialized&&(c.initialized=!1,F(".bx-clone",this).remove(),c.children.each(function(){null!=F(this).data("origStyle")?F(this).attr("style",F(this).data("origStyle")):F(this).removeAttr("style")}),null!=F(this).data("origStyle")?this.attr("style",F(this).data("origStyle")):F(this).removeAttr("style"),F(this).unwrap().unwrap(),c.controls.el&&c.controls.el.remove(),c.controls.next&&c.controls.next.remove(),c.controls.prev&&c.controls.prev.remove(),c.pagerEl&&c.settings.controls&&c.pagerEl.remove(),F(".bx-caption",this).remove(),c.controls.autoEl&&c.controls.autoEl.remove(),clearInterval(c.interval),c.settings.responsive&&F(window).unbind("resize",O))},d.reloadSlider=function(e){null!=e&&(t=e),d.destroySlider(),n()},n(),this}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(d){function e(){}function u(e,t){m.ev.on("mfp"+e+y,t)}function h(e,t,n,i){var s=document.createElement("div");return s.className="mfp-"+e,n&&(s.innerHTML=n),i?t&&t.appendChild(s):(s=d(s),t&&s.appendTo(t)),s}function p(e,t){m.ev.triggerHandler("mfp"+e,t),m.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),m.st.callbacks[e]&&m.st.callbacks[e].apply(m,d.isArray(t)?t:[t]))}function f(e){return e===t&&m.currTemplate.closeBtn||(m.currTemplate.closeBtn=d(m.st.closeMarkup.replace("%title%",m.st.tClose)),t=e),m.currTemplate.closeBtn}function o(){d.magnificPopup.instance||((m=new e).init(),d.magnificPopup.instance=m)}var m,i,g,s,v,t,l="Close",c="BeforeClose",_="MarkupParse",b="Open",y=".mfp",w="mfp-ready",n="mfp-removing",a="mfp-prevent-close",r=!!window.jQuery,$=d(window);e.prototype={constructor:e,init:function(){var e=navigator.appVersion;m.isIE7=-1!==e.indexOf("MSIE 7."),m.isIE8=-1!==e.indexOf("MSIE 8."),m.isLowIE=m.isIE7||m.isIE8,m.isAndroid=/android/gi.test(e),m.isIOS=/iphone|ipad|ipod/gi.test(e),m.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),m.probablyMobile=m.isAndroid||m.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),g=d(document),m.popupsCache={}},open:function(e){var t;if(!1===e.isObj){m.items=e.items.toArray(),m.index=0;var n,i=e.items;for(t=0;t<i.length;t++)if((n=i[t]).parsed&&(n=n.el[0]),n===e.el[0]){m.index=t;break}}
1else m.items=d.isArray(e.items)?e.items:[e.items],m.index=e.index||0;if(!m.isOpen){m.types=[],v="",m.ev=e.mainEl&&e.mainEl.length?e.mainEl.eq(0):g,e.key?(m.popupsCache[e.key]||(m.popupsCache[e.key]={}),m.currTemplate=m.popupsCache[e.key]):m.currTemplate={},m.st=d.extend(!0,{},d.magnificPopup.defaults,e),m.fixedContentPos="auto"===m.st.fixedContentPos?!m.probablyMobile:m.st.fixedContentPos,m.st.modal&&(m.st.closeOnContentClick=!1,m.st.closeOnBgClick=!1,m.st.showCloseBtn=!1,m.st.enableEscapeKey=!1),m.bgOverlay||(m.bgOverlay=h("bg").on("click"+y,function(){m.close()}),m.wrap=h("wrap").attr("tabindex",-1).on("click"+y,function(e){m._checkIfClose(e.target)&&m.close()}),m.container=h("container",m.wrap)),m.contentContainer=h("content"),m.st.preloader&&(m.preloader=h("preloader",m.container,m.st.tLoading));var s=d.magnificPopup.modules;for(t=0;t<s.length;t++){var o=s[t];o=o.charAt(0).toUpperCase()+o.slice(1),m["init"+o].call(m)}p("BeforeOpen"),m.st.showCloseBtn&&(m.st.closeBtnInside?(u(_,function(e,t,n,i){n.close_replaceWith=f(i.type)}),v+=" mfp-close-btn-in"):m.wrap.append(f())),m.st.alignTop&&(v+=" mfp-align-top"),m.wrap.css(m.fixedContentPos?{overflow:m.st.overflowY,overflowX:"hidden",overflowY:m.st.overflowY}:{top:$.scrollTop(),position:"absolute"}),!1!==m.st.fixedBgPos&&("auto"!==m.st.fixedBgPos||m.fixedContentPos)||m.bgOverlay.css({height:g.height(),position:"absolute"}),m.st.enableEscapeKey&&g.on("keyup"+y,function(e){27===e.keyCode&&m.close()}),$.on("resize"+y,function(){m.updateSize()}),m.st.closeOnContentClick||(v+=" mfp-auto-cursor"),v&&m.wrap.addClass(v);var a=m.wH=$.height(),r={};if(m.fixedContentPos&&m._hasScrollBar(a)){var l=m._getScrollbarSize();l&&(r.marginRight=l)}m.fixedContentPos&&(m.isIE7?d("body, html").css("overflow","hidden"):r.overflow="hidden");var c=m.st.mainClass;return m.isIE7&&(c+=" mfp-ie7"),c&&m._addClassToMFP(c),m.updateItemHTML(),p("BuildControls"),d("html").css(r),m.bgOverlay.add(m.wrap).prependTo(m.st.prependTo||d(document.body)),m._lastFocusedEl=document.activeElement,setTimeout(function(){m.content?(m._addClassToMFP(w),m._setFocus()):m.bgOverlay.addClass(w),g.on("focusin"+y,m._onFocusIn)},16),m.isOpen=!0,m.updateSize(a),p(b),e}m.updateItemHTML()},close:function(){m.isOpen&&(p(c),m.isOpen=!1,m.st.removalDelay&&!m.isLowIE&&m.supportsTransition?(m._addClassToMFP(n),setTimeout(function(){m._close()},m.st.removalDelay)):m._close())},_close:function(){p(l);var e=n+" "+w+" ";if(m.bgOverlay.detach(),m.wrap.detach(),m.container.empty(),m.st.mainClass&&(e+=m.st.mainClass+" "),m._removeClassFromMFP(e),m.fixedContentPos){var t={marginRight:""};m.isIE7?d("body, html").css("overflow",""):t.overflow="",d("html").css(t)}g.off("keyup.mfp focusin"+y),m.ev.off(y),m.wrap.attr("class","mfp-wrap").removeAttr("style"),m.bgOverlay.attr("class","mfp-bg"),m.container.attr("class","mfp-container"),!m.st.showCloseBtn||m.st.closeBtnInside&&!0!==m.currTemplate[m.currItem.type]||m.currTemplate.closeBtn&&m.currTemplate.closeBtn.detach(),m._lastFocusedEl&&d(m._lastFocusedEl).focus(),m.currItem=null,m.content=null,m.currTemplate=null,m.prevHeight=0,p("AfterClose")},updateSize:function(e){if(m.isIOS){var t=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*t;m.wrap.css("height",n),m.wH=n}else m.wH=e||$.height();m.fixedContentPos||m.wrap.css("height",m.wH),p("Resize")},updateItemHTML:function(){var e=m.items[m.index];m.contentContainer.detach(),m.content&&m.content.detach(),e.parsed||(e=m.parseEl(m.index));var t=e.type;if(p("BeforeChange",[m.currItem?m.currItem.type:"",t]),m.currItem=e,!m.currTemplate[t]){var n=!!m.st[t]&&m.st[t].markup;p("FirstMarkupParse",n),m.currTemplate[t]=!n||d(n)}s&&s!==e.type&&m.container.removeClass("mfp-"+s+"-holder");var i=m["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,m.currTemplate[t]);m.appendContent(i,t),e.preloaded=!0,p("Change",e),s=e.type,m.container.prepend(m.contentContainer),p("AfterChange")},appendContent:function(e,t){(m.content=e)?m.st.showCloseBtn&&m.st.closeBtnInside&&!0===m.currTemplate[t]?m.content.find(".mfp-close").length||m.content.append(f()):m.content=e:m.content="",p("BeforeAppend"),m.container.addClass("mfp-"+t+"-holder"),m.contentContainer.append(m.content)},parseEl:function(e){var t,n=m.items[e];if((n=n.tagName?{el:d(n)}:(t=n.type,{data:n,src:n.src})).el){for(var i=m.types,s=0;s<i.length;s++)if(n.el.hasClass("mfp-"+i[s])){t=i[s];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}
1return n.type=t||m.st.type||"inline",n.index=e,n.parsed=!0,m.items[e]=n,p("ElementParse",n),m.items[e]},addGroup:function(t,n){function e(e){e.mfpEl=this,m._openClick(e,t,n)}var i="click.magnificPopup";(n=n||{}).mainEl=t,n.items?(n.isObj=!0,t.off(i).on(i,e)):(n.isObj=!1,n.delegate?t.off(i).on(i,n.delegate,e):(n.items=t).off(i).on(i,e))},_openClick:function(e,t,n){if((void 0!==n.midClick?n.midClick:d.magnificPopup.defaults.midClick)||2!==e.which&&!e.ctrlKey&&!e.metaKey){var i=void 0!==n.disableOn?n.disableOn:d.magnificPopup.defaults.disableOn;if(i)if(d.isFunction(i)){if(!i.call(m))return!0}else if($.width()<i)return!0;e.type&&(e.preventDefault(),m.isOpen&&e.stopPropagation()),n.el=d(e.mfpEl),n.delegate&&(n.items=t.find(n.delegate)),m.open(n)}},updateStatus:function(e,t){if(m.preloader){i!==e&&m.container.removeClass("mfp-s-"+i),t||"loading"!==e||(t=m.st.tLoading);var n={status:e,text:t};p("UpdateStatus",n),e=n.status,t=n.text,m.preloader.html(t),m.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),m.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(e){if(!d(e).hasClass(a)){var t=m.st.closeOnContentClick,n=m.st.closeOnBgClick;if(t&&n)return!0;if(!m.content||d(e).hasClass("mfp-close")||m.preloader&&e===m.preloader[0])return!0;if(e===m.content[0]||d.contains(m.content[0],e)){if(t)return!0}else if(n&&d.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){m.bgOverlay.addClass(e),m.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),m.wrap.removeClass(e)},_hasScrollBar:function(e){return(m.isIE7?g.height():document.body.scrollHeight)>(e||$.height())},_setFocus:function(){(m.st.focus?m.content.find(m.st.focus).eq(0):m.wrap).focus()},_onFocusIn:function(e){return e.target===m.wrap[0]||d.contains(m.wrap[0],e.target)?void 0:(m._setFocus(),!1)},_parseMarkup:function(s,e,t){var o;t.data&&(e=d.extend(t.data,e)),p(_,[s,e,t]),d.each(e,function(e,t){if(void 0===t||!1===t)return!0;if(1<(o=e.split("_")).length){var n=s.find(y+"-"+o[0]);if(0<n.length){var i=o[1];"replaceWith"===i?n[0]!==t[0]&&n.replaceWith(t):"img"===i?n.is("img")?n.attr("src",t):n.replaceWith('<img src="'+t+'" class="'+n.attr("class")+'" />'):n.attr(o[1],t)}}else s.find(y+"-"+e).html(t)})},_getScrollbarSize:function(){if(void 0===m.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),m.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return m.scrollbarSize}},d.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){return o(),(e=e?d.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return d.magnificPopup.instance&&d.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(d.magnificPopup.defaults[e]=t.options),d.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},d.fn.magnificPopup=function(e){o();var t=d(this);if("string"==typeof e)if("open"===e){var n,i=r?t.data("magnificPopup"):t[0].magnificPopup,s=parseInt(arguments[1],10)||0;n=i.items?i.items[s]:(n=t,i.delegate&&(n=n.find(i.delegate)),n.eq(s)),m._openClick({mfpEl:n},t,i)}
1else m.isOpen&&m[e].apply(m,Array.prototype.slice.call(arguments,1));else e=d.extend(!0,{},e),r?t.data("magnificPopup",e):t[0].magnificPopup=e,m.addGroup(t,e);return t};function x(){k&&(S.after(k.addClass(C)).detach(),k=null)}var C,S,k,T="inline";d.magnificPopup.registerModule(T,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){m.types.push(T),u(l+"."+T,function(){x()})},getInline:function(e,t){if(x(),e.src){var n=m.st.inline,i=d(e.src);if(i.length){var s=i[0].parentNode;s&&s.tagName&&(S||(C=n.hiddenClass,S=h(C),C="mfp-"+C),k=i.after(S).detach().removeClass(C)),m.updateStatus("ready")}else m.updateStatus("error",n.tNotFound),i=d("<div>");return e.inlineElement=i}return m.updateStatus("ready"),m._parseMarkup(t,{},e),t}}});function A(){E&&d(document.body).removeClass(E)}function P(){A(),m.req&&m.req.abort()}var E,I="ajax";d.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){m.types.push(I),E=m.st.ajax.cursor,u(l+"."+I,P),u("BeforeChange."+I,P)},getAjax:function(s){E&&d(document.body).addClass(E),m.updateStatus("loading");var e=d.extend({url:s.src,success:function(e,t,n){var i={data:e,xhr:n};p("ParseAjax",i),m.appendContent(d(i.data),I),s.finished=!0,A(),m._setFocus(),setTimeout(function(){m.wrap.addClass(w)},16),m.updateStatus("ready"),p("AjaxContentAdded")},error:function(){A(),s.finished=s.loadError=!0,m.updateStatus("error",m.st.ajax.tError.replace("%url%",s.src))}},m.st.ajax.settings);return m.req=d.ajax(e),""}}});var z;d.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=m.st.image,t=".image";m.types.push("image"),u(b+t,function(){"image"===m.currItem.type&&e.cursor&&d(document.body).addClass(e.cursor)}),u(l+t,function(){e.cursor&&d(document.body).removeClass(e.cursor),$.off("resize"+y)}),u("Resize"+t,m.resizeImage),m.isLowIE&&u("AfterChange",m.resizeImage)},resizeImage:function(){var e=m.currItem;if(e&&e.img&&m.st.image.verticalFit){var t=0;m.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",m.wH-t)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,z&&clearInterval(z),e.isCheckingImgSize=!1,p("ImageHasSize",e),e.imgHidden&&(m.content&&m.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(t){var n=0,i=t.img[0],s=function(e){z&&clearInterval(z),z=setInterval(function(){return 0<i.naturalWidth?void m._onImageHasSize(t):(200<n&&clearInterval(z),void(3===++n?s(10):40===n?s(50):100===n&&s(500)))},e)};s(1)},getImage:function(e,t){var n=0,i=function(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===m.currItem&&(m._onImageHasSize(e),m.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,p("ImageLoadComplete")):++n<200?setTimeout(i,100):s())},s=function(){e&&(e.img.off(".mfploader"),e===m.currItem&&(m._onImageHasSize(e),m.updateStatus("error",o.tError.replace("%url%",e.
1src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)},o=m.st.image,a=t.find(".mfp-img");if(a.length){var r=document.createElement("img");r.className="mfp-img",e.el&&e.el.find("img").length&&(r.alt=e.el.find("img").attr("alt")),e.img=d(r).on("load.mfploader",i).on("error.mfploader",s),r.src=e.src,a.is("img")&&(e.img=e.img.clone()),0<(r=e.img[0]).naturalWidth?e.hasSize=!0:r.width||(e.hasSize=!1)}return m._parseMarkup(t,{title:function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=m.st.image.titleSrc;if(t){if(d.isFunction(t))return t.call(m,e);if(e.el)return e.el.attr(t)||""}return""}(e),img_replaceWith:e.img},e),m.resizeImage(),e.hasSize?(z&&clearInterval(z),e.loadError?(t.addClass("mfp-loading"),m.updateStatus("error",o.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),m.updateStatus("ready"))):(m.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),m.findImageSize(e))),t}}});var M;d.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,o=m.st.zoom,t=".zoom";if(o.enabled&&m.supportsTransition){function n(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+o.duration/1e3+"s "+o.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},s="transition";return i["-webkit-"+s]=i["-moz-"+s]=i["-o-"+s]=i[s]=n,t.css(i),t}function i(){m.content.css("visibility","visible")}var s,a,r=o.duration;u("BuildControls"+t,function(){if(m._allowZoom()){if(clearTimeout(s),m.content.css("visibility","hidden"),!(e=m._getItemToZoom()))return void i();(a=n(e)).css(m._getOffset()),m.wrap.append(a),s=setTimeout(function(){a.css(m._getOffset(!0)),s=setTimeout(function(){i(),setTimeout(function(){a.remove(),e=a=null,p("ZoomAnimationEnded")},16)},r)},16)}}),u(c+t,function(){if(m._allowZoom()){if(clearTimeout(s),m.st.removalDelay=r,!e){if(!(e=m._getItemToZoom()))return;a=n(e)}a.css(m._getOffset(!0)),m.wrap.append(a),m.content.css("visibility","hidden"),setTimeout(function(){a.css(m._getOffset())},16)}}),u(l+t,function(){m._allowZoom()&&(i(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===m.currItem.type},_getItemToZoom:function(){return!!m.currItem.hasSize&&m.currItem.img},_getOffset:function(e){var t,n=(t=e?m.currItem.img:m.st.zoom.opener(m.currItem.el||m.currItem)).offset(),i=parseInt(t.css("padding-top"),10),s=parseInt(t.css("padding-bottom"),10);n.top-=d(window).scrollTop()-i;var o={width:t.width(),height:(r?t.innerHeight():t[0].offsetHeight)-s-i};return void 0===M&&(M=void 0!==document.createElement("p").style.MozTransform),M?o["-moz-transform"]=o.transform="translate("+n.left+"px,"+n.top+"px)":(o.left=n.left,o.top=n.top),o}}});function j(e){if(m.currTemplate[q]){var t=m.currTemplate[q].find("iframe");t.length&&(e||(t[0].src="//about:blank"),m.isIE8&&t.css("display",e?"block":"none"))}}var q="iframe";d.magnificPopup.registerModule(q,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){m.types.push(q),u("BeforeChange",function(e,t,n){t!==n&&(t===q?j():n===q&&j(!0))}),u(l+"."+q,function(){j()})},getIframe:function(e,t){var n=e.src,i=m.st.iframe;d.each(i.patterns,function(){return-1<n.indexOf(this.index)?(this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1):void 0});var s={};return i.srcAction&&(s[i.srcAction]=n),m._parseMarkup(t,s,e),m.updateStatus("ready"),t}}});function D(e){var t=m.items.length;return t-1<e?e-t:e<0?t+e:e}function L(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)}d.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var o=m.st.gallery,e=".mfp-gallery",s=Boolean(d.fn.mfpFastClick);return m.direction=!0,!(!o||!o.enabled)&&(v+=" mfp-gallery",u(b+e,function(){o.navigateByImgClick&&m.wrap.on("click"+e,".mfp-img",function(){return 1<m.items.length?(m.next(),!1):void 0}
1),g.on("keydown"+e,function(e){37===e.keyCode?m.prev():39===e.keyCode&&m.next()})}),u("UpdateStatus"+e,function(e,t){t.text&&(t.text=L(t.text,m.currItem.index,m.items.length))}),u(_+e,function(e,t,n,i){var s=m.items.length;n.counter=1<s?L(o.tCounter,i.index,s):""}),u("BuildControls"+e,function(){if(1<m.items.length&&o.arrows&&!m.arrowLeft){var e=o.arrowMarkup,t=m.arrowLeft=d(e.replace(/%title%/gi,o.tPrev).replace(/%dir%/gi,"left")).addClass(a),n=m.arrowRight=d(e.replace(/%title%/gi,o.tNext).replace(/%dir%/gi,"right")).addClass(a),i=s?"mfpFastClick":"click";t[i](function(){m.prev()}),n[i](function(){m.next()}),m.isIE7&&(h("b",t[0],!1,!0),h("a",t[0],!1,!0),h("b",n[0],!1,!0),h("a",n[0],!1,!0)),m.container.append(t.add(n))}}),u("Change"+e,function(){m._preloadTimeout&&clearTimeout(m._preloadTimeout),m._preloadTimeout=setTimeout(function(){m.preloadNearbyImages(),m._preloadTimeout=null},16)}),void u(l+e,function(){g.off(e),m.wrap.off("click"+e),m.arrowLeft&&s&&m.arrowLeft.add(m.arrowRight).destroyMfpFastClick(),m.arrowRight=m.arrowLeft=null}))},next:function(){m.direction=!0,m.index=D(m.index+1),m.updateItemHTML()},prev:function(){m.direction=!1,m.index=D(m.index-1),m.updateItemHTML()},goTo:function(e){m.direction=e>=m.index,m.index=e,m.updateItemHTML()},preloadNearbyImages:function(){var e,t=m.st.gallery.preload,n=Math.min(t[0],m.items.length),i=Math.min(t[1],m.items.length);for(e=1;e<=(m.direction?i:n);e++)m._preloadItem(m.index+e);for(e=1;e<=(m.direction?n:i);e++)m._preloadItem(m.index-e)},_preloadItem:function(e){if(e=D(e),!m.items[e].preloaded){var t=m.items[e];t.parsed||(t=m.parseEl(e)),p("LazyLoad",t),"image"===t.type&&(t.img=d('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,p("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0}}}});var N,O,F="retina";function H(){$.off("touchmove"+O+" touchend"+O)}d.magnificPopup.registerModule(F,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(1<window.devicePixelRatio){var n=m.st.retina,i=n.ratio;1<(i=isNaN(i)?i():i)&&(u("ImageHasSize."+F,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),u("ElementParse."+F,function(e,t){t.src=n.replaceSrc(t,i)}))}}}}),N="ontouchstart"in window,O=".mfpFastClick",d.fn.mfpFastClick=function(l){return d(this).each(function(){var t,n,i,s,o,a,r,e=d(this);N&&e.on("touchstart"+O,function(e){o=!1,r=1,a=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],i=a.clientX,s=a.clientY,$.on("touchmove"+O,function(e){a=e.originalEvent?e.originalEvent.touches:e.touches,r=a.length,a=a[0],(10<Math.abs(a.clientX-i)||10<Math.abs(a.clientY-s))&&(o=!0,H())}).on("touchend"+O,function(e){H(),o||1<r||(t=!0,e.preventDefault(),clearTimeout(n),n=setTimeout(function(){t=!1},1e3),l())})});e.on("click"+O,function(){t||l()})})},d.fn.destroyMfpFastClick=function(){d(this).off("touchstart"+O+" click"+O),N&&$.off("touchmove"+O+" touchend"+O)},o()}),function(e){var t=!1;if("function"==typeof define&&define.amd&&(define(e),t=!0),"object"==typeof exports&&(module.exports=e(),t=!0),!t){var n=window.Cookies,i=window.Cookies=e();i.noConflict=function(){return window.Cookies=n,i}}}(function(){function m(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}return function e(p){function f(e,t,n){var i;if("undefined"!=typeof document){if(1<arguments.length){if("number"==typeof(n=m({path:"/"},f.defaults,n)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*n.expires),n.expires=s}n.expires=n.expires?n.expires.toUTCString():"";try{i=JSON.stringify(t),/^[\{\[]/.test(i)&&(t=i)}catch(e){}t=p.write?p.write(t,e):encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var o="";for(var a in n)n[a]&&(o+="; "+a,!0!==n[a]&&(o+="="+n[a]));return document.cookie=e+"="+t+o}e||(i={});for(var r=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,c=0;c<r.length;c++){var d=r[c].split("="),u=d.slice(1).join("=");'"'===u.charAt(0)&&(u=u.slice(1,-1));try{var h=d[0].replace(l,decodeURIComponent);if(u=p.read?p.read(u,h):p(u,h)||u.replace(l,decodeURIComponent),this.json)try{u=JSON.parse(u)}catch(e){}if(e===h){i=u;break}e||(i[h]=u)}catch(e){}}return i}}return(f.set=f).get=function(e){return f.call(f,e)},f.getJSON=function(){return f.apply({json:!0},[].slice.call(arguments))},f.defaults={},f.remove=function(e,t){f(e,"",m(t,{expires:-1}))},f.withConverter=e,f}(function(){})}),function(e,t){"function"==typeof define&&define.amd?define([],t(e)):"object"==typeof exports?module.exports=t(e):e.smoothScroll=t(e)}("undefined"!=typeof global?global:this.window||this.global,function(b){"use strict";var i,t,a,y,w,s={},n="querySelector"in document&&"addEventListener"in b,$={selector:"[data-scroll]",selectorHeader:"[data-scroll-header]",speed:500,easing:"easeInOutCubic",offset:0,updateURL:!0,callback:function(){}},x=function(){var n={},i=!1,e=0,t=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(i=arguments[0],e++);for(var s=function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i&&"[object Object]"===Object.prototype.toString.call(e[t])?n[t]=x(!0,n[t],e[t]):n[t]=e[t])};e<t;e++){s(arguments[e])}return n};s.escapeCharacters=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),i=n.length,s=-1,o="",a=n.charCodeAt(0);++s<i;){if(0===(t=n.charCodeAt(s)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");o+=1<=t&&t<=31||127==t||0===s&&48<=t&&t<=57||1===s&&48<=t&&t<=57&&45===a?"\\"+t.toString(16)+" ":128<=t||45===t||95===t||48<=t&&t<=57||65<=t&&t<=90||97<=t&&t<=122?n.charAt(s):"\\"+n.charAt(s)}return"#"+o};function C(e){return null===e?0:(t=e,Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)+e.offsetTop);var t}s.animateScroll=function(r,l,e){var t,n,i,s=(t=l?l.getAttribute("data-options"):null)&&"object"==typeof JSON&&"function"==typeof JSON.parse?JSON.parse(t):{},c=x(c||$,e||{},s),d="[object Number]"===Object.prototype.toString.call(r),u=d?null:"#"===r?b.document.documentElement:b.document.querySelector(r);if(d||u){var h=b.pageYOffset;a=a||b.document.querySelector(c.selectorHeader),y=y||C(a);var p,f,m=d?r:function(e,t,n){var i=0;if(e.offsetParent)for(;i+=e.offsetTop,e=e.offsetParent;);return 0<=(i=i-t-n)?i:0}(u,y,parseInt(c.offset,10)),g=m-h,v=Math.max(b.document.body.scrollHeight,b.document.documentElement.scrollHeight,b.document.body.offsetHeight,b.document.documentElement.offsetHeight,b.document.body.clientHeight,b.document.documentElement.clientHeight),_=0;d||(n=r,i=c.updateURL,b.history.pushState&&(i||"true"===i)&&"file:"!==b.location.protocol&&b.history.pushState(null,null,[b.location.protocol,"//",b.location.host,b.location.pathname,b.location.search,n].join("")));var o=function(){var e,t,n,i,s,o,a;p=1<(p=(_+=16)/parseInt(c.speed,10))?1:p,f=h+g*(s=c.easing,o=p,"easeInQuad"===s&&(a=o*o),"easeOutQuad"===s&&(a=o*(2-o)),"easeInOutQuad"===s&&(a=o<.5?2*o*o:(4-2*o)*o-1),"easeInCubic"===s&&(a=o*o*o),"easeOutCubic"===s&&(a=--o*o*o+1),"easeInOutCubic"===s&&(a=o<.5?4*o*o*o:(o-1)*(2*o-2)*(2*o-2)+1),"easeInQuart"===s&&(a=o*o*o*o),"easeOutQuart"===s&&(a=1- --o*o*o*o),"easeInOutQuart"===s&&(a=o<.5?8*o*o*o*o:1-8*--o*o*o*o),"easeInQuint"===s&&(a=o*o*o*o*o),"easeOutQuint"===s&&(a=1+--o*o*o*o*o),"easeInOutQuint"===s&&(a=o<.5?16*o*o*o*o*o:1+16*--o*o*o*o*o),a||o),b.scrollTo(0,Math.floor(f)),e=f,t=m,n=w,i=b.pageYOffset,(e==t||i==t||b.innerHe
1ight+i>=v)&&(clearInterval(n),d||u.focus(),c.callback(r,l))};0===b.pageYOffset&&b.scrollTo(0,0),clearInterval(w),w=setInterval(o,16)}};function o(e){if(0===e.button&&!e.metaKey&&!e.ctrlKey){var t=function(e,t){var n,i,s=t.charAt(0),o="classList"in document.documentElement;for("["===s&&(1<(n=(t=t.substr(1,t.length-2)).split("=")).length&&(i=!0,n[1]=n[1].replace(/"/g,"").replace(/'/g,"")));e&&e!==document;e=e.parentNode){if("."===s)if(o){if(e.classList.contains(t.substr(1)))return e}else if(new RegExp("(^|\\s)"+t.substr(1)+"(\\s|$)").test(e.className))return e;if("#"===s&&e.id===t.substr(1))return e;if("["===s&&e.hasAttribute(n[0])){if(!i)return e;if(e.getAttribute(n[0])===n[1])return e}if(e.tagName.toLowerCase()===t)return e}return null}(e.target,i.selector);if(t&&"a"===t.tagName.toLowerCase()){e.preventDefault();var n=s.escapeCharacters(t.hash);s.animateScroll(n,t,i)}}}function r(e){t=t||setTimeout(function(){t=null,y=C(a)},66)}return s.destroy=function(){i&&(b.document.removeEventListener("click",o,!1),b.removeEventListener("resize",r,!1),w=y=a=t=i=null)},s.init=function(e){n&&(s.destroy(),i=x($,e||{}),a=b.document.querySelector(i.selectorHeader),y=C(a),b.document.addEventListener("click",o,!1),a&&b.addEventListener("resize",r,!1))},s}),function(e){var t,s,n,i=navigator.userAgent;function o(e){var t,n,i=e.parentNode;"PICTURE"===i.nodeName.toUpperCase()?(t=s.cloneNode(),i.insertBefore(t,i.firstElementChild),setTimeout(function(){i.removeChild(t)})):(!e._pfLastSize||e.offsetWidth>e._pfLastSize)&&(e._pfLastSize=e.offsetWidth,n=e.sizes,e.sizes+=",100vw",setTimeout(function(){e.sizes=n}))}function a(){var e,t=document.querySelectorAll("picture > img, img[srcset][sizes]");for(e=0;e<t.length;e++)o(t[e])}function r(){clearTimeout(t),t=setTimeout(a,99)}function l(){r(),n&&n.addListener&&n.addListener(r)}e.HTMLPictureElement&&/ecko/.test(i)&&i.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",(s=document.createElement("source"),n=e.matchMedia&&matchMedia("(orientation: landscape)"),s.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?l():document.addEventListener("DOMContentLoaded",l),r))}(window),function(e,o,c){"use strict";function d(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function x(e,t){return e.res-t.res}function C(e,t){var n,i,s;if(e&&t)for(s=z.parseSet(t),e=z.makeUrl(e),n=0;n<s.length;n++)if(e===z.makeUrl(s[n].url)){i=s[n];break}return i}function n(e){var t,n,i,s,o,a,r,l=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,c=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(i=(n=function(e){function t(){s&&(o.push(s),s="")}function n(){o[0]&&(a.push(o),o=[])}for(var i,s="",o=[],a=[],r=0,l=0,c=!1;;){if(""===(i=e.charAt(l)))return t(),n(),a;if(c){if("*"===i&&"/"===e[l+1]){c=!1,l+=2,t();continue}l+=1}else{if(d(i)){if(e.charAt(l-1)&&d(e.charAt(l-1))||!s){l+=1;continue}if(0===r){t(),l+=1;continue}i=" "}else if("("===i)r+=1;else if(")"===i)--r;else{if(","===i){t(),n(),l+=1;continue}if("/"===i&&"*"===e.charAt(l+1)){c=!0,l+=2;continue}}s+=i,l+=1}}}(e)).length,t=0;t<i;t++)if(o=(s=n[t])[s.length-1],r=o,l.test(r)&&0<=parseFloat(r)||c.test(r)||"0"===r||"-0"===r||"+0"===r){if(a=o,s.pop(),0===s.length)return a;if(s=s.join(" "),z.matchesMedia(s))return a}return"100vw"}o.createElement("picture");function t(){}function i(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i||!1):e.attachEvent&&e.attachEvent("on"+t,n)}function s(t){var n={};return function(e){return e in n||(n[e]=t(e)),n[e]}}function S(e,t){return e.w?(e.cWidth=z.calcListLength(t||"100vw"),e.res=e.w/e.cWidth):e.res=e.d,e}var a,u,l,r,h,p,f,m,g,v,_,b,y,w,$,k,T,A,P,E,I,z={},M=!1,j=o.createElement("img"),q=j.getAttribute,D=j.setAttribute,L=j.removeAttribute,N=o.documentElement,O={},F={algorithm:""},H="data-pfsrc",B=H+"set",R=navigator.userAgent,Q=/rident/.test(R)||/ecko/.test(R)&&R.match(/rv\:(\d+)/)&&35<RegExp.$1,U="currentSrc",W=/\s+\+?\d+(e\d+)?w/,Z=/(\([^)]+\))?\s*(.+)/,V=e.picturefillCFG,Y="font-size:100%!important;",G=!0,X={},K={},J=e.devicePixelRatio,ee={px:1,in:96},te=o.createElement("a"),ne=!1,ie=/^[ \t\n\r\u000c]+/,se=/^[, \t\n\r\u000c]+/,oe=/^[^ \t\n\r\u000c]+/,ae=/[,]+$/,re=/^\d+$/,le=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,ce=(r=/^([\d\.]+)(em|vw|px)$/,h=s(function(e){return"return "+function(){for(var e=arguments,t=0,n=e[0];++t in e;)n=n.replace(e[t],e[++t]);return n}((e||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"}),function(e,t){var n;if(!(e in X))if(X[e]=!1,t&&(n=e.match(r)))X[e]=n[1]*ee[n[2]];else try{X[e]=new Function("e",h(e))(ee)}catch(e){}return X[e]}),de=function(e){if(M){var t,n,i,s=e||{};if(s.elements&&1===s.elements.nodeType&&("IMG"===s.elements.nodeName.toUpperCase()?s.elements=[s.elements]:(s.context=s.elements,s.elements=null)),i=(t=s.elements||z.qsa(s.context||o,s.reevaluate||s.reselect?z.sel:z.selShort)).length){for(z.setupRun(s),ne=!0,n=0;n<i;n++)z.fillImg(t[n],s);z.teardownRun(s)}}};function ue(){2===T.width&&(z.supSizes=!0),u=z.supSrcset&&!z.supSizes,M=!0,setTimeout(de)}e.console&&console.warn,U in j||(U="src"),O["image/jpeg"]=!0,O["image/gif"]=!0,O["image/png"]=!0,O["image/svg+xml"]=o.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),z.ns=("pf"+(new Date).getTime()).substr(0,9),z.supSrcset="srcset"in j,z.supSizes="sizes"in j,z.supPicture=!!e.HTMLPictureElement,z.supSrcset&&z.supPicture&&!z.
1supSizes&&(A=o.createElement("img"),j.srcset="data:,a",A.src="data:,a",z.supSrcset=j.complete===A.complete,z.supPicture=z.supSrcset&&z.supPicture),z.supSrcset&&!z.supSizes?(k="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",(T=o.createElement("img")).onload=ue,T.onerror=ue,T.setAttribute("sizes","9px"),T.srcset=k+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 9w",T.src=k):M=!0,z.selShort="picture>img,img[srcset]",z.sel=z.selShort,z.cfg=F,z.DPR=J||1,z.u=ee,z.types=O,z.setSize=t,z.makeUrl=s(function(e){return te.href=e,te.href}),z.qsa=function(e,t){return"querySelector"in e?e.querySelectorAll(t):[]},z.matchesMedia=function(){return e.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?z.matchesMedia=function(e){return!e||matchMedia(e).matches}:z.matchesMedia=z.mMQ,z.matchesMedia.apply(this,arguments)},z.mMQ=function(e){return!e||ce(e)},z.calcLength=function(e){var t=ce(e,!0)||!1;return t<0&&(t=!1),t},z.supportsType=function(e){return!e||O[e]},z.parseSize=s(function(e){var t=(e||"").match(Z);return{media:t&&t[1],length:t&&t[2]}}),z.parseSet=function(e){return e.cands||(e.cands=function(i,u){function e(e){var t,n=e.exec(i.substring(l));return n?(t=n[0],l+=t.length,t):void 0}function t(){var e,t,n,i,s,o,a,r,l,c=!1,d={};for(i=0;i<p.length;i++)o=(s=p[i])[s.length-1],a=s.substring(0,s.length-1),r=parseInt(a,10),l=parseFloat(a),re.test(a)&&"w"===o?((e||t)&&(c=!0),0===r?c=!0:e=r):le.test(a)&&"x"===o?((e||t||n)&&(c=!0),l<0?c=!0:t=l):re.test(a)&&"h"===o?((n||t)&&(c=!0),0===r?c=!0:n=r):c=!0;c||(d.url=h,e&&(d.w=e),t&&(d.d=t),n&&(d.h=n),n||t||e||(d.d=1),1===d.d&&(u.has1x=!0),d.set=u,f.push(d))}function n(){for(e(ie),s="",o="in descriptor";;){if(a=i.charAt(l),"in descriptor"===o)if(d(a))s&&(p.push(s),s="",o="after descriptor");else{if(","===a)return l+=1,s&&p.push(s),void t();if("("===a)s+=a,o="in parens";else{if(""===a)return s&&p.push(s),void t();s+=a}}else if("in parens"===o)if(")"===a)s+=a,o="in descriptor";else{if(""===a)return p.push(s),void t();s+=a}else if("after descriptor"===o&&!d(a)){if(""===a)return void t();o="in descriptor",--l}l+=1}}for(var h,p,s,o,a,r=i.length,l=0,f=[];;){if(e(se),r<=l)return f;h=e(oe),p=[],","===h.slice(-1)?(h=h.replace(ae,""),t()):n()}}(e.srcset,e)),e.cands},z.getEmValue=function(){var e;if(!a&&(e=o.body)){var t=o.createElement("div"),n=N.style.cssText,i=e.style.cssText;t.style.cssText="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",N.style.cssText=Y,e.style.cssText=Y,e.appendChild(t),a=t.offsetWidth,e.removeChild(t),a=parseFloat(a,10),N.style.cssText=n,e.style.cssText=i}return a||16},z.calcListLength=function(e){if(!(e in K)||F.uT){var t=z.calcLength(n(e));K[e]=t||ee.width}return K[e]},z.setRes=function(e){var t;if(e)for(var n=0,i=(t=z.parseSet(e)).length;n<i;n++)S(t[n],e.sizes);return t},z.setRes.res=S,z.applySetCandidate=function(e,t){if(e.length){var n,i,s,o,a,r,l,c,d,u=t[z.ns],h=z.DPR;if(r=u.curSrc||t[U],(l=u.curCan||(b=t,y=r,!(w=e[0].set)&&y&&(w=(w=b[z.ns].sets)&&w[w.length-1]),($=C(y,w))&&(y=z.makeUrl(y),b[z.ns].curSrc=y,(b[z.ns].curCan=$).res||S($,$.set.sizes)),$))&&l.set===e[0].set&&((d=Q&&!t.complete&&l.res-.1>h)||(l.cached=!0,l.res>=h&&(a=l))),!a)for(e.sort(x),a=e[(o=e.length)-1],i=0;i<o;i++)if((n=e[i]).res>=h){a=e[s=i-1]&&(d||r!==z.makeUrl(n.url))&&(p=e[s].res,f=n.res,m=h,g=e[s].cached,_=v=void 0,m<("saveData"===F.algorithm?2.7<p?m+1:(_=(f-m)*(v=Math.pow(p-.6,1.5)),g&&(_+=.1*v),p+_):1<m?Math.sqrt(p*f):p))?e[s]:n;break}a&&(c=z.makeUrl(a.url),u.curSrc=c,u.curCan=a,c!==r&&z.setSrc(t,a),z.setSize(t))}var p,f,m,g,v,_,b,y,w,$},z.setSrc=function(e,t){var n;e.src=t.url,"image/svg+xml"===t.set.type&&(n=e.style.width,e.style.width=e.offsetWidth+1+"px",e.offsetWidth+1&&(e.style.width=n))},z.getSet=function(e){var t,n,i,s=!1,o=e[z.ns].sets;for(t=0;t<o.length&&!s;t++)if((n=o[t]).srcset&&z.matchesMedia(n.media)&&(i=z.supportsType(n.type))){"pending"===i&&(n=i),s=n;break}return s},z.parseSets=function(e,t,n){var i,s,o,a,r=t&&"PICTURE"===t.nodeName.toUpperCase(),l=e[z.ns];l.src!==c&&!n.src||(l.src=q.call(e,"src"),l.src?D.call(e,H,l.src):L.call(e,H)),l.srcset!==c&&!n.srcset&&z.supSrcset&&!e.srcset||(i=q.call(e,"srcset"),l.srcset=i,a=!0),l.sets=[],r&&(l.pic=!0,function(e,t){var n,i,s,o,a=e.getElementsByTagName("source");for(n=0,i=a.length;n<i;n++)(s=a[n])[z.ns]=!0,(o=s.getAttribute("srcset"))&&t.push({srcset:o,media:s.getAttribute("media"),type:s.getAttribute("type"),sizes:s.getAttribute("sizes")})}(t,l.sets)),l.srcset?(s={srcset:l.srcset,sizes:q.call(e,"sizes")}
1,l.sets.push(s),(o=(u||l.src)&&W.test(l.srcset||""))||!l.src||C(l.src,s)||s.has1x||(s.srcset+=", "+l.src,s.cands.push({url:l.src,d:1,set:s}))):l.src&&l.sets.push({srcset:l.src,sizes:null}),l.curCan=null,l.curSrc=c,l.supported=!(r||s&&!z.supSrcset||o&&!z.supSizes),a&&z.supSrcset&&!l.supported&&(i?(D.call(e,B,i),e.srcset=""):L.call(e,B)),l.supported&&!l.srcset&&(!l.src&&e.src||e.src!==z.makeUrl(l.src))&&(null===l.src?e.removeAttribute("src"):e.src=l.src),l.parsed=!0},z.fillImg=function(e,t){var n,i,s,o,a,r=t.reselect||t.reevaluate;e[z.ns]||(e[z.ns]={}),n=e[z.ns],!r&&n.evaled===l||(n.parsed&&!t.reevaluate||z.parseSets(e,e.parentNode,t),n.supported?n.evaled=l:(i=e,o=z.getSet(i),a=!1,"pending"!==o&&(a=l,o&&(s=z.setRes(o),z.applySetCandidate(s,i))),i[z.ns].evaled=a))},z.setupRun=function(){ne&&!G&&J===e.devicePixelRatio||(G=!1,J=e.devicePixelRatio,X={},K={},z.DPR=J||1,ee.width=Math.max(e.innerWidth||0,N.clientWidth),ee.height=Math.max(e.innerHeight||0,N.clientHeight),ee.vw=ee.width/100,ee.vh=ee.height/100,l=[ee.height,ee.width,J].join("-"),ee.em=z.getEmValue(),ee.rem=ee.em)},z.supPicture?(de=t,z.fillImg=t):(b=e.attachEvent?/d$|^c/:/d$|^c|^i/,y=function(){var e=o.readyState||"";w=setTimeout(y,"loading"===e?200:999),o.body&&(z.fillImgs(),(p=p||b.test(e))&&clearTimeout(w))},w=setTimeout(y,o.body?9:99),$=N.clientHeight,i(e,"resize",(f=function(){G=Math.max(e.innerWidth||0,N.clientWidth)!==ee.width||N.clientHeight!==$,$=N.clientHeight,G&&z.fillImgs()},m=99,_=function(){var e=new Date-v;e<m?g=setTimeout(_,m-e):(g=null,f())},function(){v=new Date,g=g||setTimeout(_,m)})),i(o,"readystatechange",y)),z.picturefill=de,z.fillImgs=de,z.teardownRun=t,de._=z,e.picturefillCFG={pf:z,push:function(e){var t=e.shift();"function"==typeof z[t]?z[t].apply(z,e):(F[t]=e[0],ne&&z.fillImgs({reselect:!0}))}};for(;V&&V.length;)e.picturefillCFG.push(V.shift());e.picturefill=de,"object"==typeof module&&"object"==typeof module.exports?module.exports=de:"function"==typeof define&&define.amd&&define("picturefill",function(){return de}),z.supPicture||(O["image/webp"]=(P="image/webp",E="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",(I=new e.Image).onerror=function(){O[P]=!1,de()},I.onload=function(){O[P]=1===I.width,de()},I.src=E,"pending"))}(window,document),function(e){"use strict";function n(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")}function t(e,t){(i(e,t)?o:s)(e,t)}var i,s,o;o="classList"in document.documentElement?(i=function(e,t){return e.classList.contains(t)},s=function(e,t){e.classList.add(t)},function(e,t){e.classList.remove(t)}):(i=function(e,t){return n(t).test(e.className)},s=function(e,t){i(e,t)||(e.className=e.className+" "+t)},function(e,t){e.className=e.className.replace(n(t)," ")});var a={hasClass:i,addClass:s,removeClass:o,toggleClass:t,has:i,add:s,remove:o,toggle:t};"function"==typeof define&&define.amd?define(a):e.classie=a}(window),function(e){"use strict";function n(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function t(e,t){this.el=e,this.options=n({},this.options),n(this.options,t),this._init()}var s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"}[Modernizr.prefixed("transition")],o=Modernizr.csstransitions;t.prototype.options={onSubmit:function(){return!1}},t.prototype._init=function(){this.current=0,this.questions=[].slice.call(this.el.querySelectorAll(".gform_fields > li")),this.questionsCount=this.questions.length,classie.addClass(this.questions[0],"current"),this.ctrlNext=this.el.querySelector("button.next"),this.progress=this.el.querySelector("div.progress"),this.questionStatus=this.el.querySelector("span.number"),this.currentNum=this.questionStatus.querySelector("span.number-current"),this.currentNum.innerHTML=Number(this.current+1),this.totalQuestionNum=this.questionStatus.querySelector("span.number-total"),this.totalQuestionNum.innerHTML=this.questionsCount,this.error=this.el.querySelector("span.error-message"),this._initEvents()},t.prototype._initEvents=function(){var t=this,e=this.questions[this.current].querySelector("input"),n=function(){e.removeEventListener("focus",n),classie.addClass(t.ctrlNext,"show")};e.addEventListener("focus",n),this.ctrlNext.addEventListener("click",function(e){e.preventDefault(),t._nextQuestion()}),document.addEventListener("keydown",function(e){13===(e.keyCode||e.which)&&(e.preventDefault(),t._nextQuestion())}),this.el.addEventListener("keydown",function(e){9===(e.keyCode||e.which)&&e.preventDefault()})}
1,t.prototype._nextQuestion=function(){if(!this._validade())return!1;this.current===this.questionsCount-1&&(this.isFilled=!0),this._clearError();var e=this.questions[this.current];if(++this.current,this._progress(),!this.isFilled){this._updateQuestionNumber(),classie.addClass(this.el,"show-next");var t=this.questions[this.current];classie.removeClass(e,"current"),classie.addClass(t,"current")}var n=this,i=function(e){o&&this.removeEventListener(s,i),n.isFilled?n._submit():(classie.removeClass(n.el,"show-next"),n.currentNum.innerHTML=n.nextQuestionNum.innerHTML,n.questionStatus.removeChild(n.nextQuestionNum),t.querySelector("input").focus())};o?this.progress.addEventListener(s,i):i()},t.prototype._progress=function(){this.progress.style.width=this.current*(100/this.questionsCount)+"%"},t.prototype._updateQuestionNumber=function(){this.nextQuestionNum=document.createElement("span"),this.nextQuestionNum.className="number-next",this.nextQuestionNum.innerHTML=Number(this.current+1),this.questionStatus.appendChild(this.nextQuestionNum)},t.prototype._submit=function(){this.options.onSubmit(this.el)},t.prototype._validade=function(){var e=this.questions[this.current].querySelector("input").value;if(""===e)return this._showError("EMPTYSTR"),!1;var t=this.questions[this.current].querySelector("input").parentElement;return classie.has(t,"ginput_container_phone")&&e.length<=5&&null==e.match(/^[0-9]+$/)?(this._showError("EMPTYNUM"),!1):!(classie.has(t,"ginput_container_email")&&!/^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/.test(e)&&(this._showError("INVALIDEMAIL"),1))},t.prototype._showError=function(e){var t="";switch(e){case"EMPTYSTR":t="Please fill in the field before continuing";break;case"EMPTYNUM":t="Please enter a number without spaces before continuing";break;case"INVALIDEMAIL":t="Please enter a valid email address before continuing"}this.error.innerHTML=t,classie.addClass(this.error,"show")},t.prototype._clearError=function(){classie.removeClass(this.error,"show")},e.stepsForm=t}(window),function(e,t){"use strict";"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.Headroom=t()}(this,function(){"use strict";function e(e){this.callback=e,this.ticking=!1}function i(e,t){var n;t=function e(t){if(arguments.length<=0)throw new Error("Missing arguments in extend function");var n,i,s,o=t||{};for(i=1;i<arguments.length;i++){var a=arguments[i]||{};for(n in a)"object"!=typeof o[n]||(s=o[n])&&"undefined"!=typeof window&&(s===window||s.nodeType)?o[n]=o[n]||a[n]:o[n]=e(o[n],a[n])}return o}(t,i.options),this.lastKnownScrollY=0,this.elem=e,this.tolerance=(n=t.tolerance)===Object(n)?n:{down:n,up:n},this.classes=t.classes,this.offset=t.offset,this.scroller=t.scroller,this.initialised=!1,this.onPin=t.onPin,this.onUnpin=t.onUnpin,this.onTop=t.onTop,this.onNotTop=t.onNotTop,this.onBottom=t.onBottom,this.onNotBottom=t.onNotBottom}var t={bind:!!function(){}.bind,classList:"classList"in document.documentElement,rAF:!!(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame)};return window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,e.prototype={constructor:e,update:function(){this.callback&&this.callback(),this.ticking=!1},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0)},handleEvent:function(){this.requestTick()}},i.prototype={constructor:i,init:function(){return i.cutsTheMustard?(this.debouncer=new e(this.update.bind(this)),this.elem.classList.add(this.classes.initial),setTimeout(this.attachEvent.bind(this),100),this):void 0},destroy:function(){var e=this.classes;this.initialised=!1,this.elem.classList.remove(e.unpinned,e.pinned,e.top,e.notTop,e.initial),this.scroller.removeEventListener("scroll",this.debouncer,!1)},attachEvent:function(){this.initialised||(this.lastKnownScrollY=this.getScrollY(),this.initialised=!0,this.scroller.addEventListener("scroll",this.debouncer,!1),this.debouncer.handleEvent())},unpin:function(){var e=this.elem.classList,t=this.classes;!e.contains(t.pinned)&&e.contains(t.unpinned)||(e.add(t.unpinned),e.remove(t.pinned),this.onUnpin&&this.onUnpin.call(this))},pin:function(){var e=this.elem.classList,t=this.classes;e.contains(t.unpinned)&&(e.remove(t.unpinned),e.add(t.pinned),this.onPin&&this.onPin.call(this))},top:function(){var e=this.elem.classList,t=this.classes;e.contains(t.top)||(e.add(t.top),e.remove(t.notTop),this.onTop&&this.onTop.call(this))},notTop:function(){var e=this.elem.classList,t=this.classes;e.contains(t.notTop)||(e.add(t.notTop),e.remove(t.top),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){var e=this.elem.classList,t=this.classes;e.contains(t.bottom)||(e.add(t.bottom),e.remove(t.notBottom),this.onBottom&&this.onBottom.call(this))},notBottom:function(){var e=this.elem.classList,t=this.classes;e.contains(t.notBottom)||(e.add(t.notBottom),e.remove(t.bottom),this.onNotBottom&&this.onNotBottom.call(this))},getScrollY:function(){return void 0!==this.scroller.pageYOffset?this.scroller.pageYOffset:void 0!==this.scroller.scrollTop?this.scroller.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop}
1,getViewportHeight:function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},getElementPhysicalHeight:function(e){return Math.max(e.offsetHeight,e.clientHeight)},getScrollerPhysicalHeight:function(){return this.scroller===window||this.scroller===document.body?this.getViewportHeight():this.getElementPhysicalHeight(this.scroller)},getDocumentHeight:function(){var e=document.body,t=document.documentElement;return Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,e.clientHeight,t.clientHeight)},getElementHeight:function(e){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},getScrollerHeight:function(){return this.scroller===window||this.scroller===document.body?this.getDocumentHeight():this.getElementHeight(this.scroller)},isOutOfBounds:function(e){var t=e<0,n=e+this.getScrollerPhysicalHeight()>this.getScrollerHeight();return t||n},toleranceExceeded:function(e,t){return Math.abs(e-this.lastKnownScrollY)>=this.tolerance[t]},shouldUnpin:function(e,t){var n=e>this.lastKnownScrollY,i=e>=this.offset;return n&&i&&t},shouldPin:function(e,t){var n=e<this.lastKnownScrollY,i=e<=this.offset;return n&&t||i},update:function(){var e=this.getScrollY(),t=e>this.lastKnownScrollY?"down":"up",n=this.toleranceExceeded(e,t);this.isOutOfBounds(e)||(e<=this.offset?this.top():this.notTop(),e+this.getViewportHeight()>=this.getScrollerHeight()?this.bottom():this.notBottom(),this.shouldUnpin(e,n)?this.unpin():this.shouldPin(e,n)&&this.pin(),this.lastKnownScrollY=e)}},i.options={tolerance:{up:0,down:0},offset:0,scroller:window,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},i.cutsTheMustard=void 0!==t&&t.rAF&&t.bind&&t.classList,i}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}(function(f){"use strict";function o(e,t){var n=this;n.element=e,n.el=f(e),n.suggestions=[],n.badQueries=[],n.selectedIndex=-1,n.currentValue=n.element.value,n.timeoutId=null,n.cachedResponse={},n.onChangeTimeout=null,n.onChange=null,n.isLocal=!1,n.suggestionsContainer=null,n.noSuggestionsContainer=null,n.options=f.extend(!0,{},o.defaults,t),n.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},n.hint=null,n.hintValue="",n.selection=null,n.initialize(),n.setOptions(t)}var i={escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}},n=27,s=9,a=13,r=38,l=39,c=40,e=f.noop;o.utils=i,(f.Autocomplete=o).defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(e,t){if(!t)return e.value;var n="("+i.escapeRegExChars(t)+")";return e.value.replace(new RegExp(n,"gi"),"<strong>$1</strong>").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>")},formatGroup:function(e,t){return'<div class="autocomplete-group">'+t+"</div>"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:e,onSearchComplete:e,onSearchError:e,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)},paramName:"query",transformResult:function(e){return"string"==typeof e?f.parseJSON(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},o.prototype={initialize:function(){var e,t=this,n="."+t.classes.suggestion,i=t.classes.selected,s=t.options;t.element.setAttribute("autocomplete","nope"),t.noSuggestionsContainer=f('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),t.suggestionsContainer=o.utils.createNode(s.containerClass),(e=f(t.suggestionsContainer)).appendTo(s.appendTo||"body"),"auto"!==s.width&&e.css("width",s.width),e.on("mouseover.autocomplete",n,function(){t.activate(f(this).data("index"))}),e.on("mouseout.autocomplete",function(){t.selectedIndex=-1,e.children("."+i).removeClass(i)}),e.on("click.autocomplete",n,function(){t.select(f(this).data("index"))}),e.on("click.autocomplete",function(){clearTimeout(t.blurTimeoutId)}),t.fixPositionCapture=function(){t.visible&&t.fixPosition()},f(window).on("resize.autocomplete",t.fixPositionCapture),t.el.on("key
1down.autocomplete",function(e){t.onKeyPress(e)}),t.el.on("keyup.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("blur.autocomplete",function(){t.onBlur()}),t.el.on("focus.autocomplete",function(){t.onFocus()}),t.el.on("change.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("input.autocomplete",function(e){t.onKeyUp(e)})},onFocus:function(){this.fixPosition(),this.el.val().length>=this.options.minChars&&this.onValueChange()},onBlur:function(){var e=this;e.blurTimeoutId=setTimeout(function(){e.hide()},200)},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(e){var t=this,n=f.extend({},t.options,e);t.isLocal=Array.isArray(n.lookup),t.isLocal&&(n.lookup=t.verifySuggestionsFormat(n.lookup)),n.orientation=t.validateOrientation(n.orientation,"bottom"),f(t.suggestionsContainer).css({"max-height":n.maxHeight+"px",width:n.width+"px","z-index":n.zIndex}),this.options=n},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){this.disabled=!0,clearTimeout(this.onChangeTimeout),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e=this,t=f(e.suggestionsContainer),n=t.parent().get(0);if(n===document.body||e.options.forceFixPosition){var i=e.options.orientation,s=t.outerHeight(),o=e.el.outerHeight(),a=e.el.offset(),r={top:a.top,left:a.left};if("auto"===i){var l=f(window).height(),c=f(window).scrollTop(),d=-c+a.top-s,u=c+l-(a.top+o+s);i=Math.max(d,u)===d?"top":"bottom"}if(r.top+="top"===i?-s:o,n!==document.body){var h,p=t.css("opacity");e.visible||t.css("opacity",0).show(),h=t.offsetParent().offset(),r.top-=h.top,r.top+=n.scrollTop,r.left-=h.left,e.visible||t.css("opacity",p).hide()}"auto"===e.options.width&&(r.width=e.el.outerWidth()+"px"),t.css(r)}},isCursorAtEnd:function(){var e,t=this.el.val().length,n=this.element.selectionStart;return"number"==typeof n?n===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==c||!t.currentValue){if(!t.disabled&&t.visible){switch(e.which){case n:t.el.val(t.currentValue),t.hide();break;case l:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case s:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case a:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case r:t.moveUp();break;case c:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case r:case c:return}clearTimeout(t.onChangeTimeout),t.currentValue!==t.el.val()&&(t.findBestHint(),0<t.options.deferRequestBy?t.onChangeTimeout=setTimeout(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){if(!this.ignoreValueChange){var e=this,t=e.options,n=e.el.val(),i=e.getQuery(n);return e.selection&&e.currentValue!==i&&(e.selection=null,(t.onInvalidateSelection||f.noop).call(e.element)),clearTimeout(e.onChangeTimeout),e.currentValue=n,e.selectedIndex=-1,t.triggerSelectOnValidInput&&e.isExactMatch(i)?void e.select(0):void(i.length<t.minChars?e.hide():e.getSuggestions(i))}this.ignoreValueChange=!1},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(e){var t,n=this.options.delimiter;return n?(t=e.split(n),f.trim(t[t.length-1])):e},getSuggestionsLocal:function(t){var e,n=this.options,i=t.toLowerCase(),s=n.lookupFilter,o=parseInt(n.lookupLimit,10);return e={suggestions:f.grep(n.lookup,function(e){return s(e,t,i)})},o&&e.suggestions.length>o&&(e.suggestions=e.suggestions.slice(0,o)),e},getSuggestions:function(i){var e,t,n,s,o=this,a=o.options,r=a.serviceUrl;if(a.params[a.paramName]=i,!1!==a.onSearchStart.call(o.element,a.params)){if(t=a.ignoreParams?null:a.params,f.isFunction(a.lookup))return void a.lookup(i,function(e){o.suggestions=e.suggestions,o.suggest(),a.onSearchComplete.call(o.element,i,e.suggestions)});(e=o.isLocal?o.getSuggestionsLocal(i):(f.isFunction(r)&&(r=r.call(o.element,i)),n=r+"?"+f.param(t||{}),o.cachedResponse[n]))&&Array.isArray(e.suggestions)?(o.suggestions=e.suggestions,o.suggest(),a.onSearchComplete.call(o.element,i,e.suggestions)):o.isBadQuery(i)?a.onSearchComplete.call(o.element,i,[]):(o.abortAjax(),s={url:r,data:t,type:a.type,dataType:a.dataType},f.extend(s,a.ajaxSettings),o.currentRequest=f.ajax(s).done(function(e){var t;o.currentRequest=null,t=a.transformResult(e,i),o.processResponse(t,i,n),a.onSearchComplete.call(o.element,i,t.suggestions)}).fail(function(e,t,n){a.onSearchError.call(o.element,i,e,t,n)}))}},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var e=this,t=f(e.suggestionsContainer);f.isFunction(e.options.onHide)&&e.visible&&e.options.onHide.call(e.element,t),e.visible=!1,e.selectedIndex=-1,
1clearTimeout(e.onChangeTimeout),f(e.suggestionsContainer).hide(),e.signalHint(null)},suggest:function(){if(this.suggestions.length){var s,e=this,o=e.options,a=o.groupBy,r=o.formatResult,l=e.getQuery(e.currentValue),c=e.classes.suggestion,t=e.classes.selected,n=f(e.suggestionsContainer),i=f(e.noSuggestionsContainer),d=o.beforeRender,u="";return o.triggerSelectOnValidInput&&e.isExactMatch(l)?void e.select(0):(f.each(e.suggestions,function(e,t){var n,i;a&&(u+=(i=(n=t).data[a],s===i?"":(s=i,o.formatGroup(n,s)))),u+='<div class="'+c+'" data-index="'+e+'">'+r(t,l,e)+"</div>"}),this.adjustContainerWidth(),i.detach(),n.html(u),f.isFunction(d)&&d.call(e.element,n,e.suggestions),e.fixPosition(),n.show(),o.autoSelectFirst&&(e.selectedIndex=0,n.scrollTop(0),n.children("."+c).first().addClass(t)),e.visible=!0,void e.findBestHint())}this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var e=this,t=e.options.beforeRender,n=f(e.suggestionsContainer),i=f(e.noSuggestionsContainer);this.adjustContainerWidth(),i.detach(),n.empty(),n.append(i),f.isFunction(t)&&t.call(e.element,n,e.suggestions),e.fixPosition(),n.show(),e.visible=!0},adjustContainerWidth:function(){var e,t=this.options,n=f(this.suggestionsContainer);"auto"===t.width?(e=this.el.outerWidth(),n.css("width",0<e?e:300)):"flex"===t.width&&n.css("width","")},findBestHint:function(){var i=this.el.val().toLowerCase(),s=null;i&&(f.each(this.suggestions,function(e,t){var n=0===t.value.toLowerCase().indexOf(i);return n&&(s=t),!n}),this.signalHint(s))},signalHint:function(e){var t="",n=this;e&&(t=n.currentValue+e.value.substr(n.currentValue.length)),n.hintValue!==t&&(n.hintValue=t,n.hint=e,(this.options.onHint||f.noop)(t))},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?f.map(e,function(e){return{value:e,data:null}}):e},validateOrientation:function(e,t){return e=f.trim(e||"").toLowerCase(),-1===f.inArray(e,["auto","bottom","top"])&&(e=t),e},processResponse:function(e,t,n){var i=this,s=i.options;e.suggestions=i.verifySuggestionsFormat(e.suggestions),s.noCache||(i.cachedResponse[n]=e,s.preventBadQueries&&!e.suggestions.length&&i.badQueries.push(t)),t===i.getQuery(i.currentValue)&&(i.suggestions=e.suggestions,i.suggest())},activate:function(e){var t,n=this,i=n.classes.selected,s=f(n.suggestionsContainer),o=s.find("."+n.classes.suggestion);return s.find("."+i).removeClass(i),n.selectedIndex=e,-1!==n.selectedIndex&&o.length>n.selectedIndex?(t=o.get(n.selectedIndex),f(t).addClass(i),t):null},selectHint:function(){var e=f.inArray(this.hint,this.suggestions);this.select(e)},select:function(e){this.hide(),this.onSelect(e)},moveUp:function(){var e=this;if(-1!==e.selectedIndex)return 0===e.selectedIndex?(f(e.suggestionsContainer).children("."+e.classes.suggestion).first().removeClass(e.classes.selected),e.selectedIndex=-1,e.ignoreValueChange=!1,e.el.val(e.currentValue),void e.findBestHint()):void e.adjustScroll(e.selectedIndex-1)},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var t=this,n=t.activate(e);if(n){var i,s,o,a=f(n).outerHeight();i=n.offsetTop,o=(s=f(t.suggestionsContainer).scrollTop())+t.options.maxHeight-a,i<s?f(t.suggestionsContainer).scrollTop(i):o<i&&f(t.suggestionsContainer).scrollTop(i-t.options.maxHeight+a),t.options.preserveInput||(t.ignoreValueChange=!0,t.el.val(t.getValue(t.suggestions[e].value))),t.signalHint(null)}},onSelect:function(e){var t=this,n=t.options.onSelect,i=t.suggestions[e];t.currentValue=t.getValue(i.value),t.currentValue===t.el.val()||t.options.preserveInput||t.el.val(t.currentValue),t.signalHint(null),t.suggestions=[],t.selection=i,f.isFunction(n)&&n.call(t.element,i)},getValue:function(e){var t,n,i=this.options.delimiter;return i?1===(n=(t=this.currentValue).split(i)).length?e:t.substr(0,t.length-n[n.length-1].length)+e:e},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),f(window).off("resize.autocomplete",this.fixPositionCapture),f(this.suggestionsContainer).remove()}},f.fn.devbridgeAutocomplete=function(n,i){var s="autocomplete";return arguments.length?this.each(function(){var e=f(this),t=e.data(s);"string"==typeof n?t&&"function"==typeof t[n]&&t[n](i):(t&&t.dis
1pose&&t.dispose(),t=new o(this,n),e.data(s,t))}):this.first().data(s)},f.fn.autocomplete||(f.fn.autocomplete=f.fn.devbridgeAutocomplete)}),function(A){A.fn.smartZoom=function(e){function g(e){}function o(e,t){var n=k.data("smartZoomData");n.currentWheelDelta*t<0&&(n.currentWheelDelta=0),n.currentWheelDelta+=t,T.zoom(n.mouseWheelDeltaFactor*n.currentWheelDelta,{x:e.pageX,y:e.pageY})}function a(e){e.preventDefault()}function v(){var e=k.data("smartZoomData");if(1==e.settings.mouseMoveEnabled&&1==e.settings.moveCursorEnabled){var t=$().width/e.originalSize.width;parseInt(100*t)>parseInt(100*e.adjustedPosInfos.scale)?k.css({cursor:"move"}):k.css({cursor:"default"})}}function r(e){s(e.pageX,e.pageY)}function l(e){e.preventDefault(),A(document).on("mousemove.smartZoom",n),A(document).bind("mouseup.smartZoom",i);var t=k.data("smartZoomData");t.moveCurrentPosition=new S(e.pageX,e.pageY),t.moveLastPosition=new S(e.pageX,e.pageY)}function n(e){var t=k.data("smartZoomData");(t.mouseMoveForPan||!t.mouseMoveForPan&&t.moveCurrentPosition.x!=e.pageX&&t.moveCurrentPosition.y!=e.pageY)&&(t.mouseMoveForPan=!0,b(e.pageX,e.pageY,0,!1))}function i(e){var t=k.data("smartZoomData");if(t.mouseMoveForPan)if(t.mouseMoveForPan=!1,4<t.moveLastPosition.distance(t.moveCurrentPosition)){var n=t.moveLastPosition.interpolate(t.moveCurrentPosition,-4);b(n.x,n.y,500,!0)}else b(t.moveLastPosition.x,t.moveLastPosition.y,0,!0);else t.settings.zoomOnSimpleClick&&s(e.pageX,e.pageY);A(document).unbind("mousemove.smartZoom"),A(document).unbind("mouseup.smartZoom")}function c(e){e.preventDefault(),A(document).unbind("touchmove.smartZoom"),A(document).unbind("touchend.smartZoom"),A(document).bind("touchmove.smartZoom",d),A(document).bind("touchend.smartZoom",u);var t,n=e.originalEvent.touches,i=n[0],s=k.data("smartZoomData");s.touch.touchMove=!1,s.touch.touchPinch=!1,s.moveCurrentPosition=new S(i.pageX,i.pageY),s.moveLastPosition=new S(i.pageX,i.pageY),s.touch.lastTouchPositionArr=new Array;for(var o=n.length,a=0;a<o;++a)t=n[a],s.touch.lastTouchPositionArr.push(new S(t.pageX,t.pageY))}function d(e){e.preventDefault();var t=k.data("smartZoomData"),n=e.originalEvent.touches,i=n.length,s=n[0];if(1!=i||t.touch.touchPinch||1!=t.settings.touchMoveEnabled){if(2==i&&!t.touch.touchMove&&1==t.settings.pinchEnabled){t.touch.touchPinch=!0;var o=n[1],a=t.touch.lastTouchPositionArr[0],r=t.touch.lastTouchPositionArr[1],l=new S(s.pageX,s.pageY),c=new S(o.pageX,o.pageY),d=l.distance(c),u=a.distance(r),h=d-u;if(Math.abs(h)<3)return;var p=new S((l.x+c.x)/2,(l.y+c.y)/2),f=$(),m=t.originalSize,g=f.width/m.width,v=d/u,_=f.width*v/m.width;T.zoom(_-g,p,0),t.touch.lastTouchPositionArr[0]=l,t.touch.lastTouchPositionArr[1]=c}}else{if(!t.touch.touchMove){if(t.touch.lastTouchPositionArr[0].distance(new S(s.pageX,s.pageY))<3)return;t.touch.touchMove=!0}b(s.pageX,s.pageY,0,!1)}}function u(e){e.preventDefault(),0==e.originalEvent.touches.length&&(A(document).unbind("touchmove.smartZoom"),A(document).unbind("touchend.smartZoom"));var t=k.data("smartZoomData");if(!t.touch.touchPinch)if(t.touch.touchMove){if(2<t.moveLastPosition.distance(t.moveCurrentPosition)){var n=t.moveLastPosition.interpolate(t.moveCurrentPosition,-4);b(n.x,n.y,500,!0)}}else{if(1==t.settings.dblTapEnabled&&0!=t.touch.lastTouchEndTime&&(new Date).getTime()-t.touch.lastTouchEndTime<400){var i=t.touch.lastTouchPositionArr[0];s(i.x,i.y)}t.touch.lastTouchEndTime=(new Date).getTime()}}function b(e,t,n,i){_(g.PAN);var s=k.data("smartZoomData");s.moveLastPosition.x=s.moveCurrentPosition.x,s.moveLastPosition.y=s.moveCurrentPosition.y;var o=k.offset(),a=$(),r=y(o.left+(e-s.moveCurrentPosition.x),o.top+(t-s.moveCurrentPosition.y),a.width,a.height);x(g.PAN,g.START,!1),w(k,r.x,r.y,a.width,a.height,n,1==i?function(){x(g.PAN,g.END,!1)}:null),s.moveCurrentPosition.x=e,s.moveCurrentPosition.y=t}function s(e,t){var n,i=k.data("smartZoomData"),s=i.originalSize,o=$().width/s.width,a=i.adjustedPosInfos.scale,r=parseFloat(i.settings.dblClickMaxScale);n=o.toFixed(2)>r.toFixed(2)||Math.abs(r-o)>Math.abs(o-a)?r-o:a-o,T.zoom(n,{x:e,y:t})}function _(e){var t=k.data("smartZoomData");if(t.transitionObject){t.transitionObject.cssAnimHandler&&k.off(A.support.transition,t.transitionObject.cssAnimTimer);var n=t.originalSize,i=$(),s=new Object;s[t.transitionObject.transition]="all 0s",t.transitionObject.css3dSupported?s[t.transitionObject.transform]="translate3d("+i.x+"px, "+i.y+"px, 0) scale3d("+i.width/n.width+","+i.height/n.height+", 1)":s[t.transitionObject.transform]="translateX("+i.x+"px) translateY("+i.y+"px) scale("+i.width/n.width+","+i.height/n.height+")",k.css(s)}else k.stop();v(),null!=e&&x(e,"",!0)}function y(e,t,n,i){var s=k.data("smartZoomData"),o=Math.min(s.adjustedPosInfos.top,t);
1o+=Math.max(0,s.adjustedPosInfos.top+s.adjustedPosInfos.height-(o+i));var a=Math.min(s.adjustedPosInfos.left,e);return new S((a+=Math.max(0,s.adjustedPosInfos.left+s.adjustedPosInfos.width-(a+n))).toFixed(2),o.toFixed(2))}function h(){var e=k.data("smartZoomData"),t=e.containerDiv,n=e.originalSize,i=t.parent().offset(),s=f(e.settings.left,i.left,t.parent().width()),o=f(e.settings.top,i.top,t.parent().height());t.offset({left:s,top:o}),t.width(p(e.settings.width,t.parent().width(),s-i.left)),t.height(p(e.settings.height,t.parent().height(),o-i.top));var a=C(t),r=Math.min(Math.min(a.width/n.width,a.height/n.height),1).toFixed(2),l=n.width*r,c=n.height*r;e.adjustedPosInfos={left:(a.width-l)/2+i.left,top:(a.height-c)/2+i.top,width:l,height:c,scale:r},_(),w(k,e.adjustedPosInfos.left,e.adjustedPosInfos.top,l,c,0,function(){k.css("visibility","visible")}),v()}function w(e,t,n,i,s,o,a){var r=k.data("smartZoomData"),l=r.containerDiv.offset(),c=t-l.left,d=n-l.top;if(null!=r.transitionObject){var u=r.originalSize,h=new Object;h[r.transitionObject.transform+"-origin"]="0 0",h[r.transitionObject.transition]="all "+o/1e3+"s ease-out",r.transitionObject.css3dSupported?h[r.transitionObject.transform]="translate3d("+c+"px, "+d+"px, 0) scale3d("+i/u.width+","+s/u.height+", 1)":h[r.transitionObject.transform]="translateX("+c+"px) translateY("+d+"px) scale("+i/u.width+","+s/u.height+")",null!=a&&(r.transitionObject.cssAnimHandler=a,e.one(A.support.transition.end,r.transitionObject.cssAnimHandler)),e.css(h)}else e.animate({"margin-left":c,"margin-top":d,width:i,height:s},{duration:o,easing:r.settings.easing,complete:function(){null!=a&&a()}})}function $(e){var t=k.data("smartZoomData"),n=k.width(),i=k.height(),s=k.offset(),o=parseInt(s.left),a=parseInt(s.top),r=t.containerDiv.offset();if(1!=e&&(o=parseInt(o)-r.left,a=parseInt(a)-r.top),null!=t.transitionObject){var l,c,d=k.css(t.transitionObject.transform);if(d&&""!=d&&-1!=d.search("matrix"))-1!=d.search("matrix3d")?l=(c=d.replace("matrix3d(","").replace(")","").split(","))[0]:(l=(c=d.replace("matrix(","").replace(")","").split(","))[3],o=parseFloat(c[4]),a=parseFloat(c[5]),e&&(o=parseFloat(o)+r.left,a=parseFloat(a)+r.top)),n*=l,i*=l}return{x:o,y:a,width:n,height:i}}function x(e,t,n){var i=k.data("smartZoomData"),s="";if(1==n&&i.currentActionType!=e?(s=i.currentActionType+"_"+g.END,i.currentActionType="",i.currentActionStep=""):i.currentActionType!=e||i.currentActionStep==g.END?(i.currentActionType=e,i.currentActionStep=g.START,s=i.currentActionType+"_"+i.currentActionStep):i.currentActionType==e&&t==g.END&&(i.currentActionStep=g.END,s=i.currentActionType+"_"+i.currentActionStep,i.currentActionType="",i.currentActionStep=""),""!=s){var o=jQuery.Event(s);o.targetRect=$(!0),o.scale=o.targetRect.width/i.originalSize.width,k.trigger(o)}}function p(e,t,n){return e.search&&-1!=e.search("%")?(t-n)*(parseInt(e)/100):parseInt(e)}function f(e,t,n){return e.search&&-1!=e.search("%")?t+n*(parseInt(e)/100):t+parseInt(e)}function m(){h()}function C(e){var t=e.offset();return t?{x:t.left,y:t.top,width:e.outerWidth(),height:e.outerHeight()}:null}function S(e,t){this.x=e,this.y=t,this.toString=function(){return"(x="+this.x+", y="+this.y+")"},this.interpolate=function(e,t){return new S(t*this.x+(1-t)*e.x,t*this.y+(1-t)*e.y)},this.distance=function(e){return Math.sqrt(Math.pow(e.y-this.y,2)+Math.pow(e.x-this.x,2))}}var k=this;g.ZOOM="SmartZoom_ZOOM",g.PAN="SmartZoom_PAN",g.START="START",g.END="END",g.DESTROYED="SmartZoom_DESTROYED";var T={init:function(e){if(!k.data("smartZoomData")){settings=A.extend({top:"0",left:"0",width:"100%",height:"100%",easing:"smartZoomEasing",initCallback:null,maxScale:3,dblClickMaxScale:1.8,mouseEnabled:!0,scrollEnabled:!0,dblClickEnabled:!0,mouseMoveEnabled:!0,moveCursorEnabled:!0,adjustOnResize:!0,touchEnabled:!0,dblTapEnabled:!0,zoomOnSimpleClick:!1,pinchEnabled:!0,touchMoveEnabled:!0,containerBackground:"#FFFFFF",containerClass:""},e);var t=k.attr("style"),n="smartZoomContainer"+(new Date).getTime(),i=A('<div id="'+n+'" class="'+settings.containerClass+'"></div>');k.before(i),k.remove(),(i=A("#"+n)).css({overflow:"hidden"}),""==settings.containerClass&&i.css({"background-color":settings.containerBackgroun
1d}),i.append(k);var s=new Object;s.lastTouchEndTime=0,s.lastTouchPositionArr=null,s.touchMove=!1,s.touchPinch=!1,k.data("smartZoomData",{settings:settings,containerDiv:i,originalSize:{width:k.width(),height:k.height()},originalPosition:k.offset(),transitionObject:function(){for(var e,t=(document.body||document.documentElement).style,n=["transition","WebkitTransition","MozTransition","MsTransition","OTransition"],i=["transition","-webkit-transition","-moz-transition","-ms-transition","-o-transition"],s=["transform","-webkit-transform","-moz-transform","-ms-transform","-o-transform"],o=n.length,a=0;a<o;a++)if(null!=t[n[a]]){transformStr=s[a];var r=A('<div style="position:absolute;">Translate3d Test</div>');if(A("body").append(r),(e=new Object)[s[a]]="translate3d(20px,0,0)",r.css(e),css3dSupported=r.offset().left-A("body").offset().left==20,r.empty().remove(),css3dSupported)return{transition:i[a],transform:s[a],css3dSupported:css3dSupported}}return null}(),touch:s,mouseWheelDeltaFactor:.15,currentWheelDelta:0,adjustedPosInfos:null,moveCurrentPosition:null,moveLastPosition:null,mouseMoveForPan:!1,currentActionType:"",initialStyles:t,currentActionStep:""}),h(),1==settings.touchEnabled&&k.bind("touchstart.smartZoom",c),1==settings.mouseEnabled&&(1==settings.mouseMoveEnabled&&k.bind("mousedown.smartZoom",l),1==settings.scrollEnabled&&(i.bind("mousewheel.smartZoom",o),i.bind("mousewheel.smartZoom DOMMouseScroll.smartZoom",a)),1==settings.dblClickEnabled&&0==settings.zoomOnSimpleClick&&i.bind("dblclick.smartZoom",r)),document.ondragstart=function(){return!1},1==settings.adjustOnResize&&A(window).bind("resize.smartZoom",m),null!=settings.initCallback&&settings.initCallback.apply(this,k)}},zoom:function(e,t,n){var i,s,o=k.data("smartZoomData");if(t)i=t.x,s=t.y;else{var a=C(o.containerDiv);i=a.x+a.width/2,s=a.y+a.height/2}_(g.ZOOM);var r=$(!0),l=o.originalSize,c=r.width/l.width+e;c=Math.max(o.adjustedPosInfos.scale,c),c=Math.min(o.settings.maxScale,c);var d=l.width*c,u=l.height*c,h=i-r.x,p=s-r.y,f=d/r.width,m=y(r.x-(h*f-h),r.y-(p*f-p),d,u);null==n&&(n=700),x(g.ZOOM,g.START,!1),w(k,m.x,m.y,d,u,n,function(){o.currentWheelDelta=0,v(),x(g.ZOOM,g.END,!1)})},pan:function(e,t,n){if(null!=e&&null!=t){null==n&&(n=700);var i=k.offset(),s=$(),o=y(i.left+e,i.top+t,s.width,s.height);o.x==i.left&&o.y==i.top||(_(g.PAN),x(g.PAN,g.START,!1),w(k,o.x,o.y,s.width,s.height,n,function(){x(g.PAN,g.END,!1)}))}},destroy:function(){var e=k.data("smartZoomData");if(e){_();var t=e.containerDiv;k.unbind("mousedown.smartZoom"),k.bind("touchstart.smartZoom"),t.unbind("mousewheel.smartZoom"),t.unbind("dblclick.smartZoom"),t.unbind("mousewheel.smartZoom DOMMouseScroll.smartZoom"),A(window).unbind("resize.smartZoom"),A(document).unbind("mousemove.smartZoom"),A(document).unbind("mouseup.smartZoom"),A(document).unbind("touchmove.smartZoom"),A(document).unbind("touchend.smartZoom"),k.css({cursor:"default"}),t.before(k),w(k,e.originalPosition.left,e.originalPosition.top,e.originalSize.width,e.originalSize.height,5),k.removeData("smartZoomData"),t.remove(),k.attr("style",e.initialStyles),k.trigger(g.DESTROYED)}},isPluginActive:function(){return null!=k.data("smartZoomData")}};if(T[e])return T[e].apply(this,Array.prototype.slice.call(arguments,1));"object"!=typeof e&&e?A.error("Method "+e+" does not exist on e-smartzoom jquery plugin"):"img"!=k[0].tagName.toLowerCase()||k[0].c
1omplete?T.init.apply(k,[e]):k.bind("load.smartZoom",{arguments:e},function(e){k.unbind("load.smartZoom"),T.init.apply(k,[e.data.arguments])})}}(jQuery),function(o){o.extend(o.easing,{smartZoomEasing:function(e,t,n,i,s){return o.easing.smartZoomOutQuad(e,t,n,i,s)},smartZoomOutQuad:function(e,t,n,i,s){return-i*(t/=s)*(t-2)+n}})}(jQuery),function(a){function t(e){var t=e||window.event,n=[].slice.call(arguments,1),i=0,s=0,o=0;return(e=a.event.fix(t)).type="mousewheel",t.wheelDelta&&(i=t.wheelDelta/120),t.detail&&(i=-t.detail/3),o=i,void 0!==t.axis&&t.axis===t.HORIZONTAL_AXIS&&(o=0,s=-1*i),void 0!==t.wheelDeltaY&&(o=t.wheelDeltaY/120),void 0!==t.wheelDeltaX&&(s=-1*t.wheelDeltaX/120),n.unshift(e,i,s,o),(a.event.dispatch||a.event.handle).apply(this,n)}var n=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var e=n.length;e;)a.event.fixHooks[n[--e]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=n.length;e;)this.addEventListener(n[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=n.length;e;)this.removeEventListener(n[--e],t,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery),$.fn.emulateTransitionEnd=function(e){var t=!1,n=this;$(this).one($.support.transition.end,function(){t=!0});return setTimeout(function(){t||$(n).trigger($.support.transition.end)},e),this},$(function(){$.support.transition=transitionEnd()}),function(c){var d,u,o,e,h="mmenu";c[h]&&"5.7.4"<c[h].version||(c[h]=function(e,t,n){this.$menu=e,this._api=["bind","initPanels","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=t,this.conf=n,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var i=this.$pnls.children();return this._initAddons(),this.initPanels(i),"function"==typeof this.___debug&&this.___debug(),this},c[h].version="5.7.4",c[h].addons={},c[h].uniqueId=0,c[h].defaults={extensions:[],initMenu:function(){},initPanels:function(){},navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},c[h].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},c[h].prototype={init:function(e){this.initPanels(e)},initPanels:function(e){e=e.not("."+d.nopanel),e=this._initPanels(e),this.opts.initPanels.call(this,e),this.trigger("initPanels",e),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(e){this.$menu.find("."+d.listview).children().removeClass(d.selected),e.addClass(d.selected),this.trigger("setSelected",e)},openPanel:function(e){var t=e.parent(),n=this;if(t.hasClass(d.vertical)){var i=t.parents("."+d.subopened);if(i.length)return void this.openPanel(i.first());t.addClass(d.opened),this.trigger("openPanel",e),this.trigger("openingPanel",e),this.trigger("openedPanel",e)}else{if(e.hasClass(d.current))return;var s=this.$pnls.children("."+d.panel),o=s.filter("."+d.current);s.removeClass(d.highest).removeClass(d.current).not(e).not(o).not("."+d.vertical).addClass(d.hidden),c[h].support.csstransitions||o.addClass(d.hidden),e.hasClass(d.opened)?e.nextAll("."+d.opened).addClass(d.highest).removeClass(d.opened).removeClass(d.subopened):(e.addClass(d.highest),o.addClass(d.subopened)),e.removeClass(d.hidden).addClass(d.current),n.trigger("openPanel",e),setTimeout(function(){e.removeClass(d.subopened).addClass(d.opened),n.trigger("openingPanel",e),n.__transitionend(e,function(){n.trigger("openedPanel",e)},n.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(e){var t=e.parent();t.hasClass(d.vertical)&&(t.removeClass(d.opened),this.trigger("closePanel",e),this.trigger("closingPanel",e),this.trigger("closedPanel",e))},closeAllPanels:function(){this.$menu.find("."+d.listview).children().removeClass(d.selected).filter("."+d.vertical).removeClass(d.opened);var e=this.$pnls.children("."+d.panel).first();this.$pnls.children("."+d.panel).not(e).removeClass(d.subopened).removeClass(d.opened).removeClass(d.current).removeClass(d.highest).addClass(d.hidden),this.openPanel
1(e)},togglePanel:function(e){var t=e.parent();t.hasClass(d.vertical)&&this[t.hasClass(d.opened)?"closePanel":"openPanel"](e)},getInstance:function(){return this},bind:function(e,t){e="init"==e?"initPanels":e,this.cbck[e]=this.cbck[e]||[],this.cbck[e].push(t)},trigger:function(){var e=Array.prototype.slice.call(arguments),t=e.shift();if(t="init"==t?"initPanels":t,this.cbck[t])for(var n=0,i=this.cbck[t].length;n<i;n++)this.cbck[t][n].apply(this,e)},_initMenu:function(){this.conf.clone&&(this.$orig=this.$menu,this.$menu=this.$orig.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){c(this).attr("id",d.mm(c(this).attr("id")))})),this.opts.initMenu.call(this,this.$menu,this.$orig),this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.$pnls=c('<div class="'+d.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(d.wrapper);var e=[d.menu];this.opts.slidingSubmenus||e.push(d.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&e.push(this.opts.extensions),this.$menu.addClass(e.join(" "))},_initPanels:function(e){var l=this,t=this.__findAddBack(e,"ul, ol");this.__refactorClass(t,this.conf.classNames.inset,"inset").addClass(d.nolistview+" "+d.nopanel),t.not("."+d.nolistview).addClass(d.listview);var n=this.__findAddBack(e,"."+d.listview).children();this.__refactorClass(n,this.conf.classNames.selected,"selected"),this.__refactorClass(n,this.conf.classNames.divider,"divider"),this.__refactorClass(n,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(e,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var i=c(),s=e.add(e.find("."+d.panel)).add(this.__findAddBack(e,"."+d.listview).children().children(this.conf.panelNodetype)).not("."+d.nopanel);this.__refactorClass(s,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||s.addClass(d.vertical),s.each(function(){var e=c(this),t=e;e.is("ul, ol")?(e.wrap('<div class="'+d.panel+'" />'),t=e.parent()):t.addClass(d.panel);var n=e.attr("id");e.removeAttr("id"),t.attr("id",n||l.__getUniqueId()),e.hasClass(d.vertical)&&(e.removeClass(l.conf.classNames.vertical),t.add(t.parent()).addClass(d.vertical)),i=i.add(t)});var o=c("."+d.panel,this.$menu);i.each(function(e){var t,n,i=c(this),s=i.parent(),o=s.children("a, span").first();if(s.is("."+d.panels)||(s.data(u.child,i),i.data(u.parent,s)),s.children("."+d.next).length||s.parent().is("."+d.listview)&&(t=i.attr("id"),n=c('<a class="'+d.next+'" href="#'+t+'" data-target="#'+t+'" />').insertBefore(o),o.is("span")&&n.addClass(d.fullsubopen)),!i.children("."+d.navbar).length&&!s.hasClass(d.vertical)){s=s.parent().is("."+d.listview)?s.closest("."+d.panel):(o=s.closest("."+d.panel).find('a[href="#'+i.attr("id")+'"]').first()).closest("."+d.panel);var a=!1,r=c('<div class="'+d.navbar+'" />');if(l.opts.navbar.add&&i.addClass(d.hasnavbar),s.length){switch(t=s.attr("id"),l.opts.navbar.titleLink){case"anchor":a=o.attr("href");break;case"panel":case"parent":a="#"+t;break;default:a=!1}r.append('<a class="'+d.btn+" "+d.prev+'" href="#'+t+'" data-target="#'+t+'" />').append(c('<a class="'+d.title+'"'+(a?' href="'+a+'"':"")+" />").text(o.text())).prependTo(i)}else l.opts.navbar.title&&r.append('<a class="'+d.title+'">'+l.opts.navbar.title+"</a>").prependTo(i)}});var a=this.__findAddBack(e,"."+d.listview).children("."+d.selected).removeClass(d.selected).last().addClass(d.selected);a.add(a.parentsUntil("."+d.menu,"li")).filter("."+d.vertical).addClass(d.opened).end().each(function(){c(this).parentsUntil("."+d.menu,"."+d.panel).not("."+d.vertical).first().addClass(d.opened).parentsUntil("."+d.menu,"."+d.panel).not("."+d.vertical).first().addClass(d.opened).addClass(d.subopened)}),a.children("."+d.panel).not("."+d.vertical).addClass(d.opened).parentsUntil("."+d.menu,"."+d.panel).not("."+d.vertical).first().addClass(d.opened).addClass(d.subopened);var r=o.filter("."+d.opened);return r.length||(r=i.first()),r.addClass(d.opened).last().addClass(d.current),i.not("."+d.vertical).not(r.last()).addClass(d.hidden).end().filter(function(){return!c(this).parent().hasClass(d.panels)}).appendTo(this.$pnls),i},_initAnchors:function(){var l=this;e.$body.on(o.click+"-oncanvas","a[href]",function(e){var t=c(this),n=!1,i=l.$menu.find(t).length;for(var s in c[h].addons)if(c[h].addons[s].clickAnchor.call(l,t,i)){n=!0;break}var o=t.attr("href");if(!n&&i&&1<o.length&&"#"==o.slice(0,1))try{var a=c(o,l.$menu);a.is("."+d.panel)&&(n=!0,l[t.parent().hasClass(d.vertical)?"togglePanel":"openPanel"](a))}catch(e){}if(n&&e.preventDefault(),!n&&i&&t.is("."+d.listview+" > li > a")&&!t.is('[rel="external"]')&&!t.is('[target="_blank"]')){l.__valueOrFn(l.opts.onClick.setSelected,t)&&l.setSelected(c(e.target).parent());var r=l.__valueOrFn(l.opts.onClick.preventDefault,t,"#"==o.slice(0,1));r&&e.preventDefault(),l.__valueOrFn(l.opts.onClick.close,t,r)&&l.close()}})},_initAddons:function(){var e;
1for(e in c[h].addons)c[h].addons[e].add.call(this),c[h].addons[e].add=function(){};for(e in c[h].addons)c[h].addons[e].setup.call(this)},_getOriginalMenuId:function(){var e=this.$menu.attr("id");return e&&e.length&&this.conf.clone&&(e=d.umm(e)),e},__api:function(){var n=this,i={};return c.each(this._api,function(e){var t=this;i[t]=function(){var e=n[t].apply(n,arguments);return void 0===e?i:e}}),i},__valueOrFn:function(e,t,n){return"function"==typeof e?e.call(t[0]):void 0===e&&void 0!==n?n:e},__refactorClass:function(e,t,n){return e.filter("."+t).removeClass(t).addClass(d[n])},__findAddBack:function(e,t){return e.find(t).add(e.filter(t))},__filterListItems:function(e){return e.not("."+d.divider).not("."+d.hidden)},__transitionend:function(t,n,e){function i(e){if(void 0!==e){if(!c(e.target).is(t))return!1;t.unbind(o.transitionend),t.unbind(o.webkitTransitionEnd)}s||n.call(t[0]),s=!0}var s=!1;t.on(o.transitionend,i),t.on(o.webkitTransitionEnd,i),setTimeout(i,1.1*e)},__getUniqueId:function(){return d.mm(c[h].uniqueId++)}},c.fn[h]=function(n,i){c[h].glbl||(e={$wndw:c(window),$docu:c(document),$html:c("html"),$body:c("body")},d={},u={},o={},c.each([d,u,o],function(e,i){i.add=function(e){for(var t=0,n=(e=e.split(" ")).length;t<n;t++)i[e[t]]=i.mm(e[t])}}),d.mm=function(e){return"mm-"+e},d.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),d.umm=function(e){return"mm-"==e.slice(0,3)&&(e=e.slice(3)),e},u.mm=function(e){return"mm-"+e},u.add("parent child"),o.mm=function(e){return e+".mm"},o.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),c[h]._c=d,c[h]._d=u,c[h]._e=o,c[h].glbl=e),n=c.extend(!0,{},c[h].defaults,n),i=c.extend(!0,{},c[h].configuration,i);var s=c();return this.each(function(){var e=c(this);if(!e.data(h)){var t=new c[h](e,n,i);t.$menu.data(h,t.__api()),s=s.add(t.$menu)}}),s},c[h].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&void 0!==Modernizr.csstransitions)return Modernizr.csstransitions;var e=(document.body||document.documentElement).style,t="transition";if("string"==typeof e[t])return!0;var n=["Moz","webkit","Webkit","Khtml","O","ms"];t=t.charAt(0).toUpperCase()+t.substr(1);for(var i=0;i<n.length;i++)if("string"==typeof e[n[i]+t])return!0;return!1}(),csstransforms:"undefined"==typeof Modernizr||void 0===Modernizr.csstransforms||Modernizr.csstransforms,csstransforms3d:"undefined"==typeof Modernizr||void 0===Modernizr.csstransforms3d||Modernizr.csstransforms3d})}(jQuery),function(o){var a,i,s,r,l="mmenu",c="offCanvas";o[l].addons[c]={setup:function(){if(this.opts[c]){var e=this.opts[c],t=this.conf[c];r=o[l].glbl,this._api=o.merge(this._api,["open","close","setPage"]),"top"!=e.position&&"bottom"!=e.position||(e.zposition="front"),"string"!=typeof t.pageSelector&&(t.pageSelector="> "+t.pageNodetype),r.$allMenus=(r.$allMenus||o()).add(this.$menu),this.vars.opened=!1;var n=[a.offcanvas];"left"!=e.position&&n.push(a.mm(e.position)),"back"!=e.zposition&&n.push(a.mm(e.zposition)),this.$menu.addClass(n.join(" ")).parent().removeClass(a.wrapper),o[l].support.csstransforms||this.$menu.addClass(a["no-csstransforms"]),o[l].support.csstransforms3d||this.$menu.addClass(a["no-csstransforms3d"]),this.setPage(r.$page),this._initBlocker(),this["_initWindow_"+c](),this.$menu[t.menuInjectMethod+"To"](t.menuWrapperSelector);var i=window.location.hash;if(i){var s=this._getOriginalMenuId();s&&s==i.slice(1)&&this.open()}}},add:function(){a=o[l]._c,i=o[l]._d,s=o[l]._e,a.add("offcanvas slideout blocking modal background opening blocker page no-csstransforms3d"),i.add("style"),s.add("resize")},clickAnchor:function(e,t){var n=this;if(this.opts[c]){var i=this._getOriginalMenuId();if(i&&e.is('[href="#'+i+'"]')){if(t)return!0;var s=e.closest("."+a.menu);if(s.length){var o=s.data("mmenu");if(o&&o.close)return o.close(),n.__transitionend(s,function(){n.open()},n.conf.transitionDuration),!0}return this.open(),!0}if(r.$page)return(i=r.$page.first().attr("id"))&&e.is('[href="#'+i+'"]')?(this.close(),!0):void 0}}},o[l].defaults[c]={position:"left",zposition:"back",blockUI:!0,moveBackgroun
1d:!0},o[l].configuration[c]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},o[l].prototype.open=function(){if(!this.vars.opened){var e=this;this._openSetup(),setTimeout(function(){e._openFinish()},this.conf.openingInterval),this.trigger("open")}},o[l].prototype._openSetup=function(){var e=this,t=this.opts[c];this.closeAllOthers(),r.$page.each(function(){o(this).data(i.style,o(this).attr("style")||"")}),r.$wndw.trigger(s.resize+"-"+c,[!0]);var n=[a.opened];t.blockUI&&n.push(a.blocking),"modal"==t.blockUI&&n.push(a.modal),t.moveBackground&&n.push(a.background),"left"!=t.position&&n.push(a.mm(this.opts[c].position)),"back"!=t.zposition&&n.push(a.mm(this.opts[c].zposition)),this.opts.extensions&&n.push(this.opts.extensions),r.$html.addClass(n.join(" ")),setTimeout(function(){e.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(a.current+" "+a.opened)},o[l].prototype._openFinish=function(){var e=this;this.__transitionend(r.$page.first(),function(){e.trigger("opened")},this.conf.transitionDuration),r.$html.addClass(a.opening),this.trigger("opening")},o[l].prototype.close=function(){if(this.vars.opened){var t=this;this.__transitionend(r.$page.first(),function(){t.$menu.removeClass(a.current+" "+a.opened);var e=[a.opened,a.blocking,a.modal,a.background,a.mm(t.opts[c].position),a.mm(t.opts[c].zposition)];t.opts.extensions&&e.push(t.opts.extensions),r.$html.removeClass(e.join(" ")),r.$page.each(function(){o(this).attr("style",o(this).data(i.style))}),t.vars.opened=!1,t.trigger("closed")},this.conf.transitionDuration),r.$html.removeClass(a.opening),this.trigger("close"),this.trigger("closing")}},o[l].prototype.closeAllOthers=function(){r.$allMenus.not(this.$menu).each(function(){var e=o(this).data(l);e&&e.close&&e.close()})},o[l].prototype.setPage=function(e){var t=this,n=this.conf[c];e&&e.length||(e=r.$body.find(n.pageSelector),n.noPageSelector.length&&(e=e.not(n.noPageSelector.join(", "))),1<e.length&&n.wrapPageIfNeeded&&(e=e.wrapAll("<"+this.conf[c].pageNodetype+" />").parent())),e.each(function(){o(this).attr("id",o(this).attr("id")||t.__getUniqueId())}),e.addClass(a.page+" "+a.slideout),r.$page=e,this.trigger("setPage",e)},o[l].prototype["_initWindow_"+c]=function(){r.$wndw.off(s.keydown+"-"+c).on(s.keydown+"-"+c,function(e){if(r.$html.hasClass(a.opened)&&9==e.keyCode)return e.preventDefault(),!1});var i=0;r.$wndw.off(s.resize+"-"+c).on(s.resize+"-"+c,function(e,t){if(1==r.$page.length&&(t||r.$html.hasClass(a.opened))){var n=r.$wndw.height();!t&&n==i||(i=n,r.$page.css("minHeight",n))}})},o[l].prototype._initBlocker=function(){var t=this;this.opts[c].blockUI&&(r.$blck||(r.$blck=o('<div id="'+a.blocker+'" class="'+a.slideout+'" />')),r.$blck.appendTo(r.$body).off(s.touchstart+"-"+c+" "+s.touchmove+"-"+c).on(s.touchstart+"-"+c+" "+s.touchmove+"-"+c,function(e){e.preventDefault(),e.stopPropagation(),r.$blck.trigger(s.mousedown+"-"+c)}).off(s.mousedown+"-"+c).on(s.mousedown+"-"+c,function(e){e.preventDefault(),r.$html.hasClass(a.modal)||(t.closeAllOthers(),t.close())}))}}(jQuery),function(s){var o,a,r,l="mmenu",c="scrollBugFix";s[l].addons[c]={setup:function(){var t=this,e=this.opts[c];if(this.conf[c],r=s[l].glbl,s[l].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof e&&(e={fix:e}),"object"!=typeof e&&(e={}),(e=this.opts[c]=s.extend(!0,{},s[l].defaults[c],e)).fix)){var n=this.$menu.attr("id"),i=!1;this.bind("opening",function(){this.$pnls.children("."+o.current).scrollTop(0)}),r.$docu.on(a.touchmove,function(e){t.vars.opened&&e.preventDefault()}),r.$body.on(a.touchstart,"#"+n+"> ."+o.panels+"> ."+o.current,function(e){t.vars.opened&&(i||(i=!0,0===e.currentTarget.scrollTop?e.currentTarget.scrollTop=1:e.currentTarget.scrollHeight===e.currentTarget.scrollTop+e.currentTarget.offsetHeight&&--e.currentTarget.scrollTop,i=!1))}).on(a.touchmove,"#"+n+"> ."+o.panels+"> ."+o.current,function(e){t.vars.opened&&s(this)[0].scrollHeight>s(this).innerHeight()&&e.stopPropagation()}),r.$wndw.on(a.orientationchange,function(){t.$pnls.children("."+o.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){o=s[l]._c,s[l]._d,a=s[l]._e},clickAnchor:function(e,t){}},s[l].defaults[c]={fix:!0}}(jQuery),function(o){var a,e,t="mmenu",n="autoHeight";o[t].addons[n]={setup:function(){if(this.opts.offCanvas){var s=this.opts[n];if(this.conf[n],o[t].glbl,"boolean"==typeof s&&s&&(s={height:"auto"}),"string"==typeof s&&(s={height:s}),"object"!=typeof s&&(s={}),"auto"==(s=this.opts[n]=o.extend(!0,{}
1,o[t].defaults[n],s)).height||"highest"==s.height){this.$menu.addClass(a.autoheight);function e(e){if(this.vars.opened){var t=parseInt(this.$pnls.css("top"),10)||0,n=parseInt(this.$pnls.css("bottom"),10)||0,i=0;this.$menu.addClass(a.measureheight),"auto"==s.height?((e=e||this.$pnls.children("."+a.current)).is("."+a.vertical)&&(e=e.parents("."+a.panel).not("."+a.vertical).first()),i=e.outerHeight()):"highest"==s.height&&this.$pnls.children().each(function(){var e=o(this);e.is("."+a.vertical)&&(e=e.parents("."+a.panel).not("."+a.vertical).first()),i=Math.max(i,e.outerHeight())}),this.$menu.height(i+t+n).removeClass(a.measureheight)}}this.bind("opening",e),"highest"==s.height&&this.bind("initPanels",e),"auto"==s.height&&(this.bind("update",e),this.bind("openPanel",e),this.bind("closePanel",e))}}},add:function(){a=o[t]._c,o[t]._d,e=o[t]._e,a.add("autoheight measureheight"),e.add("resize")},clickAnchor:function(e,t){}},o[t].defaults[n]={height:"default"}}(jQuery),function(i){var s,o,a="mmenu",r="backButton";i[a].addons[r]={setup:function(){if(this.opts.offCanvas){var t=this,e=this.opts[r];if(this.conf[r],o=i[a].glbl,"boolean"==typeof e&&(e={close:e}),"object"!=typeof e&&(e={}),(e=i.extend(!0,{},i[a].defaults[r],e)).close){var n="#"+t.$menu.attr("id");this.bind("opened",function(e){location.hash!=n&&history.pushState(null,document.title,n)}),i(window).on("popstate",function(e){o.$html.hasClass(s.opened)?(e.stopPropagation(),t.close()):location.hash==n&&(e.stopPropagation(),t.open())})}}},add:function(){return window.history&&window.history.pushState?(s=i[a]._c,i[a]._d,void i[a]._e):void(i[a].addons[r].setup=function(){})},clickAnchor:function(e,t){}},i[a].defaults[r]={close:!1}}(jQuery),function(a){var r,l,c="mmenu",d="columns";a[c].addons[d]={setup:function(){var t=this.opts[d];if(this.conf[d],l=a[c].glbl,"boolean"==typeof t&&(t={add:t}),"number"==typeof t&&(t={add:!0,visible:t}),"object"!=typeof t&&(t={}),"number"==typeof t.visible&&(t.visible={min:t.visible,max:t.visible}),(t=this.opts[d]=a.extend(!0,{},a[c].defaults[d],t)).add){t.visible.min=Math.max(1,Math.min(6,t.visible.min)),t.visible.max=Math.max(t.visible.min,Math.min(6,t.visible.max)),this.$menu.addClass(r.columns);for(var n=this.opts.offCanvas?this.$menu.add(l.$html):this.$menu,i=[],e=0;e<=t.visible.max;e++)i.push(r.columns+"-"+e);i=i.join(" ");function s(){var e=this.$pnls.children("."+r.panel).filter("."+r.opened).length;e=Math.min(t.visible.max,Math.max(t.visible.min,e)),n.removeClass(i).addClass(r.columns+"-"+e)}var o=function(e){this.$pnls.children("."+r.panel).removeClass(i).filter("."+r.subopened).removeClass(r.hidden).add(e).slice(-t.visible.max).each(function(e){a(this).addClass(r.columns+"-"+e)})};this.bind("open",s),this.bind("close",function(){this.opts.offCanvas&&l.$html.removeClass(i)}),this.bind("initPanels",function(e){o.call(this,this.$pnls.children("."+r.current))}),this.bind("openPanel",o),this.bind("openingPanel",s),this.bind("openedPanel",s),this.opts.offCanvas||s.call(this)}},add:function(){r=a[c]._c,a[c]._d,a[c]._e,r.add("columns")},clickAnchor:function(e,t){if(!this.opts[d].add)return!1;if(t){var n=e.attr("href");if(1<n.length&&"#"==n.slice(0,1))try{if(a(n,this.$menu).is("."+r.panel))for(var i=parseInt(e.closest("."+r.panel).attr("class").split(r.columns+"-")[1].split(" ")[0],10)+1;!1!==i;){var s=this.$pnls.children("."+r.columns+"-"+i);if(!s.length){i=!1;break}i++,s.removeClass(r.subopened).removeClass(r.opened).removeClass(r.current).removeClass(r.highest).addClass(r.hidden)}}catch(e){}}}},a[c].defaults[d]={add:!1,visible:{min:1,max:3}}}(jQuery),function(s){var o,a,e="mmenu",t="counters";s[e].addons[t]={setup:function(){var i=this,n=this.opts[t];this.conf[t],s[e].glbl,"boolean"==typeof n&&(n={add:n,update:n}),"object"!=typeof n&&(n={}),n=this.opts[t]=s.extend(!0,{},s[e].defaults[t],n),this.bind("initPanels",function(e){this.__refactorClass(s("em",e),this.conf.classNames[t].counter,"counter")}),n.add&&this.bind("initPanels",function(e){var t;switch(n.addTo){case"panels":t=e;break;default:t=e.filter(n.addTo)}t.each(function(){var e=s(this).data(a.parent);e&&(e.children("em."+o.counter).length||e.prepend(s('<em class="'+o.counter+'" />')))})}),n.update&&this.bind("update",function(){this.$pnls.find("."+o.panel).each(function(){var e=s(this),t=e.data(a.parent);if(t){var n=t.children("em."+o.counter);n.length&&((e=e.children("."+o.listview)).length&&n.html(i.__filterListItems(e.children()).length))}})})},add:function(){o=s[e]._c,a=s[e]._d,s[e]._e,o.add("counter search noresultsmsg")},clickAnchor:function(e,t){}},s[e].defaults[t]={add:!1,addTo:"panels",update:!1},s[e].configuration.classNames[t]={counter:"Counter"}}(jQuery),function(g){function v(e,t,n){return e<t&&(e=t),n<e&&(e=n),e}var _,o,i,e="mmenu",b="drag";g[e].addons[b]={setup:function(){if(this.opts.offCanvas){var t=this.opts[b],n=this.conf[b];i=g[e].glbl,"boolean"==typeof t&&(t={menu:t,panels:t}),"object"!=typeof t&&(t={}),"boolean"==typeof t.menu&&(t.menu={open:t.menu}),"object"!=typeof t.menu&&(t.menu={}),"boolean"==typeof t.panels&&(t.panels={close:t.panels}),"object"!=typeof t.panels&&(t.panels={}),(t=this.opts[b]=g.extend(!0,{},g[e].defaults[b],t)).menu.open&&function(t,n,i){var s,o,a,r,l,c=this,d={},u=0,h=!1,p=!1,f=0,m=0;switch(this.opts.offCanvas.position){case"left":case"right":d.events="panleft panright",d.typeLower="x",d.typeUpper="X",p="width";break;
1case"top":case"bottom":d.events="panup pandown",d.typeLower="y",d.typeUpper="Y",p="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":d.negative=!0,r=function(e){e>=i.$wndw[p]()-t.maxStartPos&&(u=1)};break;default:d.negative=!1,r=function(e){e<=t.maxStartPos&&(u=1)}}switch(this.opts.offCanvas.position){case"left":d.open_dir="right",d.close_dir="left";break;case"right":d.open_dir="left",d.close_dir="right";break;case"top":d.open_dir="down",d.close_dir="up";break;case"bottom":d.open_dir="up",d.close_dir="down"}switch(this.opts.offCanvas.zposition){case"front":l=function(){return this.$menu};break;default:l=function(){return g("."+_.slideout)}}var e=this.__valueOrFn(t.node,this.$menu,i.$page);"string"==typeof e&&(e=g(e)),new Hammer(e[0],this.opts[b].vendors.hammer).on("panstart",function(e){r(e.center[d.typeLower]),i.$slideOutNodes=l(),h=d.open_dir}).on(d.events+" panend",function(e){0<u&&e.preventDefault()}).on(d.events,function(e){if(s=e["delta"+d.typeUpper],d.negative&&(s=-s),s!=f&&(h=f<=s?d.open_dir:d.close_dir),(f=s)>t.threshold&&1==u){if(i.$html.hasClass(_.opened))return;u=2,c._openSetup(),c.trigger("opening"),i.$html.addClass(_.dragging),m=v(i.$wndw[p]()*n[p].perc,n[p].min,n[p].max)}2==u&&(o=v(f,10,m)-("front"==c.opts.offCanvas.zposition?m:0),d.negative&&(o=-o),a="translate"+d.typeUpper+"("+o+"px )",i.$slideOutNodes.css({"-webkit-transform":"-webkit-"+a,transform:a}))}).on("panend",function(e){2==u&&(i.$html.removeClass(_.dragging),i.$slideOutNodes.css("transform",""),c[h==d.open_dir?"_openFinish":"close"]()),u=0})}.call(this,t.menu,n.menu,i),t.panels.close&&this.bind("initPanels",function(e){(function(e,t,n,i){var s=this;e.each(function(){var e=g(this),t=e.data(o.parent);t&&(t=t.closest("."+_.panel)).length&&new Hammer(e[0],s.opts[b].vendors.hammer).on("panright",function(e){s.openPanel(t)})})}).call(this,e,t.panels,n.panels,i)})}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(g[e].addons[b].setup=function(){}):(_=g[e]._c,o=g[e]._d,g[e]._e,void _.add("dragging"))},clickAnchor:function(e,t){}},g[e].defaults[b]={menu:{open:!1,maxStartPos:100,threshold:50},panels:{close:!1},vendors:{hammer:{}}},g[e].configuration[b]={menu:{width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}},panels:{}}}(jQuery),function(s){var o,a,e="mmenu",r="dividers";s[e].addons[r]={setup:function(){var n=this,i=this.opts[r];if(this.conf[r],s[e].glbl,"boolean"==typeof i&&(i={add:i,fixed:i}),"object"!=typeof i&&(i={}),i=this.opts[r]=s.extend(!0,{},s[e].defaults[r],i),this.bind("initPanels",function(e){this.__refactorClass(s("li",this.$menu),this.conf.classNames[r].collapsed,"collapsed")}),i.add&&this.bind("initPanels",function(e){var t;switch(i.addTo){case"panels":t=e;break;default:t=e.filter(i.addTo)}s("."+o.divider,t).remove(),t.find("."+o.listview).not("."+o.vertical).each(function(){var t="";n.__filterListItems(s(this).children()).each(function(){var e=s.trim(s(this).children("a, span").text()).slice(0,1).toLowerCase();e!=t&&e.length&&(t=e,s('<li class="'+o.divider+'">'+e+"</li>").insertBefore(this))})})}),i.collapse&&this.bind("initPanels",function(e){s("."+o.divider,e).each(function(){var e=s(this);e.nextUntil("."+o.divider,"."+o.collapsed).length&&(e.children("."+o.subopen).length||(e.wrapInner("<span />"),e.prepend('<a href="#" class="'+o.subopen+" "+o.fullsubopen+'" />')))})}),i.fixed){function t(e){if((e=e||this.$pnls.children("."+o.current)).find("."+o.divider).not("."+o.hidden).length){this.$menu.addClass(o.hasdividers);var t=e.scrollTop()||0,n="";e.is(":visible")&&e.find("."+o.divider).not("."+o.hidden).each(function(){s(this).position().top+t<t+1&&(n=s(this).text())}),this.$fixeddivider.text(n)}else this.$menu.removeClass(o.hasdividers)}this.$fixeddivider=s('<ul class="'+o.listview+" "+o.fixeddivider+'"><li class="'+o.divider+'"></li></ul>').prependTo(this.$pnls).children(),this.bind("openPanel",t),this.bind("update",t),this.bind("initPanels",function(e){e.off(a.scroll+"-dividers "+a.touchmove+"-dividers").on(a.scroll+"-dividers "+a.touchmove+"-dividers",function(e){t.call(n,s(this))})})}},add:function(){o=s[e]._c,s[e]._d,a=s[e]._e,o.add("collapsed uncollapsed fixeddivider hasdividers"),a.add("scroll")},clickAnchor:function(e,t){if(this.opts[r].collapse&&t){var n=e.parent();if(n.is("."+o.divider)){var i=n.nextUntil("."+o.divider,"."+o.collapsed);return n.toggleClass(o.opened),i[n.hasClass(o.opened)?"addClass":"removeClass"](o.uncollapsed),!0}}return!1}},s[e].defaults[r]={add:!1,addTo:"panels",fixed:!1,collapse:!1},s[e].configuration.classNames[r]={collapsed:"Collapsed"}}(jQuery),function(w){var $,s,o,x,C="mmenu",S="dropdown";w[C].addons[S]={setup:function(){if(this.opts.offCanvas){var t=this,_=this.opts[S],b=this.conf[S];if(x=w[C].glbl,"boolean"==typeof _&&_&&(_={drop:_}),"object"!=typeof _&&(_={}),"string"==typeof _.position&&(_.position={of:_.position}),(_=this.opts[S]=w.extend(!0,{},w[C].defaults[S],_)).drop){if("string"!=typeof _.position.of){var e=this.$menu.attr("id");e&&e.length&&(this.conf.clone&&(e=$.umm(e)),_.position.of='[href="#'+e+'"]')}if("string"==typeof _.position.of){var y=w(_.position.of);
1if(y.length){this.$menu.addClass($.dropdown),_.tip&&this.$menu.addClass($.tip),_.event=_.event.split(" "),1==_.event.length&&(_.event[1]=_.event[0]),"hover"==_.event[0]&&y.on(o.mouseenter+"-dropdown",function(){t.open()}),"hover"==_.event[1]&&this.$menu.on(o.mouseleave+"-dropdown",function(){t.close()}),this.bind("opening",function(){this.$menu.data(s.style,this.$menu.attr("style")||""),x.$html.addClass($.dropdown)}),this.bind("closed",function(){this.$menu.attr("style",this.$menu.data(s.style)),x.$html.removeClass($.dropdown)});function n(e,t){var n,i,s=t[0],o=t[1],a="x"==e?"scrollLeft":"scrollTop",r="x"==e?"outerWidth":"outerHeight",l="x"==e?"left":"top",c="x"==e?"right":"bottom",d="x"==e?"width":"height",u="x"==e?"maxWidth":"maxHeight",h=null,p=x.$wndw[a](),f=y.offset()[l]-=p,m=f+y[r](),g=x.$wndw[d](),v=b.offset.button[e]+b.offset.viewport[e];if(_.position[e])switch(_.position[e]){case"left":case"bottom":h="after";break;case"right":case"top":h="before"}return null===h&&(h=f+(m-f)/2<g/2?"after":"before"),"after"==h?(i=g-((n="x"==e?f:m)+v),s[l]=n+b.offset.button[e],s[c]="auto",o.push($["x"==e?"tipleft":"tiptop"])):(i=(n="x"==e?m:f)-v,s[c]="calc( 100% - "+(n-b.offset.button[e])+"px )",s[l]="auto",o.push($["x"==e?"tipright":"tipbottom"])),s[u]=Math.min(w[C].configuration[S][d].max,i),[s,o]}function i(e){if(this.vars.opened){this.$menu.attr("style",this.$menu.data(s.style));var t=[{},[]];t=n.call(this,"y",t),t=n.call(this,"x",t),this.$menu.css(t[0]),_.tip&&this.$menu.removeClass($.tipleft+" "+$.tipright+" "+$.tiptop+" "+$.tipbottom).addClass(t[1].join(" "))}}
1this.bind("opening",i),x.$wndw.on(o.resize+"-dropdown",function(e){i.call(t)}),this.opts.offCanvas.blockUI||x.$wndw.on(o.scroll+"-dropdown",function(e){i.call(t)})}}}}},add:function(){$=w[C]._c,s=w[C]._d,o=w[C]._e,$.add("dropdown tip tipleft tipright tiptop tipbottom"),o.add("mouseenter mouseleave resize scroll")},clickAnchor:function(e,t){}},w[C].defaults[S]={drop:!1,event:"click",position:{},tip:!0},w[C].configuration[S]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}}}(jQuery),function(n){var e,i,s="mmenu",o="fixedElements";n[s].addons[o]={setup:function(){if(this.opts.offCanvas){var e=this.opts[o];this.conf[o],i=n[s].glbl,e=this.opts[o]=n.extend(!0,{},n[s].defaults[o],e);function t(e){var t=this.conf.classNames[o].fixed;this.__refactorClass(e.find("."+t),t,"slideout").appendTo(i.$body)}t.call(this,i.$page),this.bind("setPage",t)}},add:function(){e=n[s]._c,n[s]._d,n[s]._e,e.add("fixed")},clickAnchor:function(e,t){}},n[s].configuration.classNames[o]={fixed:"Fixed"}}(jQuery),function(o){var a,r="mmenu",l="iconPanels";o[r].addons[l]={setup:function(){var t=this,n=this.opts[l];if(this.conf[l],o[r].glbl,"boolean"==typeof n&&(n={add:n}),"number"==typeof n&&(n={add:!0,visible:n}),"object"!=typeof n&&(n={}),(n=this.opts[l]=o.extend(!0,{},o[r].defaults[l],n)).visible++,n.add){this.$menu.addClass(a.iconpanel);for(var i=[],e=0;e<=n.visible;e++)i.push(a.iconpanel+"-"+e);i=i.join(" ");function s(e){e.hasClass(a.vertical)||t.$pnls.children("."+a.panel).removeClass(i).filter("."+a.subopened).removeClass(a.hidden).add(e).not("."+a.vertical).slice(-n.visible).each(function(e){o(this).addClass(a.iconpanel+"-"+e)})}this.bind("openPanel",s),this.bind("initPanels",function(e){s.call(t,t.$pnls.children("."+a.current)),e.not("."+a.vertical).each(function(){o(this).children("."+a.subblocker).length||o(this).prepend('<a href="#'+o(this).closest("."+a.panel).attr("id")+'" class="'+a.subblocker+'" />')})})}},add:function(){a=o[r]._c,o[r]._d,o[r]._e,a.add("iconpanel subblocker")},clickAnchor:function(e,t){}},o[r].defaults[l]={add:!1,visible:3}}(jQuery),function(o){function s(e,t){e=e||this.$pnls.children("."+c.current);var n=o();"default"==t&&((n=e.children("."+c.listview).find("a[href]").not(":hidden")).length||(n=e.find(h).not(":hidden")),n.length||(n=this.$menu.children("."+c.navbar).find(h).not(":hidden"))),n.length||(n=this.$menu.children("."+c.tabstart)),n.first().focus()}function a(e){e=e||this.$pnls.children("."+c.current),this.$pnls.children("."+c.panel).not(e).find(h).attr("tabindex",-1),e.find(h).attr("tabindex",0),e.find("input.mm-toggle, input.mm-check").attr("tabindex",-1)}var r="mmenu",l="keyboardNavigation";o[r].addons[l]={setup:function(){var t=this,n=this.opts[l];if(this.conf[l],u=o[r].glbl,"boolean"!=typeof n&&"string"!=typeof n||(n={enable:n}),"object"!=typeof n&&(n={}),(n=this.opts[l]=o.extend(!0,{},o[r].defaults[l],n)).enable){n.enhance&&this.$menu.addClass(c.keyboardfocus);var e=o('<input class="'+c.tabstart+'" tabindex="0" type="text" />'),i=o('<input class="'+c.tabend+'" tabindex="0" type="text" />');this.bind("initPanels",function(){this.$menu.prepend(e).append(i).children("."+c.navbar).find(h).attr("tabindex",0)}),this.bind("open",function(){a.call(this),this.__transitionend(this.$menu,function(){s.call(t,null,n.enable)},this.conf.transitionDuration)}),this.bind("openPanel",function(e){a.call(this,e),this.__transitionend(e,function(){s.call(t,e,n.enable)},this.conf.transitionDuration)}),this["_initWindow_"+l](n.enhance)}},add:function(){c=o[r]._c,d=o[r]._d,i=o[r]._e,c.add("tabstart tabend keyboardfocus"),i.add("focusin keydown")},clickAnchor:function(e,t){}},o[r].defaults[l]={enable:!1,enhance:!1},o[r].configuration[l]={},o[r].prototype["_initWindow_"+l]=function(e){u.$wndw.off(i.keydown+"-offCanvas"),u.$wndw.off(i.focusin+"-"+l).on(i.focusin+"-"+l,function(e){if(u.$html.hasClass(c.opened)){var t=o(e.target);t.is("."+c.tabend)&&t.parent().find("."+c.tabstart).focus()}}),u.$wndw.off(i.keydown+"-"+l).on(i.keydown+"-"+l,function(e){var t=o(e.target),n=t.closest("."+c.menu);if(n.length&&(n.data("mmenu"),!t.is("input, textarea")))switch(e.keyCode){case 13:(t.is(".mm-toggle")||t.is(".mm-check"))&&t.trigger(i.click);break;case 32:case 37:case 38:case 39:case 40:e.preventDefault()}}
1),e&&u.$wndw.on(i.keydown+"-"+l,function(e){var t=o(e.target),n=t.closest("."+c.menu);if(n.length){var i=n.data("mmenu");if(t.is("input, textarea"))switch(e.keyCode){case 27:t.val("")}else switch(e.keyCode){case 8:var s=t.closest("."+c.panel).data(d.parent);s&&s.length&&i.openPanel(s.closest("."+c.panel));break;case 27:n.hasClass(c.offcanvas)&&i.close()}}})};var c,d,i,u,h="input, select, textarea, button, label, a[href]"}(jQuery),function(n){var i,s,t="mmenu",o="lazySubmenus";n[t].addons[o]={setup:function(){var e=this.opts[o];this.conf[o],n[t].glbl,"boolean"==typeof e&&(e={load:e}),"object"!=typeof e&&(e={}),(e=this.opts[o]=n.extend(!0,{},n[t].defaults[o],e)).load&&(this.$menu.find("li").find("li").children(this.conf.panelNodetype).each(function(){n(this).parent().addClass(i.lazysubmenu).data(s.lazysubmenu,this).end().remove()}),this.bind("openingPanel",function(e){var t=e.find("."+i.lazysubmenu);t.length&&(t.each(function(){n(this).append(n(this).data(s.lazysubmenu)).removeData(s.lazysubmenu).removeClass(i.lazysubmenu)}),this.initPanels(e))}))},add:function(){i=n[t]._c,s=n[t]._d,n[t]._e,i.add("lazysubmenu"),s.add("lazysubmenu")},clickAnchor:function(e,t){}},n[t].defaults[o]={load:!1},n[t].configuration[o]={}}(jQuery),function(p){var f,m="mmenu",g="navbars";p[m].addons[g]={setup:function(){var c=this,d=this.opts[g],u=this.conf[g];if(p[m].glbl,void 0!==d){d instanceof Array||(d=[d]);var h={};if(d.length)for(var e in p.each(d,function(e){var t=d[e];"boolean"==typeof t&&t&&(t={}),"object"!=typeof t&&(t={}),void 0===t.content&&(t.content=["prev","title"]),t.content instanceof Array||(t.content=[t.content]);var n=(t=p.extend(!0,{},c.opts.navbar,t)).position,i=t.height;"number"!=typeof i&&(i=1),i=Math.min(4,Math.max(1,i)),"bottom"!=n&&(n="top"),h[n]||(h[n]=0),h[n]++;var s=p("<div />").addClass(f.navbar+" "+f.navbar+"-"+n+" "+f.navbar+"-"+n+"-"+h[n]+" "+f.navbar+"-size-"+i);h[n]+=i-1;for(var o=0,a=0,r=t.content.length;a<r;a++){var l=p[m].addons[g][t.content[a]]||!1;l?o+=l.call(c,s,t,u):((l=t.content[a])instanceof p||(l=p(t.content[a])),s.append(l))}1<(o+=Math.ceil(s.children().not("."+f.btn).length/i))&&s.addClass(f.navbar+"-content-"+o),s.children("."+f.btn).length&&s.addClass(f.hasbtns),s.prependTo(c.$menu)}),h)c.$menu.addClass(f.hasnavbar+"-"+e+"-"+h[e])}},add:function(){f=p[m]._c,p[m]._d,p[m]._e,f.add("close hasbtns")},clickAnchor:function(e,t){}},p[m].configuration[g]={breadcrumbSeparator:"/"},p[m].configuration.classNames[g]={}}(jQuery),function(c){var s="mmenu";c[s].addons.navbars.breadcrumbs=function(e,t,a){var r=c[s]._c,l=c[s]._d;r.add("breadcrumbs separator");var n=c('<span class="'+r.breadcrumbs+'" />').appendTo(e);this.bind("initPanels",function(e){e.removeClass(r.hasnavbar).each(function(){for(var e=[],t=c(this),n=c('<span class="'+r.breadcrumbs+'"></span>'),i=c(this).children().first(),s=!0;i&&i.length;){i.is("."+r.panel)||(i=i.closest("."+r.panel));var o=i.children("."+r.navbar).children("."+r.title).text();e.unshift(s?"<span>"+o+"</span>":'<a href="#'+i.attr("id")+'">'+o+"</a>"),s=!1,i=i.data(l.parent)}n.append(e.join('<span class="'+r.separator+'">'+a.breadcrumbSeparator+"</span>")).appendTo(t.children("."+r.navbar))})});function i(){n.html(this.$pnls.children("."+r.current).children("."+r.navbar).children("."+r.breadcrumbs).html())}return this.bind("openPanel",i),this.bind("initPanels",i),0}}(jQuery),function(a){var r="mmenu";a[r].addons.navbars.close=function(e,t){function n(e){o.attr("href","#"+e.attr("id"))}var i=a[r]._c,s=a[r].glbl,o=a('<a class="'+i.close+" "+i.btn+'" href="#" />').appendTo(e);return n.call(this,s.$page),this.bind("setPage",n),-1}}(jQuery),function(r){var l="mmenu",c="navbars";r[l].addons[c].next=function(e,t){function n(e){var t=(e=e||this.$pnls.children("."+o.current)).find("."+this.conf.classNames[c].panelNext);i=t.attr("href"),s=t.html(),a[i?"attr":"removeAttr"]("href",i),a[i||s?"removeClass":"addClass"](o.hidden),a.html(s)}var i,s,o=r[l]._c,a=r('<a class="'+o.next+" "+o.btn+'" href="#" />').appendTo(e);return this.bind("openPanel",n),this.bind("initPanels",function(){n.call(this)}),-1},r[l].configuration.classNames[c].panelNext="Next"}(jQuery),function(r){var l="mmenu",c="navbars";r[l].addons[c].prev=function(e,t){var n=r[l]._c,i=r('<a class="'+n.prev+" "+n.btn+'" href="#" />').appendTo(e);this.bind("initPanels",function(e){e.removeClass(n.hasnavbar).children("."+n.navbar).addClass(n.hidden)});function s(e){if(!(e=e||this.$pnls.children("."+n.current)).hasClass(n.vertical)){var t=e.find("."+this.conf.classNames[c].panelPrev);t.length||(t=e.children("."+n.navbar).children("."+n.prev)),o=t.attr("href"),a=t.html(),i[o?"attr":"removeAttr"]("href",o),i[o||a?"removeClass":"addClass"](n.hidden),i.html(a)}}var o,a;return this.bind("openPanel",s),this.bind("initPanels",function(){s.c
1all(this)}),-1},r[l].configuration.classNames[c].panelPrev="Prev"}(jQuery),function(s){s.mmenu.addons.navbars.searchfield=function(e,t){var n=s.mmenu._c,i=s('<div class="'+n.search+'" />').appendTo(e);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=i,0}}(jQuery),function(r){var l="mmenu",c="navbars";r[l].addons[c].title=function(e,n){function t(e){if(!(e=e||this.$pnls.children("."+o.current)).hasClass(o.vertical)){var t=e.find("."+this.conf.classNames[c].panelTitle);t.length||(t=e.children("."+o.navbar).children("."+o.title)),i=t.attr("href"),s=t.html()||n.title,a[i?"attr":"removeAttr"]("href",i),a[i||s?"removeClass":"addClass"](o.hidden),a.html(s)}}var i,s,o=r[l]._c,a=r('<a class="'+o.title+'" />').appendTo(e);return this.bind("openPanel",t),this.bind("initPanels",function(e){t.call(this)}),0},r[l].configuration.classNames[c].panelTitle="Title"}(jQuery),function(t){var n,i,s="mmenu";t[s].addons.rtl={setup:function(){var e=this.opts.rtl;this.conf.rtl,i=t[s].glbl,"object"!=typeof e&&(e={use:e}),"boolean"!=typeof(e=this.opts.rtl=t.extend(!0,{},t[s].defaults.rtl,e)).use&&(e.use="rtl"==(i.$html.attr("dir")||"").toLowerCase()),e.use&&this.$menu.addClass(n.rtl)},add:function(){n=t[s]._c,t[s]._d,t[s]._e,n.add("rtl")},clickAnchor:function(e,t){}},t[s].defaults.rtl={use:"detect"}}(jQuery),function(a){function r(e,t,n){e.prop("aria-"+t,n)[n?"attr":"removeAttr"]("aria-"+t,"true")}function l(e){return'<span class="'+c.sronly+'">'+e+"</span>"}var c,d="mmenu",u="screenReader";a[d].addons[u]={setup:function(){var e=this.opts[u],t=this.conf[u];if(a[d].glbl,"boolean"==typeof e&&(e={aria:e,text:e}),"object"!=typeof e&&(e={}),(e=this.opts[u]=a.extend(!0,{},a[d].defaults[u],e)).aria){if(this.opts.offCanvas){function n(){r(this.$menu,"hidden",!0)}this.bind("open",function(){r(this.$menu,"hidden",!1)}),this.bind("close",n),n.call(this)}function i(){r(this.$menu.find("."+c.hidden),"hidden",!0),r(this.$menu.find('[aria-hidden="true"]').not("."+c.hidden),"hidden",!1)}this.bind("update",i),this.bind("openPanel",i),this.bind("openPanel",function(e){r(this.$pnls.children("."+c.panel).not(e).not("."+c.hidden),"hidden",!0),r(e,"hidden",!1)});function s(e){r(e.find("."+c.prev+", ."+c.next),"haspopup",!0)}this.bind("initPanels",s),s.call(this,this.$menu.children("."+c.navbar))}if(e.text){function o(e){e.children("."+c.navbar).children("."+c.prev).html(l(t.text.closeSubmenu)).end().children("."+c.next).html(l(t.text.openSubmenu)).end().children("."+c.close).html(l(t.text.closeMenu)),e.is("."+c.panel)&&e.find("."+c.listview).find("."+c.next).each(function(){a(this).html(l(t.text[a(this).parent().is("."+c.vertical)?"toggleSubmenu":"openSubmenu"]))})}this.bind("initPanels",o),o.call(this,this.$menu)}},add:function(){c=a[d]._c,a[d]._d,a[d]._e,c.add("sronly")},clickAnchor:function(e,t){}},a[d].defaults[u]={aria:!1,text:!1},a[d].configuration[u]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}}}(jQuery),function(f){var m,g,v,e="mmenu",_="searchfield";f[e].addons[_]={setup:function(){var h=this,p=this.opts[_],c=this.conf[_];f[e].glbl,"boolean"==typeof p&&(p={add:p}),"object"!=typeof p&&(p={}),"boolean"==typeof p.resultsPanel&&(p.resultsPanel={add:p.resultsPanel}),p=this.opts[_]=f.extend(!0,{},f[e].defaults[_],p),c=this.conf[_]=f.extend(!0,{},f[e].configuration[_],c),this.bind("close",function(){this.$menu.find("."+m.search).find("input").blur()}),this.bind("initPanels",function(e){if(p.add){var t;switch(p.addTo){case"panels":t=e;break;default:t=this.$menu.find(p.addTo)}if(t.each(function(){var e=f(this);if(!e.is("."+m.panel)||!e.is("."+m.vertical)){if(!e.children("."+m.search).length){var t,n=h.__valueOrFn(c.clear,e),i=h.__valueOrFn(c.form,e),s=h.__valueOrFn(c.input,e),o=h.__valueOrFn(c.submit,e),a=f("<"+(i?"form":"div")+' class="'+m.search+'" />'),r=f('<input placeholder="'+p.placeholder+'" type="text" autocomplete="off" />');if(a.append(r),s)for(t in s)r.attr(t,s[t]);if(n&&f('<a class="'+m.btn+" "+m.clear+'" href="#" />').appendTo(a).on(v.click+"-searchfield",function(e){e.preventDefault(),r.val("").trigger(v.keyup+"-searchfield")}),i){for(t in i)a.attr(t,i[t]);o&&!n&&f('<a class="'+m.btn+" "+m.next+'" href="#" />').appendTo(a).on(v.click+"-searchfield",function(e){e.preventDefault(),a.submit()})}e.hasClass(m.search)?e.replaceWith(a):e.prepend(a).addClass(m.hassearch)}if(p.noResults)if(e.closest("."+m.panel).length||(e=h.$pnls.children("."+m.panel).first()),!e.children("."+m.noresultsmsg).length){var l=e.children("."+m.listview).first();f('<div class="'+m.noresultsmsg+" "+m.hidden+'" />').append(p.noResults)[l.length?"insertAfter":"prependTo"](l.length?l:e)}}}),p.search){if(p.resultsPanel.add){p.showSubPanels=!1;var u=this.$pnls.children("."+m.resultspanel);u.length||(u=f('<div class="'+m.panel+" "+m.resultspanel+" "+m.hidden+'" />').appendTo(this.$pnls).append('<div class="'+m.navbar+" "+m.hidden+'"><a class="'+m.title+'">'+p.resultsPanel.title+"</a></div>").append('<ul class="'+m.listview+'" />').append(this.$pnls.find("."+m.noresultsmsg).first().clone()),this.initPanels(u))}this.$menu.find("."+m.search).each(function(){var n,i,e=f(this),s=e.closest("."+m.panel).length;i=s?n=e.closest("."+m.panel):(n=f("."+m.panel,h.$menu),h.$menu),p.resultsPanel.add&&(n=n.not(u));function t(){var e=o.val().toLowerCase();if(e!=c){if(c=e,p.resultsPanel.add&&u.children("."+m.listview).empty(),n.scrollTop(0),l.add(r).addClass(m.hidden).find("."+m.fullsubopensearch).removeClass(m.fullsubopen+" "+m.fullsubopensearch),l.each(function(){var e=f(this),t="a";(p.showTextItems||p.showSubPanels&&e.find("."+m.next))&&(t="a, span"),-1<(e.data(g.searchtext)||e.children(t).text()).toLowerCase().indexOf(c)&&e.add(e.prevAll("."+m.divider).first()).removeClass(m.hidden)}),p.showSubPanels&&n.each(function(e){var t=f(this);h.__filterListItems(t.find("."+m.listview).children()).each(function(){var e=f(this),t=e.data(g.child);e.removeClass(m.nosubresults),t&&t.find("."+m.listview).children().removeClass(m.hidden)})}),p.resultsPanel.add)if(""===c)this.closeAllPanels(),this.openPanel
1(this.$pnls.children("."+m.subopened).last());else{var t=f();n.each(function(){var e=h.__filterListItems(f(this).find("."+m.listview).children()).not("."+m.hidden).clone(!0);e.length&&(p.resultsPanel.dividers&&(t=t.add('<li class="'+m.divider+'">'+f(this).children("."+m.navbar).text()+"</li>")),t=t.add(e))}),t.find("."+m.next).remove(),u.children("."+m.listview).append(t),this.openPanel(u)}else f(n.get().reverse()).each(function(e){var t=f(this),n=t.data(g.parent);n&&(h.__filterListItems(t.find("."+m.listview).children()).length?(n.hasClass(m.hidden)&&n.children("."+m.next).not("."+m.fullsubopen).addClass(m.fullsubopen).addClass(m.fullsubopensearch),n.removeClass(m.hidden).removeClass(m.nosubresults).prevAll("."+m.divider).first().removeClass(m.hidden)):s||(t.hasClass(m.opened)&&setTimeout(function(){h.openPanel(n.closest("."+m.panel))},(e+1)*(1.5*h.conf.openingInterval)),n.addClass(m.nosubresults)))});i.find("."+m.noresultsmsg)[l.not("."+m.hidden).length?"addClass":"removeClass"](m.hidden),this.update()}}var o=e.children("input"),a=h.__findAddBack(n,"."+m.listview).children("li"),r=a.filter("."+m.divider),l=h.__filterListItems(a),c="";o.off(v.keyup+"-"+_+" "+v.change+"-"+_).on(v.keyup+"-"+_,function(e){!function(e){switch(e){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return 1}}(e.keyCode)&&t.call(h)}).on(v.change+"-"+_,function(e){t.call(h)});var d=e.children("."+m.btn);d.length&&o.on(v.keyup+"-"+_,function(e){d[o.val().length?"removeClass":"addClass"](m.hidden)}),o.trigger(v.keyup+"-"+_)})}}})},add:function(){m=f[e]._c,g=f[e]._d,v=f[e]._e,m.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),g.add("searchtext"),v.add("change keyup")},clickAnchor:function(e,t){}},f[e].defaults[_]={add:!1,addTo:"panels",placeholder:"Search",noResults:"No results found.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},f[e].configuration[_]={clear:!1,form:!1,input:!1,submit:!1}}(jQuery),function(r){var l,s,e="mmenu",t="sectionIndexer";r[e].addons[t]={setup:function(){var a=this,i=this.opts[t];this.conf[t],r[e].glbl,"boolean"==typeof i&&(i={add:i}),"object"!=typeof i&&(i={}),i=this.opts[t]=r.extend(!0,{},r[e].defaults[t],i),this.bind("initPanels",function(e){if(i.add){var t;switch(i.addTo){case"panels":t=e;break;default:t=r(i.addTo,this.$menu).filter("."+l.panel)}t.find("."+l.divider).closest("."+l.panel).addClass(l.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+l.hasindexer).length){this.$indexer=r('<div class="'+l.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>'),this.$indexer.children().on(s.mouseover+"-sectionindexer "+l.touchstart+"-sectionindexer",function(e){var t=r(this).attr("href").slice(1),n=a.$pnls.children("."+l.current),i=n.find("."+l.listview),s=!1,o=n.scrollTop();n.scrollTop(0),i.children("."+l.divider).not("."+l.hidden).each(function(){!1===s&&t==r(this).text().slice(0,1).toLowerCase()&&(s=r(this).position().top)}),n.scrollTop(!1!==s?s:o)});function n(e){a.$menu[(e.hasClass(l.hasindexer)?"add":"remove")+"Class"](l.hasindexer)}this.bind("openPanel",n),n.call(this,this.$pnls.children("."+l.current))}})},add:function(){l=r[e]._c,r[e]._d,s=r[e]._e,l.add("indexer hasindexer"),s.add("mouseover touchstart")},clickAnchor:function(e,t){if(e.parent().is("."+l.indexer))return!0}},r[e].defaults[t]={add:!1,addTo:"panels"}}(jQuery),function(s){var o,a,r="mmenu",l="setSelected";s[r].addons[l]={setup:function(){var n=this,e=this.opts[l];if(this.conf[l],s[r].glbl,"boolean"==typeof e&&(e={hover:e,parent:e}),"object"!=typeof e&&(e={}),"detect"==(e=this.opts[l]=s.extend(!0,{},s[r].defaults[l],e)).current){var i=function(e){e=e.split("?")[0].split("#")[0];var t=n.$menu.find('a[href="'+e+'"], a[href="'+e+'/"]');t.length?n.setSelected(t.parent(),!0):(e=e.split("/").slice(0,-1)).length&&i(e.join("/"))};i(window.location.href)}else e.current||this.bind("initPanels",function(e){e.find("."+o.listview).children("."+o.selected).removeClass(o.selected)});if(e.hover&&this.$menu.addClass(o.hoverselected),e.parent){this.$menu.addClass(o.parentselected);function t(e){this.$pnls.find("."+o.listview).find("."+o.next).removeClass(o.selected);for(var t=e.data(a.parent);t&&t.length;
1)t=t.not("."+o.vertical).children("."+o.next).addClass(o.selected).end().closest("."+o.panel).data(a.parent)}this.bind("openedPanel",t),this.bind("initPanels",function(e){t.call(this,this.$pnls.children("."+o.current))})}},add:function(){o=s[r]._c,a=s[r]._d,s[r]._e,o.add("hoverselected parentselected")},clickAnchor:function(e,t){}},s[r].defaults[l]={current:!0,hover:!1,parent:!1}}(jQuery),function(o){var a,e="mmenu",t="toggles";o[e].addons[t]={setup:function(){var s=this;this.opts[t],this.conf[t],o[e].glbl,this.bind("initPanels",function(e){this.__refactorClass(o("input",e),this.conf.classNames[t].toggle,"toggle"),this.__refactorClass(o("input",e),this.conf.classNames[t].check,"check"),o("input."+a.toggle+", input."+a.check,e).each(function(){var e=o(this),t=e.closest("li"),n=e.hasClass(a.toggle)?"toggle":"check",i=e.attr("id")||s.__getUniqueId();t.children('label[for="'+i+'"]').length||(e.attr("id",i),t.prepend(e),o('<label for="'+i+'" class="'+a[n]+'"></label>').insertBefore(t.children("a, span").last()))})})},add:function(){a=o[e]._c,o[e]._d,o[e]._e,a.add("toggle check")},clickAnchor:function(e,t){}},o[e].configuration.classNames[t]={toggle:"Toggle",check:"Check"}}(jQuery),function(e){var t,s,n,i=navigator.userAgent;function o(e){var t,n,i=e.parentNode;"PICTURE"===i.nodeName.toUpperCase()?(t=s.cloneNode(),i.insertBefore(t,i.firstElementChild),setTimeout(function(){i.removeChild(t)})):(!e._pfLastSize||e.offsetWidth>e._pfLastSize)&&(e._pfLastSize=e.offsetWidth,n=e.sizes,e.sizes+=",100vw",setTimeout(function(){e.sizes=n}))}function a(){var e,t=document.querySelectorAll("picture > img, img[srcset][sizes]");for(e=0;e<t.length;e++)o(t[e])}function r(){clearTimeout(t),t=setTimeout(a,99)}function l(){r(),n&&n.addListener&&n.addListener(r)}e.HTMLPictureElement&&/ecko/.test(i)&&i.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",(s=document.createElement("source"),n=e.matchMedia&&matchMedia("(orientation: landscape)"),s.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?l():document.addEventListener("DOMContentLoaded",l),r))}(window),function(e,o,c){"use strict";function d(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function x(e,t){return e.res-t.res}function C(e,t){var n,i,s;if(e&&t)for(s=z.parseSet(t),e=z.makeUrl(e),n=0;n<s.length;n++)if(e===z.makeUrl(s[n].url)){i=s[n];break}return i}function n(e){var t,n,i,s,o,a,r,l=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,c=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(i=(n=function(e){function t(){s&&(o.push(s),s="")}function n(){o[0]&&(a.push(o),o=[])}for(var i,s="",o=[],a=[],r=0,l=0,c=!1;;){if(""===(i=e.charAt(l)))return t(),n(),a;if(c){if("*"===i&&"/"===e[l+1]){c=!1,l+=2,t();continue}l+=1}else{if(d(i)){if(e.charAt(l-1)&&d(e.charAt(l-1))||!s){l+=1;continue}if(0===r){t(),l+=1;continue}i=" "}else if("("===i)r+=1;else if(")"===i)--r;else{if(","===i){t(),n(),l+=1;continue}if("/"===i&&"*"===e.charAt(l+1)){c=!0,l+=2;continue}}s+=i,l+=1}}}(e)).length,t=0;t<i;t++)if(o=(s=n[t])[s.length-1],r=o,l.test(r)&&0<=parseFloat(r)||c.test(r)||"0"===r||"-0"===r||"+0"===r){if(a=o,s.pop(),0===s.length)return a;if(s=s.join(" "),z.matchesMedia(s))return a}return"100vw"}o.createElement("picture");function t(){}function i(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i||!1):e.attachEvent&&e.attachEvent("on"+t,n)}function s(t){var n={};return function(e){return e in n||(n[e]=t(e)),n[e]}}function S(e,t){return e.w?(e.cWidth=z.calcListLength(t||"100vw"),e.res=e.w/e.cWidth):e.res=e.d,e}var a,u,l,r,h,p,f,m,g,v,_,b,y,w,$,k,T,A,P,E,I,z={},M=!1,j=o.createElement("img"),q=j.getAttribute,D=j.setAttribute,L=j.removeAttribute,N=o.documentElement,O={},F={algorithm:""},H="data-pfsrc",B=H+"set",R=navigator.userAgent,Q=/rident/.test(R)||/ecko/.test(R)&&R.match(/rv\:(\d+)/)&&35<RegExp.$1,U="currentSrc",W=/\s+\+?\d+(e\d+)?w/,Z=/(\([^)]+\))?\s*(.+)/,V=e.picturefillCFG,Y="font-size:100%!important;",G=!0,X={},K={},J=e.devicePixelRatio,ee={px:1,in:96},te=o.createElement("a"),ne=!1,ie=/^[ \t\n\r\u000c]+/,se=/^[, \t\n\r\u000c]+/,oe=/^[^ \t\n\r\u000c]+/,ae=/[,]+$/,re=/^\d+$/,le=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,ce=(r=/^([\d\.]+)(em|vw|px)$/,h=s(function(e){return"return "+function(){for(var e=arguments,t=0,n=e[0];++t in e;)n=n.replace(e[t],e[++t]);return n}((e||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"}),function(e,t){var n;if(!(e in X))if(X[e]=!1,t&&(n=e.match(r)))X[e]=n[1]*ee[n[2]];else try{X[e]=new Function("e",h(e))(ee)}catch(e){}return X[e]}),de=function(e){if(M){var t,n,i,s=e||{};if(s.elements&&1===s.elements.nodeType&&("IMG"===s.elements.nodeName.toUpperCase()?s.elements=[s.elements]:(s.context=s.elements,s.elements=null)),i=(t=s.elements||z.qsa(s.context||o,s.reevaluate||s.reselect?z.sel:z.selShort)).length){for(z.setupRun(s),ne=!0,n=0;n<i;n++)z.fillImg(t[n],s);z.teardownRun(s)}}};function ue(){2===T.width&&(z.supSizes=!0),u=z.supSrcset&&!z.supSizes,M=!0,setTimeout(de)}e.console&&console.warn,U in j||(U="src"),O["image/jpeg"]=!0,O["image/gif"]=!0,O["image/png"]=!0,O["image/svg+xml"]=o.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),z.ns=("pf"+(new Date).getTime()).substr(0,9),z.supSrcset="srcset"in j,z.supSizes="sizes"in j,z.supPicture=!!e.HTMLPictureElement,z.supSrcset&&z.supPicture&&!z.
1supSizes&&(A=o.createElement("img"),j.srcset="data:,a",A.src="data:,a",z.supSrcset=j.complete===A.complete,z.supPicture=z.supSrcset&&z.supPicture),z.supSrcset&&!z.supSizes?(k="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",(T=o.createElement("img")).onload=ue,T.onerror=ue,T.setAttribute("sizes","9px"),T.srcset=k+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 9w",T.src=k):M=!0,z.selShort="picture>img,img[srcset]",z.sel=z.selShort,z.cfg=F,z.DPR=J||1,z.u=ee,z.types=O,z.setSize=t,z.makeUrl=s(function(e){return te.href=e,te.href}),z.qsa=function(e,t){return"querySelector"in e?e.querySelectorAll(t):[]},z.matchesMedia=function(){return e.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?z.matchesMedia=function(e){return!e||matchMedia(e).matches}:z.matchesMedia=z.mMQ,z.matchesMedia.apply(this,arguments)},z.mMQ=function(e){return!e||ce(e)},z.calcLength=function(e){var t=ce(e,!0)||!1;return t<0&&(t=!1),t},z.supportsType=function(e){return!e||O[e]},z.parseSize=s(function(e){var t=(e||"").match(Z);return{media:t&&t[1],length:t&&t[2]}}),z.parseSet=function(e){return e.cands||(e.cands=function(i,u){function e(e){var t,n=e.exec(i.substring(l));return n?(t=n[0],l+=t.length,t):void 0}function t(){var e,t,n,i,s,o,a,r,l,c=!1,d={};for(i=0;i<p.length;i++)o=(s=p[i])[s.length-1],a=s.substring(0,s.length-1),r=parseInt(a,10),l=parseFloat(a),re.test(a)&&"w"===o?((e||t)&&(c=!0),0===r?c=!0:e=r):le.test(a)&&"x"===o?((e||t||n)&&(c=!0),l<0?c=!0:t=l):re.test(a)&&"h"===o?((n||t)&&(c=!0),0===r?c=!0:n=r):c=!0;c||(d.url=h,e&&(d.w=e),t&&(d.d=t),n&&(d.h=n),n||t||e||(d.d=1),1===d.d&&(u.has1x=!0),d.set=u,f.push(d))}function n(){for(e(ie),s="",o="in descriptor";;){if(a=i.charAt(l),"in descriptor"===o)if(d(a))s&&(p.push(s),s="",o="after descriptor");else{if(","===a)return l+=1,s&&p.push(s),void t();if("("===a)s+=a,o="in parens";else{if(""===a)return s&&p.push(s),void t();s+=a}}else if("in parens"===o)if(")"===a)s+=a,o="in descriptor";else{if(""===a)return p.push(s),void t();s+=a}else if("after descriptor"===o&&!d(a)){if(""===a)return void t();o="in descriptor",--l}l+=1}}for(var h,p,s,o,a,r=i.length,l=0,f=[];;){if(e(se),r<=l)return f;h=e(oe),p=[],","===h.slice(-1)?(h=h.replace(ae,""),t()):n()}}(e.srcset,e)),e.cands},z.getEmValue=function(){var e;if(!a&&(e=o.body)){var t=o.createElement("div"),n=N.style.cssText,i=e.style.cssText;t.style.cssText="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",N.style.cssText=Y,e.style.cssText=Y,e.appendChild(t),a=t.offsetWidth,e.removeChild(t),a=parseFloat(a,10),N.style.cssText=n,e.style.cssText=i}return a||16},z.calcListLength=function(e){if(!(e in K)||F.uT){var t=z.calcLength(n(e));K[e]=t||ee.width}return K[e]},z.setRes=function(e){var t;if(e)for(var n=0,i=(t=z.parseSet(e)).length;n<i;n++)S(t[n],e.sizes);return t},z.setRes.res=S,z.applySetCandidate=function(e,t){if(e.length){var n,i,s,o,a,r,l,c,d,u=t[z.ns],h=z.DPR;if(r=u.curSrc||t[U],(l=u.curCan||(b=t,y=r,!(w=e[0].set)&&y&&(w=(w=b[z.ns].sets)&&w[w.length-1]),($=C(y,w))&&(y=z.makeUrl(y),b[z.ns].curSrc=y,(b[z.ns].curCan=$).res||S($,$.set.sizes)),$))&&l.set===e[0].set&&((d=Q&&!t.complete&&l.res-.1>h)||(l.cached=!0,l.res>=h&&(a=l))),!a)for(e.sort(x),a=e[(o=e.length)-1],i=0;i<o;i++)if((n=e[i]).res>=h){a=e[s=i-1]&&(d||r!==z.makeUrl(n.url))&&(p=e[s].res,f=n.res,m=h,g=e[s].cached,_=v=void 0,m<("saveData"===F.algorithm?2.7<p?m+1:(_=(f-m)*(v=Math.pow(p-.6,1.5)),g&&(_+=.1*v),p+_):1<m?Math.sqrt(p*f):p))?e[s]:n;break}a&&(c=z.makeUrl(a.url),u.curSrc=c,u.curCan=a,c!==r&&z.setSrc(t,a),z.setSize(t))}var p,f,m,g,v,_,b,y,w,$},z.setSrc=function(e,t){var n;e.src=t.url,"image/svg+xml"===t.set.type&&(n=e.style.width,e.style.width=e.offsetWidth+1+"px",e.offsetWidth+1&&(e.style.width=n))},z.getSet=function(e){var t,n,i,s=!1,o=e[z.ns].sets;for(t=0;t<o.length&&!s;t++)if((n=o[t]).srcset&&z.matchesMedia(n.media)&&(i=z.supportsType(n.type))){"pending"===i&&(n=i),s=n;break}return s},z.parseSets=function(e,t,n){var i,s,o,a,r=t&&"PICTURE"===t.nodeName.toUpperCase(),l=e[z.ns];l.src!==c&&!n.src||(l.src=q.call(e,"src"),l.src?D.call(e,H,l.src):L.call(e,H)),l.srcset!==c&&!n.srcset&&z.supSrcset&&!e.srcset||(i=q.call(e,"srcset"),l.srcset=i,a=!0),l.sets=[],r&&(l.pic=!0,function(e,t){var n,i,s,o,a=e.getElementsByTagName("source");for(n=0,i=a.length;n<i;n++)(s=a[n])[z.ns]=!0,(o=s.getAttribute("srcset"))&&t.push({srcset:o,media:s.getAttribute("media"),type:s.getAttribute("type"),sizes:s.getAttribute("sizes")})}(t,l.sets)),l.srcset?(s={srcset:l.srcset,sizes:q.call(e,"sizes")}
1,l.sets.push(s),(o=(u||l.src)&&W.test(l.srcset||""))||!l.src||C(l.src,s)||s.has1x||(s.srcset+=", "+l.src,s.cands.push({url:l.src,d:1,set:s}))):l.src&&l.sets.push({srcset:l.src,sizes:null}),l.curCan=null,l.curSrc=c,l.supported=!(r||s&&!z.supSrcset||o&&!z.supSizes),a&&z.supSrcset&&!l.supported&&(i?(D.call(e,B,i),e.srcset=""):L.call(e,B)),l.supported&&!l.srcset&&(!l.src&&e.src||e.src!==z.makeUrl(l.src))&&(null===l.src?e.removeAttribute("src"):e.src=l.src),l.parsed=!0},z.fillImg=function(e,t){var n,i,s,o,a,r=t.reselect||t.reevaluate;e[z.ns]||(e[z.ns]={}),n=e[z.ns],!r&&n.evaled===l||(n.parsed&&!t.reevaluate||z.parseSets(e,e.parentNode,t),n.supported?n.evaled=l:(i=e,o=z.getSet(i),a=!1,"pending"!==o&&(a=l,o&&(s=z.setRes(o),z.applySetCandidate(s,i))),i[z.ns].evaled=a))},z.setupRun=function(){ne&&!G&&J===e.devicePixelRatio||(G=!1,J=e.devicePixelRatio,X={},K={},z.DPR=J||1,ee.width=Math.max(e.innerWidth||0,N.clientWidth),ee.height=Math.max(e.innerHeight||0,N.clientHeight),ee.vw=ee.width/100,ee.vh=ee.height/100,l=[ee.height,ee.width,J].join("-"),ee.em=z.getEmValue(),ee.rem=ee.em)},z.supPicture?(de=t,z.fillImg=t):(b=e.attachEvent?/d$|^c/:/d$|^c|^i/,y=function(){var e=o.readyState||"";w=setTimeout(y,"loading"===e?200:999),o.body&&(z.fillImgs(),(p=p||b.test(e))&&clearTimeout(w))},w=setTimeout(y,o.body?9:99),$=N.clientHeight,i(e,"resize",(f=function(){G=Math.max(e.innerWidth||0,N.clientWidth)!==ee.width||N.clientHeight!==$,$=N.clientHeight,G&&z.fillImgs()},m=99,_=function(){var e=new Date-v;e<m?g=setTimeout(_,m-e):(g=null,f())},function(){v=new Date,g=g||setTimeout(_,m)})),i(o,"readystatechange",y)),z.picturefill=de,z.fillImgs=de,z.teardownRun=t,de._=z,e.picturefillCFG={pf:z,push:function(e){var t=e.shift();"function"==typeof z[t]?z[t].apply(z,e):(F[t]=e[0],ne&&z.fillImgs({reselect:!0}))}};for(;V&&V.length;)e.picturefillCFG.push(V.shift());e.picturefill=de,"object"==typeof module&&"object"==typeof module.exports?module.exports=de:"function"==typeof define&&define.amd&&define("picturefill",function(){return de}),z.supPicture||(O["image/webp"]=(P="image/webp",E="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",(I=new e.Image).onerror=function(){O[P]=!1,de()},I.onload=function(){O[P]=1===I.width,de()},I.src=E,"pending"))}(window,document);var headroomElem=document.querySelector(".-js-headroom"),headroom=new Headroom(headroomElem,{offset:205,tolerance:5,classes:{initial:"headroom",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top"}});function calculatorRecalculate(){var e=0,t=0,n=0,i=0;if(0==$("#calculator_totals").is(":hidden")&&$("#calculator_totals > tbody > tr").each(function(){0<$(this).find(".row_total").length&&(td=$(this).find(".row_total"),e+=parseFloat($(this).find(".row_total:visible").data("rowtotal")),t+=parseFloat($(this).find(".row_total:visible").data("rowtotal")))}),0==$("#calculator_ancillary_products").is(":hidden")&&$("#calculator_ancillary_products > tbody > tr").each(function(){0<$(this).find(".row_total").length&&(td=$(this).find(".row_total"),e+=parseFloat($(this).find(".row_total:visible").data("rowtotal")),n+=parseFloat($(this).find(".row_total:visible").data("rowtotal")))}),0==$("#calculator_gutter_products").is(":hidden")&&$("#calculator_gutter_products > tbody > tr").each(function(){0<$(this).find(".row_total").length&&(td=$(this).find(".row_total"),e+=parseFloat($(this).find(".row_total:visible").data("rowtotal")),i+=parseFloat($(this).find(".row_total:visible").data("rowtotal")))}),0==$("#calculator_project_management").is(":hidden")&&$("#calculator_project_management > tbody > tr").each(function(){0<$(this).find(".row_total").length&&(td=$(this).find(".row_total"),e+=parseFloat($(this).find(".row_total:visible").data("rowtotal")))}),$("#system_total").html(t.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"gbp"})),$("#roof_total").val(t.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"gbp"}
1)),$("#ancillary_total").val(n.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"gbp"})),$("#ancillary_total_div").html(n.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"gbp"})),$("#gutter_total").val(i.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"gbp"})),$("#gutter_total_div").html(i.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"gbp"})),$("#calculator_total, #project_total").html(e.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"gbp"})),$("#project_total").val(e.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"gbp"})),$("#system_type_seamsil_cut_edge_corrosion_system:checked").val())var s=$("#treatment").val();else s=$("#sqm_to_be_coated").val();var o=parseFloat(e/s)||0;"Infinity"==o&&(o=0),$("#calculator_perline").data("perline",o.toFixed(2)),$("#calculator_perline, #per_linear").html(o.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"gbp"})),$("#per_linear").val(o.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"gbp"}))}function triggerToggles(){$("#system_type_seamsil_cut_edge_corrosion_system").is(":checked")?($(".delcote_options").hide(),$("#roof_substrate_selection").hide(),"Yes"==$("#corrugation_allowed").val()?$("#overlap_endlap_img").attr("src","/wp-content/themes/basetheme/calculator/images/diagram_overlap_crooked.png?v=12"):$("#overlap_endlap_img").attr("src","/wp-content/themes/basetheme/calculator/images/diagram_overlap.png?v=12"),$("#delcote_img").attr("src","/wp-content/themes/basetheme/calculator/images/diagram_delcote.png?v=12"),$("#seamsil_colours").show(),$(".seamsil_colour_options").show()):($(".delglaze_selection").hide(),$(".delcote_options").show(),$("#roof_substrate_selection").show(),$("#seamsil_colours").hide(),$(".seamsil_colour_options").hide(),$("#colour_option").val("Goosewing Grey")),"Special Colour"==$("#colour_option").val()?$(".special_colour_message").show():$(".special_colour_message").hide(),"Special"==$("#topcoat_colour").val()?$(".topcoat_special_colour_message").show():$(".topcoat_special_colour_message").hide(),"Standard"==$("#topcoat_colour").val()?$("#delcote_standard_colours").show():$("#delcote_standard_colours").hide(),$("#roof_substrate_fibre_cement:checked").val()&&$("#system_type_delcote_full_roof_coating_system:checked").val()?($(".end_lap_treatment_lm, .top_bottom_sheet_corrosion").hide(),$("#overlap_endlap_img").attr("src","/wp-content/themes/basetheme/calculator/images/diagram_no_endlap_concrete.png?v=12"),$("#delcote_img").attr("src","/wp-content/themes/basetheme/calculator/images/diagram_concrete.png?v=12"),$("#delcote_delgalze_image").attr("src","/wp-content/themes/basetheme/calculator/images/delcote_fibre_cement.png?v=12"),$("#overlap_text").html("Set your overlap treatment length")):($(".end_lap_treatment_lm, .top_bottom_sheet_corrosion").show(),"Yes"==$("#corrugation_allowed").val()?$("#overlap_endlap_img").attr("src","/wp-content/themes/basetheme/calculator/images/diagram_overlap_crooked.png?v=12"):$("#overlap_endlap_img").attr("src","/wp-content/themes/basetheme/calculator/images/diagram_overlap.png?v=12"),$("#delcote_img").attr("src","/wp-content/themes/basetheme/calculator/images/diagram_delcote.png?v=12"),$("#delcote_delgalze_image").attr("src","/wp-content/themes/basetheme/calculator/images/diagram_delcote_delglaze.png?v=12"),$("#overlap_text").html("Set your overlap and end lap treatment length")),"No"==$("#corrugation_allowed").val()?$(".allowance_option").show():$(".allowance_option").hide(),"No"==$("#cement_corrugation_allowed").val()?$(".cement_allowance_option").show():$(".cement_allowance_option").hide(),"No"==$("#add_allowance").val()?$("#allowance_warning").show():$("#allowance_warning").hide(),"Yes"==$("#coat_the_bolts").val()?$(".bolts_options").show():$(".bolts_options").hide(),$("#delglaze_selection:checked").val()&&$("#system_type_seamsil_cut_edge_corrosion_system").is(":checked")?$(".delglaze_options").show():$(".delglaze_options").hide(),$("#calculator_type_roof_only").is(":checked")?($(".g-hide, .overlap-treatment, .roof-system").show(),$("#gutters_selection").val("false")):$("#calculator_type_gutter_only").is(":checked")?($(".g-hide, .calculator-section, .roof_substrate_selection, .roof-system, .overlap-treatment, .top_bottom_sheet_corrosion").hide(),$("#gutters_selection").val("true"),$(".gutters_options, .calculate-btn").show()):$("#calculator_type_roof_and_gutter").is(":checked")&&($(".g-hide, .overlap-treatment, .calculator-selects, .roof-system").show(),$("#gutters_selection").val("true")),"true"==$("#gutters_selection").val()?$("#gutter_type, .gutter_options").show():$("#gutter_type, #gutter_plygene_type, .gutter_options").hide(),$("#gutter_type_plygene").is(":checked")?($("#gutter_plygene_type").show(),$(".delcote-gs").hide()):($("#gutter_plygene_type").hide(),$(".delcote-gs").show()),$("#system_type_seamsil_cut_edge_corrosion_system").is(":checked")?$(".delglaze_selection").show():$(".delglaze_selection").hide(),$("#quote_type_quick_budget_quote").is(":checked")?($("#delcote_microns_override_options").hide(),$(".fibre_cement_options").hide(),$("#calculator_type_roof_only").is(":checked")&&($(".roof-advance").hide(),$(".roof-basic").show(),$("#roof_substrate_fibre_cement:checked").val()&&$("#system_type_delcote_full_roof_coating_system:checked").val()?($(".overlap-treatment").hide(),$(".fibre_cement_basic").show()):($(".overlap-treatment").show(),$(".fibre_cement_basic").hide()),$("#system_type_delcote_full_roof_coating_system:checked").val()?$(".delcote-fixings").show():$(".delcote-fixings").hide()),$("#calculator_type_gutter_only").is(":checked")&&($(".gutter-advance").hide(),$(".roof-basic").show()),$("#calculator_type_roof_and_gutter").is(":checked")&&($(".roof-advance, .gutter-advance").hide(),$(".roof-basic").show(),$("#roof_substrate_fibre_cement:checked").val()&&$("#system_type_delcote_full_roof_coating_system:checked").val()?($(".overlap-treatment").hide(),$(".fibre_cement_basic").show()):($(".overlap-treatment").show(),$(".fibre_cement_basic").hide()),$("#system_type_delcote_full_roof_coating_system:checked").val()?$(".delcote-fixings").show():$(".delcote-fixings").hide())):($("#delcote_microns_override_options").show(),$(".fibre_cement_basic").hide(),$("#calculator_type_roof_only").is(":checked")&&($(".roof-advance").show(),$(".roof-basic").hide()),$("#calculator_type_gutter_only").is(":checked")&&($(".gutter-advance").show(),$(".roof-basic").hide(),$(".overlap-treatment, .top_bottom_sheet_corrosion").hide()),$("#calculator_type_roof_and_gutter").is(":checked")&&($("#gutter_type_plygene").is(":not(:checked)")&&$(".gutter-advance").show(),$(".roof-advance").show(),$(".roof-basic").hide()),$("#gutter_type_plygene").is(":checked")&&$(".gutter-advance").hide(),($("#calculator_type_roof_and_gutter").is(":checked")||$("#calculator_type_roof_only").is(":checked"))&&($("#roof_substrate_fibre_cement:checked").val()&&$("#system_type_delcote_full_roof_coating_system:checked").val()?($(".overlap-treatment, .top_bottom_sheet_corrosion").hide(),$(".fibre_cement_options").show(),$(".carryover-message").hide(),$(".delcote-fixings").show()):($(".overlap-treatment, .top_bottom_sheet_corrosion").show(),$(".fibre_cement_options").hide(),$("#system_type_seamsil_cut_edge_corrosion_system").is(":checked")?($("#seamsil_colours").show(),$(".bolts_question").hide(),$(".bolts_options").hide()):($("#seamsil_colours").hide(),$(".bolts_question").show(),$(".bolts_options").show()),$(".carryover-message").show(),$(".delcote-fixings").hide()))),$(".guarantee_checkbox").click(function(){updateGuarantees()}),updateGuarantees()}function updateGuarantees(){$(".guarantee_option").hide(),($("#calculator_type_roof_only").is(":checked")||$("#calculator_type_roof_and_gutter").is(":checked"))&&$("#system_type_seamsil_cut_edge_corrosion_system").is(":checked")&&$(".guarantee_seamsil").show(),($("#calculator_type_roof_only").is(":checked")||$("#calculator_type_roof_and_gutter").is(":checked"))&&$("#system_type_delcote_full_roof_coating_system").is(":checked")&&($(".guarantee_delcote").show(),1e3<=$("#roof_sqm").val()&&$("#roof_substrate_metal").is(":checked")?($("#delcote_singlepoint_msg").hide(),$("#delcote_singlepoint_option").show(),$(".single_point_options > .guarantee_delcote > .guarantee_selection").show(),$("#delcote_singlepoint_cement_msg").hide()):($("#roof_substrate_metal").is(":checked")?($("#delcote_singlepoint_msg").show(),$("#delcote_singlepoint_cement_msg").hide(),$("#delcote_singlepoint_option").hide(),$(".single_point_options > .guarantee_delcote > .guarantee_selection").show()):($("#delcote_singlepoint_msg").hide(),$(".single_point_options > .guarantee_delcote > .guarantee_selection").hide(),$("#delcote_singlepoint_cement_msg").show(),$("#delcote_singlepoint_option").hide()),$("#delcote_product_option").prop("checked",!0))),($("#calculator_type_roof_only").is(":checked")||$("#calculator_type_roof_and_gutter").is(":checked"))&&($("#system_type_seamsil_cut_edge_corrosion_system").is(":checked")&&$("#delglaze_selection").is(":checked")||$("#system_type_delcote_full_roof_coating_system").is(":checked")&&$("#delcote_delglaze_selection").is(":checked"))?$(".guarantee_delglaze").show():$(".guarantee_delglaze").hide(),($("#calculator_type_gutter_only").is(":checked")||$("#calculator_type_roof_and_gutter").is(":checked"))&&$("#gutter_type_plygene").is(":checked")&&($(".guarantee_plygene").show(),350<=$("#gutter_length").val()*($("#gutter_width").val()/1e3)?($("#plygene_singlepoint_msg").hide(),$("#plygene_singlepoint_holder").show()):($("#plygene_singlepoint_msg").show(),$("#plygene_singlepoint_holder").hide(),$("#plygene_product_option").prop("checked",!0))),($("#calculator_type_gutter_only").is(":checked")||$("#calculator_type_roof_and_gutter").is(":checked"))&&$("#gutter_type_delcote_gs").is(":checked")&&$(".guarantee_delcotegs").show(),$(".guarantee_checkbox").each(function(){$(this).is(":checked")?$(this).parent().addClass("selected"):$(this).parent().removeClass("selected")})}function delcoteGuaranteeCheck(){$("#calculator_type_gutter_only").is(":not(:checked)")&&$("#system_type_delcote_full_roof_coating_system").is(":checked")&&$("#roof_substrate_metal").is(":checked")&&$("#roof_sqm").val()}function projectManagementCheck(){($("#calculator_type_gutter_only").is(":not(:checked)")&&$("#system_type_delcote_full_roof_coating_system").is(":checked")&&$("#roof_substrate_metal").is(":checked")||$("#gutter_type_plygene").is(":checked"))&&(($("#calculator_type_roof_only").is(":checked")||$("#calculator_type_roof_and_gutter").is(":checked"))&&1e3<=$("#roof_sqm").val()||($("#calculator_type_gutter_only").is(":checked")||$("#calculator_type_roof_and_gutter").is(":checked"))&&350<=$("#gutter_length").val()*($("#gutter_width").val()/1e3))?$(".project_management").show():($("#project_management").prop("checked",!1),$(".project_management").hide())}headroom.init(),$(document).ready(function(){var t;!function(){Modernizr.mq("only screen and (max-width: 667px)");Modernizr.mq("only screen and (max-width: 1024px)")}(),function(){Modernizr.mq("only screen and (min-width: 768px)");Modernizr.mq("only screen and (min-width: 768px) and (max-width: 1024px)")&&Modernizr.touch&&$(document).on({touchend:function(e){$(".dropdown-menu-container").is(":visible")}});Modernizr.mq("only screen and (min-width: 1024px)")}(),$(window).on("resize",function(e){clearTimeout(t),t=setTimeout(function(){},250)}),$("#mobile-menu").mmenu({extensions:["pagedim-black"],offCanvas:{position:"right"},setSelected:{current:"detect"},searchfield:{panel:!0},navbars:[{content:["searchfield"]}],onClick:{preventDefault:function(){return!!$(this).hasClass("js--remove-link")}}}
1),$(".document-menu-toggle").click(function(e){e.preventDefault(),$("#mobile-menu").data("mmenu").open()});var s=$(".lights");if($(".search-box__button").length){var n=$(".search-box__button"),i=$(".search-box__expandable-holder");n.on("click",function(){$(this).toggleClass("active"),i.toggleClass("expanded")}),$(document).click(function(e){$(e.target).closest(".search-box").length||n.hasClass("active")&&(n.toggleClass("active"),i.toggleClass("expanded"))})}var e=null;if($(document).on("keyup","#search",function(){var t=$("#search-loading"),n=$("#search-results"),i=($(".lights"),$("#search").val());null!==e&&clearTimeout(e),e=setTimeout(function(){var e;t.fadeIn(300),n.addClass("out"),e=i,$.ajax({type:"GET",url:"/wp-content/themes/basetheme/partials/search-ajax.php?term="+e,dataType:"html",success:function(e){$("#search-loading").fadeOut(300),$("#search-results").html(e)}})},500)}),$(".resources-module__toggle").on("click",function(e){e.preventDefault();var t=$(this),n=$(this).attr("data-row-id"),i=$("#resource-row-id-"+n);t.hasClass("active")?(t.removeClass("active"),i.slideUp(300)):($(".resources-module__toggle").removeClass("active"),$(".resources-module__content").slideUp(300),t.addClass("active"),i.slideDown(300))}),$(".toggle__panel").on("click",function(e){e.preventDefault();$('.cta-panel').show();$('.cta-panel.open').hide();var t=$(this),n=t.attr("href").split("#")[1],i=$("#"+n);i.hasClass("open")?(i.removeClass("open"),t.removeClass("active"),s.removeClass("out"),$("body").removeClass("noscroll")):($(".panel__wrapper.open").removeClass("open"),$(".toggle__panel.active").removeClass("active"),t.addClass("active"),i.addClass("open"),s.addClass("out"),$("body").addClass("noscroll"),i.is("#panel__search")&&$(".search-form__input").focus())}),s.on("click",function(e){$(".panel__wrapper.open").removeClass("open"),$(".toggle__panel.active").removeClass("active"),s.removeClass("out"),$("body").removeClass("noscroll")}),$("#gform_2").length){var o=document.getElementById("gform_2");new stepsForm(o,{onSubmit:function(e){classie.addClass(o.querySelector(".gform_body"),"hide"),classie.addClass(o.querySelector(".controls"),"hide"),o.submit()}})}function a(e){"Close"==e?(Cookies.set("cpd-dismiss","true",{expires:10,path:"/"}),$.magnificPopup.instance.close()):"Book"==e&&Cookies.set("cpd-dismiss","true",{expires:365,path:"/"})}function r(e,t,n){$("."+e).hover(function(){$("#"+n).is(":not(:checked)")?$(this).attr("src","/wp-content/themes/basetheme/calculator/images/"+t+"_hover.png?v=15"):$(this).attr("src","/wp-content/themes/basetheme/calculator/images/"+t+"_selected.png?v=15")},function(){$("#"+n).is(":not(:checked)")?$(this).attr("src","/wp-content/themes/basetheme/calculator/images/"+t+".png?v=15"):$(this).attr("src","/wp-content/themes/basetheme/calculator/images/"+t+"_selected.png?v=15")})}function l(){$(".calculator-section").removeClass("hidden")}$("#gform_submit_button_4").click(function(e){var t,n=$("#input_4_1").val(),i=$("#newsletter-tooltip");i.removeClass("invalid"),i.css("visibility","hidden"),""==n?(e.preventDefault(),i.css("visibility","visible")):/^[a-z0-9]+([-._][a-z0-9]+)*@([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,4}$/.test(t=n)&&/^(?=.{1,64}@.{4,64}$)(?=.{6,100}$).*/.test(t)?$("#gform_4").submit():(e.preventDefault(),i.addClass("invalid"),i.css("visibility","visible"))}),$(document).on("click",function(e){}),$(".bx-slider.slider-header").bxSlider({touchEnabled:!0,swipeThreshold:80,oneToOneTouch:!1,adaptiveHeight:!0,preloadImages:"all",onSliderLoad:function(){jQuery(".slider-header-container.active-slider").css("visibility","visible")}}),$(".bx-slider.feature-slider").bxSlider({nextText:'<i class="icon icon-angle-right"></i>',prevText:'<i class="icon icon-angle-left"></i>',touchEnabled:!0,swipeThreshold:80,oneToOneTouch:!1,adaptiveHeight:!0,preloadImages:"visible",infiniteLoop:!0,hideControlOnEnd:!0,video:!0,auto:!0,pause:5e3,onSliderLoad:function(){jQuery(".feature-slider-container").css("visibility","visible")}}),Modernizr.mq("only screen and (min-width: 768px) and (max-width: 1024px)")?$(".bx-slider.three-column-slider").bxSlider({nextText:'<i class="icon icon-angle-right"></i>',prevText:'<i class="icon icon-angle-left"></i>
1',touchEnabled:!0,minSlides:1,maxSlides:3,slideWidth:344,infiniteLoop:!1,pager:!1,oneToOneTouch:!1,preloadImages:"all",hideControlOnEnd:!0,onSliderLoad:function(){jQuery(".column-slider-container").css("visibility","visible")}}):$(".bx-slider.three-column-slider").bxSlider({nextText:'<i class="icon icon-angle-right"></i>',prevText:'<i class="icon icon-angle-left"></i>',touchEnabled:!0,minSlides:1,maxSlides:3,slideWidth:390,infiniteLoop:!1,pager:!1,oneToOneTouch:!1,preloadImages:"all",hideControlOnEnd:!0,onSliderLoad:function(){jQuery(".column-slider-container").css("visibility","visible")}}),$(".document-img__trigger").trigger("click"),$("body").on("click",".document-img__trigger",function(){var e=$(this).find("img").attr("src");$("#document-fullscreen__img").attr("src",e),$(this).magnificPopup({type:"inline",midClick:!0,callbacks:{open:function(){$(".document-zoomer__image").smartZoom({containerClass:"document-zoomer__canvas",mouseEnabled:!0,scrollEnabled:!0,dblClickEnabled:!0,mouseMoveEnabled:!0,moveCursorEnabled:!0,touchEnabled:!0,dblTapEnabled:!0,pinchEnabled:!0,touchMoveEnabled:!0})}}}).magnificPopup("open")}),$("body").on("click",".zoomInButton",function(){$(".document-zoomer__image").smartZoom("zoom",.8)}),$("body").on("click",".zoomOutButton",function(){$(".document-zoomer__image").smartZoom("zoom",-.8)}),$("body").on("click","#document-fullscreen .mfp-close",function(){$(".document-zoomer__image").smartZoom("destroy")}),$(':input[type="number"]').keyup(function(){this.value=this.value.replace(/[^0-9\.]/g,"")}),null===Cookies.get("accepted")||void 0===Cookies.get("accepted")?$(".cookie-acceptance-panel").addClass("active"):"true"!=Cookies.get("accepted")&&$(".cookie-acceptance-panel").addClass("active"),$(".clearcookies").click(function(){return $(".cookie-acceptance-panel").remove(),Cookies.set("accepted","true",{expires:365,path:"/"}),!1}),$(".share-bar-button").length&&$(".share-bar-button a").on("click",function(e){e.preventDefault(),$(this).toggleClass("active"),$(".share-bar").toggleClass("open")}),$(".open-popup-link").magnificPopup({type:"inline"}),$(".open-cpd-modal").magnificPopup({type:"inline",midClick:!0,callbacks:{close:function(){a("Close")}}}),$(".image-link").magnificPopup({type:"image"}),setTimeout(function(){$("#cpd-modal").length&&"true"!=Cookies.get("cpd-dismiss")&&$(".open-cpd-modal").trigger("click")},1e4),$("#cpd-modal__dismiss").on("click",function(e){e.preventDefault(),a("Close")}),$("#cpd-modal__book").on("click",function(){a("Book")}
1),$(".document-overview__toggle").click(function(){var e=$(this),t=e.parent().children("ul");e.hasClass("opened")?(e.removeClass("opened"),t.slideUp()):(e.addClass("opened"),t.slideDown())}),$(".document-overview__appendix .js--remove-link").click(function(e){e.preventDefault()}),$(".calculator_price").on("change",function(){var e=$(this).parent(),t=$(this).parent().parent();$(this).data("unique-reference");if(0<$(this).val()){$(e).data("price",$(this).val());var n=parseFloat($(this).val()*$(t).find(".row_qty").data("qty"));$(t).find(".row_total").html(n.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"gbp"})),$(t).find(".row_total").data("rowtotal",n)}else $(t).find(".row_total").html(""),$(t).find(".row_total").data("rowtotal",0);calculatorRecalculate()}),$("#recommended_brush_pack, #recommended_wire_brush_pack, #seamsil_thinner, #isopropyl, #line_cleaner, #delcote_gs_thinner").on("change",function(){var e=$(this).parent().parent();"no"==$(this).val()?($(e).find(".hidden_row_data").show(),$(e).find(".show_row_data").hide()):($(e).find(".hidden_row_data").hide(),$(e).find(".show_row_data").show()),calculatorRecalculate()}),$(".hidden_row_data").hide(),"No"==$("#recommended_brush_pack").find(":selected").text()&&($('tr[data-unique-reference="1BP50P"]').find(".hidden_row_data").show(),$('tr[data-unique-reference="1BP50P"]').find(".show_row_data").hide()),"No"==$("#recommended_wire_brush_pack").find(":selected").text()&&($('tr[data-unique-reference="1WBP50E"]').find(".hidden_row_data").show(),$('tr[data-unique-reference="1WBP50E"]').find(".show_row_data").hide()),"No"==$("#seamsil_thinner").find(":selected").text()&&($('tr[data-unique-reference="ST514T5"]').find(".hidden_row_data").show(),$('tr[data-unique-reference="ST514T5"]').find(".show_row_data").hide()),"No"==$("#isopropyl").find(":selected").text()&&($('tr[data-unique-reference="IA1"]').find(".hidden_row_data").show(),$('tr[data-unique-reference="IA1"]').find(".show_row_data").hide()),"No"==$("#line_cleaner").find(":selected").text()&&($('tr[data-unique-reference="LCT50325"]').find(".hidden_row_data").show(),$('tr[data-unique-reference="LCT50325"]').find(".show_row_data").hide()),"No"==$("#delcote_gs_thinner").find(":selected").text()&&($('tr[data-unique-reference="SGST514"]').find(".hidden_row_data").show(),$('tr[data-unique-reference="SGST514"]').find(".show_row_data").hide()),$("#send_email_breakdown").on("click",function(){return!($(".calculator_price").val()<1&&confirm("You have not entered a custom price for your special colour, please enter one before proceeding"))&&(""==$(".breakdown_email").val()?(alert("Please enter your email address"),!1):""==$(".project_name").val()?(alert("Please enter your project name"),!1):("No"==$("#recommended_brush_pack").find(":selected").text()?$('tr[data-unique-reference="1BP50P"]').find(".show_row_data").remove():$('tr[data-unique-reference="1BP50P"]').find(".shide_row_data").remove(),"No"==$("#recommended_wire_brush_pack").find(":selected").text()?$('tr[data-unique-reference="1WBP50E"]').find(".show_row_data").remove():$('tr[data-unique-reference="1WBP50E"]').find(".hidden_row_data").remove(),"No"==$("#seamsil_thinner").find(":selected").text()?$('tr[data-unique-reference="ST514T5"]').find(".show_row_data").remove():$('tr[data-unique-reference="ST514T5"]').find(".hidden_row_data").remove(),"No"==$("#isopropyl").find(":selected").text()?$('tr[data-unique-reference="IA1"]').find(".show_row_data").remove():$('tr[data-unique-reference="IA1"]').find(".hidden_row_data").remove(),"No"==$("#line_cleaner").find(":selected").text()?$('tr[data-unique-reference="LCT50325"]').find(".show_row_data").remove():$('tr[data-unique-reference="LCT50325"]').find(".hidden_row_data").remove(),void("No"==$("#delcote_gs_thinner").find(":selected").text()?$('tr[data-unique-reference="SGST514"]').find(".show_row_data").remove():$('tr[data-unique-reference="SGST514"]').find(".hidden_row_data").remove())))}
1),$(".calculator_qty").on("change",function(){var e=$(this).parent(),t=$(this).parent().parent(),n=$(this).data("unique-reference");if(0<$(this).val()){$(e).data("qty",$(this).val());var i=parseFloat($(t).find(".row_price").data("price")*$(this).val());$(t).find(".row_total").html(i.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:"gbp"})),$(t).find(".row_total").data("rowtotal",i),$(t).find("#product_"+n+"_quantity").val($(this).val()),$(t).find("#product_"+n+"_total").val(i.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2}))}else $(t).find(".row_total").html(""),$(t).find(".row_total").data("rowtotal",0),$(t).find("#product_"+n+"_quantity").val("0"),$(t).find("#product_"+n+"_total").val("0");calculatorRecalculate()}),$(".delcote_options").hide(),$('input[name="system_type"]').on("change",function(){triggerToggles()}),$(".special_colour_message").hide(),$("#colour_option").on("change",function(){triggerToggles()}),$(".topcoat_special_colour_message").hide(),$("#topcoat_colour").on("change",function(){triggerToggles()}),$(".allowance_option").hide(),$("#corrugation_allowed, #cement_corrugation_allowed").on("change",function(){triggerToggles()}),$('input[name="roof_substrate"]').on("change",function(){triggerToggles()}),$("#allowance_warning").hide(),$("#add_allowance").on("change",function(){triggerToggles()}),$("#coat_the_bolts").on("change",function(){triggerToggles()}),$("#delglaze_selection").on("change",function(){triggerToggles()}),$('input[name="calculator_type"]').on("change",function(){triggerToggles()}),$("#gutter_type").on("change",function(){triggerToggles()}),$('input[name="quote_type"]').on("change",function(){triggerToggles()}),$("#delcote_gs_colour_topcoat").on("change",function(){var n=$(this).val(),i=n;$(this).find("option").each(function(e,t){if(t.value!==n)return i=t.value,!1}),$("#delcote_gs_colour_basecoat").val(i),$("#delcote_gs_colour_basecoat_parent").html(i)}),triggerToggles(),calculatorRecalculate(),updateGuarantees(),$("#roof_sqm, #gutter_length, #gutter_width, #delcote_delglaze_selection, #delglaze_selection").on("change",function(){updateGuarantees()}),$("#seamsil_delglaze_sqm, #delcote_delglaze_sqm").on("change",function(){$("#delglaze_sqm").val($(this).val())}),$("#roof_sqm,#delcote_delglaze_sqm").on("change",function(){var e=($("#roof_sqm").val()||0)-($("#delglaze_sqm").val()||0);0<e?$("#net_sqm").val(e):$("#net_sqm").val(""),$("#net_sqm_text").html(e+" m<sup>2</sup>")}),$("#roof_sqm").trigger("change"),$("#project_management_text").on("click","small > a.plygene-change",function(){$("#gutter_type_plygene").click()}),$(".plygene-upgrade").on("click",function(){$("#plygene_upgrade").val("true"),$("#gutter_type_plygene").click(),$("#calculate_costs").click()}),$(".plygene-downgrade").on("click",function(){$("#plygene_upgrade").val("false"),$("#gutter_type_delcote_gs").click(),$("#calculate_costs").click()}),$("#wastage_per_tin").on("change",function(){$("#yield_per_tin").val(100-$(this).val())}),$("#cement_wastage_per_tin").on("change",function(){$("#cement_yield_per_tin").val(100-$(this).val())}),$("#microns").on("change",function(){$("#over_consumption").val((1/(($(this).val()-220)/220+1)*100).toFixed(2))}),$("#roof_sqm").on("change",function(){if($("#quote_type_advanced_pricing_quote").is(":checked")){var e=$("#roof_sqm").val(),t=Math.ceil(e/60);$("#topcoat_tins_total").val(t)}}),$("#delcote_microns").on("change",function(){$("#delcote_over_consumption").val((1/(($(this).val()-154)/154+1)*100).toFixed(2));var e=1.31*$(this).val();$("#delcote_over_consumption_basecoat").val((1/((e-154)/154+1)*100).toFixed(2))}),$("#requirements").submit(function(e){return $("#quote_type_advanced_pricing_quote").is(":checked")&&$("#calculator_type_gutter_only").is(":not(:checked)")&&$("#roof_substrate_metal").is(":checked")&&$("#wastage_per_tin").val()<1||$("#quote_type_advanced_pricing_quote").is(":checked")&&$("#calculator_type_gutter_only").is(":not(:checked)")&&$("#system_type_delcote_full_roof_coating_system").is(":checked")&&$("#roof_substrate_fibre_cement").is(":checked")&&$("#cement_wastage_per_tin").val()<1?(alert("Wastage factor must be greater than zero"),!1):$("#quote_type_advanced_pricing_quote").is(":checked")&&$("#calculator_type_gutter_only").is(":not(:checked)")&&$("#system_type_seamsil_cut_edge_corrosion_system").is(":checked")&&$("#microns").val()<220?(alert("The site application thickness entered must exceed 220 microns"),!1):$("#quote_type_advanced_pricing_quote").is(":checked")&&$("#calculator_type_gutter_only").is(":not(:checked)")&&$("#system_type_delcote_full_roof_coating_system").is(":checked")&&$("#delcote_microns").val()<154?(alert("The Delcote wet film thickness entered must exceed 154 microns"),!1):($("#calculator_type_roof_and_gutter").is(":checked")||$("#calculator_type_gutter_only").is(":checked")||"true"==$("#gutters_selection").val())&&$("#gutter_type_delcote_gs").is(":not(:checked)")&&$("#gutter_type_plygene").is(":not(:checked)")?(alert("Please select a gutter system"),!1):!(($("#calculator_type_roof_and_gutter").is(":checked")||$("#calculator_type_gutter_only").is(":checked")&&"true"==$("#gutters_selection").val())&&$("#gutter_length").val()<1&&$("#gutter_width").val()<1)||(alert("Gutter length and width must be greater than zero"),!1)}),$(".js--choose-budget").on("click",function(){return $(this).attr("src","/wp-content/themes/basetheme/calculator/images/highlight_quick_budget_selected.png?v=15"),$(".js--choose-advance").attr("src","/wp-content/themes/basetheme/calculator/images/highlight_advance_quote.png?v=15"),$("#quote_type_quick_budget_quote").prop("checked",!0),triggerToggles(),$(".type-options").removeClass("hidden"),!1}),r("js--choose-budget","highlight_quick_budget","quote_type_quick_budget_quote"),$(".js--choose-advance").on("click",function(){if(1==initial_load)initial_load=!1;else if(!confirm("Please note: This calculator is accurate to the micron and all calculations will be based on your customised inputs."))return!1;return $(this).attr("src","/wp-content/themes/basetheme/calculator/images/highlight_advance_quote_selected.png?v=15"),$(".js--choose-budget").attr("src","/wp-content/themes/basetheme/calculator/images/highlight_quick_budget.png?v=15"),$("#quote_type_advanced_pricing_quote").prop("checked",!0),triggerToggles(),$(".type-options").removeClass("hidden"),!1}),r("js--choose-advance","highlight_advance_quote","quote_type_advanced_pricing_quote"),$(".js--choose-roof").on("click",function(){return $(this).attr("src","/wp-content/themes/basetheme/calculator/images/roof_only_selected.png?v=15"),$(".js--choose-gutter").attr("src","/wp-content/themes/basetheme/calculator/images/gutter_only.png?v=15"),$(".js--choose-roof-gutter").attr("src","/wp-content/themes/basetheme/calculator/images/roof_gutter.png?v=15"),$("#calculator_type_roof_only").prop("checked",!0),$(".product_guatantees, .calculate-btn").show(),triggerToggles(),l($(this)),!1}),r("js--choose-roof","roof_only","calculator_type_roof_only"),$(".js--choose-gutter").on("click",function(){return $(this).attr("src","/wp-content/themes/basetheme/calculator/images/gutter_only_selected.png?v=15"),$(".js--choose-roof").attr("src","/wp-content/themes/basetheme/calculator/images/roof_only.png?v=15"),$(".js--choose-roof-gutter").attr("src","/wp-content/themes/basetheme/calculator/images/roof_gutter.png?v=15"),$("#calculator_type_gutter_only").prop("checked",!0),triggerToggles(),l($(this)),!1}),r("js--choose-gutter","gutter_only","calculator_type_gutter_only"),$(".js--choose-roof-gutter").on("click",function(){return $(this).attr("src","/wp-content/themes/basetheme/calculator/images/roof_gutter_selected.png?v=15"),$(".js--choose-roof").attr("src","/wp-content/themes/basetheme/calculator/images/roof_only.png?v=15"),$(".js--choose-gutter").attr("src","/wp-content/themes/basetheme/calculator/images/gutter_only.png?v=15"),$("#calculator_type_roof_and_gutter").prop("checked",!0),$(".product_guatantees, .calculate-btn").show(),triggerToggles(),l($(this)),!1}),r("js--choose-roof-gutter","roof_gutter","calculator_type_roof_and_gutter"),$(".js--choose-plygene").on("click",function(){return $(this).attr("src","/wp-content/themes/basetheme/calculator/images/highlight_plygene_selected.png?v=15"),$(".js--choose-delcotegs").attr("src","/wp-content/themes/basetheme/calculator/images/highlight_delcote_gs.png?v=15"),$("#gutter_type_plygene").prop("checked",!0),$(".gutter-elements, .product_guatantees, .calculate-btn").show(),triggerToggles(),!1}),r("js--choose-plygene","highlight_plygene","gutter_type_plygene"),$(".js--choose-delcotegs").on("click",function(){return $(this).attr("src","/wp-content/themes/basetheme/calculator/images/highlight_delcote_gs_selected.png?v=15"),$(".js--choose-plygene").attr("src","/wp-content/themes/basetheme/calculator/images/highlight_plygene.png?v=15"),$("#gutter_type_delcote_gs").prop("checked",!0),$(".gutter-elements, .product_guatantees, .calculate-btn").show(),triggerToggles(),!1}),r("js--choose-delcotegs","highlight_delcote_gs","gutter_type_delcote_gs"),"undefined"!=typeof calculator_submitted&&("basic"==quote_type?$(".js--choose-budget").trigger("click"):$(".js--choose-advance").trigger("click"),initial_load=!1,"undefined"!=typeof system_type&&("roof_only"==system_type?$(".js--choose-roof").trigger("click"):"gutter_only"==system_type?$(".js--choose-gutter").trigger("click"):$(".js--choose-roof-gutter").trigger("click")),null!=gutter_type&&("delcotegs"==gutter_type?$(".js--choose-delcotegs").trigger("click"):"plygene"==gutter_type&&$(".js--choose-plygene").trigger("click"))),$('iframe[src*="youtube.com"]').each(function(){var e=$
1(this).attr("src");-1!=e.indexOf("?")?e+="&vq=hd1080":e+="?&vq=hd1080",$(this).attr("src",e)}),$(".js--extra-info-trigger").length&&$(".js--extra-info-trigger").on("click",function(){$(this).closest(".js--extra-info").toggleClass("open")}),$("#cement_wastage_per_tin").trigger("change"),$("#wastage_per_tin").trigger("change"),$(".guarantee_selection").on("click",function(){$(this).find("input").prop("checked",!0),updateGuarantees()})}),$(window).scroll(function(){if($(".homepage-learn-more").length){var e=$(".homepage-learn-more"),t=e.offset().top+(e.outerHeight()-90),n=$(document).scrollTop(),i=-1/t;e.css("opacity",Math.max(0,1+i*n))}}),smoothScroll.init();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.