JOHN BURCHAM PHOTOGRAPHY 928-310-6491 COMMERCIAL, EDITORIAL, ADVENTURE
ABOUT
CONTACT
CLIENTS
Instagram
EMAIL
PORTFOLIO OVERVIEW
COMMERCIAL/Outdoor/Lifestyle
COMMERCIAL/Industry
COMMERCIAL/Microsoft Lumia Smartphones
COMMERCIAL/Healthcare
ADVENTURE
NEW YORK TIMES TRAVEL
EDITORIAL
PERSONAL PROJECTS/Michigan Mud
PERSONAL PROJECTS/Laughlin
PUBLISHED
Microsoft / Lumia Smartphones / Seven Natural Wonders/ Victoria Falls
1 of 21
next
-1}function ve(e){return me(e)?!(wa.overrides.videoAutoPlay||wa.overrides.vimeoDefault):!wa.overrides.videoAutoPlay}function ge(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 fe(e){return"%SPACER%"===e.label}function be(e){return e&&e.media&&1===e.media.length&&"html"===s(e.media[0]).type}function Ce(e){var t=u(e);return!C(e)&&(e.isIndex?e.key:t?t.key:e.key)}function we(e){return function(){function t(){document.isFullscreen||document.webkitIsFullscreen||e.removeAttribute("controls")}document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement?document.webkitExitFullscreen():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)}}function ye(e){function t(e){e.isOpen?o.closeItem(e):o.openItem(e)}function i(){n=new De,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 pa(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(Tn,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&&zi.dropdownSubMenu?ae()||se()?(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(yn,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&&zi.dropdownSubMenu||(o.toggle?t(this.accordionItem):this.accordionItem.isOpen||o.openItem(this.accordionItem),o.dispatchEvent(Vn,this.accordionItem)):"single"===o.expand&&o.closeItem(a[i]);o.layout(fo)},o.closeItem=function(e){"all"!==o.expand&&(e.isOpen=!1,e.content&&(e.content.overflow="hidden",Ze(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&&(Ze(e.content,o.animate?o.updateSpeed:0,{height:e.contentHeight,onComplete:function(){zi.dropdownSubMenu&&/top|bottom/.test(wa.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;r
n.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;r
Ca.menuView.width()&&(g=C)}}o.width=g,o.height=f,o.dispatchEvent(En,{width:g,height:f})},o}function Le(e,t,i){var n=new Se({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 Ze(e,t,r),r}function Se(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 xe(e){function t(){return{left:{arrow1:{fill:zi.cursorColor,d:va.arrow1Left,stroke:zi.cursorColor,strokeWidth:0},arrow2:{fill:zi.cursorColor,d:va.arrow2Left,stroke:zi.cursorColor,strokeWidth:0},arrow3:{fill:"none",d:va.arrow3Left,stroke:zi.cursorColor,strokeWidth:1.5},plus1:{fill:zi.cursorColor,d:va.plus1Left,stroke:zi.cursorColor,strokeWidth:0},plus2:{fill:zi.cursorColor,d:va.plus2Left,stroke:zi.cursorColor,strokeWidth:0},none:{fill:"none",d:"",stroke:"none",strokeWidth:0},disabled:{fill:"none",d:"",stroke:"none",strokeWidth:0}},right:{arrow1:{fill:zi.cursorColor,d:va.arrow1Right,stroke:zi.cursorColor,strokeWidth:0},arrow2:{fill:zi.cursorColor,d:va.arrow2Right,stroke:zi.cursorColor,strokeWidth:0},arrow3:{fill:"none",d:va.arrow3Right,stroke:zi.cursorColor,strokeWidth:1.5},plus1:{fill:zi.cursorColor,d:va.plus1Right,stroke:zi.cursorColor,strokeWidth:0},plus2:{fill:zi.cursorColor,d:va.plus2Right,stroke:zi.cursorColor,strokeWidth:0},none:{fill:"none",d:"",stroke:"none",strokeWidth:0},disabled:{fill:"none",d:"",stroke:"none",strokeWidth:0}}}}function i(){var e=Hi!==ji&&Hi!==Ri&&zi.cursorIconBlendMode?zi.cursorIconBlendMode:"normal";v.element.style["mix-blend-mode"]=e}function n(e){S=e||"x"}function o(e){x=!/none|disabled/.test(zi.navCursorType)&&e}function a(e){return lo&&e.touches?e.touches[0].pageX:e.clientX}function r(e){return lo&&e.touches?e.touches[0].pageY:e.clientY}function l(){g=new fa,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 et,f.id="icon",g.addChild(f),f.element.style["pointer-events"]="none",v.iconLeft=f,b=new et,b.id="icon",g.addChild(b),b.element.style["pointer-events"]="none",v.iconCenter=b,v.iconCenter.d=va.cursorThumbs,C=new et,C.id="icon",g.addChild(C),C.element.style["pointer-events"]="none",v.iconRight=C,s(),ma.addEventListener(rn,d),v.listenerAdded=!0}function s(){var e=Hi!==ji&&Hi!==Ri&&zi.cursorIconBlendMode?zi.cursorIconBlendMode:"normal";v.cursorIconStyle=zi.cursorIconStyle||"arrow2";var t=L.left[v.cursorIconStyle],i=L.right[v.cursorIconStyle];v.element.style["mix-blend-mode"]=e,v.navCursorType=zi.navCursorType,v.iconLeft.d=t.d,v.iconLeft.fill=t.fill,v.iconLeft.stroke=t.stroke,v.iconLeft.strokeWidth=t.strokeWidth,v.iconCenter.fill=zi.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=wa.mediaView.x(),l=wa.mediaView.y(),d=wa.mediaView.width(),c=wa.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;(zi.cursorColor!==L.left.arrow1.fill||zi.cursorIconStyle!==v.cursorIconStyle&&zi.navCursorType!==v.navCursorType)&&(L=t(),s()),V
E&&V
z)&&(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(Zo,v.type):e.events.dispatchEvent(Yo,{navDir:v.type}))}function h(e){"cursor"===zi.navCursorType?(w=!0,v.display="block",v.alpha=.85,/none/.test(zi.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||(ma.element.addEventListener(yn,c),ma.element.addEventListener("contextmenu",m),ma.element.addEventListener("dragstart",m),M=!0)):v.display="none"}function u(){w&&(w=!1,v.alpha=0,v.display="none"),M&&(ma.element.removeEventListener(yn,c),ma.element.removeEventListener("contextmenu",m),ma.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"===zi.navCursorType?v.display="none":M||(ma.element.addEventListener(yn,c),ma.element.addEventListener("contextmenu",m),ma.element.addEventListener("dragstart",m),M=!0)}function m(e){var t=void 0===Fi.disableRightClick||Fi.disableRightClick;t&&e.preventDefault()}var v=new pa({events:new Ke});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(){ma.removeEventListener(rn,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&&(ma.element.removeEventListener(yn,c),ma.element.removeEventListener("contextmenu",m),ma.element.removeEventListener("dragstart",m),M=!1),v.text=""},l.call(v),v}function Me(e){var t=new pa,i=t;t.element.className="staticnav",t.axis=e.axis||"x",t.zone=e.zone,t.zIndex=e.zIndex;var n=new pa,o=new fa,a=new fa({type:"g"}),r=new et,l=new pa,s=new fa,d=new fa({type:"g"}),c=new et;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=Hi!==ji&&Hi!==Ri&&zi.cursorIconBlendMode?zi.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 Te(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-b
d.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 ze(e,t){function i(e){Ze(this,.2,{backgroundColor:Va.bgColorLighter,fontColor:Va.fontColorSelected})}function n(e){Ze(this,.2,{backgroundColor:Va.bgColor,fontColor:Va.fontColor})}t=t||{};var o=new pa;o.backgroundColor=t.backgroundColor||Va.bgColorLight,o.width=250,o.height=150,o.borderRadius=4,o.overflow="hidden",o.boxShadow=Va.shadowDark,o.addEventListener(yn,function(e){e.stopPropagation()});var a=new pa;a.x=25,a.y=20,a.fontColor=t.fontColor||Va.fontColor,a.fontFamily="Helvetica Neue, Arial, sans-serif",a.fontSize=15.5,a.selectable=!0,a.text=e,a.textAlign="center";var r=new pa({type:"button"});r.width=65,r.height=40,r.text="OK",r.outline="none",r.border="none",r.fontWeight="bold",r.fontSize=Va.fontSize,r.fontColor=Va.fontColor,r.fontFamily="Helvetica Neue, Arial, sans-serif",r.backgroundColor=Va.bgColor,o.addChild(r),o.addChild(a);var l=[];dx&&K(dx,"site.siteView")&&(l=[K(dx,"site.siteView")]),dx&&K(dx,"admin.adminView")&&(l=[dx.site.siteView,dx.admin.adminView]);var s=new da(o,{userOverride:t.userOverride||!0,backgroundColor:t.backgroundColor||"#000000",alpha:t.alpha||.5,blurLayers:t.blurLayers||l});s.open(),r.addEventListener(on,i),r.addEventListener(sn,n),r.addEventListener(Ji,i),r.addEventListener(Qi,n),r.addEventListener(yn,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 ke(e,t){function i(e){Ze(this,.2,{backgroundColor:Va.bgColorLighter,fontColor:Va.fontColorSelected})}function n(e){a.call(this)}function o(e){ma.activeFocus&&(a.call(ma.activeFocus),ma.activeFocus.blur()),Ze(this,.2,{backgroundColor:Va.bgColorLighter,fontColor:Va.fontColorSelected})}function a(e){Ze(this,.2,{backgroundColor:Va.bgColor,fontColor:Va.fontColor})}t=t||{};var r=new pa;r.backgroundColor=t.backgroundColor||Va.bgColorLight,r.width=t.width||250,r.height=150,r.borderRadius=5,r.overflow="hidden",r.boxShadow=Va.shadowDark,r.addEventListener(yn,function(e){e.stopPropagation()});var l=new pa;l.x=25,l.y=23,l.fontColor=t.fontColor||Va.fontColor,l.fontFamily="Helvetica Neue, Arial, sans-serif",l.fontSize=15.5,l.selectable=!0,l.text=e,l.textAlign="center";var s=new pa({type:"button"});s.width=65,s.height=40,s.text=t.cancelLabel||"CANCEL",s.outline="none",s.border="none",s.fontWeight="bold",s.fontSize=Va.fontSize,s.fontColor=Va.fontColor,s.fontFamily="Helvetica Neue, Arial, sans-serif",s.backgroundColor=Va.bgColor,r.addChild(s);var d=new pa({type:"button"});d.width=65,d.height=40,d.text=t.okLabel||"OK",d.outline="none",d.border="none",d.fontWeight="bold",d.fontSize=Va.fontSize,d.fontColor=Va.fontColor,d.fontFamily="Helvetica Neue, Arial, sans-serif",d.backgroundColor=Va.bgColor,r.addChild(d),r.addChild(l);var c=[dx.site.siteView];dx&&K(dx,"admin.adminView")&&(c=[dx.site.siteView,dx.admin.adminView]);var h=new da(r,{userOverride:!0,backgroundColor:"#000000",alpha:.5,blurLayers:c});h.open(),s.addEventListener(on,o),s.addEventListener(sn,a),d.addEventListener(on,o),d.addEventListener(sn,a),s.addEventListener(Ji,i),s.addEventListener(Qi,n),d.addEventListener(Ji,i),d.addEventListener(Qi,n),s.addEventListener(yn,function(e){t.onCancel&&t.onCancel(),h.close()}),d.addEventListener(yn,function(e){t.onConfirm&&t.onConfirm(),h.close()});var u=d.element.offsetHeight,p=l.element.offsetWidth;return r.width=p+50,l.width=r.width-50,r.height=l.element.offsetHeight+s.element.offsetHeight+u+50,s.width=r.width,s.y=r.height-s.height-u,d.width=r.width,d.y=r.height-u-0,h.overlayResize(),d.focus(),h}function Oe(e){function t(){c.width=h,c.height=u,l=new pa,l.backgroundColor=zi.overlayColor,l.width=h,l.height=u,r=new Je,r.backgroundColor=zi.contactFieldRectColor,r.fontFamily=zi.contactFont,r.fontColor=zi.contactFontColor,r.fontSize=Hi===ji?16:14,r.width=170,r.height=23,r.x=10,r.y=.5*(u-r.height),r.paddingLeft=3,r.addEventListener(Ji,a),r.addEventListener(Qi,o),r.element.addEventListener(yn,function(e){e.stopPropagation()}),r.element.tabIndex=1,c.setMessage("PASSWORD"),s=new Ue,s.text="SUBMIT",s.x=r.x+r.width+10,s.y=r.y,s.height=23,s.width=70,s.fontSize=Hi===ji?16:14,s.fontFamily=zi.contactFont,s.fontColor=zi.contactFontColor,s.backgroundColor=zi.contactFieldRectColor,c.addChild(l),c.addChild(r),c.addChild(s);var e=dx&&K(dx,"admin.adminView")?[dx.site.siteView,dx.admin.adminView]:[dx.site.siteView];d=new da(c,{userOverride:!0,backgroundColor:"#000000",alpha:.5,blurLayers:e}),c.open(),d.overlayResize()}function i(e){13===e.keyCode&&n(e)}function n(t){c.events.dispatchEvent("SITE_SERVICE_PASSWORD_CHECK",{sectionKey:e.section.key,value:r.value})}function o(e){ma.isInputFocus=!1,""===r.value&&c.setMessage("PASSWORD")}function a(e){ma.isInputFocus=!0,r.value=""}var r,l,s,d,c=new pa({events:e.events}),h=272,u=47;return c.updateSpeed=0,c.addEventListener(bo,function(e){}),c.updatePosition=function(e){Ze(c,c.updateSpeed,{x:Ca.mediaView.x()+.5*(Ca.mediaView.width()-h),y:Ca.mediaView.y()+.5*(Ca.mediaView.height()-u)}),c.updateSpeed=fo},c.close=function(){ma.removeEventListener(un,i),s.removeEventListener(yn,n),d.close()},c.setMessage=function(e){r.value=e},c.open=function(t){t&&(e.section=t),d.open(),setTimeout(function(){ma.addEventListener(un,i),s.addEventListener(yn,n)},100)},t(),c}function Ie(e,t,i){var n=new Ae({type:i.type,hRange:i.hRange,vRange:i.vRange,width:i.width||e.width,height:i.height||e.height,disableOrientationCheck:i.disableOrientationCheck}),o=new Se({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&&Ze(e,t,a),{scale:n,align:o}}function Fe(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 Ae(e){function t(){return m=d/c,"fit"===l||"native"===l?m
p}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 Pe(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){e
1?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()]=$o.round(s):f[i.axis]=$o.round(s),f.ease="cubic-bezier(0.5, 0.5, 0.5, 0.8)",u.hvr&&(f.onUpdate=function(){u.dispatchEvent(Qn)}),Ze(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(),ca.register(u),u}function He(e){function t(t){var i="when scrolling"===e.visibility?.5:1;!e.active&&/hidden/.test(e.visibility)&&(i=0),Ze(v,.35,{alpha:i,backgroundColor:e.hover})}function i(t){!e.ing&&/when scrolling|hidden/.test(e.visibility)&&Ze(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),Ze(v,.35,{alpha:i,backgroundColor:e.hover}),u=r(t)-m[e.axis]-v[e.axis],ma.addEventListener(ln,a,!1),ma.addEventListener(rn,o,!1),ma.addEventListener(tn,a,!1),ma.addEventListener(en,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(Qn)}function a(t){setTimeout(function(){e.ing=!1},10),Ze(v,.35,{backgroundColor:e.color}),ma.removeEventListener(rn,o),ma.removeEventListener(ln,a),ma.removeEventListener(tn,a,!1),ma.removeEventListener(en,o,!1)}function r(t){return"x"===e.axis?I(t):F(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 pa;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 pa;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(on,t),v.addEventListener(sn,i),v.addEventListener(an,n),v.addEventListener($i,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=fo,v.transition=fo,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)):(Ze(m,.35,{alpha:0,onComplete:function(){this.dislplay="none"}}),Ze(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(on,t),v.removeEventListener(sn,i),v.removeEventListener(an,n),v.removeEventListener($i,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(on,t),v.removeEventListener(sn,i),v.removeEventListener(an,n),v.removeEventListener($i,n)},this.enable=function(){v.addEventListener(on,t),v.addEventListener(sn,i),v.addEventListener(an,n),v.addEventListener($i,n)}}function Re(e){function t(t){e.active&&!e.ing&&e.dispatchEvent("WINDOW_SCROLL_TOP")}function i(t){ca.setActive(e),r=o(t),l=e.percent||0,e.mask.addEventListener(tn,a),e.mask.addEventListener(en,n)}function n(t){e.ing===!1&&(e.ing=!0,re()&&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(Qn)}function o(t){return"x"===e.axis?lo?event.touches[0].pageX:event.clientX:lo?event.touches[0].pageY:event.clientY}function a(t){e.ing=!1,e.mask.removeEventListener(tn,a),e.mask.removeEventListener(en,n)}var r=0,l=0,s=0;e.mask.addEventListener($i,i),re()&&e.scrollTopCheck&&window.addEventListener("scroll",t),this.destroy=function(){r&&(e.ing=!1,e.mask.removeEventListener(tn,a),e.mask.removeEventListener(en,n))}}function je(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,ca.focusTarget=l,ma.addEventListener(cn,o,!1),ma.addEventListener(dn,o,!1))}function n(){s=!1,ma.removeEventListener(cn,o,!1),ma.removeEventListener(dn,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(Qn)}var r=e.mask,l=this,s=!1;e.active=!1,r.addEventListener(on,i),r.addEventListener(sn,n),this.destroy=function(){r.removeEventListener(on,i),s&&n()}}function Be(e){function t(){e.mask.addEventListener(rn,o),ma.addEventListener(rn,i)}function i(t){e.mask.hitTestPoint(I(t),F(t))?c=!0:c&&(c=!1,n())}function n(){clearTimeout(r),e.mask.removeEventListener(rn,o),ma.removeEventListener(rn,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(Qn),!c){var u,p={};u="x"===e.axis?e.obj.element.offsetLeft:e.obj.element.offsetTop,p[e.axis]=$o.round(u),Ze(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(on,t),l}function De(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
w+g?(c="top",h=b,m=v):b+v
1&&(B=f.perpLength-j),A.x=Math.round(B),A.y=Math.round(z),A.height=Math.round(H),A.width=Math.round(j),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.x
t.x?1:0}).map(function(e){return e.id});for(var D=0,_=r.gapRowIds.length;D<_;D++){var F,A=e[r.gapRowIds[D]],P=e[r.gapRowIds[D-1]],H=V,R=p(D,_),j=H*(A.width/A.height),B=P?P.x+P.width+f.hGap:0;A.isDoubleSize||(u(/gap|equal/,c)&&R&&(F=n-(B+j),B+j
1&&b[p].isDoubleSize){if(r(i,f.numberOfColumns)){var P=b[p],H=C[i].size,R=C[i-1].size,j=(i-1)*(x+f.hGap);if(M=t("x",j,x),R<=H){var B=H-R;y.push({x:t("x",j,x),y:R,size:B,isLastColumn:!0}),C[i].size+=P.height+f.vGap,C[i-1].size+=P.height+B+f.vGap}else{var B=R-H,D=i*(x+f.hGap);y.push({x:t("x",D,x),y:C[i].size,size:B,isLastColumn:!0}),V=R,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||(g
d.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.abs(n)?i>0?"right":"left":$o.abs(i)<$o.abs(n)&&(n>0?"down":"up")}function a(t){d=(new Date).getTime();var i=r(s,d,t.pageX-u);e.events.dispatchEvent(Ho,{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
=$o.abs(t)?e>0?"right":"left":$o.abs(e)<$o.abs(t)&&(t>0?"down":"up")}function a(t){if(c.startdrag&&ma.zoom<=1){d=(new Date).getTime();var i=r(s,d,u-m);e.events.dispatchEvent(Ho,{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(Ye.plusDiv)Ye.plusDiv.alpha=0,Ye.plusDiv.display="block",u(Ye.plusDiv,0),Ye.plusDiv.alpha=1;else{var e=c("plus1",100,40);e.overflow="hidden",e.text="
";var i=h();i.x=e.width-2,i.y=2,e.addChild(i),ma.addChild(e),Ye.plusDiv=e,Ye.plusClose=i}Ye.plusClose.addEventListener(yn,p)}function s(){if(Ye.likeDiv)Ye.likeDiv.alpha=0,Ye.likeDiv.display="block",u(Ye.likeDiv,0),Ye.likeDiv.alpha=1;else{var e=c("like",320,40);e.overflow="visible",e.text="
";var t=h();t.x=e.width-2,t.y=2,e.addChild(t),ma.addChild(e),Ye.likeDiv=e,Ye.likeClose=t}Ye.likeClose.addEventListener(yn,p)}function d(){v.backgroundColor=E("#000000",.65),v.width=ma.width,v.alpha=0,v.addEventListener(yn,p),m.addChild(v),v.height=ma.height,ma.addChild(m),Ze(v,g,{alpha:1})}function c(e,t,i){var n=new pa;return n.element.setAttribute("id",e),n.backgroundColor=E("#FFFFFF",.85),n.x=.5*(ma.width-t),n.y=.5*(ma.height-i),n.width=t,n.height=i,n.paddingTop=20,n.paddingBottom=2,n.paddingLeft=15,n.zIndex=2e3,n}function h(){var e=new fa;e.width=14,e.height=14,e.rotate=0;var t=new et;return t.id="icon",t.d=va.close,t.strokeWidth=2,t.fill="none",t.stroke="#555",e.addChild(t),e}function u(e,t){if(e&&"block"===e.style.display){var i=.5*(ma.width-e.width),n=.5*(ma.height-e.height);Ze(e,t,{x:i,y:n})}}function p(e){e.target.removeEventListener(yn,p),Ze(v,g,{alpha:0,onComplete:function(){ma.removeChild(m)}}),Ye.plusDiv&&(Ye.plusDiv.display="none"),Ye.likeDiv&&(Ye.likeDiv.display="none")}var m=new at({events:e.events}),v=new pa,g=.35;return m.overflow="hidden",m.events.addEventListener(Ki,function(e){m.resize()}),i(),m.resize=function(){Ze(v,g,{width:ma.width,height:ma.height}),u(Ye.plusDiv,g),u(Ye.likeDiv,g)},m}function Ze(e,t,i){function n(){i.onInit&&o(),setTimeout(r,1e3*t),i.onUpdate&&(d=requestAnimationFrame(a)),l(t);var e;for(e in i)/delay|ease|overwrite|css|onComplete|onCompleteScope|onCompleteParams|onUpdate|onUpdateScope|onUpdateParams|onInit|onInitScope|onInitParams/.test(e)||s(e,i[e])}function o(){i.onInit.apply(i.onInitScope||e,i.onInitParams||[!1])}function a(){d&&(d=requestAnimationFrame(a)),i.onUpdate.apply(i.onUpdateScope||e,i.onUpdateParams||[!1])}function r(t){d&&cancelAnimationFrame(d),i.onComplete&&i.onComplete.apply(i.onCompleteScope||e,i.onCompleteParams||[!1]),i={},l(0)}function l(t){t?(t="all "+t+"s",i.ease&&(t+=" "+i.ease)):t="",e&&e.style&&(e.style.WebkitTransition=t,e.style.MozTransition=t,e.style.OTransition=t,e.style.transition=t)}function s(t,i){e&&e.element?e[t]=i:e&&e.style&&(e.style[t]=i)}if(this===window)return new Ze(e,t,i);var d,c=i.delay||0;this.destroy=function(){delete i.onComplete},setTimeout(n,1e3*c)}function Ge(e){e=e||{},e.type="img",e.className="Bitmap";var t=new pa(e);return t.element.style["user-select"]="none",t}function Ue(e){e=e||{},e.type="button",e.className="Button";var t=new pa(e);return t.borderRadius=0,t.enable=function(){this.alpha=1,this.element.removeAttribute("disabled")},t.disable=function(){this.alpha=.25,this.element.setAttribute("disabled",!0)},t}function qe(e){var t=e||{};t.events=t.events||new Ke;var i,n={listeners:t.events.listeners,dispatchEvent:t.events.dispatchEvent,addEventListener:t.events.addEventListener,removeEventListener:t.events.removeEventListener};for(i in n)t[i]=n[i];return t}function Ke(){function e(e,t){for(var i=t.length;i--;)if(e.callback===t[i].callback&&e.target===t[i].target)return!0;return!1}var t=!1;return{listeners:{},addEventListener:function(t,i){this.listeners[t]||(this.listeners[t]=[]);var n={type:t,callback:i,target:this};e(n,this.listeners[t])||this.listeners[t].push(n)},removeEventListener:function(e,t){if(!this.listeners[e],t&&"function"==typeof t){if(this.listeners[e])for(var i=0,n=this.listeners[e].length;i
-264?a.y-=24:a.y=0)}e=e||{};var i=(e.type||"spinner",e.alpha||.75),n=e.color||"#FFFFFF",o=new pa;o.width=24,o.height=24,o.alpha=i,o.overflow="hidden";var a=new Ge;a.width=24,a.height=288,"#FFFFFF"===n?a.src=ho+"loader1.png":a.src=ho+"loader2.png",o.addChild(a);var r=setInterval(t,80);return o.removeLoader=function(){clearInterval(r)},o}function $e(){function e(){d&&d(function(){r.zoom<=1&&!r.isInputFocus&&(document.body.style["-webkit-overflow-scrolling"]="touch")})}var t,i=!1,n=1,o={},a="Stage",r={children:[],dragElements:[],activeFocus:void 0,isInputFocus:void 0,element:document.body,listeners:ua.listeners,dispatchEvent:ua.dispatchEvent,addEventListener:ua.addEventListener,removeEventListener:ua.removeEventListener,addChild:function(e){e.element.parentNode||document.body.appendChild(e.element),e.parent=this,this.children.push(e),e.dispatchEvent(bo,e)},get topParentName(){return a},addChildAt:function(e,t){},removeChild:function(e){e.events&&e.events.removeAllListeners(e),e.removeLoader&&e.removeLoader(),e.element.parentNode&&document.body.removeChild(e.element);for(var t=this.children.length;t--;)this.children[t]===e&&this.children.splice(t,1);e=null},removeChildren:function(e){if(e&&e.children&&e.children.length>0)for(var t=e.children.length;t--;)this.removeChildren(e.children[t]),e.removeChild(e.children[t])},moveToTop:function(e){for(var t=0,i=this.children.length;i--;)this.children[i].zIndex>=t&&!this.children[i]===e?t=this.children[i].zIndex+1:this.children[i].zIndex--;e.zIndex=t},domContentLoaded:function(){t||(setTimeout(function(){r.element=document.body,i||(document.body.style.overflow="hidden"),document.body.style.margin=0,document.body.style.padding=0,r.dispatchEvent(Ui,r)},10),t=!0)},documentReadyListener:function(){function e(e){return Object.keys(e).map(function(t){return e[t]})}function t(e){return e.reduce(function(e,t){return t&&t.override&&(t.overrides.captionFont&&e.push(t.overrides.captionFont),t.overrides.pageTextFont&&e.push(t.overrides.pageTextFont),t.overrides.pageTitleFont&&e.push(t.overrides.pageTitleFont)),t&&t.thumb&&t.thumb.titleFont&&e.push(t.thumb.titleFont),e},[])}function i(e,t,i){return i.indexOf(e)===t}function n(e,t,i){var n=M(e);return"system"!==n.service}function o(e){return e.reduce(function(e,t){if(!t)return e;var i=M(t);if(i&&i.family&&i.weight&&i.charset&&i.service){e[i.service]||(e[i.service]={families:[]});var n=i.family,o=i.weight.join(","),a=i.charset; e[i.service].families.push(n+":"+o+":"+a)}return e},{})}var a=[zi.captionFont,zi.contactFont,zi.contactTitleFont,zi.copyrightFont,zi.logoFont,zi.menuFont,zi.navbarFont,zi.pageTextFont,zi.pageTitleFont,zi.thumbnailTitleFont,zi.thumbnailTitleBlockFont||""];!Ei&&zi.menuFontMobile&&a.push(zi.menuFontMobile),!Ei&&zi.menuFontTablet&&a.push(zi.menuFontTablet),!Ei&&zi.mobileLogoFont&&a.push(zi.mobileLogoFont),!Ei&&zi.tabletLogoFont&&a.push(zi.tabletLogoFont),WebFontConfig={loading:function(){},fontloading:function(e,t){},fontactive:function(e,t){},fontinactive:function(e,t){},active:function(){r.domContentLoaded(),r.style=document.body.style,r.element=document.body},inactive:function(){r.domContentLoaded(),r.style=document.body.style,r.element=document.body}};var l=a.concat(t(e(Ii))).filter(i).filter(n),s=o(l);s.google&&(WebFontConfig.google=s.google),s.typekit&&Fi.typekitId&&(WebFontConfig.typekit={id:Fi.typekitId}),s.custom&&Fi.customFonts.length&&(WebFontConfig.custom=s.custom,WebFontConfig.custom.urls=["https://"+window.location.host+"/css"]),WebFontConfig.custom||WebFontConfig.google||(r.domContentLoaded(),r.style=document.body.style,r.element=document.body)},globalToLocal:function(e){return{x:e.x,y:e.y}},localToGlobal:function(e){return{x:e.x,y:e.y}},event:function(e){var t={type:e.type,target:e.target,currentTarget:e.target,x:e.x,y:e.y,keyCode:e.which,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY,mouseX:e.clientX-r.stageX,mouseY:e.clientY-r.stageY,deltaX:e.deltaX||-e.wheelDeltaX||0,deltaY:e.deltaY||-e.wheelDeltaY||0,preventDefault:function(){e.preventDefault()},stopPropagation:function(){e.stopPropagation()},dataTransfer:e.dataTransfer};"Windows"===ea?(t.deltaX=Math.max(-50,Math.min(50,e.deltaX)),t.deltaY=Math.max(-50,Math.min(50,e.deltaY)),"Firefox"===ta&&(t.deltaX=20*e.deltaX,t.deltaY=20*e.deltaY)):"Firefox"===ta&&"Macintosh"===ea&&1===e.deltaMode&&(t.deltaX=20*e.deltaX,t.deltaY=20*e.deltaY),e.touches&&(t.touches=e.touches),e.type!==cn&&e.type!==dn||(t.type=dn),e.type!==qi&&e.type!==oo&&e.type!==ao&&e.type!==io||(n=window.visualViewport?window.visualViewport.scale:ae()||se()?document.documentElement.clientWidth/window.innerWidth:document.documentElement.clientHeight/window.innerHeight),ca&&e.clientX&&e.clientY&&ca.hitMask(e.clientX,e.clientY),/click|key|touch|down/.test(e.type)&&(r.userInteraction=!0),r.dispatchEvent(e.type,t)},get disableScroll(){return r._disableScroll},set disableScroll(e){if("Safari"!==ta){r._disableScroll=e;var t=document.getElementsByTagName("html")[0];e?(r._previousOverflow={x:document.body.style.overflowX,y:document.body.style.overflowY},t.style.overflow="hidden",r.element.style.overflow="hidden"):(t.style.overflow="initial",r._previousOverflow&&(r.element.style.overflowX=r._previousOverflow.x,r.element.style.overflowY=r._previousOverflow.y))}},get getChildren(){return children},get images(){return document.images},get forms(){return document.forms},get links(){return document.links},get anchors(){return document.anchors},get scripts(){return document.scripts},get plugins(){return document.plugins},get embeds(){return document.embeds},get width(){var e=window.innerWidth,t=e*n;return n<=1?t:e},get height(){var e=window.innerHeight,t=e*n;return n<=1?t:e},get stageX(){return 0},get stageY(){return 0},get scrollX(){return o.scrollX||window.scrollX},set scrollX(e){o.scrollX=e},get scrollY(){return o.scrollY||window.scrollY},set scrollY(e){o.scrollY=e},get selectable(){return i},set selectable(e){i=e},get zoom(){return n},set zoom(e){n=e},get backgroundColor(){return o.backgroundColor||document.body.style.backgroundColor},set backgroundColor(e){o.backgroundColor=e,document.body.style.backgroundColor=e},get transition(){return o.transition},set transition(e){o.transition=e,e=0===e?"none":"all "+e+"s",document.body.style.WebkitTransition=e,document.body.style.MozTransition=e,document.body.style.OTransition=e,document.body.style.transition=e},get disableKeyNavigation(){return o.disableKeyNavigation},set disableKeyNavigation(e){o.disableKeyNavigation=e},focus:function(){r.activeFocus=r},blur:function(){}};r.proxy=r;var l=document.createElement("div");l.className="scrollbar-measure",document.body.appendChild(l);var s=l.offsetWidth-l.clientWidth;document.body.removeChild(l),Jo=0===s;var d;Hi!==ji&&Hi!==Ri||(d=he(200)),window.addEventListener(io,function(t){setTimeout(function(){e(),r.event(t)},200)},!1),window.addEventListener(Qn,function(e){r.scrollY=window.scrollY,r.event(e)},!1),window.addEventListener($i,r.event,!1),window.addEventListener(en,r.event,!1),window.addEventListener(tn,r.event,!1),window.addEventListener(nn,r.event,!1),window.addEventListener(on,r.event,!1),window.addEventListener(an,r.event,!1),window.addEventListener(rn,r.event,!1),window.addEventListener(ln,r.event,!1),window.addEventListener(sn,r.event,!1),window.addEventListener(yn,r.event,!1),window.addEventListener(qi,r.event,!1),window.addEventListener(no,r.event,!1),window.addEventListener(oo,r.event,!1),window.addEventListener(ao,r.event,!1),window.addEventListener(un,r.event,!1),window.addEventListener(hn,r.event,!1);var c;return window.addEventListener(qi,function(e){clearTimeout(c),c=setTimeout(function(){r.dispatchEvent(Ki,e)},200)},!1),window.addEventListener(io,function(e){r.dispatchEvent(io,e)},!1),window.addEventListener(cn,r.event,{passive:!1}),window.addEventListener(dn,r.event,{passive:!1}),r.documentReadyListener(),r}function et(){return new fa({type:"path"})}function tt(){return new fa({type:"rect"})}function it(){return new fa({type:"circle"})}function nt(e){var t;return e=e||{},e.type="textarea",e.className="TextArea",t=new pa(e),t.borderRadius=0,t.style["-webkit-appearance"]="none",t.element.addEventListener("focus",function(){"Safari"===ta&&document.webkitCancelFullScreen(),ma.disableKeyNavigation=!0,ma.activeFocus=t,ma.isInputFocus=!0}),t.element.addEventListener("blur",function(){ma.disableKeyNavigation=!1,ma.isInputFocus=!1}),t}function ot(e){e=e||{},e.type="span",e.className="TextField";var t=new pa(e);return t.selectable=!0,t.fontFamily="sans-serif",t.element.addEventListener("focus",function(){ma.disableKeyNavigation=!0,ma.activeFocus=t,ma.isInputFocus=!0}),t.element.addEventListener("blur",function(){ma.disableKeyNavigation=!1,ma.isInputFocus=!1}),t}function at(e){var t=e||{};return t.events=t.events||new Ke,new pa(t)}function rt(e){function t(e){r.dispatchEvent(mo,e),l&&r.play()}function i(e){r.dispatchEvent(Gi,e)}function n(e,t){var i=r.element.canPlayType(e+';codecs="'+t+'"');return""!==i}function o(){r.dispatchEvent("playbackEnd")}function a(e){r&&na[e.keyCode]===bn&&r.togglePlay()}e=e||{},e.type="video",e.className="VideoPlayer";var r=new pa(e),l=!1;r.element.setAttribute("playsinline",!0),r.element.addEventListener(mo,t,!1),r.element.addEventListener(Gi,i,!1),r.width=e.width||640,r.height=e.height||480,r.parent=e.parent,r.hud=new lt(r),r.hud.disable();var s=e.alwaysMuted,d=!0,h=new Ue;return h.x=20,h.y=20,h.zIndex=10,h.borderRadius=2,h.backgroundColor="white",h.text="TAP TO UNMUTE",h.display="none",h.element.style.padding="3px 6px",r.unmuteBtn=h,r.unmuteClick=function(){r.hud.unmute(),r.hud.enable(),h.display="none",h.removeEventListener("click",r.unmuteClick),s=!1},h.addEventListener("click",r.unmuteClick),r.unmuteBtn=h,r.parent.addChild(h),r.disableUnmuteButton=function(){d=!1,h.display="none"},r.play=function(){var e=r.element.play();void 0!==e&&e.then(function(){r.paused=!1,s?r.element.muted=!0:ma.userInteraction&&(h.display="none",r.hud?r.hud.unmute():r.element.muted=!1),r.dispatchEvent(Zn),ma.addEventListener(hn,a)}).catch(function(){r.hud?r.hud.mute():r.element.muted=!0,d&&(h.display="block"),r.element.play(),r.paused=!1,r.dispatchEvent(Zn),ma.addEventListener(hn,a)})},r.pause=function(){r.element.pause(),r.paused=!0,r.dispatchEvent(Yn)},r.togglePlay=function(){r.element.paused?r.play():r.pause()},r.setSize=function(e,t,i){r&&(0===i?(r.width=e,r.height=t):Ze(r,i,{width:e,height:t}))},r.setSource=function(e,t){t&&r.element.setAttribute("autoplay",!0),n("video/mp4","avc1.42E01E, mp4a.40.2")?(r.src=c(e),r.element.addEventListener("ended",o),t&&(l=!0)):D(so+e.replace(k(e),"webm"))?(r.src=c(e.replace(k(e),"webm")),r.element.addEventListener("ended",o),t&&(l=!0)):window.open(so+e)},r.destroy=function(){r&&r.element.removeEventListener("ended",o),r.removeKeyListener(),r=null},r.removeKeyListener=function(){ma.removeEventListener(hn,a)},r}function lt(e){function t(){L.height=50,L.width=e.width,L.alpha=0,L.zIndex=5,e.parent.addChild(L);var t;t=e.element.paused?va.pause:va.play,v=a(t,h),L.addChild(v),g=a(va.fullscreen,we(e.element)),L.addChild(g);var i=va.volume,n=u;Hi===Ri&&(i="",n=function(){}),f=a(i,n),L.addChild(f),r(),L.interval=setInterval(d,100),e.element.addEventListener("ended",c)}function i(t){if(!ae()&&!se()){var i=I(t),a=wa.siteView.unifiedPageScroll()||/unifiedSiteScroll/.test(wa.overrides.siteDisplayBehavior)?t.pageY:F(t);e.hitTestAbs(i,a)?n():o()}}function n(){T||(T=!0,L.display="block",Ze(L,fo,{alpha:1}))}function o(){T&&(T=!1,Ze(L,fo,{alpha:0,onComplete:function(){L.display="none",T=!1}}))}function a(e,t){var i=new pa;i.width=S,i.height=x,i.backgroundColor=M;var n=new fa;n.id="svg",n.width=12,n.height=12,n.left=$o.round(.5*(i.width-n.width)),n.top=$o.round(.5*(i.height-n.height)),i.addChild(n);var o=new et;o.id="icon",o.d=e,o.fill="#FFFFFF",o.alpha=.65,n.addChild(o);var a=new pa;return a.width=i.width,a.height=i.height,i.addChild(a),i.hit=a,i.icon=o,i.svg=n,a.icon=o,a.bg=i,a.addEventListener(yn,t),a.addEventListener(on,function(){Ze(this.bg,fo,{backgroundColor:"rgba(0,0,0,0.85)"}),Ze(this.icon,fo,{alpha:1})}),a.addEventListener(sn,function(){Ze(this.bg,fo,{backgroundColor:M}),Ze(this.icon,fo,{alpha:.65})}),i}function r(){b=new pa,b.zIndex=-1,b.backgroundColor=M,b.height=x,L.addChild(b),b.buffer=new pa,b.buffer.backgroundColor="#FFFFFF",b.buffer.alpha=.12,b.buffer.width=1,b.buffer.height=L.height,b.addChild(b.buffer),b.progress=new pa,b.progress.backgroundColor="#FFFFFF",b.progress.alpha=.25,b.progress.width=1,b.progress.height=L.height,b.addChild(b.progress),b.time=new pa,b.time.fontFamily="Arial, Helvetia, sans-serif",b.time.fontColor="#FFF",b.time.fontSize=10,b.time.text="00:00 / 00:00",b.time.alpha=1,b.addChild(b.time),b.time.x=10,b.time.y=20,b.head=new pa,b.head.backgroundColor="#FFFFFF",b.head.alpha=0,b.head.x=30,b.head.width=1,b.head.height=L.height,b.addChild(b.head),b.headTime=new pa,b.headTime.fontFamily="Arial, Helvetia, sans-serif",b.headTime.fontColor="#FFFFFF",b.headTime.fontSize=10,b.headTime.alpha=0,b.headTime.text="00:00",b.headTime.x=30,b.headTime.y=-15,b.addChild(b.headTime),b.hit=new pa,b.hit.height=L.height,b.addChild(b.hit),ae()||se()||(b.hit.addEventListener(on,function(){Ze(b.buffer,fo,{alpha:.2}),Ze(b.progress,fo,{alpha:.4}),Ze(b.time,fo,{alpha:1}),Ze(b.head,fo,{alpha:1}),Ze(b.headTime,fo,{alpha:1}),Ze(b,fo,{backgroundColor:"rgba(0,0,0,0.85)"})}),b.hit.addEventListener(sn,function(){Ze(b.buffer,fo,{alpha:.12}),Ze(b.progress,fo,{alpha:.25}),Ze(b.time,fo,{alpha:.5}),Ze(b.head,fo,{alpha:0}),Ze(b.headTime,fo,{alpha:0}),Ze(b,fo,{backgroundColor:M})}),b.hit.addEventListener(rn,l)),b.hit.addEventListener(yn,s)}function l(t){var i=p(t);b.head.transition=0,b.head.x=i,b.headTime.transition=0,b.headTime.x=i,b.headTime.text=m(i/y*e.element.duration)}function s(t){var i=p(t);b.head.x=i,b.headTime.x=i;var n=i/y*e.element.duration;e.element.currentTime=n,b.headTime.text=m(n),d(e)}function d(){e.element.buffered.length>0&&(bufferedPercent=e.element.buffered.end(0)/e.element.duration,b.buffer.transition=0,b.buffer.width=bufferedPercent*y,playedPercent=e.element.currentTime/e.element.duration,b.progress.transition=0,b.progress.width=playedPercent*y,b.time.text=m(e.element.currentTime)+" / "+m(e.element.duration))}function c(){clearInterval(L.interval)}function h(){e.element.paused?(e.play(),v.icon.d=va.pause,L.interval=setInterval(d,50)):(e.pause(),v.icon.d=va.play)}function u(){e.element.muted?L.unmute():L.mute()}function p(e){return lo&&e.touches?e.touches[0].offsetX-S-b.x:e.offsetX}function m(e){return minutes=Math.floor(e/60),e=Math.floor(e-60*minutes),minutes=minutes<10?"0"+minutes:minutes,e=e<10?"0"+e:e,minutes+":"+e}var v,g,f,b,C,w,y,L=new pa,S=50,x=50,M="rgba(0,0,0,0.65)",T=!0;return L.show=n,L.hide=o,L.resize=function(e,t,i,n,o){var a=t,r=i,l=n,s=o;C=n,w=o,y=l-3*S,0===e?(L.width=l,L.x=$o.floor(a),L.y=$o.floor(r+s-L.height),g.x=l-g.width,f.x=l-g.width-f.width,b.x=S,b.width=y,b.hit.width=y):(Ze(L,e,{width:l,x:a,y:r+o-L.height}),Ze(g,e,{x:l-g.width}),Ze(f,e,{x:l-g.width-f.width}),Ze(b,e,{x:S,width:y}),Ze(b.hit,e,{width:y})),d()},L.mute=function(){e.element.muted=!0,f.icon.d=va.mute},L.unmute=function(){e.element.muted=!1,f.icon.d=va.volume},L.disable=function(){o(),ae()||se()||ma.removeEventListener(rn,i)},L.enable=function(){n(),ae()||se()||ma.addEventListener(rn,i)},t.call(L),L}function st(e){function t(e){var t=new Ue;return t.x=20,t.y=20,t.zIndex=10,t.borderRadius=2,t.backgroundColor="white",t.text="TAP TO UNMUTE",t.display="block",t.element.style.padding="3px 6px",e.unmuteBtn=t,e.unmuteClick=function(){t.display="none",t.removeEventListener("click",e.unmuteClick),e.element.contentWindow.postMessage(JSON.stringify({method:"setVolume",value:1}),s)},t.addEventListener("click",e.unmuteClick),e.unmuteBtn=t,e.addEventListener("load",function(){setTimeout(function(){e.parent.addChild(t)},1e3)}),e.disableUnmuteButton=function(){t.display="none"},t}function i(){c.ended||c.dispatchEvent("playbackEnd"),c.ended=!0}function n(){l="player"+st.getNextPlayerID(),c.element.id=l,c.element.setAttribute("frameborder","0"),c.element.setAttribute("webkitAllowFullScreen",""),c.element.setAttribute("mozallowfullscreen",""),c.element.setAttribute("allowFullScreen",""),c.element.style["user-select"]="none"}function o(t){var n;try{n=JSON.parse(t.data)}catch(e){n={}}if(n.player_id===l)switch("ready"===n.event&&setTimeout(function(){a(n)},10),"error"===n.event,"getVideoWidth"===n.method&&n.value&&n.value!==c.videoWidth&&(e.thumbBuild||(c.width=n.value,c.element.setAttribute("width",n.value)),c.videoWidth=n.value,c.videoHeight&&c.dispatchEvent(vo)),"getVideoHeight"===n.method&&n.value&&n.value!==c.videoHeight&&(e.thumbBuild||(c.height=n.value,c.element.setAttribute("height",n.value)),c.videoHeight=n.value,c.videoWidth&&c.dispatchEvent(vo)),n.event){case"finish":i();break;case"pause":n.data.seconds>=n.data.duration-1?i():(c.dispatchEvent(Yn),"function"==typeof c.onpause&&c.onpause(),c.paused=!0);break;case"play":c.dispatchEvent(Zn),"function"==typeof c.onplay&&c.onplay(),c.paused=!1}}function a(e){c&&(c.loaded=!0,!ma.userInteraction&&d&&c.element.contentWindow.postMessage(JSON.stringify({method:"setVolume",value:0}),s),c&&c.element.contentWindow&&(c.element.contentWindow.postMessage(JSON.stringify({method:"getVideoWidth",value:e.player_id}),s),c.element.contentWindow.postMessage(JSON.stringify({method:"getVideoHeight",value:e.player_id}),s),c.element.contentWindow.postMessage(JSON.stringify({method:"addEventListener",value:"finish"}),s),c.element.contentWindow.postMessage(JSON.stringify({method:"addEventListener",value:"pause"}),s),c.element.contentWindow.postMessage(JSON.stringify({method:"addEventListener",value:"play"}),s),c.element.contentWindow.postMessage(JSON.stringify({method:"addEventListener",value:"error"}),s)))}function r(e){c&&na[e.keyCode]===bn&&c.togglePlay()}e=e||{},e.type="iframe",e.className="VimeoPlayer";var l,s,d,c=new pa(e),h="";return c.parent=e.parent,c.style.pointerEvents="auto",ae()&&e.thumbBuild&&(c.style.position="fixed"),n(),window.addEventListener("message",o,!1),c.setSource=function(i,n){d=!!n;try{s="https://player.vimeo.com/video/"+i.split("vimeo:")[1],h=s;var o=n?"&autoplay=1":"";wa.overrides.videoLoop?c.src=s+"?api=1&autopause=0&loop=1&wmode=opaque"+o+"&player_id="+l:c.src=s+"?api=1&autopause=0&wmode=opaque"+o+"&player_id="+l;var a=c.width||e.width||640,r=c.height||e.height||480;c.element.setAttribute("width",a),c.element.setAttribute("height",r),c.width=a,c.height=r,n&&(c.element.setAttribute("allow","autoplay"),ma.userInteraction?(c.unmuteBtn&&(c.unmuteBtn.display="none",c.unmuteBtn.removeEventListener("click",c.unmuteClick)),c.element.contentWindow.postMessage(JSON.stringify({method:"setVolume",value:1}),s)):t(c)),c.element.setAttribute("frameborder",0),c.element.setAttribute("webkitallowfullscreen",!0),c.element.setAttribute("mozallowfullscreen",!0),c.element.setAttribute("allowfullscreen",!0)}catch(e){}},c.togglePlay=function(){c.paused?c.play():c.pause()},c.setLoop=function(e){c&&c.loaded&&c.element.contentWindow&&(window.addEventListener("message",o,!1),c.element.contentWindow.postMessage(JSON.stringify({method:"loop",value:e}),h))},c.play=function(){c.ended=!1,ma.userInteraction?(c.unmuteBtn&&(c.unmuteBtn.display="none",c.unmuteBtn.removeEventListener("click",c.unmuteClick)),c.element.contentWindow.postMessage(JSON.stringify({method:"setVolume",value:1}),s)):t(c),window.addEventListener("message",o,!1),c&&c.element.contentWindow&&(c.loaded?(c.element.contentWindow.postMessage(JSON.stringify({method:"play",value:""}),h),ma.addEventListener(hn,r),c.paused=!1,c.dispatchEvent(Zn)):c.element.addEventListener("load",function(){c.loaded=!0,c.element.contentWindow.postMessage(JSON.stringify({method:"play",value:""}),h),ma.addEventListener(hn,r),c.paused=!1,c.dispatchEvent(Zn)}))},c.pause=function(){c&&c.loaded&&c.element.contentWindow&&(c.element.contentWindow.postMessage(JSON.stringify({method:"pause",value:""}),h),c.paused=!0)},c.setSize=function(e,t){c&&(c.transition=0,c.width=e,c.height=t)},c.align=function(e,t){c&&(c.transition=0,c.style.left=e+"px",c.style.top=t+"px")},c.destroy=function(){window.removeEventListener("message",o,!1),c.removeKeyListener(),c=null},c.removeKeyListener=function(){ma.removeEventListener(hn,r)},c}function dt(e){function t(){if(zi.siteDisplayBehavior||zi.unifiedPageScrolling||(zi.siteDisplayBehavior="none"),Hi!==ji&&Hi!==Ri||(zi.siteDisplayBehavior="none"),/disabled/.test(zi.cursorIconStyle)?zi.navCursorType=zi.cursorIconStyle:zi.navCursorType=zi.navCursorType?zi.navCursorType:"cursor",ma.backgroundColor=zi.siteBackgroundColor,le()&&(zi.mobileAutoPlay=!1),ue.siteView.updateStyle(),W(),e.parentView=ue.siteView,e.parentController=ue,e.events=ue.events,e.siteControllerEvents=ue.events,ue.sectionController=new e.SectionController(e),ue.menuController=new e.MenuController(e),e.menuController=ue.menuController,Hi===ji||Hi===Ri&&zi.footerOnMenuTablet||(ue.footerController=new e.FooterController(e)),ue.logoController=new e.LogoController(e),ue.navbarController=new e.NavbarController(e),ue.caption=new xa,ue.siteView.addChild(ue.caption.container),ue.addressController=new e.AddressController(e),"cursor"!==zi.navCursorType||ae()||se()||(ue.cursor=new e.Cursor(e),ue.siteView.addChild(ue.cursor)),ue.tooltip=new e.Tooltip(e),ue.service=new e.SiteService(e),isLogin&&(Fi.adminLockout?ze("ADMIN LOCKED FOR MAINTENANCE.
Please try again later.
If problem persists, contact support."):oe(ta,ia)?ue.login=new Vi(e):ze("Admin not supported for this browser ["+ta+" "+ia+"]. Please use latest version of Chrome, Firefox, Safari or MS Edge.")),ue.events.dispatchEvent(Hn,{id:"layoutModelInit"}),ue.events.addEventListener(Zo,m),ue.events.addEventListener(Yo,v),ue.events.addEventListener(Nn,g),ue.events.addEventListener(Wn,b),ue.events.addEventListener(qn,f),ue.events.addEventListener(Kn,w),ue.events.addEventListener(Xn,C),ue.events.addEventListener(kn,x),ue.events.addEventListener("ADDRESS_URI_CHANGE_PASSIVE",M),ue.events.addEventListener(In,n),ue.events.addEventListener(Mo,q),ue.events.addEventListener(Eo,Q),ue.events.addEventListener(Oo,$),ue.events.addEventListener($n,p),ue.events.addEventListener("OVER_LOGO",ee),ue.events.addEventListener("privateGalleryAuthCheck",F),ue.events.addEventListener("passwordViewUpdate",A),ue.events.addEventListener("updateAssetId",T),ue.events.addEventListener("UPDATE_CONTENT_HEIGHT",N),ue.events.addEventListener(Ko,o),ue.events.addEventListener("siteAnchorCaptionUpdate",V),ma.addEventListener(Ki,h),ma.addEventListener(ao,d),ma.addEventListener(io,u),ma.addEventListener(hn,y),(ae()||se())&&window.addEventListener("scroll",function(){clearTimeout(he),me=!0,he=setTimeout(function(){he=null,me=!1,c()&&(ue.events.dispatchEvent(Ki),fe=!1)},200)}),ma.zoom>1?ue.events.dispatchEvent(Ki):h(),ue.events.addEventListener("cursorAxisUpdate",ie),to=90===Math.abs(window.orientation)?"horizontal":"vertical",window.isStaging){var t=re();ue.siteView.addChild(t)}}function n(){dx.admin.events.addEventListener(Fn,R),dx.admin.events.addEventListener(An,j),dx.admin.events.addEventListener(Pn,B),dx.admin.events.addEventListener(Hn,D),dx.admin.events.addEventListener(Rn,X),dx.admin.events.addEventListener(jn,Y),dx.admin.events.addEventListener(Bn,Z),dx.admin.events.addEventListener(Dn,G),dx.admin.events.addEventListener(_n,U),dx.admin.events.addEventListener(Go,a),dx.admin.events.addEventListener(Uo,r)}function o(){ue.events.dispatchEvent(qo,{name:"js"})}function a(){ue.events.dispatchEvent(Go)}function r(){ue.events.dispatchEvent(Uo)}function d(){ma.zoom<=1}function c(){return(ae()||se())&&fe&&window.innerHeight===document.documentElement.clientHeight}function h(e){if(/responsive/.test(zi.menuAlignHorizontal)){var t=1;ae()&&(t=window.devicePixelRatio||1);var i=(zi.screenWidthBreakpoint||800)*t,n=Ca.isMenuResponsiveOverlay;Ca.isMenuResponsiveOverlay=ma.width
-1)&&o&&"site"===a?(ue.caption.text=P(o),ue.caption.show(z)):(ue.caption.text="",ue.caption.hide(),ue.caption.scroll&&ue.caption.scroll.destroy())}}function V(e){if(de&&de.asset&&ue.caption){var e=e||de.asset;e.overrides||(e.overrides={}),ve=e.overrides||{},ue.caption.text=P(O(e));var t=J(Hi===ji?"site":void 0,e.overrides.captionAnchorTo,wa.overrides.captionAnchorTo),n=i(de.section)&&zi.slideshowCaptions;"site"===t&&(n||de.mode.indexOf("caption")>-1)?ue.caption.show(z):(ue.caption.text="",ue.caption.hide(),ue.caption.scroll&&ue.caption.scroll.destroy())}else ue.caption&&(ue.caption.text="",ue.caption.hide(),ue.caption.scroll&&ue.caption.scroll.destroy())}function z(){ue.caption.container.transition=0,ue.caption.container.zIndex=wa.captionView.zIndex(),J(ve.captionCloseButton,wa.overrides.captionCloseButton)?ue.caption.showCloseButton():ue.caption.hideCloseButton();var e={onInit:function(){ue.caption.scroll&&ue.caption.scroll.hide()},onComplete:function(){ue.caption.scroll&&(ue.caption.scroll.show(),ue.caption.scroll.resize())}},t=J(ve.captionBackgroundRectColor,wa.overrides.captionBackgroundRectColor),i=J(Hi===ji?zi.overlayAlpha:void 0,ve.captionBackgroundAlpha,wa.overrides.captionBackgroundAlpha);ue.caption.backgroundColor=E(t,i),ue.caption.fontFamily=ve.captionFont||wa.overrides.captionFont,ue.caption.fontSize=ma.width
0&&!wa.getPassedSection(de.id))ne=e,se.events.dispatchEvent("privateGalleryAuthCheck",{section:de});else if(n&&n.password.length>0&&!wa.getPassedSection(n.id))ne=e,se.events.dispatchEvent("privateGalleryAuthCheck",{section:n});else if(de){ne=void 0;var a=c(de),n=r(de),h={section:de,parentSection:n,mediaToRender:L(de.mediaItems),path:ce,assetId:he,asset:s(de.mediaItems[he]),mode:ue,info:{isInit:me,isSectionChange:de!==K(pe,"section"),isParentSectionChange:n!==K(pe,"parentSection"),isAssetChange:he!==K(pe,"assetId"),isModeChange:ue!==K(pe,"mode"),isLandingMedia:i(de),mediaViewState:a,isDeepLink:me&&""!==e,isMediaViewStateChange:K(pe,"info.mediaViewState")!==a,isIntroGallery:de.isIntroGallery,flickSpeed:ae,lastUri:te,isThumbsFirst:d(de),isMobileVideoClick:le,isBlog:y(de.id)}};se.setTitle(),Ca.updateSectionState(de.key,{assetId:he,mode:ue}),Ca._section=h.section,Ca._uriState=h,ie=h,t?se.events.dispatchEvent("ADDRESS_URI_CHANGE_PASSIVE",ie):o(),l(de),pe=h,te=e,me=!1,ae=void 0,le=!1}}function o(){se.events.dispatchEvent(kn,ie)}function a(){ie.asset=s(de.mediaItems[he]),se.events.dispatchEvent(kn,ie)}function l(e){var t=s(e.media[0]);"link"!==t.type||t.thumb||("_blank"===t.linkTarget?window.open(t.content):"_self"===t.linkTarget&&(window.location.href=t.content))}function c(e){return e.slideshow||e.label===Bi?"landingMedia":"mediaView"}function h(e){he=y(de.id)?w(e.id,de.mediaItems.length-1):e.id,re=!0,ya.setPath({value:H(),passive:!0,history:!1})}function p(e){e.section&&de.key!==e.section.key&&(ue=e.mode,he=e.assetId,de=e.section,e.path=e.section.key,clearTimeout(ve),ve=setTimeout(function(){N(e,!0)},30))}function m(e,t){if(e.indexOf("/")>-1){var i=e.split("/");return i[0]==t||i[1]==t}return e==t}function v(e,t){return e.indexOf(t)>-1}function g(e){e=e.split("/"),ue=k(e),delete de.isIntroGallery,de=b(e),y(de.id)?(he=z(e)?z(e):de.mediaItems.length,he=w(he-1,de.mediaItems.length)):he=z(e)?z(e):0,he=de&&de.key&&m(de.key,he)&&!v(e,he)?0:he,he=0!==he?he-1:he,!z(e)&&d(de)&&(he=-1,q("thumbs"))}function b(e){if(ce=S(e))return de=Ii[ce],wa.section(de),de;if(wa.backgroundImages.length){var t=wa.backgroundImages.filter(function(e){return!!ki[e]});return de={id:Bi,key:Bi,label:Bi,media:t,mediaItems:t,overrides:{captionDefault:zi.slideshowCaptions},password:"",thumb:{},visible:!0},wa.section(de),V(),de}return M(),!!ce&&(he=0,de=Ii[ce],de.isIntroGallery=!0,wa.section(de),V(),T(de),de)}function C(e){return ce=S(e),!!ce&&(de=Ii[ce],wa.section(de),de)}function S(e){var t=[e[0]+"/"+e[1],e[0]],i=t.length;if(i>0)for(var n=0;n
1&&q("thumbs")}function V(){if(Hi!==ji&&de&&he>-1){var e=s(de.mediaItems[he]);e||(e={overrides:{}});var t=J(e.overrides.captionDefault,wa.overrides.captionDefault);Hi===ji&&(t=!1),"caption"===oe?q("caption"):""===oe?Q("caption"):t?q("caption"):Q("caption"),Z()}}function E(e){var t=S(e.split("/"));return t?R(e).replace(R(t),""):e}function z(e){var t=B(e.join("/")),i=E(t),n=i.split("/")[1];return!isNaN(n)&&Number(n)}function k(e){var t=/thumbs|share|inquiry|caption|fotomoto/;return t.test(e[3])?e[3]:t.test(e[2])?e[2]:t.test(e[1])?e[1]:""}function O(e){return"mailTo:"+e.replace("mailto:","").replace("mailTo:","")}function I(e){var t=/[-0-9a-zA-Z.+_]+@[-0-9a-zA-Z.+_]+\.[a-zA-Z]{2,4}/g.test(e.path);return!!t&&function(){window.location.href=O(e.path)}}function F(e){return("[one]"===e.label||"[like]"===e.label)&&function(){se.events.dispatchEvent($n,e)}}function A(e){return"_blank"===e.linkTarget&&function(){window.open(e.path)}}function P(e){return!D(e)&&"_self"===e.linkTarget&&"external"===e.type&&function(){window.location.href=e.path}}function H(){var e=B(ce),t=e;if(de&&!j(ce)){var i=W(t);if(i){t=i&&i.key||"",t="/"+t+"/";var n=z(e.split("/"));n&&he>-1&&(he=n-1),he>-1&&(t+=Number(he)+1+"/"),ue.length>0&&(t+=ue+"/")}else t="/"}return t}function j(e){return/^(ht|f)tp(s?):\/\//.test(e)}function B(e){var t=window.location.protocol+"//"+window.location.host;return"string"==typeof e?e.replace(t,"").replace(/^\/|\/$/g,""):""}function D(e){return!!e.path&&(C(e.path.split("/"))?(e.section=C(e.path.split("/")),e.type="internal",!0):(e.path=B(e.path),e.section=W(e.path),e.type="internal",!0))}function _(e){e.section&&!i(e.section)&&(!e.isThumbClick&&f(e.section)?q("thumbs"):"none"===wa.overrides.thumbnailType?Q("thumbs"):e.section.mediaItems.length>1&&wa.overrides.thumbnailDefaultOn&&!e.isThumbClick?q("thumbs"):e.section.mediaItems.length>1&&e.isThumbClick&&"strip"===wa.overrides.thumbnailType&&wa.overrides.thumbnailDefaultOn&&"displace"===wa.overrides.thumbnailDock&&q("thumbs"),e.nothumbs&&Q("thumbs"),!e.isThumbClick&&d(e.section)&&0===he&&U("thumbs")&&(he=-1))}function W(e){var t,i=e.split("/"),n=i[0];return i[0]&&i[1]&&(t=i[0]+"/"+i[1]),t?b(t.split("/")):!!n&&b(n.split("/"))}function N(e,t){action=F(e)||I(e)||A(e)||P(e)||X(e,t),action()}function X(e,t){return e.section?(wa.section(e.section),de=e.section):e.section||e.path||(g(""),wa.section(de)),ce=e.path,he=e.section&&y(e.section.id)?J(e.assetId,e.section.mediaItems.length-1):e.assetId||0,ue=e.mode,le=!!e.isMobileVideoClick,t||_(e),V(),Q("inquiry"),Q("share"),function(){ya.setPath({value:H(),history:!t,passive:t})}}function Y(e){$(e),Z(),ya.setPath({value:H()})}function Z(){U("thumbs")&&/fill|vMasonry|hMasonry/.test(wa.overrides.thumbnailType)&&Q("caption")}function G(e){var t=de.mediaItems.length-1;!re&&y(de.id)&&(he=w(he,t)),re=!1,y(de.id)?"next"===e.navDir?he=he>0?he-1:0:"prev"===e.navDir&&(he=Hi===ji||Hi===Ri?he
0?he-1:0:"next"===e.navDir&&(he=Hi===ji||Hi===Ri?he
-1&&(a.footerView.updateStyle(e),a.footerView.updatePosition(e)))}function n(){Hi===ji&&a.footerView.hide()}function o(){a.footerView.show()}var a=new qe({parentView:e.parentView,parentController:e.parentController,events:e.siteControllerEvents});return a.updateSpeed=0,a.footerView=new e.FooterView(e),a.footerView.alpha=0,a.parentView.addChild(a.footerView),a.events.addEventListener(Hn,i),a.events.addEventListener(Rn,i),a.events.addEventListener(Dn,i),a.events.addEventListener(Ki,a.footerView.updatePosition),a.events.addEventListener(jo,n),a.events.addEventListener(Ro,o),a.events.addEventListener(On,function(){a.footerView.updateSpeed=0,a.footerView.updatePosition()}),a.events.addEventListener("UPDATE_CONTENT_HEIGHT",function(){a.footerView.updateSpeed=0,a.footerView.updatePosition()}),a.footerView.addEventListener(qn,t),a}function gt(e){function t(e){"Safari"===ta&&(w.translateZ=0)}function i(e){"Safari"===ta&&(w.style["-webkit-transform"]="none",w.style["-ms-transform"]="none",w.style.transform="none")}function n(){L=""!==wa.copyright?[wa.copyright].concat(x(wa.socialLinks)):x(wa.socialLinks);var e=0,t=L.length,i=Hi===ji?"y":"x";for(C=new f("x"),b=new f(i),w.addChild(b),w.addChild(C);e
0&&g()}function o(e){return/src=/.test(e.label)}function a(e){e=e.replace(/\[|\]|\s+/g,"");var t="",i=20,n=20;if(e.indexOf(",")>-1){var o=e.split(",");t=o[0].split("=")[1];var a=o[1].split("x");i=Number(a[0].split("=")[1]),n=Number(a[1])}else t=e.split("=")[1];return{path:t,width:i,height:n}}function r(e){var t=a(e.label),i=new Ge;return i.src=Fi.cdnSslUri+"/"+t.path,i.width=t.width,i.height=t.height,i.element.style.cursor="pointer",i.customLabel=e.label.toLowerCase(),i}function l(t,i,n){var o=la[t.label.toLowerCase()],a=new e.Bitmap;return a.src=ho+o.filename,a.width=o.width,a.height=o.height,a.element.style.cursor="pointer",a.addEventListener(Ui,h),a}function d(e){switch(zi.footerIconShape){case"standard":return e.svgStdPath;case"rectangle":return e.svgRectPath;case"circle":return e.svgCircPath}}function c(e){var t=la[e.label.toLowerCase()],i=new fa,n=new fa({type:"g"}),o=new et,a=Hi===Ri||Hi===ji?1:zi.footerIconScale;if(n.scale=a,/circle|rectangle/.test(zi.footerIconShape)){var r=new tt;r.rx="circle"===zi.footerIconShape?t.bgCircRadius:t.bgRectRadius,r.width=t.width,r.height=t.height,r.fill=zi.footerIconColor,n.addChild(r)}return o.d=d(t),o.fill="standard"===zi.footerIconShape?zi.footerIconColor:zi.footerIconBgColor,o.fillRule="evenodd",n.addChild(o),i.addChild(n),i.width=t.width*a,i.height=t.height*a,i.element.style.cursor="pointer",i.socialLabel=e.label.toLowerCase(),i}function h(e){g(),w.updatePosition()}function u(e){var t=s(e);return e&&t&&t.label&&la[t.label.toLowerCase()]&&!isNaN(e)}function p(t){var i=document.createElement("span"),n=M(zi.copyrightFont);i.style.position="absolute",i.style.display="block",Hi===ji&&(i.style.width=ma.width-12+"px"),i.style.fontFamily=n.family,i.style.textTransform=zi.copyrightTextTransform||"none",i.style.fontWeight=n.weight,i.style.fontSize=zi.copyrightFontSize.toString().replace("px","")+"px",i.style.letterSpacing=zi.footerKerning+"px",i.innerHTML=t,i.whiteSpace=Hi===ji?"normal":"nowrap",document.body.appendChild(i);var o=new e.Sprite;return o.fontFamily=zi.copyrightFont,o.textTransform=zi.copyrightTextTransform||"none",o.fontSize=zi.copyrightFontSize.toString().replace("px","")+"px",o.fontColor=zi.copyrightColor,o.letterSpacing=zi.footerKerning,o.text=t,o.width=i.offsetWidth,o.height=i.offsetHeight,o.textWrap=Hi===ji,document.body.removeChild(i),i=null,o}function m(e){this.btn.txt?Ze(this.btn.txt,fo,{fontColor:E(zi.copyrightColor,.5)}):Ze(this.btn,fo,{alpha:.5})}function v(e){this.btn.txt?Ze(this.btn.txt,fo,{fontColor:E(zi.copyrightColor,1)}):Ze(this.btn,fo,{alpha:1})}function g(){var e,t=w.children,i=t.length;for(b.layoutContent(),C.layoutContent(),y=new De,y.gap=0,y.axis=Hi===ji?"y":"x",y.align="left",y.wrap=!1,"x"===y.axis?y.perpLength=ma.height:y.perpLength=ma.width,e=0;e
0&&Hi!==ji&&(b.y=C.height-b.height);var o=y.getBounds();w.transition=0,w.width=o.width,w.height=o.height}function f(e){var t=new pa;return t.layoutContent=function(){var i=new De;i.gap=6,i.axis=e,i.align="left",i.wrap=!1,i.perpLength=150;for(var n=0,o=t.children,a=o.length;n
-1||(this.txt?Ze(this.txt,fo,{fontColor:E(zi.logoFontColor,.5)}):Ze(this,fo,{alpha:.5}))}function n(e){this.txt&&this.txt.text.indexOf("
-1||(this.txt?Ze(this.txt,fo,{fontColor:E(zi.logoFontColor,1)}):Ze(this,fo,{alpha:1}))}function o(){Hi!==ji&&r()}function a(){l()}function r(){d.logoView.style.pointerEvents="none",Ze(d.logoView,fo,{alpha:0,display:"none"})}function l(){d.logoView.display="block",Ze.defer(d.logoView,fo,{alpha:1,onComplete:function(){d.logoView.style.pointerEvents="auto"}})}function s(e){if(this.txt&&this.txt.text.indexOf("
-1);else{var t={type:"internal",path:"",target:"_self"};d.events.dispatchEvent(Kn,t)}}var d=new qe({parentView:e.parentView,parentController:e.parentController,events:e.siteControllerEvents});return d.updateSpeed=0,d.logoView=new e.LogoView({parentView:d.parentView,parentController:d,events:e.siteControllerEvents}),d.logoView.alpha=0,d.events.addEventListener("LOGO_CHILD_ADDED",l),Hi===ji||"menu"===zi.logoPlacement?e.menuController.menuView.addChild(d.logoView):d.parentView.addChild(d.logoView),d.events.addEventListener(Dn,function(e){/intro|logo/.test(e.id)&&(d.logoView.updateStyle(e),d.logoView.updatePosition(e))}),d.events.addEventListener(Hn,t),d.events.addEventListener(Ki,d.logoView.updatePosition),d.events.addEventListener(jo,o),d.events.addEventListener(Ro,a),d.logoView.addEventListener(yn,s),Hi!==ji&&Hi!==Ri&&(d.logoView.addEventListener(on,i),d.logoView.addEventListener(sn,n)),d}function bt(e){function t(e){var t=void 0===Fi.disableRightClick||Fi.disableRightClick;t&&e.preventDefault()}function i(e){"Safari"===ta&&(g.translateZ=0)}function n(e){"Safari"===ta&&(g.style["-webkit-transform"]="none",g.style["-ms-transform"]="none",g.style.transform="none")}function o(e){g.events.dispatchEvent("OVER_LOGO")}function a(){return Hi===ji?J(zi.mobileLogoFontSize,zi.logoFontSize):Hi===Ri?J(zi.tabletLogoFontSize,zi.logoFontSize):zi.logoFontSize}function r(){return Hi===ji?J(zi.mobileLogoFontColor,zi.logoFontColor):Hi===Ri?J(zi.tabletLogoFontColor,zi.logoFontColor):zi.logoFontColor}function l(){return Hi===ji?J(zi.mobileLogoFont,zi.logoFont):Hi===Ri?J(zi.tabletLogoFont,zi.logoFont):zi.logoFont}function s(){return Hi===ji?J(zi.mobileLogoKerning,zi.logoKerning):Hi===Ri?J(zi.tabletLogoKerning,zi.logoKerning):zi.logoKerning}function d(e,t){var i=document.createElement("img");i.addEventListener("load",function(e){document.body.removeChild(i),t({width:e.target.width,height:e.target.height})}),i.style.opacity=0,document.body.appendChild(i),i.src=e}function c(){v=!0,setTimeout(function(){g.updatePosition(),g.events.dispatchEvent(Jn),Ze.defer(g.img,fo,{alpha:1}),g.events.dispatchEvent("LOGO_LOADED")},10),g.img.element.removeEventListener(Ui,c)}var h,u,p,m,v,g=new at({events:e.events});return Hi===ji?g.textWrap=!0:g.textWrap=!1,g.zIndex=wa.logoView.zIndex(),Hi!==ji&&Hi!==Ri&&(g.position=zi.logoPositionFixed?"fixed":"absolute"),g.updateSpeed=0,g.events.addEventListener("fillSiteMode",i),g.events.addEventListener("nonFillSiteMode",n),g.element.addEventListener("contextmenu",t),g.element.addEventListener("dragstart",t),g.addEventListener(bo,function(e){g.updatePosition(),setTimeout(function(){g.updatePosition(),g.updateSpeed=fo},500),g.events.dispatchEvent("LOGO_CHILD_ADDED")}),g.addEventListener(on,o),g.updatePosition=function(e){if(g.zIndex=wa.logoView.zIndex(),Hi!==ji&&Hi!==Ri&&(g.position=zi.logoPositionFixed?"fixed":"absolute"),g.transition=0,g.txt)Hi===ji?(g.txt.width=ma.width,g.width=ma.width):g.width=g.txt.element.offsetWidth,g.height=g.txt.element.offsetHeight;else if(g.img&&v&&(!e||!e.action||"changeTemplate"!==e.action))if(Hi===ji&&(zi.mobileLogoWidth||zi.mobileLogoHeight)||zi.logoWidth||zi.logoHeight){var t=z(zi.logoWidth,ma.width)||2e3,i=z(zi.logoHeight,ma.height)||2e3;Hi===ji&&(t=(z(zi.mobileLogoWidth,ma.width)||z(zi.logoWidth,ma.width)||2e3)>ma.width-2*z(zi.mobileLogoOffsetX,ma.width)?ma.width-2*z(zi.mobileLogoOffsetX,ma.width):t,i=z(zi.mobileLogoHeight,ma.height)||z(zi.logoHeight,ma.height)||2e3);var n={type:"fit",hRange:t,vRange:i,width:p,height:m,disableOrientationCheck:!0},o=Ae(n);g.img.width=o.width,g.img.height=o.height,g.width=o.width,g.height=o.height}else if(!e||!e.action||"changeTemplate"!==e.action){var a={width:p,height:m,filename:h},r=Fe(a),t=r.width;Hi===ji&&(t=r.width>ma.width-2*z(zi.mobileLogoOffsetX,ma.width)?ma.width-2*z(zi.mobileLogoOffsetX,ma.width):t);var o=Ae({type:"fit",hRange:t,vRange:r.height,width:p,height:m,disableOrientationCheck:!0});g.img.width=o.width,g.img.height=o.height,g.width=o.width,g.height=o.height}Ze.defer(g,0,{x:Ca.logoView.x(g.width),y:Ca.logoView.y(g.height)})},g.updateStyle=function(t){if(t&&t.id&&/logo|layoutModelInit/i.test(t.id)){var i=Hi!==ji&&Hi!==Ri&&zi.logoBlendMode?zi.logoBlendMode:"normal";g.element.style["mix-blend-mode"]=i;var n=wa.logoFile||zi.logoFile||"";if(Hi===ji&&(n=Fi.mobileLogoFile||zi.mobileLogoFile||n),Hi===Ri&&(n=Fi.tabletLogoFile||zi.tabletLogoFile||n),h=n.indexOf("dxlogo1__at__2x.png")>-1||n.indexOf("dxlogo2__at__2x.png")>-1?co+"/media/"+n:""!==n?Fi.cdnSslUri+"/"+n:void 0,g.txt&&(g.removeChild(g.txt),g.txt=void 0),h&&h!==u)g.img&&(g.removeChild(g.img),g.img=void 0),g.img=new Ge,g.img.element.style["user-select"]="none",g.img.alpha=0,d(h,function(e){p=e.width,m=e.height,u=h,g.img.element.src=h}),g.img.element.addEventListener("load",c),g.addChild(g.img),g.img.element.style.cursor="pointer";else if(!h){g.img&&(g.removeChild(g.img),g.img=void 0),h=void 0,u=void 0,v=!1;var o=wa.logoText||zi.logoText||"",f=wa.logoHtml||zi.logoHtml||"";g.txt=new pa,g.txt.text=f.replace(/(\\*'|\\*")/g,"'")||o.replace(/(\\*'|\\*")/g,"'"),g.txt.element.style["user-select"]="none",g.addChild(g.txt),g.txt.element.style.cursor="pointer",Hi===ji&&(g.txt.textAlign=zi.mobileLogoAlignHorizontal||"left");var b=a(),C=r(),w=l(),y=s();b!==g.txt.fontSize&&(g.txt.fontSize=b),C!==g.txt.fontColor&&Ze(g.txt,e.parentController.updateSpeed,{fontColor:C}),w!==g.txt.fontFamily&&(g.txt.fontFamily=w),y!==g.txt.letterSpacing&&(g.txt.letterSpacing=y),zi.logoTextTransform&&zi.logoTextTransform!==g.txt.textTransform&&(g.txt.textTransform=zi.logoTextTransform)}}},g}function Ct(e){function t(){}function n(){F&&r(),F!==!1&&(F=void 0)}function o(){void 0===F&&(F=!0),F&&r()}function a(e){R||t(e),clearTimeout(R),o(e),R=setTimeout(function(){n(e),R=null},300)}function r(){V&&"multiple"===Ca.sectionDisplayMode&&Object.keys(V).map(function(e){return V[e]}).forEach(function(e){var t=e.view.y;window.scrollY+.5*window.innerHeight>=t&&window.scrollY+.5*window.innerHeight<=t+e.view.height&&"multiple"===Ca.sectionDisplayMode&&(e.controller.checkCaption(),wa.section(e.controller.section),P.dispatchEvent("cursorAxisUpdate",ge(wa.overrides.transitionType)),P.dispatchEvent("updateSectionPassive",{section:e.controller.section,assetId:e.controller.getCurrentAssetId(),mode:e.controller.getCurrentMode()}))})}function d(e){return wa.section(e),!i(e)&&wa.overrides.thumbnailDefaultOn&&/fill|paginated|vMasonry|hMasonry/i.test(wa.overrides.thumbnailType)&&1===zi.overlayAlpha||f(e)}function c(e){return d(e)?"thumbs":h(e)&&u(e)?"thumbs-caption":h(e)?"thumbs":u(e)?"caption":""}function h(e){return wa.section(e),!i(e)&&"none"!==wa.overrides.thumbnailType&&(wa.overrides.thumbnailDefaultOn||f(e))&&e&&e.media&&e.media.length>1}function u(e){wa.section(e);var t=s(e.mediaItems[0]);return t||(t={overrides:{}}),Hi!==ji&&J(t.overrides.captionDefault,wa.overrides.captionDefault)}function p(e){var t=new pa,i=new fa,n=new fa({type:"g"}),o=new et,a=100*e.scale;t.zIndex=5,t.width=a,t.height=a,t.element.style["mix-blend-mode"]=e.blendMode,t.alpha=0,t.addEventListener("click",function(){var e=V[1];if(e){var t=e.view.y-wa.mediaView.y(e.controller.section.key);ha.to(window,.35,{scrollY:t,ease:lo?"outQuart":"inOutCubic"})}});var r;return t.updatePosition=function(i){clearTimeout(r),r=setTimeout(function(i){t.y=i-a-e.offsetY,t.x=.5*(ma.width-a),Ze(t,fo,{alpha:1})},1e3,i)},i.position="absolute",i.width=a,i.height=a,t.element.style.transformOrigin="center",n.scale=e.scale,o.d=e.path,o.fill="none",o.stroke=e.color,o.strokeWidth=e.strokeWidth,i.addChild(n),n.addChild(o),t.addChild(i),t}function m(e){return!e.hideFromUnifiedSite&&"%SPACER%"!==e.label&&e.visible&&!/overlay|none|unifiedPageScrolling/.test(e.displayBehavior)&&(!v(e)||e.isIndex)}function v(e){var t=s(e.media[0]);return!!t&&("link"===t.type&&!e.mediaItems.length)}function g(e){function t(){Ca.sectionDisplayMode="multiple";var t=e.media.map(l).filter(m);if("ROOT_SECTION"===e.label&&wa.backgroundImages.length){var n=wa.backgroundImages.filter(function(e){return!!ki[e]}),o={id:Bi,key:"/",label:Bi,visible:1,password:"",media:n,mediaItems:n,overrides:{captionDefault:zi.slideshowCaptions}};t=[o].concat(t)}var a=t[0];t[1];("ROOT_SECTION"===e.label&&zi.slideshowScrollDownIcon&&i(a)||e.scrollDownIcon||a&&a.scrollDownIcon)&&(v=p({path:va.arrow3Down,color:zi.scrollDownIconColor||"#F2F2F2",strokeWidth:zi.scrollDownIconStrokeWidth||1,scale:zi.scrollDownIconScale||1,offsetY:zi.scrollDownIconOffsetY||0,blendMode:zi.scrollDownIconBlendMode||"normal"}),A.addChild(v)),V=t.reduce(function(e,n,o){wa.section(n);var a={section:n,mediaToRender:L(n.mediaItems),path:n.key,assetId:d(n)?-1:0,asset:s(n.mediaItems[0]),mode:c(n),info:{isSectionChange:!0,isAssetChange:!0,isModeChange:!1,isLandingMedia:i(n),mediaViewState:i(n)?"landingMedia":"mediaView",isDeepLink:!1,isMediaViewStateChange:!0,isIntroGallery:n.isIntroGallery,flickSpeed:.35,lastUri:"/",isThumbsFirst:d(n),isMobileVideoClick:!1,isBlog:y(n.id)}};Ca.updateSectionState(n.key,{assetId:a.assetId,mode:a.mode});var r=new H(P,A,null,{position:o,length:t.length});return Ca._uriState=a,r.controller.build(a),e.concat(r)},[]),window.addEventListener("scroll",u)}function n(){var e=0,t=zi.marginOverlap||0,i=V[0].controller.section,n=z(zi.sitePaddingTop,ma.height),o=n;if(W(i))o=0;else if(/top/.test(wa.menuView.placement())&&!zi.isMenuScrollReveal){var a=z(zi.menuWidth,ma.height)-z(zi.menuOffsetX,ma.height);o=n+a-t}var r=o||0;V.forEach(function(t,i,n){wa.section(t.controller.section);var o=n[i-1],a=o?o.view.y+(o.view.height||0):r,l=t.controller.getTotalHeight();t.controller.section;e+=l||0,t.view.transition=0,t.view.x=0,t.view.y=a,t.view.width=wa.mediaView.width(),t.view.height=l,t.view.mask.x=wa.mediaView.x(),t.view.container.y=0,t.view.mask.transition=0,t.view.mask.width=wa.mediaView.width(),t.view.mask.height=l}),A.totalHeight=e,Ca.mediaModules=V,Ca.mediaViewsHeight=A.totalHeight,v&&v.updatePosition(V[0].view.height)}function o(){}function a(){h(),t()}function r(e,t){var i=V.filter(function(t){return e.path===t.controller.section.key})[0];if(i||(i=V[0]),e.info.isParentSectionChange||t){wa.section(i.controller.section);var n=i.view.y-wa.mediaView.y(i.controller.section.key);i===V[0]&&(n=0),window.scrollTo(0,n)}else e.info.isSectionChange&&setTimeout(function(){wa.section(i.controller.section);var e=i.view.y-wa.mediaView.y(i.controller.section.key);i===V[0]&&(e=0),ha.to(window,.35,{scrollY:e,ease:lo?"outQuart":"inOutCubic"})},350);t&&!e.info.isParentSectionChange||i.controller.navigate(e),P.dispatchEvent("cursorAxisUpdate",i.controller.cursorAxis)}function h(){V.forEach(function(e){e.controller.destroy()}),window.removeEventListener("scroll",u),v&&A.removeChild(v)}function u(){clearTimeout(g),g=setTimeout(function(){V.forEach(function(e){e.view.lazyLoader&&e.view.lazyLoader.update(),e.controller.overlayController&&e.controller.overlayController.lazyLoaderUpdate()})},10)}var v;t();var g;return{type:"unified",layout:n,uriChange:r,modelChange:a,transition:o,destroy:h}}function b(){function e(){var e=a.getTotalHeight();wa.section(r.section),Ze(r,0,{x:wa.mediaView.x(),y:wa.mediaView.y(r.section.key),width:wa.mediaView.width(),height:e});var t="none"===wa.overrides.siteDisplayBehavior&&/vScroll/.test(wa.overrides.transitionType)?wa.mediaView.zoneHeight():r.container.boundsHeight;Ze(r.mask,0,{width:wa.mediaView.width(),height:t}),Ca._mediaContentHeight=e,r.lazyLoader&&r.lazyLoader.update()}function t(){}function i(e,t){t||a.navigate(e)}function n(){Ze(r.container,fo,{backgroundColor:wa.mediaView.backgroundColor()}),e(),a.destroyStaticNav(),a.createStaticNav()}Ca.sectionDisplayMode="single";var o=new H(P,A);E=o;var a=o.controller,r=o.view;return{type:"legacy",module:o,layout:e,uriChange:i,modelChange:n,transition:t,destroy:function(){o.controller.destroy()}}}function C(){function e(){var e=r.getTotalHeight();wa.section(l.section),l.x=0,l.y=0,l.width=ma.width,l.height=ma.height,l.mask.width=wa.mediaView.width(),l.mask.height=wa.mediaView.contentHeight(),Ca._mediaContentHeight=e,l.lazyLoader&&l.lazyLoader.update()}function t(){}function i(e){r.navigate(e)}function n(){wa.section(l.section),Ze(l.container,fo,{backgroundColor:wa.mediaView.backgroundColor()}),e(),r.destroyStaticNav(),r.createStaticNav()}Ca.lastSectionDisplayMode=Ca.sectionDisplayMode,Ca.sectionDisplayMode=/unifiedSiteScroll/.test(wa.overrides.siteDisplayBehavior)?"multiple":"single";var o=!0,a=new H(P,A,o);E=a;var r=a.controller,l=a.view;return{type:"overlay",module:a,layout:e,uriChange:i,modelChange:n,transition:t,destroy:function(){a.controller.destroy()}}}function w(e){P.removeEventListener("UPDATE_CONTENT_HEIGHT",function(){var t=he(200);t(e.layout)}),P.removeEventListener(Hn,e.modelChange),P.removeEventListener(_n,e.modelChange),P.removeEventListener(Dn,function(t){/backgroundimages|template|staging/.test(t.id)&&e.modelChange()}),P.removeEventListener("mediaOverlayClose",function(){O||P.dispatchEvent(Wo,{type:"internal",path:"",target:"_self"})})}function S(e){P.addEventListener("UPDATE_CONTENT_HEIGHT",function(){var t=he(200);t(e.layout)}),P.addEventListener(Hn,e.modelChange),P.addEventListener(_n,e.modelChange),P.addEventListener(Dn,function(t){/backgroundimages|template|staging/.test(t.id)&&e.modelChange()}),P.addEventListener("mediaOverlayClose",function(){O||P.dispatchEvent(Wo,{type:"internal",path:"",target:"_self"})})}function x(e){k=e;var t=!1;switch(wa.section(e.section),wa.overrides.siteDisplayBehavior){case"unifiedSiteScrollVertical":I&&I.module.view.close(function(){I.destroy(),I=null}),O?e.info.isParentSectionChange||O&&"legacy"===O.type?(O&&(w(O),O.destroy()),O=g(e.parentSection),S(O),t=!0,O.uriChange(e,t),O.layout()):e.info.isModeChange?(O.uriChange(e,t),O.layout()):O.uriChange(e,t):(O=g(e.parentSection),S(O),t=!0,O.uriChange(e,t),O.layout());break;case"overlay":e.info.isSectionChange&&I&&(w(I),I.destroy(),I=null),I||(I=C(),S(I),t=!0,I.module.controller.build(e)),I.uriChange(e,t),I.layout(),I.module.view.open();break;default: I&&I.module.view.close(function(){I.destroy(),I=null}),e.info.isSectionChange||O&&"unified"===O.type?(O&&(w(O),O.destroy()),O=b(),S(O),O.module.controller.build(e),t=!0,O.uriChange(e,t),O.layout()):e.info.isModeChange?(O.uriChange(e,t),O.layout()):O&&O.uriChange(e,t)}}function M(e,t){return e.key===t.section.key}function T(e){if(/unifiedSiteScroll/.test(wa.overrides.siteDisplayBehavior))V&&Object.keys(V).map(function(e){return V[e]}).forEach(function(t){var i;if(M(t.controller.section,e)&&(wa.section(t.controller.section),(!/fill|vMasonry|hMasonry/.test(wa.overrides.thumbnailType)||!/thumbs/.test(e.mode))&&wa.mediaView.videoAutoPlay())){var n=t.view.container.children[e.assetId];i=n?n.id:void 0}t.events.dispatchEvent("mediaAutoPlay",i)});else if(E){if(wa.section(E.controller.section),(!/fill|vMasonry|hMasonry/.test(wa.overrides.thumbnailType)||!/thumbs/.test(e.mode))&&wa.mediaView.videoAutoPlay())var t=E.view.container.children[e.assetId],i=t?t.id:void 0;E.events.dispatchEvent("mediaAutoPlay",i)}}var V,E,k,O,I,F,A=e.parentView,P=e.siteControllerEvents,H=e.MediaModule;/unifiedSiteScroll/.test(wa.overrides.siteDisplayBehavior)&&window.addEventListener("scroll",a);var R;P.addEventListener("autoplayTarget",T),P.addEventListener(On,x),P.addEventListener(Hn,function(e){/siteDisplayBehavior|transitionType/.test(e.id)&&O&&(w(O),O.destroy(),wa.section(k.section),"unifiedSiteScrollVertical"===wa.overrides.siteDisplayBehavior?O=g(k.parentSection):(O=b(),O.module.controller.build(k)),S(O),built=!0,O.layout())}),P.addEventListener(_n,function(){O&&(w(O),O.destroy(),wa.section(k.section),"unifiedSiteScrollVertical"===wa.overrides.siteDisplayBehavior?O=g(k.parentSection):(O=b(),O.module.controller.build(k)),S(O),built=!0,O.layout())})}function wt(e){function t(e){1===V.assetId&&"right"===e.swipeDirection?z.touchNav&&(z.touchNav.disabled=!0):z.touchNav&&(z.touchNav.disabled=!1),e.isMove?n()&&"right"===e.swipeDirection?l():o()&&"left"===e.swipeDirection?l():"left"===e.swipeDirection||"right"===e.swipeDirection?(e.navDir="left"===e.swipeDirection?"next":"prev",S.dispatchEvent(Xo,e)):l():e.isMove&&/left|right/.test(e.swipeDirection)&&l()}function i(){w||r(),"mSlide"!==y||z.touchNav||a(),w(),/scroll/i.test(y)||l()}function n(){return 0===V.assetId}function o(){return V.assetId===x(V.section.media).length-1}function a(){z.touchNav=new Xe({events:S,mediaViewContainer:T}),z.touchNav.section=V.section&&V.section.key||"no section"}function r(){wa.section(V.section),M.scroll&&(M.scroll.destroy(),M.scroll=null),y=wa.overrides.transitionType;var t="fade"===y||"mSlide"===y?"fade":"default",i=M.container,n=M.mask;M.lazyLoader=new Ee(i,n,{type:t,property:"translate"}),M.lazyLoader.name="mediaView",b&&"function"==typeof b.destroy&&b.destroy(),S.dispatchEvent("cursorAxisUpdate",ge(y));var o=wa.mediaView.transitionDuration();switch(y){case"fade":C=new Tt({siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:S}),b=new Vt({transitionDuration:o,siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:S});break;case"hSlide":C=new jt({siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:S}),b=new Bt({transitionDuration:o,mediaView:M,mediaViewContainer:T,localEvents:S});break;case"vSlide":C=new Dt({siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:S}),b=new _t({transitionDuration:o,siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:S});break;case"hScroll":C=new kt({siteView:e.siteView,mediaView:M,localEvents:S}),b=new Ot({transitionDuration:o,siteView:e.siteView,mediaView:M,localEvents:S});break;case"hScrollNC":C=new It({siteView:e.siteView,mediaView:M,localEvents:S}),b=new Ft({transitionDuration:o,siteView:e.siteView,mediaView:M,localEvents:S});break;case"vScroll":C=new At({siteView:e.siteView,mediaView:M,localEvents:S}),b=new Pt({transitionDuration:o,siteView:e.siteView,mediaView:M,localEvents:S});break;case"vScrollNC":C=new Ht({siteView:e.siteView,mediaView:M,localEvents:S}),b=new Rt({transitionDuration:o,siteView:e.siteView,mediaView:M,localEvents:S});break;case"grid":C=new Et({siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:S}),b=new zt({transitionDuration:o,siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:S});break;case"mSlide":C=new Wt({siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:S}),b=new Nt({transitionDuration:o,siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:S})}w=function(){wa.section(V.section),C()}}function l(){var e=ae()||se()?0:.85;1===ma.zoom&&(V.mediaToRender&&V.mediaToRender.length>V.assetId&&b?V.assetId>-1&&b(V.assetId,e):b&&b(0,e))}function s(e){b(e,0)}function d(){1===ma.zoom&&re()&&!Fi.podUseDesktop&&window.scrollTo(0,0),w&&w(),V.mediaToRender&&V.mediaToRender.length>0&&V.assetId>-1&&(b||r(),"mSlide"!==y||z.touchNav||a(),/^unifiedSite/.test(wa.overrides.siteDisplayBehavior)||s(V.assetId)),L=!1,M&&M.lazyLoader&&M.lazyLoader.update()}function c(e){L=!0}function h(e){u(e),g()}function u(){r(),"mSlide"!==y||z.touchNav||a(),w()}function p(e){"siteDisplayBehavior"===e.id&&r(),"mSlide"!==y||z.touchNav||a(),w&&w()}function m(e,t){return e.key===t.section.key}function v(e){clearTimeout(k),k=setTimeout(function(){E=e.id,V&&m(M.section,V)&&(V.assetId=e.id)},200)}function g(){T.transition=0,Math.abs(T.translateX)>0&&(T.translateX=0),Math.abs(T.translateY)>0&&(T.translateY=0),T.x=0,T.y=0,Ze(T,fo,{backgroundColor:wa.mediaView.backgroundColor()})}function f(){b&&b.destroy&&b.destroy(),w=void 0,b=void 0,S.removeEventListener(Hn,p),S.removeEventListener(_n,p),S.removeEventListener(Hn,p),S.removeEventListener(qi,d),S.removeEventListener(io,c),S.removeEventListener("layoutMediaView",h),S.removeEventListener("mediaSizeUpdate",i),S.removeEventListener("MEDIA_HEIGHT_CHANGE",i),S.removeEventListener("assetReset",l),S.removeEventListener(Ho,t),S.removeEventListener("ScrollTransition/updateAssetId",v),M.scroll&&M.scroll.destroy(),z.touchNav&&z.touchNav.destroy(),z.touchNav=null,M.scroll=null}var b,C,w,y,L,S=e.localEvents,M=e.mediaView,T=e.mediaView.container,V={assetId:0},E=0,z=this;S.addEventListener("layoutMediaView",h),S.addEventListener(_n,p),S.addEventListener(Hn,p),S.addEventListener(qi,d),S.addEventListener(io,c),S.addEventListener("mediaSizeUpdate",i),S.addEventListener("MEDIA_HEIGHT_CHANGE",i),S.addEventListener("assetReset",l),S.addEventListener(Po,function(e){n()&&"prev"===e&&z.touchNav&&(z.touchNav.disabled=!0)}),S.addEventListener(jo,function(e){z.touchNav&&(z.touchNav.disabled=!1)}),S.addEventListener(Ho,t),S.addEventListener("ScrollTransition/updateAssetId",v),this.init=function(e){V=e,T.transition=0,T.alpha=0,w||r(),"mSlide"!==y||z.touchNav||a(),w(),setTimeout(function(){Ze(T,wa.mediaView.transitionDuration(),{alpha:1})},1e3)},this.updateState=function(e){V=e},this.uriChange=function(e){V=e,wa.section(V.section);var t=T.children.length>0;if(V.mediaToRender&&t){if(V.mode.indexOf("thumbs")!==-1&&V.assetId===-1?(T.transition=0,T.alpha=0):1!==T.alpha&&(T.transition=0,T.alpha=1),V.assetId>-1&&(V.info.isDeeplink?s(V.assetId):wa.siteView.unifiedPageScroll()&&V.info.isModeChange&&/fill|vMasonry|hMasonry/.test(wa.overrides.thumbnailType)&&/thumbs/.test(V.mode)?(T.transition=0,T.alpha=0,setTimeout(function(){Ze(T,wa.mediaView.transitionDuration(),{alpha:1})},1e3*fo+10)):V.info.isModeChange&&/fill|vMasonry|hMasonry/.test(wa.overrides.thumbnailType)&&/thumbs/.test(V.info.lastUri)?(T.transition=0,T.alpha=0,wa.siteView.unifiedPageScroll()?setTimeout(function(){s(V.assetId),Ze(T,wa.mediaView.transitionDuration(),{alpha:1})},1e3*fo+10):(s(V.assetId),setTimeout(function(){Ze(T,wa.mediaView.transitionDuration(),{alpha:1})},500*fo))):V.info.isModeChange&&/fill|vMasonry|hMasonry/.test(wa.overrides.thumbnailType)&&/thumbs/.test(V.mode)||(b||r(),"mSlide"!==y||z.touchNav||a(),z.touchNav?(1!==ma.zoom||Hi!==ji||Fi.podUseDesktop||M.mask.element.scrollTo(0,0),b(V.assetId,V.info.flickSpeed,z.touchNav.swipeDirection)):V.info.isSectionChange?(T.transition=0,"unifiedSiteScrollVertical"!==wa.overrides.siteDisplayBehavior&&(T.alpha=0),b(V.assetId,V.info.flickSpeed),setTimeout(function(){Ze(T,wa.mediaView.transitionDuration(),{alpha:1})},1e3*fo+10)):b(V.assetId,V.info.flickSpeed))),V.assetId>-1&&(!/fill|vMasonry|hMasonry/.test(wa.overrides.thumbnailType)||!/thumbs/.test(e.mode))&&wa.mediaView.videoAutoPlay()){var i=T.children[V.assetId]&&T.children[V.assetId].id;S.dispatchEvent("mediaAutoPlay",i)}else if(!(/fill|vMasonry|hMasonry/.test(wa.overrides.thumbnailType)&&/thumbs/.test(e.mode)||Hi!==ji)){var i=T.children[V.assetId]&&T.children[V.assetId].id,n=ki[i];n&&"video"===n.type&&0!==n.content.indexOf("vimeo")&&wa.mediaView.videoAutoPlay()&&S.dispatchEvent("mediaAutoPlay",i)}V.assetId>-1&&T.children[V.assetId]&&"html"===T.children[V.assetId].type&&S.dispatchEvent(Ko),z.touchNav&&(z.touchNav.assetId=e.assetId)}};var k;return this.destroy=f,z}function yt(e){function t(e){f(S),g.resume()}function i(e){var t=y.children[S];return t&&s(t.id)}function n(){S=0,f(S),C.dispatchEvent("siteAnchorCaptionUpdate",i(S))}function o(){S=r();var e=y.children[S];isLogin?(f(S),g.pause()):"video"===e.type?(g.pause(),setTimeout(function(){f(S),e.autoPlay()},100),C.addEventListener("playbackEnd",a)):"image"===e.type&&e.loaded?f(S):"image"!==e.type||e.loaded||(g.pause(),e.addEventListener(go,t)),C.dispatchEvent("siteAnchorCaptionUpdate",i(S))}function a(e){g.resume(),o()}function r(){return S
1||"video"===o.type)?(g&&g.destroy(),d()):n()},this.destroy=function(){b=void 0,f=void 0,C.removeEventListener(Hn,m),C.removeEventListener(qi,h),C.removeEventListener("layoutMediaView",u),C.removeEventListener(Dn,v),C.removeEventListener("mediaSizeUpdate",p),C.removeEventListener("assetReset",l),g&&g.destroy()},c()}function Lt(e){function t(e){n()}function i(e){n()}function n(){d.section&&wa.section(d.section),Ze(l,fo,{backgroundColor:wa.mediaView.backgroundColor()})}function o(e){l.removeChildren(l);for(var t=0,i=e.length;t
i.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=e.mediaViewContainer,a=e.localEvents,r=e.mediaView;return t}function Vt(e){function t(e,t){t=void 0!==t?t:a;var l=0,s=i.children,d=s.length;for(n.dispatchEvent(uo);l
i.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=De,a=e.mediaViewContainer,r=e.localEvents,l=e.mediaView;return t}function zt(e){function t(e,t){var t=void 0!==t?t:a,r=i.children[e];if(r){var l=r.x,s=r.y;anime({targets:i,duration:1e3*t,translateX:-l,translateY:-s,easing:lo?"easeOutQuart":"easeInOutCubic",complete:function(){n.dispatchEvent(po),setTimeout(function(){o.lazyLoader&&o.lazyLoader.update()},360)}})}}var i=e.mediaViewContainer,n=e.localEvents,o=e.mediaView,a=e.transitionDuration;return n.dispatchEvent(uo),t.destroy=function(){},t}function kt(e){function t(e,t){return e.contentHeight&&1===t}function i(){var e=new o;e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=wa.mediaView.height(a.section.key),a.section&&wa.section(a.section);var i=wa.mediaView.height(a.section.key),s=a.maxScroll&&/unifiedSite/.test(wa.overrides.siteDisplayBehavior);s&&(i=Ca.getMaxScrollSectionHeight(a));for(var d=0,c=l.children,h=c.length;d
i.v&&(r=i.v),e.height=r+t.top+t.bottom}else e.height=wa.mediaView.height()}e.updatePosition()}var o=De,a=e.mediaView,r=e.localEvents,l=a.container,s=a.mask;if("native"===wa.overrides.imageVideoScrollType)s.element.style.overflowY="hidden",s.element.style.overflowX="scroll";else if(Jo&&("nativeMacOs"===wa.overrides.imageVideoScrollType||zi.globalSmoothScroll))s.element.style.overflowY="hidden",s.element.style.overflowX="scroll";else{a.scroll&&a.scroll.destroy();var d={name:"horiz scroll",types:["bar","wheel","touch"],axis:"x",align:"left",color:wa.overrides.imageVideoScrollbarColor,hover:wa.overrides.imageVideoScrollbarHover,side:wa.overrides.imageVideoScrollbarAlignment,alpha:wa.overrides.imageVideoScrollbarBgTransparency,width:wa.overrides.imageVideoScrollbarWidth,offsetX:wa.overrides.imageVideoScrollbarHorizontalOffset,offsetY:wa.overrides.imageVideoScrollbarVerticalOffset,topPad:0,property:"translate",zIndex:wa.mediaView.zIndex,rounded:wa.overrides.imageVideoScrollbarRounded,visibility:wa.overrides.imageVideoScrollbarVisibility};("nativeMacOs"===wa.overrides.imageVideoScrollType||zi.globalSmoothScroll)&&(d.margin=0,d.color="#000000",d.hover="#000000",d.side="bottom",d.alpha=0,d.width=7,d.offsetX=0,d.offsetY=0,d.rounded=!0,d.visibility="when scrolling"),a.scroll=new Pe(l,s,d)}return i}function Ot(e){function t(e,t){p=e;var t=void 0!==t?t:C;b.dispatchEvent(uo);var a=g.children[e];if(a){var r=a.x,l=a.y,s=o(e,g.children.length);f.width=wa.mediaView.width();var d=Se({width:a.width,hRange:f.width,hAlign:s});if(r=a.x-d.x,u=!0,c=!1,v.scroll){var h=g.width-f.width,w=r/h;v.scroll.percent=w,v.scroll.bar.moveHandle(wa.mediaView.transitionDuration()),anime({targets:g,duration:1e3*t,translateX:-r,translateY:-l,easing:lo?"easeOutQuart":"easeInOutCubic",complete:function(){u=!1,c=void 0,b.dispatchEvent(po),setTimeout(function(){v.lazyLoader&&v.lazyLoader.update()},360)}})}else t?(m&&m.kill(),m=ha.to(f,t,{scrollLeft:r,scrollTop:l,ease:lo?"outQuart":"inOutCubic",onComplete:function(){u=!1,c=void 0,b.dispatchEvent(po),v.lazyLoader&&v.lazyLoader.update()}})):setTimeout(function(){f.scrollLeft=r,f.scrollTop=l,u=!1,c=void 0,b.dispatchEvent(po),v.lazyLoader&&v.lazyLoader.update()},10);u?i(e):n()}}function i(e){for(var t=g.children.length;t--;){var i=g.children[t],n=void 0===e||!isNaN(e)&&e===t?1:wa.overrides.imageVideoInactiveAlpha;Ze(i,wa.mediaView.transitionDuration(),{alpha:n})}}function n(){for(var e=g.children.length;e--;)Ze(g.children[e],wa.mediaView.transitionDuration(),{alpha:1})}function o(e,t){return 0===e?"left":e===t-1?"right":wa.mediaView.hAlign()}function a(){for(var e=g.children.length;e--;){var t=g.children[e],i=.5*f.width;v.scroll?-g.translateX+i>=t.x&&-g.translateX+i<=t.x+t.width&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):f.scrollLeft+i>=t.x&&f.scrollLeft+i<=t.x+t.width&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){b.dispatchEvent("mediaScrollStart"),c!==!1&&b.dispatchEvent("pauseMedia"),u?i(p):n()}function l(e){c&&a(),c!==!1&&(c=void 0)}function s(e){void 0===c&&(c=!0),v.lazyLoader&&v.lazyLoader.update(),c&&a()}function d(e){h||r(e),clearTimeout(h),s(e),h=setTimeout(function(){l(e),h=null},300)}var c,h,u,p,m,v=e.mediaView,g=v.container,f=v.mask,b=e.localEvents,C=e.transitionDuration;return v.scroll?(v.scroll.addEventListener("scrollStop",l),v.scroll.addEventListener("scrollStart",r),v.scroll.addEventListener(Qn,s)):f.element.addEventListener("scroll",d),t.destroy=function(){v.scroll?(v.scroll.removeEventListener("scrollStop",l),v.scroll.removeEventListener("scrollStart",r),v.scroll.removeEventListener(Qn,s)):f.element&&f.element.removeEventListener("scroll",d)},t}function It(e){function t(){var e=new n;e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=wa.mediaView.height(o.section.key),o.section&&wa.section(o.section);var t=0,l=r.children,s=l.length,d=wa.mediaView.height(o.section.key),c=o.maxScroll&&/unifiedSite/.test(wa.overrides.siteDisplayBehavior);for(c&&(d=Ca.getMaxScrollSectionHeight(o));t
i.v&&(r=i.v),e.height=r+t.top+t.bottom}else e.height=wa.mediaView.height()}e.updatePosition()}var n=De,o=e.mediaView,a=e.localEvents,r=o.container,l=o.mask;if("native"===wa.overrides.imageVideoScrollType)l.element.style.overflowY="hidden",l.element.style.overflowX="scroll";else if(Jo&&("nativeMacOs"===wa.overrides.imageVideoScrollType||zi.globalSmoothScroll))l.element.style.overflowY="hidden",l.element.style.overflowX="scroll";else{o.scroll&&o.scroll.destroy();var s={name:"horiz scroll",types:["bar","wheel","touch"],axis:"x",align:"left",color:wa.overrides.imageVideoScrollbarColor,hover:wa.overrides.imageVideoScrollbarHover,side:wa.overrides.imageVideoScrollbarAlignment,alpha:wa.overrides.imageVideoScrollbarBgTransparency,width:wa.overrides.imageVideoScrollbarWidth,offsetX:wa.overrides.imageVideoScrollbarHorizontalOffset,offsetY:wa.overrides.imageVideoScrollbarVerticalOffset,topPad:0,property:"translate",zIndex:wa.mediaView.zIndex,rounded:wa.overrides.imageVideoScrollbarRounded,visibility:wa.overrides.imageVideoScrollbarVisibility};("nativeMacOs"===wa.overrides.imageVideoScrollType||zi.globalSmoothScroll)&&(s.margin=0,s.color="#000000",s.hover="#000000",s.side="bottom",s.alpha=0,s.width=7,s.offsetX=0,s.offsetY=0,s.rounded=!0,s.visibility="when scrolling"),o.scroll=new Pe(r,l,s)}return t}function Ft(e){function t(e,t){p=e;var t=void 0!==t?t:C;b.dispatchEvent(uo);var a=g.children[e];if(a){var r=a.x,l=a.y,s=o(e,g.children.length);f.width=wa.mediaView.width();var d=Se({width:a.width,hRange:f.width,hAlign:s});if(r=a.x-d.x,u=!0,c=!1,v.scroll){var h=g.width-f.width,w=r/h;v.scroll.percent=w,v.scroll.bar.moveHandle(wa.mediaView.transitionDuration()),anime({targets:g,duration:1e3*t,translateX:-r,translateY:-l,easing:lo?"easeOutQuart":"easeInOutCubic",complete:function(){u=!1,c=void 0,b.dispatchEvent(po),setTimeout(function(){v.lazyLoader&&v.lazyLoader.update()},360)}})}else t?(m&&m.kill(),m=ha.to(f,t,{scrollLeft:r,scrollTop:l,ease:lo?"outQuart":"inOutCubic",onComplete:function(){u=!1,c=void 0,b.dispatchEvent(po),v.lazyLoader&&v.lazyLoader.update()}})):setTimeout(function(){f.scrollLeft=r,f.scrollTop=l,u=!1,c=void 0,b.dispatchEvent(po),v.lazyLoader&&v.lazyLoader.update()},10);u?i(e):n()}}function i(e){for(var t=g.children.length;t--;){var i=g.children[t],n=void 0===e||!isNaN(e)&&e===t?1:wa.overrides.imageVideoInactiveAlpha;Ze(i,wa.mediaView.transitionDuration(),{alpha:n})}}function n(){for(var e=g.children.length;e--;)Ze(g.children[e],wa.mediaView.transitionDuration(),{alpha:1})}function o(e,t){return 0===e?"left":e===t-1?"right":wa.mediaView.hAlign()}function a(){for(var e=g.children.length;e--;){var t=g.children[e],i=.5*f.width;v.scroll?-g.translateX+i>=t.x&&-g.translateX+i<=t.x+t.width&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):f.scrollLeft+i>=t.x&&f.scrollLeft+i<=t.x+t.width&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){b.dispatchEvent("mediaScrollStart"),c!==!1&&b.dispatchEvent("pauseMedia"),u?i(p):n()}function l(e){c&&a(),c!==!1&&(c=void 0)}function s(e){void 0===c&&(c=!0),v.lazyLoader&&v.lazyLoader.update(),c&&a()}function d(e){h||r(e),clearTimeout(h),s(e),h=setTimeout(function(){l(e),h=null},300)}var c,h,u,p,m,v=e.mediaView,g=v.container,f=v.mask,b=e.localEvents,C=e.transitionDuration;return v.scroll?(v.scroll.addEventListener("scrollStop",l),v.scroll.addEventListener("scrollStart",r),v.scroll.addEventListener(Qn,s)):f.element.addEventListener("scroll",d),t.destroy=function(){v.scroll?(v.scroll.removeEventListener("scrollStop",l),v.scroll.removeEventListener("scrollStart",r),v.scroll.removeEventListener(Qn,s)):f.element&&f.element.removeEventListener("scroll",d)},t}function At(e){function t(){var e=new n;e.gap=0,e.axis="y",e.align="left",e.wrap=!1,e.perpLength=wa.mediaView.width(),o.section&&wa.section(o.section);for(var t=0,l=r.children,s=l.length;t
wa.mediaView.zoneHeight(v.section.key)&&Hi!==ji?i(e):n()}},20)}function i(e){for(var t=g.children.length;t--;){var i=g.children[t],n=void 0===e||!isNaN(e)&&e===t?1:wa.overrides.imageVideoInactiveAlpha;Ze(i,wa.mediaView.transitionDuration(),{alpha:n})}}function n(){for(var e=g.children.length;e--;)Ze(g.children[e],wa.mediaView.transitionDuration(),{alpha:1})}function o(e,t){return 0===e?"top":e===t-1?"bottom":wa.mediaView.vAlign()}function a(){for(var e=g.children.length;e--;){var t=g.children[e],i=.5*f.height;v.scroll?-g.translateY+i>=t.y&&-g.translateY+i<=t.y+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):wa.siteView.unifiedPageScroll()?window.scrollY+.5*window.innerHeight>=t.absY&&window.scrollY+.5*window.innerHeight<=t.absY+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):f.scrollTop+i>=t.y&&f.scrollTop+i<=t.y+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){b.dispatchEvent("mediaScrollStart"),c!==!1&&b.dispatchEvent("pauseMedia"),u?i(p):n()}function l(e){c&&a(),c!==!1&&(c=void 0)}function s(e){void 0===c&&(c=!0),v.lazyLoader&&v.lazyLoader.update(),c&&a()}function d(e){h||r(e),clearTimeout(h),s(e),h=setTimeout(function(){l(e),h=null},300)}var c,h,u,p,m,v=e.mediaView,g=v.container,f=v.mask,b=e.localEvents,C=e.transitionDuration;return v.scroll?(v.scroll.addEventListener("scrollStop",l),v.scroll.addEventListener("scrollStart",r),v.scroll.addEventListener(Qn,s)):wa.siteView.unifiedPageScroll()?window.addEventListener("scroll",d):f.element.addEventListener("scroll",d),t.destroy=function(){v.scroll?(v.scroll.removeEventListener("scrollStop",l),v.scroll.removeEventListener("scrollStart",r),v.scroll.removeEventListener(Qn,s)):wa.siteView.unifiedPageScroll()?window.removeEventListener("scroll",d):f.element&&f.element.removeEventListener("scroll",d)},t}function Ht(e){function t(){var e=new n;e.gap=0,e.axis="y",e.align="left",e.wrap=!1,e.perpLength=wa.mediaView.width(),o.section&&wa.section(o.section);for(var t=0,l=r.children,s=l.length;t
wa.mediaView.zoneHeight(v.section.key)?i(e):n()}},20)}function i(e){for(var t=g.children.length;t--;){var i=g.children[t],n=void 0===e||!isNaN(e)&&e===t?1:wa.overrides.imageVideoInactiveAlpha;Ze(i,wa.mediaView.transitionDuration(),{alpha:n})}}function n(){for(var e=g.children.length;e--;)Ze(g.children[e],wa.mediaView.transitionDuration(),{alpha:1})}function o(e,t){return 0===e?"top":e===t-1?"bottom":wa.mediaView.vAlign()}function a(){for(var e=g.children.length;e--;){var t=g.children[e],i=.5*f.height;v.scroll?-g.translateY+i>=t.y&&-g.translateY+i<=t.y+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):wa.siteView.unifiedPageScroll()?window.scrollY+.5*window.innerHeight>=t.absY&&window.scrollY+.5*window.innerHeight<=t.absY+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):f.scrollTop+i>=t.y&&f.scrollTop+i<=t.y+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){b.dispatchEvent("mediaScrollStart"),c!==!1&&b.dispatchEvent("pauseMedia"),u?i(p):n()}function l(e){c&&a(),c!==!1&&(c=void 0)}function s(e){void 0===c&&(c=!0),v.lazyLoader&&v.lazyLoader.update(),c&&a()}function d(e){h||r(e),clearTimeout(h),s(e),h=setTimeout(function(){l(e),h=null},300)}var c,h,u,p,m,v=e.mediaView,g=v.container,f=v.mask,b=e.localEvents,C=e.transitionDuration;return v.scroll?(v.scroll.addEventListener("scrollStop",l),v.scroll.addEventListener("scrollStart",r),v.scroll.addEventListener(Qn,s)):wa.siteView.unifiedPageScroll()?window.addEventListener("scroll",d):f.element.addEventListener("scroll",d),t.destroy=function(){v.scroll?(v.scroll.removeEventListener("scrollStop",l),v.scroll.removeEventListener("scrollStart",r),v.scroll.removeEventListener(Qn,s)):wa.siteView.unifiedPageScroll()?window.removeEventListener("scroll",d):f.element&&f.element.removeEventListener("scroll",d)},t}function jt(e){function t(){l.mask.element.scrollLeft=0,l.mask.element.scrollTop=0,l.mask.element.style.overflow="hidden";var e=new o;e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=wa.mediaView.height(l.section.key),l.section&&wa.section(l.section);var t=0,s=a.children,d=s.length,c=wa.mediaView.width(),h=wa.mediaView.height(l.section.key),u=l.maxScroll&&/unifiedSite/.test(wa.overrides.siteDisplayBehavior);for(u&&(h=Ca.getMaxScrollSectionHeight(l));t
i.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=De,a=e.mediaViewContainer,r=e.localEvents,l=e.mediaView;return t}function Bt(e){function t(e,t){var t=void 0!==t?t:a;n.dispatchEvent(uo);var r=i.children[e];if(r){var l=r.x,s=r.y;if(anime({targets:i,duration:1e3*t,translateX:-l,translateY:-s,easing:lo?"easeOutQuart":"easeInOutCubic",complete:function(){n.dispatchEvent(po),setTimeout(function(){o.lazyLoader&&o.lazyLoader.update()},360)}}),Hi===ji)for(var d=i.children,c=0;c
i.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=De,a=e.mediaViewContainer,r=e.localEvents,l=e.mediaView;return t}function _t(e){function t(e,t){var t=void 0!==t?t:a;n.dispatchEvent(uo);var r=i.children[e];if(r){var l=r.x,s=r.y;anime({targets:i,duration:1e3*t,translateX:-l,translateY:-s,easing:lo?"easeOutQuart":"easeInOutCubic",complete:function(){n.dispatchEvent(po),setTimeout(function(){o.lazyLoader&&o.lazyLoader.update()},360)}})}}var i=e.mediaViewContainer,n=e.localEvents,o=e.mediaView,a=e.transitionDuration;return t.destroy=function(){},t}function Wt(e){function t(){l.mask.element.scrollLeft=0,l.mask.element.scrollTop=0,l.mask.element.style.overflow="hidden";var e=new o;e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=wa.mediaView.height(l.section.key),l.section&&wa.section(l.section);var t=0,s=a.children,d=s.length,c=wa.mediaView.height(l.section.key),h=l.maxScroll&&/unifiedSite/.test(wa.overrides.siteDisplayBehavior);for(h&&(c=Ca.getMaxScrollSectionHeight(l));t
i.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=De,a=e.mediaViewContainer,r=e.localEvents,l=e.mediaView;return t}function Nt(e){function t(e,t,l){var t=void 0!==t?t:r;o.dispatchEvent(uo);var s=Qo.quart.out,d=n.children,c=d[e-1],h=d[e],u=d[e+1];c&&setTimeout(function(){c.transition=0,"right"===l&&(c.translateX=-wa.mediaView.width()),c.display="block",c.updateSpeed=0,c.updatePosition(),c.loaded||c.load(),Ze.defer(c,t,{translateX:-wa.mediaView.width(),alpha:1,ease:s})},0),h&&(h.transition=0,h.display="block",h.updateSpeed=0,h.updatePosition(),h.loaded||h.load(),clearTimeout(i),i=setTimeout(function(){d.filter(function(e){return e!==h&&e!==c&&e!==u}).forEach(function(e){e.display="none"})},200),Ze.defer(h,t,{translateX:0,alpha:1,ease:s,onComplete:function(){o.dispatchEvent(po),a.lazyLoader&&a.lazyLoader.update()}})),u&&setTimeout(function(){u.transition=0,"left"===l&&(u.translateX=wa.mediaView.width()),u.display="block",u.updateSpeed=0,u.updatePosition(),u.loaded||u.load(),Ze.defer(u,t,{translateX:wa.mediaView.width(),alpha:1,ease:s})},0)}var i,n=e.mediaViewContainer,o=e.localEvents,a=e.mediaView,r=e.transitionDuration;return t.destroy=function(){},t}function Xt(e){function t(e){T.element.navigationCursor=!i(T.section)}function n(e){T.element.navigationCursor=!1}function o(t){function i(e){F.removeEventListener("destroy",i),M.removeEventListener(Ji,c),M.removeEventListener(Qi,h),M.removeEventListener(on,c),M.removeEventListener(sn,h),M.removeEventListener(yn,p)}T.addChild(V),w=e.mediaItem.content,L=x(w.contactFormFields),k.text=w.contactFormExtra.replace(/\r\n/g,"
").replace(/\\r\\n/g,"
").replace(/\n\r/g,"
").replace(/\\n\\r/g,"
").replace(/\r/g,"
").replace(/\\r/g,"
").replace(/\n/g,"
").replace(/\\n/g,"
").replace(/\\/g,""),k.selectable=!0,k.setClass("dx_page_text ql-editor"),k.fontFamily=zi.contactFont,k.fontSize=zi.contactFontSize,k.fontColor=zi.contactFontColor,k.textAlign="right",k.textWrap=!1,V.addChild(k),V.addChild(O);var n=V.element.getElementsByTagName("img"),o=n.length;if(n.length>0)for(;o--;){var a=n[o];a.addEventListener(Ui,function(e){g()})}A>320&&(A=320,k.width=320,k.textWrap=!0,k.style["word-wrap"]="break-word");for(var o=0,r=L.length,s=0;o
O.height?y+=k.element.offsetHeight+t:(y+=O.height,y+=M.height+5+t),V.height=y}function r(){if(wa.section(T.section),Hi===ji||Hi===Ri)T.element.style.overflowY="scroll",T.element.style.overflowX="hidden",T.element.style["-webkit-overflow-scrolling"]="touch";else if(wa.siteView.unifiedPageScroll()&&/vScroll/.test(wa.overrides.transitionType))setTimeout(function(){wa.section(T.section),a();var e=y;e=e>wa.mediaView.height(T.section.key)?e:wa.mediaView.height(T.section.key);var t=e!==T.contentHeight;T.contentHeight=e,T.height=e,t&&F.dispatchEvent("MEDIA_HEIGHT_CHANGE")},30);else if("native"===zi.pageScrollType)T.element.style.overflowY="scroll",T.element.style.overflowX="hidden";else if("Macintosh"===ea&&"nativeMacOs"===zi.pageScrollType)T.element.style.overflowY="scroll",T.element.style.overflowX="hidden";else{T.scroll&&T.scroll.destroy();var e=zi.pageScrollbarWidth,t=Hi===ji?-(e+5):zi.pageScrollbarHorizontalOffset,i="right"===zi.pageScrollbarAlignment?-t-e:t+e,n={name:"text page",types:["bar","wheel","touch"],axis:"y",align:"top",margin:zi.pageScrollVerticalMargin,color:zi.pageScrollbarColor,hover:zi.pageScrollbarHover,side:zi.pageScrollbarAlignment,alpha:zi.pageScrollbarBgAlpha,width:e,offsetX:i,offsetY:zi.pageScrollbarVerticalOffset,property:"translate",rounded:zi.pageScrollbarRounded,visibility:zi.pageScrollbarVisibility,scrollTopCheck:!0,parent:T};"nativeMacOs"===zi.pageScrollType&&(n.margin=0,n.color="#000000",n.hover="#000000",n.side="right",n.alpha=0,n.width=7,n.offsetX=0,n.offsetY=0,n.rounded=!0,n.visibility="when scrolling"),T.scroll=new Pe(V,T,n),T.scroll.addEventListener("WINDOW_SCROLL_TOP",function(){T.scroll.percent=0,T.scroll.update(fo)})}}function l(e){function t(e){F.removeEventListener("destroy",t),o.removeEventListener(Ji,s),o.removeEventListener(Qi,d)}var i=new pa;i.width=300;var n=new ot;n.fontFamily=zi.contactTitleFont,n.fontColor=zi.contactFontColor,n.fontSize=11,n.text=e,n.selectable=!1,i.addChild(n);var o="Comments"===e?new nt:new Je;return o.backgroundColor=E(zi.contactFieldRectColor,.1),o.border="1px solid "+E(zi.contactFieldRectColor,.3),o.fontFamily=zi.contactTitleFont,o.fontColor=zi.contactFontColor,o.fontSize=16,o.height="Comments"===e?150:20,o.width=300,o.y=17,o.addEventListener(Ji,s),o.addEventListener(Qi,d),F.addEventListener("destroy",t),i.addChild(o),i.id=e,i.input=o,i}function s(e){Ze(this,fo,{backgroundColor:E(zi.contactFieldRectColor,.2),border:"1px solid "+E(zi.contactFieldRectColor,.7)})}function d(e){Ze(this,fo,{backgroundColor:E(zi.contactFieldRectColor,.1),border:"1px solid "+E(zi.contactFieldRectColor,.3)})}function c(e){Ze(this,fo,{backgroundColor:E(zi.contactFieldRectColor,.8)})}function h(e){Ze(this,fo,{backgroundColor:E(zi.contactFieldRectColor,1)})}function u(e){I.text=e.response,I.x=A+17,Ze(O,fo,{alpha:0,onComplete:function(e){O.display="none"}}),Ze(I,fo,{alpha:1})}function p(e){var t=ki[T.id],i=[].slice.apply(O.children).filter(function(e){return e.id}).reduce(function(e,t){if(e){if(e[t.id]=t.input.value||"","Name"===t.id&&""===t.input.value)return ze("Name field cannot be blank."),!1;if("Email"===t.id&&(t.input.value.indexOf("@")===-1||t.input.value.indexOf(".")===-1))return ze("Please enter valid email address."),!1;if("Comments"===t.id&&""===t.input.value)return ze("Comments field cannot be blank."),!1}return e},{});i.Title=t.label,i.toEmail=t.content.contactFormEmail,i.subject=t.content.contactFormSubject,i&&F.dispatchEvent(Mo,i)}function m(e){wa.section(T.section),Ze(T,T.updateSpeed,{backgroundColor:wa.mediaView.backgroundColor()})}function v(){return wa.section(T.section),Hi===ji||V.width+16>wa.mediaView.width()}function g(e){wa.section(T.section),Ca.activeMediaType=T.type,A=k.element.offsetWidth,V.width=A+O.width+18,v()?(k.x=8,O.x=-8,zi.contactTitleShow?(S&&(S.x=8,S.y=z(zi.contactTitleFontSize,100)),k.y=S.y+z(zi.contactTitleFontSize,100)+16,O.y=k.y+k.element.offsetHeight+16):(k.y=0,O.y=k.element.offsetHeight),T.scroll&&(T.scroll.align="top"),O.borderLeft="1px solid "+E(zi.contactFieldRectColor,0),k.textAlign="left"):(k.x=0,k.y=0,O.x=A+16,O.y=44,O.borderLeft="1px solid "+E(zi.contactFieldRectColor,.3),k.textAlign="right",zi.contactTitleShow&&S&&(S.textWrap=!0,S.x=A+32,S.y=z(zi.contactTitleFontSize,100)-33),T.scroll&&(T.scroll.align="top")),w&&!w.contactFormExtra&&(T.scroll&&(T.scroll.align="top"),O.borderLeft="1px solid "+E(zi.contactFieldRectColor,0),O.x=-8,S&&(S.x=8)),V.transition=0,a(),Ze.defer(V,T.updateSpeed,{x:f(),y:b(),onComplete:function(){T.scroll&&T.scroll.resize(),Ze(V,fo,{alpha:1})}}),T.updateSpeed=fo,isInit=!1,r()}function f(){if(wa.section(T.section),Ca._activeView="contact",V.width+16>wa.mediaView.width()){var e=Math.round(.5*(wa.mediaView.width()-O.width));return e}var e=Math.round(.5*(wa.mediaView.width()-V.width));return e}function b(){return wa.section(T.section),Ca._activeView="contact",y>wa.mediaView.height(T.section.key)?Hi===ji||Hi===Ri?40:22:Math.round(.5*(wa.mediaView.height(T.section.key)-y))}function C(e){F.removeEventListener(qi,g),F.removeEventListener(Hn,g),F.removeEventListener("destroy",C),F.removeEventListener("showCursor",t),F.removeEventListener("hideCursor",n),F.removeEventListener(Vo,u),T.removeEventListener(bo,o)}var w,y,L,S,M,T=new pa({events:e.events}),V=new pa,k=new pa,O=new pa,I=new pa,F=e.localEvents,A=0;return T.section=e.section,T.alpha=0,V.alpha=0,V.selectable=!0,T.updateSpeed=0,T.id=e.mediaItem.id,T.type=e.mediaItem.type,T.dims=e.size.content,T.element.navigationCursor=!i(T.section),T.mediaItem=e.mediaItem,T.addEventListener(bo,o),F.addEventListener(qi,g),F.addEventListener(Hn,g),F.addEventListener("destroy",C),F.addEventListener("showCursor",t),F.addEventListener("hideCursor",n),T.load=function(){T.loaded=!0},T.unload=function(){},T.show=function(){T.display="block",Ze(T,fo,{alpha:1})},T.hide=function(){Ze(T,fo,{alpha:0,onComplete:function(){T.display="none"}})},T.updatePosition=g,T}function Yt(e){function t(){i(C.section)||(C.element.navigationCursor=!0,x.element.navigationCursor=!0,M.element.navigationCursor=!0),x.element.addEventListener("contextmenu",n),x.element.addEventListener("dragstart",n),C.element.style["user-select"]="none",M.element.style["user-select"]="none",x.element.style["user-select"]="none",C.addChild(M),M.addChild(x),"spinner"===wa.overrides.imageVideoLoaderType&&(y=new Qe({color:e.loaderColor}),M.addChild(y)),r(),m()}function n(e){var t=void 0===Fi.disableRightClick||Fi.disableRightClick;t&&e.preventDefault()}function o(){i(C.section)||(C.element.navigationCursor=!0,x.element.navigationCursor=!0,M.element.navigationCursor=!0)}function a(){C.element.navigationCursor=!1,x.element.navigationCursor=!1,M.element.navigationCursor=!1}function r(){wa.section(C.section),x&&zi.imageRendering.optimizeQuality&&(x.style["image-rendering"]="optimizeQuality"),x&&zi.imageRendering.webkitOptimizeContrast&&(x.style["image-rendering"]="-webkit-optimize-contrast"),x&&"Safari"===ta&&zi.imageRendering.webkitBackfaceVisibility&&(x.element.style["-webkit-backface-visibility"]="hidden"),x&&Hi===ji&&(x.element.style["-webkit-backface-visibility"]="hidden"),Hi===ji?Ze(C,C.updateSpeed,{backgroundColor:zi.containerColorMobile||wa.mediaView.backgroundColor()}):Hi===Ri?Ze(C,C.updateSpeed,{backgroundColor:zi.containerColorTablet||wa.mediaView.backgroundColor()}):Ze(C,C.updateSpeed,{backgroundColor:wa.mediaView.backgroundColor()}),u()}function l(){if(/media/.test(L.captionAnchorTo)||/media/.test(wa.overrides.captionAnchorTo)){wa.section(C.section),Ca.activeMediaType=C.type,w.container.transition=0,J(L.captionCloseButton,wa.overrides.captionCloseButton)?w.showCloseButton():w.hideCloseButton();var t={onInit:function(){w.scroll&&w.scroll.hide()},onComplete:function(){w.scroll&&(w.scroll.show(),w.scroll.resize())}},i=L.captionBackgroundRectColor||wa.overrides.captionBackgroundRectColor,n=J(L.captionBackgroundAlpha,wa.overrides.captionBackgroundAlpha);if(w.backgroundColor=E(i,n),w.fontFamily=L.captionFont||wa.overrides.captionFont,w.fontSize=ma.width
-1)&&w.show(l)}}function p(){w.hide()}function m(){wa.section(C.section),Ca.activeMediaType=C.type,H=wa.mediaView.maskWidth(C.width),R=wa.mediaView.maskHeight(C.height,C.section.key),Ze(M,C.updateSpeed,{x:wa.mediaView.maskX(),y:wa.mediaView.maskY(C.section.key),width:H,height:R}),f(),j&&g(),u()}function v(){C.updateSpeed=0,j=!0,this.width&&T!==this.width&&(T=this.width),this.height&&V!==this.height&&(V=this.height),y&&(y.removeLoader(),M.removeChild(y)),m(),u(),C.dispatchEvent(go,{type:"image",id:e.mediaItem.id,width:this.width,height:this.height}),C.events.dispatchEvent(go,{type:"image",id:e.mediaItem.id,width:this.width,height:this.height}),C.updateSpeed=fo,"Safari"===ta&&/hScroll/.test(wa.overrides.transitionType)&&x.element.setAttribute("nopin","nopin")}function g(){wa.section(C.section);var e=Ie(null,0,{type:wa.mediaView.imageScaleType(),width:T,height:V,hRange:H,vRange:R,hAlign:wa.mediaView.hAlign(),vAlign:wa.mediaView.vAlign(), disableOrientationCheck:A()});z=Math.ceil(e.scale.width),k=Math.ceil(e.scale.height),I=Math.floor(e.align.x),F=Math.floor(e.align.y),Ze(x,C.updateSpeed,{x:I,y:F,width:z,height:k,onComplete:function(){setTimeout(function(){Ze(x,wa.mediaView.transitionDuration(),{alpha:1,ease:"cubic-bezier(0.7, 0, 0.3, 1)"})},0)}}),u()}function f(){y&&(y.x=.5*(H-y.width),y.y=.5*(R-y.height))}function b(){B.removeEventListener("destroy",b),B.removeEventListener(qi,m),B.removeEventListener(Hn,m),B.removeEventListener("showCursor",o),B.removeEventListener("hideCursor",a),x.removeEventListener(Ui,v),C.removeEventListener(bo,t)}var C=new pa({events:e.localEvents});C.alpha=0,C.updateSpeed=0,C.overflow="hidden",C.id=e.mediaItem.id,C.type=e.mediaItem.type,C.dims=e.size.content,C.section=e.section,C.state=e.state,C.mediaItem=e.mediaItem;var w,y,L,S,x=new Ge,M=new pa,T=e.size.content.width,V=e.size.content.height,z=0,k=0,I=0,F=0,H=0,R=0,j=!1,B=e.localEvents;x.alpha=0,x.selectable=!1,M.overflow="hidden",B.addEventListener(qi,m),B.addEventListener(Hn,m),B.addEventListener("destroy",b),B.addEventListener("showCursor",o),B.addEventListener("hideCursor",a),C.addEventListener(bo,t);var D=O(e.mediaItem);return w||""===D||(w=new xa,L=e.mediaItem.overrides||{},B.addEventListener("showCaption",u),B.addEventListener("hideCaption",p),B.addEventListener("checkCaption",s),d(D)),C.load=function(){C.loaded=!0,x.addEventListener(Ui,v),x.src=c(e.mediaItem.content,e.mediaItem.demoFile),""!==D&&(C.addChild(w.container),l())},C.unload=function(){},C.hide=function(){1===C.alpha&&Ze(C,fo,{alpha:0,onComplete:function(){C.display="none"}})},C.show=function(){0===C.alpha&&(C.display="block",Ze(C,fo,{alpha:1}))},C.updatePosition=m,C}function Zt(e){function t(e){i(M.section)||(M.element.navigationCursor=!0,y&&(y.element.navigationCursor=!0),V.element.navigationCursor=!0)}function n(e){M.element.navigationCursor=!1,y&&(y.element.navigationCursor=!1),V.element.navigationCursor=!1}function o(e){/page|imageRendering/.test(e.id)&&(v(),g())}function a(){wa.section(M.section),e.mediaItem.content=pe(e.mediaItem.content),M.loaded=!1;var t=Fe({width:E,height:k,filename:e.mediaItem.featuredImage});E=Math.round(t.width),k=Math.round(t.height),m()&&!w()?(y=new Ge,y.dataSrc=c(e.mediaItem.featuredImage,e.mediaItem.demoFile),i(M.section)||(y.element.navigationCursor=!0,V.element.navigationCursor=!0),y.addEventListener(Ui,b),y.alpha=0,M.addChild(y)):(M.events.dispatchEvent(go,{}),setTimeout(function(){M.updateSpeed=wa.mediaView.transitionDuration()},0));var n="";if(p()){var o=wa.overrides.pageTitleFont.split(":"),a=o[0],r=o[1],l=z(wa.overrides.pageTitleFontSize,22);n+="
"+e.mediaItem.label+"
"}R=w(),w()&&m()&&(n+="
"),n+=P(e.mediaItem.content);var s=T.element.getElementsByClassName("no-lazy-load");s.length||(T.text=n.replace(/src\=/g,"data-src=")),V.addChild(T),M.addChild(V),x=T.element.getElementsByClassName("responsive"),S=T.element.getElementsByClassName("responsive-width")}function r(e){a(),v(),g()}function l(){L=Array.prototype.slice.apply(T.element.getElementsByTagName("img"));var e=Array.prototype.slice.apply(T.element.getElementsByTagName("iframe"));L=L.concat(e);var t=Array.prototype.slice.apply(T.element.getElementsByTagName("input"));L=L.concat(t);var i=L.length;if(i>0)for(;i--;)!function(e){var t=e.getAttribute("data-src");e.addEventListener(Ui,function(t){setTimeout(function(){e.width&&(e.originalWidth=e.width),g()},100)}),e.src=t}(L[i])}function s(){var e=Array.prototype.slice.apply(T.element.getElementsByTagName("video"));e.forEach(function(e){var t=e.getAttribute("data-src");e.addEventListener(Ui,function(e){}),e.src=t})}function d(){return"native"===wa.overrides.pageScrollType||Jo&&("nativeMacOs"===wa.overrides.pageScrollType||zi.globalSmoothScroll)}function h(){if(wa.section(M.section),Hi!==ji&&Hi!==Ri||(V.element.style["-webkit-overflow-scrolling"]="touch"),d()||/unifiedSite/.test(wa.overrides.siteDisplayBehavior))V.element.style.overflowY="auto",V.element.style.overflowX="hidden",V.element.style["-webkit-overflow-scrolling"]="touch",Ze.defer(T,fo,{alpha:1});else{M.scroll&&M.scroll.destroy();var e=wa.overrides.pageScrollbarWidth,t=Hi===ji?-(e+5):wa.overrides.pageScrollbarHorizontalOffset,i="right"===wa.overrides.pageScrollbarAlignment?-t-e:t+e,n={name:"text page",types:["bar","wheel","touch"],axis:"y",align:"top",margin:wa.overrides.pageScrollVerticalMargin,color:wa.overrides.pageScrollbarColor,hover:wa.overrides.pageScrollbarHover,side:wa.overrides.pageScrollbarAlignment,alpha:wa.overrides.pageScrollbarBgAlpha,width:e,offsetX:i,offsetY:wa.overrides.pageScrollbarVerticalOffset,property:"translate",rounded:wa.overrides.pageScrollbarRounded,visibility:wa.overrides.pageScrollbarVisibility,scrollTopCheck:!0};("nativeMacOs"===wa.overrides.pageScrollType||zi.globalSmoothScroll)&&(n.margin=0,n.color="#000000",n.hover="#000000",n.side="right",n.alpha=0,n.width=7,n.offsetX=0,n.offsetY=0,n.rounded=!0,n.visibility="when scrolling"),M.scroll=new Pe(T,V,n),M.scroll.addEventListener("WINDOW_SCROLL_TOP",function(){M.scroll.percent=0,M.scroll.update(fo)})}clearTimeout(j),j=setTimeout(function(){wa.section(M.section);var e=z(wa.overrides.pageMarginTop,ma.height),t=z(wa.overrides.pageMarginBottom,ma.height),i=e+T.element.offsetHeight+t;m()&&!w()&&(i=i>e+y.element.offsetHeight+t?i:e+y.element.offsetHeight+t),B=i!==M.contentHeight,M.contentHeight=i,u(M.section)?(Ca._mediaMarginPrefix="page",V.height=Math.round(wa.mediaView.maskHeight(void 0,M.section.key)),M.height=Math.round(wa.mediaView.height(M.section.key))):(V.height=i,M.height=i),B&&H.dispatchEvent("MEDIA_HEIGHT_CHANGE"),M.scroll&&M.scroll.resize(),Ze.defer(T,fo,{alpha:1})},20)}function u(e){return wa.section(M.section),Hi!==ji&&("none"===wa.overrides.siteDisplayBehavior||!/vScroll/.test(wa.overrides.transitionType)&&e.media.length>1)}function p(){return wa.section(M.section),wa.overrides.pageTitle&&""!==e.mediaItem.label}function m(){return""!==e.mediaItem.featuredImage}function v(e){wa.section(M.section),y&&zi.imageRendering.optimizeQuality&&(y.style["image-rendering"]="optimizeQuality"),y&&zi.imageRendering.webkitOptimizeContrast&&(y.style["image-rendering"]="-webkit-optimize-contrast"),y&&"Safari"===ta&&zi.imageRendering.webkitBackfaceVisibility&&(y.style["-webkit-backface-visibility"]="hidden"),T.fontFamily=wa.overrides.pageTextFont,T.fontColor=wa.overrides.pageTextFontColor,T.fontSize=wa.overrides.pageTextFontSize,T.letterSpacing=wa.overrides.pageTextKerning,Ze(M,M.updateSpeed,{backgroundColor:wa.mediaView.backgroundColor()})}function g(e){wa.section(M.section),Ca.activeMediaType=M.type;var t=Math.round(wa.mediaView.maskX()),i=Math.round(wa.mediaView.maskY(M.section.key)),n=wa.mediaView.maskWidth(M.element.offsetWidth);if(I=Math.round(wa.mediaView.maskWidth(M.element.offsetWidth)),F=Math.round(wa.mediaView.maskHeight(M.element.offsetHeight,M.section.key)),wa.overrides.pageMaxWidth&&I>wa.overrides.pageMaxWidth)switch(I=wa.overrides.pageMaxWidth,wa.overrides.pageMaxAlign){case"center":t+=Math.round(.5*(n-I));break;case"right":t+=Math.round(n-I)}y&&m()&&!w()&&(t+=E+O,I-=E+O,Ze(y,M.updateSpeed,{x:t-E-O,y:i})),!R&&w()?(y&&(M.removeChild(y),y=void 0),a()):R&&!w()&&(T.text="",a()),Ze(V,0,{x:t,y:i,width:I,height:F}),Ze(T,0,{width:I}),f(),x&&x.length>0?((ae()||se())&&(V.style.overflow="auto",V.style["-webkit-overflow-scrolling"]="touch"),Ze.defer(T,fo,{alpha:1})):h()}function f(){if(x){var e=x[0];e&&(e.style.overflow="hidden",e.style.width=I-e.offsetLeft+"px",e.style.height=F-e.offsetTop+"px",e.style.border="none")}if(S){var t=S[0];t&&(t.style.overflow="hidden",t.style.width=I-t.offsetLeft+"px",t.style.border="none")}if(L){var i=L.length;if(i>0)for(;i--;){var n=L[i];0===n.offsetLeft&&(n.originalWidth&&n.originalWidth>I?n.width=I:n.originalWidth&&(n.width=n.originalWidth))}}}function b(t){M.updateSpeed=0,A=!0;var i=Fe({width:y.element.offsetWidth,height:y.element.offsetHeight,filename:y.src});E=Math.round(i.width),k=Math.round(i.height),y.width=E,y.height=k,Ze(y,1,{alpha:1}),M.updateSpeed=wa.mediaView.transitionDuration(),g(),M.events.dispatchEvent(go,{type:"featuredImage",id:e.mediaItem.id,width:y.width,height:y.height})}function C(e){H.removeEventListener(qi,g),H.removeEventListener(Hn,g),H.removeEventListener("destroy",C),H.removeEventListener("showCursor",t),H.removeEventListener("hideCursor",n),y&&y.removeEventListener(Ui,b),M.removeEventListener(bo,r)}function w(){return Hi===ji||(wa.mediaView.width()
-1)&&Q.show(T)}}function F(){Q.hide(),Q.scroll&&Q.scroll.destroy()}function H(){wa.section(U.section),q&&zi.imageRendering.optimizeQuality&&(q.style["image-rendering"]="optimizeQuality"),q&&zi.imageRendering.webkitOptimizeContrast&&(q.style["image-rendering"]="-webkit-optimize-contrast"),q&&"Safari"===ta&&zi.imageRendering.webkitBackfaceVisibility&&(q.style["-webkit-backface-visibility"]="hidden"),Ca.activeMediaType=U.type,ge=wa.mediaView.maskWidth(U.width),fe=wa.mediaView.maskHeight(U.height,U.section.key),h(),I(),Ze(K,U.updateSpeed,{x:wa.mediaView.maskX(),y:wa.mediaView.maskY(U.section.key),width:ge,height:fe,onComplete:function(){h()}}),ee&&Z(),me(e.mediaItem)&&ae()||Te||ee&&Ze(ee,fo,{alpha:1}),Te&&!Me&&j(),Me&&B()}function R(){U.updateSpeed=0,Te=!0,H(),j(),ee&&Ze(ee,fo,{alpha:0}),U.events.dispatchEvent(go,{type:"posterImage",id:e.mediaItem.id,width:le,height:de}),U.updateSpeed=fo,re.addEventListener(Ui,d),re.src=ho+"play@2x.png",I(),"Safari"===ta&&/hScroll/.test(wa.overrides.transitionType)&&q.element.setAttribute("nopin","nopin")}function j(){wa.section(U.section),Ca.activeMediaType=U.type,ge=wa.mediaView.maskWidth(U.width),fe=wa.mediaView.maskHeight(U.height,U.section.key);var e=Ie({},0,{type:wa.mediaView.imageScaleType(),width:le,height:de,hRange:ge,vRange:fe,hAlign:wa.mediaView.hAlign(),vAlign:wa.mediaView.vAlign(),disableOrientationCheck:A()});ce=Math.ceil(e.scale.width),he=Math.ceil(e.scale.height),ue=Math.floor(e.align.x),pe=Math.floor(e.align.y),Ze(q,U.updateSpeed,{x:ue,y:pe,width:ce,height:he,onComplete:function(){setTimeout(function(){wa.section(U.section),i(U.section)||Ze(q,wa.mediaView.transitionDuration(),{alpha:1,ease:"cubic-bezier(0.7, 0, 0.3, 1)"})},1e3)}}),Q&&T()}function B(t){wa.section(U.section),Ca.activeMediaType=U.type,t&&(U.playState=t),$.display="block",setTimeout(function(){$.display="block"},1e3),ge=wa.mediaView.maskWidth(U.width),fe=wa.mediaView.maskHeight(U.height,U.section.key);var i=Ie({},0,{type:wa.mediaView.videoScaleType(me(e.mediaItem)),width:be,height:Ce,hRange:ge,vRange:fe,hAlign:wa.mediaView.hAlign(),vAlign:wa.mediaView.vAlign(),disableOrientationCheck:A()});if(Se=Math.floor(i.align.x),xe=Math.floor(i.align.y),we=Math.ceil(i.scale.width),ye=Math.ceil(i.scale.height),we&&ye){if(Ze($,U.updateSpeed,{x:Se,y:xe,width:we,height:ye,onComplete:function(){setTimeout(function(){Ze($,fo,{alpha:1,ease:"cubic-bezier(0.7, 0, 0.3, 1)"})},1e3)}}),$.setSize(we,ye,U.updateSpeed),X(i),$.hud){var n=Math.floor(i.align.x),o=Math.floor(i.align.y),a=we,r=ye;we>wa.mediaView.maskWidth()&&"hScroll"!==wa.overrides.transitionType?(n=0,a=wa.mediaView.maskWidth(),r=wa.mediaView.maskHeight(void 0,U.section.key)):ye>wa.mediaView.maskHeight(void 0,U.section.key)&&(o=0,a=wa.mediaView.maskWidth(),r=wa.mediaView.maskHeight(void 0,U.section.key)),$.hud.resize(U.updateSpeed,n,o,a,r);var l=i.align.x>0?i.align.x:0,s=i.align.y>0?i.align.y:0;$.unmuteBtn.x=Math.round(l)+20,$.unmuteBtn.y=Math.round(s)+20}Q&&T()}}function D(){return{banner:{width:0,height:0},hdpopup:{width:170,height:180},shareCtrls:{width:50,height:180},videoCtrls:{width:we,height:50}}}function _(){return{banner:{width:550,height:180},hdpopup:{width:170,height:180},shareCtrls:{width:50,height:180},videoCtrls:{width:we,height:50}}}function W(){return{banner:{width:550,height:180},hdpopup:{width:170,height:180},shareCtrls:{width:50,height:180},videoCtrls:{width:we,height:50}}}function N(){return"ended"===U.playState?W():"paused"===U.playState?_():D()}function X(e){if(ie){var t=N();se()&&(t.banner.width=540,t.banner.height=170);var i=.5*(we-t.banner.width),n=.5*(ye-t.banner.height);ie.top.x=e.align.x,ie.top.y=e.align.y,ie.top.width=we-t.shareCtrls.width,ie.top.height=n,ie.right.x=e.align.x+we-i,ie.right.y=e.align.y+t.shareCtrls.height,ie.right.width=i,ie.right.height=ye-t.shareCtrls.height-t.hdpopup.height,ie.bottom.x=e.align.x,ie.bottom.y=e.align.y+ye-n,ie.bottom.width=we-t.hdpopup.width,ie.bottom.height=n-t.videoCtrls.height,ie.left.x=e.align.x,ie.left.y=e.align.y,ie.left.width=i,ie.left.height=ye-t.videoCtrls.height}}function Y(t){t.id===e.mediaItem.id&&(e.mediaItem.thumb!==t.thumb,e.mediaItem.content!==t.content)}function Z(){wa.section(U.section),ee&&(ee.transition=0,ee.x=.5*(wa.mediaView.maskWidth(U.width)-ee.width),ee.y=.5*(wa.mediaView.maskHeight(U.height,U.section.key)-ee.height))}function G(){U.events.removeEventListener(Gn,u),U.events.removeEventListener(Un,p),U.events.removeEventListener(po,g),U.events.removeEventListener(Go,l),U.events.removeEventListener(Uo,s),Ve.removeEventListener(qi,H),Ve.removeEventListener(Hn,H),Ve.removeEventListener("mediaSizeUpdate",H),Ve.removeEventListener(Rn,Y),Ve.removeEventListener("mediaAutoPlay",r),Ve.removeEventListener("destroy",G),Ve.removeEventListener("showCursor",t),Ve.removeEventListener("hideCursor",n),q.removeEventListener(Ui,R),$&&($.element.removeEventListener("webkitendfullscreen",C),me(e.mediaItem)?$.removeEventListener(vo,L):$.element.removeEventListener(mo,y,!1),$.destroy()),U.removeEventListener(bo,o)}var U=new pa({events:e.localEvents});U.alpha=0,U.updateSpeed=0,U.overflow="hidden",U.id=e.mediaItem.id,U.type=e.mediaItem.type,U.dims=e.size.content,U.section=e.section,U.state=e.state,U.mediaItem=e.mediaItem,e.mediaItem.thumb.length||(ki[U.id].size.thumb.width=1200,ki[U.id].size.thumb.height=800);var q=new Ge,K=new pa;K.element.className="video.mask";var Q,$,ee,te,ie,ne,oe,re=new Ge,le=e.size.thumb.width,de=e.size.thumb.height,ce=0,he=0,ue=0,pe=0,ge=0,fe=0,be=e.size.content.width,Ce=e.size.content.height,we=0,ye=0,Se=0,xe=0,Me=!1,Te=!1,Ve=e.localEvents;q.alpha=0,q.zIndex=1,K.overflow="hidden",re.width=70,re.height=70,re.alpha=0,re.zIndex=4,U.addEventListener(bo,o),U.events.addEventListener(Un,p),U.events.addEventListener(Go,l),U.events.addEventListener(Uo,s),Ve.addEventListener(qi,H),Ve.addEventListener(Hn,function(){$&&(me(e.mediaItem)?wa.overrides.videoLoop?$.setLoop("true"):$.setLoop("false"):wa.overrides.videoLoop?$.element.setAttribute("loop",!0):$.element.removeAttribute("loop")),H()}),Ve.addEventListener("mediaSizeUpdate",H),Ve.addEventListener(Rn,Y),Ve.addEventListener("mediaAutoPlay",r),Ve.addEventListener("destroy",G),Ve.addEventListener("showCursor",t),Ve.addEventListener("hideCursor",n);var Ee=O(e.mediaItem);return Q||""===Ee||(Q=new xa,Q.container.zIndex=3,te=e.mediaItem.overrides||{},Ve.addEventListener("showCaption",I),Ve.addEventListener("hideCaption",F),Ve.addEventListener("checkCaption",V),z(Ee)),U.load=function(){wa.section(U.section),U.loaded=!0,U.playState=wa.overrides.videoAutoPlay?"playing":"paused",""!==Ee&&(U.addChild(Q.container),T()),ve(e.mediaItem)?(q.addEventListener(Ui,R),e.mediaItem.thumb.length?q.src=c(e.mediaItem.thumb,e.mediaItem.demoFile):q.src=ho+"videoLarge2.png"):$||(g(),wa.overrides.videoAutoPlay&&Hi!==ji&&Hi!==Ri||$.setSource(e.mediaItem.content,!1),I())},U.unload=function(){},U.play=function(t){wa.section(U.section),t=void 0!==t?t:wa.overrides.videoAutoPlay,$&&$.src?$.play():$&&!$.src?$.setSource(e.mediaItem.content,t):$||(g(),$.setSource(e.mediaItem.content,t)),ee&&(ee.removeLoader(),ee.zIndex=0),Ze(re,fo,{alpha:0,onComplete:function(){re.display="none"}}),i(U.section)&&!zi.landingMediaUnmuteBtn&&($.disableUnmuteButton(),me(e.mediaItem)||$.hud.disable())},U.pause=function(){$&&$.pause()},U.destroy=function(){p()},U.autoPlay=function(){U.play(!0),Hi!==ji&&H()},U.hide=function(){1===U.alpha&&Ze(U,fo,{alpha:0,onComplete:function(){U.display="none"}})},U.show=function(){0===U.alpha&&(U.display="block",Ze(U,fo,{alpha:1}))},U.updatePosition=H,U}function Ut(e){function t(){F.thumbs&&F.thumbs.getTotalHeight()&&(F.overlayView.contentHeight=F.thumbs.getTotalHeight()),F.overlayView.updatePosition()}function i(){F.overlayView.show(),F.thumbs.show()}function n(){F.overlayView.hide(),F.thumbs.hide()}function o(e){if(T){var t=l(e.id),i=t&&t.key.indexOf(T.key)>-1;(e&&"thumb"===e.field||e.section===T||i)&&(A=!0,T=e.section?e.section:T,F.overlayView.section=T,F.overlayView.updatePosition(e),v({mode:M,section:T}),F.thumbs&&F.thumbs.resize()),T=e.section?e.section:T,F.overlayView.section=T}else F.thumbs&&(n(),F.thumbs.scroll&&F.thumbs.scroll.destroy(),F.overlayView.removeChild(F.thumbs),delete F.thumbs)}function a(e){F.inquiry&&F.inquiry.updateInquiryInfo()}function r(e){e&&F.share&&(F.share.updateStyle(e),F.share.updatePosition(e)),e&&F.inquiry&&(F.inquiry.updateStyle(e),F.inquiry.updatePosition(e)),e&&/overlay/.test(e.id)&&("overlay"===wa.overrides.thumbnailDock||/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType))&&(A=!0,F.overlayView.updatePosition(e),"changeTemplate"===e.action||(R=!0,v({mode:M,section:T}))),e&&/paginated|static|thumbnail|menuWidth|menuAlignHorizontal|menuOffsetX|sitePaddingTop|sitePaddingRight|sitePaddingBottom|sitePaddingLeft/i.test(e.id)&&(A=!0,F.overlayView.updatePosition(e),"changeTemplate"===e.action||(R=!0,v({mode:M,section:T})),F.thumbs&&F.thumbs.resize())}function d(e){(e.info.isMediaViewStateChange||e.info.isModeChange)&&F.overlayView.updatePosition(e),e.assetId&&(V=e.assetId),e.section&&wa.section(e.section),wa.siteView.unifiedPageScroll()&&/strip/.test(wa.overrides.thumbnailType)?F.overlayView.position="fixed":F.overlayView.position="absolute",(w(e)||y(e)||c(e))&&(F.overlayView.contentHeight=wa.mediaView.zoneHeight(e.section.key),F.overlayView.show()),v(e)}function c(t){if(t.section&&t.mode.indexOf("fotomoto")>-1){var i=x(t.section.media),n=s(i[t.assetId]);return window.FOTOMOTO&&n&&n.type===Di&&window.FOTOMOTO.API.showWindow(10,Fi.cdnSslUri+"/"+n.content),setTimeout(function(){e.siteEvents.dispatchEvent("clearFotomotoMode","fotomoto")},100),!0}return!1}function h(e,t){return!!t&&t.indexOf(e)!==-1}function u(e){F.thumbs&&!F.thumbs.scroll&&/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType)?e.info&&e.info.isModeChange&&h("thumbs",e.mode)||(e.info&&!e.info.isSectionChange&&e.info.isModeChange&&h("thumbs",e.info.lastUri)?O=F.thumbs.mask.scrollY||window.scrollY:e.info&&e.info.isSectionChange&&(O=void 0)):O=void 0}function p(e){if(F.thumbs&&wa.section(F.thumbs.section),"unifiedSiteScrollVertical"!==wa.overrides.siteDisplayBehavior&&F.thumbs&&!F.thumbs.scroll&&/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType)&&(info&&info.isSectionChange&&!info.isModeChange&&h("thumbs",M)?wa.siteView.unifiedPageScroll()&&window.scrollTo(0,0):info&&!info.isSectionChange&&info.isModeChange&&h("thumbs",M)&&(wa.siteView.unifiedPageScroll()?window.scrollTo(0,O||0):F.thumbs.mask.scrollY=O||0)),F.thumbs&&/strip/.test(wa.overrides.thumbnailType)&&h("thumbs",M))if(F.thumbs.scroll&&!F.thumbs.mouseHover)F.thumbs.scroll.percent=V/(k.length-1),F.thumbs.scroll.update(fo),F.thumbs.lazyLoader&&F.thumbs.lazyLoader.update();else if("strip"===wa.overrides.thumbnailType){var t=V/(k.length-1);if(/top|bottom/.test(wa.overrides.thumbnailSide)){var i=F.thumbs.mask.grid.width-F.thumbs.mask.width;ha.to(F.thumbs.mask,fo,{scrollLeft:Math.round(i*t),scrollTop:0,ease:lo?"outQuart":"inOutCubic",onComplete:function(){F.thumbs&&F.thumbs.lazyLoader&&F.thumbs.lazyLoader.update()}})}else{var i=F.thumbs.mask.grid.height-F.thumbs.mask.height;ha.to(F.thumbs.mask,fo,{scrollLeft:0,scrollTop:Math.round(i*t),ease:lo?"outQuart":"inOutCubic",onComplete:function(){F.thumbs&&F.thumbs.lazyLoader&&F.thumbs.lazyLoader.update()}})}}}function v(t){if(M=t.mode||"",T=t.section||T,F.overlayView.section=T,P=t.info?t.info.isModeChange:M!==t.mode&&T===t.section,info=t.info?t.info:{},t.assetId>-1&&(V=t.assetId),E=t.path||E,t.section&&(k=t.section.mediaItems||k),/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType)&&/thumbs/.test(M)?(e.siteEvents.dispatchEvent(Gn),setTimeout(function(){e.mediaView.scroll&&e.mediaView.scroll.hide()},20)):/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType)&&setTimeout(function(){e.mediaView.scroll&&e.mediaView.scroll.show()},0),F.thumbs&&F.thumbs.section!==T&&(O=void 0),F.thumbs&&(F.thumbs.section!==T||A||R)&&(F.thumbs.scroll&&F.thumbs.scroll.destroy(),F.thumbs.lazyLoader&&delete F.thumbs.lazyLoader,F.overlayView.removeChild(F.thumbs),delete F.thumbs),k=t.section.media.filter(function(e){return null!==e}).filter(function(e){return!fe(l(e))}).map(function(e,t){var i=e<1e4?S(l(e)):JSON.parse(JSON.stringify(s(e))); return i.assetId=t,i}).filter(function(e){return!!e&&!e.slideshow}),t.section&&t.section.thumb)if(z=t.section.thumb,!F.thumbs&&M.indexOf("thumbs")>-1&&("hPaginatedGrid"===wa.overrides.thumbnailType?(F.thumbs=new Kt({assetId:V,path:E,mediaItems:k,settings:z,events:e.siteEvents,localEvents:e.localEvents,parent:e.siteView,section:T,thumbnailOnly:wa.overrides.thumbnailOnly,isIndexSection:t.info?t.info.isIndexSection:f(T)}),F.overlayView.contentHeight=wa.mediaView.zoneHeight(t.section.key)):(F.thumbs=new Qt({assetId:V,path:E,mediaItems:k,settings:z,events:e.siteEvents,localEvents:e.localEvents,parent:e.siteView,section:T,thumbnailOnly:wa.overrides.thumbnailOnly,isIndexSection:f(T)}),F.overlayView.contentHeight="strip"===wa.overrides.thumbnailType&&"unifiedSiteScrollVertical"===wa.overrides.siteDisplayBehavior?wa.mediaView.zoneHeight(t.section.key):F.thumbs.getTotalHeight()),F.thumbs.section=T,F.thumbs.settings=z,F.overlayView.addChild(F.thumbs)),F.thumbs&&M.indexOf("thumbs")>-1&&(!F.thumbs.toggleState()||A))setTimeout(function(){g(),p(t),i()},1e3*fo);else if(F.thumbs&&F.thumbs.toggleState()&&M.indexOf("thumbs")===-1)if(P)if(g(),wa.siteView.unifiedPageScroll()||/^unifiedSite/.test(wa.overrides.siteDisplayBehavior)&&"multiple"===Ca.sectionDisplayMode||"strip"===wa.overrides.thumbnailType)n();else{var o=500*fo;setTimeout(function(){n()},o)}else e.siteEvents.addEventListener(uo,b);u(t),setTimeout(function(){C(t),M.indexOf("thumbs")>-1&&p(t)},20),P=!1,A=!1,R=!1}function g(){"strip"===wa.overrides.thumbnailType&&"displace"===wa.overrides.thumbnailDock&&e.siteEvents.dispatchEvent("thumbStripDisplaceChange")}function b(){e.siteEvents.removeEventListener(uo,b),1===zi.overlayAlpha&&e.siteEvents.dispatchEvent("OPAQUE_OVERLAY_CLOSE"),n()}function C(){F.thumbs&&(V>-1?F.thumbs.highlight(V):F.thumbs.highlight(-1))}function w(t){return t.mode.indexOf("share")>-1?(F.share||(F.share=new wi(Object.assign({},e,{section:t.section})),F.share.pointerEvents="auto",F.overlayView.addChild(F.share)),F.share.updateContent(t),F.share.show(),!0):(F.share&&F.share.hide(),!1)}function y(t){return t.mode.indexOf("inquiry")>-1?(F.inquiry||(F.inquiry=new Ci(Object.assign({},e,{section:t.section})),F.inquiry.pointerEvents="auto",F.overlayView.addChild(F.inquiry)),F.inquiry.updateContent(t),F.inquiry.show(),!0):(F.inquiry&&F.inquiry.hide(),!1)}function L(e){if(e.customThumb)return{name:e.customThumb,size:e.customThumbSize};if(e.media)for(var t=0;t
9999){var i=s(e.media[t]);if(i.thumb)return{name:i.thumb,size:i.size.thumb,demoFile:i.demoFile};if("image"===i.type)return{name:i.content,size:i.size.content,demoFile:i.demoFile}}return{name:"",size:{width:0,height:0}}}function S(e){var t;if(e){var i=s(e.media[0]),n=L(e);m(i,e)?(t=JSON.parse(JSON.stringify(i)),t.size.thumb=n.size,t.thumb=n.name,t.demoFile=n.demoFile):t={size:{content:{width:0,height:0},thumb:{width:n.size.width,height:n.size.height},featuredImage:{width:0,height:0},bytes:0},slideshow:e.slideshow,label:e.label,subTitle:e.subTitle,alias:e.alias,title:"",type:"link",content:e.indexLink||e.key.replace(/ /g,"-"),thumb:n.name,linkTarget:e.linkTarget||"_self",caption:"",overrides:{thumbScaleFactor:e.overrides.thumbScaleFactor},featuredImage:"",filters:[],dateAdded:(new Date).toISOString(),demoFile:n.demoFile}}return!(!e||!e.visible)&&t}var M,T,V,E,z,k,O,I,F=new qe({parentView:e.mediaView.mask,parentController:e.parentController,events:e.siteEvents}),A=!1,P=!1,H=e.localEvents,R=!1;return F.overlayView=new qt(e),F.overlayView.zIndex=wa.overlayView.zIndex,F.lazyLoaderUpdate=function(){F.thumbs&&F.thumbs.lazyLoader&&F.thumbs.lazyLoader.update()},/^unifiedSite|overlay/.test(wa.overrides.siteDisplayBehavior)?e.mediaView.addChild(F.overlayView):e.siteView.addChild(F.overlayView),H.addEventListener("UPDATE_CONTENT_HEIGHT",function(e){T&&(I=T.key,wa.section(T)),"strip"===wa.overrides.thumbnailType?(F.overlayView.contentHeight=wa.mediaView.zoneHeight(I),F.overlayView.updatePosition()):e.thumbs&&(F.overlayView.contentHeight=e.thumbs,F.overlayView.updatePosition())}),e.siteEvents.addEventListener(Hn,r),F.uriChange=d,e.siteEvents.addEventListener(_n,o),e.siteEvents.addEventListener(Dn,a),e.siteEvents.addEventListener("UPDATE_CONTENT_HEIGHT",t),e.siteEvents.addEventListener("holdersBuilt",function(){C(),p()}),F.destroy=function(){F.thumbs&&(F.thumbs.scroll&&F.thumbs.scroll.destroy(),F.thumbs.staticNav&&F.thumbs.removeStaticNav()),/^unifiedSite/.test(wa.overrides.siteDisplayBehavior)?e.mediaView.mask.removeChild(F.overlayView):e.siteView.removeChild(F.overlayView),e.siteEvents.removeEventListener(Hn,r),F.uriChange=d,e.siteEvents.removeEventListener(_n,o),e.siteEvents.removeEventListener(Dn,a),e.siteEvents.removeEventListener("UPDATE_CONTENT_HEIGHT",t),e.siteEvents.removeEventListener("holdersBuilt",function(){thumbHoldersBuilt(),p()})},F.resize=function(e){F.overlayView.updatePosition(e),F.share&&F.share.updatePosition(e),F.inquiry&&F.inquiry.updatePosition(e),F.thumbs&&F.thumbs.resize()},F}function qt(e){var t=new at({events:e.events});t.zIndex=wa.overlayView.zIndex,t.overflow=/hPaginatedGrid/.test(wa.overrides.thumbnailType)?"initial":"hidden",t.pointerEvents="none",t.updateSpeed=0,"Safari"===ta&&(t.style["-webkit-backface-visibility"]="hidden",t.style.transform="translateZ(0)"),t.element.setAttribute("class","OverlayView"),t.addEventListener(bo,function(){t.updatePosition()}),t.show=function(){t.display="block",Ze(t,fo,{alpha:1})},t.hide=function(){Ze(t,fo,{alpha:0,onComplete:function(){t.display="none"}})};var i=20;return t.updatePosition=function(){setTimeout(function(){t.section&&(t.sectionKey=t.section.key,wa.section(t.section)),t.overflow=/hPaginatedGrid/.test(wa.overrides.thumbnailType)?"initial":"hidden";var e=wa.overrides.siteDisplayBehavior&&/^unifiedSite/.test(wa.overrides.siteDisplayBehavior)?t.contentHeight||0:wa.overlayView.zoneHeight();"unifiedSiteScrollVertical"===wa.overrides.siteDisplayBehavior&&/strip/.test(wa.overrides.thumbnailType)&&(e=wa.mediaView.zoneHeight(t.sectionKey)),Ze.defer(t,0,{x:wa.overlayView.x(),y:wa.overlayView.y(t.sectionKey),width:wa.overlayView.zoneWidth(),height:e}),t.updateSpeed=fo},i)},t}function Kt(e){function t(e,t,i){var n=xo[wa.overrides.thumbnailSize].width+i,o=Math.floor((e+i)/n);return o
0?f-1:0;var t=h[f];Ze(c,.35,{x:-t.x,ease:Qo.cubic.inOut,onComplete:function(){0===f?(e.hide("prev"),e.show("next")):f===h.length-1?(e.hide("next"),e.show("prev")):e.show(),t.lazyLoader.update()}})},nextClick:function(e){f=f+1
0&&(c=d(new pa),c.zIndex=1,c.element.className="paginated container",v.mask.element.className="paginated mask",v.mask.width=wa.mediaView.zoneWidth(),v.mask.height=wa.mediaView.zoneHeight(v.section.key),v.layout=function(){h.forEach(function(e,t){e.resize(),e.x=t*wa.mediaView.zoneWidth()})},v.transition=new Jt({mediaView:v,mediaViewContainer:c,event:e.events}),v.resize=function(){d(c),f>h.length-1&&(f=h.length-1),v.staticNav&&(v.staticNav.resize({x:0,y:0,width:wa.overlayView.zoneWidth(),height:wa.mediaView.zoneHeight(v.section.key)}),h.length&&1!==h.length?0===f?(v.staticNav.hide("prev"),v.staticNav.show("next")):f===h.length-1?(v.staticNav.hide("next"),v.staticNav.show("prev")):v.staticNav.show():v.staticNav.hide()),v.layout(),Ze(c,.35,{x:-h[f].x})},v.removeStaticNav=function(){v.removeChild(v.staticNav)},v.staticNav=r(),h.length&&1!==h.length?0===f?(v.staticNav.hide("prev"),v.staticNav.show("next")):f===h.length-1?(v.staticNav.hide("next"),v.staticNav.show("prev")):v.staticNav.show():v.staticNav.hide(),v.resize()),v.show=function(){v.display="block",h.forEach(function(e,t){e.show()}),m=!0},v.hide=function(){h.forEach(function(e){e.hide()}),setTimeout(function(){v.display="none"},1e3*fo),m=!1},v.toggleState=function(){return m},v.highlight=function(){if(c){var e=c.children[f];e.highlight()}},v.mask.addChild(c),v.addChild(v.mask),v.addChild(v.staticNav),v}function Jt(e){function t(e,t){wa.section(o.section);var t=void 0!==t?t:wa.mediaView.transitionDuration();n.dispatchEvent(uo);var a=lo?Qo.quart.out:Qo.cubic.inOut,r=i.children[e];if(r){var l=r.x,s=r.y;if(Ze(i,t,{translateX:-l,translateY:-s,ease:a,onComplete:function(){n.dispatchEvent(po),o.lazyLoader&&o.lazyLoader.update()}}),Hi===ji)for(var d=i.children,c=0;c
1?(c=2*xo[wa.overrides.thumbnailSize].width+wa.overrides.thumbnailGap,h=2*xo[wa.overrides.thumbnailSize].height+wa.overrides.thumbnailGap,u=2*xo[wa.overrides.thumbnailSize].width+wa.overrides.thumbnailGap,f=2*xo[wa.overrides.thumbnailSize].height+wa.overrides.thumbnailGap):(c=xo[wa.overrides.thumbnailSize].width,h=xo[wa.overrides.thumbnailSize].height,u=xo[wa.overrides.thumbnailSize].width,f=xo[wa.overrides.thumbnailSize].height);var S=c,x=h;C.width=S,C.height=x,C.filename=n(s,c,h),C.original=o(s,c,h),y(e.section.id)?C.index=w(s.assetId,e.section.mediaItems.length-1):C.index=s.assetId,C.thumb=new Ge,C.thumb.attempts=0,C.thumb.selectable=!1;var M=Ae({type:"fit",hRange:u,vRange:f,width:s.size.thumb.width||s.size.content.width||xo[wa.overrides.thumbnailSize].width,height:s.size.thumb.height||s.size.content.height||xo[wa.overrides.thumbnailSize].height,disableOrientationCheck:!0}),T=new Se({hRange:c,vRange:h,hAlign:wa.overrides.thumbnailAlignHorizontal||"center",vAlign:wa.overrides.thumbnailAlignVertical||"center",width:M.width,height:M.height});C.thumb.width=Math.ceil(M.width),C.thumb.height=Math.ceil(M.height),C.thumb.x=Math.floor(T.x),C.thumb.y=Math.floor(T.y),"strip"!==wa.overrides.thumbnailType&&("slideUp"===zi.thumbLoadEffect?(C.alpha=0,C.translateX=0,C.translateY=70):"slideDown"===zi.thumbLoadEffect&&(C.alpha=0,C.translateX=0,C.translateY=-70)),s.type===_i&&wa.overrides.thumbnailVideoPlayIcon&&(me(s)&&wa.overrides.vimeoDefault&&e.thumbnailOnly||m(C,c,h)),C.playBtn&&(C.playBtn.x=Math.round(.5*(c-50)),C.playBtn.y=Math.round(.5*(h-50)));var z=ti(e.isIndexSection);if(C.selectable=!0,z&&"none"!==z){C.label=new ot,C.label.selectable=!0;var k=s.alias||s.label;s.subTitle&&(k+="
"+s.subTitle+"
"),C.label.text=k,C.label.element.style.wordBreak="break-word",C.label.fontFamily=wa.overrides.thumbnailTitleFont,C.label.fontColor=wa.overrides.thumbnailTitleFontColor,C.label.fontSize=wa.overrides.thumbnailTitleFontSize,C.label.width=c,C.label.textAlign=oi(e.isIndexSection),C.label.zIndex=5;var O=Q(C.label);switch(z){case"top":C.label.y=J(wa.overrides.thumbnailLabelVerticalOffset,5),C.thumb.y=O.height+J(wa.overrides.thumbnailLabelVerticalOffset,5),U=O.height+2*J(wa.overrides.thumbnailLabelVerticalOffset,5)>U?O.height+2*J(wa.overrides.thumbnailLabelVerticalOffset,5):U,C.height=h+U;break;case"over":case"hover":s.type===_i&&wa.overrides.thumbnailVideoPlayIcon?C.label.y=.5*(h-50)-O.height+J(wa.overrides.thumbnailLabelVerticalOffset,0):C.label.y=.5*(h-O.height)+J(wa.overrides.thumbnailLabelVerticalOffset,0),C.label.pointerEvents="none",Hi===ji||ae()?C.label.alpha=1:Hi===Ri||se()?C.label.alpha=1:"over"===z?C.label.alpha=1:C.label.alpha=0;break;case"bottom":default:C.label.y=h+J(wa.overrides.thumbnailLabelVerticalOffset,5),U=O.height+2*J(wa.overrides.thumbnailLabelVerticalOffset,5)>U?O.height+2*J(wa.overrides.thumbnailLabelVerticalOffset,5):U,C.height=h+U}C.addChild(C.label)}"spinner"===wa.overrides.thumbnailLoaderType&&(C.loader=new Qe({type:"spinner",alpha:.65,color:l()}),C.addChild(C.loader),C.loader.x=.5*(c-C.loader.width),C.loader.y=.5*(h-C.loader.height));var I=new pa;I.id="hit",I.zIndex=4,Hi===ji&&"hover"===z?I.alpha=J(wa.overrides.thumbnailHoverAlphaMobile,wa.overrides.thumbnailHoverAlpha):Hi===Ri&&"hover"===z?I.alpha=J(wa.overrides.thumbnailHoverAlphaTablet,wa.overrides.thumbnailHoverAlpha):I.alpha=0,I.y=C.thumb.y,I.width=S,I.height=x,I.backgroundColor=wa.overrides.thumbnailHoverColor,"Safari"===ta&&(I.style["-webkit-backface-visibility"]="hidden",I.style.transform="translateZ(0px)"),C.addChild(I),C.hit=I;var A=ui(),R=pi(A,wa.overrides.thumbnailMaxCols,wa.overrides.thumbnailGap),j=/hMasonry|vMasonry/.test(wa.overrides.thumbnailType)&&wa.overrides.thumbnailMasonryMaintainOrder,B=!(!(R>1&&/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType))||j)&&d;q.addItem(c,C.height,B),C.defaultWidth=S,C.defaultHeight=x,H.addChild(C),Z.push(C),ae()||se()||(I.addEventListener(on,v),I.addEventListener(sn,g)),e.thumbnailOnly||I.addEventListener(yn,b),I.element.addEventListener("contextmenu",r),I.element.addEventListener("dragstart",r),C.load=V,C.unload=F,a===i-1&&setTimeout(function(){P.gridContainer.addChild(H),N.holdersBuilt=!0,N.updateSpeed=fo,wa.section(N.section),N.events.dispatchEvent("holdersBuilt"),p(),N.resize()},0)}},0)}(a)}function u(e){var t=ho;switch(e){case _i:t+="video2@2x.png";break;case Wi:t+="text3@2x.png";break;case Ni:t+="swf@2x.png";break;case Xi:t+="link@2x.png";break;case Yi:t+="pdf@2x.png";break;case Zi:t+="contact@2x.png"}return t}function p(){if(wa.section(e.section),/fill|hMasonry|vMasonry|hPaginatedGrid/.test(wa.overrides.thumbnailType))j=new fi({titleBlock:B,container:N,mask:P,items:Z,side:wa.overrides.thumbnailSide,size:wa.overrides.thumbnailSize,horizontalMargin:z(wa.overrides.thumbnailHorizontalMargin,ma.width),verticalMargin:G+z(wa.overrides.thumbnailVerticalMargin,ma.height)-wa.overrides.thumbnailTitleBlockTopMargin,masonry:wa.overrides.thumbnailMasonry,tile:q,parent:N,grid:H,gap:wa.overrides.thumbnailGap,maxGap:U,events:e.events,localEvents:e.localEvents,isIndexSection:e.isIndexSection,section:e.section});else if("strip"===wa.overrides.thumbnailType){var t="displace"===wa.overrides.thumbnailDock?0:24;"Safari"===ta&&(N.style["-webkit-backface-visibility"]="hidden");var i=ai()?z(wa.overrides.thumbnailHorizontalMargin,ma.width):z(wa.overrides.thumbnailVerticalMargin,ma.height),n=Ca.mediaView.size;_=new Ve(N,{get x(){return n.x()},get y(){return n.y(e.section.key)},get width(){return n.width()},get height(){var t=wa.mediaView.zoneHeight(e.section.key);return t}},{side:wa.overrides.thumbnailSide,align:"left",pOffset:i,margin:0,reveal:t,updateSpeed:fo}),j=new bi({section:e.section,dock:_,container:N,mask:P,items:Z,side:wa.overrides.thumbnailSide,size:wa.overrides.thumbnailSize,horizontalMargin:z(wa.overrides.thumbnailHorizontalMargin,ma.width),verticalMargin:z(wa.overrides.thumbnailVerticalMargin,ma.height),tile:q,parent:N,localEvents:e.localEvents})}}function m(e,t,i){var n=new Ge;n.src=ho+"play@2x.png",n.width=50,n.height=50,n.alpha=0,n.zIndex=3,n.thumbHolder=e,n.index=e.index,Ze(n,1,{alpha:.85}),e.playBtn=n,e.addChild(n)}function v(t){if(wa.section(e.section),t.target.parent.label){var i=f(e.section);(i&&"hover"===wa.overrides.thumbnailLabelPosition||!i&&"hover"===wa.overrides.thumbnailStdLabelPosition)&&Ze(t.target.parent.label,.35,{alpha:1})}Ze(t.target,.35,{alpha:a(),backgroundColor:wa.overrides.thumbnailHoverColor})}function g(t){if(wa.section(e.section),"link"===t.target.parent.mediaItem.type||W!==t.target.parent.index||0===r()?Ze(t.target,.2,{alpha:0}):Ze(t.target,.2,{alpha:r(),backgroundColor:wa.overrides.thumbnailSelectedColor}),t.target.parent.label){var i=f(e.section);(i&&"hover"===wa.overrides.thumbnailLabelPosition||!i&&"hover"===wa.overrides.thumbnailStdLabelPosition)&&Ze(t.target.parent.label,.35,{alpha:0})}}function b(t){t.stopPropagation();var i=t.target.parent.mediaItem;"string"==typeof i.content&&0===i.content.indexOf("vimeo:")&&t.target.parent.vimeo?(t.target.parent.vimeo.setSource(i.content),t.target.parent.vimeo.element.style.zIndex=5,Ze(t.target.parent.vimeo,fo,{alpha:1})):"link"===i.type?N.events.dispatchEvent(Xn,{nothumbs:/nothumbs(\/|)$/.test(i.content),type:"internal",path:i.content.replace(/nothumbs(\/|)/i,""),linkTarget:i.linkTarget,isThumbClick:!1}):(wa.section(e.section),N.events.dispatchEvent(Xn,{assetId:Number(t.target.parent.index),type:"internal",path:e.path,linkTarget:"_self",isThumbClick:!0,isMobileVideoClick:"video"===i.type&&Hi===ji&&wa.overrides.mobileAutoPlay}))}function C(t){e.events.dispatchEvent(Zo,"thumbs")}function L(e){var t=e.target;t.attempts<2&&t.parent.mediaItem.thumb?(t.src=co+"/media/"+t.parent.mediaItem.thumb,t.attempts++):t.removeEventListener(Gi,L)}function S(e){return ro?e.width>500||e.height>500:e.width>1e3||e.height>1e3}function x(t){var i=t.thumb,n=t.mediaItem,o=new st({parent:t,thumbBuild:!0,width:Math.floor(t.width),height:Math.floor(t.height)});o.setSize(Math.floor(t.width),Math.floor(t.height)),o.zIndex=-2,o.alpha=0,t.addChild(o),t.vimeo=o,o.addEventListener(vo,function(e){o.play()}),e.thumbnailOnly&&(wa.overrides.vimeoDefault?(o.zIndex=5,Ze(o,fo,{alpha:1}),Ze(i,fo,{alpha:0}),o.setSource(n.content)):t.hit.element.onclick=function(e){o.zIndex=5,Ze(o,fo,{alpha:1}),Ze(i,fo,{alpha:0}),o.setSource(n.content)}),o.onplay=function(){I(o)},o.onpause=function(){}}function M(e){var t=e.thumb,i=e.mediaItem,n=new rt({parent:e,thumbBuild:!0,width:Math.floor(e.hit.width),height:Math.floor(e.hit.height)});n.alpha=0,e.addChild(n),e.video=n,e.hit.element.onclick=function(){I(n),n.setSource(i.content),n.play(),n.element.style.zIndex=5,Ze(n,fo,{alpha:1}),Ze(t,fo,{alpha:0})},n.element.onclick=function(){n.paused?(I(n),n.play()):n.pause()}}function V(){var t=this,i=(t.thumb,t.mediaItem);wa.section(e.section),!j||t.loaded&&t.thumb.src||(t.thumb.addEventListener(Ui,j.thumbLoaded),t.thumb.addEventListener(Gi,L),S(t.thumb)||wa.overrides.thumbnailFullRes?t.thumb.src=t.original:t.thumb.src=t.filename,t.thumb.alpha=0,t.loaded=!0,t.addChild(t.thumb)),i.type!==_i||t.vimeo||t.video||(me(i)&&(Hi===ji&&wa.overrides.mobileAutoPlay||e.thumbnailOnly)?x(t):e.thumbnailOnly&&M(t))}function O(e){return"video"===e.mediaItem.type&&(e.vimeo||e.video)}function I(e){N.mask.grid.children.filter(O).forEach(function(t){me(t.mediaItem)?t.vimeo!==e&&t.vimeo.pause():t.video!==e&&t.video.pause()})}function F(){this.mediaItem.type===_i&&this.vimeo&&0===this.mediaItem.content.indexOf("vimeo")&&Hi===ji&&this.removeChild(this.vimeo)}function A(){D.state=!0,N.holdersBuilt&&(N.updateSpeed=fo)}wa.section(e.section);var P,H,R,j,B,D,_,W,N=new pa({events:e.events}),X="left"===wa.overrides.thumbnailSide||"right"===wa.overrides.thumbnailSide||/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType)?"y":"x",Y="y"===X?"top":"left",Z=[],G=0,U=wa.overrides.thumbnailGap,q=new De({name:"thumbs",type:wa.overrides.thumbnailType,marginHorizontal:z(wa.overrides.thumbnailHorizontalMargin,ma.width),marginVertical:z(wa.overrides.thumbnailVerticalMargin,ma.height),maintainOrder:/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType)&&wa.overrides.thumbnailMasonryMaintainOrder,horizontalMasonry:/hMasonry/.test(wa.overrides.thumbnailType)&&wa.overrides.thumbnailMasonryEvenRowHeight,masonryFill:/hMasonry|vMasonry/.test(wa.overrides.thumbnailType)&&wa.overrides.thumbnailMasonryFill,gap:wa.overrides.thumbnailGap});return N.getTotalHeight=function(){return j?j.totalHeight:0},N.currentThumb=1,N.settings=e.settings,N.section=e.section,N.tile=q,N.pointerEvents="auto",N.isInit=!0,N.element.setAttribute("class","Thumbs.container"),N.selectable=!1,N.build=function(){wa.section(e.section),N.updateSpeed=0,N.holdersBuilt=!1,N.id="thumbs",N.overflow="hidden",N.zIndex=200,N.alpha=0,P=N.mask=new pa,P.id="mask",P.overflow="hidden",P.zIndex=1,P.element.setAttribute("class","Thumbs.mask"),("overlay"===wa.overrides.thumbnailDock||/fill|hMasonry|vMasonry|hPaginatedGrid/.test(wa.overrides.thumbnailType))&&(P.backgroundColor=E(zi.overlayColor,zi.overlayAlpha)),N.addChild(P),N.mask=P,H=new pa,H.id="grid",H.element.setAttribute("class","Thumbs.grid"),H.element.style.transform="translateZ(0)",/hMasonry/.test(wa.overrides.thumbnailType)&&wa.overrides.thumbnailMasonryFill&&(H.overflow="hidden"),P.grid=H,R=new pa,R.id="grid-container",R.element.setAttribute("class","Thumbs.grid.container"),R.element.style.transform="translateZ(0)",P.gridContainer=R,P.addChild(R);var n={Containername:"thumbs"};(ae()||se())&&(n.domElementScroll=!0),wa.siteView.unifiedPageScroll()&&(/native/.test(wa.overrides.thumbnailScrollType)||zi.globalSmoothScroll)&&"strip"!==wa.overrides.thumbnailType&&"MSIE"!==ta&&(n.windowScroll=!0),/slide/.test(zi.thumbLoadEffect)&&(n.boundaryMultiplier=.9),Jo&&(/native/.test(wa.overrides.thumbnailScrollType)||zi.globalSmoothScroll)?n.domElementScroll=!0:n.property="translate",n.targetChildren=H.children;var o="strip"===wa.overrides.thumbnailType?H:R;N.lazyLoader=new Ee(o,P,n),N.lazyLoader.name="thumbs",D=new We({target:N,on:N.hide,off:N.show});var a,r,l=0,s=0,c=0,h=0;if(/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType)&&e.section.thumb&&e.section.thumb.titleBlock&&(B=t(e.section),G=wa.overrides.thumbnailTitleBlockTopMargin+B.element.offsetHeight,B.y=wa.overrides.thumbnailTitleBlockTopMargin,P.gridContainer.addChild(B)),ae()||se())/^unified/.test(wa.overrides.siteDisplayBehavior)&&Hi!==ji&&Hi!==Ri||("y"===X?(P.element.style.overflowY="scroll",P.element.style.overflowX="hidden"):(P.element.style.overflowY="hidden",P.element.style.overflowX="scroll")),P.element.style["-webkit-overflow-scrolling"]="touch",H.element.addEventListener("touchstart",function(e){l=0,s=0,c=e.touches[0].pageX,h=e.touches[0].pageY}),H.element.addEventListener("touchmove",function(e){l=e.touches[0].pageX-c,s=e.touches[0].pageY-h,$o.abs(l)>$o.abs(s)?(l>0?P.element.scrollLeft>0&&P.element.scrollLeft<=H.width-wa.overlayView.zoneWidth()&&e.stopPropagation():"x"===X&&e.stopPropagation(),a=!0,r=!1):(r=!0,a=!1),N.lazyLoader&&N.lazyLoader.update()}),H.element.addEventListener("touchend",function(e){N.lazyLoader&&N.lazyLoader.update()}),P.element.addEventListener("scroll",function(){N.lazyLoader&&N.lazyLoader.update()}),wa.siteView.unifiedPageScroll()&&window.addEventListener("scroll",function(e){N.lazyLoader&&N.lazyLoader.update()});else if(wa.siteView.unifiedPageScroll()&&/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType)&&(/native/.test(wa.overrides.thumbnailScrollType)||zi.globalSmoothScroll))window.addEventListener("scroll",function(e){N.lazyLoader&&N.lazyLoader.update()});else if(Jo&&(/native/.test(wa.overrides.thumbnailScrollType)||zi.globalSmoothScroll))P.element.addEventListener("scroll",function(){N.lazyLoader&&N.lazyLoader.update()}),"y"===X?(P.element.style.overflowY="scroll",P.element.style.overflowX="hidden"):(P.element.style.overflowY="hidden",P.element.style.overflowX="scroll");else{i();var u="strip"===wa.overrides.thumbnailType?0:wa.overrides.thumbnailScrollbarWidth,p="right"===wa.overrides.thumbnailScrollbarAlignment?-wa.overrides.thumbnailScrollbarHorizontalOffset-u:wa.overrides.thumbnailScrollbarHorizontalOffset+u,m=ai()?"x":"y";"strip"===wa.overrides.thumbnailType&&(Y="y"===X?wa.overrides.thumbnailAlignVertical||"center":wa.overrides.thumbnailAlignHorizontal||"center");var v={name:"thumbs",types:["bar","wheel","touch"],axis:m,align:Y,zIndex:wa.overlayView.zIndex+1,color:wa.overrides.thumbnailScrollbarColor,hover:wa.overrides.thumbnailScrollbarHover,side:wa.overrides.thumbnailScrollbarAlignment,alpha:wa.overrides.thumbnailScrollbarBgAlpha,width:u,offsetX:wa.overlayView.x()+p,offsetY:wa.overlayView.y(e.section.key)+wa.overrides.thumbnailScrollbarVerticalOffset,property:"translate",rounded:wa.overrides.thumbnailScrollbarRounded,visibility:wa.overrides.thumbnailScrollbarVisibility,parent:e.parent};/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType)?(v.marginTop=B?wa.overrides.thumbnailTitleBlockTopMargin:z(wa.overrides.thumbnailVerticalMargin,ma.height),v.marginBottom=z(wa.overrides.thumbnailVerticalMargin,ma.height)):v.margin=0,(/native/.test(wa.overrides.thumbnailScrollType)||zi.globalSmoothScroll)&&(v.margin=0,v.color="#000000",v.hover="#000000",v.side="right",v.alpha=0,v.width=u,v.offsetX=wa.overlayView.x()-10,v.offsetY=wa.overlayView.y(e.section.key),v.rounded=!0,v.visibility="when scrolling");var o="strip"===wa.overrides.thumbnailType?H:R;N.scroll=new Pe(o,P,v)}N.scroll&&(N.scroll.addEventListener(Qn,function(){N.lazyLoader&&N.lazyLoader.update()}),N.scroll.addEventListener("WINDOW_SCROLL_TOP",function(){N.scroll.percent=0,N.scroll.update(fo)})),e.mediaItems.length>0&&d(),D.state=!0,N.resize(),D.state=!1,N.isInit=!1},N.resizeThumbVideo=function(){N.mask.grid.children.filter(O).forEach(function(e){e.video?e.video.setSize(e.width,e.height):e.vimeo&&e.vimeo.setSize(e.width,e.height)})},N.highlight=function(t){if(wa.section(e.section),Hi!==ji&&!e.thumbnailOnly){var i=Z.length;for(W=Number(void 0!==t?t:e.assetId);i--;)if(i!==W){var n=Z[i].hit.parent.mediaItem,o=ti(e.isIndexSection);vi(n)||Hi===ji||Hi===Ri||(Ze(Z[i].hit,fo,{alpha:0}),Z[i].hit.parent.label&&"hover"===o&&Hi!==ji&&Hi!==Ri&&Ze(Z[i].hit.parent.label,.35,{alpha:0}))}if(W>-1&&Z[W]&&"link"!==Z[W].hit.parent.mediaItem.type){N.currentThumb=W+1;var n=Z[W].hit.parent.mediaItem,o=ti(e.isIndexSection);Ze(Z[W].hit,fo,{alpha:r(),backgroundColor:wa.overrides.thumbnailSelectedColor}),Z[W].hit.parent.label&&"hover"===o&&Hi!==ji&&Hi!==Ri&&Ze(Z[W].hit.parent.label,.35,{alpha:0})}}},N.hide=function(){D.state&&(wa.section(e.section),Ze(N,fo,{alpha:0,onComplete:function(){N.display="none",N.updateSpeed=0,D.state=!1}}),"strip"===wa.overrides.thumbnailType&&_&&_.hide(),N.scroll&&(N.scroll.disable(),N.scroll.hide()))},N.show=function(){D.state||(N.display="block",setTimeout(function(){wa.section(e.section),_&&_.resize(0),_&&_.show(),Ze(N,fo,{alpha:1,onComplete:A}),"scrollbar"===wa.overrides.thumbnailScrollType&&/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType)&&N.scroll&&N.scroll.enable(),N.scroll&&(N.scroll.show(),N.scroll.update())},0))},N.toggle=function(){D.flip(),"strip"===wa.overrides.thumbnailType&&_.toggle(),D.state?N.show():N.hide()},N.toggleState=function(){return D.state},N.resize=function(){j||p(),j&&j.resize(),N.scroll&&N.scroll.resize()},N.build(),N}function $t(){var e=wa.overrides.thumbnailLabelPosition;return Hi===ji&&(e=J(wa.overrides.thumbnailLabelPositionMobile,wa.overrides.thumbnailLabelPosition)),Hi===Ri&&(e=J(wa.overrides.thumbnailLabelPositionTablet,wa.overrides.thumbnailLabelPosition)),e}function ei(){var e=wa.overrides.thumbnailStdLabelPosition;return Hi===ji&&(e=J(wa.overrides.thumbnailStdLabelPositionMobile,wa.overrides.thumbnailStdLabelPosition)),Hi===Ri&&(e=J(wa.overrides.thumbnailStdLabelPositionTablet,wa.overrides.thumbnailStdLabelPosition)),e}function ti(e){var t=$t(),i=ei();if(e){if(t)return t}else if(i)return i;return!1}function ii(){var e=wa.overrides.thumbnailLabelJustification;return e}function ni(){var e=wa.overrides.thumbnailStdLabelJustification;return e}function oi(e){var t=ii(),i=ni();if(e){if(t)return t}else if(i)return i;return"center"}function ai(){return"strip"===wa.overrides.thumbnailType&&("top"===wa.overrides.thumbnailSide||"bottom"===wa.overrides.thumbnailSide)}function ri(){return"strip"===wa.overrides.thumbnailType&&("left"===wa.overrides.thumbnailSide||"right"===wa.overrides.thumbnailSide); }function li(){return/hMasonry|vMasonry/.test(wa.overrides.thumbnailType)}function si(e){return!gi(e)&&(ai()||li()||ri())?e.size.thumb.width||e.size.content.width:xo[wa.overrides.thumbnailSize].width}function di(e){return!gi(e)&&(ai()||li()||ri())?e.size.thumb.height||e.size.content.height:xo[wa.overrides.thumbnailSize].height}function ci(e,t){if(/hMasonry/.test(wa.overrides.thumbnailType)||/vMasonry/.test(wa.overrides.thumbnailType)&&wa.overrides.thumbnailMasonryFill)return mi(e,t);var i=xo[wa.overrides.thumbnailSize].width,n=pi(ui(),wa.overrides.thumbnailMaxCols,t);return/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType)&&e&&n>1?2*i+t:ai()?10*i:i}function hi(e,t){var i=xo[wa.overrides.thumbnailSize].height,n=pi(ui(),wa.overrides.thumbnailMaxCols,t);return/fill|hMasonry/.test(wa.overrides.thumbnailType)&&e&&n>1?2*i+t:li()&&!wa.overrides.thumbnailMasonryEvenRowHeight||ri()?10*i:i}function ui(){var e=z(wa.overrides.thumbnailHorizontalMargin,ma.width);return wa.overlayView.zoneWidth()-2*e}function pi(e,t,i){t="fill"===wa.overrides.thumbnailType?1/0:t;var n=xo[wa.overrides.thumbnailSize].width+i,o=/vMasonry/.test(wa.overrides.thumbnailType)&&wa.overrides.thumbnailMasonryFill?Math.round:Math.floor,a=o((e+i)/n);return a
1?2*Math.round(a)+t:Math.round(a)}function vi(e){return"link"===e.type&&!!e.thumb}function gi(e){return!e.thumb&&"image"!==e.type}function fi(e){function t(){if(wa.section(e.section),/hMasonry/.test(wa.overrides.thumbnailType)||/vMasonry/.test(wa.overrides.thumbnailType)&&wa.overrides.thumbnailMasonryFill)r.perpLength=ui();else{var t=pi(ui(),wa.overrides.thumbnailMaxCols,wa.overrides.thumbnailGap),i=ci(!1,wa.overrides.thumbnailGap),n=wa.overrides.thumbnailGap*(t-1);r.perpLength=i*t+n}r.layoutItems();for(var a=o.grid.children,l=0,s=a.length;l
1?(C=2*xo[wa.overrides.thumbnailSize].width+wa.overrides.thumbnailGap,w=2*xo[wa.overrides.thumbnailSize].height+wa.overrides.thumbnailGap,y=2*xo[wa.overrides.thumbnailSize].width+wa.overrides.thumbnailGap,L=2*xo[wa.overrides.thumbnailSize].height+wa.overrides.thumbnailGap):(C=xo[wa.overrides.thumbnailSize].width,w=xo[wa.overrides.thumbnailSize].height,y=xo[wa.overrides.thumbnailSize].width,L=xo[wa.overrides.thumbnailSize].height);var x=Ae({type:"fit",hRange:y,vRange:L,width:g.size.thumb.width||g.size.content.width||xo[wa.overrides.thumbnailSize].width,height:g.size.thumb.height||g.size.content.height||xo[wa.overrides.thumbnailSize].height,disableOrientationCheck:!0}),M=new Se({hRange:C,vRange:w,hAlign:wa.overrides.thumbnailAlignHorizontal||"center",vAlign:wa.overrides.thumbnailAlignVertical||"center",width:x.width,height:x.height});h[u].thumb.width=Math.ceil(x.width),h[u].thumb.height=Math.ceil(x.height),h[u].thumb.x=Math.round(M.x),h[u].thumb.y=Math.round(M.y),h[u].playBtn&&(h[u].playBtn.x=Math.round(.5*(C-50)),h[u].playBtn.y=Math.round(.5*(w-50))),h[u].width=C,h[u].height=w,h[u].hit.width=C,h[u].hit.height=w;var T=/hMasonry|vMasonry/.test(wa.overrides.thumbnailType)&&wa.overrides.thumbnailMasonryMaintainOrder,V=!(!(v>1&&/fill|hMasonry|vMasonry/.test(wa.overrides.thumbnailType))||T)&&b;r.addItem(C,w,V)}/fill|vMasonry/.test(wa.overrides.thumbnailType)&&(r.gridWidths=ci(!1,wa.overrides.thumbnailGap),r.lastColumnWidth=/vMasonry/.test(wa.overrides.thumbnailType)&&wa.overrides.thumbnailMasonryFill?m-(r.gridWidths+wa.overrides.thumbnailGap)*(v-1):r.gridWidths,r.numberOfColumns=v),r.items.length&&t(),setTimeout(function(){wa.section(e.section);var t=r.getBounds(),l=new Se({hRange:wa.overlayView.zoneWidth(),vRange:"hPaginatedGrid"===wa.overrides.thumbnailType?wa.mediaView.zoneHeight(e.section.key):wa.overlayView.zoneHeight(e.section.key),width:r.perpLength,height:t.height,hAlign:"center",vAlign:"hPaginatedGrid"===wa.overrides.thumbnailType?"center":"top",hOffset:0,vOffset:"hPaginatedGrid"===wa.overrides.thumbnailType?0:e.verticalMargin});if((wa.overrides.thumbnailMasonryFill||wa.overrides.thumbnailMasonryEvenRowHeight)&&/hMasonry|vMasonry/.test(wa.overrides.thumbnailType)?o.gridContainer.x=e.horizontalMargin:(o.gridContainer.x=Math.floor(l.x),a&&(a.width=r.perpLength,d=wa.overrides.thumbnailTitleBlockTopMargin+a.element.offsetHeight,a.y=wa.overrides.thumbnailTitleBlockTopMargin)),"hPaginatedGrid"===wa.overrides.thumbnailType?o.gridContainer.y=Math.floor(l.y):(o.gridContainer.y=0,o.grid.y=d+e.verticalMargin),n.width=wa.overlayView.zoneWidth(),o.width=wa.overlayView.zoneWidth(),o.grid.width=r.perpLength,o.gridContainer.width=r.perpLength,"hPaginatedGrid"===wa.overrides.thumbnailType){var c=wa.mediaView.zoneHeight(e.section.key);n.height=c,o.height=c,i.height=c,o.grid.height=t.height,o.gridContainer.height=t.height,s=c}else if(/^unifiedSite/.test(wa.overrides.siteDisplayBehavior)&&(/native/.test(wa.overrides.thumbnailScrollType)||zi.globalSmoothScroll)){var h=!f(e.section)&&wa.mediaView.height(e.section.key)>t.height?wa.mediaView.height(e.section.key):t.height,u=h+e.verticalMargin;s=d+(u+e.verticalMargin),n.height=s,o.height=s,o.grid.height=u,o.gridContainer.height=s}else if(wa.siteView.unifiedPageScroll()&&(/native/.test(wa.overrides.thumbnailScrollType)||zi.globalSmoothScroll)){var u=t.height+e.verticalMargin;u=u>wa.mediaView.height()?u:wa.mediaView.height(),s=d+(u+e.verticalMargin),n.height=s,o.height=s,o.grid.height=u,o.gridContainer.height=s}else s=d+(t.height+e.verticalMargin),n.height=wa.overlayView.zoneHeight(),o.height=n.height,i.height=n.height,o.grid.height=t.height+e.verticalMargin,o.gridContainer.height=s;i.totalHeight=s,e.localEvents.dispatchEvent("UPDATE_CONTENT_HEIGHT",{thumbs:s}),n.resizeThumbVideo()},20)},this.thumbLoaded=function(e){this.parent.loader&&this.parent.removeChild(this.parent.loader),"slideUp"!==zi.thumbLoadEffect&&"slideDown"!==zi.thumbLoadEffect||Ze(this.parent,.85,{alpha:1,translateY:0}),Ze(this,.25,{alpha:1})}}function bi(e){function t(){switch(a){case"top":l.axis="x",l.perpLength=xo[r].height,n.height=xo[r].height,o.height=xo[r].height;break;case"right":l.axis="y",l.perpLength=xo[r].width,n.width=xo[r].width,o.width=xo[r].width;break;case"bottom":l.axis="x",l.perpLength=xo[r].height,n.height=xo[r].height,o.height=xo[r].height;break;case"left":l.axis="y",l.perpLength=xo[r].width,n.width=xo[r].width,o.width=xo[r].width}}function i(){l.layoutItems(),items=o.grid.children;for(var t=0,i=items.length;t
573?573:wa.mediaView.width(),O=wa.mediaView.height(z.section.key)>225?225:wa.mediaView.height(z.section.key),g.height=g.element.offsetHeight,f.y=g.height+10,Fi.inquiryInfo?(b.y=g.height+20,C.x=2,C.y=b.y+b.height+10):(C.x=2,C.y=g.height+20),Ca.mediaView.width()>573?Fi.inquiryInfo?(w.x=222,w.y=b.y+b.height+10):(w.x=222,w.y=C.y):(w.x=2,w.y=C.y+C.height+10),Fi.inquiryInfo?(I.x=w.x,I.y=b.y+b.height+10):(I.x=w.x,I.y=40),0===z.updateSpeed?(z.width=wa.mediaView.width(),z.height=wa.mediaView.height(z.section.key),v.x=.5*(wa.mediaView.width()-k),v.y=.5*(wa.mediaView.height(z.section.key)-O),v.width=k,v.height=O):(Ze(z,z.updateSpeed,{width:wa.mediaView.width(),height:wa.mediaView.height(z.section.key)}),Ze(v,z.updateSpeed,{x:.5*(wa.mediaView.width()-k),y:.5*(wa.mediaView.height(z.section.key)-O),width:k,height:O})),V.width=wa.mediaView.width(),V.height=wa.mediaView.height(z.section.key),z.updateSpeed=fo},z.show=function(){z.updateSpeed=0,z.updatePosition(),z.visible||(z.visible=!0,z.display="block",Ze(z,fo,{alpha:1}),Ze(w,fo,{alpha:1}),Ze(I,fo,{alpha:0}))},z.hide=function(){z.visible&&(z.visible=!1,Ze(z,fo,{alpha:0,onComplete:function(){this.display="none"}}))},z.updateInquiryInfo=function(){g.text=Fi.inquiryTitle?Fi.inquiryTitle:"Inquire about this image",Fi.inquiryInfo&&(b.text=Fi.inquiryInfo),z.updatePosition()},z.updateContent=function(e){var t=x(e.section.media);y=s(t[e.assetId]),C&&v.removeChild(C),C=new Ge,C.alpha=0,Fi.inquiryInfo?(C.x=2,C.y=b.y+b.height+10):(C.x=2,C.y=g.height+20),Hi!==ji&&(C.src=h(200,300,y.thumb||y.content,y.demoFile)),C.width=200,v.addChild(C),C.addEventListener(Ui,i)},z.addEventListener(bo,function(e){t.call(z)}),z}function wi(e){function t(){g=new pa,g.backgroundColor="#cccccc",g.alpha=0,g.addEventListener(an,o),f.addChild(g),a=new pa,a.width=b,a.height=C,f.addChild(a),r=new ot,r.text="Share this item:",r.fontFamily=wa.overrides.overlayTitleFont,r.fontColor=wa.overrides.overlayTitleFontColor,r.fontSize=wa.overrides.overlayTitleFontSize,a.addChild(r),r.height=r.element.offsetHeight,l=new pa,l.backgroundColor=E(wa.overrides.overlayTitleFontColor,.35),l.width=b,l.height=1,l.y=wa.overrides.overlayTitleFontSize+10,a.addChild(l),d=new Ge,d.alpha=0,a.addChild(d),d.addEventListener(Ui,i),c=new pa,c.x=222,c.y=r.height+20,c.width=b-c.x,c.height=C-c.y,a.addChild(c);var e="https://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");p=new pa({type:"iframe"}),p.src="https://www.facebook.com/plugins/share_button.php?href="+encodeURIComponent(e)+"&width="+L.width+"&layout="+L.layout+"&action=like&size="+L.size+"&show_faces="+L.showFaces+"&share="+L.showShareButton+"&height="+L.height,p.width=L.width,p.height=L.height,p.element.setAttribute("scrolling","no"),p.element.setAttribute("frameborder","0"),p.element.setAttribute("allowTransparency","true"),m=new Ue,m.addEventListener("click",function(){var e="https://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");window.open("https://twitter.com/intent/tweet?text="+encodeURI(e),"_blank")});var t=new Ge;t.position="relative",t.width=20,t.height=20,t.src="https://33acda504924667afc4c-95ab99cbba1f87315d458f4e201677b2.ssl.cf1.rackcdn.com/icon/twitter@2x.png",m.addChild(t),v=new Ue,v.addEventListener("click",function(){var e="https://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");window.location.href="mailto:?subject=Shared item from "+window.location.host+"&body="+Fi.portfolioEmailMessage+"%0A%0A"+e});var s=new Ge;s.position="relative",s.width=20,s.height=20,s.src="https://33acda504924667afc4c-95ab99cbba1f87315d458f4e201677b2.ssl.cf1.rackcdn.com/icon/email@2x.png",v.addChild(s),p.y=0,m.y=30,v.y=60,c.addChild(p),c.addChild(m),c.addChild(v),w.alpha=0,w.x=c.x,w.y=40,w.fontFamily=wa.overrides.overlayTitleFont,w.fontColor=wa.overrides.overlayTitleFontColor,w.fontSize=14,a.addChild(w),f.updateStyle(),f.updatePosition(),f.show(),y.addEventListener(ko,n)}function i(e){var t=Fe({width:this.width,height:this.element.offsetHeight,filename:d.src});this.width=t.width,this.height=t.height,Ze(this,fo,{alpha:1})}function n(e){w.text=e.response,Ze(c,fo,{alpha:0}),Ze(w,fo,{alpha:1}),f.addEventListener(an,o)}function o(e){e.target===f&&f.removeEventListener(an,o),y.dispatchEvent(Zo,"share")}var a,r,l,d,c,u,p,m,v,g,f=new pa(e),b=573,C=225,w=new pa,y=e.localEvents;f.section=e.section;var L={layout:"button",size:"small",showFaces:!1,showShareButton:!0,width:120,height:35};return f.updateSpeed=0,f.backgroundColor=E(zi.overlayColor,zi.overlayAlpha),f.zIndex=100,f.alpha=0,f.visible=!1,f.updateStyle=function(e){wa.overrides.overlayTitleFont!==r.fontFamily&&(r.fontFamily=wa.overrides.overlayTitleFont,p.fontFamily=wa.overrides.overlayTitleFont,m.fontFamily=wa.overrides.overlayTitleFont,v.fontFamily=wa.overrides.overlayTitleFont),wa.overrides.overlayTitleFontSize!==r.fontSize&&Ze(r,fo,{fontSize:wa.overrides.overlayTitleFontSize,onComplete:function(){f.updatePosition(e)}}),wa.overrides.overlayTitleFontColor!==r.fontColor&&(Ze(r,fo,{fontColor:wa.overrides.overlayTitleFontColor}),Ze(l,fo,{backgroundColor:E(wa.overrides.overlayTitleFontColor,.35)}),Ze(p,fo,{fontColor:E(zi.overlayColor,.35),backgroundColor:E(wa.overrides.overlayTitleFontColor,.35)}),Ze(m,fo,{fontColor:E(zi.overlayColor,.35),backgroundColor:E(wa.overrides.overlayTitleFontColor,.35)}),Ze(v,fo,{fontColor:E(zi.overlayColor,.35),backgroundColor:E(wa.overrides.overlayTitleFontColor,.35)})),E(zi.overlayColor,zi.overlayAlpha)!==f.backgroundColor&&Ze(f,fo,{backgroundColor:E(zi.overlayColor,zi.overlayAlpha)})},f.updatePosition=function(e){wa.section(f.section),f.x=0,f.y=0,b=wa.mediaView.width()>573?573:wa.mediaView.width(),C=wa.mediaView.height(f.section.key)>225?225:wa.mediaView.height(f.section.key),d.x=2,d.y=r.height+20,l.y=wa.overrides.overlayTitleFontSize+10,Ca.mediaMask.width()>573?(c.x=222,c.y=r.height+20):(c.x=2,c.y=d.y+d.height+10),0===f.updateSpeed?(f.width=wa.mediaView.width(),f.height=wa.mediaView.height(f.section.key),a.x=.5*(wa.mediaView.width()-b),a.y=.5*(wa.mediaView.height(f.section.key)-C),a.width=b,a.height=C):(Ze(f,f.updateSpeed,{width:wa.mediaView.width(),height:wa.mediaView.height(f.section.key)}),Ze(a,f.updateSpeed,{x:.5*(wa.mediaView.width()-b),y:.5*(wa.mediaView.height(f.section.key)-C),width:b,height:C})),g.width=wa.mediaView.width(),g.height=wa.mediaView.height(f.section.key),f.updateSpeed=fo},f.show=function(){f.updateSpeed=0,f.updatePosition(),f.visible||(f.visible=!0,f.display="block",Ze(f,fo,{alpha:1}),Ze(c,fo,{alpha:1}),Ze(w,fo,{alpha:0}))},f.hide=function(e){f.visible&&(f.visible=!1,Ze(f,fo,{alpha:0,onComplete:function(){this.display="none"}}))},f.updateContent=function(e){var t=x(e.section.media);u=s(t[e.assetId]),r.text="Share this "+u.type+":";var n=r.element.offsetHeight;d&&a.removeChild(d),d=new Ge,d.alpha=0,d.x=2,d.y=n+20,d.width=200,d.src=h(200,300,u.thumb||u.content,u.demoFile),c.y=n+20;var o="https://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");p.src="https://www.facebook.com/plugins/share_button.php?href="+encodeURIComponent(o)+"&width="+L.width+"&layout="+L.layout+"&action=like&size="+L.size+"&show_faces="+L.showFaces+"&share="+L.showShareButton+"&height="+L.height,a.addChild(d),d.addEventListener(Ui,i)},f.addEventListener(bo,function(e){t.call(f)}),f}function yi(e){function t(e){return window.scrollY>e?e:window.scrollY<0?0:window.scrollY}function i(e){zi.menuRevealOnInit!==!1&&k&&e<10?C.menuView.dock.toggleState()||C.menuView.dock.show():e>ma.height*zi.menuScrollReveal?C.menuView.dock.toggleState()||C.menuView.dock.show():C.menuView.dock.toggleState()&&C.menuView.dock.hide()}function n(){"Safari"===ta&&(C.menuView.menuText.translateZ=0)}function o(){"Safari"===ta&&(C.menuView.menuText.style["-webkit-transform"]="none",C.menuView.menuText.style["-ms-transform"]="none",C.menuView.menuText.style.transform="none")}function a(){C.menuView.dock.toggleState()&&C.menuView.closeDock()}function r(e){if(C.menuView.isInitUri=!1,Hi===ji||Hi===Ri){var t=e.info.isDeepLink||""===zi.menuAutoCloseMobile||void 0===zi.menuAutoCloseMobile||zi.menuAutoCloseMobile;""===wa.introFile&&""===zi.introFile||e.path?!y&&I(e)&&C.menuView.dock.toggleState()?setTimeout(C.menuView.closeDock,200):y||t?t&&C.menuView.dock.toggleState()&&setTimeout(C.menuView.closeDock,2e3):C.menuView.dock.toggleState()&&(clearTimeout(b),b=setTimeout(C.menuView.closeDock,200)):(C.menuView.dock.toggleState()||C.menuView.openDock(),t&&setTimeout(C.menuView.closeDock,2e3))}else"overlay"===wa.menuView.placement()?(!y&&C.menuView.dock.toggleState()&&C.menuView.closeDock(),y&&(zi.menuOpenOverlayOnInit?C.menuView.openDock():C.menuView.closeDock(),C.menuView.dock.toggleState()?C.menuView.showCloseButton():C.menuView.showMenuIcon())):ie()&&i();l(e),y=!1}function l(e){C.menuView.menuText.setActiveMenuItem(e)}function d(e){var t=x(e.value);return"media"===e.field&&"update"===e.method&&1===t.length&&"link"===s(t[0]).type}function c(e){return"media"===e.field&&"update"===e.method&&""===e.value}function h(e){setTimeout(function(){C.menuView.menuText.display="block",C.menuView.display="block",C.menuView.menuText.rebuild({model:e})},400)}function u(e){f&&clearTimeout(f),f=setTimeout(function(){e.action&&"sectionReorder"===e.action||(e.action&&"remove"===e.action?c(e)&&h(m()):e.action&&"addMediaToSection"===e.action||(e.action&&"addSelectionToSection"===e.action?d(e)&&h(m()):h(m())))},0)}function m(){var e={};for(var t in Ii)Ii[t].media&&Ii[t].mediaItems&&Ii.hasOwnProperty(t)&&(e[t]={id:Ii[t].id,key:Ii[t].key,hideFromMenu:Ii[t].hideFromMenu,customLink:Ii[t].customLink,isIndex:Ii[t].isIndex,indexLink:Ii[t].indexLink,linkTarget:Ii[t].linkTarget,isOpen:Ii[t].isOpen,hideSubs:Ii[t].hideSubs,label:Ii[t].label,alias:Ii[t].alias,media:Ii[t].media.slice(0),mediaItems:Ii[t].mediaItems.slice(0),overrides:Ii[t].overrides,password:Ii[t].password,thumb:Ii[t].thumb,visible:Ii[t].visible});if((Hi===ji||Hi===Ri&&zi.footerOnMenuTablet)&&(wa.socialLinks.forEach(function(t){var i=ki[t],n=p(e);e[t]={id:n,key:i.label,label:i.label,media:[t],mediaItems:[],overrides:{},password:"",thumb:{},visible:!0},e.ROOT_SECTION.media.push(n)}),wa.copyright)){var i=p(e);e.copyright={id:i,key:"copyright",label:wa.copyright,media:[],mediaItems:[],overrides:{},password:"",thumb:{},visible:!0},e.ROOT_SECTION.media.push(i)}return e}function v(e){if(w||e&&/menu|marginOverlap|dropdownSubMenu|sitePaddingTop|sitePaddingRight|sitePaddingBottom|sitePaddingLeft|footerIcon/.test(e.id)){C.menuView.updateStyle();var t=m();C.menuView.menuText.display="block",C.menuView.display="block",C.menuView.menuText.rebuild({model:t}),C.menuView.menuText.updatePosition(0),C.menuView.updatePosition("layoutModelChange"),C.menuView.updateScroll(),w=!1,h(t)}}function g(e){"link"===e.type&&"Footer Links"!==e.filters&&(C.menuView.updateStyle(),C.menuView.menuText.display="block",C.menuView.display="block",C.menuView.menuText.rebuild({model:m()}),C.menuView.menuText.updatePosition(0),C.menuView.updatePosition(),C.menuView.updateScroll())}var f,b,C=new qe({parentView:e.parentView,parentController:e.parentController,events:e.siteControllerEvents}),w=!0,y=!0,L=!0,S=350,M=!1,T=!1;C.updateSpeed=0,C.menuView=new e.MenuView(e),C.menuView.alpha=0,Hi===ji&&wa.overrides.menuDisplaceMobile?(ma.addChild(C.menuView),C.menuView.addChild(e.parentView)):Hi===Ri&&wa.overrides.menuDisplaceTablet?(ma.addChild(C.menuView),C.menuView.addChild(e.parentView)):C.parentView.addChild(C.menuView),e.model=Ii,C.menuView.menuText=new Si(e),C.menuView.menuText.element.setAttribute("class","menuText"),C.menuView.addContent(C.menuView.menuText),C.events.addEventListener("menuUpdatePosition",function(){C.menuView.updatePosition()}),C.events.addEventListener(Hn,v),C.events.addEventListener(Rn,g),C.events.addEventListener(_n,u),C.events.addEventListener(io,function(){M=!0}),C.events.addEventListener(Ki,function(){Ca.isMenuOverlayStateChange?(C.menuView.transition=0,C.menuView.alpha=0,setTimeout(function(){Ca.isMenuResponsiveOverlay&&Hi!==ji?C.menuView.closeDock(0):C.menuView.openDock(0),C.menuView.menuText.display="block",C.menuView.display="block",C.menuView.menuText.rebuild({model:m()}),C.menuView.menuText.updatePosition(0),C.menuView.updatePosition(0),C.menuView.updateStyle(0),C.menuView.updateScroll(),C.menuView.dock.toggleState()&&setTimeout(function(){C.menuView.transition=0,C.menuView.alpha=1},350)},S)):(Hi===ji&&(M||L)&&(C.menuView.menuText.rebuild({model:m()}),M=!1),C.menuView.menuText.updatePosition(0),C.menuView.updatePosition(),Hi===ji||Hi===Ri||C.menuView.dock.toggleState()||zi.isMenuScrollReveal||setTimeout(function(){C.menuView.display="none"},S)),S=50,L=!1}),C.events.addEventListener(On,r),C.events.addEventListener("SITE_URI_CHANGE_PASSIVE",l),C.events.addEventListener(Ho,a),C.events.addEventListener(Do,function(){f=setTimeout(function(){C.menuView.dock.toggleState()&&(C.menuView.menuText.display="block",C.menuView.display="block"),C.menuView.menuText.updatePosition(0),C.menuView.updatePosition()},0)}),C.events.addEventListener(_o,C.menuView.updatePosition),C.events.addEventListener("fillSiteMode",n),C.events.addEventListener("nonFillSiteMode",o),C.events.addEventListener("LOGO_LOADED",function(){C.menuView.menuText.display="block",C.menuView.display="block",C.menuView.menuText.updatePosition(0),C.menuView.updatePosition()});var V,E=0,z=!1,k=!0,O=void 0===zi.menuRevealOnInit||zi.menuRevealOnInit;zi.menuRevealOnInit===!1&&C.menuView.dock.hide(),window.addEventListener("scroll",function(){T=!1,zi.isMenuScrollReveal&&/top/.test(wa.menuView.placement())&&(z=!0,clearTimeout(V),V=setTimeout(function(){var e=wa.siteView.height()-ma.height;E=t(e),zi.menuRevealOnInit!==!0&&k?(C.menuView.dock.hide(),O=!1):ie()?(T=!0,i(E)):zi.isMenuScrollReveal&&(0!==E&&E>window.oldScrollY-1?C.menuView.dock.toggleState()&&!k&&(C.menuView.dock.hide(),O=!1):E
$o.abs(w)?(k=!0,T=!1,e.stopPropagation()):(T=!0,Hi===ji&&(p.dock.toggleState()?p.dock.show(0):p.dock.hide(0)),k=!1),Hi!==ji&&Hi!==Ri||!k||e.preventDefault();var t=/left|top|bottom/.test(wa.menuView.placement())?"left":"right"; if(Hi!==Ri&&Hi!==ji||(t="left"),k){p.transition=0;var i=C+S;"left"===t?p.dock.toggleState()?p.translateX=i>0?0:i:p.translateX=i<-Ca.menuView.width()?-Ca.menuView.width():i:p.translateX=i
=e.touches[0].pageX&&(x="left"===t?"close":"open",M=e.touches[0].pageX)}}function s(){k&&"close"===x?(V=!1,p.dock.toggleState()&&p.closeDock()):k&&"open"===x&&(V=!1,p.dock.toggleState()||p.openDock()),V=!1,k=!1,p.removeEventListener(en,l),p.removeEventListener(tn,s),p.removeEventListener(nn,s)}function d(){p.dock.toggleState()?(P=!1,p.closeDock()):(P=!0,p.openDock())}function c(){b,h()}function h(){b=!0,Ze(v,fo,{alpha:1})}function u(){return Hi!==ji&&Hi!==Ri&&zi.menuBlendMode&&"overlay"!==wa.menuView.placement()?zi.menuBlendMode:"normal"}var p=new at({events:e.events});p.identity="menu",p.element.setAttribute("data-identity","menu"),p.isInitUri=!0,p.alpha=0,p.updateSpeed=0,p.zIndex=wa.menuView.zIndex,p.style.pointerEvents="none",p.x=0,p.y=0,p.position=wa.menuView.menuPositionFixed()||"overlay"===wa.menuView.placement()?"fixed":"absolute",p.element.style["mix-blend-mode"]=u();var m=(e.parentView,new pa);m.identity="menu",m.element.setAttribute("data-identity","menu"),m.element.setAttribute("class","mask"),m.backgroundColor=E("#FF0000",0),m.width=Ca.menuView.width(),p.mask=m,p.addChild(m);var v,g,f=!0,b=!1,C=0,w=0,y=0,L=0,S=0,x="open",M=0,T=!1,V=!1,k=!1,O=$()?"top":"left",I=ee()?Ca.menuView.y():Ca.menuView.x(),F=ee()?Ca.menuView.x():Ca.menuView.y(),A={width:ma.width,height:ma.height};p.addEventListener(bo,function(){p.updatePosition(),"overlay"===wa.menuView.placement()?f=!1:Ze(p,fo,{delay:fo,alpha:1,onComplete:function(){f=!1}})}),p.dock=new Ve(p,A,{side:Hi===Ri||Hi===ji?"left":wa.menuView.placement(),align:O,margin:I,pOffset:F,reveal:0,disableResize:"overlay"===wa.menuView.placement()}),p.showCloseButton=function(){var e=wa.menuView.menuIconOverlayColor(),i=Number(zi.menuIconSize||36),o=t(i);o.isClosed=!1,o.color=e,o.rotate=-180,o.line1Y=2*o.topMargin-(Number(zi.menuIconLineWidth||1)+1),o.line3Y=2*o.topMargin-(Number(zi.menuIconLineWidth||1)+1),o.leftMargin*=.5,n(o)},p.showMenuIcon=function(){var e=Number(zi.menuIconSize||36),i=t(e);i.isClosed=!0,i.color=zi.menuIconColor||"#333333",i.rotate=0,i.line1Y=i.topMargin,i.line3Y=3*i.topMargin,i.diagonal=i.width,n(i)},Hi===Ri||Hi===ji?(v=new pa,v.svg=new fa,v.path=new et,v.width=20,v.height=20,v.svg.width=20,v.svg.height=20,v.path.d=va.menuIconMobile,v.path.strokeWidth=0,v.path.stroke="none",v.path.fill=zi.menuIconColor||wa.overrides.overlayTitleFontColor||"#606060",v.addChild(v.svg),v.svg.addChild(v.path),v.zIndex=50,v.padding=8,v.alpha=1,v.style.pointerEvents="auto",v.y=16,p.addChild(v),v.addEventListener(yn,d),p.events.addEventListener(Ho,a),p.addEventListener($i,r),p.style.pointerEvents="auto"):"overlay"===wa.menuView.placement()&&i();var P=!1;return p.openDock=function(e){e=isNaN(e)?fo:e,ma.zoom<=1&&(Hi===ji||Hi===Ri)?(p.events.dispatchEvent(Ro),p.dock.show(e),clearInterval(g)):"overlay"===wa.menuView.placement()&&(p.showCloseButton(),p.dock.show(0,function(t){t.display="block",p.menuText.updatePosition(0),Ze(t,e,{delay:.1,alpha:1})}))},p.closeDock=function(e){e=isNaN(e)?fo:e,ma.zoom<=1&&!V&&(Hi===ji||Hi===Ri)?(p.dock.toggleState()&&p.events.dispatchEvent(jo),p.dock.hide(e)):"overlay"===wa.menuView.placement()&&(p.showMenuIcon(),p.dock.hide(0,function(t){Ze(t,e,{delay:.05,alpha:0,onComplete:function(){t.display="none"}})}))},p.updateStyle=function(){Hi===ji?Ze(p,p.updateSpeed,{backgroundColor:E(zi.menuBgColorMobile||zi.menuBgColor,zi.menuBgAlphaMobile||zi.menuBgAlpha)}):Hi===Ri?Ze(p,p.updateSpeed,{backgroundColor:E(zi.menuBgColorTablet||zi.menuBgColor,zi.menuBgAlphaTablet||zi.menuBgAlpha)}):Ze(p,0,{backgroundColor:E(wa.menuView.menuBgColor(),wa.menuView.menuBgAlpha())})},p.updatePosition=function(t){var n="layoutModelChange"===t,o=isNaN(t)?p.updateSpeed:t;p.position=wa.menuView.menuPositionFixed()||"overlay"===wa.menuView.placement()?"fixed":"absolute",p.element.style["mix-blend-mode"]=u();var a=K(p,"menuText.height")||0,r=Ca.menuView.height()-Ca.menuText.y(a),l=Ca.menuText.y(a);if(Hi===ji?r=Ca._footerHeight?Ca.menuView.height()-Ca.menuText.y(a)-Ca._footerHeight-2*Ca.mobileFooterPadding:Ca.menuView.height()-Ca.menuText.y(a):r>Ca.menuView.height()&&(r=Ca.menuView.height(),l=0),Hi!==Ri&&Hi!==ji&&zi.navbarAlignHorizontal===wa.menuView.placement()&&"bottom"===zi.navbarAlignVertical&&Ca._navbarVisible){var s=12;r=Ca.navbarView.y()-z(zi.sitePaddingTop,ma.height)-l-zi.menuOffsetY-s}Hi===Ri||Hi===ji?(v.x=Ca.menuView.width()+16,v.y=16):"overlay"===wa.menuView.placement()?v&&!n||i():v&&(p.dock.show(0,function(e){e.display="block",Ze(e,o,{alpha:1})}),/overlay/.test(wa.menuView.placement())?ma.removeChild(v):e.parentView.removeChild(v),v=null);var d=ae()&&"overlay"===wa.menuView.placement()?250:0;Ze(p,o,{width:Ca.menuView.width(),height:Ca.menuView.height()+d}),Hi===ji?(Ze(m,o,{width:Ca.menuView.width(),height:Ca.menuView.height(),y:0}),p.menuText&&Ze(p.menuText,o,{y:l})):Ze(m,o,{width:Ca.menuView.width(),height:r,y:l}),p.updateSpeed=fo,A.width=ma.width,A.height=ma.height,Hi===Ri||Hi===ji?p.dock.side="left":p.dock.side=wa.menuView.placement(),p.dock.align=$()?"top":"left",p.dock.margin=ee()?Ca.menuView.y():Ca.menuView.x(),p.dock.pOffset=ee()?Ca.menuView.x():Ca.menuView.y(),p.dock.disableResize="overlay"===wa.menuView.placement(),p.dock.resize(f?0:fo),setTimeout(function(){p.scroll&&p.scroll.resize()},1e3*fo)},p.addContent=function(e){p.mask.addChild(e),setTimeout(function(){p.updateScroll()},1e3*fo)},p.removeContent=function(e){p.mask.removeChild(e),setTimeout(function(){p.updateScroll()},1e3*fo)},p.updateScroll=function(){if((ae()||se())&&(m.element.style["-webkit-overflow-scrolling"]="touch"),"native"===zi.menuScrollType)p.style.pointerEvents="auto",!$()&&zi.dropdownSubMenu?m.element.style.overflow="visible":$()?(m.element.style.overflowY="scroll",m.element.style.overflowX="hidden"):(m.element.style.overflowY="hidden",m.element.style.overflowX="scroll");else if(Jo&&("nativeMacOs"===zi.menuScrollType||zi.globalSmoothScroll||Hi===ji))p.style.pointerEvents="auto",!$()&&zi.dropdownSubMenu?m.element.style.overflow="visible":$()?(m.element.style.overflowY="scroll",m.element.style.overflowX="hidden"):m.element.style.overflow="auto";else if($()||!zi.dropdownSubMenu){p.scroll&&p.scroll.destroy(),m.overflow="hidden";var e=zi.menuScrollbarWidth,t="right"===zi.menuScrollbarAlign?-e:-z(zi.menuWidth,ma.width),i=["bar","wheel","touch"],n=z(wa.menuView.menuTextPaddingHorizontal(),ma.width),o={name:"menu",types:i,axis:$()?"y":"x",align:$()?"top":wa.menuView.menuTextAlignHorizontal(),alpha:zi.menuScrollbarBgAlpha,color:zi.menuScrollbarColor,hover:zi.menuScrollbarHover,side:zi.menuScrollbarAlignment,width:e,topPad:0,margin:$()?2:n,offsetX:$()?t:0,zIndex:500,rounded:wa.overrides.thumbnailScrollbarRounded,visibility:wa.overrides.thumbnailScrollbarVisibility};("nativeMacOs"===zi.menuScrollType||zi.globalSmoothScroll)&&(o.color="#000000",o.hover="#000000",o.side="right",o.alpha=0,o.width=7,o.offsetX=-10,o.offsetY=0,o.rounded=!0,o.visibility="when scrolling"),p.scroll=new Pe(p.menuText,m,o)}else p.style.pointerEvents="auto",m.element.style.overflow="visible"},p.updateStyle(),p}function Si(e){function i(){D.text="",D.children=[],N=new ye(e),N.alpha=0,Hi===ji?N.gap=0:Hi===Ri?N.gap=z(J(zi.menuTextGapTablet,wa.menuView.menuTextGap()),100):N.gap=z(wa.menuView.menuTextGap(),100),zi.menuExpandAll?N.expand="all":N.expand="single",N.toggle=!1,N.wrap=!1;var t=Hi===Ri?zi.menuTextAlignHorizontalTablet||"left":wa.menuView.menuTextAlignHorizontal(),i=t;Hi===ji?i="left":/top|bottom/.test(wa.menuView.placement())&&Hi!==Ri&&(i="top"),N.align=i,N.updateSpeed=D.updateSpeed,N.axis=$()?"y":"x",N.perpLength=$()?D.height:D.width,N.animate=!1,D.addChild(N),l(Z,!1,N,!1),D.width=N.width,D.height=N.height,N.addEventListener(En,r),r(),N.layout(),_&&D.selectMenuItem(),setTimeout(function(){n(),a(),D.events.dispatchEvent(Do),q=0},q)}function n(){O(),N.perpLength=$()?D.height:D.width,N.layout()}function a(){setTimeout(function(){Ze(N,fo,{alpha:1})},350)}function r(e){e&&(D.width=e.width,D.height=e.height),D.x=Math.round(Ca.menuText.x(D.width)),D.events.dispatchEvent(_o)}function l(e,t,i,n){i.parentLabel=n;for(var a=0,r=e.length;a
-1){var o=e.split(",");t=o[0].split("=")[1];var a=o[1].split("x");i=Number(a[0].split("=")[1]),n=Number(a[1])}else t=e.split("=")[1];return{path:t,width:i,height:n}}function f(e){var t=g(e.label),i=new Ge;return i.src=Fi.cdnSslUri+"/"+t.path,i.width=t.width,i.height=t.height,i.customLabel=e.label.toLowerCase(),i.cursor="pointer",i}function C(e){var t=la[e.label.toLowerCase()],i=new Ge;return i.src=ho+t.filename,i.width=t.width,i.height=t.height,i.style.padding="2px 0",i.socialLabel=e.label.toLowerCase(),i.cursor="pointer",i}function w(e){switch(zi.footerIconShape){case"standard":return e.svgStdPath;case"rectangle":return e.svgRectPath;case"circle":return e.svgCircPath}}function y(e){var t=la[e.label.toLowerCase()],i=new fa;i.identity="menu",i.element.setAttribute("data-identity","menu");var n=new fa({type:"g"});n.identity="menu",n.element.setAttribute("data-identity","menu");var o=new et;o.identity="menu",o.element.setAttribute("data-identity","menu");var a=Hi===Ri||Hi===ji?1:zi.footerIconScale;if(n.scale=a,/circle|rectangle/.test(zi.footerIconShape)){var r=new tt;r.rx="circle"===zi.footerIconShape?t.bgCircRadius:t.bgRectRadius,r.width=t.width,r.height=t.height,r.fill=zi.footerIconColor,n.addChild(r)}return o.d=w(t),o.fill="standard"===zi.footerIconShape?zi.footerIconColor:zi.footerIconBgColor,o.fillRule="evenodd",n.addChild(o),i.addChild(n),i.width=t.width*a,i.height=t.height*a,i.socialLabel=e.label.toLowerCase(),i}function L(e,t){var i="%spacer%"===e.toLowerCase()?"span":"a",n=new pa({type:i});return n.identity="menu",n.element.setAttribute("data-identity","menu"),n.element.style["user-select"]="none",Hi===ji?(t?(n.fontFamily=zi.menuSubFontMobile||zi.menuFontMobile||zi.menuFont,n.fontSize=zi.menuSubFontSizeMobile||zi.menuFontSizeMobile||zi.menuSubFontSize,n.textTransform=zi.menuSubTextTransform||"none"):(n.fontFamily=zi.menuFontMobile||zi.menuFont,n.fontSize=zi.menuFontSizeMobile||zi.menuFontSize,n.textTransform=zi.menuTextTransform||"none"),n.fontColor=zi.menuFontColorMobile||zi.menuFontColor):Hi===Ri?(t?(n.fontFamily=zi.menuSubFontTablet||zi.menuFontTablet||zi.menuFont,n.fontSize=zi.menuSubFontSizeTablet||zi.menuFontSizeTablet||zi.menuSubFontSize,n.textTransform=zi.menuSubTextTransform||"none"):(n.fontFamily=zi.menuFontTablet||zi.menuFont,n.fontSize=zi.menuFontSizeTablet||zi.menuFontSize,n.textTransform=zi.menuTextTransform||"none"),n.fontColor=zi.menuFontColorTablet||zi.menuFontColor):(t?(n.fontFamily=zi.menuSubFont||zi.menuFont,n.fontSize=wa.menuView.menuSubFontSize(),n.textTransform=zi.menuSubTextTransform||"none"):(n.fontFamily=zi.menuFont,n.fontSize=wa.menuView.menuFontSize(),n.textTransform=zi.menuTextTransform||"none"),n.fontColor=wa.menuView.menuFontColor()),n.fontStyle=zi.menuFontStyle||"normal",n.letterSpacing=zi.menuKerning,n.textWrap=Hi===ji,n.text="%spacer%"===e.toLowerCase()?" ":e,n.label=n,"%spacer%"!==e.toLowerCase()&&(n.cursor="pointer"),n}function S(e){var t=isNaN(zi.menuIndentMobile)?20:zi.menuIndentMobile,i=isNaN(zi.menuSubIndentMobile)?t+10:t+zi.menuSubIndentMobile;return e?i:t}function M(e,t){var i,n=zi.menuTextAlignHorizontalMobile?zi.menuTextAlignHorizontalMobile:"left",o=S(t),a=""===zi.menuLinesMobile||void 0===zi.menuLinesMobile||zi.menuLinesMobile,r=zi.menuLineHeightMobile||60;switch(n){case"left":i="flex-start";break;case"center":i="center";break;case"right":i="flex-end"}var l=new pa;return l.identity="menu",l.element.setAttribute("data-identity","menu"),l.addChild(e),l.label=e,l.width=Ca.menuView.width(),l.minHeight=r,l.position="relative",l.display="flex",l.style.justifyContent=i,l.style.alignItems="center",a&&(l.borderBottom="1px solid "+E(wa.menuView.menuFontColor(),wa.menuView.menuBgAlpha()+.15)),e.position="relative",Ca.menuBullet.updateSize(t),e.x=0,e.y=a?1:0,e.textAlign=n,e.paddingLeft=o,e.paddingRight=o,l}function T(e){var t;if("custom_png"===zi.menuBulletType)t=new Ge,t.isSub=e,Ca.menuBullet.updateSize(e),t.alpha=0,D.addChild(t),t.element.addEventListener(Ui,function(i){var n={width:i.target.offsetWidth,height:i.target.offsetHeight,filename:this.src};setTimeout(function(){var i=Fe(n);t.width=i.width,t.height=i.height,Ca.menuBullet.width=i.width,Ca.menuBullet.height=i.height,t.width=Ca.menuBullet.width,e?(t.x=Math.round(-(t.width+15)+zi.menuSubBulletOffsetHorizontal),t.y=0+zi.menuSubBulletOffsetVertical):(t.x=Math.round(-(t.width+15)+zi.menuBulletOffsetHorizontal),t.y=0+zi.menuBulletOffsetVertical)},10)}),t.src=Fi.cdnSslUri+"/menu-bullet__at__2x.png";else if(/^underline/.test(zi.menuBulletType)){var i=Number(zi.menuBulletType.split("_")[1]);t=new pa,t.identity="menu",t.element.setAttribute("data-identity","menu"),t.isSub=e,t.backgroundColor=E(wa.menuView.menuFontColor(),0),t.width=0,t.height=i}else t=new pa,t.identity="menu",t.element.setAttribute("data-identity","menu"),t.isSub=e,Ca.menuBullet.updateSize(e),t.fontFamily=zi.menuFont,t.fontColor=E(wa.menuView.menuFontColor(),0),t.fontSize=e?wa.menuView.menuSubFontSize():wa.menuView.menuFontSize(),t.width=Ca.menuBullet.width,t.text=Ma[zi.menuBulletType],e?(t.x=Math.round(-(t.width+15)+zi.menuSubBulletOffsetHorizontal),t.y=0+zi.menuSubBulletOffsetVertical):(t.x=Math.round(-(t.width+15)+zi.menuBulletOffsetHorizontal),t.y=0+zi.menuBulletOffsetVertical);return t}function V(){var e="inherit"===wa.menuView.menuSubTextAlignHorizontal()?wa.menuView.menuTextAlignHorizontal():wa.menuView.menuSubTextAlignHorizontal();return Hi===ji?zi.menuTextAlignHorizontalMobile||"left":Hi===Ri?zi.menuTextAlignHorizontalTablet||"left":e}function k(){return Hi===ji?0:Hi===Ri?J(zi.menuSubIndentTablet,zi.menuSubIndent):zi.menuSubIndent}function O(){for(var e=0,t=G.length,i=V(),n=J(zi.menuSubTextPaddingHorizontal,5);e
o.tile.perpLength?o.children[j].label.element.offsetWidth:o.tile.perpLength,o.tile.addItem(o.children[j].label.element.offsetWidth,o.children[j].label.element.offsetHeight);o.tile.layoutItems();var a=wa.menuView.menuSubTextGap();Hi===Ri&&(a=J(zi.menuTextGapTablet,wa.menuView.menuSubTextGap())),a=z(a,100);for(var r=0;r
0){for(h=new De({id:"nav"}),h.gap=zi.navbarGap+2,h.axis="horizontal"===zi.navbarLayout?"x":"y",h.align="vertical"===zi.navbarLayout?zi.navbarJustification:"left",h.wrap=!1,h.perpLength="x"===h.axis?t[0].element.offsetHeight:t[0].element.offsetWidth,e=0;e
h.perpLength&&(h.perpLength=o):n>h.perpLength&&(h.perpLength=n),h.addItem(n,o)}for(h.layoutItems(),e=0;e
-1&&f?(b=e.assetId,C>1?(u.show(),window.FOTOMOTO&&m&&"image"===m.type?l(m.content):u.buildNavBtns()):u.hide()):(e.assetId===-1&&(b=0),C>1?(u.show(),window.FOTOMOTO&&m&&"image"===m.type?l(m.content):u.buildNavBtns()):u.hide())},u.buildNavBtns=function(){S=z(zi.navbarFontSize,100),u.parent.removeChildren(u);for(var e in Oi)if(Oi.hasOwnProperty(e)){if("fullscreen"===Oi[e].type&&!H())continue;if("thumbs"===Oi[e].type&&"none"===w)continue;if("fotomoto"===Oi[e].type&&!y)continue;if(!/caption|inquiry/.test(Oi[e].type)&&Hi===ji)continue;if(Hi===ji&&!v)continue;var n=new pa;u.addChild(n),"caption"===Oi[e].type&&m&&(n.alpha=""===m.caption?.35:1),Hi===ji&&g&&"caption"===g&&"caption"===Oi[e].type&&m&&m.caption?(n.label=a("×",S+20),n.addChild(n.label),n.width=n.label.element.offsetWidth,n.height=S+10,n.label.x=0,n.label.y=.5*(S-n.label.element.offsetHeight)):"spacer"===Oi[e].type?(n.label=a(" "),n.addChild(n.label),n.width=n.label.element.offsetWidth,n.height=S,n.label.x=0,n.label.y=.5*(S-n.label.element.offsetHeight)):"label"===Oi[e].iconType||"count"===Oi[e].type?(n.label=a(Oi[e].name),n.addChild(n.label),n.width=n.label.element.offsetWidth,n.height=S,n.label.x=0,n.label.y=.5*(S-n.label.element.offsetHeight)):"icon"===Oi[e].iconType?(n.icon=r(Oi[e].type),n.addChild(n.icon),n.width=n.icon.width,n.height=S,n.icon.left=0,n.icon.top=Math.round(.5*(S-n.icon.height))+zi.navbarIconOffsetY):"both"===Oi[e].iconType&&(n.icon=r(Oi[e].type),n.addChild(n.icon),n.label=a(Oi[e].name),n.addChild(n.label),"next"===Oi[e].type?("vertical"===zi.navbarLayout?(n.label.x=-3,n.icon.left=Math.round(n.label.element.offsetWidth-zi.navbarIconOffsetX)):(n.label.x=0,n.icon.left=Math.round(n.label.element.offsetWidth-zi.navbarIconOffsetX+3)),n.label.y=.5*(S-n.label.element.offsetHeight),n.icon.top=Math.round(.5*(S-n.icon.height)+zi.navbarIconOffsetY),n.width=n.icon.width+n.label.element.offsetWidth-zi.navbarIconOffsetX):(n.icon.left=0,n.icon.top=Math.round(.5*(S-n.icon.height)+zi.navbarIconOffsetY),n.label.x=n.icon.width-zi.navbarIconOffsetX+3,n.label.y=.5*(S-n.label.element.offsetHeight),n.width=n.icon.width+n.label.element.offsetWidth-zi.navbarIconOffsetX+3),n.height=S);var l=new pa;l.width=n.element.offsetWidth,l.height=n.element.offsetHeight,l.type=Oi[e].type,l.tooltip=Oi[e].tooltip,n.label&&(l.label=n.label),n.icon&&(l.icon=n.icon),n.addChild(l),n.hit=l,"count"===Oi[e].type?(p=n,p.label.text=b+1+" of "+C,p.width=p.label.element.offsetWidth,l.width=p.label.element.offsetWidth):"spacer"===Oi[e].type||(l.addEventListener(on,i),l.addEventListener(sn,o), l.addEventListener(yn,t)),n.label&&(n.label.element.style["user-select"]="none")}Object.keys(Oi).length>0&&(c(),u.updatePosition())};return u}function Ti(e){function t(){l=new pa,l.backgroundColor=zi.siteBackgroundColor,l.width=ma.width,l.height=ma.height,d.addChild(l)}function i(e,t){var i=new XMLHttpRequest;i.onload=function(){4===i.readyState&&(200===i.status||0==i.status?t(i.responseText):404===i.status&&d.events.dispatchEvent(Bo))},i.open("GET",e,!0),i.send(null)}function n(){var e=/https/.test(wa.introFile||zi.introFile)?wa.introFile||zi.introFile:Fi.cdnSslUri+"/"+(wa.introFile||zi.introFile);/jpeg$|jpg$|gif$|png$/.test(wa.introFile||zi.introFile)?(s=new Ge,s.alpha=0,s.addEventListener(Ui,r),s.addEventListener("error",function(){d.events.dispatchEvent(Bo)}),s.src=e,d.addChild(s)):/htm$|html$/.test(wa.introFile||zi.introFile)&&(s=new pa,s.alpha=0,s.width=ma.width,s.height=ma.height,s.overflow="auto",i(e,function(e){Ze(s,1,{alpha:1}),h=fo,s.text=e}),d.addChild(s))}function o(e){e!==!1&&void 0!==e&&null!==e||(e=1.5),setTimeout(function(){Ze(s,e,{alpha:0,onComplete:function(){d.events.dispatchEvent(Bo)}})},1e3*(zi.introDuration||c))}function a(){return Hi===ji?zi.introScaleTypeMobile||zi.introScaleType:Hi===Ri?zi.introScaleTypeTablet||zi.introScaleType:zi.introScaleType}function r(e){var t=Fe({width:s.element.offsetWidth,height:s.element.offsetHeight,filename:wa.introFile||zi.introFile});Ie(s,0,{type:a(),width:t.width,height:t.height,hRange:ma.width,vRange:ma.height,hAlign:"center",vAlign:"center",disableOrientationCheck:!0,onComplete:function(){Ze(s,1,{alpha:1,onComplete:o}),h=fo}})}var l,s,d=new pa({events:e.events}),c=1.4,h=(e.parentView,0);return d.element.id="IntroView",d.zIndex=wa.introView.zIndex,e.events.addEventListener("introFadeOut",o),d.addEventListener(bo,function(e){t(),n()}),d.updatePosition=function(e){l.width=ma.width,l.height=ma.height,/htm$|html$/.test(wa.introFile||zi.introFile)&&(s.width=ma.width,s.height=ma.height),s&&Ze(s,h,{x:.5*(ma.width-s.width),y:.5*(ma.height-s.height)})},d}function Vi(t){function i(e){Ze(this,.2,{fontColor:Va.fontColorLightest,borderBottom:"1px solid "+Va.bgColorDark,boxShadow:"0 1px 0 0 "+Va.bgColorDark,ease:"ease-out"}),Ze(this.label,.2,{fontSize:12,y:this.y-15,ease:"ease-out"})}function n(e){Ze(this,.2,{fontColor:Va.fontColorLightest,borderBottom:"1px solid "+Va.bgColorDarkest,boxShadow:"0 1px 0 0 #333",ease:"ease-out"}),this.value||Ze(this.label,.2,{fontSize:15,y:this.y+5,ease:"ease-out"})}function o(e){Ze(this,.2,{fontColor:Va.fontColorSelected,ease:"ease-out"})}function a(e){Ze(this,.2,{fontColor:Va.fontColorLight,ease:"ease-out"})}function r(e){Ze(this,.2,{fontColor:Va.fontColorSelected,ease:"ease-out"})}function l(e){Ze(this,.2,{fontColor:Va.fontColorLight,ease:"ease-out"})}function s(){}function d(){}function c(){Fi.adminLockout||new e({url:"/dx/service/login",params:{user:f.value,pass:b.value},callback:p.loginResponse})}function h(){new e({url:"/dx/service/logout",params:{},callback:p.logoutResponse})}function u(e){13===e.which&&c(),f.label.y=f.value?f.y-15:f.y+5,b.label.y=b.value?b.y-15:b.y+5}t=t||{};var p,m=345,v=new pa;v.width=m,v.height=350,v.borderRadius=4,v.addEventListener(yn,function(e){e.stopPropagation()});var g=new pa("h1");g.x=-2,g.y=2,g.width=m,g.height=50,g.fontColor=Va.fontColorLightest,g.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",g.fontSize=47,g.fontWeight=100,g.text="Photofolio Admin",g.textWrap=!1,g.textAlign="left",g.textShadow="0 1px 0 #333",v.addChild(g);var f=new Je;f.x=0,f.y=75,f.width=m,f.height=40,f.fontColor=Va.fontColor,f.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",f.fontSize=16,f.fontWeight=700,f.value="",f.backgroundColor="transparent",f.borderBottom="1px solid "+Va.bgColorDarkest,f.boxShadow="0 1px 0 0 #333",f.element.tabIndex=1,v.addChild(f),f.label=new pa,f.label.x=0,f.label.y=f.value?f.y-15:f.y+5,f.label.fontColor=Va.fontColorLight,f.label.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",f.label.fontSize=15,f.label.fontWeight=700,f.label.text="email",f.label.pointerEvents="none",v.addChild(f.label);var b=new Je;b.x=0,b.y=145,b.width=m,b.height=40,b.fontColor=Va.fontColor,b.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",b.fontSize=16,b.fontWeight=700,b.value="",b.backgroundColor="transparent",b.borderBottom="1px solid "+Va.bgColorDarkest,b.boxShadow="0 1px 0 0 #333",b.element.tabIndex=2,b.element.setAttribute("type","password"),v.addChild(b),b.label=new pa,b.label.x=0,b.label.y=b.value?b.y-15:b.y+5,b.label.fontColor=Va.fontColorLight,b.label.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",b.label.fontSize=15,b.label.fontWeight=700,b.label.text="password",b.label.pointerEvents="none",v.addChild(b.label);var C=new Ue;C.x=0,C.y=220,C.width=m,C.height=45,C.fontColor=Va.fontColor,C.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",C.fontWeight=400,C.fontSize=13,C.text=Fi.adminLockout?"ADMIN LOCKED FOR MAINTENANCE":"LOGIN",C.textAlign="center",C.element.tabIndex=3,C.borderRadius=3,C.backgroundColor=Fi.adminLockout?"#ff295e":"#2FA0D8",C.fontColor=Va.bgColorLighter,C.boxShadow="0 2px 5px 0 rgba(0,0,0,0.16)",v.addChild(C),C.addEventListener(on,function(){Ze(this,.2,{backgroundColor:Fi.adminLockout?"#ff295e":"#4bb7ed",boxShadow:"0 10px 20px 0 rgba(0,0,0,0.6)",ease:"ease-out"})}),C.addEventListener(Ji,function(){Ze(this,.2,{backgroundColor:Fi.adminLockout?"#ff295e":"#4bb7ed",boxShadow:"0 10px 20px 0 rgba(0,0,0,0.6)",ease:"ease-out"})}),C.addEventListener(sn,function(){Ze(this,.2,{backgroundColor:Fi.adminLockout?"#ff295e":"#2FA0D8",boxShadow:"0 2px 5px 0 rgba(0,0,0,0.16)",ease:"ease-out"})}),C.addEventListener(Qi,function(){Ze(this,.2,{backgroundColor:Fi.adminLockout?"#ff295e":"#2FA0D8",boxShadow:"0 2px 5px 0 rgba(0,0,0,0.16)",ease:"ease-out"})}),f.addEventListener(Ji,i),f.addEventListener(Qi,n),b.addEventListener(Ji,i),b.addEventListener(Qi,n);var w=new pa({type:"button"});w.x=.5*m,w.y=270,w.width=.5*m,w.height=50,w.text="CANCEL",w.outline="none",w.border="none",w.fontWeight="bold",w.fontSize=Va.fontSize,w.fontColor=Va.fontColorLight,w.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",w.backgroundColor="transparent",w.element.tabIndex=4,v.addChild(w);var y=new pa({type:"button"});return y.x=0,y.y=270,y.width=.5*m,y.height=50,y.text="FORGOT?",y.outline="none",y.border="none",y.fontWeight="bold",y.fontSize=Va.fontSize,y.fontColor=Va.fontColorLight,y.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",y.backgroundColor="transparent",y.element.tabIndex=5,v.addChild(y),w.addEventListener(on,r),w.addEventListener(sn,l),y.addEventListener(on,r),y.addEventListener(sn,l),w.addEventListener(Ji,o),w.addEventListener(Qi,a),y.addEventListener(Ji,o),y.addEventListener(Qi,a),w.addEventListener(yn,function(e){h(),p.close()}),C.addEventListener(yn,function(e){c()}),y.addEventListener(yn,function(t){new e({url:"/dx/service/login/forget",params:{},callback:function(e){ze("Please check your email for password reset instructions.")}})}),p="MSIE"===ta?ze("The Dx admin requires the chrome browser to work properly (the front of your site works with all up to date browsers).",{userOverride:!1,blurLayers:[t.parentView],alpha:.5,onOpen:s,onClose:d}):new da(v,{userOverride:!1,blurLayers:[t.parentView],backgroundColor:"#000000",alpha:.8,onOpen:s,onClose:d}),p.open(),p.overlayResize(),Hi!==ji&&Hi!==Ri&&f.focus(),p.loginResponse=function(e){"pass"===e.status?location.assign("/"):C.text="TRY AGAIN"},p.logoutResponse=function(e){e&&location.assign("/")},window.addEventListener("keydown",u,!1),setTimeout(function(){f.label.y=f.value||f.element.focus?f.y-15:f.y+5,b.label.y=f.value?b.y-15:b.y+5},100),p}window.isLogin=!1;var Ei=!1,zi=(window.DX_MODEL.account,window.DX_MODEL.layout),ki=window.DX_MODEL.media,Oi=window.DX_MODEL.navbar,Ii=window.DX_MODEL.sections,Fi=window.DX_MODEL.settings,Ai=window.DX_MODEL.files;!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.anime=t()}(window,function(){"use strict";function e(e,t,i){return Math.min(Math.max(e,t),i)}function t(e,t){return e.indexOf(t)>-1}function i(e,t){return e.apply(null,t)}function n(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(e){return parseFloat(e)}):[]}function o(t,i){function o(e){var t=i?i*e/1e3:e;return t=h<1?Math.exp(-t*h*c)*(p*Math.cos(u*t)+m*Math.sin(u*t)):(p+m*t)*Math.exp(-t*c),0===e||1===e?e:1-t}var a=n(t),r=e(K.und(a[0])?1:a[0],.1,100),l=e(K.und(a[1])?100:a[1],.1,100),s=e(K.und(a[2])?10:a[2],.1,100),d=e(K.und(a[3])?0:a[3],.1,100),c=Math.sqrt(l/r),h=s/(2*Math.sqrt(l*r)),u=h<1?c*Math.sqrt(1-h*h):0,p=1,m=h<1?(h*c-d)/u:-d+c;return i?o:function(){var e=q.springs[t];if(e)return e;for(var i=0,n=0;;)if(1===o(i+=1/6)){if(++n>=16)break}else n=0;var a=i*(1/6)*1e3;return q.springs[t]=a,a}}function a(e){return void 0===e&&(e=10),function(t){return Math.round(t*e)*(1/e)}}function r(e,t){if(K.fnc(e))return e;var r=e.split("(")[0],l=Q[r],s=n(e);switch(r){case"spring":return o(e,t);case"cubicBezier":return i(J,s);case"steps":return i(a,s);default:return i(l,s)}}function l(e){try{return document.querySelectorAll(e)}catch(e){return}}function s(e,t){for(var i=e.length,n=arguments.length>=2?arguments[1]:void 0,o=[],a=0;a
1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}var i,n,o,a=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(a[1],10)/360,l=parseInt(a[2],10)/100,s=parseInt(a[3],10)/100,d=a[4]||1;if(0==l)i=n=o=s;else{var c=s<.5?s*(1+l):s+l-s*l,h=2*s-c;i=t(h,c,r+1/3),n=t(h,c,r),o=t(h,c,r-1/3)}return"rgba("+255*i+","+255*n+","+255*o+","+d+")"}(e):void 0;var t,i,n,o}function g(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function f(e,t){return K.fnc(e)?e(t.target,t.id,t.total):e}function b(e,t){return e.getAttribute(t)}function C(e,t,i){if(h([i,"deg","rad","turn"],g(t)))return t;var n=q.CSS[t+i];if(!K.und(n))return n;var o=document.createElement(e.tagName),a=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;a.appendChild(o),o.style.position="absolute",o.style.width=100+i;var r=100/o.offsetWidth;a.removeChild(o);var l=r*parseFloat(t);return q.CSS[t+i]=l,l}function w(e,t,i){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return i?C(e,o,i):o}}function y(e,t){return K.dom(e)&&!K.inp(e)&&(b(e,t)||K.svg(e)&&e[t])?"attribute":K.dom(e)&&h(U,t)?"transform":K.dom(e)&&"transform"!==t&&w(e,t)?"css":null!=e[t]?"object":void 0}function L(e){if(K.dom(e)){for(var t,i=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,o=new Map;t=n.exec(i);)o.set(t[1],t[2]);return o}}function S(e,i,n,o){var a,r=t(i,"scale")?1:0+(t(a=i,"translate")||"perspective"===a?"px":t(a,"rotate")||t(a,"skew")?"deg":void 0),l=L(e).get(i)||r;return n&&(n.transforms.list.set(i,l),n.transforms.last=i),o?C(e,l,o):l}function x(e,t,i,n){switch(y(e,t)){case"transform":return S(e,t,n,i);case"css":return w(e,t,i);case"attribute":return b(e,t);default:return e[t]||0}}function M(e,t){var i=/^(\*=|\+=|-=)/.exec(e);if(!i)return e;var n=g(e)||0,o=parseFloat(t),a=parseFloat(e.replace(i[0],""));switch(i[0][0]){case"+":return o+a+n;case"-":return o-a+n;case"*":return o*a+n}}function T(e,t){if(K.col(e))return v(e);if(/\s/g.test(e))return e;var i=g(e),n=i?e.substr(0,e.length-i.length):e;return t?n+t:n}function V(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function E(e){for(var t,i=e.points,n=0,o=0;o
0&&(n+=V(t,a)),t=a}return n}function z(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return a=e,2*Math.PI*b(a,"r");case"rect":return 2*b(o=e,"width")+2*b(o,"height");case"line":return V({x:b(n=e,"x1"),y:b(n,"y1")},{x:b(n,"x2"),y:b(n,"y2")});case"polyline":return E(e);case"polygon":return i=(t=e).points,E(t)+V(i.getItem(i.numberOfItems-1),i.getItem(0))}var t,i,n,o,a}function k(e,t){var i=t||{},n=i.el||function(e){for(var t=e.parentNode;K.svg(t)&&K.svg(t.parentNode);)t=t.parentNode;return t}(e),o=n.getBoundingClientRect(),a=b(n,"viewBox"),r=o.width,l=o.height,s=i.viewBox||(a?a.split(" "):[0,0,r,l]);return{el:n,viewBox:s,x:s[0]/1,y:s[1]/1,w:r/s[2],h:l/s[3]}}function O(e,t){function i(i){void 0===i&&(i=0);var n=t+i>=1?t+i:0;return e.el.getPointAtLength(n)}var n=k(e.el,e.svg),o=i(),a=i(-1),r=i(1);switch(e.property){case"x":return(o.x-n.x)*n.w;case"y":return(o.y-n.y)*n.h;case"angle":return 180*Math.atan2(r.y-a.y,r.x-a.x)/Math.PI}}function I(e,t){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=T(K.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:K.str(e)||t?n.split(i):[]}}function F(e){return s(e?d(K.arr(e)?e.map(c):c(e)):[],function(e,t,i){return i.indexOf(e)===t})}function A(e){var t=F(e);return t.map(function(e,i){return{target:e,id:i,total:t.length,transforms:{list:L(e)}}})}function P(e,t){var i=u(t);if(/^spring/.test(i.easing)&&(i.duration=o(i.easing)),K.arr(e)){var n=e.length;2!==n||K.obj(e[0])?K.fnc(t.duration)||(i.duration=t.duration/n):e={value:e}}var a=K.arr(e)?e:[e];return a.map(function(e,i){var n=K.obj(e)&&!K.pth(e)?e:{value:e};return K.und(n.delay)&&(n.delay=i?0:t.delay),K.und(n.endDelay)&&(n.endDelay=i===a.length-1?t.endDelay:0),n}).map(function(e){return m(e,i)})}function H(e,t){var i=[],n=t.keyframes;for(var o in n&&(t=m(function(e){for(var t=s(d(e.map(function(e){return Object.keys(e)})),function(e){return K.key(e)}).reduce(function(e,t){return e.indexOf(t)<0&&e.push(t),e},[]),i={},n=function(n){var o=t[n];i[o]=e.map(function(e){var t={};for(var i in e)K.key(i)?i==o&&(t.value=e[i]):t[i]=e[i];return t})},o=0;o
2||(C=Math.round(C*m)/m)),v.push(C)}var L=p.length;if(L){f=p[0];for(var S=0;S
0&&(V.began=!0,d("begin")),!V.loopBegan&&V.currentTime>0&&(V.loopBegan=!0,d("loopBegin")),u<=s&&0!==V.currentTime&&l(0),(u>=c&&V.currentTime!==a||!a)&&l(a),u>s&&u
=a&&(S=0,V.remaining&&!0!==V.remaining&&V.remaining--,V.remaining?(L=x,d("loopComplete"),V.loopBegan=!1,"alternate"===V.direction&&n()):(V.paused=!0,V.completed||(V.completed=!0,d("loopComplete"),d("complete"),!V.passThrough&&"Promise"in window&&(T(),i(V)))))}void 0===t&&(t={});var h,u,v,g,f,b,C,w,y,L=0,S=0,x=0,M=0,T=null,V=(v=p(Z,u=t),g=p(G,u),f=H(g,u),b=A(u.targets),C=B(b,f),w=D(C,g),y=ee,ee++,m(v,{id:y,children:[],animatables:b,animations:C,duration:w.duration,delay:w.delay,endDelay:w.endDelay}));return i(V),V.reset=function(){var e=V.direction;V.passThrough=!1,V.currentTime=0,V.progress=0,V.paused=!0,V.began=!1,V.loopBegan=!1,V.changeBegan=!1,V.completed=!1,V.changeCompleted=!1,V.reversePlayback=!1,V.reversed="reverse"===e,V.remaining=V.loop,h=V.children;for(var t=M=h.length;t--;)V.children[t].reset();(V.reversed&&!0!==V.loop||"alternate"===e&&1===V.loop)&&V.remaining++,l(V.reversed?V.duration:0)},V.set=function(e,t){return j(e,t),V},V.tick=function(e){x=e,L||(L=x),c((x+(S-L))*_.speed)},V.seek=function(e){c(o(e))},V.pause=function(){V.paused=!0,a()},V.play=function(){V.paused&&(V.completed&&V.reset(),V.paused=!1,te.push(V),a(),Y||ne())},V.reverse=function(){n(),a()},V.restart=function(){V.reset(),V.play()},V.reset(),V.autoplay&&V.play(),V}function W(e,t){for(var i=t.length;i--;)h(e,t[i].animatable.target)&&t.splice(i,1)}var N,X,Y,Z={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},G={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},U=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],q={CSS:{},springs:{}},K={arr:function(e){return Array.isArray(e)},obj:function(e){return t(Object.prototype.toString.call(e),"Object")},pth:function(e){return K.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||K.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return K.hex(e)||K.rgb(e)||K.hsl(e)},key:function(e){return!Z.hasOwnProperty(e)&&!G.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}},J=function(){function e(e,t){return 1-3*t+3*e}function t(e,t){return 3*t-6*e}function i(e){return 3*e}function n(n,o,a){return((e(o,a)*n+t(o,a))*n+i(o))*n}function o(n,o,a){return 3*e(o,a)*n*n+2*t(o,a)*n+i(o)}var a=11,r=1/(a-1);return function(e,t,i,l){function s(t){for(var l=0,s=1,c=a-1;s!==c&&d[s]<=t;++s)l+=r;var h=l+(t-d[--s])/(d[s+1]-d[s])*r,u=o(h,e,i);return u>=.001?function(e,t,i,a){for(var r=0;r<4;++r){var l=o(t,i,a);if(0===l)return t;t-=(n(t,i,a)-e)/l}return t}(t,h,e,i):0===u?h:function(e,t,i,o,a){for(var r,l,s=0;(r=n(l=t+(i-t)/2,o,a)-e)>0?i=l:t=l,Math.abs(r)>1e-7&&++s<10;);return l}(t,l,l+r,e,i)}if(0<=e&&e<=1&&0<=i&&i<=1){var d=new Float32Array(a);if(e!==t||i!==l)for(var c=0;c
-1&&(te.splice(a,1),i=te.length)}else o.tick(t);n++}e()}else Y=cancelAnimationFrame(Y)}return e}();return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){document.hidden?(te.forEach(function(e){return e.pause()}),ie=te.slice(0),_.running=te=[]):ie.forEach(function(e){return e.play()})}),_.version="3.1.0",_.speed=1,_.running=te,_.remove=function(e){for(var t=F(e),i=te.length;i--;){var n=te[i],o=n.animations,a=n.children;W(t,o);for(var r=a.length;r--;){var l=a[r],s=l.animations;W(t,s),s.length||l.children.length||a.splice(r,1)}o.length||a.length||n.pause()}},_.get=x,_.set=j,_.convertPx=C,_.path=function(e,t){var i=K.str(e)?l(e)[0]:e,n=t||100;return function(e){return{property:e,el:i,svg:k(i),totalLength:z(i)*(n/100)}}},_.setDashoffset=function(e){var t=z(e);return e.setAttribute("stroke-dasharray",t),t},_.stagger=function(e,t){void 0===t&&(t={});var i=t.direction||"normal",n=t.easing?r(t.easing):null,o=t.grid,a=t.axis,l=t.from||0,s="first"===l,d="center"===l,c="last"===l,h=K.arr(e),u=h?parseFloat(e[0]):parseFloat(e),p=h?parseFloat(e[1]):0,m=g(h?e[1]:e)||0,v=t.start||0+(h?u:0),f=[],b=0;return function(e,t,r){if(s&&(l=0),d&&(l=(r-1)/2),c&&(l=r-1),!f.length){for(var g=0;g
-1&&te.splice(a,1);for(var l=0;l
1,lo=!!("ontouchstart"in window),so="media/original/",co="https://33acda504924667afc4c-95ab99cbba1f87315d458f4e201677b2.ssl.cf1.rackcdn.com",ho=co+"/icon/",uo="transitionStart",po="transitionEnd",mo="loadedmetadata",vo="vimeoMetadataLoaded",go="mediaLoaded",fo=.5,bo="childAdded",Co="drop",wo="dragenter",yo="dragleave",Lo="dragover",So=[$i,en,tn,nn,hn,un,on,an,rn,ln,sn,yn,Ln,Ui,Gi,Ji,Qi,wo,Lo,yo,Co],xo={custom:{},small:{width:100,height:66},medium:{width:200,height:133},large:{width:300,height:200},xLarge:{width:400,height:266},xxLarge:{width:500,height:333},small_sq:{width:100,height:100},medium_sq:{width:200,height:200},large_sq:{width:300,height:300},xLarge_sq:{width:400,height:400},xxLarge_sq:{width:500,height:500},small_v:{width:66,height:100},medium_v:{width:133,height:200},large_v:{width:200,height:300},xLarge_v:{width:266,height:400},xxLarge_v:{width:333,height:500}},Mo="contactFormSubmit",To="siteServiceContactFormSubmit",Vo="contactFormSent",Eo="shareFormSubmit",zo="siteServiceShareFormSubmit",ko="shareFormSent",Oo="inquiryFormSubmit",Io="siteServiceInquiryFormSubmit",Fo="inquiryFormSent",Ao="touchNavigationStart",Po="touchNavigationMove",Ho="touchNavigationEnd",Ro="menuDockOpen",jo="menuDockClose",Bo="introComplete",Do="menuBuilt",_o="menuSizeChange",Wo="addressSectionChange",No="addressOverlayChange",Xo="addressAssetChange",Yo="navbarNavClick",Zo="navbaOverlayBtnClick",Go="adminMouseDown",Uo="adminMouseUp",qo="siteServiceGetFile",Ko="pageLoaded",Jo="macScrollbars",Qo={linear:"linear",sine:{in:"cubic-bezier(0.47, 0, 0.745, 0.715)",out:"cubic-bezier(0.39, 0.575, 0.565, 1)",inOut:"cubic-bezier(0.445, 0.05, 0.55, 0.95)"},quad:{in:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",out:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",inOut:"cubic-bezier(0.455, 0.03, 0.515, 0.955)"},cubic:{in:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",out:"cubic-bezier(0.215, 0.61, 0.355, 1)",inOut:"cubic-bezier(0.645, 0.045, 0.355, 1)"},quart:{in:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",out:"cubic-bezier(0.165, 0.84, 0.44, 1)",inOut:"cubic-bezier(0.77, 0, 0.175, 1)"},quint:{in:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",out:"cubic-bezier(0.23, 1, 0.32, 1)",inOut:"cubic-bezier(0.86, 0, 0.07, 1)"},expo:{in:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",out:"cubic-bezier(0.19, 1, 0.22, 1)",inOut:"cubic-bezier(1, 0, 0, 1)"},circ:{in:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",out:"cubic-bezier(0.075, 0.82, 0.165, 1)",inOut:"cubic-bezier(0.785, 0.135, 0.15, 0.86)"},back:{in:"cubic-bezier(0.6, -0.28, 0.735, 0.045)",out:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",inOut:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},$o={E:2.718281828459045,LN2:.6931471805599453,LN10:2.302585092994046,LOG2E:1.4426950408889634,LOG10E:.4342944819032518,PI:3.141592653589793,SQRT1_2:.7071067811865476,SQRT2:1.4142135623730951,floor:Math.floor,ceil:Math.ceil,round:Math.round,abs:Math.abs,pow:Math.pow,max:Math.max,min:Math.min,random:Math.random,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,cos:Math.cos,exp:Math.exp,log:Math.log,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan};window.requestAnimationFrame=window.requestAnimationFrame||function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}(),window.cancelAnimationFrame=window.cancelAnimationFrame||function(){return window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){window.clearTimeout(e)}}(),window.performance=window.performance||{},performance.now=function(){return performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow||function(){return(new Date).getTime()}}();var ea=function(){var e=Pi.toLowerCase();return/windows/.test(e)?"Windows":/macintosh/.test(e)?"Macintosh":/linux/.test(e)?"Linux":"Other"}(),ta=function(){var e=Pi.toLowerCase();return/mobile/.test(e)?"Mobile "+ne(e):ne(e)}(),ia=function(){var e,t=navigator.userAgent,i=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(i[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],Number(e[1])):"Chrome"===i[1]&&(e=t.match(/\bOPR\/(\d+)/)||t.match(/\bEdge\/(\d+)/),null!=e)?Number(e[1]):(i=i[2]?[i[1],i[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&i.splice(1,1,e[1]),Number(i[1]))}();Hi=function(){return se()&&!Fi.padUseDesktop?Ri:ae()&&!Fi.podUseDesktop?ji:Wi}(),ce();var na={8:wn,13:Cn,27:fn,32:bn,37:pn,38:mn,39:vn,40:gn,16:Sn,91:xn,93:xn,224:xn,17:Mn,65:"a",72:"h",77:"m"},oa={DELETE:8,ENTER:13,ESCAPE:27,SPACE_BAR:32,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,LEFT_ARROW:37,RIGHT_ARROW:39,SHIFT:16,COMMAND:91,COMMAND:93,COMMAND:224,CONTROL:17,a:65,h:72,m:77},aa={filename:"email@2x.png",width:20,height:20,bgRectRadius:3,bgCircRadius:10,svgStdPath:"M17.977,14.762 L13.317,9.71 L17.981,5.038 C18.077,4.941 18.242,5.009 18.242,5.146 L18.242,14.659 C18.242,14.798 18.071,14.865 17.977,14.762 z M10.86,12.171 C10.592,12.439 10.229,12.59 9.851,12.59 L9.838,12.59 C9.453,12.59 9.084,12.437 8.811,12.165 L7.43,10.786 L2.69,15.611 C2.595,15.707 2.663,15.871 2.799,15.871 L17.191,15.871 C17.325,15.871 17.394,15.712 17.304,15.614 L12.559,10.469 L10.86,12.171 z M9.839,11.518 L9.839,11.518 C9.941,11.518 10.037,11.478 10.11,11.405 L17.165,4.338 C17.261,4.242 17.193,4.077 17.056,4.077 L2.597,4.077 C2.461,4.077 2.392,4.242 2.489,4.338 L9.568,11.406 C9.64,11.478 9.736,11.518 9.839,11.518 z M1.692,5.427 L1.692,14.722 C1.692,14.859 1.859,14.927 1.955,14.829 L6.671,10.028 L1.954,5.319 C1.857,5.222 1.692,5.291 1.692,5.427 z",svgRectPath:"M1.99079514,0 C0.891309342,0 0,0.898212381 0,1.99079514 L0,18.0092049 C0,19.1086907 0.898212381,20 1.99079514,20 L18.0092049,20 C19.1086907,20 20,19.1017876 20,18.0092049 L20,1.99079514 C20,0.891309342 19.1017876,0 18.0092049,0 L1.99079514,0 Z M17.9766923,14.7623077 L13.3169231,9.70953846 L17.9809231,5.03761538 C18.0773846,4.941 18.2423846,5.00930769 18.2423846,5.14576923 L18.2423846,14.6585385 C18.2423846,14.7979231 18.0712308,14.8648462 17.9766923,14.7623077 Z M10.8596923,12.1710769 C10.5922308,12.439 10.2291538,12.5896154 9.85053846,12.5896154 L9.83846154,12.5896154 C9.45323077,12.5896154 9.08369231,12.4367692 8.811,12.1645385 L7.42969231,10.7856154 L2.69,15.6105385 C2.59484615,15.7073846 2.66346154,15.871 2.79923077,15.871 L17.1914615,15.871 C17.3249231,15.871 17.3944615,15.7121538 17.304,15.6140769 L12.5590769,10.4688462 L10.8596923,12.1710769 Z M9.83853846,11.5176923 L9.83884615,11.5176923 C9.94115385,11.5176923 10.0373077,11.4777692 10.1096154,11.4053846 L17.1646923,4.33823077 C17.261,4.24169231 17.1926923,4.07692308 17.0563077,4.07692308 L2.59707692,4.07692308 C2.46061538,4.07692308 2.39230769,4.242 2.48892308,4.33838462 L9.56823077,11.4058462 C9.64038462,11.4780769 9.73638462,11.5176923 9.83853846,11.5176923 Z M1.69230769,5.427 L1.69230769,14.7220769 C1.69230769,14.8591538 1.85861538,14.9271538 1.95469231,14.8293846 L6.67115385,10.0281538 L1.95369231,5.31861538 C1.85715385,5.22230769 1.69230769,5.29069231 1.69230769,5.427 Z", svgCircPath:"M10,0 C4.4771525,0 0,4.47593818 0,10 C0,15.5228475 4.47593818,20 10,20 C15.5228475,20 20,15.5240618 20,10 C20,4.4771525 15.5240618,0 10,0 Z M16.9796058,14.8654487 L12.9023077,10.2337436 L16.9833077,5.95114744 C17.0677115,5.86258333 17.2120865,5.92519872 17.2120865,6.05028846 L17.2120865,14.7703269 C17.2120865,14.8980962 17.0623269,14.9594423 16.9796058,14.8654487 Z M10.7522308,12.4901538 C10.5182019,12.73575 10.2005096,12.8738141 9.86922115,12.8738141 L9.85865385,12.8738141 C9.52157692,12.8738141 9.19823077,12.7337051 8.959625,12.4841603 L7.75098077,11.2201474 L3.60375,15.6429936 C3.52049038,15.7317692 3.58052885,15.88175 3.69932692,15.88175 L16.2925288,15.88175 C16.4093077,15.88175 16.4701538,15.736141 16.391,15.6462372 L12.2391923,10.9297756 L10.7522308,12.4901538 Z M9.85872115,11.8912179 L9.85899038,11.8912179 C9.94850962,11.8912179 10.0326442,11.8546218 10.0959135,11.7882692 L16.2691058,5.31004487 C16.353375,5.22155128 16.2936058,5.07051282 16.1742692,5.07051282 L3.52244231,5.07051282 C3.40303846,5.07051282 3.34326923,5.22183333 3.42780769,5.3101859 L9.62220192,11.7886923 C9.68533654,11.8549038 9.76933654,11.8912179 9.85872115,11.8912179 Z M2.73076923,6.30808333 L2.73076923,14.8285705 C2.73076923,14.9542244 2.87628846,15.0165577 2.96035577,14.9269359 L7.08725962,10.5258077 L2.95948077,6.20873077 C2.87500962,6.12044872 2.73076923,6.18313462 2.73076923,6.30808333 Z"},ra={filename:"plus1b@2x.png",width:20,height:20,bgRectRadius:3,bgCircRadius:10,svgStdPath:"M6.336,3.8 C2.955,3.8 0.137,6.618 0.136,10 C0.137,13.382 2.955,16.2 6.336,16.2 C9.859,16.2 12.255,13.664 12.255,10.141 C12.255,9.718 12.255,9.155 12.114,8.732 L6.336,8.732 L6.336,11.127 L9.577,11.127 C9.296,12.537 8.027,13.664 6.336,13.664 C4.364,13.664 2.673,11.973 2.673,10 C2.673,8.027 4.364,6.337 6.336,6.336 C7.182,6.337 8.027,6.618 8.591,7.182 L10.423,5.35 C9.296,4.505 8.027,3.8 6.336,3.8 z M17.75,6.759 L16.2,6.759 L16.2,8.873 L13.946,8.873 L13.946,10.423 L16.059,10.423 L16.059,12.536 L17.609,12.536 L17.609,10.423 L19.864,10.423 L19.864,8.873 L17.75,8.873 L17.75,6.759 z",svgRectPath:"M1.991,20 C0.898,20 0,19.109 0,18.009 L0,1.969 L0.004,1.972 C0.122,0.656 0.812,0.24 1.991,0 L18.009,0 C19.102,0 20,0.891 20,1.991 L20,18.009 C19.886,19.306 19.218,19.754 18.039,19.994 L18.031,20 L1.991,20 z M6.521,4.113 C3.31,4.113 0.634,6.788 0.633,10 C0.634,13.212 3.31,15.887 6.521,15.887 C9.866,15.887 12.141,13.479 12.141,10.134 C12.141,9.732 12.141,9.198 12.007,8.796 L6.521,8.796 L6.521,11.07 L9.598,11.07 C9.331,12.409 8.126,13.479 6.521,13.479 C4.648,13.479 3.042,11.874 3.042,10 C3.042,8.126 4.648,6.522 6.521,6.521 C7.324,6.522 8.126,6.788 8.662,7.324 L10.402,5.584 C9.331,4.782 8.126,4.113 6.521,4.113 z M17.359,6.922 L15.887,6.922 L15.887,8.93 L13.747,8.93 L13.747,10.402 L15.754,10.402 L15.754,12.408 L17.225,12.408 L17.225,10.402 L19.367,10.402 L19.367,8.93 L17.359,8.93 L17.359,6.922 z",svgCircPath:"M10,0 C15.523,-0 20,4.477 20,10 C20,15.523 15.523,20 10,20 C4.477,20 -0,15.523 -0,10 C-0,4.477 4.477,-0 10,-0 z M6.521,4.113 C3.31,4.113 0.634,6.788 0.633,10 C0.634,13.212 3.31,15.887 6.521,15.887 C9.866,15.887 12.141,13.479 12.141,10.134 C12.141,9.732 12.141,9.198 12.007,8.796 L6.521,8.796 L6.521,11.07 L9.598,11.07 C9.331,12.409 8.126,13.479 6.521,13.479 C4.648,13.479 3.042,11.874 3.042,10 C3.042,8.126 4.648,6.522 6.521,6.521 C7.324,6.522 8.126,6.788 8.662,7.324 L10.402,5.584 C9.331,4.782 8.126,4.113 6.521,4.113 z M17.359,6.922 L15.888,6.922 L15.888,8.93 L13.747,8.93 L13.747,10.402 L15.754,10.402 L15.754,12.408 L17.225,12.408 L17.225,10.402 L19.367,10.402 L19.367,8.93 L17.359,8.93 L17.359,6.922 z"},la={"[500px]":{filename:"500px@2x.png",width:20,height:20,bgRectRadius:3,bgCircRadius:10,svgStdPath:"M7.013,9.897 C7.139,9.565 7.294,9.275 7.515,9.024 C7.999,8.474 8.61,8.177 9.337,8.11 C10.362,8.016 11.204,8.411 11.941,9.084 C12.246,9.362 12.516,9.675 12.782,9.991 C12.838,10.058 12.863,10.064 12.923,9.993 C13.265,9.587 13.605,9.179 14.026,8.85 C14.511,8.469 15.045,8.195 15.665,8.122 C17.197,7.943 18.478,8.777 18.804,10.358 C18.941,11.024 18.899,11.681 18.668,12.322 C18.242,13.507 17.255,14.184 15.995,14.169 C15.227,14.16 14.571,13.862 13.973,13.409 C13.582,13.112 13.247,12.757 12.925,12.39 C12.871,12.328 12.846,12.314 12.78,12.383 C12.451,12.724 12.139,13.083 11.769,13.384 C11.301,13.765 10.785,14.051 10.181,14.133 C9.113,14.278 8.19,13.996 7.472,13.158 C7.31,12.968 7.187,12.751 7.086,12.522 C7.074,12.493 7.07,12.459 7.037,12.434 C6.896,12.738 6.722,13.018 6.493,13.261 C5.917,13.873 5.207,14.192 4.369,14.222 C3.763,14.243 3.17,14.166 2.617,13.904 C1.691,13.465 1.182,12.735 1.119,11.704 C1.114,11.625 1.136,11.605 1.214,11.606 C1.712,11.609 2.209,11.609 2.707,11.606 C2.782,11.605 2.803,11.627 2.816,11.7 C2.911,12.268 3.217,12.664 3.789,12.806 C4.588,13.004 5.322,12.551 5.532,11.729 C5.673,11.175 5.612,10.646 5.245,10.185 C5.002,9.879 4.671,9.73 4.283,9.703 C3.724,9.663 3.266,9.847 2.936,10.312 C2.906,10.355 2.87,10.366 2.82,10.365 C2.371,10.364 1.923,10.363 1.474,10.366 C1.396,10.367 1.38,10.345 1.393,10.271 C1.626,8.976 1.857,7.681 2.088,6.386 C2.12,6.209 2.152,6.032 2.181,5.854 C2.191,5.796 2.213,5.774 2.276,5.775 C3.766,5.777 5.257,5.777 6.747,5.775 C6.818,5.774 6.833,5.798 6.833,5.864 C6.83,6.264 6.829,6.664 6.833,7.063 C6.834,7.144 6.813,7.167 6.731,7.166 C5.663,7.164 4.595,7.166 3.528,7.163 C3.439,7.162 3.4,7.177 3.383,7.277 C3.289,7.845 3.185,8.412 3.086,8.979 C3.082,9.003 3.065,9.035 3.091,9.051 C3.12,9.069 3.136,9.034 3.153,9.017 C3.642,8.546 4.239,8.402 4.897,8.437 C5.53,8.471 6.071,8.709 6.517,9.159 C6.703,9.347 6.848,9.564 6.964,9.801 C6.977,9.826 6.99,9.852 7.013,9.897 z M17.33,11.123 C17.333,11.066 17.323,10.982 17.312,10.897 C17.218,10.143 16.583,9.656 15.831,9.755 C15.436,9.807 15.111,10.003 14.804,10.238 C14.462,10.5 14.175,10.82 13.88,11.131 C13.84,11.173 13.858,11.195 13.887,11.228 C14.094,11.46 14.309,11.686 14.552,11.881 C14.955,12.206 15.392,12.456 15.924,12.505 C16.524,12.561 17.01,12.281 17.224,11.737 C17.298,11.549 17.329,11.353 17.33,11.123 z M8.376,11.197 C8.379,11.235 8.382,11.297 8.387,11.358 C8.438,11.942 8.828,12.381 9.393,12.484 C9.703,12.541 10.005,12.5 10.298,12.386 C10.923,12.142 11.399,11.704 11.835,11.212 C11.867,11.176 11.851,11.158 11.826,11.132 C11.514,10.805 11.196,10.484 10.828,10.219 C10.572,10.035 10.303,9.87 9.994,9.794 C9.523,9.677 9.094,9.744 8.759,10.128 C8.499,10.425 8.375,10.777 8.376,11.197 z",svgRectPath:"M1.99079514,0 C0.891309342,0 0,0.898212381 0,1.99079514 L0,18.0092049 C0,19.1086907 0.898212381,20 1.99079514,20 L18.0092049,20 C19.1086907,20 20,19.1017876 20,18.0092049 L20,1.99079514 C20,0.891309342 19.1017876,0 18.0092049,0 L1.99079514,0 Z M7.14517241,9.90206897 C7.26551724,9.58448276 7.41413793,9.30758621 7.625,9.06775862 C8.08758621,8.54189655 8.67189655,8.25844828 9.36655172,8.19431034 C10.3455172,8.10396552 11.15,8.48189655 11.8543103,9.12465517 C12.1460345,9.39086207 12.4044828,9.68931034 12.6581034,9.99137931 C12.712069,10.0558621 12.7356897,10.0615517 12.7931034,9.99362069 C13.1196552,9.60568966 13.445,9.21603448 13.8468966,8.90086207 C14.3103448,8.53741379 14.8210345,8.275 15.4134483,8.20568966 C16.8775862,8.03413793 18.1012069,8.83155172 18.4127586,10.3427586 C18.5437931,10.9784483 18.5034483,11.6068966 18.2832759,12.2196552 C17.8762069,13.352069 16.9332759,13.9984483 15.7284483,13.9843103 C14.9944828,13.9756897 14.367931,13.6912069 13.7963793,13.2577586 C13.422931,12.9744828 13.1031034,12.6346552 12.7953448,12.2837931 C12.7436207,12.225 12.7196552,12.2118966 12.6568966,12.277069 C12.3422414,12.6037931 12.0434483,12.9467241 11.6901724,13.2343103 C11.2434483,13.597931 10.7503448,13.8712069 10.172931,13.9496552 C9.15172414,14.0884483 8.26982759,13.8193103 7.58413793,13.0181034 C7.4287931,12.8363793 7.31155172,12.6293103 7.21534483,12.4105172 C7.20327586,12.382931 7.19965517,12.3496552 7.16844828,12.3265517 C7.03396552,12.6167241 6.86741379,12.8839655 6.6487931,13.1162069 C6.09844828,13.7013793 5.41965517,14.0065517 4.61844828,14.0348276 C4.03948276,14.0553448 3.47241379,13.9815517 2.94431034,13.7312069 C2.05965517,13.3118966 1.57310345,12.6139655 1.51275862,11.6282759 C1.50827586,11.5532759 1.52896552,11.5343103 1.60327586,11.5346552 C2.07913793,11.5381034 2.555,11.5381034 3.03068966,11.5346552 C3.10206897,11.5341379 3.12206897,11.5551724 3.13413793,11.625 C3.22568966,12.167931 3.51775862,12.5460345 4.06482759,12.6818966 C4.82827586,12.8713793 5.52965517,12.4381034 5.73017241,11.6522414 C5.86517241,11.1232759 5.80689655,10.6175862 5.4562069,10.177069 C5.22344828,9.88465517 4.90724138,9.74224138 4.53603448,9.71603448 C4.00189655,9.67844828 3.565,9.85448276 3.24948276,10.297931 C3.22017241,10.3394828 3.18603448,10.3496552 3.13862069,10.3494828 C2.70965517,10.3482759 2.28086207,10.347069 1.85206897,10.3503448 C1.77741379,10.3508621 1.76224138,10.33 1.775,10.2591379 C1.99758621,9.02189655 2.21810345,7.78431034 2.43913793,6.54672414 C2.46931034,6.37741379 2.50017241,6.20810345 2.52810345,6.03844828 C2.53706897,5.98275862 2.55844828,5.96224138 2.61844828,5.96241379 C4.04275862,5.96431034 5.46689655,5.96431034 6.89103448,5.96241379 C6.95913793,5.96224138 6.97362069,5.98448276 6.97327586,6.04810345 C6.97034483,6.42982759 6.96965517,6.81189655 6.9737931,7.19362069 C6.97448276,7.27137931 6.95465517,7.29275862 6.87568966,7.29241379 C5.85534483,7.28965517 4.835,7.29155172 3.81465517,7.2887931 C3.73,7.28862069 3.69224138,7.30258621 3.67637931,7.39775862 C3.58655172,7.94068966 3.48741379,8.48224138 3.39241379,9.02431034 C3.38844828,9.04724138 3.37224138,9.07844828 3.39706897,9.09362069 C3.42465517,9.11051724 3.44017241,9.07706897 3.45655172,9.0612069 C3.92413793,8.61103448 4.49448276,8.47344828 5.12344828,8.50706897 C5.72844828,8.53931034 6.245,8.76637931 6.67103448,9.19672414 C6.84896552,9.3762069 6.98724138,9.58396552 7.0987931,9.81 C7.11103448,9.83431034 7.12362069,9.8587931 7.14517241,9.90206897 Z M17.0048276,11.0737931 C17.007069,11.0189655 16.997931,10.9382759 16.9877586,10.8575862 C16.8974138,10.1372414 16.2906897,9.67137931 15.572069,9.7662069 C15.1948276,9.8162069 14.8836207,10.0027586 14.5905172,10.2274138 C14.2637931,10.4781034 13.9898276,10.7841379 13.7075862,11.0813793 C13.6696552,11.1212069 13.6865517,11.1422414 13.7143103,11.1732759 C13.9125862,11.3953448 14.1174138,11.6112069 14.3496552,11.7981034 C14.7353448,12.1084483 15.1527586,12.3474138 15.6613793,12.3944828 C16.2341379,12.4477586 16.6982759,12.1796552 16.9031034,11.6605172 C16.9741379,11.4808621 17.0037931,11.2932759 17.0048276,11.0737931 Z M8.44758621,11.1437931 C8.45034483,11.18 8.45344828,11.2394828 8.45862069,11.2984483 C8.50724138,11.8562069 8.87965517,12.2755172 9.41948276,12.3741379 C9.7162069,12.4284483 10.0046552,12.3889655 10.2844828,12.2801724 C10.8818966,12.0472414 11.337069,11.6287931 11.7532759,11.1584483 C11.7837931,11.1239655 11.7687931,11.107069 11.7448276,11.082069 C11.4468966,10.7694828 11.1431034,10.462931 10.7912069,10.2093103 C10.5468966,10.0332759 10.2898276,9.8762069 9.99413793,9.80310345 C9.54396552,9.69172414 9.13396552,9.75568966 8.8137931,10.1222414 C8.56551724,10.4063793 8.44689655,10.7431034 8.44758621,11.1437931 Z",svgCircPath:"M10,0 C4.4771525,0 0,4.47593818 0,10 C0,15.5228475 4.47593818,20 10,20 C15.5228475,20 20,15.5240618 20,10 C20,4.4771525 15.5240618,0 10,0 Z M7.14517241,9.90206897 C7.26551724,9.58448276 7.41413793,9.30758621 7.625,9.06775862 C8.08758621,8.54189655 8.67189655,8.25844828 9.36655172,8.19431034 C10.3455172,8.10396552 11.15,8.48189655 11.8543103,9.12465517 C12.1460345,9.39086207 12.4044828,9.68931034 12.6581034,9.99137931 C12.712069,10.0558621 12.7356897,10.0615517 12.7931034,9.99362069 C13.1196552,9.60568966 13.445,9.21603448 13.8468966,8.90086207 C14.3103448,8.53741379 14.8210345,8.275 15.4134483,8.20568966 C16.8775862,8.03413793 18.1012069,8.83155172 18.4127586,10.3427586 C18.5437931,10.9784483 18.5034483,11.6068966 18.2832759,12.2196552 C17.8762069,13.352069 16.9332759,13.9984483 15.7284483,13.9843103 C14.9944828,13.9756897 14.367931,13.6912069 13.7963793,13.2577586 C13.422931,12.9744828 13.1031034,12.6346552 12.7953448,12.2837931 C12.7436207,12.225 12.7196552,12.2118966 12.6568966,12.277069 C12.3422414,12.6037931 12.0434483,12.9467241 11.6901724,13.2343103 C11.2434483,13.597931 10.7503448,13.8712069 10.172931,13.9496552 C9.15172414,14.0884483 8.26982759,13.8193103 7.58413793,13.0181034 C7.4287931,12.8363793 7.31155172,12.6293103 7.21534483,12.4105172 C7.20327586,12.382931 7.19965517,12.3496552 7.16844828,12.3265517 C7.03396552,12.6167241 6.86741379,12.8839655 6.6487931,13.1162069 C6.09844828,13.7013793 5.41965517,14.0065517 4.61844828,14.0348276 C4.03948276,14.0553448 3.47241379,13.9815517 2.94431034,13.7312069 C2.05965517,13.3118966 1.57310345,12.6139655 1.51275862,11.6282759 C1.50827586,11.5532759 1.52896552,11.5343103 1.60327586,11.5346552 C2.07913793,11.5381034 2.555,11.5381034 3.03068966,11.5346552 C3.10206897,11.5341379 3.12206897,11.5551724 3.13413793,11.625 C3.22568966,12.167931 3.51775862,12.5460345 4.06482759,12.6818966 C4.82827586,12.8713793 5.52965517,12.4381034 5.73017241,11.6522414 C5.86517241,11.1232759 5.80689655,10.6175862 5.4562069,10.177069 C5.22344828,9.88465517 4.90724138,9.74224138 4.53603448,9.71603448 C4.00189655,9.67844828 3.565,9.85448276 3.24948276,10.297931 C3.22017241,10.3394828 3.18603448,10.3496552 3.13862069,10.3494828 C2.70965517,10.3482759 2.28086207,10.347069 1.85206897,10.3503448 C1.77741379,10.3508621 1.76224138,10.33 1.775,10.2591379 C1.99758621,9.02189655 2.21810345,7.78431034 2.43913793,6.54672414 C2.46931034,6.37741379 2.50017241,6.20810345 2.52810345,6.03844828 C2.53706897,5.98275862 2.55844828,5.96224138 2.61844828,5.96241379 C4.04275862,5.96431034 5.46689655,5.96431034 6.89103448,5.96241379 C6.95913793,5.96224138 6.97362069,5.98448276 6.97327586,6.04810345 C6.97034483,6.42982759 6.96965517,6.81189655 6.9737931,7.19362069 C6.97448276,7.27137931 6.95465517,7.29275862 6.87568966,7.29241379 C5.85534483,7.28965517 4.835,7.29155172 3.81465517,7.2887931 C3.73,7.28862069 3.69224138,7.30258621 3.67637931,7.39775862 C3.58655172,7.94068966 3.48741379,8.48224138 3.39241379,9.02431034 C3.38844828,9.04724138 3.37224138,9.07844828 3.39706897,9.09362069 C3.42465517,9.11051724 3.44017241,9.07706897 3.45655172,9.0612069 C3.92413793,8.61103448 4.49448276,8.47344828 5.12344828,8.50706897 C5.72844828,8.53931034 6.245,8.76637931 6.67103448,9.19672414 C6.84896552,9.3762069 6.98724138,9.58396552 7.0987931,9.81 C7.11103448,9.83431034 7.12362069,9.8587931 7.14517241,9.90206897 Z M17.0048276,11.0737931 C17.007069,11.0189655 16.997931,10.9382759 16.9877586,10.8575862 C16.8974138,10.1372414 16.2906897,9.67137931 15.572069,9.7662069 C15.1948276,9.8162069 14.8836207,10.0027586 14.5905172,10.2274138 C14.2637931,10.4781034 13.9898276,10.7841379 13.7075862,11.0813793 C13.6696552,11.1212069 13.6865517,11.1422414 13.7143103,11.1732759 C13.9125862,11.3953448 14.1174138,11.6112069 14.3496552,11.7981034 C14.7353448,12.1084483 15.1527586,12.3474138 15.6613793,12.3944828 C16.2341379,12.4477586 16.6982759,12.1796552 16.9031034,11.6605172 C16.9741379,11.4808621 17.0037931,11.2932759 17.0048276,11.0737931 Z M8.44758621,11.1437931 C8.45034483,11.18 8.45344828,11.2394828 8.45862069,11.2984483 C8.50724138,11.8562069 8.87965517,12.2755172 9.41948276,12.3741379 C9.7162069,12.4284483 10.0046552,12.3889655 10.2844828,12.2801724 C10.8818966,12.0472414 11.337069,11.6287931 11.7532759,11.1584483 C11.7837931,11.1239655 11.7687931,11.107069 11.7448276,11.082069 C11.4468966,10.7694828 11.1431034,10.462931 10.7912069,10.2093103 C10.5468966,10.0332759 10.2898276,9.8762069 9.99413793,9.80310345 C9.54396552,9.69172414 9.13396552,9.75568966 8.8137931,10.1222414 C8.56551724,10.4063793 8.44689655,10.7431034 8.44758621,11.1437931 Z"},"[behance]":{filename:"behance@2x.png",width:20,height:20,bgRectRadius:3,bgCircRadius:10,svgStdPath:"M10.485,12.191 C10.485,15.326 7.287,15.223 7.287,15.223 L4.356,15.223 L4.27,15.223 L2.048,15.223 L2.048,4.95 L4.27,4.95 L4.356,4.95 L7.287,4.95 C8.879,4.95 10.135,5.847 10.135,7.685 C10.135,9.523 8.599,9.64 8.599,9.64 C10.624,9.64 10.485,12.191 10.485,12.191 z M12.584,5.555 L16.738,5.555 L16.738,6.82 L12.584,6.82 L12.584,5.555 L12.584,5.555 z M18.255,12.023 L13.038,12.023 C13.038,13.931 14.809,13.811 14.809,13.811 C16.482,13.811 16.424,12.705 16.424,12.705 L18.196,12.705 C18.196,15.639 14.75,15.438 14.75,15.438 C10.616,15.438 10.883,11.51 10.883,11.51 C10.883,11.51 10.879,7.564 14.75,7.564 C18.825,7.564 18.255,12.023 18.255,12.023 z M14.885,9.175 C13.354,9.175 13.141,10.767 13.141,10.767 L16.397,10.767 C16.397,10.767 16.418,9.175 14.885,9.175 z M7.496,10.767 L4.609,10.767 L4.609,13.527 L7.165,13.527 C7.209,13.527 7.274,13.528 7.35,13.527 C7.761,13.517 8.541,13.392 8.541,12.185 C8.541,10.752 7.496,10.767 7.496,10.767 z M8.198,7.945 C8.198,6.871 7.496,6.871 7.496,6.871 L7.125,6.871 L4.609,6.871 L4.609,9.175 L7.317,9.175 C7.784,9.175 8.198,9.018 8.198,7.945 z",svgRectPath:"M1.99079514,0 C0.891309342,0 0,0.898212381 0,1.99079514 L0,18.0092049 C0,19.1086907 0.898212381,20 1.99079514,20 L18.0092049,20 C19.1086907,20 20,19.1017876 20,18.0092049 L20,1.99079514 C20,0.891309342 19.1017876,0 18.0092049,0 L1.99079514,0 Z M10.484622,12.1908776 C10.484622,15.3263776 7.287372,15.2228776 7.287372,15.2228776 L4.356192,15.2228776 L4.270442,15.2228776 L2.048292,15.2228776 L2.048292,4.94987755 L4.270442,4.94987755 L4.356192,4.94987755 L7.287372,4.94987755 C8.878892,4.94987755 10.135252,5.84687755 10.135252,7.68487755 C10.135252,9.52287755 8.599102,9.63987755 8.599102,9.63987755 C10.624272,9.63987755 10.484622,12.1908776 10.484622,12.1908776 Z M12.584272,5.55487755 L16.738002,5.55487755 L16.738002,6.81987755 L12.584272,6.81987755 L12.584272,5.55487755 L12.584272,5.55487755 Z M18.255042,12.0228776 L13.038012,12.0228776 C13.038012,13.9308776 14.809362,13.8108776 14.809362,13.8108776 C16.482222,13.8108776 16.423912,12.7053776 16.423912,12.7053776 L18.196242,12.7053776 C18.196242,15.6388776 14.750072,15.4378776 14.750072,15.4378776 C10.616432,15.4378776 10.882502,11.5103776 10.882502,11.5103776 C10.882502,11.5103776 10.878582,7.56387755 14.750072,7.56387755 C18.825402,7.56387755 18.255042,12.0228776 18.255042,12.0228776 Z M14.8853775,9.17470139 C13.3535087,9.17470139 13.1406686,10.7667184 13.1406686,10.7667184 L16.3974586,10.7667184 C16.3974586,10.7667184 16.4182117,9.17470139 14.8853775,9.17470139 Z M7.49630612,10.7667184 L4.60921107,10.7667184 L4.60921107,13.5266165 L7.16522166,13.5266165 C7.2086584,13.5266165 7.2738135,13.5276216 7.35006911,13.5266165 C7.76127021,13.5165659 8.5407183,13.3919383 8.5407183,12.1848598 C8.5407183,10.752145 7.49630612,10.7667184 7.49630612,10.7667184 Z M8.19756809,7.94500898 C8.19756809,6.87110106 7.49630612,6.87110106 7.49630612,6.87110106 L7.12468071,6.87110106 L4.60921107,6.87110106 L4.60921107,9.17470139 L7.31725024,9.17470139 C7.78443647,9.17470139 8.19756809,9.01841437 8.19756809,7.94500898 Z",svgCircPath:"M10,0 C4.4771525,0 0,4.47593818 0,10 C0,15.5228475 4.47593818,20 10,20 C15.5228475,20 20,15.5240618 20,10 C20,4.4771525 15.5240618,0 10,0 Z M10.4240442,12.4717898 C10.4240442,15.2937398 7.6264505,15.2005898 7.6264505,15.2005898 L5.061668,15.2005898 L4.98663675,15.2005898 L3.0422555,15.2005898 L3.0422555,5.9548898 L4.98663675,5.9548898 L5.061668,5.9548898 L7.6264505,5.9548898 C9.0190305,5.9548898 10.1183455,6.7621898 10.1183455,8.4163898 C10.1183455,10.0705898 8.77421425,10.1758898 8.77421425,10.1758898 C10.546238,10.1758898 10.4240442,12.4717898 10.4240442,12.4717898 Z M12.261238,6.4993898 L15.8957518,6.4993898 L15.8957518,7.6378898 L12.261238,7.6378898 L12.261238,6.4993898 L12.261238,6.4993898 Z M17.2231618,12.3205898 L12.6582605,12.3205898 C12.6582605,14.0377898 14.2081918,13.9297898 14.2081918,13.9297898 C15.6719443,13.9297898 15.620923,12.9348398 15.620923,12.9348398 L17.1717118,12.9348398 C17.1717118,15.5749898 14.156313,15.3940898 14.156313,15.3940898 C10.539378,15.3940898 10.7721893,11.8593398 10.7721893,11.8593398 C10.7721893,11.8593398 10.7687593,8.3074898 14.156313,8.3074898 C17.7222268,8.3074898 17.2231618,12.3205898 17.2231618,12.3205898 Z M14.2747053,9.75723125 C12.9343201,9.75723125 12.7480851,11.1900465 12.7480851,11.1900465 L15.5977763,11.1900465 C15.5977763,11.1900465 15.6159352,9.75723125 14.2747053,9.75723125 Z M7.80926785,11.1900465 L5.28305968,11.1900465 L5.28305968,13.6739548 L7.51956896,13.6739548 C7.5575761,13.6739548 7.61458682,13.6748594 7.68131047,13.6739548 C8.04111143,13.6649093 8.72312852,13.5527445 8.72312852,12.4663738 C8.72312852,11.1769305 7.80926785,11.1900465 7.80926785,11.1900465 Z M8.42287208,8.65050808 C8.42287208,7.68399096 7.80926785,7.68399096 7.80926785,7.68399096 L7.48409562,7.68399096 L5.28305968,7.68399096 L5.28305968,9.75723125 L7.65259396,9.75723125 C8.06138191,9.75723125 8.42287208,9.61657293 8.42287208,8.65050808 Z"},"[blogger]":{filename:"blogger@2x.png",width:20,height:20,bgRectRadius:3,bgCircRadius:10,svgStdPath:"M16.509,12.704 C16.497,14.991 14.635,16.864 12.344,16.864 L7.559,16.864 C5.267,16.864 3.395,14.991 3.395,12.704 L3.395,7.844 C3.395,5.551 5.267,3.674 7.559,3.674 L10.471,3.674 C11.547,3.803 13.111,4.723 13.689,5.949 C13.847,6.292 13.931,6.345 14.062,7.365 C14.134,7.889 14.17,8.276 14.404,8.491 C14.733,8.792 15.958,8.59 16.2,8.778 L16.386,8.924 L16.497,9.153 L16.535,9.337 L16.509,12.704 z M12.304,11.851 L7.611,11.851 C7.171,11.851 6.814,12.204 6.814,12.642 C6.814,13.073 7.171,13.436 7.611,13.436 L12.304,13.436 C12.743,13.436 13.097,13.073 13.097,12.642 C13.097,12.204 12.743,11.851 12.304,11.851 z M7.611,8.674 L9.921,8.674 C10.361,8.674 10.719,8.311 10.719,7.876 C10.719,7.439 10.361,7.08 9.921,7.08