-1}function me(e){return pe(e)?!(Ma.overrides.videoAutoPlay||Ma.overrides.vimeoDefault):!Ma.overrides.videoAutoPlay}function ve(e){switch(e){case"fade":case"hSlide":case"mSlide":case"hScroll":case"hScrollNC":case"grid":return"x";case"vSlide":case"vScroll":case"vScrollNC":return"y"}}function ge(e){return"%SPACER%"===e.label}function fe(e){return e&&e.media&&1===e.media.length&&/html|contact/.test(l(e.media[0]).type)}function be(e){var t=h(e);return!b(e)&&(e.isIndex?e.key:t?t.key:e.key)}function Ce(e){return function(){function t(){e.webkitSupportsPresentationMode&&e.webkitSupportsPresentationMode("fullscreen")&&"inline"===e.webkitPresentationMode?e.removeAttribute("controls"):document.isFullscreen||document.webkitIsFullscreen||e.removeAttribute("controls")}document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement?document.webkitExitFullscreen():e.webkitSupportsPresentationMode&&e.webkitSupportsPresentationMode("fullscreen")?(e.webkitSetPresentationMode("fullscreen"),e.setAttribute("controls",!0)):e.requestFullscreen?(e.requestFullscreen(),e.setAttribute("controls",!0)):e.webkitRequestFullscreen&&(e.webkitRequestFullscreen(),e.setAttribute("controls",!0)),document.addEventListener("fullscreenchange",t,!1),document.addEventListener("webkitfullscreenchange",t,!1),e.addEventListener("webkitendfullscreen",t,!1)}}function we(e){var t=new lt;switch(t.selectable=!1,t.fontFamily=e.font,t.fontColor=e.fontColor,t.fontSize=e.fontSize,e.alignVertical){case"top":t.element.style.top="calc(0% + "+(e.verticalOffset||20)+"px)";break;case"center":t.element.style.top="calc(50% + "+(e.verticalOffset||0)+"px)";break;case"bottom":t.element.style.bottom="calc(0% + "+(e.verticalOffset||20)+"px)"}switch(e.alignHorizontal){case"left":t.element.style.left="calc(0% + "+(e.horizontalOffset||20)+"px)";break;case"center":t.element.style.left="calc(50% + "+(e.horizontalOffset||0)+"px)";break;case"right":t.element.style.right="calc(0% + "+(e.horizontalOffset||20)+"px)"}return"center"===e.alignVertical&&"center"===e.alignHorizontal?t.element.style.transform="translate(-50%, -50%)":"center"===e.alignVertical?t.element.style.transform="translateY(-50%)":"center"===e.alignHorizontal&&(t.element.style.transform="translateX(-50%)"),t.element.style["mix-blend-mode"]=e.blendMode,t.cursor="pointer",t}function ye(e){var t=document.createElement("input");t.value=e,t.style.opacity=0,document.body.appendChild(t),t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(t)}function Le(e){function t(e){e.isOpen?o.closeItem(e):o.openItem(e)}function i(){n=new Ne,n.gap=o.gap,n.axis=o.axis,n.align=o.align,n.wrap=o.wrap,n.perpLength=0}e=e||{};var n,o=new Ca(e),a=[];return o.identity="menu",o.element.setAttribute("data-identity","menu"),o.gap=e.gap||1,o.axis=e.axis||"y",o.align=e.align||"left",o.wrap=e.wrap||!1,o.perpLength=e.perpLength||o.width,o.expand="auto",o.toggle=e.toggle||!0,o.updateSpeed=e.updateSpeed||.35,o.animate=e.animate||!0,o.addEventListener(In,o.select),o.addItem=function(e,t,i,n){"all"===o.expand&&(n=!0);var r={container:e,title:t,content:i,isOpen:n||!1,hasSubs:e.hasSubs||!1};"x"===o.axis&&Pi.dropdownSubMenu?oe()||le()?(t.addEventListener("click",function(){o.animate=!0,o.updateSpeed=.25,o.openItem(r)}),i&&i.addEventListener("click",function(){o.closeItem(r)})):(t.addEventListener("mouseover",function(){o.animate=!0,o.updateSpeed=.25,o.openItem(r)}),t.addEventListener("mouseout",function(){o.animate=!0,o.updateSpeed=.25,o.closeItem(r)}),i&&(i.addEventListener("mouseover",function(){o.openItem(r)}),i.addEventListener("mouseout",function(){o.closeItem(r)}))):t.addEventListener(Vn,o.select),a.push(r),t.accordionItem=r,o.addChild(e)},o.select=function(e){for(var i=a.length;i--;)a[i]===this.accordionItem?"y"!==o.axis&&"x"===o.axis&&Pi.dropdownSubMenu||(o.toggle?t(this.accordionItem):this.accordionItem.isOpen||o.openItem(this.accordionItem),o.dispatchEvent(Fn,this.accordionItem)):"single"===o.expand&&o.closeItem(a[i]);o.layout(Lo)},o.closeItem=function(e){"all"!==o.expand&&(e.isOpen=!1,e.content&&(e.content.overflow="hidden",qe(e.content,o.animate?o.updateSpeed:0,{height:0}),e.container.height=e.title.element.offsetHeight))},o.openItem=function(e){e.isOpen=!0,e.content&&(qe(e.content,o.animate?o.updateSpeed:0,{height:e.contentHeight,onComplete:function(){Pi.dropdownSubMenu&&/top|bottom/.test(Ma.menuView.placement())||(e.content.overflow="visible")}}),e.container.height=e.title.element.offsetHeight+e.contentHeight)},o.layout=function(e){function t(e,t,i){return e+(t<0?-t:0)+(i+t-e<0?0:i+t-e)}o.updateSpeed=e||0,i();var r,l,s=a.length,d=-o.gap;for(n.perpLength=0,r=0;rn.perpLength?u:n.perpLength:n.perpLength=h>n.perpLength?h:n.perpLength,n.addItem(h,u)}n.layoutItems();var p="x"===o.axis?o.gap+d:0,m="x"===o.axis?0:o.gap+d,v=n.getBounds(),g="x"===o.axis?v.width-o.gap:n.perpLength,f=v.height+("x"===o.axis?0:o.gap+d);for(r=0;rxa.menuView.width()&&(g=C)}}o.width=g,o.height=f,o.dispatchEvent(An,{width:g,height:f})},o}function Se(e,t,i){var n=new xe({hRange:i.hRange,vRange:i.vRange,hAlign:i.hAlign,vAlign:i.vAlign,width:i.width||e.width,height:i.height||e.height,hOffset:i.hOffset,vOffset:i.vOffset}),o=i.hOrigin||0,a=i.vOrigin||0,r={x:Math.round(n.x+o),y:Math.round(n.y+a),onComplete:i.onComplete,onCompleteParams:i.onCompleteParams,onCompleteScope:i.onCompleteScope,onUpdate:i.onUpdate,onUpdateParams:i.onUpdateParams,onUpdateScope:i.onUpdateScope,onInit:i.onInit,onInitScope:i.onInitScope,onInitParams:i.onInitParams};return qe(e,t,r),r}function xe(e){e=e||{};var t=e.hRange||0,i=e.vRange||0,n=e.width||0,o=e.height||0,a=e.hAlign||"left",r=e.vAlign||"top",l=e.hOffset||0,s=e.vOffset||0;return{set hRange(e){t=e},set vRange(e){i=e},set width(e){n=e},set height(e){o=e},set hAlign(e){a=e},set vAlign(e){r=e},set hOffset(e){l=e},set vOffset(e){s=e},get x(){return"center"===a?.5*(t-n)+l:"right"===a?t-n-l:l},get y(){return"center"===r||"middle"===r?.5*(i-o)+s:"bottom"===r?i-o-s:s}}}function Me(e){function t(){return{left:{arrow1:{fill:Pi.cursorColor,d:ya.arrow1Left,stroke:Pi.cursorColor,strokeWidth:0},arrow2:{fill:Pi.cursorColor,d:ya.arrow2Left,stroke:Pi.cursorColor,strokeWidth:0},arrow3:{fill:"none",d:ya.arrow3Left,stroke:Pi.cursorColor,strokeWidth:1.5},plus1:{fill:Pi.cursorColor,d:ya.plus1Left,stroke:Pi.cursorColor,strokeWidth:0},plus2:{fill:Pi.cursorColor,d:ya.plus2Left,stroke:Pi.cursorColor,strokeWidth:0},none:{fill:"none",d:"",stroke:"none",strokeWidth:0},disabled:{fill:"none",d:"",stroke:"none",strokeWidth:0}},right:{arrow1:{fill:Pi.cursorColor,d:ya.arrow1Right,stroke:Pi.cursorColor,strokeWidth:0},arrow2:{fill:Pi.cursorColor,d:ya.arrow2Right,stroke:Pi.cursorColor,strokeWidth:0},arrow3:{fill:"none",d:ya.arrow3Right,stroke:Pi.cursorColor,strokeWidth:1.5},plus1:{fill:Pi.cursorColor,d:ya.plus1Right,stroke:Pi.cursorColor,strokeWidth:0},plus2:{fill:Pi.cursorColor,d:ya.plus2Right,stroke:Pi.cursorColor,strokeWidth:0},none:{fill:"none",d:"",stroke:"none",strokeWidth:0},disabled:{fill:"none",d:"",stroke:"none",strokeWidth:0}}}}function i(){var e=Wi!==Xi&&Wi!==Ni&&Pi.cursorIconBlendMode?Pi.cursorIconBlendMode:"normal";v.element.style["mix-blend-mode"]=e}function n(e){S=e||"x"}function o(e){x=!/none|disabled/.test(Pi.navCursorType)&&e}function a(e){return po&&e.touches?e.touches[0].pageX:e.clientX}function r(e){return po&&e.touches?e.touches[0].pageY:e.clientY}function l(){g=new La,g.left=-20,g.top=-20,g.width=40,g.height=40,v.addChild(g),g.element.style["pointer-events"]="none",v.svg=g,f=new nt,f.id="icon",g.addChild(f),f.element.style["pointer-events"]="none",v.iconLeft=f,b=new nt,b.id="icon",g.addChild(b),b.element.style["pointer-events"]="none",v.iconCenter=b,v.iconCenter.d=ya.cursorThumbs,C=new nt,C.id="icon",g.addChild(C),C.element.style["pointer-events"]="none",v.iconRight=C,s(),wa.addEventListener(un,d),v.listenerAdded=!0}function s(){var e=Wi!==Xi&&Wi!==Ni&&Pi.cursorIconBlendMode?Pi.cursorIconBlendMode:"normal";v.cursorIconStyle=Pi.cursorIconStyle||"arrow2";var t=L.left[v.cursorIconStyle],i=L.right[v.cursorIconStyle];v.element.style["mix-blend-mode"]=e,v.navCursorType=Pi.navCursorType,v.iconLeft.d=t.d,v.iconLeft.fill=t.fill,v.iconLeft.stroke=t.stroke,v.iconLeft.strokeWidth=t.strokeWidth,v.iconCenter.fill=Pi.cursorColor,v.iconRight.d=i.d,v.iconRight.fill=i.fill,v.iconRight.stroke=i.stroke,v.iconRight.strokeWidth=i.strokeWidth}function d(e){if(v.enabled){if(e.target!==g.element&&e.target!==f.element&&e.target!==b.element&&e.target!==C.element){var i=a(e),n=r(e),o=Ma.mediaView.x(),l=Ma.mediaView.y(),d=Ma.mediaView.width(),c=Ma.mediaView.height();v.transition=0,v.translateX=i-2,v.translateY=n-2,e.target.navigationCursor&&v.enabled?w||h(e):w&&u(e);var m=x?.333*d:.5*d,M=x?.333*c:.5*c,T="x"===S?m:M,V="x"===S?i-o:n-l,E=T,z=2*T;(Pi.cursorColor!==L.left.arrow1.fill||Pi.cursorIconStyle!==v.cursorIconStyle&&Pi.navCursorType!==v.navCursorType)&&(L=t(),s()),VE&&Vz)&&(v.iconLeft.alpha=0,v.iconCenter.alpha=0,v.iconRight.alpha=1,v.svg.rotate="y"===S&&/arrow/.test(v.cursorIconStyle)?90:0,v.type="next")}}else p(e);clearTimeout(y),y=setTimeout(function(){p(e)},5e3)}function c(t){t.target.navigationCursor&&v.enabled&&(v.alpha=0,w=!1,"thumbs"===v.type?e.events.dispatchEvent(Jo,v.type):e.events.dispatchEvent(Ko,{navDir:v.type}))}function h(e){"cursor"===Pi.navCursorType?(w=!0,v.display="block",v.alpha=.85,/none/.test(Pi.cursorIconStyle)||(e.target.style.cursor="none",v.iconLeft.cursor="none",v.iconCenter.cursor="none",v.iconRight.cursor="none",v.svg.cursor="none",v.cursor="none"),M||(wa.element.addEventListener(Vn,c),wa.element.addEventListener("contextmenu",m),wa.element.addEventListener("dragstart",m),M=!0)):v.display="none"}function u(){w&&(w=!1,v.alpha=0,v.display="none"),M&&(wa.element.removeEventListener(Vn,c),wa.element.removeEventListener("contextmenu",m),wa.element.removeEventListener("dragstart",m),M=!1)}function p(e){w=!1,v.alpha=0,v.display="none",e&&e.target&&e.target.style&&(e.target.style.cursor="default"),v.iconLeft.cursor="default",v.iconCenter.cursor="default",v.iconRight.cursor="default",v.svg.cursor="default",v.cursor="default","disabled"===Pi.navCursorType?v.display="none":M||(wa.element.addEventListener(Vn,c),wa.element.addEventListener("contextmenu",m),wa.element.addEventListener("dragstart",m),M=!0)}function m(e){var t=void 0===Bi.disableRightClick||Bi.disableRightClick;t&&e.preventDefault()}var v=new Ca({events:new Qe});v.setClass("no-invert"),v.position="fixed";var g,f,b,C,w,y,L=t(),S="x",x=!1,M=!1;return v.enabled=!0,v.zIndex=999,v.alpha=0,v.display="none",v.addEventListener("cursorAxisUpdate",n),v.addEventListener("cursorThumbsUpdate",o),v.addEventListener("cursorBlendMode",i),v.destroy=function(){wa.removeEventListener(un,d),v.removeEventListener("cursorAxisUpdate",n),v.removeEventListener("cursorThumbsUpdate",o),v.removeEventListener("cursorBlendMode",i),v.iconLeft.cursor="default",v.iconCenter.cursor="default",v.iconRight.cursor="default",v.svg.cursor="default",v.cursor="default",M&&(wa.element.removeEventListener(Vn,c),wa.element.removeEventListener("contextmenu",m),wa.element.removeEventListener("dragstart",m),M=!1),v.text=""},l.call(v),v}function Te(e){var t=new Ca,i=t;t.element.className="staticnav",t.axis=e.axis||"x",t.zone=e.zone,t.zIndex=e.zIndex;var n=new Ca,o=new La,a=new La({type:"g"}),r=new nt,l=new Ca,s=new La,d=new La({type:"g"}),c=new nt;n.zIndex=e.zIndex,n.position="absolute",n.width=100*e.scale,n.height=100*e.scale,o.width=100*e.scale,o.height=100*e.scale,n.addEventListener("click",function(){e.prevClick(i)}),r.d=e.paths.prev.d,r.fill=e.paths.prev.fill,r.stroke=e.paths.prev.stroke,r.strokeWidth=e.paths.prev.strokeWidth,o.addChild(a),a.addChild(r),n.addChild(o),l.zIndex=e.zIndex,l.position="absolute",l.width=100*e.scale,l.height=100*e.scale,s.width=100*e.scale,s.height=100*e.scale,l.addEventListener("click",function(){e.nextClick(i)}),c.d=e.paths.next.d,c.fill=e.paths.next.fill,c.stroke=e.paths.next.stroke,c.strokeWidth=e.paths.next.strokeWidth,s.addChild(d),d.addChild(c),l.addChild(s),t.addChild(n),t.addChild(l);var h=Wi!==Xi&&Wi!==Ni&&Pi.cursorIconBlendMode?Pi.cursorIconBlendMode:"normal";return n.element.style["mix-blend-mode"]=h,l.element.style["mix-blend-mode"]=h,t.updateAxis=function(e){t.axis=e,n.element.style.transformOrigin="center",l.element.style.transformOrigin="center","y"===t.axis?(n.position="fixed",l.position="fixed",n.element.style.transform="rotate(90deg)",l.element.style.transform="rotate(90deg)"):(n.position="absolute",l.position="absolute",n.element.style.transform="rotate(0deg)",l.element.style.transform="rotate(0deg)"),t.resize(t.zone)},t.resize=function(i){t.zone=i;var o,r;if("y"===t.axis)switch(e.align){case"start":o={x:i.x,y:i.y},r={x:i.x,y:i.y+i.height-l.height};break;case"end":o={x:i.x+i.width-n.width,y:i.y},r={x:i.x+i.width-l.width,y:i.y+i.height-l.height};break;default:o={x:i.x+(i.width-n.width)/2,y:i.y},r={x:i.x+(i.width-l.width)/2,y:i.y+i.height-l.height}}else switch(e.align){case"start":o={x:i.x,y:i.y},r={x:i.x+i.width-l.width,y:i.y};break;case"end":o={x:i.x,y:i.y+i.height-n.height},r={x:i.x+i.width-l.width,y:i.y+i.height-l.height};break;default:o={x:i.x,y:i.y+(i.height-n.height)/2},r={x:i.x+i.width-l.width,y:i.y+(i.height-l.height)/2}}n.x=o.x+e.offset.prevX,n.y=o.y+e.offset.prevY,l.x=r.x+e.offset.nextX,l.y=r.y+e.offset.nextY,a.scale=e.scale,d.scale=e.scale},t.hide=function(e){switch(e){case"prev":n.display="none";break;case"next":l.display="none";break;default:n.display="none",l.display="none"}},t.show=function(e){switch(e){case"prev":n.display="block";break;case"next":l.display="block";break;default:n.display="block",l.display="block"}},t.resize(e.zone),t.updateAxis(e.axis),t}function Ve(e){function t(e){u.text=e.target.tooltip,u.alpha=1,c.width=u.element.offsetWidth+2*y,c.height=u.element.offsetHeight+2*y,d.width=c.width+2*w,d.height=c.height+2*w,T=M+d.height+.5*w,V=M+w}function i(e){S=e.pageX/window.innerWidth;var t=Math.round(d.width*S);t-h.point-bd.width?(h.x=d.width-(w+h.width+b),d.x=e.pageX-d.width+w+h.point+b):(h.x=t-(w-h.width),d.x=e.pageX-t)}function n(e){e.pageY=o-1&&t<=o+1},default:function(e){return e.isInViewport}};this.update=function(e){setTimeout(function(){e&&(o=e),n()},0)}}function ke(e,t){function i(e){qe(this,.2,{backgroundColor:Pa.bgColorLighter,fontColor:Pa.fontColorSelected})}function n(e){qe(this,.2,{backgroundColor:Pa.bgColor,fontColor:Pa.fontColor})}t=t||{};var o=new Ca;o.backgroundColor=t.backgroundColor||Pa.bgColorLight,o.width=250,o.height=150,o.borderRadius=4,o.overflow="hidden",o.boxShadow=Pa.shadowDark,o.addEventListener(Vn,function(e){e.stopPropagation()});var a=new Ca;a.x=25,a.y=20,a.fontColor=t.fontColor||Pa.fontColor,a.fontFamily="Helvetica Neue, Arial, sans-serif",a.fontSize=15.5,a.selectable=!0,a.text=e,a.textAlign="center";var r=new Ca({type:"button"});r.width=65,r.height=40,r.text="OK",r.outline="none",r.border="none",r.fontWeight="bold",r.fontSize=Pa.fontSize,r.fontColor=Pa.fontColor,r.fontFamily="Helvetica Neue, Arial, sans-serif",r.backgroundColor=Pa.bgColor,o.addChild(r),o.addChild(a);var l=[];dx&&q(dx,"site.siteView")&&(l=[q(dx,"site.siteView")]),dx&&q(dx,"admin.adminView")&&(l=[dx.site.siteView,dx.admin.adminView]);var s=new ma(o,{userOverride:t.userOverride||!0,backgroundColor:t.backgroundColor||"#000000",alpha:t.alpha||.5,blurLayers:t.blurLayers||l});s.open(),r.addEventListener(cn,i),r.addEventListener(mn,n),r.addEventListener(on,i),r.addEventListener(an,n),r.addEventListener(Vn,function(e){t.onClose&&t.onClose(),s.close()});var d=r.element.offsetHeight,c=a.element.offsetWidth;return o.width=c+50,a.width=o.width-50,o.height=a.element.offsetHeight+d+50,r.width=o.width,r.y=o.height-d-0,s.overlayResize(),r.focus(),s}function Oe(e,t){function i(e){qe(this,.2,{backgroundColor:Pa.bgColorLighter,fontColor:Pa.fontColorSelected})}function n(e){a.call(this)}function o(e){wa.activeFocus&&(a.call(wa.activeFocus),wa.activeFocus.blur()),qe(this,.2,{backgroundColor:Pa.bgColorLighter,fontColor:Pa.fontColorSelected})}function a(e){qe(this,.2,{backgroundColor:Pa.bgColor,fontColor:Pa.fontColor})}t=t||{};var r,l=new Ca;l.backgroundColor=t.backgroundColor||Pa.bgColorLight,l.width=t.width||250,l.height=150,l.borderRadius=5,l.overflow="hidden",l.boxShadow=Pa.shadowDark,l.addEventListener(Vn,function(e){e.stopPropagation()});var s=new Ca;s.x=25,s.y=23,s.fontColor=t.fontColor||Pa.fontColor,s.fontFamily="Helvetica Neue, Arial, sans-serif",s.fontSize=15.5,s.selectable=!0,s.text=e,s.textAlign="center";var d=new Ca({type:"button"});d.width=65,d.height=40,d.text=t.cancelLabel||"CANCEL",d.outline="none",d.border="none",d.fontWeight="bold",d.fontSize=Pa.fontSize,d.fontColor=Pa.fontColor,d.fontFamily="Helvetica Neue, Arial, sans-serif",d.backgroundColor=Pa.bgColor,l.addChild(d);var c=new Ca({type:"button"});c.width=65,c.height=40,c.text=t.okLabel||"OK",c.outline="none",c.border="none",c.fontWeight="bold",c.fontSize=Pa.fontSize,c.fontColor=Pa.fontColor,c.fontFamily="Helvetica Neue, Arial, sans-serif",c.backgroundColor=Pa.bgColor,l.addChild(c),l.addChild(s);var h=[dx.site.siteView];dx&&q(dx,"admin.adminView")&&(h=[dx.site.siteView,dx.admin.adminView]);var u=new ma(l,{userOverride:!0,backgroundColor:"#000000",alpha:.5,blurLayers:h,onClose:function(){t.onCancel&&!r&&t.onCancel()}});u.open(),d.addEventListener(cn,o),d.addEventListener(mn,a),c.addEventListener(cn,o),c.addEventListener(mn,a),d.addEventListener(on,i),d.addEventListener(an,n),c.addEventListener(on,i),c.addEventListener(an,n),d.addEventListener(Vn,function(e){t.onCancel&&t.onCancel(),u.close()}),c.addEventListener(Vn,function(e){r=!0,t.onConfirm&&t.onConfirm(),u.close()});var p=c.element.offsetHeight,m=s.element.offsetWidth;return l.width=m+50,s.width=l.width-50,l.height=s.element.offsetHeight+d.element.offsetHeight+p+50,d.width=l.width,d.y=l.height-d.height-p,c.width=l.width,c.y=l.height-p-0,u.overlayResize(),c.focus(),u}function Ie(e){function t(){i.width=d,i.height=c,i.backgroundColor=s,i.boxShadow="0px 2px 10px rgba(0,0,0,0.05)",i.borderRadius=2,i.display="flex",a=new Je,a.textTransform="uppercase",a.text="share ↑",a.position="relative",a.element.style.padding="0 20px",a.element.style.margin="0 10px",a.height=38,a.fontFamily=Pi.menuFont,a.fontSize=16,a.fontColor=l,a.element.style.flexGrow=1,a.backgroundColor="transparent",a.addEventListener(Vn,function(){ke("The lightbox link was copied to your clipboard."), ye(window.location.href)}),a.addEventListener(cn,function(){this.style.textDecoration="underline"}),a.addEventListener(mn,function(){this.style.textDecoration="none"}),a.style.cursor="pointer",i.addChild(a),/pdf/.test(Pi.lightboxDownloadOptions)&&(n=new Je,n.textTransform="uppercase",n.text="pdf ↓",n.position="relative",n.element.style.padding="0 20px",n.element.style.margin="0 10px",n.height=38,n.fontFamily=Pi.menuFont,n.fontSize=16,n.fontColor=l,n.element.style.flexGrow=1,n.backgroundColor="transparent",n.addEventListener(Vn,function(){ke("Please wait, it may take a few minutes while we build your PDF file."),i.events.dispatchEvent("lightboxDownloadPdf")}),n.addEventListener(cn,function(){this.style.textDecoration="underline"}),n.addEventListener(mn,function(){this.style.textDecoration="none"}),n.style.cursor="pointer",i.addChild(n)),/zip/.test(Pi.lightboxDownloadOptions)&&(o=new Je,o.textTransform="uppercase",o.text="zip ↓",o.position="relative",o.element.style.padding="0 20px",o.element.style.margin="0 10px",o.height=38,o.fontFamily=Pi.menuFont,o.fontSize=16,o.fontColor=l,o.element.style.flexGrow=1,o.backgroundColor="transparent",o.addEventListener(Vn,function(){ke("Please wait, it may take a few minutes while we build your ZIP file."),i.events.dispatchEvent("lightboxDownloadZip")}),o.addEventListener(cn,function(){this.style.textDecoration="underline"}),o.addEventListener(mn,function(){this.style.textDecoration="none"}),o.style.cursor="pointer",i.addChild(o));var e=dx&&q(dx,"admin.adminView")?[dx.site.siteView,dx.admin.adminView]:[dx.site.siteView];r=new ma(i,{userOverride:!0,backgroundColor:m,alpha:v,blurLayers:e,zIndex:99}),r.zIndex=99,i.open(),r.onClose=function(){p=!1},i.overlay=r,r.overlayResize(),p=!0}var i=new Ca({events:e.events});i.display="flex",i.element.style.alignItems="center",i.element.style.padding="0px 10px";var n,o,a,r,l,s,d=.9*wa.width>530?530:.9*wa.width,c=78,h=!(!Pi.inputOverlayFontColor||!Pi.inputOverlayBarColor),u=!(!Pi.menuOverlayFontColor||!Pi.menuOverlayBgColor);h?(l=Pi.inputOverlayFontColor,s=Pi.inputOverlayBarColor):u?(l=Pi.menuOverlayFontColor,s=Pi.menuOverlayBgColor):(l="#000000",s="#FFFFFF");var p,m=Pi.inputOverlayBgColor||Pi.menuOverlayBgColor||"#000000",v=Pi.inputOverlayBgAlpha||Pi.menuOverlayBgAlpha||.5;return i.updateSpeed=0,i.addEventListener(So,function(e){}),i.updatePosition=function(e){d=.9*wa.width>800?800:.9*wa.width,n.x=d-.5*(c-n.width),i.width=d,i.x=xa.mediaView.x()+.5*(xa.mediaView.width()-d),i.y=xa.mediaView.y()+.5*(xa.mediaView.height()-c),i.updateSpeed=Lo},i.close=function(){p=!1,r.close()},i.open=function(t){t&&(e.section=t),r.open(),setTimeout(function(){},100),p=!0},t(),i}function Fe(e){function t(){u.width=p,u.height=m,l=new Ca,l.backgroundColor=h,l.boxShadow="0px 2px 10px rgba(0,0,0,0.05)",l.borderRadius=2,l.width=p,l.height=m,r=new et,r.backgroundColor="transparent",r.fontFamily=Pi.menuFont,r.fontColor=c,r.fontSize=16,r.height=m,r.x=0,r.y=0,r.element.style.padding="0px 46px",r.addEventListener(on,a),r.addEventListener(an,o),r.element.addEventListener(Vn,function(e){e.stopPropagation()}),r.element.tabIndex=1,u.setMessage("PASSWORD"),s=new La;var e=new nt;e.d=ya.arrowRight,e.strokeWidth=3,e.fill="none",e.stroke=c,s.addChild(e),s.width=11,s.height=15,s.x=p-.5*(m-s.width),s.y=.5*(m-s.height),s.alpha=.5,s.cursor="pointer",s.addEventListener(cn,function(){qe(this,Lo,{alpha:1})}),s.addEventListener(mn,function(){qe(this,Lo,{alpha:.5})}),r.width=p-m-96,u.addChild(l),u.addChild(r),u.addChild(s);var t=dx&&q(dx,"admin.adminView")?[dx.site.siteView,dx.admin.adminView]:[dx.site.siteView];d=new ma(u,{userOverride:!0,backgroundColor:b,alpha:C,blurLayers:t,zIndex:99}),d.zIndex=99,u.open(),d.onClose=function(){f=!1,r.removeEventListener(bn,i),s.removeEventListener(Vn,n)},u.overlay=d,d.overlayResize(),f=!0}function i(e){f&&13===e.keyCode&&n(e)}function n(t){u.events.dispatchEvent("SITE_SERVICE_PASSWORD_CHECK",{sectionKey:e.section.key,value:r.value})}function o(e){wa.isInputFocus=!1,""===r.value&&u.setMessage("PASSWORD")}function a(e){wa.isInputFocus=!0,r.value=""}var r,l,s,d,c,h,u=new Ca({events:e.events}),p=.9*wa.width>800?800:.9*wa.width,m=78,v=!(!Pi.inputOverlayFontColor||!Pi.inputOverlayBarColor),g=!(!Pi.menuOverlayFontColor||!Pi.menuOverlayBgColor);v?(c=Pi.inputOverlayFontColor,h=Pi.inputOverlayBarColor):g?(c=Pi.menuOverlayFontColor,h=Pi.menuOverlayBgColor):(c="#000000",h="#FFFFFF");var f,b=Pi.inputOverlayBgColor||Pi.menuOverlayBgColor||"#000000",C=Pi.inputOverlayBgAlpha||Pi.menuOverlayBgAlpha||.5;return u.updateSpeed=0,u.addEventListener(So,function(e){}),u.updatePosition=function(e){p=.9*wa.width>800?800:.9*wa.width,s.x=p-.5*(m-s.width),r.width=p-m-96,l.width=p,u.width=p,u.x=xa.mediaView.x()+.5*(xa.mediaView.width()-p),u.y=xa.mediaView.y()+.5*(xa.mediaView.height()-m),u.updateSpeed=Lo},u.close=function(){f=!1,r.removeEventListener(bn,i),s.removeEventListener(Vn,n),d.close()},u.setMessage=function(e){r.value=e},u.open=function(t){t&&(e.section=t),d.open(),setTimeout(function(){r.addEventListener(bn,i),s.addEventListener(Vn,n)},100),f=!0},t(),u}function Ae(e){function t(){b.width=C,b.height=w,h=new Ca,h.backgroundColor=f,h.boxShadow="0px 2px 10px rgba(0,0,0,0.05)",h.borderRadius=2,h.width=C,h.height=w,c=new et,c.backgroundColor="transparent",c.fontFamily=Pi.menuFont,c.fontColor=g,c.fontSize=16,c.height=w,c.x=0,c.y=0,c.element.style.padding="0px 46px",c.addEventListener(on,d),c.addEventListener(an,s),c.element.addEventListener(Vn,function(e){e.stopPropagation()}),c.element.tabIndex=1,b.setMessage("Search"),u=new La,x=new nt,x.d=ya.search,x.fill=g,x.fillRule="evenodd",u.addChild(x),u.width=25,u.height=25,u.x=C-u.width-24,u.y=.5*(w-u.height),u.alpha=.5,u.cursor="pointer",u.addEventListener(cn,function(){qe(this,Lo,{alpha:1})}),u.addEventListener(mn,function(){qe(this,Lo,{alpha:.5})}),c.width=C-w-92,m=new Ca,m.display="flex",m.width=C-20,m.x=20,m.y=w,m.zIndex=-1,v=new La,v.element.style["user-select"]="none",v.alpha=0,v.x=4,v.width=14,v.height=14,v.transition=.25,v.cursor="pointer",v.addEventListener("click",function(){a(c.value),c.value=""}),v.alpha=0,M=new nt,M.d=ya.plusSmall,M.strokeWidth=2,M.fill="none",M.stroke=g,v.addChild(M),b.addChild(v),b.addChild(h),b.addChild(c),b.addChild(u),b.addChild(m);var e=dx&&q(dx,"admin.adminView")?[dx.site.siteView,dx.admin.adminView]:[dx.site.siteView];p=new ma(b,{userOverride:!0,backgroundColor:E,alpha:z,blurLayers:e,zIndex:99}),p.onClose=function(){T=!1,c.removeEventListener(bn,r),u.removeEventListener(Vn,l)},b.open(),b.overlay=p,p.overlayResize(),T=!0}function i(e){m.text="",e=e.filter(function(e,t,i){return i.indexOf(e)===t}).map(n),e.forEach(function(e){m.addChild(e)})}function n(e){var t=new Ca;t.position="relative",t.backgroundColor=V(f,.35),t.boxShadow="0px 2px 10px rgba(0,0,0,0.05)",t.borderRadius=20,t.display="flex",t.element.style.padding="3px 8px 3px 10px",t.element.style.margin="8px 0 0 8px";var n=new Je;n.position="relative",n.background="transparent",n.fontSize=12,n.fontFamily=Pi.menuFont,n.color=g,n.text="×",n.alpha=.2,n.top=0,n.cursor="pointer",n.addEventListener(cn,function(){qe(this,Lo,{alpha:1})}),n.addEventListener(mn,function(){qe(this,Lo,{alpha:.2})});var o=new Ca;return o.position="relative",o.color=g,o.fontSize=12,o.fontFamily=Pi.menuFont,o.paddingRight=7,o.text=e,n.addEventListener("click",function(){y=y.filter(function(t){return e!==t}),i(y)}),t.addChild(o),t.addChild(n),t}function o(e){return e.replace(/^\s+|\s+$/g,"")}function a(e){""===c.value||c.isPlaceholder||(y=y.concat(c.value.split(",").map(o)),i(y)),v.y=w+4+.5*((m.element.offsetHeight||25)-14)}function r(e){T&&(13===e.keyCode?""===c.value||c.isPlaceholder?y.length&&l():(a(c.value),c.value="",l()):(v.y=w+4+.5*((m.element.offsetHeight||25)-14),v.alpha=""===c.value||c.isPlaceholder?0:1,c.isPlaceholder=!1))}function l(t){c.value&&!c.isPlaceholder&&(y=y.concat(c.value.split(",").map(o))),y.length&&b.events.dispatchEvent("SEARCH_SUBMIT",Object.assign({},e.navEvent,{searchTerm:y.join(","),searchSubmit:!0}))}function s(e){wa.isInputFocus=!1,""===c.value&&b.setMessage("Search")}function d(e){wa.isInputFocus=!0,c.isPlaceholder&&(c.value="")}var c,h,u,p,m,a,v,g,f,b=new Ca({events:e.events}),C=.9*wa.width>800?800:.9*wa.width,w=78,y=e.tags||[],L=!(!Pi.inputOverlayFontColor||!Pi.inputOverlayBarColor),S=!(!Pi.menuOverlayFontColor||!Pi.menuOverlayBgColor);L?(g=Pi.inputOverlayFontColor,f=Pi.inputOverlayBarColor):S?(g=Pi.menuOverlayFontColor,f=Pi.menuOverlayBgColor):(g="#000000",f="#FFFFFF");var x,M,T,E=Pi.inputOverlayBgColor||Pi.menuOverlayBgColor||"#000000",z=Pi.inputOverlayBgAlpha||Pi.menuOverlayBgAlpha||.5;return b.updateSpeed=0,b.addEventListener(So,function(e){}),b.updatePosition=function(e){C=.9*wa.width>800?800:.9*wa.width,u.x=C-u.width-24,c.width=C-w-92,h.width=C,m.width=C,v.y=w+4+.5*((m.element.offsetHeight||25)-14),b.width=C,b.x=xa.mediaView.x()+.5*(xa.mediaView.width()-C),b.y=xa.mediaView.y()+.5*(xa.mediaView.height()-w),b.updateSpeed=Lo},b.setMessage=function(e){c.value=e,c.isPlaceholder=!0},b.setTags=function(e){y=e},b.setSortBy=function(e){},b.close=function(){T=!1,c.removeEventListener(bn,r),u.removeEventListener(Vn,l),p.close()},b.blur=function(){c.element.blur()},b.open=function(t){t&&(e.section=t),p.open(),i(y),setTimeout(function(){c.addEventListener(bn,r),u.addEventListener(Vn,l)},100),T=!0},t(),b}function Pe(e,t,i){var n=new De({type:i.type,hRange:i.hRange,vRange:i.vRange,width:i.width||e.width,height:i.height||e.height,disableOrientationCheck:i.disableOrientationCheck}),o=new xe({hRange:i.hRange,vRange:i.vRange,hAlign:i.hAlign,vAlign:i.vAlign,width:n.width,height:n.height}),a={x:Math.round(o.x),y:Math.round(o.y),width:n.width,height:n.height,onComplete:i.onComplete,onCompleteParams:i.onCompleteParams,onCompleteScope:i.onCompleteScope,onUpdate:i.onUpdate,onUpdateParams:i.onUpdateParams,onUpdateScope:i.onUpdateScope,onInit:i.onInit,onInitScope:i.onInitScope,onInitParams:i.onInitParams};return i.onComplete&&(a.onComplete=i.onComplete),e&&qe(e,t,a),{scale:n,align:o}}function He(e){function t(e){var t=e.match(/[@]([0-9]*\.?[0-9]+)?[x]/i),i=e.match(/__at__([0-9]*\.?[0-9]+)?x/i);return t?Number(t[1]):i?Number(i[1]):1}var i=e.width,n=e.height,o=t(e.filename);return{width:Math.round(i/o),height:Math.round(n/o)}}function De(e){function t(){return m=d/c,"fit"===l||"native"===l?mp}function i(){p=h/u,n(),"fitWidth"===e.type||t()?(h=d,u=d/p):c?(h=c*p,u=c):(h=d,u=d/p),"native"===e.type&&(h>e.width||u>e.height)&&(h=e.width,u=e.height)}function n(){s||o(h,u,d,c)||r(h,u)||(l="fit")}function o(e,t,i,n){return a(e,t)===a(i,n)}function a(e,t){return e>t}function r(e,t){return e===t}e=e||{};var l=e.type||"fit",s=e.disableOrientationCheck||!1,d=e.hRange,c=e.vRange,h=e.width||0,u=e.height||0,p=-1,m=-1;return i(),{set hRange(e){d=e},set vRange(e){c=e},set type(e){l=e},get type(){return l},set width(e){h=e},set height(e){u=e},get width(){return h},get height(){return u}}}function Re(e,t,i){function n(e,t){e>t?u.alignSave||(u.alignSave=u.align,u.align="width"===u.dim?"left":"top",l=u.alignment()):(u.alignSave&&(u.align=u.alignSave,delete u.alignSave),l=u.alignment())}function o(e,t){e1?1:e,l=e},get position(){return s},set position(e){s=e},get scrollDist(){return d},set scrollDist(e){d=e},get ing(){return c},set ing(e){c=e}};u.perpAxis="x"===i.axis?"y":"x",u.dim="x"===i.axis?"width":"height",u.perpDim="x"===i.axis?"height":"width",u.alpha=isNaN(i.alpha)?.35:i.alpha;var p=!1,m="width"===u.dim?"offsetWidth":"offsetHeight";return u.alignment=function(){switch(u.align){case"middle":case"center":return.5;case"right":case"bottom":return 1;default:return 0}},u.scrollTo=function(e){u.bar&&u.bar.scrollTo(e,0)},u.update=function(t,a,c){t=t||0,p||(p=!0,c||u.dispatchEvent("scrollStart"));var v=u.mask.element[m],g=(u.margin||u.marginTop)+e.element[m]+(u.margin||u.marginBottom);if(g&&v){d=g-v,u.captionScroll?n(g,v):o(g,v),s=-(d*l)+(u.margin||u.marginTop);var f={};e.transition=0,"translate"===u.property?f["translate"+i.axis.toUpperCase()]=oa.round(s):f[i.axis]=oa.round(s),f.ease="cubic-bezier(0.5, 0.5, 0.5, 0.8)",u.hvr&&(f.onUpdate=function(){u.dispatchEvent(no)}),qe(e,t,f),u.bar&&u.bar.moveHandle(0),u.bar&&"when scrolling"===u.visibility&&(u.bar.show(),u.bar.checkVisible()),clearTimeout(r),r=setTimeout(function(){h||u.dispatchEvent("scrollStop"),u.bar&&"when scrolling"===u.visibility&&(u.bar.hide(),u.bar.checkVisible()),p=!1,u.bar&&u.bar.resize(),h=!1},200)}},u.resize=function(e){u.update(e||0,!1,!0),u.bar&&u.bar.resize()},u.destroy=function(){u.bar&&u.bar.destroy(),u.wheel&&u.wheel.destroy(),u.hvr&&u.hvr.destroy(),u.touch&&u.touch.destroy()},u.hide=function(){u.bar&&(u.bar.hide(),u.bar.checkVisible())},u.show=function(){u.bar&&(u.bar.show(),u.bar.checkVisible())},u.enable=function(){u.disabled=!1,u.bar&&u.bar.enable()},u.disable=function(){u.disabled=!0,u.bar&&u.bar.disable()},u.setAlpha=function(e){u.bar&&u.bar.setAlpha(e)},u.getBack=function(){return u.bar?u.bar.getBack():null},a(),u.resize(),u.update(),va.register(u),u}function Be(e){function t(t){var i="when scrolling"===e.visibility?.5:1;!e.active&&/hidden/.test(e.visibility)&&(i=0),qe(v,.35,{alpha:i,backgroundColor:e.hover})}function i(t){!e.ing&&/when scrolling|hidden/.test(e.visibility)&&qe(v,.35,{alpha:0,backgroundColor:e.color})}function n(t){var i="when scrolling"===e.visibility?.5:1;!e.active&&/hidden/.test(e.visibility)&&(i=0),qe(v,.35,{alpha:i,backgroundColor:e.hover}),u=r(t)-m[e.axis]-v[e.axis],wa.addEventListener(pn,a,!1),wa.addEventListener(un,o,!1),wa.addEventListener(sn,a,!1),wa.addEventListener(ln,o,!1)}function o(t){e.ing===!1&&(e.ing=!0,t.preventDefault()),window.getSelection().removeAllRanges(),h=r(t)-u-m[e.axis],e.percent=(h-m[e.axis])/(m[e.dim]-v[e.dim]),e.update(0),e.dispatchEvent(no)}function a(t){setTimeout(function(){e.ing=!1},10),qe(v,.35,{backgroundColor:e.color}),wa.removeEventListener(un,o),wa.removeEventListener(pn,a),wa.removeEventListener(sn,a,!1),wa.removeEventListener(ln,o,!1)}function r(t){return"x"===e.axis?O(t):I(t)}function l(){return"x"===e.axis?e.offsetX:e.offsetY}function s(){return"y"===e.axis?e.offsetX:e.offsetY}var d=e.obj,c=e.mask,h=0,u=0,p=!0,m=this.back=new Ca;m.alpha=0,m.selectable=!0,m.backgroundColor=e.color,e.zIndex&&(m.zIndex=e.zIndex),e.parent.addChild(m);var v=this.handle=new Ca;v.alpha=0,v.backgroundColor=e.color,e.zIndex&&(v.zIndex=e.zIndex),v.selectable=!1,v.cursor="default",v.borderRadius=e.rounded?Math.ceil(e.width/2):0,v.style.pointerEvents="auto",e.parent.addChild(v),v.addEventListener(cn,t),v.addEventListener(mn,i),v.addEventListener(hn,n),v.addEventListener(rn,n),this.moveHandle=function(t){v.transition=t||0,v[e.axis]=(m[e.dim]-v[e.dim])*e.percent+m[e.axis],"hidden"===e.visibility?v.alpha=0:"when scrolling"===e.visibility?v.alpha=.5:v.alpha=1},this.resize=function(){m.transition=Lo,v.transition=Lo,m[e.perpDim]=e.width,m[e.dim]=c[e.dim],e.parent===c?m[e.axis]=l():m[e.axis]=c[e.axis]+l(),v[e.perpDim]=e.width,"left"===e.side||"top"===e.side?(m[e.perpAxis]=c[e.perpAxis]-e.width+s(),v[e.perpAxis]=c[e.perpAxis]-e.width+s()):(m[e.perpAxis]=c[e.perpAxis]+c[e.perpDim]+s(),v[e.perpAxis]=c[e.perpAxis]+c[e.perpDim]+s()),this.moveHandle(0),setTimeout(this.checkVisible,0)},this.checkVisible=function(){m.style.transition="opacity 750ms",v.style.transition="opacity 750ms";var t="offset"+e.dim[0].toUpperCase()+e.dim.substr(1),i=c.element[t],n=(e.margin||e.marginTop)+d.element[t]+(e.margin||e.marginBottom),o=i/n*i;o=m[e.dim]?(m.transition=0,m.alpha=0,m.display="none",v.transition=0,v.alpha=0,v.display="none",v[e.dim]=m[e.dim],e.scrollTo(0,0)):(qe(m,.35,{alpha:0,onComplete:function(){this.dislplay="none"}}),qe(v,.35,{alpha:0,onComplete:function(){setTimeout(function(){v.dislplay="none"},200),e.scrollTo(0,0)}}))},this.destroy=function(){e.parent.removeChild(v),e.parent.removeChild(m),v.removeEventListener(cn,t),v.removeEventListener(mn,i),v.removeEventListener(hn,n),v.removeEventListener(rn,n)},this.setAlpha=function(e){v.alpha=m.alpha=e},this.getBack=function(){return m},this.scrollTo=function(e){},this.hide=function(){p=!1},this.show=function(){p=!0},this.disable=function(){v.removeEventListener(cn,t),v.removeEventListener(mn,i),v.removeEventListener(hn,n),v.removeEventListener(rn,n)},this.enable=function(){v.addEventListener(cn,t),v.addEventListener(mn,i),v.addEventListener(hn,n),v.addEventListener(rn,n)}}function je(e){function t(t){e.active&&!e.ing&&e.dispatchEvent("WINDOW_SCROLL_TOP")}function i(t){va.setActive(e),r=o(t),l=e.percent||0,e.mask.addEventListener(sn,a),e.mask.addEventListener(ln,n)}function n(t){e.ing===!1&&(e.ing=!0,ae()&&!Bi.podUseDesktop&&window.scrollTo(0,1),t.preventDefault()),s=o(t)-r,e.percent=-(s/e.scrollDist)+l,e.percent=e.percent<0?0:e.percent,e.percent=e.percent>1?1:e.percent,e.update(0),e.dispatchEvent(no)}function o(t){return"x"===e.axis?po?event.touches[0].pageX:event.clientX:po?event.touches[0].pageY:event.clientY}function a(t){e.ing=!1,e.mask.removeEventListener(sn,a),e.mask.removeEventListener(ln,n)}var r=0,l=0,s=0;e.mask.addEventListener(rn,i),ae()&&e.scrollTopCheck&&window.addEventListener("scroll",t),this.destroy=function(){r&&(e.ing=!1,e.mask.removeEventListener(sn,a),e.mask.removeEventListener(ln,n))}}function _e(e){function t(){var t="offset"+e.dim[0].toUpperCase()+e.dim.substr(1),i=(e.margin||e.marginTop)+e.obj.element[t]+(e.margin||e.marginBottom),n=i-e.mask.element[t];return n>0}function i(){t()&&(s=!0,va.focusTarget=l,wa.addEventListener(gn,o,!1),wa.addEventListener(vn,o,!1))}function n(){s=!1,wa.removeEventListener(gn,o,!1),wa.removeEventListener(vn,o,!1)}function o(t){if(e.active){var i="x"===e.axis?t.deltaX:t.deltaY;(Math.abs(t.deltaX)>Math.abs(t.deltaY)&&"x"===e.axis||Math.abs(t.deltaY)>Math.abs(t.deltaX)&&"y"===e.axis)&&(e.percent>=0&&e.percent<1&&i>0?(a(i),t.preventDefault()):e.percent>0&&e.percent<=1&&i<0&&(a(i),t.preventDefault()))}}function a(t){t="bottom"===e.align?t=-t:t,isNaN(e.percent)&&(e.percent=0);var i="offset"+e.dim[0].toUpperCase()+e.dim.substr(1),n=(e.margin||e.marginTop)+e.obj.element[i]+(e.margin||e.marginBottom),o=n-e.mask.element[i],a=e.percent+t/o;e.percent=a<0?0:a,e.percent=a>1?1:a,e.update(0),e.dispatchEvent(no)}var r=e.mask,l=this,s=!1;e.active=!1,r.addEventListener(cn,i),r.addEventListener(mn,n),this.destroy=function(){r.removeEventListener(cn,i),s&&n()}}function We(e){function t(){e.mask.addEventListener(un,o),wa.addEventListener(un,i)}function i(t){e.mask.hitTestPoint(O(t),I(t))?c=!0:c&&(c=!1,n())}function n(){clearTimeout(r),e.mask.removeEventListener(un,o),wa.removeEventListener(un,i)}function o(t){l.enabled&&(r=setTimeout(function(){var i="x"===e.axis?t.mouseX:t.mouseY,n="offset"+e.dim[0].toUpperCase()+e.dim.substr(1);s=i/e.mask.element[n],0===s&&i>.5*e.mask.element[n]?s=.98:0===s&&i<.5*e.mask.element[n]&&(s=.15),e.percent=s>.5?1:0;var o=e.position,r=e.obj._private[e.axis],l=Math.abs(o-r),h=Math.abs(l)/e.maxSpeed;if(d+=.1*(h-d),d+=.1*(a()-d),e.update(d,!0),e.dispatchEvent(no),!c){var u,p={};u="x"===e.axis?e.obj.element.offsetLeft:e.obj.element.offsetTop,p[e.axis]=oa.round(u),qe(e.obj,1,p)}},50))}function a(){var t=s<.5?2*s:s*-2+2;return Math.round(Math.pow(t,5)*e.maxSpeed+e.minSpeed)}var r,l=this,s=0,d=0,c=!1;return l.enabled=!0,l.destroy=n,e.mask.addEventListener(cn,t),l}function Ne(e){function t(e,t,n){return f.wrap?t:i(e,t,n)}function i(e,t,i){return"x"===e&&"center"===f.align||"y"===e&&"middle"===f.align?.5*(f.perpLength-i):"x"===e&&"right"===f.align||"y"===e&&"bottom"===f.align?f.perpLength-i:t}function n(t){if("y"===f.axis){var i=b[t].width;"thumbs"===e.name&&/fill|vMasonry/.test(e.type)&&(i=r(v+1,f.numberOfColumns)?f.lastColumnWidth:f.gridWidths),f.isWrap=w[g]&&b[t]&&w[g].size+i>f.perpLength,!f.wrap||f.isWrap?(g+=1,v=0):f.wrap&&!f.horizontalMasonry&&(v+=1)}else!f.wrap||C[v]&&b[t]&&C[v].size+b[t].height>f.perpLength?(v+=1,g=0):f.wrap&&(g+=1)}function o(e,t){for(var i=t.length,n=t[0]&&t[0].size?t[0].size:0;i--;)t[0]&&t[i].size<=n&&(n=t[i].size,e=i);return e}function a(e){for(var t=e.length,i=0;t--;)e[t]&&e[t].size>i&&(i=e[t].size);return i}function r(e,t){return e===t-1}function l(e){return!!e.ids.filter(function(e){return b[e].isDoubleSize}).length}function s(e){var t=b[e.ids[0]],i=t.isDoubleSize?Math.round(.5*(t.height-f.vGap)):t.height;return l(e)?2*i+f.vGap:i}function d(e){if(y.length)for(var t=0,i=y.length;t<=n.size)return b[e].x=n.x,b[e].y=n.y,b[e].width=n.isLastColumn?f.lastColumnWidth:b[e].width,n.size=n.size-(b[e].height+f.vGap),n.y=n.y+b[e].height+f.vGap,{index:e,rowId:n.rowId}}return!1}function c(){var e=w[w.length-1];if(e&&e.ids.length){var t=s(e);return t+f.vGap}return 0}function h(e,t){return e+t}function u(e,t){return e.test(t)}function p(e,t){return e===t-1}function m(e,t,i,n,o,a){var r=i[t],l=r.size-f.hGap,d=r.gapRowSize-f.hGap;r.scaledSize=0,r.scaledGapRowSize=0,t===i.length-1&&lw+g?(c="top",h=b,m=v):b+v1&&(B=f.perpLength-R),A.x=Math.round(B),A.y=Math.round(z),A.height=Math.round(H),A.width=Math.round(R),r.scaledSize=A.x+A.width,r.remainder=F}r.gapRowIds=r.gapRowIds.map(function(t){return e[t].id=t,e[t]}).sort(function(e,t){return e.xt.x?1:0}).map(function(e){return e.id});for(var j=0,_=r.gapRowIds.length;j<_;j++){var F,A=e[r.gapRowIds[j]],P=e[r.gapRowIds[j-1]],H=V,D=p(j,_),R=H*(A.width/A.height),B=P?P.x+P.width+f.hGap:0;A.isDoubleSize||(u(/gap|equal/,c)&&D&&(F=n-(B+R),B+R1&&b[p].isDoubleSize){if(r(i,f.numberOfColumns)){var P=b[p],H=C[i].size,D=C[i-1].size,R=(i-1)*(x+f.hGap);if(M=t("x",R,x),D<=H){var B=H-D;y.push({x:t("x",R,x),y:D,size:B,isLastColumn:!0}),C[i].size+=P.height+f.vGap,C[i-1].size+=P.height+B+f.vGap}else{var B=D-H,j=i*(x+f.hGap);y.push({x:t("x",j,x),y:C[i].size,size:B,isLastColumn:!0}),V=D,C[i-1].size+=P.height+f.vGap,C[i].size+=P.height+B+f.vGap}C[i].ids.push(p)}else{var _=0;C[i+1]&&C[i+1].size>C[i].size&&(_=C[i+1].size-C[i].size,y.push({x:t("x",M,x),y:C[i].size,size:_}),V=C[i+1].size),C[i].size+=b[p].height+f.vGap+_,C[i+1]||(C[i+1]={size:0,ids:[]}),C[i+1].size+=b[p].height+f.vGap}C[i].ids.push(p)}else C[i].ids.push(p),C[i].size+=b[p].height+f.vGap;S===!1&&(b[p].x=t("x",M,x),b[p].y=t("y",V,T))}f.isWrap=!1}if(f.horizontalMasonry){var W;if(0===w[u].ids.length&&(W=w.pop()),f.masonryFill&&w.length>1){C[0].size=0;for(var N,X=f.perpLength,Y=.5*X,p=0,L=w.length;p-i||n<-i}function r(){m&&!v?(n(),d=requestAnimationFrame(r)):m||(gd.width?(h.x=d.width-(w+h.width+b),d.x=e.pageX-d.width+w+h.point+b):(h.x=t-(w-h.width),d.x=e.pageX-t)}function n(e){e.pageY=oa.abs(n)?i>0?"right":"left":oa.abs(i)0?"down":"up")}function a(t){d=(new Date).getTime();var i=r(s,d,t.pageX-u);e.events.dispatchEvent(_o,{flickSpeed:i,isMove:w,swipeDirection:c.swipeDirection}),c.startdrag=!1,c.swipeDirection=!1,w=!1,sectionEnd=!1,f=0}function r(e,t,i){var n=1,o=.7,a=(t-e)/Math.abs(i);return a>n&&(a=n),a<=1){if(u=t.touches[0].pageX,p=t.touches[0].pageY,f++,f<20?l=o():2===g?(l=o(),g=0):g++,!c.disabled&&n(l)){w&&c.swipeDirection===l||(w=!0),t.preventDefault(),t.stopPropagation();var i=y.children,a=i[c.assetId-1],r=i[c.assetId],s=i[c.assetId+1];if(a&&(a.transition=0,a.display="block",a.alpha=1,a.translateX=u-m-Ma.mediaView.width()),r){r.transition=0,r.display="block",r.alpha=1,r.translateX=u-m;var d="left"===l?"next":"prev";e.events.dispatchEvent(jo,d)}s&&(s.transition=0,s.display="block",s.alpha=1,s.translateX=u-m+Ma.mediaView.width())}c.swipeDirection=l}}function n(e){return"left"===e||"right"===e}function o(){var e=u-m,t=p-v;return b=u,C=p,h=e,oa.abs(e)>=oa.abs(t)?e>0?"right":"left":oa.abs(e)0?"down":"up")}function a(t){if(c.startdrag&&wa.zoom<=1){d=(new Date).getTime();var i=r(s,d,u-m);e.events.dispatchEvent(_o,{flickSpeed:i,isMove:w,swipeDirection:c.swipeDirection}),c.startdrag=!1,c.swipeDirection=!1,w=!1,sectionEnd=!1,f=0,u=0,p=0}}function r(e,t,i){var n=1,o=.5,a=(t-e)/Math.abs(i);return a>n&&(a=n),a-1?o():n()},1e3*g)}function n(){l(),r()}function o(){s(),a()}function a(){if(!document.getElementById("likesrc")){var e=document.createElement("script");e.setAttribute("id","likesrc"),e.setAttribute("type","text/javascript"),e.setAttribute("src","https://connect.facebook.net/en_US/all.js#xfbml=1"),document.getElementsByTagName("head")[0].appendChild(e)}}function r(){if(!document.getElementById("plus1src")){var e=document.createElement("script");e.setAttribute("id","plus1src"),e.setAttribute("type","text/javascript"),e.setAttribute("src","https://apis.google.com/js/plusone.js"),document.getElementsByTagName("head")[0].appendChild(e)}}function l(){if(Ue.plusDiv)Ue.plusDiv.alpha=0,Ue.plusDiv.display="block",u(Ue.plusDiv,0),Ue.plusDiv.alpha=1;else{var e=c("plus1",100,40);e.overflow="hidden",e.text="