(()=>{var $i=Object.create;var he=Object.defineProperty;var qi=Object.getOwnPropertyDescriptor;var Di=Object.getOwnPropertyNames;var _i=Object.getPrototypeOf,Fi=Object.prototype.hasOwnProperty;var Bi=t=>he(t,"__esModule",{value:!0});var Ni=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ze=(t,e)=>{for(var n in e)he(t,n,{get:e[n],enumerable:!0})},Wi=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Di(e))!Fi.call(t,r)&&(n||r!=="default")&&he(t,r,{get:()=>e[r],enumerable:!(o=qi(e,r))||o.enumerable});return t},Vi=(t,e)=>Wi(Bi(he(t!=null?$i(_i(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var To=Ni(()=>{Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function t(){var e=isNaN(arguments[0])?1:Number(arguments[0]);return e?Array.prototype.reduce.call(this,function(n,o){return Array.isArray(o)?n.push.apply(n,t.call(o,e-1)):n.push(o),n},[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(t){return Array.prototype.map.apply(this,arguments).flat()},writable:!0})});var Ln={};Ze(Ln,{attach:()=>S,debug:()=>Kt,defineRivetArchetype:()=>st,drive:()=>te,registerAction:()=>wt,registerBehavior:()=>xt,registerEvent:()=>G,registerInnate:()=>Xt,registerMacro:()=>kn,registerObserver:()=>nt,store:()=>K,util:()=>b});var b={};Ze(b,{NON_PASSIVE_ARGS:()=>Wt,PASSIVE_ARGS:()=>W,SCROLLBAR_ACTIVE_VAR_NAME:()=>Qt,SCROLLBAR_ACTIVE_VAR_STRING:()=>yn,SCROLLBAR_VAR_NAME:()=>gn,SCROLLBAR_VAR_STRING:()=>Ks,absVector:()=>es,addClass:()=>xs,addVectors:()=>Xi,animateToElement:()=>ta,animateTopOffset:()=>Xs,appendHtmlString:()=>As,balanceFromDifference:()=>as,ceil:()=>Yi,clamp:()=>_t,clampVector:()=>Ki,debounce:()=>At,defer:()=>cs,dispatch:()=>qs,distanceInRange:()=>Xe,divideVectors:()=>is,doOnce:()=>Nt,elementAttributes:()=>Ct,elementIndex:()=>Ts,elementIsVisibleInViewport:()=>Po,elementMeta:()=>ln,ensureNumber:()=>tt,ensureString:()=>Dt,evaluateCondition:()=>fa,expandElementValue:()=>yt,farthest:()=>Cs,floor:()=>ji,fontCompress:()=>Gs,forceOpaque:()=>ra,getCachedAttribute:()=>kt,getCachedJsonAttribute:()=>_s,getDurations:()=>an,getEasing:()=>mt,getJsonAttrContent:()=>on,getOuterHeight:()=>Ls,getPrecisionLength:()=>Qi,getPrecisionLengthWithCommas:()=>Ji,getStateValue:()=>Ro,getTransitionDuration:()=>Ps,getTransitionTimingMS:()=>Os,hasClass:()=>Bt,intersect:()=>Zs,isMobile:()=>pn,isScalar:()=>Gi,lerp:()=>ss,listener:()=>et,listenerPassive:()=>D,lockMotion:()=>Ho,makeAlternatingSynchronizer:()=>Is,makeDirectionalEasing:()=>ws,makeElementWeakMap:()=>Gt,makeFindClosest:()=>sn,makeGetComputedFloatValues:()=>Vs,makeGetComputedStyle:()=>Ws,makeGetComputedStyles:()=>dn,makeMotionLockedUpdate:()=>zo,makeRafLoop:()=>we,makeSortByKey:()=>Ui,makeStateSynchronizer:()=>xo,makeTreeWalker:()=>ye,memoize:()=>en,multiplyVectors:()=>rs,normalizeCondition:()=>xn,normalizeTeardown:()=>Vt,offsetFromTop:()=>ve,onLoad:()=>V,onPageVisibilityChange:()=>cn,onPercentScrolled:()=>Bs,onResize:()=>Ut,onResizeOrScan:()=>lt,onScan:()=>xe,onScanLazy:()=>Ns,onScroll:()=>Yt,onScrollOrResize:()=>Co,onScrollRaw:()=>un,onViewportChange:()=>ko,once:()=>Eo,oncePassive:()=>Et,parseHTML:()=>rn,parseTime:()=>gt,removeClass:()=>bs,rivetDispatch:()=>$s,rivetListener:()=>Rs,round:()=>ho,roundVector:()=>ns,runAnimation:()=>ia,scrollOffset:()=>ks,scrollingDisable:()=>ea,scrollingEnable:()=>na,setRootVar:()=>Jt,siblings:()=>wo,subtractVectors:()=>os,teardown:()=>U,throttle:()=>tn,toggleClass:()=>Ss,transitionEnd:()=>Ds,triggerScan:()=>Fs,tween:()=>zs,unwrapHtmlTemplate:()=>Es,updateStateKey:()=>la,vectorsEq:()=>ts,watchElementIsVisible:()=>oa,waypoint:()=>Ys,wrapNumber:()=>Ke,wrapVector:()=>Zi});function tt(t){if(typeof t=="function")return tt(t());if(typeof t=="number")return t;let e=Number.parseFloat(t);return Number.isNaN(e)?0:e}var Dt=t=>typeof t=="function"?Dt(t()):typeof t=="string"?t:"";function Gi(t){var e=typeof t;return e==="string"||e==="number"||e==="boolean"||e==="symbol"||t==null||t instanceof Symbol||t instanceof String||t instanceof Number||t instanceof Boolean}var Ui=t=>(e,n)=>e[t]-n[t];var Yi=(t,e=100)=>Math.ceil(t*e)/e,ji=(t,e=100)=>Math.floor(t*e)/e,ho=(t,e=100)=>Math.round((t+Number.EPSILON)*e)/e,Qi=t=>{var e,n;return(n=(e=t.toString().split(/\./)[1])==null?void 0:e.length)!=null?n:0},Ji=t=>{var e,n;return(n=(e=t.toString().split(/,/)[1])==null?void 0:e.length)!=null?n:0},Ke=(t,e)=>(e+t)%e,Zi=([t,e],[n,o])=>[Ke(t,n),Ke([e,o])],_t=(t,e,n)=>Math.min(Math.max(t,e),n),Ki=([t,e],n,o)=>[_t(t,n,o),_t(e,n,o)],Xi=([t,e],[n,o])=>[t+n,e+o],ts=([t,e],[n,o])=>t===n&&e===o,es=t=>t.map(Math.abs),ns=(t,e)=>t.map(n=>ho(n,e)),os=([t,e],[n,o])=>[t-n,e-o],rs=([t,e],[n,o])=>[t*n,e*o],is=([t,e],[n,o])=>[t/n,e/o],Xe=(t,e,n)=>(t-e+n)%n,ss=(t,e,n)=>t+n*(e-t),as=(t,e,n)=>{let o=Xe(t,e,n),r=Xe(e,t,n);return o===r?0:o>r?-1:1};function cs(t){return setTimeout(t,0)}function tn(t,e,n={}){var o=!0,r=!0;return o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r,At(t,e,{leading:o,maxWait:e,trailing:r})}function At(t,e=0,n={}){var o,r,i,s,a,c,u=0,d=!1,f=!1,p=!0;d=!!n.leading,f="maxWait"in n,i=f?Math.max(n.maxWait||0,e):i,p="trailing"in n?!!n.trailing:p;function l(x){var A=o,z=r;return o=r=void 0,u=x,s=t.apply(z,A),s}function h(x){return u=x,a=setTimeout(y,e),d?l(x):s}function m(x){var A=x-c,z=x-u,I=e-A;return f?Math.min(I,i-z):I}function g(x){var A=x-c,z=x-u;return c===void 0||A>=e||A<0||f&&z>=i}function y(){var x=window.Date.now();if(g(x))return v(x);a=setTimeout(y,m(x))}function v(x){return a=void 0,p&&o?l(x):(o=r=void 0,s)}function w(){a!==void 0&&clearTimeout(a),u=0,o=c=r=a=void 0}function T(){return a===void 0?s:v(window.Date.now())}function C(){var x=window.Date.now(),A=g(x);if(o=arguments,r=this,c=x,A){if(a===void 0)return h(c),()=>void w();if(f)return clearTimeout(a),a=setTimeout(y,e),l(c),()=>void w()}return a===void 0&&(a=setTimeout(y,e)),()=>void w()}return C.cancel=w,C.flush=T,C}function en(t,e){let n=new Map;return function(...o){let r=e?e.apply(this,o):o[0];if(n.has(r))return n.get(r);let i=t.apply(this,o);return n.set(r,i),i}}var ls=4,us=.001,fs=1e-7,ds=10,Ft=11,me=1/(Ft-1),ps=typeof Float32Array=="function";function mo(t,e){return 1-3*e+3*t}function go(t,e){return 3*e-6*t}function yo(t){return 3*t}function ge(t,e,n){return((mo(e,n)*t+go(e,n))*t+yo(e))*t}function vo(t,e,n){return 3*mo(e,n)*t*t+2*go(e,n)*t+yo(e)}function hs(t,e,n,o,r){var i,s,a=0;do s=e+(n-e)/2,i=ge(s,o,r)-t,i>0?n=s:e=s;while(Math.abs(i)>fs&&++a<ds);return s}function ms(t,e,n,o){for(var r=0;r<ls;++r){var i=vo(e,n,o);if(i===0)return e;var s=ge(e,n,o)-t;e-=s/i}return e}function gs(t){return t}function nn(t,e,n,o){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===o)return gs;for(var r=ps?new Float32Array(Ft):new Array(Ft),i=0;i<Ft;++i)r[i]=ge(i*me,t,n);function s(a){for(var c=0,u=1,d=Ft-1;u!==d&&r[u]<=a;++u)c+=me;--u;var f=(a-r[u])/(r[u+1]-r[u]),p=c+f*me,l=vo(p,t,n);return l>=us?ms(a,p,t,n):l===0?p:hs(a,c,c+me,t,n)}return function(c){return c===0||c===1?c:ge(s(c),e,o)}}var ys=t=>{switch(t){case"linear":return"cubic-bezier(0.0, 0.0, 1.0, 1.0)";case"ease-in":return"cubic-bezier(0.42, 0, 1.0, 1.0)";case"ease-out":return"cubic-bezier(0, 0, 0.58, 1.0)";case"ease-in-out":return"cubic-bezier(0.42, 0, 0.58, 1.0)";case"ease":default:return"cubic-bezier(0.25, 0.1, 0.25, 1.0)"}},L=en(t=>{let e=ys(t);try{let[,n]=e.match(/cubic-bezier\((.*)\)/);return nn(...n.split(",").map(o=>Number(o.trim())))}catch{console.warn("unable to parse easing function",e)}return L("ease")}),vs={easeInQuad:L("cubic-bezier(0.550, 0.085, 0.680, 0.530)"),easeInCubic:L("cubic-bezier(0.550, 0.055, 0.675, 0.190)"),easeInQuart:L("cubic-bezier(0.895, 0.030, 0.685, 0.220)"),easeInQuint:L("cubic-bezier(0.755, 0.050, 0.855, 0.060)"),easeInSine:L("cubic-bezier(0.470, 0.000, 0.745, 0.715)"),easeInExpo:L("cubic-bezier(0.950, 0.050, 0.795, 0.035)"),easeInCirc:L("cubic-bezier(0.600, 0.040, 0.980, 0.335)"),easeInBack:L("cubic-bezier(0.600, -0.280, 0.735, 0.045)"),easeOutQuad:L("cubic-bezier(0.250, 0.460, 0.450, 0.940)"),easeOutCubic:L("cubic-bezier(0.215, 0.610, 0.355, 1.000)"),easeOutQuart:L("cubic-bezier(0.165, 0.840, 0.440, 1.000)"),easeOutQuint:L("cubic-bezier(0.230, 1.000, 0.320, 1.000)"),easeOutSine:L("cubic-bezier(0.390, 0.575, 0.565, 1.000)"),easeOutExpo:L("cubic-bezier(0.190, 1.000, 0.220, 1.000)"),easeOutCirc:L("cubic-bezier(0.075, 0.820, 0.165, 1.000)"),easeOutBack:L("cubic-bezier(0.175, 0.885, 0.320, 1.275)"),easeInOutQuad:L("cubic-bezier(0.455, 0.030, 0.515, 0.955)"),easeInOutCubic:L("cubic-bezier(0.645, 0.045, 0.355, 1.000)"),easeInOutQuart:L("cubic-bezier(0.770, 0.000, 0.175, 1.000)"),easeInOutQuint:L("cubic-bezier(0.860, 0.000, 0.070, 1.000)"),easeInOutSine:L("cubic-bezier(0.445, 0.050, 0.550, 0.950)"),easeInOutExpo:L("cubic-bezier(1.000, 0.000, 0.000, 1.000)"),easeInOutCirc:L("cubic-bezier(0.785, 0.135, 0.150, 0.860)"),easeInOutBack:L("cubic-bezier(0.680, -0.550, 0.265, 1.550)"),materialStand:L("cubic-bezier(0.400, 0.000, 0.200, 1.000)"),materialDecel:L("cubic-bezier(0.000, 0.000, 0.200, 1.000)"),materialAccel:L("cubic-bezier(0.400, 0.000, 1.000, 1.000)"),materialSharp:L("cubic-bezier(0.400, 0.000, 0.600, 1.000)")};function mt(t){return vs[t]||L(t)}var ws=t=>{let e=mt(t);return n=>{let o=(-1*n+1)/2,r=Math.min(1,Math.max(0,o));return(e(r)-.5)*2}};var Bt=(t,e)=>{var n;return(n=t==null?void 0:t.classList)==null?void 0:n.contains(e)},xs=(t,e)=>{var n;return(n=t==null?void 0:t.classList)==null?void 0:n.add(e)},bs=(t,e)=>{var n;return(n=t==null?void 0:t.classList)==null?void 0:n.remove(e)},Ss=(t,e,n)=>{var o;return(o=t==null?void 0:t.classList)==null?void 0:o.toggle(e,n)};function Ts(t){if(!t)return-1;for(var e=0;t=t.previousElementSibling;)e++;return e}function on(t,e){let n=t.getAttribute(e);if(n===null)return{};if(typeof n=="string")try{return JSON.parse(n)}catch{try{return JSON.parse(n.replace(/&quot;/g,'"'))}catch{}}return n}var rn=t=>{let e=document.implementation.createHTMLDocument("");return e.body.innerHTML=t,e.body.children},As=(t,e)=>{Array.from(rn(e)).forEach(n=>{t.append(n)})},Es=t=>{Array.from(rn(t.innerHTML)).forEach(e=>{t.insertAdjacentElement("afterend",e)}),t.remove()};function Cs(t,e){let n=t,o;for(;n&&n.parentElement;)n=n.parentElement.closest(e),n&&(o=n);return o}var wo=t=>t&&t.parentElement?Array.from(t.parentElement.children).filter(e=>e!==t):[],ye=(t,e)=>n=>{let o=new Set,r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:()=>NodeFilter.FILTER_ACCEPT});for(;r.nextNode();)if(t(r.currentNode)){if(e)return r.currentNode;o.add(r.currentNode)}return e?null:Array.from(o)},ve=t=>t?t.offsetParent?t.offsetTop+ve(t.offsetParent):t.offsetTop:0,ks=t=>{let e=t.getBoundingClientRect(),{top:n,left:o,height:r}=e;return{top:n+window.scrollY,bottom:n+r+window.scrollY,left:o+window.scrollX}},Ls=t=>{var r;if(!t)return 0;let e=Math.max(t.scrollHeight,t.offsetHeight),n=(r=t.getAttribute("style"))!=null?r:"";t.style.display="block",t.style.position="absolute",t.style.visibility="hidden";let o=Math.max(0,e,t.scrollHeight,t.offsetHeight);return t.setAttribute("style",n),o},sn=t=>{let e=ye(t,!0),n=r=>{let i=r;for(;i;){if(t(i))return i;i=i.parentElement}},o=r=>{let i=r;for(;i;){let s;if(wo(i).find(a=>(s=t(a)?a:e(a),s)),s)return s;i=i.parentElement}};return r=>n(r)||o(r)||null};function Os(t){if(!t)return 0;let n=window.getComputedStyle(t)["transition-duration"]||"";return parseFloat(n.replace("s",""))*1e3}var xo=(t,{pending:e=()=>{},delay:n=10,initialState:o=null}={})=>{let r=o,i=o,s=[],a=!1,c=()=>{r!==i&&(a=!0,e(!0),r=i,t(r,(...d)=>{a=!1,e(!1),s=d,c()},...s))},u=At(d=>{i=d,a||c()},n);return u.reset=()=>{r=!1,i=!1,s=[]},u},Is=(t,e,n,o=!1)=>xo((r,i,s)=>{r?t(()=>void i(e)):e(i),s&&s(i)},{delay:n,initialState:o}),Nt=t=>{let e=!1;return(...n)=>{if(!e)return e=!0,t(...n)}},gt=(t,e=0)=>{if(typeof t=="number")return t;let n=typeof t=="string"?t:"",[,o,r=""]=n.match(/(\d*.?\d+)(\w*)/)||[],i=parseFloat(o);return Number.isNaN(i)?e:r.toLowerCase()==="s"?i*1e3:i};function Ps(t,e){return gt(t&&window.getComputedStyle(t).getPropertyValue("transition-duration"),e)}function an(t){let e=window.getComputedStyle(t);e.getPropertyValue("transition-duration");let n=gt(e.getPropertyValue("transition-duration"),0),o=gt(e.getPropertyValue("transition-delay"),0),r=gt(e.getPropertyValue("animation-duration"),0),i=gt(e.getPropertyValue("animation-delay"),0);return{transitionDuration:n,transitionDelay:o,animationDuration:r,animationDelay:i,transitionTime:n+o,animationTime:r+i}}var we=t=>{let e,n,o=r=>{typeof e=="undefined"&&(e=r);let i=r-e;t(i,r)!==!1&&(n=requestAnimationFrame(o))};return n=requestAnimationFrame(o),()=>void cancelAnimationFrame(n)},Ms=({setup:t=()=>{},update:e=()=>{},complete:n=()=>{},cancel:o=()=>{},duration:r,easing:i})=>{let s=gt(r,500),a=mt(i);t();let c=we(u=>{if(u<s)e(a(u/s));else return e(1),n(),!1});return()=>{o(),c()}},Hs=(t,e,n)=>e===n?n:n>e?e+(n-e)*t:e+(e-n)*(t*-1),bo=t=>Object.keys(t).reduce((e,n)=>(e[n]=parseFloat(t[n]),e),{}),So=(t,{update:e,interpolate:n=Hs,...o})=>{let r=bo(t);return(i={})=>{let s=bo(i);return Ms({update:a=>{e(Object.keys(s).reduce((c,u)=>(c[u]=n(a,r[u],s[u]),c),{}))},...o})}},zs=(t,e)=>{let n=typeof t=="object"?So(t,e):So({from:t},{...e,update:({from:o})=>e.update(o)});return o=>n(typeof o=="object"?o:{from:o})};Promise.resolve().then(()=>Vi(To()));var Ao="rvt",W={passive:!0},Wt={passive:!1};function Rs(t,e,n){return et(t,`${Ao}-${e}`,n)}function $s(t,e){t.dispatchEvent(new CustomEvent(`${Ao}-${e}`))}function qs(t,e,n={},o=!0){t.dispatchEvent(new CustomEvent(e),{bubbles:o,detail:n})}function et(t,e,n,o={}){return t?(typeof o.passive=="undefined"&&(o.passive=!1),t.addEventListener(e,n,o),()=>void t.removeEventListener(e,n,o)):()=>{}}function D(t,e,n){return et(t,e,n,W)}function V(t){let e=()=>void t();return document.readyState==="complete"?(e(),()=>{}):D(document,"readystatechange",function(){document.readyState==="complete"&&setTimeout(e,0)})}function Eo(t,e,n,o=Wt){let r=function(i){t.removeEventListener(e,r),n(i)};return t.addEventListener(e,r,o),()=>void t.removeEventListener(e,r)}function Et(t,e,n){return Eo(t,e,n,W)}var Vt=t=>(Array.isArray(t)?t.map(Vt):[t]).flat().filter(e=>typeof e=="function"),U=t=>{let e=Vt(t);return()=>e.forEach(n=>n())};function Ds(t,e){let o=window.getComputedStyle(t)["transition-duration"];if(o=o?parseFloat(o.replace("s","")):0,o===0){e();return}let r=Nt(e),i=setTimeout(function(){r()},o*1e3+500),s=Et(t,"transitionend",r);return function(){clearTimeout(i),s()}}var cn=(t,e)=>(e&&t(document.visibilityState==="visible"),U([et(window,"pagehide",()=>{t(!1)}),et(window.document,"visibilitychange",()=>{t(document.visibilityState==="visible")})]));function B(t,e){let n,o=null;return function(r){if(n){o=r;return}n=setTimeout(function(){t(o),n=null},e)}}var Gt=(t={})=>{let e,n=()=>{e=new WeakMap},o=c=>e.has(c),r=c=>e.delete(c),i=c=>e.has(c)?e.get(c):t,s=(c,u)=>void e.set(c,u),a=(c,u)=>void s(c,u(i(c)));return n(),{get:i,del:r,set:s,has:o,update:a,reset:n,cache:()=>e}},ln=Gt(),Ct=Gt();function kt(t,e){return Ct.has(t)||Ct.set(t,new Map),Ct.get(t).has(e)||Ct.get(t).set(e,on(t,e)),Ct.get(t).get(e)}function _s(t,e){if(!t)return{};let n=kt(t,e);return typeof n=="object"?n:{}}var Fs=()=>window.dispatchEvent(new CustomEvent("rvt-scan")),xe=t=>et(window,"rvt-scan",()=>t()),Ut=(t,e=!1)=>{e&&t();let n=B(t,100);return U([D(window,"resize",n,W),et(screen.orientation,"change",n)])},Yt=(t,e=!1)=>{e&&t();let n=B(t,40);return D(window,"scroll",n)},un=(t,e=!1)=>(e&&t(),D(window,"scroll",t)),Co=(t,e=!1)=>U([Yt(t,e),lt(t,e)]),lt=(t,e)=>U([xe(t),Ut(t,e)]),ko=(t,e)=>U([xe(t),V(t),cn(t,!1),Ut(t,e)]),Bs=(t,e,n=!1)=>{let o,r,i=Co(()=>{let s=document.body.offsetHeight,c=1-(s-(window.scrollY+window.innerHeight))/s>=t;c!==r&&(e(c),c&&n&&(o=!0,i()),r=c)},!0);return()=>{o||i()}},Ns=(t,{throttle:e=50}={})=>{let n,r=tn(()=>{n=requestAnimationFrame(()=>void t())},e,{trailing:!0}),i=At(r,450);return[V(i),Ut(i),xe(r),()=>cancelAnimationFrame(n)]},fn,Lo;ko(()=>{fn=new WeakMap,Lo=new WeakMap},!0);Yt(()=>{Lo=new WeakMap},!0);var Oo=t=>{let e=fn.get(t);return e||(e=new WeakMap,fn.set(t,e)),e};function dn(t,e){let n=function(o){let r=Oo(n).get(o);if(!r){let i=getComputedStyle(o);r=t.reduce((s,a)=>(s[a]=typeof e=="function"?e(i[a],a):i[a],s),{}),Oo(n).set(o,r)}return r};return n}function Ws(t){let e=dn([t]);return n=>e(n)[t]}function Vs(t){return dn(t,e=>parseFloat(e))}function Gs(t,{c:e=1,min:n=Number.NEGATIVE_INFINITY,max:o=Number.POSITIVE_INFINITY}){let r=tt(n),i=tt(o);return Ut(()=>{let s=_t(parseFloat(getComputedStyle(t,null).width)/(e*10),r,i);t.style.setProperty("font-size",`${s}px`)},!0)}var Us="ontouchstart"in document.documentElement;function pn(){return window.innerWidth<=978.98&&Us}var Io=0,Lt={};function E(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+Io,this.options=E.Adapter.extend({},E.defaults,t),this.element=this.options.element,this.adapter=new E.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=E.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=E.Context.findOrCreateByElement(this.options.context),E.offsetAliases[this.options.offset]&&(this.options.offset=E.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),Lt[this.key]=this,Io+=1}E.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)};E.prototype.trigger=function(t){!this.enabled||this.callback&&this.callback.apply(this,t)};E.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete Lt[this.key]};E.prototype.disable=function(){return this.enabled=!1,this};E.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this};E.prototype.next=function(){return this.group.next(this)};E.prototype.previous=function(){return this.group.previous(this)};E.invokeAll=function(t){var e=[];for(var n in Lt)e.push(Lt[n]);for(var o=0,r=e.length;o<r;o++)e[o][t]()};E.destroyAll=function(){E.invokeAll("destroy")};E.disableAll=function(){E.invokeAll("disable")};E.enableAll=function(){E.Context.refreshAll();for(var t in Lt)Lt[t].enabled=!0;return this};E.refreshAll=function(){E.Context.refreshAll()};E.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight};E.viewportWidth=function(){return document.documentElement.clientWidth};E.adapters=[];E.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0};E.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}};(function(){"use strict";var t=0,e={},n=window.onload;function o(r){this.element=r,this.Adapter=E.Adapter,this.adapter=new this.Adapter(r),this.key="waypoint-context-"+t,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},r.waypointContextKey=this.key,e[r.waypointContextKey]=this,t+=1,E.windowContext||(E.windowContext=!0,E.windowContext=new o(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}o.prototype.add=function(r){var i=r.options.horizontal?"horizontal":"vertical";this.waypoints[i][r.key]=r,this.refresh()},o.prototype.checkEmpty=function(){var r=this.Adapter.isEmptyObject(this.waypoints.horizontal),i=this.Adapter.isEmptyObject(this.waypoints.vertical),s=this.element==this.element.window;r&&i&&!s&&(this.adapter.off(".waypoints"),delete e[this.key])},o.prototype.createThrottledResizeHandler=function(){var r=this;function i(){r.handleResize(),r.didResize=!1}this.adapter.on("resize.waypoints",function(){r.didResize||(r.didResize=!0,requestAnimationFrame(i))})},o.prototype.createThrottledScrollHandler=function(){var r=this;function i(){r.handleScroll(),r.didScroll=!1}this.adapter.on("scroll.waypoints",function(){(!r.didScroll||E.isTouch)&&(r.didScroll=!0,requestAnimationFrame(i))})},o.prototype.handleResize=function(){E.Context.refreshAll()},o.prototype.handleScroll=function(){var r={},i={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var s in i){var a=i[s],c=a.newScroll>a.oldScroll,u=c?a.forward:a.backward;for(var d in this.waypoints[s]){var f=this.waypoints[s][d];if(f.triggerPoint!==null){var p=a.oldScroll<f.triggerPoint,l=a.newScroll>=f.triggerPoint,h=p&&l,m=!p&&!l;(h||m)&&(f.queueTrigger(u),r[f.group.id]=f.group)}}}for(var g in r)r[g].flushTriggers();this.oldScroll={x:i.horizontal.newScroll,y:i.vertical.newScroll}},o.prototype.innerHeight=function(){return this.element==this.element.window?E.viewportHeight():this.adapter.innerHeight()},o.prototype.remove=function(r){delete this.waypoints[r.axis][r.key],this.checkEmpty()},o.prototype.innerWidth=function(){return this.element==this.element.window?E.viewportWidth():this.adapter.innerWidth()},o.prototype.destroy=function(){var r=[];for(var i in this.waypoints)for(var s in this.waypoints[i])r.push(this.waypoints[i][s]);for(var a=0,c=r.length;a<c;a++)r[a].destroy()},o.prototype.refresh=function(){var r=this.element==this.element.window,i=r?void 0:this.adapter.offset(),s={},a;this.handleScroll(),a={horizontal:{contextOffset:r?0:i.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:i.top,contextScroll:r?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var c in a){var u=a[c];for(var d in this.waypoints[c]){var f=this.waypoints[c][d],p=f.options.offset,l=f.triggerPoint,h=0,m=l==null,g,y,v,w,T;f.element!==f.element.window&&(h=f.adapter.offset()[u.offsetProp]),typeof p=="function"?p=p.apply(f):typeof p=="string"&&(p=parseFloat(p),f.options.offset.indexOf("%")>-1&&(p=Math.ceil(u.contextDimension*p/100))),g=u.contextScroll-u.contextOffset,f.triggerPoint=Math.floor(h+g-p),y=l<u.oldScroll,v=f.triggerPoint>=u.oldScroll,w=y&&v,T=!y&&!v,!m&&w?(f.queueTrigger(u.backward),s[f.group.id]=f.group):(!m&&T||m&&u.oldScroll>=f.triggerPoint)&&(f.queueTrigger(u.forward),s[f.group.id]=f.group)}}return requestAnimationFrame(function(){for(var C in s)s[C].flushTriggers()}),this},o.findOrCreateByElement=function(r){return o.findByElement(r)||new o(r)},o.refreshAll=function(){for(var r in e)e[r].refresh()},o.findByElement=function(r){return e[r.waypointContextKey]},window.onload=function(){n&&n(),o.refreshAll()},E.Context=o})();(function(){"use strict";function t(r,i){return r.triggerPoint-i.triggerPoint}function e(r,i){return i.triggerPoint-r.triggerPoint}var n={vertical:{},horizontal:{}};function o(r){this.name=r.name,this.axis=r.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}o.prototype.add=function(r){this.waypoints.push(r)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var r in this.triggerQueues){var i=this.triggerQueues[r],s=r==="up"||r==="left";i.sort(s?e:t);for(var a=0,c=i.length;a<c;a+=1){var u=i[a];(u.options.continuous||a===i.length-1)&&u.trigger([r])}}this.clearTriggerQueues()},o.prototype.next=function(r){this.waypoints.sort(t);var i=E.Adapter.inArray(r,this.waypoints),s=i===this.waypoints.length-1;return s?null:this.waypoints[i+1]},o.prototype.previous=function(r){this.waypoints.sort(t);var i=E.Adapter.inArray(r,this.waypoints);return i?this.waypoints[i-1]:null},o.prototype.queueTrigger=function(r,i){this.triggerQueues[i].push(r)},o.prototype.remove=function(r){var i=E.Adapter.inArray(r,this.waypoints);i>-1&&this.waypoints.splice(i,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(r){return n[r.axis][r.name]||new o(r)},E.Group=o})();(function(){"use strict";function t(o){return o===o.window}function e(o){return t(o)?o:o.defaultView}function n(o){this.element=o,this.handlers={}}n.prototype.innerHeight=function(){var o=t(this.element);return o?this.element.innerHeight:this.element.clientHeight},n.prototype.innerWidth=function(){var o=t(this.element);return o?this.element.innerWidth:this.element.clientWidth},n.prototype.off=function(o,r){function i(p,l,h){for(var m=0,g=l.length-1;m<g;m++){var y=l[m];(!h||h===y)&&p.removeEventListener(y)}}var s=o.split("."),a=s[0],c=s[1],u=this.element;if(c&&this.handlers[c]&&a)i(u,this.handlers[c][a],r),this.handlers[c][a]=[];else if(a)for(var d in this.handlers)i(u,this.handlers[d][a]||[],r),this.handlers[d][a]=[];else if(c&&this.handlers[c]){for(var f in this.handlers[c])i(u,this.handlers[c][f],r);this.handlers[c]={}}},n.prototype.offset=function(){if(!this.element.ownerDocument)return null;var o=this.element.ownerDocument.documentElement,r=e(this.element.ownerDocument),i={top:0,left:0};return this.element.getBoundingClientRect&&(i=this.element.getBoundingClientRect()),{top:i.top+r.pageYOffset-o.clientTop,left:i.left+r.pageXOffset-o.clientLeft}},n.prototype.on=function(o,r){var i=o.split("."),s=i[0],a=i[1]||"__default",c=this.handlers[a]=this.handlers[a]||{},u=c[s]=c[s]||[];u.push(r),this.element.addEventListener(s,r)},n.prototype.outerHeight=function(o){var r=this.innerHeight(),i;return o&&!t(this.element)&&(i=window.getComputedStyle(this.element),r+=parseInt(i.marginTop,10),r+=parseInt(i.marginBottom,10)),r},n.prototype.outerWidth=function(o){var r=this.innerWidth(),i;return o&&!t(this.element)&&(i=window.getComputedStyle(this.element),r+=parseInt(i.marginLeft,10),r+=parseInt(i.marginRight,10)),r},n.prototype.scrollLeft=function(){var o=e(this.element);return o?o.pageXOffset:this.element.scrollLeft},n.prototype.scrollTop=function(){var o=e(this.element);return o?o.pageYOffset:this.element.scrollTop},n.extend=function(){var o=Array.prototype.slice.call(arguments);function r(a,c){if(typeof a=="object"&&typeof c=="object")for(var u in c)c.hasOwnProperty(u)&&(a[u]=c[u]);return a}for(var i=1,s=o.length;i<s;i++)r(o[0],o[i]);return o[0]},n.inArray=function(o,r,i){return r==null?-1:r.indexOf(o,i)},n.isEmptyObject=function(o){for(var r in o)return!1;return!0},E.adapters.push({name:"noframework",Adapter:n}),E.Adapter=n})();var hn=E;D(window,"rvt-scan",hn.Context.refreshAll);function Ys(t,e,n,o=!0){let r=new hn({element:t,handler:(...s)=>{e(...s),o&&i()},offset:n}),i=()=>r&&void r.destroy();return i}var jt=new Map,js=({threshold:t=.5,top:e="0px",bottom:n="0px"}={})=>{let o=Number.parseFloat(t);return{key:`${e}:${n}:${o}`,options:{root:null,rootMargin:`${e} 0px ${n} 0px`,_threshold:o}}},Qs=(t,e)=>new IntersectionObserver((n,o)=>{let{subscribers:r}=jt.get(t);n.forEach(i=>{let s=r.get(i.target);if(s)for(let a of s.values())a(i)})},e),Js=t=>{let{key:e,options:n}=js(t);return jt.has(e)||jt.set(e,{observer:Qs(e,n),subscribers:new Map,key:e}),jt.get(e)},Zs=(t,e,n)=>{if(typeof window.IntersectionObserver=="undefined")return function(){};let{observer:o,subscribers:r,key:i}=Js(n);return r.has(t)||(r.set(t,new Set),o.observe(t)),r.get(t).add(e),()=>{r.get(t).delete(e),r.get(t).size<=0&&(r.delete(t),o.unobserve(t)),r.size<=0&&(o.disconnect(),jt.delete(i))}};var mn=0,gn="--x-body-scroll-bar-size",Ks=`var(${gn}, 0)`,Qt="--x-body-scroll-active-bar-size",yn=`var(${Qt}, 0)`,Xs=(t=0,e=850,n=null,o=()=>{},r=window)=>{let i=typeof t=="function"?t:tt(t),s=mt(n),a=tt(e),c=r.scrollY||document.documentElement.scrollTop;return Mo(r,c,s,a,o,i)},ta=(t,e=0,n=850,o=null,r=()=>{},i=window)=>{let s=mt(o),a=tt(n),c=i.scrollY||document.documentElement.scrollTop;return Mo(i,c,s,a,r,function(){return ve(t)+tt(typeof e=="function"?e(0):e)})},be="auto",Se=!1,Te=t=>{t.target&&t.target.closest&&(t.target.closest("[data-x-scrollbar]")||t.target.closest(".x-off-canvas")||t.target.closest(".x-modal"))||(t.preventDefault(),t.stopPropagation())},ea=()=>{if(Se)return;Se=!0;let{adminBarOffset:t}=window.csGlobal;be=document.body.style.touchAction==="none"?be:document.body.style.touchAction,document.body.style.touchAction="none";let e=window.scrollY-t();document.body.style.top=-e+"px",document.body.classList.add("x-body-scroll-disabled"),window.addEventListener("wheel",Te,Wt),window.addEventListener("scroll",Te,Wt),Jt(Qt,mn+"px")},na=()=>{if(!Se)return;Se=!1;let{adminBarOffset:t}=window.csGlobal;document.body.style.touchAction=be==="none"?"auto":be,document.body.classList.remove("x-body-scroll-disabled");let e=-(parseFloat(document.body.style.top)-t());document.body.style.top="",window.scrollTo({top:e}),setTimeout(function(){window.dispatchEvent(new CustomEvent("resize"))},250),window.removeEventListener("wheel",Te),window.removeEventListener("scroll",Te),Jt(Qt,"0px")},oa=(t,e=0,n=0,o)=>{let r=B(function(){o(Po(t,e,n))},25);return U([lt(r),Yt(r)])},Po=(t,e=0,n=0)=>{e===0&&(e=.01),n===0&&(n=.01);let{top:o,left:r,bottom:i,right:s}=t.getBoundingClientRect(),{innerHeight:a,innerWidth:c}=window,u=e?a*(1-parseFloat(e)/100):0,d=n?a*(parseFloat(n)/100):a;return o<=u&&r>=0&&i>=d&&s<=c};V(function(){mn=window.innerWidth-document.body.offsetWidth,Jt(gn,mn+"px"),Jt(Qt,"0px")});function Jt(t,e){document.querySelector(":root").style.setProperty(t,e)}function Mo(t,e,n,o,r,i=null){let s=t===window;return we(a=>{let c=typeof i=="function"?i():i;if(a<o){let u=e+(c-e)*n(a/o);t.scrollTo(0,u),s&&document.body.scrollTo(0,u)}else return t.scrollTo(0,c),s&&document.body.scrollTo(0,c),r(),!1})}function Ho(t,e=null){return e?t.style.setProperty("transition-property",e,"important"):t.style.setProperty("transition","none","important"),t.style.setProperty("animation","none","important"),()=>{t.offsetHeight,t.style.removeProperty(e?"transition-property":"transition"),t.style.removeProperty("animation")}}var zo=(t,e)=>(n,{after:o}={})=>{t(n);let r=Ho(n);return()=>{e(n),r(),typeof o=="function"&&o()}},ra=zo(t=>t.style.setProperty("opacity",1,"important"),t=>t.style.removeProperty("opacity")),ia=(t,{animation:e,className:n,timeout:o,remove:r},i=()=>{})=>{if(!e)return;n&&!t.classList.contains(n)&&t.classList.add(n),t.style.removeProperty("animation-duration"),t.style.setProperty("animation-name",e);let s=o?an(t).animationTime:0;t.csAnimationEndingTimeout&&clearTimeout(t.csAnimationEndingTimeout);let a=Nt(()=>{r&&(t.csAnimationEndingTimeout=setTimeout(function(){t.style.animationName===e&&t.style.setProperty("animation-name","")},250)),i()});Et(t,"animationend",a),o&&setTimeout(a,s)};function sa(t,e,n){e=typeof e=="number"?Ot(e.toString()):typeof e=="string"?Ot(e):e;let o=(r,i,s,a)=>{let c,u=i[a];if(i.length>a){if(Array.isArray(r))try{u=vn(u,r),c=r.slice()}catch(d){if(r.length===0)c={};else throw new Error(d)}else c=Object.assign({},r);return c[u]=o(r[u]!==void 0?r[u]:{},i,s,a+1),c}return typeof s=="function"?s(r):s};return o(t,e,n,0)}function aa(t,e,n){e=typeof e=="number"?Ot(e.toString()):typeof e=="string"?Ot(e):e;for(var o=0;o<e.length;o++){if(t===null||typeof t!="object")return n;let r=e[o];Array.isArray(t)&&r==="$end"&&(r=t.length-1),t=t[r]}return typeof t=="undefined"?n:t}function ca(t,e){e=typeof e=="number"?Ot(e.toString()):typeof e=="string"?Ot(e):e;let n=(o,r,i)=>{let s,a=r[i];return o===null||typeof o!="object"||!Array.isArray(o)&&o[a]===void 0?o:r.length-1>i?(Array.isArray(o)?(a=vn(a,o),s=o.slice()):s=Object.assign({},o),s[a]=n(o[a],r,i+1),s):(Array.isArray(o)?(a=vn(a,o),s=[].concat(o.slice(0,a),o.slice(a+1))):(s=Object.assign({},o),delete s[a]),s)};return n(t,e,0)}function vn(t,e){if(t==="$end"&&(t=Math.max(e.length-1,0)),!/^\+?\d+$/.test(t))throw new Error(`Array index '${t}' has to be an integer`);return parseInt(t)}function Ot(t){return t.split(".").reduce((e,n,o,r)=>{let i=o>0&&r[o-1];if(i&&/(?:^|[^\\])\\$/.test(i)){let s=e.pop();e.push(s.slice(0,-1)+"."+n)}else e.push(n);return e},[])}var wn={get:aa,set:sa,deleteProperty:ca};var Ro=(t,e)=>e&&typeof t=="object"?wn.get(t,Dt(e)):t,la=(t,e,n)=>e&&typeof t=="object"?{...t,[Dt(e)]:n}:n;function yt(t,e){if(Array.isArray(e))return e.map(i=>yt(t,i));if(typeof e=="function")return yt(t,e(t));if(typeof e=="object")return Object.keys(e).reduce((i,s)=>(i[s]=yt(t,e[s]),i),{});if(typeof e!="string")return e;let n,o=()=>(n||(n=window.getComputedStyle(t)),n),r=ln.get(t);return e.replace(/var\(([\w-]+)(?:\s*,\s*(.+?))?\)/g,(i,s,a="")=>o().getPropertyValue(s)||a).replace(/attr\(([\w-]+)(?:\s*,\s*(.+?))?\)/g,(i,s,a="")=>t.getAttribute(s)||a).replace(/meta\(([.\w-]+)(?:\s*,\s*(.+?))?\)/g,(i,s,a="")=>{let c=wn.get(r,s);return typeof c=="undefined"?a:c})}var ua=(t,e,n)=>{let o=t,r=e;return n==="IN"?o.includes(r):n==="NOT IN"?!o.includes(r):((typeof o=="boolean"||typeof r=="boolean")&&(o=!!o,r=!!r),n===">"||n==="<"?o>r:n===">="||n==="<="?o>=r:n==="="||n==="=="?o==r:n==="!="?o!=r:n=="==="?o===r:n=="!=="?o!==r:!0)},xn=(t,e)=>{if(typeof t=="undefined")return null;if(!Array.isArray(t))return xn([t,"==",e]);let[n,o,r]=t;return t.length<=0?null:[n,o,r||e]},fa=(t,e,n,o)=>{try{let r=xn(e,o);if(!r)return!0;let[i,s,a]=r;return ua(Ro(n,yt(t,a)),yt(t,i),yt(t,s))}catch(r){console.warn("Failed to check condition. Make sure your state contains the key you are checking",r,{el:t,condition:e,state:n})}return!1};var Zt=new Map,bn=new Map,Ae=(...t)=>void console.warn(...t),st=(t,e)=>{if(Zt.has(t))return Ae("Rivet archetypes can not be redefined");bn.set(t,typeof e=="function"?e:(n,...o)=>n(...o))},vt=(t,e,n,o={})=>{if(Zt.has(e))return Ae(`Rivet ${e} already registered`);if(!bn.has(t))return Ae("Rivet archetype unknown",t);Zt.set(e,{archetype:t,handler:n,config:o})};function Ee({el:t,handle:e,handles:n,defaultOption:o,options:r}){var l;let i=n||[e],s=i.find(({type:h})=>h&&Zt.has(h));if(!s)return Ae(`Unknown rivet type: ${(l=i[0])==null?void 0:l.type}`,t);let{handler:a,config:{defaultOption:c,priority:u=0,...d}={},archetype:f}=Zt.get(s.type),p=c&&o?{[c]:o}:{};return[u,()=>bn.get(f)(a,t,{...p,...r||{}},s.name,d)]}function Ce(t){return t.sort(([e],[n])=>e-n)}var Sn="data-rvt";function $o(t=window.document.body){return ye(Tn)(t)}function Tn(t){if(t.hasAttributes()){let e=t.attributes;for(let n=e.length-1;n>=0;n--)if(e[n].name.indexOf(Sn)===0)return!0}return!1}function da(t,e){let n=kt(t,e);return typeof n!="object"&&typeof n!="undefined"&&n!==""?{defaultOption:n,options:{}}:{options:n}}function pa(t){let e=new Set;for(let n=t.attributes.length-1;n>=0;n--){let o=t.attributes[n].name;if(o.indexOf(Sn)!==0)continue;let r=o.substr(Sn.length+1),i=r.split("-");e.add({el:t,handles:[{type:r,name:"default"},{name:i.pop(),type:i.join("-")}],...da(t,o)})}return e}function An(t){return U(Ce(Array.from(pa(t)).map(e=>Ee(e)).filter(e=>!!e)).map(([,e])=>e()))}function qo(t,e){try{return t&&t.matches&&t.matches(e)}catch{}return!1}function ke(t){try{return window.document.querySelectorAll(t)}catch(e){console.warn(e)}return[]}var Do=!1,_o=null,Fo,En=new Set,Cn=new Set,Le=new WeakMap,It=new WeakMap;function S(t,e,n=0){if(typeof t!="string"){console.warn("Rivet selector must be a string",t),console.trace();return}if(typeof e!="function"){console.warn("Rivet handler must be a function",e),console.trace();return}let o={handler:e,selector:t,priority:n};En.add(o),Do&&ha(o)}function ha(t){clearTimeout(Fo),Cn.add(t),Fo=setTimeout(()=>{let e=Array.from(Cn.values());Cn.clear(),Bo(e)},0)}function Bo(t){t.sort(({priority:e},{priority:n})=>e-n),t.forEach(({selector:e,handler:n})=>{Array.from(ke(e)).forEach(o=>{Oe(o,n,No(e,o))})})}function No(t,e){let n=t.match(/(data-[\w-]+)/g)||[];return n&&n.length?n=n.pop():n=null,n?kt(e,n):null}function Oe(t,e,n){try{if(ma(t,e)||!document.body.contains(t))return;ga(t,e);let o=Vt(e.call(window,t,n));Array.isArray(o)&&o.map(r=>{Wo(t,r)}),typeof o=="function"&&Wo(t,o)}catch(o){console.warn("Failed to attach handler to element",t,e,n,o)}}function Wo(t,e){typeof e=="function"&&(Le.get(t)||Le.set(t,new Set),Le.get(t).add(e))}function ma(t,e){return It.get(t)&&It.get(t).get(e)}function ga(t,e){It.get(t)||It.set(t,new WeakMap),It.get(t).set(e,!0)}window.document.addEventListener("DOMContentLoaded",()=>{$o().forEach(t=>{Oe(t,e=>An(e))}),Bo(Array.from(En.values())),_o=new MutationObserver(function(t){t.reduce((e,n)=>{for(let o=0;o<n.addedNodes.length;o++)n.addedNodes[o].nodeType===1&&e.push(n.addedNodes[o]);return e},[]).forEach(function e(n){if(!!n){if(n.children&&n.children.length>0)for(let o=0;o<n.children.length;o++){if(!n)return;e(n.children[o])}Tn(n)&&Oe(n,o=>An(o)),En.forEach(({selector:o,handler:r})=>{n&&qo(n,o)&&Oe(n,r,No(o,n))})}}),t.reduce((e,n)=>{for(let o=0;o<n.removedNodes.length;o++){let r=n.removedNodes[o];r.nodeType===1&&!document.contains(r)&&e.push(r)}return e},[]).forEach(function e(n){if(n.children&&n.children.length>0)for(let r=0;r<n.children.length;r++)e(n.children[r]);let o=Le.get(n);if(o)for(let r of o.values())r.call(window,n),o.delete(r),It.delete(n)})}),_o.observe(window.document.body,{childList:!0,subtree:!0}),Do=!0});var K={};Ze(K,{container:()=>k,initState:()=>Ca,makeDetectStateChange:()=>Go,makeDispatch:()=>ba,makeInspect:()=>xa,subscribe:()=>Sa});var k={providers:new Map,subscribers:new Map,relationships:new Map,providerIndex:new WeakMap,subscriberIndex:new WeakMap},Vo=(()=>{let t=0;return()=>t++})();function Go(t){let e={};return n=>{let o=t.filter(r=>e[r]!==n[r]);return t.forEach(r=>{e[r]=n[r]}),o}}var Uo=(t,e)=>{var n,o;return(o=(n=k.subscriberIndex.get(t))==null?void 0:n.get(e))==null?void 0:o.id},Yo=t=>k.providers.get(k.relationships.get(t)),jo=(t,e)=>Yo(Uo(t,e)),ya=(t,e)=>k.providerIndex.has(t)&&k.providerIndex.get(t).has(e),Qo=(t,e)=>{let n=sn(o=>ya(o,e))(t);return n?k.providerIndex.get(n).get(e):null},Pt=new WeakMap;window.addEventListener("rvt-store-provider",()=>{Pt=new WeakMap});var Jo=(t,e)=>(Pt.get(t)||Pt.set(t,{}),Pt.get(t).name||(Pt.get(t).name=k.providers.get(Qo(t,e))),Pt.get(t).name),Zo=(t,e=!1)=>{let n=Yo(t);if(!n)return;let o=k.subscribers.get(t);if(!!o)for(let r of o.values()){let[i,s]=r;i(n.state,s(n.state),e)}},va=(t,e,n)=>{let o,r=()=>{let s=k.relationships.get(t),a=Qo(e,n);s!==a&&(k.relationships.set(t,a),clearTimeout(o),o=setTimeout(()=>Zo(t,!0),10))},i=et(window,"rvt-store-provider",r);return r(),()=>{clearTimeout(o),i()}},wa=(t,e)=>[typeof t=="function"?t:()=>{},Go(Array.isArray(e)?e:[])],xa=(t,e)=>()=>{var n;return(n=Jo(t,e))==null?void 0:n.state},ba=(t,e)=>n=>{var o;return(o=Jo(t,e))==null?void 0:o.dispatch(n)},Sa=(t,e,n=()=>{},o=[])=>{let r=wa(n,o);if(k.subscriberIndex.has(t)||k.subscriberIndex.set(t,new Map),!k.subscriberIndex.get(t).has(e)){let s=Vo();k.subscribers.set(s,new Set),k.subscriberIndex.get(t).set(e,{id:s,teardown:va(s,t,e)})}return k.subscribers.get(Uo(t,e)).add(r),{unsubscribe:()=>{let{id:s,teardown:a}=k.subscriberIndex.get(t).get(e),c=k.subscribers.get(s);c.delete(r),c.size===0&&(k.subscribers.delete(s),k.relationships.delete(s),k.subscriberIndex.get(t).delete(e),a())},getState:()=>{var s,a;return(a=(s=jo(t,e))==null?void 0:s.state)!=null?a:{}},dispatch:s=>{var a;return(a=jo(t,e))==null?void 0:a.dispatch(s)}}},Ta=t=>typeof t!="function"?e=>e:(...e)=>t(...e),Aa=t=>{let e;return n=>{let{state:o,...r}=k.providers.get(t);k.providers.set(t,{...r,state:r.reducer(n(o))}),cancelAnimationFrame(e),e=requestAnimationFrame(()=>{for(let[i,s]of k.relationships)s===t&&Zo(i)})}},Ea=(t,e,{_reducer:n,...o})=>{if(k.providerIndex.get(t)||k.providerIndex.set(t,new Map),k.providerIndex.get(t).has(e))return;let r=Ta(n),i=Vo();return k.providers.set(i,{reducer:r,state:r(o),dispatch:Aa(i)}),k.providerIndex.get(t).set(e,i),window.dispatchEvent(new CustomEvent("rvt-store-provider")),()=>{k.providers.delete(i),k.providerIndex.get(t).delete(e)}},Ca=(t,e={},n=window.document.documentElement)=>{if(!t){console.warn("States must set an ID",t,e,n);return}return Ea(n,t,e)};var Ko=Gt(!1);function Kt(t){return Ko.has(t)}Kt.enable=function(t){Ko.set(t,!0)};var wt=(...t)=>vt("action",...t),nt=(...t)=>vt("observer",...t),xt=(...t)=>vt("behavior",...t),Xt=(...t)=>vt("innate",...t),kn=(...t)=>vt("macro",...t),G=(...t)=>vt("event",...t);function ka(t,e,n={},o="default"){let r={el:t,handle:{type:e,name:o}};return typeof n=="string"?(r.defaultOption=n,r.options={}):r.options=n,Ee(r)}function te(t){return U(Ce(t.filter(e=>!!e).map(e=>ka(...e)).filter(e=>!!e)).map(([,e])=>e()))}var{rivetListener:La,rivetDispatch:Oa,expandElementValue:Xo,onScanLazy:Ia}=b;st("behavior");st("innate");st("macro",(t,e,n,o)=>t(e,te,n,o));st("action",(t,e,n,o)=>{let r=()=>void t(e,Xo(e,n));return La(e,o,i=>{n.defer?setTimeout(r,0):r()})});st("event",(t,e,n,o)=>t(()=>Oa(e,o),Xo(e,n),e));st("observer",(t,e,n,o="",{scan:r})=>{let[i,s=[]]=(typeof t=="function"?[t]:t)||[],a=i(e,n),[c,u]=Array.isArray(a)?a:[a,()=>{}],{unsubscribe:d,getState:f}=K.subscribe(e,o,c,s),p=r?Ia(()=>c(f(),[],!1,!0)):()=>{};return[d,u,p]});var{expandElementValue:Pa,getStateValue:Ma}=b;nt("outlet",(t,{key:e})=>{let n=t.innerHTML;return o=>{try{let r=Ma(o,Pa(t,e));t.innerHTML=typeof r=="undefined"?n:r}catch(r){console.warn("Unable to update Rivet outlet",r,{key:e,state:o,el:t})}}},{defaultOption:"key"});var{listener:tr}=b,Ha=["click","focus","focusin","focusout","blur"];Ha.forEach(t=>{G(`on${t}`,(e,{preventDefault:n=!0,stopPropagation:o=!1,once:r=!1},i)=>{let s;return tr(i,t,a=>{r&&s||(s=!0,n&&a.preventDefault(),o&&a.stopPropagation(),e())})})});var za=["keydown","keyup"];za.forEach(t=>{G(`on${t}`,(e,{key:n,preventDefault:o=!0,stopPropagation:r=!1,once:i=!1},s)=>{let a;return tr(document,t,c=>{i&&a||(a=!0,c.key===n&&(o&&c.preventDefault(),r&&c.stopPropagation(),e()))})},{defaultOption:"key"})});var{throttle:Ra,debounce:$a,onLoad:qa,onScanLazy:Da,triggerScan:_a,listener:Ie}=b;G("onready",t=>{setTimeout(()=>void t(),0)});G("onload",t=>qa(t));G("onexit",(t,{delay:e=1e3,repeat:n=!1})=>{let o,r=!1;return Ie(document,"mouseout",i=>{clearTimeout(o),!i.toElement&&!i.relatedTarget&&!r&&(o=setTimeout(()=>void t(),e),n||(r=!0))})},{defaultOption:"delay"});G("onresize",(t,{throttle:e=50})=>Ie(window,"resize",Ra(t,e,{trailing:!0}),W),{defaultOption:"throttle"});G("onresized",(t,{debounce:e=500})=>Ie(window,"resize",$a(t,e,{trailing:!0}),W),{defaultOption:"debounce"});G("onscan",(t,e)=>Da(t,e),{defaultOption:"throttle"});S("img",t=>Ie(t,"load",()=>void _a()));var{animateTopOffset:Fa,makeDirectionalEasing:Ba,intersect:Na}=b,er,nr,Pe=!1,Me=new Map;function or(){er=window.innerHeight}window.addEventListener("resize",or);or();function Wa(t,{prop:e,easingFn:n}){let{top:o,height:r}=t.getBoundingClientRect(),i=o+r/2,s=er/2;t.style.setProperty(e,n((i-s)/s))}function rr(){if(!!Pe){for(let[t,e]of Me)Wa(t,e);nr=requestAnimationFrame(rr)}}var Va=(t,e)=>{Me.set(t,e),!Pe&&(Pe=!0,nr=requestAnimationFrame(rr))},ir=t=>{Me.delete(t),Me.size<=0&&(Pe=!1)};xt("intersect",(t,{easing:e="linear",prop:n="--rvt-intersect"})=>[Na(t,({isIntersecting:r})=>{r?Va(t,{easingFn:Ba(e),prop:n}):ir(t)},{threshold:0,top:"0px",bottom:"0px"}),()=>void ir(t)],{defaultOption:"prop"});wt("scroll-to-top",(t,{offset:e,speed:n,easing:o="easeInOutExpo"})=>{Fa(e,n,o)},{defaultOption:"offset"});kn("scroll-top",(t,e)=>e([[t,"onclick"],[t,"scroll-to-top"]]));var{ensureNumber:sr,updateStateKey:ar,getStateValue:Ga,expandElementValue:He}=b;Xt("define",(t,e={},n)=>{if(!n.match(/^\w+$/)){console.warn("Rivet state keys must be alphanumeric");return}let{_reducer:o,...r}=e.__value||e||{};K.initState(n,{_reducer:o,...He(t,r)},t)},{defaultOption:"__value",priority:-1});wt("set",(t,{state:e,key:n,value:o})=>{K.makeDispatch(t,e)(r=>ar(r,He(t,n),o))});var Ua=(t,e,n)=>{let o=t.includes(e);return n&&o?t.filter(r=>r!==e):o?t:[...t,e]};wt("list",(t,{state:e,key:n,value:o,toggle:r=!0})=>{K.makeDispatch(t,e)(s=>{let a=He(t,n),c=Ga(s,a);return Array.isArray(c)?ar(s,a,Ua(c,o,r)):s})});wt("inc",(t,{state:e,key:n,amount:o=1,min:r=null,max:i=null,wrap:s=!1})=>{let a=K.makeDispatch(t,e),c=u=>sr(u)+sr(o);a(u=>{let d=He(t,n);return d?{...u||{},[d]:c(u[d])}:c(u)})},{defaultOption:"state"});Xt("debug",t=>{Kt.enable(t),t.removeAttribute("data-rvt-debug")},{defaultOption:"message"});var{isScalar:cr,getTransitionDuration:Ya,getStateValue:On,expandElementValue:ze,evaluateCondition:Re,listener:ja,fontCompress:Qa,addClass:lr,removeClass:Ja}=b,Za=(t,e)=>{let n=t||"$v";return cr(n)?cr(e)?`${n}`.replace("$v",e):n==="$v"?"":n:""};nt("classname",(t,{key:e,classname:n,condition:o})=>{let r="";return i=>{let s=On(i,ze(t,e)),c=Re(t,o,i,e)?Za(n,s):"";c!==r&&(r&&t.classList.contains(r)&&t.classList.remove(r),c&&!t.classList.contains(c)&&t.classList.add(c)),r=c}},{defaultOption:"classname"});nt("prop",(t,{key:e,prop:n,value:o,condition:r})=>{let i=null;return s=>{let a=On(s,ze(t,e));Re(t,r,s,e)?a!==i&&t.style.setProperty(n,typeof o=="undefined"?a:o):a!==i&&t.style.removeProperty(n),i=a}},{defaultOption:"key"});nt("attr",(t,{key:e,attr:n,value:o,condition:r})=>{let i=null;return s=>{let a=On(s,ze(t,e));Re(t,r,s,e)?a!==i&&t.setAttribute(n,typeof o=="undefined"?a:o):a!==i&&t.removeAttribute(n),i=a}},{defaultOption:"key"});nt("height",(t,{key:e,condition:n,selector:o})=>{let r,i;return(s,a,c,u)=>{if(e&&!u){let f=ze(t,e);if(s[f]===r)return;r=s[f]}let d=Re(t,n,s,e);setTimeout(()=>{if(d){let[f,...p]=Array.from(t.querySelectorAll(o)).map(l=>l.offsetHeight).sort((l,h)=>h-l);f&&f!==i&&(t.style.setProperty("height",`${f}px`,"important"),i=f)}else t.style.removeProperty("height"),i=null})}},{defaultOption:"selector",scan:!0});window.offscreenTemplates||(window.offscreenTemplates=new WeakMap);xt("offscreen-reset",(t,{mode:e="default"})=>{let n=t.closest("[data-x-toggleable]");if(window.offscreenTemplates.get(t))return;try{let c=document.createElement("textarea");c.innerHTML=t.querySelector('script[type="text/rvt-template"]').textContent;let u=document.createElement("div");u.innerHTML=c.innerText,window.offscreenTemplates.set(t,[c.innerText,u])}catch(c){return console.warn("Unable to locate content template",c),()=>{}}let o,r=()=>{try{let[c,u]=window.offscreenTemplates.get(t);Array.from(u.querySelectorAll("[data-x-toggleable]")).map(f=>f.getAttribute("data-x-toggleable")).forEach(f=>{window.xToggleDelete(f)}),t.innerHTML=c}catch(c){console.warn("Unable to reset offscreen content",c)}},i=()=>{t.innerHTML=""},s=()=>{o=setTimeout(()=>{i(),e==="close"&&r()},Ya(n,300)+100)},a=c=>{clearTimeout(o),c?(e==="open"&&i(),r()):e!=="open"&&s()};return e==="close"&&r(),ja(n,"tco-toggle",({detail:{state:c}={}})=>void a(c))},{defaultOption:"mode"});xt("font-compress",(t,e)=>Qa(t,e));var Ka=(t,e)=>{try{if(e)return Array.from(t.querySelectorAll(e))}catch{}return t};xt("inner-wrap",(t,{selector:e="",tag:n="span",class:o=""})=>Ka(t,e).map(r=>{let i=document.createElement(n);lr(i,"has-been-tagged"),o&&lr(i,o),Array.from(r.childNodes).forEach(s=>{i.appendChild(s)}),r.append(i),i.offsetHeight,Ja(i,"has-been-tagged")}),{defaultOption:"selector"});var In={...Ln};var{toggleClass:ur,listener:sd,PASSIVE_ARGS:Xa}=b;S("[data-x-bar]",(t,{scrollButtons:e})=>{if(!e)return;let n=t.querySelector(".x-bar-scroll-inner"),o=t.querySelector(".x-bar-content"),r=t.querySelector('[data-x-bar-scroll-button="bck"]'),i=t.querySelector('[data-x-bar-scroll-button="fwd"]'),s=0,a=0,c=0,u=0,d=()=>{let m=parseInt(window.getComputedStyle(n).width),g=parseInt(window.getComputedStyle(n,":before").width),y=parseInt(window.getComputedStyle(o).width);s=m,a=m-g*2,c=y,u=n.scrollLeft;let v=u<=0,w=c-u-a<=0;ur(r,"is-active",!v),ur(i,"is-active",!w)},f=m=>n.scrollTo({top:0,left:m,behavior:"smooth"}),p=()=>{f(Math.max(u-s,0))},l=()=>{f(Math.min(u+s,c-a))};d();let h=B(d,50);window.addEventListener("resize",h),n.addEventListener("scroll",h,Xa),r.addEventListener("mouseup",function(){p()}),i.addEventListener("mouseup",function(){l()})});var at={},Mt={};function tc(t,e){at[t]||(at[t]=[]),at[t].push(typeof e=="function"?e:()=>e)}function ec(t,e){if(!at[t])return;let n=at[t].indexOf(e);at[t].splice(n,1)}function nc(t,e){Mt[t]||(Mt[t]=[]),Mt[t].push(e)}function oc(){let t=[...arguments],e=t.shift(),n=t.shift(),o=at[e]?at[e]:[];return(Mt[e]?Mt[e]:[]).forEach(i=>i.call(this,n,...t)),o.reduce((i,s)=>s.call(this,i,...t),n)}var F={filter:tc,action:nc,apply:oc,filters:at,actions:Mt,remove_filter:ec};var{animateTopOffset:rc,scrollOffset:ic}=b,Ht,fr=!1,Pn;function dr(){if(!fr){Ht=0;let t=B(dr,50);window.addEventListener("resize",t,W),Pn=document.querySelector("#wpadminbar"),fr=!0}if(Pn){let{position:t,height:e}=window.getComputedStyle(Pn);Ht=t==="fixed"?parseInt(e):0}return Ht}var Y=()=>Ht!=null?Ht:dr(),ee=()=>F.apply("fixed_top_offset",0),sc=(t,e,n)=>{if(t instanceof Element){let{bottom:o,top:r}=ic(t);return e?o+n:r-n}return(typeof t=="number"?t:parseFloat(t))+n},pr=(t,{offsetTop:e=!0,duration:n,easing:o,bottom:r=!1}={},i)=>{rc(()=>sc(t,r,e?ee():0),n,o,i)};window.csGlobal=window.csGlobal||{};window.csJsData=window.csJsData||{};window.csGlobal.rivet=In;window.csGlobal._=window.csGlobal.rivet.util;window.csGlobal.everinit=In.attach;window.csGlobal.adminBarOffset=Y;window.csGlobal.fixedTopOffset=ee;window.csGlobal.scrollTo=pr;window.csGlobal.csHooks=F;window.document.documentElement.classList.remove("no-js");window.document.documentElement.classList.add("js");var{onScrollRaw:ac,onResize:cc,oncePassive:hr,elementIndex:mr,addClass:Mn,removeClass:Hn,toggleClass:Ed,hasClass:bt}=b,gr=t=>getComputedStyle(t).display!=="none",yr=0,vr=!1,zn=!1;function wr(t){var p,l,h;let e=document.querySelector(".x-site");if(!e){t.style.width="100%";return}var n=window.getComputedStyle(t);if(n.position!=="fixed"){t.style.left="",t.style.width="",t.style.maxWidth="";return}var o=[];xr(n["margin-left"])||o.push(n["margin-left"]),xr(n["margin-right"])||o.push(n["margin-right"]);var r="";o.length>0&&(r=o.length===1?o[0]:"("+o.join(" + ")+")");let i=(h=(l=(p=document.querySelector("body.x-stack-icon .x-sidebar .max.width:not(.x-container)"))==null?void 0:p.parentElement)==null?void 0:l.offsetWidth)!=null?h:0,s=Array.from(document.querySelectorAll(".x-bar-space-v")).reduce((m,g)=>m+g.offsetWidth,i),a=Array.from(document.querySelectorAll(".x-bar-left")).reduce((m,g)=>m+g.offsetWidth,i),c="";a&&(c="calc(0px + "+a+"px)");var u="";s>0&&(u+=" - "+s+"px"),r&&(u+=" - "+r),u+=" - "+yn,t.style.width="calc(100%"+u+")",t.style.left=c;var d=window.getComputedStyle(e),f=d["max-width"];f&&f!=="none"&&(t.style.maxWidth=r?"calc("+f+" - "+r+")":f)}function xr(t){return t.trim().split(" ").filter(e=>!e.match(/^0[a-zA-Z%]+|0$|none$/)).length===0}S("[data-x-bar]",function(t,e){if(e.region==="top"||e.region==="bottom")return b.onViewportChange(()=>{wr(t)},!0)});var $e=/__cs_debug/.test(location.href),br=!1,zt=[],ot=[],ne=[],Rn,oe=!1;function qe(t){let e=zt.map(r=>r.id),n=!1,o=zt.filter(({el:r,id:i})=>{let s=e.indexOf(i);return s!==e.lastIndexOf(i)?(n=!0,e.splice(s,1),!1):window.document.body.contains(r)?!0:(n=!0,!1)});return(n||t)&&(o=o.sort((r,i)=>mr(r.el)-mr(i.el))),n?(zt=o,ot=zt,setTimeout($n,0),!0):!1}function $n(){if(qe()||!Y)return;ot=zt.filter(({el:r})=>gr(r));let t=Y(),e=0,n=0,o=0;dc(),ot.forEach(r=>{var{height:i}=r.el.getBoundingClientRect();r.height=i=Math.round(i),r.hasShrink=Ar(r.props.shrink),r.goal&&r.space&&(r.space.style.height=i+"px"),r.hasShrink&&!r.goal&&(r.shrinkHeight=Tr(i,r.props.shrink)),r.hasShrink||(r.shrinkHeight=r.height),r.triggerOffset=parseInt(r.props.triggerOffset),isNaN(r.triggerOffset)&&(r.triggerOffset=0)}),ne=ot.map((r,i)=>{let{el:s,props:a,height:c,shrinkHeight:u,triggerOffset:d,goal:f}=r,p=o++===0,l=a.zStack&&!p,{marginTop:h}=getComputedStyle(s);var m=parseFloat(h),g=a.keepMargin?m:0,{top:y,bottom:v}=s.getBoundingClientRect();let w=0,C=s.parentNode.getBoundingClientRect().top-Y();C+=window.scrollY;let x=s.parentNode.childNodes;for(let Z=0;Z<x.length;++Z){let Q=x[Z];if(!!Q.getBoundingClientRect){if(Q===s)break;bt(Q,"x-bar-space")||bt(Q,"x-bar-is-sticky")||(w+=Q.getBoundingClientRect().height)}}y=C+d+(w-e)+Y();let A=d+w+C+Y(),z=document.body.scrollTop,I=z+y;if(a.triggerSelector)try{let Z=document.querySelector(a.triggerSelector);if(Z){let{top:Q}=Z.getBoundingClientRect();A=Q+z+d-u}}catch(Z){$e&&console.warn(Z)}else a.hideInitially?(A+=c,A+=d):d>0&&(A+=d+c);l?A+=u:A-=g;let M=Y()+e;qn(A,"red");let P=t+n;a.keepMargin||(P+=m,M-=m),A=Math.floor(A),qn(A,"green"),t=A,l?(M-=u+g,M=Math.max(M,Y())):e+=u+g;let H=a.hideInitially||I<A||I+c<M;n+=c-u;let $=u+e;qn($,"orange"),a.keepMargin&&($+=m),$=Math.ceil($);let pe=g?`calc(-100% - ${g}px)`:"-100%";return f&&M!==ne[i].top&&(s.style.top=`${M}px`),{offset:A,bottom:v,top:M,slide:H,elOffset:I,topOffset:$,translateY:pe,startsFixed:r.startsFixed,firstBar:p,only_show_on_scroll_up:a.only_show_on_scroll_up}}),$e&&ot.forEach(function(r,i){console.log(`Bar: ${i}`,r)}),De()}function De(){if(oe||qe()||zn||document.body.classList.contains("x-body-scroll-disabled"))return;zn=!0;let t=window.scrollY+Y(),e=t-yr,n=e===0?vr:e<0&&window.scrollY!==0;yr=t,vr=n;let o=ne.reduce((i,{offset:s,only_show_on_scroll_up:a,startsFixed:c},u)=>(c?t>=s:t>s)&&(!a||n)?u:i,-1),r=!1;ot.forEach((i,s)=>{let a=i.goal;i.goal=o>=s,a!==i.goal&&(r=!0)}),r&&requestAnimationFrame(Sr),zn=!1}function Sr(){if(oe)return;let t=lc();t?(oe=!0,t(()=>{oe=!1,Sr()})):(oe=!1,window.dispatchEvent(new CustomEvent("cs-sticky-bar-post-transition")),setTimeout(De,0))}function lc(){let t=-1,e=ot.map(n=>{let{goal:o,el:r}=n,i=n.fixedOnce;return{goal:o,fixed:bt(r,"x-bar-fixed")&&i}});if(e.forEach(({goal:n,fixed:o},r)=>{let i=n===o;!i&&t===-1&&(t=r),!i&&r>0&&e[r-1].fixed&&ne[r].slide&&(t=r)}),t!==-1){let n=ot[t],o=n.goal;if(!o&&!bt(n.el,"x-bar-fixed"))return!1;let r=o?uc:fc;return i=>r(ot[t],ne[t],{st:window.scrollY,done:i})}return!1}function uc(t,{top:e,slide:n,elOffset:o,translateY:r,firstBar:i,only_show_on_scroll_up:s},{st:a,done:c}){let{el:u,space:d,content:f,shrinkHeight:p,height:l}=t;t.fixedOnce=!0;let h={top:`${e}px`},m=n||!i&&o+p<a+e||s;if(t.slideEnabled||(m=!1),p&&l!==p){h.height=p;let{paddingTop:w,paddingBottom:T}=getComputedStyle(u);f.style.height=`calc(${p}px - (${w} + ${T}))`,u.style.height=`calc(${p}px - (${w} + ${T}))`}m&&(h.transform=`translate3d(0, ${r}, 0)`);let g=()=>c();if(Object.entries(h).forEach(([w,T])=>{u.style.setProperty(w,T)}),d){d.style.display="";let w=l+"px";w!==d.style.height&&(d.style.height=w)}Rn.forEach(w=>void Mn(u,w)),Hn(u,"x-bar-is-initially-hidden"),wr(u);let v=window.getComputedStyle(u)["transition-duration"];v=v?parseFloat(v.replace("s","")):0,m?(Mn(u,"x-bar-is-visible"),u.style.transform="",v!==0?hr(u,"transitionend",g):c()):c()}function fc({el:t,space:e,props:n,content:o,shrinkHeight:r,slideEnabled:i},{top:s,slide:a,elOffset:c,translateY:u,firstBar:d,only_show_on_scroll_up:f},{st:p,done:l}){let h=parseFloat(n.shrink),m=!1,g=a||!d&&c+r<p+s||f&&c+r<p+s;i||(g=!1);function y(){let T=window.getComputedStyle(t)["transition-duration"];if(T=T?parseFloat(T.replace("s","")):0,T===0){v();return}hr(t,"transitionend",v),setTimeout(v,T*1e3+100)}n.hideInitially&&Mn(t,"x-bar-is-initially-hidden");function v(){m||(m=!0,o.style.height="",t.style.top="",t.style.transform="",t.style.height="",t.style.left="",t.style.width="",Rn.forEach(w=>Hn(t,w)),Hn(t,"x-bar-is-visible"),e&&(e.style.display="none"),l())}g?(t.style.transform=`translate3d(0, ${u}, 0)`,y()):!isNaN(h)&&h<1?(o.style.height="",t.style.height="",y()):v()}function dc(){!$e||ke(".cs-sticky-bar-waypoint-debug").forEach(function(t){t.remove()})}function qn(t,e="red",n="white"){if(!$e)return;let o=`<div class="cs-sticky-bar-waypoint-debug" style="position:absolute;height:1px;width:100%;top:${t}px;border-top:1px solid ${e};z-index:999999"><span style="color: ${n};background-color: ${e};left: 0;position: absolute;top: 0; padding: .5em 1em; transform: translate3d(0,-50%,0);";>${t}</span></div>`,r=document.createElement("div");r.innerHTML=o,document.body.appendChild(r.childNodes[0])}function pc(){let t=0;return ot.forEach(function(e){var n;t+=e.goal&&!((n=e.props)==null?void 0:n.zStack)&&e.props.scrollOffset?e.height:0}),t}F.filter("fixed_top_offset",t=>{let e=pc();return e?Math.max(t,e+Y()):t+Y()});var Dn=()=>{qe(!0)||$n()},_n=()=>{qe(!0),$n()};function hc(){if(typeof window.ResizeObserver=="undefined")return;let t=window.document.body.clientHeight;new ResizeObserver(B(function(n){!n||document.body.classList.contains("x-body-scroll-disabled")||t!==window.document.body.clientHeight&&(t=window.document.body.clientHeight,Dn())},100)).observe(document.body)}S("[data-x-bar]",(t,e)=>{br||(Rn=(bt(document.body,"x-boxed-layout-active")?"x-bar-fixed x-container max width":"x-bar-fixed").split(" "),V(Dn),cc(Dn),ac(De),hc(),br=!0);let{id:n,region:o}=e;if(!bt(t,"x-bar-is-sticky")||o!=="top")return;var{top:r,height:i}=t.getBoundingClientRect();i=Math.round(i);let s=document.querySelector(`.${n}.x-bar-space`);s&&(s.style.height=i+"px");let a={id:n,el:t,props:e,height:i,topOffset:i,startsFixed:bt(t,"x-bar-fixed"),slideEnabled:!!e.slideEnabled,fixedOnced:!1,shrinkHeight:Tr(i,e.shrink),space:s,scrollOffset:e.scrollOffset,content:t.querySelector(".x-bar-content"),visible:gr(t),startingRectTop:r};return zt.push(a),_n(),setTimeout(function(){_n()},1e3),function(){_n(),De()}});function Tr(t,e){return Ar(e)?e*t:t}function Ar(t){return!isNaN(t)&&t>0&&parseFloat(t)!==1}var{listener:mc,oncePassive:gc}=b;S('.x-alert [data-dismiss="alert"]',t=>mc(t,"click",e=>{e.preventDefault();let n=t.parentElement;n.classList.remove("in"),n.classList.remove("x-effect-enter"),gc(n,"transitionend",()=>{if(window.csGlobal&&window.csGlobal.isPreview){n.style.display="none";return}n.remove()})}));var{util:yc}=window.csGlobal.rivet,{addClass:re,removeClass:ie,hasClass:_e}=yc;function Rt(t,e){if(e){if(!t||_e(t,"x-anchor-layered-back"))return;re(t,"x-active")}else ie(t,"x-active")}function Fn(t,e){if(e){if(!t||_e(t,"x-active")||_e(t,"x-currently-active"))return;re(t,"x-currently-active")}else ie(t,"x-currently-active")}function Er(t){setTimeout(()=>{let e=t.closest(".x-menu");e.addEventListener("transitionend",function(n){let o=e.getBoundingClientRect().top;if(o<0&&n.propertyName==="height"){let r=0,i=t.closest(".x-bar-v .x-bar-scroll-inner, .x-off-canvas-content, .x-modal")||window;if(i===window){let s=window.pageYOffset,a=parseInt(window.getComputedStyle(document.documentElement).marginTop),c=parseInt(window.getComputedStyle(e).fontSize);r=Math.max(0,o+s-a-c)}i.scrollTo({top:r,left:0,behavior:"smooth"})}})},0)}function vc(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=parseInt(n.marginTop)+parseInt(n.marginBottom),e}var Cr=t=>Math.max(t.offsetHeight,Array.from(t.children).reduce((e,n)=>e+vc(n)||0,0)),kr=(t,e)=>{let n=t.closest("[data-x-toggle-layered-root]");n&&(n.style.height=`${e}px`)};function wc(t){kr(t,Cr(t));let e=t.closest(`ul:not([data-x-toggleable="${t.getAttribute("data-x-toggleable")}"])`);ie(e,"x-current-layer"),re(e,"x-prev-layer"),re(t,"x-current-layer"),Er(t)}function xc(t){let e=t.closest(`ul:not([data-x-toggleable="${t.getAttribute("data-x-toggleable")}"])`);!_e(e,"x-prev-layer")||(kr(t,Cr(e)),ie(t,"x-current-layer"),re(e,"x-current-layer"),ie(e,"x-prev-layer"),Er(t))}function Lr(t,e){return e?wc(t):xc(t)}function Or(t,e,n){var o,r,i,s,a=!1,c=!1,u={},d=0,f=0,p={sensitivity:7,interval:100,timeout:0,handleFocus:!1};function l(x,A){return f&&(f=clearTimeout(f)),d=0,c?void 0:n.call(x,A)}function h(x){o=x.clientX,r=x.clientY}function m(x,A){if(f&&(f=clearTimeout(f)),Math.abs(i-o)+Math.abs(s-r)<p.sensitivity)return d=1,c?void 0:e.call(x,A);i=o,s=r,f=setTimeout(function(){m(x,A)},p.interval)}u.options=function(x){var A=x.handleFocus!==p.handleFocus;return p=Object.assign({},p,x),A&&(p.handleFocus?T():C()),u};function g(x){return a=!0,f&&(f=clearTimeout(f)),t.removeEventListener("mousemove",h,!1),d!==1&&(i=x.clientX,s=x.clientY,t.addEventListener("mousemove",h,!1),f=setTimeout(function(){m(t,x)},p.interval)),this}function y(x){return a=!1,f&&(f=clearTimeout(f)),t.removeEventListener("mousemove",h,!1),d===1&&(f=setTimeout(function(){l(t,x)},p.timeout)),this}function v(x){a||(c=!0,e.call(t,x))}function w(x){!a&&c&&(c=!1,n.call(t,x))}function T(){t.addEventListener("focus",v,!1),t.addEventListener("blur",w,!1)}function C(){t.removeEventListener("focus",v,!1),t.removeEventListener("blur",w,!1)}return u.remove=function(){!t||(t.removeEventListener("mouseover",g,!1),t.removeEventListener("mouseout",y,!1),C())},t&&(t.addEventListener("mouseover",g,!1),t.addEventListener("mouseout",y,!1)),u}var{util:bc}=window.csGlobal.rivet,{addClass:Bn,transitionEnd:Ir,removeClass:Nn,getOuterHeight:Pr,makeAlternatingSynchronizer:Sc}=bc,Tc=t=>Sc(e=>{if(!t.classList.contains("x-collapsed")){e();return}t.setAttribute("aria-hidden","false");let n=Pr(t);Nn(t,"x-collapsed"),Bn(t,"x-collapsing"),t.offsetHeight,t.style.height=`${n}px`,Ir(t,()=>{Nn(t,"x-collapsing"),t.style.height="",e()})},e=>{t.setAttribute("aria-hidden","true"),t.style.height=`${Pr(t)}px`,Bn(t,"x-collapsing"),t.offsetHeight,t.style.height="",Ir(t,()=>{Nn(t,"x-collapsing"),Bn(t,"x-collapsed"),e()})},void 0,!t.classList.contains("x-collapsed")),Wn=new WeakMap,Ac=t=>(Wn.has(t)||Wn.set(t,Tc(t)),Wn.get(t));function Mr(t,e){Ac(t)(e)}var{util:Hr}=window.csGlobal.rivet,{listener:Ec,debounce:zr,addClass:Cc,removeClass:kc,hasClass:ut,toggleClass:X,oncePassive:Rr,scrollingDisable:Lc,scrollingEnable:$r}=Hr,Fe=null,Be=t=>document.querySelector(`[data-x-toggleable="${t}"][data-x-toggle]`),Oc=t=>document.querySelector(`[data-x-toggleable="${t}"]:not([data-x-toggle])`),qr=t=>t?t.parentElement.matches(".x-nav-tabs-item")?"classic-tab":t.getAttribute("data-x-toggle"):null,Ic=t=>["tab","classic-tab"].includes(qr(t)),Vn=t=>t&&t.getAttribute("data-x-toggle-group"),Pc=t=>!!document.querySelector(`[data-x-toggle-group="${t||""}"].x-active`),ft=(t,e)=>t&&(t.matches(e)?t:t.closest(e)),Mc=(t,e)=>t&&(t.matches(e)?t:t.querySelector(e)),Hc=t=>ft(t,"[data-x-toggle]"),Dr=t=>ft(t,"[data-x-toggleable]"),j=t=>t&&t.getAttribute("data-x-toggleable"),Ne=t=>t&&t.getAttribute("data-x-toggle-hash"),zc=t=>t&&t.matches(".mce-content-body"),Rc=B(function(){window.dispatchEvent(new Event("resize"))},250),$c=B(function(){window.dispatchEvent(new Event("rvt-scan"))},250);function qc(t,e=""){return document.querySelector(`[data-x-toggleable=${t}]${e}`)}var Dc=t=>{let{marginTop:e,marginBottom:n}=getComputedStyle(t);return t.offsetHeight+parseInt(e)+parseInt(n)},se=()=>window.location.hash.replace("#",""),_r=t=>document.querySelectorAll(`[data-x-toggle-group="${Vn(t)}"]:not([data-x-toggleable="${j(t)}"])`),_c=t=>document.querySelectorAll(`[data-x-toggle-group="${Vn(t)}"].x-active`);Hr.toggle={getOthersInGroup:_r,getActiveInGroup:_c};var Fc=t=>{let e=Hc(t);return[e,j(e)]},Fr=t=>Array.from(document.querySelectorAll("[data-x-toggle-hash]")).filter(e=>Ne(e)===t).map(j),ae=t=>ft(t,"[data-x-toggleable]:not([data-x-toggle])"),Bc=30,We=(t,e)=>{let n=[],o,r=t,i=0;for(;o=r&&ae(r);){if(i>=Bc){console.warn("Broke toggleable ancestry depth limit ",t,n);break}let s=j(o);if(r=Be(s),n.includes(s))break;n.push(s),++i}return e&&n.shift(),n};window.TCOToggleStates||(window.TCOToggleStates=new Map,window.TCOToggleScrollBlocking=new Map);var Nc=!1,dt=window.TCOToggleStates,Gn=window.TCOToggleScrollBlocking,pt=!1;function Wc(){let t=[];for(let[e,n]of dt){let o=Oc(e);n&&Gn.has(e)&&t.push(e),o||dt.delete(e)}t.find(e=>!dt.has(e))&&requestAnimationFrame($r)}window.integrityCheckTimeout||(window.integrityCheckTimeout=null);var Vc=function(){clearTimeout(window.integrityCheckTimeout),window.integrityCheckTimeout=setTimeout(Wc,500)};window.xToggleIntegrityCheck||(window.xToggleIntegrityCheck=Vc);function Gc(t){let e=Be(t);switch(qr(e)){case"collapse":case 1:case"layered":return e.matches(".x-active");case"tab":return Pc(Vn(e));case"classic-tab":return e.parentElement.matches(".active");case"collapse-b":return!e.matches(".collapsed")}return e?e.classList&&e.classList.contains("x-active"):null}function $t(t){return dt.has(t)||dt.set(t,Gc(t)),dt.get(t)}function N({id:t,state:e,_triggeringGroup:n,force:o,hashUpdate:r=!window.csGlobal.isPreview}){let i=$t(t);if(typeof e=="undefined"&&(e=!i),e&&window.xLastToggleable!==t)window.xLastToggleable=t,window.xToggleStack.push(t);else if(!e){let a=window.xToggleStack.indexOf(t);a!==-1&&window.xToggleStack.splice(a,1),window.xLastToggleable===t&&(window.xLastToggleable=window.xToggleStack[window.xToggleStack.length-1])}let s=Be(t);!o&&!n&&(zc(s)||!e&&Ic(s))||(dt.set(t,e),(i!==e||o)&&(Uc(t,e),r&&el(s,e)),n||_r(s).forEach(a=>{N({force:o,id:j(a),state:!1,_triggeringGroup:!0,hashUpdate:r})}))}window.xLastToggleable="";window.xToggleStack=[];window.xToggleGetState=t=>$t(t);window.xToggleGetStateFromNode=t=>$t(j(t));window.xToggleUpdate=(t,e)=>N({id:t,state:e});window.xToggleDelete=t=>dt.delete(t);window.xToggleGetId=j;window.xGetLastToggleable=function(){return window.xLastToggleable};var Br=!1;window.xToggleTempUnlock=()=>{Br=!!pt,pt=!1};window.xToggleTempRelock=()=>{pt=Br};window.xToggleSetLocking=t=>{pt=!!t};window.xToggleHashUpdate=Vr;function Uc(t,e){Array.from(document.querySelectorAll(`[data-x-toggleable="${t}"]`)).forEach(n=>{n.dispatchEvent(new CustomEvent("tco-toggle",{bubbles:!1,detail:{state:e,id:t}}))})}function Nr(t){return Ec(t,"tco-toggle",({currentTarget:e,detail:{state:n,id:o}})=>{var r;if(n||Qc(t),t.hasAttribute("data-x-toggle-overlay")&&(n?((r=document.querySelector(`[data-x-toggleable=${o}][role="dialog"]`))==null?void 0:r.hasAttribute("data-x-disable-body-scroll"))&&(requestAnimationFrame(Lc),Gn.set(o,!0)):n||(Gn.delete(o),requestAnimationFrame($r))),t.hasAttribute("aria-hidden")&&t.setAttribute("aria-hidden",!n),t.hasAttribute("aria-expanded")&&t.setAttribute("aria-expanded",n),t.hasAttribute("aria-selected")&&t.setAttribute("aria-selected",n),t.hasAttribute("data-x-toggle-collapse")?Mr(t,n):t.hasAttribute("data-x-toggle-layered")?Lr(t,n):ut(t,"x-anchor")?Rt(t,n):t.getAttribute("data-x-toggle")==="collapse-b"?X(t,"collapsed",!n):ut(t.parentElement,"x-nav-tabs-item")?X(t.parentElement,"active",n):ut(t,"x-tab-pane")?X(t,"active",n):ut(t,"x-dropdown")?Ve(t,n):X(t,"x-active",n),ut(t,"x-modal")&&Rc(),$c(),t.matches("[data-x-toggle]")){if(X(t.querySelector(".x-toggle"),"x-active",n),Nc)return;Array.from(t.querySelectorAll("[data-x-toggle-anim]")).forEach(i=>{ut(i,"x-running")||Rr(i,"animationiteration",()=>{kc(i,"x-running"),ut(t,"x-active")||i.removeAttribute("style")}),Cc(i,"x-running"),ut(t,"x-active")&&(i.style.animationName=i.getAttribute("data-x-toggle-anim"))})}if(n&&!window.csGlobal.isPreview)if(e.querySelector("[data-x-search][data-x-search-autofocus]")){let i=e.querySelector("[data-x-search][data-x-search-autofocus] input");if(nl(i,350),!pn())return;Rr(e,"transitionend",function(){i.scrollIntoView(!0)})}else{let i=t.querySelector('[tabindex="-1"]');i&&i.focus&&(i.focus(),setTimeout(function(){i.focus()},250))}n?jc(t):Yc(t)})}var Wr=["video","audio"];function Yc(t){let e=t.querySelectorAll(Wr);for(let n=0;n<e.length;++n)e[n].pause()}function jc(t){let e=t.querySelectorAll(Wr);for(let n=0;n<e.length;++n){let o=e[n];o.currentTime=0,o.getAttribute("autoplay")&&o.play()}}function Qc(t){let e=t.querySelectorAll("[data-x-toggleable]")||[];for(let n=0;n<e.length;++n){let o=e[n];N({id:o.getAttribute("data-x-toggleable"),state:!1})}}var Jc=t=>{let e=ae(t);return!!(e&&(e.matches(".x-modal")&&!t.closest(".x-modal-content")||e.matches(".x-off-canvas")&&!t.closest(".x-off-canvas-content")))},Zc=(t,{exclude:e=[]}={})=>{if(pt)return;let n=[...We(t,Jc(t)),...e].filter(o=>!!o);Array.from(document.querySelectorAll("[data-x-toggleable].x-dropdown, [data-x-toggleable].x-off-canvas, [data-x-toggleable].x-modal")).map(o=>o.getAttribute("data-x-toggleable")).filter(o=>!n.includes(o)).forEach(o=>N({id:o,state:!1}))};function Un(){Vr(se())}function Vr(t){Fr(t).forEach(n=>{N({id:n,state:!0})})}var Kc=(t,e,n)=>{if(!t||e.isContentEditable)return!1;if(t.matches("[data-x-toggle-hover]")){if(pt)return!0;if(n)return!1}let o=t.querySelector("[data-x-toggle-nested-trigger]");return o?ft(e,"[data-x-toggle-nested-trigger]")===o:ft(e,"[data-x-toggle]")===t};var Yn=({ignoreHoverToggle:t=!0}={})=>e=>{let n=e.target,[o,r]=Fc(n);Kc(o,n,t)&&(ft(n,"a[href]")&&e.preventDefault(),N({id:r}));let i=!r&&ft(e.target,"[data-x-toggle-close]"),s=i&&j(Dr(i));if(s&&N({id:s}),!s&&n.hasAttribute("data-x-toggle-direct-close")){let p=j(Dr(n));N({id:p})}let a=ft(e.target,"a[href]"),c=a?a.getAttribute("href").replace("#","").trim():"",d=c&&c===se()?Fr(se()):[];if(d.length>0&&d.forEach(f=>{N({id:f,state:!0})}),window.xLastToggleable){if(!qc(window.xLastToggleable,".x-dropdown[data-x-dropdown-direct-close]"))return;Zc(e.target,{exclude:[r,s,...d]})}},q={},Xc=t=>e=>{N({id:t,state:!0})},tl=t=>e=>(q[t].canHoverLeave=!1,N({id:t,state:!1}),()=>{});function Gr(t){let e=j(t),n=Be(e);if(!n)return;let o=t.getAttribute("data-x-hoverintent");o=JSON.parse(o||"{}");let{interval:r=100,timeout:i=100}=o;return q[e]={canHoverLeave:!1,cancelEnter:()=>{},cancelLeave:()=>{},hasHoverToggle:()=>!!document.querySelector(`[data-x-toggleable="${e}"][data-x-toggle-hover]`),onEnter:zr(Xc(e),r),onLeave:zr(tl(e),i)},[D(n,"mouseenter",()=>{q[e].hasHoverToggle()&&(q[e].canHoverLeave=!0,q[e].cancelLeave(),$t(e)||(q[e].cancelEnter=q[e].onEnter()))}),D(n,"mouseleave",()=>{q[e].canHoverLeave&&(pt||(q[e].cancelLeave=q[e].onLeave()),q[e].onEnter.cancel())}),D(t,"mouseenter",()=>{let s=[e,...We(ae(t))];setTimeout(()=>{s.forEach(a=>{q[a]&&q[a].cancelLeave()})})}),D(t,"mouseleave",({toElement:s})=>{[e,...We(ae(t))].forEach(u=>{q[u]&&q[u].canHoverLeave&&(pt||(q[u].cancelLeave=q[u].onLeave()))}),We(ae(s)).forEach(u=>{q[u]&&q[u].cancelLeave()})}),D(n,"touchstart",function(){!q[e].hasHoverToggle()||N({id:e})})]}function Ve(t,e){let o=window.getComputedStyle(t)["transition-duration"];if(o=o?parseFloat(o.replace("s","")):0,Fe&&(Fe(),Fe=null),!o){X(t,"x-active",e),X(t,"x-active-animate",e);return}let r=o*1e3,i=e?"x-active":"x-active-animate",s=e?"x-active-animate":"x-active",a=e?15:r;requestAnimationFrame(function(){X(t,i,e),window.dispatchEvent(new CustomEvent("resize"))});let c=setTimeout(function(){requestAnimationFrame(function(){X(t,s,e)})},a);return Fe=function(){!c||(clearTimeout(c),X(t,"x-active",e),X(t,"x-active-animate",e))}}function Ur(t){if(t.tagName==="BUTTON")return;let e=Yn({ignoreHoverToggle:!1});t.addEventListener("keydown",n=>{n.key==="Enter"&&e(n)})}function Yr(t){let e=function(){let n=Mc(t,".x-current-layer"),o=Array.from(n.children).filter(r=>r.matches("li")).reduce((r,i)=>r+Dc(i),0);t.style.height=`${o}px`};return e(),lt(e)}function el(t,e){let n=Ne(t);if(!n)return;let o=e?n:"";!e&&`#${n}`!==window.location.hash||`#${o}`!==window.location.hash&&(history.pushState(null,null,"#"+o),window.dispatchEvent(new CustomEvent("hashchange")))}function nl(t,e){if(e||(e=100),t){var n=document.createElement("input");n.style.position="fixed",n.style.top=t.offsetTop+7+"px",n.style.left=t.offsetLeft+"px",n.style.height=0,n.style.opacity=0,document.body.appendChild(n),n.focus(),setTimeout(function(){t.focus(),t.click(),document.body.removeChild(n)},e)}}var{addClass:jn,siblings:ol,once:rl,removeClass:Ge,hasClass:ce,listener:le,makeGetComputedStyle:jr,makeGetComputedFloatValues:il}=b,sl={interval:25,timeout:25,sensitivity:9};function Qr(t){ul(t),fl()}var Qn=t=>t?t.getBoundingClientRect():null,al=jr("position"),cl=jr("direction"),ll=il(["paddingLeft","paddingTop","paddingRight","paddingBottom","borderTopWidth","borderBottomWidth"]);function ul(t){t=Object.assign({selectors:[],indicatingSelector:"a",rootElementEvents:!1,transitionTimeout:null,requireClick(){return!1},toggleOnFocus:!0,activate(r){t.indicatingSelector?jn(r.querySelector(t.indicatingSelector),t.activeClass):jn(r,t.activeClass);let i=r.querySelector(t.nestedSelector);if(ce(i,"x-dropdown")){t.transitionTimeout&&t.transitionTimeout(),t.transitionTimeout=Ve(i,!0);return}jn(i,t.activeClass)},deactivate(r){t.indicatingSelector?Ge(r.querySelector(t.indicatingSelector),t.activeClass):Ge(r,t.activeClass);let i=r.querySelector(t.nestedSelector);if(ce(i,"x-dropdown")){t.transitionTimeout&&t.transitionTimeout(),t.transitionTimeout=Ve(i,!1);return}Ge(i,t.activeClass)},isActive(r){return t.indicatingSelector?ce(r.querySelector(t.indicatingSelector),t.activeClass):ce(r,t.activeClass)},deactivateChildren(r,i){Array.from(r.querySelectorAll(t.nestedSelector)).forEach(s=>{!ce(s,t.activeClass)||(Ge(s,t.activeClass),typeof i=="function"&&i(s))})},deactivateChild:null,activeClass:"x-active",nestedSelector:".sub-menu",findSiblings:null,closeSiblings:!0},typeof t=="object"?t:{});function e(r){var i=!1;r._stemAllowFocusIn=!0;let s=r.closest("[data-x-hoverintent]"),a=s&&s.getAttribute("data-x-hoverintent"),c=a?JSON.parse(a):sl,u=t.rootElementEvents?r:r.querySelector(t.indicatingSelector)||r,d=le(u,"mousedown",m),f=le(u,"touch",m),p=[d,f];if(p.push(le(u,"touchstart",()=>{r._stemAllowFocusIn=!1})),t.toggleOnFocus&&(p.push(le(u,"focusin",l)),p.push(le(r,"focusout",h))),!t.requireClick(r)){p.push(Et(u,"touchstart",()=>{i=!0}));let g=Or(r,function(){i||(d(),f(),n(r,!0))},function(){i||n(r,!1)});try{g.options(c)}catch{}p.push(()=>g.remove())}function l(){r._stemAllowFocusIn&&o(r,n(r,!0))}function h(){setTimeout(()=>{r.contains(document.activeElement)||o(r,n(r,!1))},0)}function m(g){g.type==="mousedown"&&rl(g.currentTarget,"click",v=>void v.preventDefault()),g.preventDefault(),g.stopPropagation();let y=n(r);o(r,y),y&&t.closeSiblings&&(typeof t.findSiblings=="function"?t.findSiblings(r):ol(r)).forEach(w=>{n(w,!1),o(w,!1)})}return p}t.selectors.forEach(r=>{S(r,e)});function n(r,i){return r._stemAllowFocusIn=!0,typeof i=="undefined"&&(i=!t.isActive(r)),i?(typeof t.beforeActivate=="function"&&t.beforeActivate(r),t.activate(r),typeof t.afterActivate=="function"&&t.afterActivate(r)):(typeof t.beforeDeactivate=="function"&&t.beforeDeactivate(r),t.deactivate(r),typeof t.afterDeactivate=="function"&&t.afterDeactivate(r)),t.isActive(r)}function o(r,i){typeof t.deactivateChildren=="function"&&(clearTimeout(r._stemCloseChildrenTimer),i||(r._stemCloseChildrenTimer=setTimeout(function(){t.deactivateChildren(r,t.deactivateChild)},1e3)))}}function fl(){function t(l){var h=[];function m(y,v){if(!v&&y.hasAttribute("data-x-stem")){h.push(y),t(y);return}if(y.children)for(var w=0;w<y.children.length;w++)m(y.children[w])}m(l,!0);let g=function(){r(l),setTimeout(()=>{h.forEach(n)},0)};l.addEventListener("x-stem:update",g,!1)}let e=[];function n(l){l&&l.dispatchEvent(new CustomEvent("x-stem:update"))}S("[data-x-stem-menu-top], [data-x-stem-root]",l=>{requestAnimationFrame(()=>{t(l),n(l),e.push(l)})});let o=B(function(){e.forEach(n)},50);window.addEventListener("tco-toggle",({detail:{state:l}={}})=>{l&&o()},W),window.addEventListener("resize",o,W),window.addEventListener("scroll",o,W),window.addEventListener("cs-sticky-bar-post-transition",o,W),V(o);function r(l){if(!l)return;let h=p(l);if(!h)return;let m=Qn(h),g=a(l),y=g==="data-x-stem-root"?Qn(document.querySelector(`[data-x-toggleable="${l.getAttribute("data-x-toggleable")}"][data-x-toggle]`)):m;if(!y)return;let v=l.getAttribute("data-x-stem-force");if(v){let H=v.indexOf("d")!==-1,$=v.indexOf("r")!==-1;l.setAttribute("data-x-stem",v),g==="data-x-stem-root"&&i(l,m,y,$,H),g||d(l,$,H);return}let w=Qn(l),{top:T,left:C,bottom:x,right:A}=s(w,y,g),{x:z,y:I}=c(l,g),M=u(z,window.innerWidth-A,C),P=u(I,window.innerHeight-x,T);l.setAttribute("data-x-stem",(P?"d":"u")+(M?"r":"l")),g==="data-x-stem-root"&&i(l,m,y,M,P),g||d(l,M,P)}function i(l,h,{top:m,left:g,bottom:y,right:v,height:w,width:T},C,x){let A=l.getAttribute("data-x-stem-root")||l.getAttribute("data-x-stem-force")||"",z=A.indexOf("h")!==-1,I=A.indexOf("c")!==-1;if(C&&!I){let P=g-h.left;l.style.left=`${z?P+T:P}px`,l.style.right="auto"}else if(I){let P=l.getBoundingClientRect(),H=g-P.width/2+T/2;H=Math.max(0,H);let $=window.innerWidth-P.width;H=Math.min(H,$),l.style.left=`${H}px`,l.style.right="auto"}else{let P=h.right-v;l.style.right=`${z?P+T:P}px`,l.style.left="auto"}let M=window.getComputedStyle(l);if(x){let P=m-h.top,H=z?P:P+w;M.position==="fixed"&&(H+=h.top),l.style.top=`${H}px`,l.style.bottom="auto"}else{let P=h.bottom-y,H=z?P:P+w;M.position==="fixed"&&(H+=h.bottom),l.style.bottom=`${H}px`,l.style.top="auto"}}function s({height:l,width:h},m,g){let y={top:m.top-l,right:m.left+m.width+h,bottom:m.top+l,left:m.left-h};return g&&(y.right+=m.width,y.bottom+=m.height),y}function a(l){return l.hasAttribute("data-x-stem-menu-top")?"data-x-stem-menu-top":l.hasAttribute("data-x-stem-root")?"data-x-stem-root":null}function c(l,h){if(h){var m=cl(l)==="ltr",g=l.getAttribute(h).indexOf("r")!==-1;return{y:!0,x:!!(m^g)}}let y=f(l);return{y:y.indexOf("d")!==-1,x:y.indexOf("r")!==-1}}function u(l,h,m){if(l&&h<0){if(h<m)return!1}else if(m<0&&m<h)return!0;return l}function d(l,h,m){let{paddingLeft:g,paddingTop:y,paddingRight:v,paddingBottom:w,borderTopWidth:T,borderBottomWidth:C}=ll(l);if(h?(l.style.marginLeft=g!==0?`${g}px`:null,l.style.marginRight=null):(l.style.marginRight=v!==0?`${v}px`:null,l.style.marginLeft=null),m){let x=y+T;l.style.marginTop=x!==0?`${x*-1}px`:null,l.style.marginBottom=null}else{let x=w+C;l.style.marginBottom=x!==0?`${(w+C)*-1}px`:null,l.style.marginTop=null}}function f(l){return l.parentElement===null?"tr":l.parentElement.hasAttribute("data-x-stem-force")?l.parentElement.getAttribute("data-x-stem-force"):l.parentElement.hasAttribute("data-x-stem")?l.parentElement.getAttribute("data-x-stem"):f(l.parentElement)}function p(l){if(l.parentElement===null)return document.body;let h=al(l.parentElement);return h==="relative"||h==="absolute"?l.parentElement:p(l.parentElement)}}var{onLoad:Jr,addClass:Qd,hasClass:Zr,removeClass:Jd,debounce:Kr,animateToElement:Zd,listener:Xr,listenerPassive:ti,onScroll:dl,onResize:pl,PASSIVE_ARGS:hl}=b,ei=t=>t.match(/#[a-zA-Z]/);Qr({selectors:[".x-menu-inline .menu-item-has-children",".x-menu-dropdown .menu-item-has-children"],beforeActivate:t=>Rt(t.querySelector("a"),!0),beforeDeactivate:t=>Rt(t.querySelector("a"),!1),deactivateChild:t=>Rt(t.querySelector("a"),!1)});Jr(()=>{let{selector:t,duration:e,easing:n,initialMove:o,before:r,after:i,allowScroll:s}=F.apply("hash_scrolling_config",{selector:window.csJsData.linkSelector,easing:"ease-out",duration:500,initialMove:!0,before:f=>F.apply("hash_scrolling_before",f),after:f=>F.apply("hash_scrolling_before",f),allowScroll:(...f)=>F.apply("hash_scrolling_allow",!0,...f)});function a(f){try{return document.querySelector(f)}catch{}return null}function c(){let f=!1;return ti(document.body,"touchstart",()=>{f=!1}),ti(document.body,"touchmove",()=>{f=!0}),()=>f}let u=(f,p=!0,l)=>{window.csGlobal.scrollTo(f,{duration:p?e:0,easing:n},l)},d=c();o&&window.location.hash&&(u(a(window.location.hash),!1),setTimeout(()=>u(a(window.location.hash),!1),300)),Xr(document.body,"click",f=>{let p=f.target.matches(t)?f.target:f.target.closest(t);if(!p||f.tcoAbortScroll)return;let l=p.getAttribute("href"),h=l.split("#");if(!h[1])return;let m=h[0].replace(location.origin,""),g=`#${h[1]}`;if(d()||m&&m!==location.pathname||!ei(l)||!s(p,f,g))return;let y=a(g);!y||(window.history.pushState&&(window.history.pushState(null,null,g),window.dispatchEvent(new CustomEvent("tcoHistoryPush"))),f.preventDefault(),r({anchor:p,target:y,hash:g}),u(y,!0,()=>void i({anchor:p,target:y,hash:g})))})});Jr(()=>{let t=!1,e,n=new Map,o=new Map,r=[],i=Kr(()=>{var f,p;let d=[];for(let[l,h]of o){let m=((p=(f=h.getBoundingClientRect())==null?void 0:f.top)!=null?p:0)+window.scrollY;d.push({y:m,href:l})}r=d.sort((l,h)=>h.y-l.y)},100),s=d=>{if(e!==d){for(let[f,p]of n)if(f===d)for(let l of p)Zr(l,"x-anchor")&&Fn(l,!0),F.apply("scrollspy_activate",l);else for(let l of p)Zr(l,"x-anchor")&&Fn(l,!1),F.apply("scrollspy_deactivate",l);e=d}};S(window.csJsData.linkSelector,d=>{let f=F.apply("scrollspy_ignore_patterns",["#/","#wp-toolbar"]),p=`#${d.getAttribute("href").trim().split("#").pop()}`;if(!(!ei(p)||f.find(l=>l.match(p))))return n.has(p)||n.set(p,new Set),n.get(p).add(d),[S(p,l=>(o.has(p)||o.set(p,l),i(),()=>{o.has(p)&&o.delete(p)})),()=>{var l;(l=n.get(p))==null||l.delete(d)},Xr(d,"click",()=>{t=!0,s(p)},{capture:!0})]}),pl(i);let a=()=>{var f,p;let d=window.scrollY+ee()+1;return Math.ceil(window.innerHeight+window.scrollY)>=Math.floor(document.body.offsetHeight)?(p=(f=r.map((l,h)=>({...l,i:h})).sort((l,h)=>h.y-d-(l.y-d))[0])==null?void 0:f.i)!=null?p:-1:r.findIndex(({y:l})=>d>=l)},c=()=>{t=!1;let d=a();s(d===-1?"":r[d].href)},u=Kr(c,250);u(),window.addEventListener("hashchange",function(d){s(window.location.hash)},hl),dl(()=>{r.length<=0||(t?u():c())})});var{transitionEnd:ml,addClass:Jn,removeClass:Zn,farthest:ni,getCachedJsonAttribute:oi,oncePassive:Xd,listenerPassive:gl,evaluateCondition:yl,expandElementValue:ri,makeAlternatingSynchronizer:Kn,makeElementWeakMap:Xn,getDurations:vl,lockMotion:ii,forceOpaque:wl,runAnimation:si,elementMeta:xl,waypoint:ai,parseTime:bl}=b,St="x-effect-enter",to="x-effect-entering",rt="x-effect-exit",eo="x-effect-exiting",Ue="x-effect-animated",Ye="x-effect-holding",Sl="x-effect-opacity";S("[data-x-single-anim]",(t,e)=>{if(!t.classList.contains("x-always-active"))return gl(t.closest(".x-anchor, .x-text"),"mouseenter",()=>void si(t,{animation:e,remove:!0}))});var ci=Xn({scrollEffects:!1}),Tl=()=>{let{get:t,set:e,has:n}=Xn();return o=>(n(o)||e(o,{effects:[],particles:[]}),t(o))},je=Tl(),li=Xn(0),ui=t=>{li.set(t,vl(t))},fi=(t,e="transitionTime")=>{var n,o;return(o=(n=li.get(t))==null?void 0:n[e])!=null?o:0},di=(t,{from:e,to:n,trans:o,record:r=!1},i=()=>{})=>(t.classList.remove(e),t.classList.add(o),t.classList.add(n),r&&ui(t),t.csAnimationEndingTimeout&&clearTimeout(t.csAnimationEndingTimeout),()=>{t.csAnimationEndingTimeout=setTimeout(function(){t.classList.remove(o)},250),i()}),pi=(t,e,n=()=>{})=>si(t,{className:Ue,animation:e,remove:!0,timeout:!0},n),Al=(t,e)=>{t.classList.contains(rt)||(t.classList.contains(Ue)||t.classList.add(Ue),t.style.setProperty("animation-duration","0ms","important"),t.style.setProperty("animation-name",e))},hi=(t,e,n)=>ml(t,di(t,e,n)),mi=(t,e,n,o)=>pi(t,e,di(t,n,o)),El=(t,e,n)=>mi(t,e,{from:rt,to:St,trans:to,record:!0},n),gi=(t,e,n)=>mi(t,e,{from:St,to:rt,trans:eo},n),Cl=(t,e)=>hi(t,{from:rt,to:St,trans:to,record:!0},e),yi=(t,e)=>hi(t,{from:St,to:rt,trans:eo},e),kl=(t,e,n)=>{Jn(t,Ye),setTimeout(wl(t,{after:()=>{Zn(t,Ye),n()}}),e)},vi=(t,e,n)=>{let o=ii(t,e==="fade"?"opacity":null);t.style.setProperty("opacity",e==="fade"?0:1,"important");let r=fi(t);Jn(t,Ye),setTimeout(()=>{Zn(t,St),Zn(t,Ye),Jn(t,rt),t.style.removeProperty("opacity"),o(),n()},r)};function Ll(t,e,n){let o,r=0,i,s,{durationBase:a,animationAlt:c}=oi(t,"data-x-effect"),u=bl(a),d=()=>{window.removeEventListener("mousemove",g),c?n(()=>{f()}):(n(),u?setTimeout(()=>{f()},u):f())},f=()=>{t.addEventListener("mouseenter",h)},p=()=>{let{top:v,left:w,width:T,height:C}=t.getBoundingClientRect();o.push({top:v+window.scrollY,left:w+window.scrollX,width:T,height:C})},l=v=>{r=0,o=[],p(),e(),u?(clearTimeout(i),i=setTimeout(()=>{p()},u)):p()},h=v=>{clearTimeout(s),window.addEventListener("mousemove",g),l(v)},m=v=>{r++,r>10&&o.length===o.filter(T=>y(T,v.clientX,v.clientY,window.scrollX,window.scrollY)).length&&d()},g=v=>{m(v),clearTimeout(s),s=setTimeout(()=>{m(v)},300)},y=({top:v,left:w,height:T,width:C},x,A,z,I)=>{let M=v-I,P=w-z,H=x>P&&x<P+C,$=A>M&&A<M+T;return!H||!$};f()}S("[data-x-effect-provider]",(t,e="")=>{e.split(" ").filter(o=>!ni(t,`[data-x-effect-provider*="${o}"]`)).length>0&&no(t)});function no(t){let e=je(t);e.registered||Ll(t,()=>{let{registered:n,...o}=je(t);Object.keys(o).forEach(r=>{o[r].forEach(({setup:i})=>{i&&i()})})},()=>{let{registered:n,...o}=je(t);Object.keys(o).forEach(r=>{o[r].forEach(({teardown:i})=>{i&&i()})})}),e.registered=!0}function wi(t,e,n=()=>{},o=()=>{},r=!0){let i=ni(e,`[data-x-effect-provider*="${t}"]`),s=r?i||e:i;return s?(je(s)[t].push({el:e,setup:n,teardown:o}),e===s):!1}S(".x-anchor",t=>{wi("particles",t)&&no(t)});S("[data-x-effect]",(t,e)=>{try{return wi("effects",t,()=>{e.animationAlt&&pi(t,e.animationAlt)},()=>{},!t.matches("x-anchor"))&&no(t),$l(t,e)}catch(n){console.warn(n)}},1e3);var Ol=(t,e)=>Kn(n=>Cl(t,n),n=>e==="transform"?yi(t,n):vi(t,e,n)),Il=(t,e,{animationEnter:n,animationExit:o})=>Kn(r=>El(t,n,r),r=>e==="animation"?gi(t,o,r):vi(t,e,r)),Pl=(t,e,n)=>Kn(o=>{if(ui(t),["transform","animation"].includes(e)){e==="animation"&&(t.classList.remove(Ue),t.style.setProperty("opacity",0,"important"),t.style.removeProperty("animation-name"),t.offsetHeight,t.style.removeProperty("opacity"));let r=ii(t,"opacity");t.classList.remove(rt),r()}o()},o=>{switch(e){case"none":return kl(t,fi(t),o);case"transform":return yi(t,o);case"animation":return gi(t,n.animationExit,o);default:o()}}),xi=(t,e,n)=>{let o=oi(t,"data-x-effect");if(o.scroll){let r=a=>a==="effect"?o.animationEnter&&o.animationExit?"animation":"transform":a;e!=="effect"&&n!=="effect"&&(t.classList.add("x-no-at"),t.classList.remove("x-effect-exit"),setTimeout(()=>{t.classList.remove("x-no-at")}));let i=r(e),s=r(n);switch(s==="animation"&&Al(t,o.animationExit),e==="effect"&&["fade","none"].includes(n)&&t.classList.add(Sl),i){case"animation":return Il(t,r(n),o);case"transform":return Ol(t,s,o);case"fade":return Pl(t,s,o)}}return!1};nt("effects",(t,{key:e,condition:n,enter:o,exit:r})=>{ci.set(t,{scrollEffects:"managed"});let i=xi(t,ri(t,o),ri(t,r));return i?s=>void i(yl(t,n,s,e)):()=>{}});var Ml=(t,{behaviorScroll:e})=>{let n=xi(t,"effect","effect"),o=!1;return r=>{if(ql())return;let[i,s]=r.split(":");e==="reset"&&i==="exit"&&s==="down"||e==="fire-once"&&o||(i==="enter"&&(o=!0),n(i==="enter"))}},Hl=t=>{let e=parseInt(t);return t.includes("px")?()=>e:()=>window.innerHeight*e/100},zl=t=>{let e=parseInt(t);return t.includes("px")?()=>window.innerHeight-e:()=>window.innerHeight-window.innerHeight*(parseInt(e)/100)};function Rl(t,e){let n,o=()=>{},r=()=>{let{effectRivet:i}=xl.get(e);i?o=te([[t,...i]]):setTimeout(r,10)};return r(),()=>{clearTimeout(n),o()}}function $l(t,e){let n=t.closest("[data-x-slide], [data-x-slide-goto]");if(n&&t!==n)return Rl(t,n);if(!e.scroll||ci.get(t).scrollEffects==="managed")return;if(window.csGlobal.isPreview&&t.classList.add(rt),e.forceScrollEffect){t.classList.remove(St),t.classList.remove(to),t.classList.remove(rt),t.classList.remove(eo),e.forceScrollEffect==="in"&&t.classList.add(St),e.forceScrollEffect==="out"&&t.classList.add(rt);return}let o=Ml(t,e),{offsetTop:r="10%",offsetBottom:i="10%"}=e;ai(t,s=>void o(`${s==="up"?"enter":"exit"}:${s}`),Hl(r),!1),ai(t,s=>void o(`${s!=="up"?"enter":"exit"}:${s}`),zl(i),!1)}function ql(){return document.body.classList.contains("tco-disable-effects")}var{defer:Dl,addClass:bi,toggleClass:_l,removeClass:Fl,listenerPassive:qt}=b;S("[data-x-search]",function(t){let e=t.querySelector("input"),n=()=>Dl(()=>e.focus()),o=()=>_l(t,"x-search-has-content",!!e.value);return[qt(e,"input",o),qt(t,"mousedown",()=>{bi(t,"x-search-focused"),n()}),qt(t,"focusin",()=>void bi(t,"x-search-focused")),qt(t,"focusout",()=>void Fl(t,"x-search-focused")),qt(t.querySelector("[data-x-search-clear]"),"click",()=>{e.value="",e.focus(),o()}),qt(t.querySelector("[data-x-search-submit]"),"click",()=>{window.csGlobal.isPreview||t.submit()})]});S("[data-x-element-bg-layer]",(t,{parallaxDir:e="v",parallaxRev:n=!1,parallaxSize:o=""})=>{let r=t.closest(".x-bg"),i=e==="h";t.style.opacity="1",i?(n||(t.style.left="auto",t.style.right="0"),t.style.width=o):(n||(t.style.top="auto",t.style.bottom="0"),t.style.height=o);let s=!1;function a(){if(s)return;s=!0;let{width:u,height:d,top:f,bottom:p}=r.getBoundingClientRect();if(f<=window.innerHeight&&p>=0){let{width:l,height:h}=t.getBoundingClientRect(),m=n?-1:1,g=i?l-u:h-d,y=1-p/(window.innerHeight+d),v=`${parseInt(y*g*m,10)}px`,w=i?`translate3d(${v}, 0, 0)`:`translate3d(0, ${v}, 0)`;t.style.transform=w}s=!1}function c(){requestAnimationFrame(a)}return[un(c),lt(c),V(c)]});V(function(){S("[data-x-scroll-link]",function(t,e){let n=document.querySelector(e);return D(t,"wheel",function(o){n.scrollTop+=o.deltaY})})});var{addClass:Bl,removeClass:Si,hasClass:Nl,listenerPassive:ue}=b;function oo(t,e){(e!=null?e:!Nl(t,"is-active"))?(Si(t,"has-not-flipped"),Bl(t,"is-active")):Si(t,"is-active")}var Qe=!1;S("[data-x-element-card]",t=>[ue(t,"touchstart",()=>{Qe=!0}),ue(t,"click",({target:e})=>{t.contains(e.closest("a"))||oo(t)}),ue(t,"pointerenter",()=>{setTimeout(function(){Qe||oo(t,!0)},15)}),ue(t,"pointerleave",()=>{Qe||oo(t,!1)}),ue(t,"touchend",()=>{setTimeout(function(){Qe=!1},100)})]);var{makeRafLoop:Wl}=b;function Vl(t,e){let n=`${t}`;for(;n.length<e;)n=`0${n}`;return n}function Gl(){let t=new WeakMap;return function(e,n){t.has(e)||t.set(e,e.innerHTML),n!==t.get(e)&&(e.innerHTML=n,t.set(e,n))}}function Ti({el:t,end:e,serverTimezone:n,leadingZeros:o=!0,hideEmpty:r=!0,loadingClass:i="is-loading",completeClass:s="is-complete",digitClass:a="x-countdown-digit",completeMessageTag:c="div",completeMessageContent:u="",completeMessageClass:d="x-countdown-complete",hideOnComplete:f=!1,selectors:p={days:"[data-x-countdown-d]",hours:"[data-x-countdown-h]",minutes:"[data-x-countdown-m]",seconds:"[data-x-countdown-s]",daysLabel:"[data-x-countdown-label-d]",hoursLabel:"[data-x-countdown-label-h]",minutesLabel:"[data-x-countdown-label-m]",secondsLabel:"[data-x-countdown-label-s]",parent:"[data-x-countdown-unit]",aria:"[data-x-countdown-aria]"},singularLabels:l={d:"Day",h:"Hour",m:"Minute",s:"Second"},pluralLabels:h={d:"Days",h:"Hours",m:"Minutes",s:"Seconds"},ariaLabel:m="Countdown ends in {{d}} days, {{h}} hours, and {{m}} minutes."}={}){if(!t)return;let g={days:t.querySelector(p.days),hours:t.querySelector(p.hours),minutes:t.querySelector(p.minutes),seconds:t.querySelector(p.seconds)},{days:y,hours:v,minutes:w,seconds:T}=g,C={d:t.querySelector(p.daysLabel),h:t.querySelector(p.hoursLabel),m:t.querySelector(p.minutesLabel),s:t.querySelector(p.secondsLabel)},x=new Date(e).getTime(),z=(new Date().getTimezoneOffset()/60-n)*1e3*60*60,I=Gl(),M=O=>{let R=Math.abs(O),_=parseInt(R/86400);R%=86400;let it=parseInt(R/3600);R%=3600;let Tt=parseInt(R/60);R%=60;let po=parseInt(R);return y||(it+=_*24),v||(Tt+=it*60),w||(po+=Tt*60),{diffDays:_,diffHours:it,diffMinutes:Tt,diffSeconds:po}},P=()=>{if(Object.keys(g).forEach(Q),f){t.style.display="none",I(t,"");return}if(!u)return;let O=document.createElement(c);O.innerHTML=u,d&&O.classList.add(d),t.append(O),t.classList.add(s)},H=O=>(o?Vl(O,2):O.toString()).split("").map(_=>`<span class="${a}">${_}</span>`).join(""),$=(O,R)=>{if(!O||!C[O])return;let _=C[O];I(_,(R?l:h)[O])},pe=({diffDays:O,diffHours:R,diffMinutes:_,diffSeconds:it})=>{y&&(I(y,H(O)),$("d",O===1)),v&&(I(v,H(R)),$("h",R===1)),w&&(I(w,H(_)),$("m",_===1)),T&&(I(T,H(it)),$("s",it===1))},Z=({diffDays:O,diffHours:R,diffMinutes:_,diffSeconds:it})=>{let Tt=t.querySelector(p.aria);Tt&&I(Tt,m.replace(/{{d}}/g,O).replace(/{{h}}/g,R).replace(/{{m}}/g,_).replace(/{{s}}/g,it))},Q=O=>{if(!g[O])return;let R=g[O].closest(p.parent);R&&(R.remove(),g[O]=null)},zi=({diffDays:O,diffHours:R,diffMinutes:_})=>{O===0&&Q("days"),O===0&&R===0&&Q("hours"),O===0&&R===0&&_===0&&Q("minutes")},Ri=z+new Date().getTime();return Wl(O=>{let R=Ri+O;if(R>x)return P(),!1;let _=M((R-x)/1e3);r&&zi(_),pe(_),Z(_),O===0&&t.classList.remove(i)})}S("[data-x-element-countdown]",(t,e={})=>Ti({el:t,...e}));var{waypoint:Ul,tween:Yl,getPrecisionLength:jl,getPrecisionLengthWithCommas:Ql,round:Jl}=b,Zl=",",Ai=".",Kl=/(-)?(\d+)(\.\d+)?/;function Xl({el:t,from:e,to:n,commaSeparatedDecimal:o=!1,...r}){let i=typeof e=="undefined"?t.textContent:e,s=typeof n=="undefined"?t.textContent:n,a=o?Ai:Zl,c=s.toString().includes(a)||i.toString().includes(a),u=o?Ql:jl,d=Math.max(u(s),u(i)),f=h=>{if(!h)return console.warn("Input invalid",h),"";let[,m="",g="",y=""]=h.match(Kl),v=g.split("").reverse(),w=[];for(;v.length;)w.push(v.splice(0,3).reverse().join(""));return`${m}${w.reverse().join(a)}${y}`},p=Ei(i,a),l=Ei(s,a);Yl(p,{...r,update:h=>{let m=Jl(h,Math.pow(10,d)).toFixed(d),g=c?f(m):m;t.textContent=o?g.replace(/\.(\d+)$/,",$1"):g}})(l)}function Ei(t,e){let n=0;return e===Ai&&(n=t.split(",")||[],n=n[1]||0,n&&n.length&&(n=n/Math.pow(10,n.length))),parseFloat(t.replace(new RegExp("\\"+e,"g"),""))+n}S("[data-x-element-counter]",(t,{to:e,speed:n,selector:o=".x-counter-number",commaSeparatedDecimal:r})=>Ul(t,()=>void Xl({el:t.querySelector(o),to:e,commaSeparatedDecimal:r,duration:n}),"85%"));function Ci(t,e={}){try{return JSON.parse(t)}catch{}return e}var{intersect:tu,hasClass:ct,addClass:eu,removeClass:ro,unwrapHtmlTemplate:nu,dispatch:ki,listener:Je,onResize:ou,elementIsVisibleInViewport:ru}=b,iu=["playpause","progress"],su=["playpause","current","progress","duration","tracks","volume","fullscreen"];S("[data-x-element-mejs]",(t,{poster:e,options:n={}})=>{let o=ct(t,"bg")||ct(t,"x-video-bg"),r=ct(t,"vimeo")||ct(t,"youtube"),i=t.getAttribute("data-x-video-options")||n;i=typeof i=="string"?Ci(i):i||{};let s=[];if(o&&(e&&(eu(t,"poster"),t.style.backgroundImage=`url(${e})`,setTimeout(()=>void ro(t,"transparent"),500)),nu(t.querySelector('script[type="text/template"]')),s.push(Je(t,"xmejs-start",()=>{ro(t.querySelector(".transparent"),"transparent"),ro(t,"transparent")}))),!window.mejs)return;let a=t.querySelector(".x-mejs");if(!a||ct(a.parentElement,"mejs-mediaelement"))return;let c=l=>{console.warn("MEJS media error.",l),l.stopPropagation()},u=ct(a,"advanced-controls")?su:iu;u=window.csGlobal.csHooks.apply("cs_mejs_video_features",u,t);let d=window.csGlobal.csHooks.apply("cs_mejs_video_player_args",{pluginPath:window._wpmejsSettings.pluginPath,startVolume:1,features:o?[]:u,audioWidth:"100%",audioHeight:32,audioVolume:"vertical",videoWidth:"100%",videoHeight:"100%",videoVolume:"vertical",pauseOtherPlayers:!1,alwaysShowControls:!0,hideVolumeOnTouchDevices:!1,setDimensions:!1,stretching:"responsive",autoRewind:!1,success:f,error(l){c(l)}});try{window.jQuery(a).mediaelementplayer(d)}catch(l){c(l)}function f(l,h,m){let g=!0,y=!0;ct(t,"autoplay")&&(!i.pause_out_of_view||ru(t))&&(h.setAttribute("autoplay",!0),setTimeout(()=>{h.play()},100));let v=()=>{h.attributes.hasOwnProperty("autoplay")&&g&&(l.play(),g=!1),h.attributes.hasOwnProperty("muted")&&y&&(l.setMuted(!0),y=!1),l.removeEventListener("canplay",v)};l.addEventListener("canplay",v);let w=m.controls[0].querySelector(".mejs-volume-button");l.addEventListener("volumechange",()=>l.setVolume(ct(w,"mejs-mute")?1:0)),l.addEventListener("ended",()=>{h.attributes.hasOwnProperty("loop")&&l.play()}),o||l.addEventListener("playing",()=>{Object.keys(window.mejs.players).filter(T=>T!==m.id&&!window.mejs.players[T].xIsVideoBG).map(T=>window.mejs.players[T]).forEach(T=>T.pause())}),m.isVideo===!0&&(m.xIsVideoBG=o,p(l,h,m))}function p(l,h,{container:m,controls:g}){if(l.addEventListener("timeupdate",function v(){ki(t,"xmejs-start"),l.removeEventListener("timeupdate",v)}),Je(m[0],"fullscreenchange",()=>{document.fullscreenElement||l.removeAttribute("style")}),r&&s.push(Je(t,"xmejs-start",()=>{var v;(v=t.querySelector("video.x-mejs"))==null||v.removeAttribute("poster")})),o)l.addEventListener("playing",()=>{l.setMuted(!0),ki(t,"xmejs-bgvideoready")}),s.push(Je(t,"xmejs-bgvideoready",y)),s.push(ou(y));else{let v=()=>g.stop().animate({opacity:1},150),w=()=>g.stop().animate({opacity:0},150);l.addEventListener("playing",()=>m.on("mouseenter",v).on("mouseleave",w)),l.addEventListener("pause",()=>{m.off("mouseenter mouseleave"),v()})}i.pause_out_of_view&&s.push(au(t,l));function y(){let v=t.querySelector(r?".me-plugin":"video"),w=h.videoWidth,T=h.videoHeight,C=r||w===0?1280:w,x=r||T===0?720:T,A=t.offsetWidth||0,z=t.offsetHeight||0,I=A/C,M=z/x,P=I>M?I:M,H=Math.ceil(P*C+20),$=Math.ceil(P*x+20),pe=Math.ceil((H-A)/2),Z=Math.ceil(($-z)/2);v.style.width=`${H}px`,v.style.height=`${$}px`}}return s});function au(t,e){let n=ct(t,"autoplay");return tu(t,function(o){if(o.isIntersecting){n&&e.play();return}e.pause()})}var{waypoint:cu}=b;S("[data-x-element-statbar]",(t,{triggerOffset:e}={})=>{cu(t,()=>{Array.from(t.querySelectorAll(".x-statbar-bar, .x-statbar-label")).forEach(n=>{n.classList.add("x-active")})},e)});var{listener:mp,onLoad:lu,onResize:uu,getOuterHeight:fu}=b;S("[data-x-element-tabs]",(t,{equalPanelHeight:e})=>{if(!e)return;let n=Array.from(t.querySelectorAll(".x-tabs-panels")),o=()=>{let r=n.reduce((i,s)=>Math.max(i,fu(s)),0);n.forEach(i=>{i.style.height=`${r}px`})};return o(),[lu(o),uu(o)]});S("script[data-cs-late-style]",function(t){let e=document.createElement("style");e.setAttribute("id",`cs-late-css-${t.getAttribute("data-cs-late-style")}`),e.appendChild(window.document.createTextNode(t.textContent)),window.document.head.appendChild(e),t.remove()});var{listener:Li,PASSIVE_ARGS:du}=b;S("[data-x-toggleable]",t=>Nr(t));var io=!1,Oi=!1;document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&!Oi&&(Oi=!0,window.document.body.addEventListener("click",Yn()),S("[data-x-toggleable]",t=>{let e=j(t),n=Ne(t);($t(e)||n&&n===se())&&(window.csGlobal.isPreview&&(io=!0,t.setAttribute("data-x-disable-animation",!0)),N({id:e,state:!0,force:!0,hashUpdate:!1}),io&&(io=!1,setTimeout(()=>{t.removeAttribute("data-x-disable-animation")},60)))}))},du);S("[data-x-toggleable]:not([data-x-toggle])",Gr);S("[data-x-toggle]",Ur);V(function(){let t=[];S("[data-x-esc-close]",function(e){let n=j(e);return n||console.warn("No toggle id setup for element, but using data-x-esc-close",e),t.push(n),function(){let o=t.indexOf(n);o!==-1&&t.splice(o,1)}}),D(window,"keyup",function(e){if(e.key!=="Escape")return;let n=window.xGetLastToggleable();!n||!window.xToggleGetState(n)||!t.includes(n)||N({id:n,state:!1})})});S("[data-x-toggle-layered-root]",Yr);F.filter("hash_scrolling_allow",(t,e,n)=>n.target.hasAttribute("data-x-toggle-nested-trigger")||n.target.hasAttribute("data-x-skip-scroll")?!1:t);F.action("hash_scrolling_before",({anchor:t})=>{let e=t.closest(".x-modal.x-active, .x-off-canvas.x-active");e&&!(t.hasAttribute("data-x-toggleable")&&!t.querySelector("[data-x-toggle-nested-trigger]"))&&N({id:e.getAttribute("data-x-toggleable"),state:!1})});G("ontoggleclose",(t,e,n)=>Li(n.closest("[data-x-toggleable]"),"tco-toggle",o=>{o.detail.state&&t()}),{defaultOption:"throttle"});G("ontoggleopen",(t,e,n)=>Li(n.closest("[data-x-toggleable]"),"tco-toggle",o=>{o.detail.state||t()}),{defaultOption:"throttle"});window.addEventListener("tcoHistoryPush",Un,!1);window.addEventListener("hashchange",Un,!1);var{onScroll:pu,onResize:Ii,addClass:so,removeClass:ao,toggleClass:hu,onLoad:co,tween:Pi,getOuterHeight:lo,scrollOffset:uo,listener:ht,oncePassive:Mi,getCachedJsonAttribute:fo,waypoint:fe,fontCompress:mu}=b;function J(t,e){S(`[data-x-element="${t}"]`,n=>void e.call(n,n,fo(n,"data-x-params")))}S("[data-x-element-responsive-text]",(t,{selector:e,compression:n,minFontSize:o,maxFontSize:r})=>{e&&Array.from(document.querySelectorAll(e)).forEach(i=>mu(i,{c:n,min:o,max:r}))});var gu=()=>!!(/Android|webOS|Opera Mini|windows phone/i.test(navigator.userAgent)||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);function Hi(t){if(!Bt(t,"parallax"))return;if(gu()){t.style.backgroundAttachment="scroll",t.style.backgroundSize="cover",t.style.backgroundPosition="center";return}let e=0;Bt(t,"bg-image")&&(e=.1),Bt(t,"bg-pattern")&&(e=.3);let n=uo(t).top,o=document.readyState==="complete",r=()=>{let{top:i}=uo(t);i+t.offsetHeight<window.scrollY||i>window.scrollY+window.innerHeight||(t.style.backgroundPosition=`50% ${Math.floor((n-window.scrollY)*e)}px`)};return o&&r(),[pu(r),Ii(()=>{n=uo(t).top}),co(()=>{o=!0,r()})]}J("section",Hi);J("content_band",Hi);J("column",(t,e)=>{!e.fade||fe(t.parentElement,()=>{t.style.opacity="1",t.style.transform="translate(0, 0)"},"65%")});J("classic_card",function(t){function e(m){m.target.tagName!=="A"&&hu(t,"flipped")}function n(){so(t,"flipped")}function o(){ao(t,"flipped")}let r=ht(t,"click",e),i=ht(t,"mouseenter",n),s=ht(t,"mouseleave",o),a;ht(t,"touchstart",()=>{a&&a(),a=ht(t,"touchend",e)}),ht(t,"touchmove",()=>{a&&a()}),Mi(t,"touchstart",()=>{r(),i(),s()});let c=t.querySelector(".x-card-inner"),u=t.querySelector(".x-face-outer.front"),d=u.querySelector(".x-face-content"),f=t.querySelector(".x-face-outer.back"),p=u.querySelector(".x-face-content"),l=m=>{let{borderTopWidth:g,borderBottomWidth:y}=getComputedStyle(f);return parseFloat(g)+parseFloat(y)};function h(){let m=Math.max(lo(d)+l(f),lo(p)+l(u));c.style.height=`${m}px`}return[co(h),Ii(h,!0)]});J("skill_bar",(t,e)=>{let n=t.querySelector(".bar");fe(t,()=>{Pi(0,{duration:750,update:o=>{n.style.width=`${o}%`}})(parseFloat(e.percent))},"95%")});J("recent_posts",function(t,{fade:e}){if(!e)return;let n=Array.from(t.querySelectorAll("a"));fe(t,()=>{n.forEach((o,r)=>{setTimeout(()=>{Pi(0,{duration:750,update:i=>{o.style.opacity=`${i}`}})(1)},r*90)}),setTimeout(()=>{so(t,"complete")},n*90+400)},"75%")});J("creative_cta",function(t,e){let n=t.querySelector(".graphic");n.style.transform="translate(-50%, -50%) scale(0)";let o=()=>{n.style.transform="translate(-50%, -50%) scale(0)",t.style.backgroundColor=e.bg_color};return o(),[ht(t,"mouseenter",()=>{t.style.backgroundColor=e.bg_color_hover,n.style.transform="translate(-50%, -50%) scale(1)"}),ht(t,"mouseleave",o)]});J("feature_box",function(t,e){e.child!==!0&&e.graphicAnimation!=="none"&&fe(t,()=>{setTimeout(()=>{de(t.querySelector(".x-feature-box-graphic-outer"),"animated "+e.graphicAnimation)},e.graphicAnimationDelay)},e.graphicAnimationOffset+"%")});J("feature_list",function(t,e){var n=fo(t.querySelector(".x-feature-box"),"data-x-params"),o=0;if(n.graphicAnimation!=="none"||n.connectorAnimation!=="none"){let r=Array.from(t.children);fe(t,function(){setTimeout(function(){r.forEach((i,s)=>{var c;if(n.graphicAnimation!=="none"&&de(i.querySelector(".x-feature-box-graphic-outer"),"animated "+n.graphicAnimation,o++,e.animationDelayBetween),n.connectorAnimation!=="none"){var a="animated "+n.connectorAnimation;let u=i.querySelector(".lower");u&&de(u,a,o,e.animationDelayBetween);let d=(c=r[s+1])==null?void 0:c.querySelector(".upper");d&&de(d,a,o,e.animationDelayBetween);let f=i.querySelector(".full");f&&de(f,a,o++,e.animationDelayBetween)}})},e.animationDelayInitial)},e.animationOffset+"%")}});J("tab_nav",function(t,{orientation:e}){e==="vertical"&&(t.style.minHeight=`${lo(t.nextElementSibling)}px`)});function de(t,e,n=0,o=0){let r=e.split(" ").map(i=>i.trim()).filter(i=>!!i);setTimeout(()=>{ao(t,"animated-hide"),r.forEach(i=>void so(t,i)),Mi(t,"animationend",()=>{r.forEach(i=>void ao(t,i))})},n*o)}window.csGoogleMapsClassic=async function(){let{AdvancedMarkerElement:t,PinElement:e}=await window.google.maps.importLibrary("marker");J("google_map",function(n,o){if(!window.google||!window.google.maps)return;function r(y){var v=[],w=[];Array.from(n.querySelectorAll(".x-google-map-marker")).forEach(function(T,C){var x=fo(T,"data-x-params");let A;if(x.image){let M=document.createElement("img");M.src=x.image,A=M}var z=new t({map:y,position:new window.google.maps.LatLng(x.lat,x.lng),content:A});if(v[C]=z,x.markerInfo!==""){var I=new window.google.maps.InfoWindow({content:x.markerInfo,maxWidth:200});w[C]=I,x.startOpen&&I.open(y,z),window.google.maps.event.addListener(v[C],"click",function(){I.open(y,this)})}})}var i=n.querySelector(".x-google-map-inner"),s=o.lat,a=o.lng,c=new window.google.maps.LatLng(s,a),u=o.drag,d=parseInt(o.zoom),f=o.zoomControl,p=o.hue,l=[{featureType:"all",elementType:"all",stylers:[{hue:p||null}]},{featureType:"water",elementType:"all",stylers:[{hue:p||null},{saturation:0},{lightness:50}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]}],h={scrollwheel:!1,draggable:u===!0,zoomControl:f===!0,disableDoubleClickZoom:!1,disableDefaultUI:!0,zoom:d,center:c,mapTypeId:window.google.maps.MapTypeId.ROADMAP,mapId:o.mapId||"DEMO_MAP_ID"},m=new window.google.maps.StyledMapType(l,{name:"Styled Map"}),g=new window.google.maps.Map(i,h);g.mapTypes.set("map_style",m),g.setMapTypeId("map_style"),r.call(this,g)})};co(()=>{let t=window.jQuery;if(!t)return;let e={animation:!0,placement:"top",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",container:!1},n={placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'};class o{constructor(i,{type:s="tooltip",...a}){this.type=s,this.options={...s==="popover"?n:e,...a},this.hoverState=null,this.$element=null,this.enter=()=>{this.hoverState="in",this.show()},this.leave=()=>{this.hoverState="out",this.hide()},this.toggle=()=>{this.tip().hasClass("in")?this.leave():this.enter()},this.el=i,this.$element=t(i),this.$body=t("body");for(var c=this.options.trigger.split(" "),u=c.length;u--;){var d=c[u];if(d=="click")this.$element.on("click."+this.type,!1,this.toggle);else{var f=d=="hover"?"mouseenter":"focusin",p=d=="hover"?"mouseleave":"focusout";this.$element.on(f+"."+this.type,!1,this.enter),this.$element.on(p+"."+this.type,!1,this.leave)}}(this.$element.attr("title")||typeof this.$element.attr("data-original-title")!="string")&&this.$element.attr("data-original-title",this.$element.attr("title")||"").attr("title","")}show(){var i=t.Event("show.bs."+this.type);if(this.getTitle()||this.getContent()){this.$element.trigger(i);var s=t.contains(document.documentElement,this.$element[0]);if(i.isDefaultPrevented()||!s)return;var a=this,c=this.tip(),u=this.getUID(this.type);this.setContent(),c.attr("id",u),this.$element.attr("aria-describedby",u),this.options.animation&&c.addClass("fade");var d=typeof this.options.placement=="function"?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement,f=/\s?auto?\s?/i,p=f.test(d);p&&(d=d.replace(f,"")||"top"),c.detach().css({top:0,left:0,display:"block"}).addClass(d).data("bs."+this.type,this),this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element);var l=this.getElementPosition(this.el),h=c[0].offsetWidth,m=c[0].offsetHeight;if(p){var g=d,y=this.getElementPosition(this.el.parentElement);d=d=="bottom"&&l.top+l.height+m-y.scroll>y.height?"top":d=="top"&&l.top-y.scroll-m<0?"bottom":d=="right"&&l.right+h>y.width?"left":d=="left"&&l.left-h<y.left?"right":d,c.removeClass(g).addClass(d)}var v=this.getCalculatedOffset(d,l,h,m);this.applyPlacement(v,d);var w=function(){a.$element.trigger("shown.bs."+a.type),a.hoverState=null};this.$tip.hasClass("fade")?c.one("transitionend",w):w()}}applyPlacement(i,s){var a=this.tip(),c=a[0].offsetWidth,u=a[0].offsetHeight,d=parseInt(a.css("margin-top"),10),f=parseInt(a.css("margin-left"),10);isNaN(d)&&(d=0),isNaN(f)&&(f=0),i.top=i.top+d,i.left=i.left+f,t.offset.setOffset(a[0],t.extend({using:function(v){a.css({top:Math.round(v.top),left:Math.round(v.left)})}},i),0),a.addClass("in");var p=a[0].offsetWidth,l=a[0].offsetHeight;s=="top"&&l!=u&&(i.top=i.top+u-l);var h=this.getViewportAdjustedDelta(s,i,p,l);h.left?i.left+=h.left:i.top+=h.top;var m=h.left?h.left*2-c+p:h.top*2-u+l,g=h.left?"left":"top",y=h.left?"offsetWidth":"offsetHeight";a.offset(i),this.replaceArrow(m,a[0][y],g)}replaceArrow(i,s,a){this.arrow().css(a,i?50*(1-i/s)+"%":"")}setContent(){let i=this.tip(),s=this.getTitle();if(this.type==="popover"){let a=i.find(".popover-title");s?a.text(s):i.find(".popover-title").hide(),i.find(".popover-content").empty().text(this.getContent())}else i.find(".tooltip-inner").text(s);i.removeClass("fade in top bottom left right")}hide(){var i=this,s=this.tip(),a=t.Event("hide.bs."+this.type);this.$element.removeAttr("aria-describedby");function c(){i.hoverState!="in"&&s.detach(),i.$element.trigger("hidden.bs."+i.type)}if(this.$element.trigger(a),!a.isDefaultPrevented())return s.removeClass("in"),this.$tip.hasClass("fade")?s.one("transitionend",c):c(),this.hoverState=null,this}getContent(){return this.type!=="popover"?"":this.$element.attr("data-content")||this.getContentOption()}getViewportDimensions(){return{...window.document.body.getBoundingClientRect(),scroll:document.documentElement.scrollTop||document.body.scrollTop,width:window.innerWidth,height:window.innerHeight,top:0,left:0}}getElementPosition(i){let s=i.getBoundingClientRect();return{...s,scroll:i.scrollTop,width:i.offsetWidth,height:i.offsetHeight,top:s.top+(document.documentElement.scrollTop||document.body.scrollTop),left:s.left+(document.documentElement.scrollLeft||document.body.scrollLeft)}}getCalculatedOffset(i,s,a,c){return i=="bottom"?{top:s.top+s.height,left:s.left+s.width/2-a/2}:i=="top"?{top:s.top-c,left:s.left+s.width/2-a/2}:i=="left"?{top:s.top+s.height/2-c/2,left:s.left-a}:{top:s.top+s.height/2-c/2,left:s.left+s.width}}getViewportAdjustedDelta(i,s,a,c){var u={top:0,left:0},d=this.getViewportDimensions();if(/right|left/.test(i)){var f=s.top-d.scroll,p=s.top-d.scroll+c;f<d.top?u.top=d.top-f:p>d.top+d.height&&(u.top=d.top+d.height-p)}else{var l=s.left,h=s.left+a;l<d.left?u.left=d.left-l:h>d.width&&(u.left=d.left+d.width-h)}return u}getTitle(){return this.$element.attr("data-original-title")||this.getTitleOption()||this.type!=="popover"&&this.getContentOption()}getTitleOption(){return typeof this.options.title=="function"?this.options.title.call(this.$element[0]):this.options.title||""}getContentOption(){return typeof this.options.content=="function"?this.options.content.call(this.$element[0]):this.options.content||""}getUID(i){do i+=~~(Math.random()*1e6);while(document.getElementById(i));return i}tip(){return this.$tip=this.$tip||t(this.options.template)}arrow(){return this.$arrow||(this.$arrow=this.tip().find(this.type==="popover"?".arrow":".tooltip-arrow")),this.$arrow}validate(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)}}J("extra",(r,i)=>void new o(r,i))});window.csGlobal.LOADED=!0;window.dispatchEvent(new CustomEvent("cornerstone.loaded"));var Np=window.csGlobal;})();
(()=>{var _e=Object.create;var _=Object.defineProperty;var Ye=Object.getOwnPropertyDescriptor;var Je=Object.getOwnPropertyNames;var Ue=Object.getPrototypeOf,Ke=Object.prototype.hasOwnProperty;var Ze=e=>_(e,"__esModule",{value:!0});var Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var je=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Je(t))!Ke.call(e,o)&&(n||o!=="default")&&_(e,o,{get:()=>t[o],enumerable:!(r=Ye(t,o))||r.enumerable});return e},et=(e,t)=>je(Ze(_(e!=null?_e(Ue(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var ye=Xe(()=>{Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function e(){var t=isNaN(arguments[0])?1:Number(arguments[0]);return t?Array.prototype.reduce.call(this,function(n,r){return Array.isArray(r)?n.push.apply(n,e.call(r,t-1)):n.push(r),n},[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(e){return Array.prototype.map.apply(this,arguments).flat()},writable:!0})});function ne(e,t,n){var r,o,i,l,a=!1,s=!1,u={},d=0,c=0,p={sensitivity:7,interval:100,timeout:0,handleFocus:!1};function m(h,k){return c&&(c=clearTimeout(c)),d=0,s?void 0:n.call(h,k)}function y(h){r=h.clientX,o=h.clientY}function x(h,k){if(c&&(c=clearTimeout(c)),Math.abs(i-r)+Math.abs(l-o)<p.sensitivity)return d=1,s?void 0:t.call(h,k);i=r,l=o,c=setTimeout(function(){x(h,k)},p.interval)}u.options=function(h){var k=h.handleFocus!==p.handleFocus;return p=Object.assign({},p,h),k&&(p.handleFocus?M():R()),u};function w(h){return a=!0,c&&(c=clearTimeout(c)),e.removeEventListener("mousemove",y,!1),d!==1&&(i=h.clientX,l=h.clientY,e.addEventListener("mousemove",y,!1),c=setTimeout(function(){x(e,h)},p.interval)),this}function b(h){return a=!1,c&&(c=clearTimeout(c)),e.removeEventListener("mousemove",y,!1),d===1&&(c=setTimeout(function(){m(e,h)},p.timeout)),this}function C(h){a||(s=!0,t.call(e,h))}function I(h){!a&&s&&(s=!1,n.call(e,h))}function M(){e.addEventListener("focus",C,!1),e.addEventListener("blur",I,!1)}function R(){e.removeEventListener("focus",C,!1),e.removeEventListener("blur",I,!1)}return u.remove=function(){!e||(e.removeEventListener("mouseover",w,!1),e.removeEventListener("mouseout",b,!1),R())},e&&(e.addEventListener("mouseover",w,!1),e.addEventListener("mouseout",b,!1)),u}var{util:tt}=window.csGlobal.rivet,{addClass:Y,transitionEnd:re,removeClass:J,getOuterHeight:oe,makeAlternatingSynchronizer:nt}=tt,rt=e=>nt(t=>{if(!e.classList.contains("x-collapsed")){t();return}e.setAttribute("aria-hidden","false");let n=oe(e);J(e,"x-collapsed"),Y(e,"x-collapsing"),e.offsetHeight,e.style.height=`${n}px`,re(e,()=>{J(e,"x-collapsing"),e.style.height="",t()})},t=>{e.setAttribute("aria-hidden","true"),e.style.height=`${oe(e)}px`,Y(e,"x-collapsing"),e.offsetHeight,e.style.height="",re(e,()=>{J(e,"x-collapsing"),Y(e,"x-collapsed"),t()})},void 0,!e.classList.contains("x-collapsed")),U=new WeakMap,ot=e=>(U.has(e)||U.set(e,rt(e)),U.get(e));function ie(e,t){ot(e)(t)}var{util:it}=window.csGlobal.rivet,{addClass:D,removeClass:F,hasClass:se}=it;function ae(e,t){if(t){if(!e||se(e,"x-anchor-layered-back"))return;D(e,"x-active")}else F(e,"x-active")}function ce(e){setTimeout(()=>{let t=e.closest(".x-menu");t.addEventListener("transitionend",function(n){let r=t.getBoundingClientRect().top;if(r<0&&n.propertyName==="height"){let o=0,i=e.closest(".x-bar-v .x-bar-scroll-inner, .x-off-canvas-content, .x-modal")||window;if(i===window){let l=window.pageYOffset,a=parseInt(window.getComputedStyle(document.documentElement).marginTop),s=parseInt(window.getComputedStyle(t).fontSize);o=Math.max(0,r+l-a-s)}i.scrollTo({top:o,left:0,behavior:"smooth"})}})},0)}function st(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+=parseInt(n.marginTop)+parseInt(n.marginBottom),t}var le=e=>Math.max(e.offsetHeight,Array.from(e.children).reduce((t,n)=>t+st(n)||0,0)),ue=(e,t)=>{let n=e.closest("[data-x-toggle-layered-root]");n&&(n.style.height=`${t}px`)};function at(e){ue(e,le(e));let t=e.closest(`ul:not([data-x-toggleable="${e.getAttribute("data-x-toggleable")}"])`);F(t,"x-current-layer"),D(t,"x-prev-layer"),D(e,"x-current-layer"),ce(e)}function ct(e){let t=e.closest(`ul:not([data-x-toggleable="${e.getAttribute("data-x-toggleable")}"])`);!se(t,"x-prev-layer")||(ue(e,le(t)),F(e,"x-current-layer"),D(t,"x-current-layer"),F(t,"x-prev-layer"),ce(e))}function fe(e,t){return t?at(e):ct(e)}function de(e,t){let n=new Map;return function(...r){let o=t?t.apply(this,r):r[0];if(n.has(o))return n.get(o);let i=e.apply(this,r);return n.set(o,i),i}}var lt=4,ut=.001,ft=1e-7,dt=10,z=11,q=1/(z-1),pt=typeof Float32Array=="function";function pe(e,t){return 1-3*t+3*e}function ge(e,t){return 3*t-6*e}function he(e){return 3*e}function W(e,t,n){return((pe(t,n)*e+ge(t,n))*e+he(t))*e}function me(e,t,n){return 3*pe(t,n)*e*e+2*ge(t,n)*e+he(t)}function gt(e,t,n,r,o){var i,l,a=0;do l=t+(n-t)/2,i=W(l,r,o)-e,i>0?n=l:t=l;while(Math.abs(i)>ft&&++a<dt);return l}function ht(e,t,n,r){for(var o=0;o<lt;++o){var i=me(t,n,r);if(i===0)return t;var l=W(t,n,r)-e;t-=l/i}return t}function mt(e){return e}function K(e,t,n,r){if(!(0<=e&&e<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&n===r)return mt;for(var o=pt?new Float32Array(z):new Array(z),i=0;i<z;++i)o[i]=W(i*q,e,n);function l(a){for(var s=0,u=1,d=z-1;u!==d&&o[u]<=a;++u)s+=q;--u;var c=(a-o[u])/(o[u+1]-o[u]),p=s+c*q,m=me(p,e,n);return m>=ut?ht(a,p,e,n):m===0?p:gt(a,s,s+q,e,n)}return function(s){return s===0||s===1?s:W(l(s),t,r)}}var yt=e=>{switch(e){case"linear":return"cubic-bezier(0.0, 0.0, 1.0, 1.0)";case"ease-in":return"cubic-bezier(0.42, 0, 1.0, 1.0)";case"ease-out":return"cubic-bezier(0, 0, 0.58, 1.0)";case"ease-in-out":return"cubic-bezier(0.42, 0, 0.58, 1.0)";case"ease":default:return"cubic-bezier(0.25, 0.1, 0.25, 1.0)"}},g=de(e=>{let t=yt(e);try{let[,n]=t.match(/cubic-bezier\((.*)\)/);return K(...n.split(",").map(r=>Number(r.trim())))}catch{console.warn("unable to parse easing function",t)}return g("ease")}),An={easeInQuad:g("cubic-bezier(0.550, 0.085, 0.680, 0.530)"),easeInCubic:g("cubic-bezier(0.550, 0.055, 0.675, 0.190)"),easeInQuart:g("cubic-bezier(0.895, 0.030, 0.685, 0.220)"),easeInQuint:g("cubic-bezier(0.755, 0.050, 0.855, 0.060)"),easeInSine:g("cubic-bezier(0.470, 0.000, 0.745, 0.715)"),easeInExpo:g("cubic-bezier(0.950, 0.050, 0.795, 0.035)"),easeInCirc:g("cubic-bezier(0.600, 0.040, 0.980, 0.335)"),easeInBack:g("cubic-bezier(0.600, -0.280, 0.735, 0.045)"),easeOutQuad:g("cubic-bezier(0.250, 0.460, 0.450, 0.940)"),easeOutCubic:g("cubic-bezier(0.215, 0.610, 0.355, 1.000)"),easeOutQuart:g("cubic-bezier(0.165, 0.840, 0.440, 1.000)"),easeOutQuint:g("cubic-bezier(0.230, 1.000, 0.320, 1.000)"),easeOutSine:g("cubic-bezier(0.390, 0.575, 0.565, 1.000)"),easeOutExpo:g("cubic-bezier(0.190, 1.000, 0.220, 1.000)"),easeOutCirc:g("cubic-bezier(0.075, 0.820, 0.165, 1.000)"),easeOutBack:g("cubic-bezier(0.175, 0.885, 0.320, 1.275)"),easeInOutQuad:g("cubic-bezier(0.455, 0.030, 0.515, 0.955)"),easeInOutCubic:g("cubic-bezier(0.645, 0.045, 0.355, 1.000)"),easeInOutQuart:g("cubic-bezier(0.770, 0.000, 0.175, 1.000)"),easeInOutQuint:g("cubic-bezier(0.860, 0.000, 0.070, 1.000)"),easeInOutSine:g("cubic-bezier(0.445, 0.050, 0.550, 0.950)"),easeInOutExpo:g("cubic-bezier(1.000, 0.000, 0.000, 1.000)"),easeInOutCirc:g("cubic-bezier(0.785, 0.135, 0.150, 0.860)"),easeInOutBack:g("cubic-bezier(0.680, -0.550, 0.265, 1.550)"),materialStand:g("cubic-bezier(0.400, 0.000, 0.200, 1.000)"),materialDecel:g("cubic-bezier(0.000, 0.000, 0.200, 1.000)"),materialAccel:g("cubic-bezier(0.400, 0.000, 1.000, 1.000)"),materialSharp:g("cubic-bezier(0.400, 0.000, 0.600, 1.000)")};Promise.resolve().then(()=>et(ye()));var Z={passive:!0};function L(e,t,n,r={}){return e?(typeof r.passive=="undefined"&&(r.passive=!1),e.addEventListener(t,n,r),()=>void e.removeEventListener(t,n,r)):()=>{}}function A(e,t,n){return L(e,t,n,Z)}function V(e){let t=()=>void e();return document.readyState==="complete"?(t(),()=>{}):A(document,"readystatechange",function(){document.readyState==="complete"&&setTimeout(t,0)})}var xe=e=>(Array.isArray(e)?e.map(xe):[e]).flat().filter(t=>typeof t=="function"),H=e=>{let t=xe(e);return()=>t.forEach(n=>n())};var ve=(e,t)=>(t&&e(document.visibilityState==="visible"),H([L(window,"pagehide",()=>{e(!1)}),L(window.document,"visibilitychange",()=>{e(document.visibilityState==="visible")})]));function E(e,t){let n,r=null;return function(o){if(n){r=o;return}n=setTimeout(function(){e(r),n=null},t)}}var we=(e={})=>{let t,n=()=>{t=new WeakMap},r=s=>t.has(s),o=s=>t.delete(s),i=s=>t.has(s)?t.get(s):e,l=(s,u)=>void t.set(s,u),a=(s,u)=>void l(s,u(i(s)));return n(),{get:i,del:o,set:l,has:r,update:a,reset:n,cache:()=>t}},Tt=we(),_n=we();var St=e=>L(window,"rvt-scan",()=>e()),At=(e,t=!1)=>{t&&e();let n=E(e,100);return H([A(window,"resize",n,Z),L(screen.orientation,"change",n)])},be=(e,t=!1)=>{t&&e();let n=E(e,40);return A(window,"scroll",n)};var Et=(e,t)=>H([St(e),V(e),ve(e,!1),At(e,t)]);var Ct,Te;Et(()=>{Ct=new WeakMap,Te=new WeakMap},!0);be(()=>{Te=new WeakMap},!0);var kt="ontouchstart"in document.documentElement;function Se(){return window.innerWidth<=978.98&&kt}var Ae=0,O={};function f(e){if(!e)throw new Error("No options passed to Waypoint constructor");if(!e.element)throw new Error("No element option passed to Waypoint constructor");if(!e.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+Ae,this.options=f.Adapter.extend({},f.defaults,e),this.element=this.options.element,this.adapter=new f.Adapter(this.element),this.callback=e.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=f.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=f.Context.findOrCreateByElement(this.options.context),f.offsetAliases[this.options.offset]&&(this.options.offset=f.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),O[this.key]=this,Ae+=1}f.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)};f.prototype.trigger=function(e){!this.enabled||this.callback&&this.callback.apply(this,e)};f.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete O[this.key]};f.prototype.disable=function(){return this.enabled=!1,this};f.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this};f.prototype.next=function(){return this.group.next(this)};f.prototype.previous=function(){return this.group.previous(this)};f.invokeAll=function(e){var t=[];for(var n in O)t.push(O[n]);for(var r=0,o=t.length;r<o;r++)t[r][e]()};f.destroyAll=function(){f.invokeAll("destroy")};f.disableAll=function(){f.invokeAll("disable")};f.enableAll=function(){f.Context.refreshAll();for(var e in O)O[e].enabled=!0;return this};f.refreshAll=function(){f.Context.refreshAll()};f.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight};f.viewportWidth=function(){return document.documentElement.clientWidth};f.adapters=[];f.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0};f.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}};(function(){"use strict";var e=0,t={},n=window.onload;function r(o){this.element=o,this.Adapter=f.Adapter,this.adapter=new this.Adapter(o),this.key="waypoint-context-"+e,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},o.waypointContextKey=this.key,t[o.waypointContextKey]=this,e+=1,f.windowContext||(f.windowContext=!0,f.windowContext=new r(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}r.prototype.add=function(o){var i=o.options.horizontal?"horizontal":"vertical";this.waypoints[i][o.key]=o,this.refresh()},r.prototype.checkEmpty=function(){var o=this.Adapter.isEmptyObject(this.waypoints.horizontal),i=this.Adapter.isEmptyObject(this.waypoints.vertical),l=this.element==this.element.window;o&&i&&!l&&(this.adapter.off(".waypoints"),delete t[this.key])},r.prototype.createThrottledResizeHandler=function(){var o=this;function i(){o.handleResize(),o.didResize=!1}this.adapter.on("resize.waypoints",function(){o.didResize||(o.didResize=!0,requestAnimationFrame(i))})},r.prototype.createThrottledScrollHandler=function(){var o=this;function i(){o.handleScroll(),o.didScroll=!1}this.adapter.on("scroll.waypoints",function(){(!o.didScroll||f.isTouch)&&(o.didScroll=!0,requestAnimationFrame(i))})},r.prototype.handleResize=function(){f.Context.refreshAll()},r.prototype.handleScroll=function(){var o={},i={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var l in i){var a=i[l],s=a.newScroll>a.oldScroll,u=s?a.forward:a.backward;for(var d in this.waypoints[l]){var c=this.waypoints[l][d];if(c.triggerPoint!==null){var p=a.oldScroll<c.triggerPoint,m=a.newScroll>=c.triggerPoint,y=p&&m,x=!p&&!m;(y||x)&&(c.queueTrigger(u),o[c.group.id]=c.group)}}}for(var w in o)o[w].flushTriggers();this.oldScroll={x:i.horizontal.newScroll,y:i.vertical.newScroll}},r.prototype.innerHeight=function(){return this.element==this.element.window?f.viewportHeight():this.adapter.innerHeight()},r.prototype.remove=function(o){delete this.waypoints[o.axis][o.key],this.checkEmpty()},r.prototype.innerWidth=function(){return this.element==this.element.window?f.viewportWidth():this.adapter.innerWidth()},r.prototype.destroy=function(){var o=[];for(var i in this.waypoints)for(var l in this.waypoints[i])o.push(this.waypoints[i][l]);for(var a=0,s=o.length;a<s;a++)o[a].destroy()},r.prototype.refresh=function(){var o=this.element==this.element.window,i=o?void 0:this.adapter.offset(),l={},a;this.handleScroll(),a={horizontal:{contextOffset:o?0:i.left,contextScroll:o?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:o?0:i.top,contextScroll:o?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var s in a){var u=a[s];for(var d in this.waypoints[s]){var c=this.waypoints[s][d],p=c.options.offset,m=c.triggerPoint,y=0,x=m==null,w,b,C,I,M;c.element!==c.element.window&&(y=c.adapter.offset()[u.offsetProp]),typeof p=="function"?p=p.apply(c):typeof p=="string"&&(p=parseFloat(p),c.options.offset.indexOf("%")>-1&&(p=Math.ceil(u.contextDimension*p/100))),w=u.contextScroll-u.contextOffset,c.triggerPoint=Math.floor(y+w-p),b=m<u.oldScroll,C=c.triggerPoint>=u.oldScroll,I=b&&C,M=!b&&!C,!x&&I?(c.queueTrigger(u.backward),l[c.group.id]=c.group):(!x&&M||x&&u.oldScroll>=c.triggerPoint)&&(c.queueTrigger(u.forward),l[c.group.id]=c.group)}}return requestAnimationFrame(function(){for(var R in l)l[R].flushTriggers()}),this},r.findOrCreateByElement=function(o){return r.findByElement(o)||new r(o)},r.refreshAll=function(){for(var o in t)t[o].refresh()},r.findByElement=function(o){return t[o.waypointContextKey]},window.onload=function(){n&&n(),r.refreshAll()},f.Context=r})();(function(){"use strict";function e(o,i){return o.triggerPoint-i.triggerPoint}function t(o,i){return i.triggerPoint-o.triggerPoint}var n={vertical:{},horizontal:{}};function r(o){this.name=o.name,this.axis=o.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}r.prototype.add=function(o){this.waypoints.push(o)},r.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},r.prototype.flushTriggers=function(){for(var o in this.triggerQueues){var i=this.triggerQueues[o],l=o==="up"||o==="left";i.sort(l?t:e);for(var a=0,s=i.length;a<s;a+=1){var u=i[a];(u.options.continuous||a===i.length-1)&&u.trigger([o])}}this.clearTriggerQueues()},r.prototype.next=function(o){this.waypoints.sort(e);var i=f.Adapter.inArray(o,this.waypoints),l=i===this.waypoints.length-1;return l?null:this.waypoints[i+1]},r.prototype.previous=function(o){this.waypoints.sort(e);var i=f.Adapter.inArray(o,this.waypoints);return i?this.waypoints[i-1]:null},r.prototype.queueTrigger=function(o,i){this.triggerQueues[i].push(o)},r.prototype.remove=function(o){var i=f.Adapter.inArray(o,this.waypoints);i>-1&&this.waypoints.splice(i,1)},r.prototype.first=function(){return this.waypoints[0]},r.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},r.findOrCreate=function(o){return n[o.axis][o.name]||new r(o)},f.Group=r})();(function(){"use strict";function e(r){return r===r.window}function t(r){return e(r)?r:r.defaultView}function n(r){this.element=r,this.handlers={}}n.prototype.innerHeight=function(){var r=e(this.element);return r?this.element.innerHeight:this.element.clientHeight},n.prototype.innerWidth=function(){var r=e(this.element);return r?this.element.innerWidth:this.element.clientWidth},n.prototype.off=function(r,o){function i(p,m,y){for(var x=0,w=m.length-1;x<w;x++){var b=m[x];(!y||y===b)&&p.removeEventListener(b)}}var l=r.split("."),a=l[0],s=l[1],u=this.element;if(s&&this.handlers[s]&&a)i(u,this.handlers[s][a],o),this.handlers[s][a]=[];else if(a)for(var d in this.handlers)i(u,this.handlers[d][a]||[],o),this.handlers[d][a]=[];else if(s&&this.handlers[s]){for(var c in this.handlers[s])i(u,this.handlers[s][c],o);this.handlers[s]={}}},n.prototype.offset=function(){if(!this.element.ownerDocument)return null;var r=this.element.ownerDocument.documentElement,o=t(this.element.ownerDocument),i={top:0,left:0};return this.element.getBoundingClientRect&&(i=this.element.getBoundingClientRect()),{top:i.top+o.pageYOffset-r.clientTop,left:i.left+o.pageXOffset-r.clientLeft}},n.prototype.on=function(r,o){var i=r.split("."),l=i[0],a=i[1]||"__default",s=this.handlers[a]=this.handlers[a]||{},u=s[l]=s[l]||[];u.push(o),this.element.addEventListener(l,o)},n.prototype.outerHeight=function(r){var o=this.innerHeight(),i;return r&&!e(this.element)&&(i=window.getComputedStyle(this.element),o+=parseInt(i.marginTop,10),o+=parseInt(i.marginBottom,10)),o},n.prototype.outerWidth=function(r){var o=this.innerWidth(),i;return r&&!e(this.element)&&(i=window.getComputedStyle(this.element),o+=parseInt(i.marginLeft,10),o+=parseInt(i.marginRight,10)),o},n.prototype.scrollLeft=function(){var r=t(this.element);return r?r.pageXOffset:this.element.scrollLeft},n.prototype.scrollTop=function(){var r=t(this.element);return r?r.pageYOffset:this.element.scrollTop},n.extend=function(){var r=Array.prototype.slice.call(arguments);function o(a,s){if(typeof a=="object"&&typeof s=="object")for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u]);return a}for(var i=1,l=r.length;i<l;i++)o(r[0],r[i]);return r[0]},n.inArray=function(r,o,i){return o==null?-1:o.indexOf(r,i)},n.isEmptyObject=function(r){for(var o in r)return!1;return!0},f.adapters.push({name:"noframework",Adapter:n}),f.Adapter=n})();var Ee=f;A(window,"rvt-scan",Ee.Context.refreshAll);var Ce=0,ke="--x-body-scroll-bar-size",lr=`var(${ke}, 0)`,Le="--x-body-scroll-active-bar-size",ur=`var(${Le}, 0)`;V(function(){Ce=window.innerWidth-document.body.offsetWidth,Oe(ke,Ce+"px"),Oe(Le,"0px")});function Oe(e,t){document.querySelector(":root").style.setProperty(e,t)}function Ot(e,t=null){return t?e.style.setProperty("transition-property",t,"important"):e.style.setProperty("transition","none","important"),e.style.setProperty("animation","none","important"),()=>{e.offsetHeight,e.style.removeProperty(t?"transition-property":"transition"),e.style.removeProperty("animation")}}var It=(e,t)=>(n,{after:r}={})=>{e(n);let o=Ot(n);return()=>{t(n),o(),typeof r=="function"&&r()}},yr=It(e=>e.style.setProperty("opacity",1,"important"),e=>e.style.removeProperty("opacity"));var{util:Ie}=window.csGlobal.rivet,{listener:zt,debounce:Gr,addClass:Ht,removeClass:Pt,hasClass:T,toggleClass:v,oncePassive:ze,scrollingDisable:Nt,scrollingEnable:He}=Ie,B=null,Pe=e=>document.querySelector(`[data-x-toggleable="${e}"][data-x-toggle]`),Mt=e=>document.querySelector(`[data-x-toggleable="${e}"]:not([data-x-toggle])`),Ne=e=>e?e.parentElement.matches(".x-nav-tabs-item")?"classic-tab":e.getAttribute("data-x-toggle"):null,Rt=e=>["tab","classic-tab"].includes(Ne(e)),X=e=>e&&e.getAttribute("data-x-toggle-group"),Dt=e=>!!document.querySelector(`[data-x-toggle-group="${e||""}"].x-active`);var P=e=>e&&e.getAttribute("data-x-toggleable"),Me=e=>e&&e.getAttribute("data-x-toggle-hash"),Ft=e=>e&&e.matches(".mce-content-body"),qt=E(function(){window.dispatchEvent(new Event("resize"))},250),Wt=E(function(){window.dispatchEvent(new Event("rvt-scan"))},250);var Re=e=>document.querySelectorAll(`[data-x-toggle-group="${X(e)}"]:not([data-x-toggleable="${P(e)}"])`),Vt=e=>document.querySelectorAll(`[data-x-toggle-group="${X(e)}"].x-active`);Ie.toggle={getOthersInGroup:Re,getActiveInGroup:Vt};var Bt=e=>Array.from(document.querySelectorAll("[data-x-toggle-hash]")).filter(t=>Me(t)===e).map(P);window.TCOToggleStates||(window.TCOToggleStates=new Map,window.TCOToggleScrollBlocking=new Map);var $t=!1,S=window.TCOToggleStates,j=window.TCOToggleScrollBlocking,$=!1;function Gt(){let e=[];for(let[t,n]of S){let r=Mt(t);n&&j.has(t)&&e.push(t),r||S.delete(t)}e.find(t=>!S.has(t))&&requestAnimationFrame(He)}window.integrityCheckTimeout||(window.integrityCheckTimeout=null);var Qt=function(){clearTimeout(window.integrityCheckTimeout),window.integrityCheckTimeout=setTimeout(Gt,500)};window.xToggleIntegrityCheck||(window.xToggleIntegrityCheck=Qt);function _t(e){let t=Pe(e);switch(Ne(t)){case"collapse":case 1:case"layered":return t.matches(".x-active");case"tab":return Dt(X(t));case"classic-tab":return t.parentElement.matches(".active");case"collapse-b":return!t.matches(".collapsed")}return t?t.classList&&t.classList.contains("x-active"):null}function ee(e){return S.has(e)||S.set(e,_t(e)),S.get(e)}function G({id:e,state:t,_triggeringGroup:n,force:r,hashUpdate:o=!window.csGlobal.isPreview}){let i=ee(e);if(typeof t=="undefined"&&(t=!i),t&&window.xLastToggleable!==e)window.xLastToggleable=e,window.xToggleStack.push(e);else if(!t){let a=window.xToggleStack.indexOf(e);a!==-1&&window.xToggleStack.splice(a,1),window.xLastToggleable===e&&(window.xLastToggleable=window.xToggleStack[window.xToggleStack.length-1])}let l=Pe(e);!r&&!n&&(Ft(l)||!t&&Rt(l))||(S.set(e,t),(i!==t||r)&&(Yt(e,t),o&&jt(l,t)),n||Re(l).forEach(a=>{G({force:r,id:P(a),state:!1,_triggeringGroup:!0,hashUpdate:o})}))}window.xLastToggleable="";window.xToggleStack=[];window.xToggleGetState=e=>ee(e);window.xToggleGetStateFromNode=e=>ee(P(e));window.xToggleUpdate=(e,t)=>G({id:e,state:t});window.xToggleDelete=e=>S.delete(e);window.xToggleGetId=P;window.xGetLastToggleable=function(){return window.xLastToggleable};var De=!1;window.xToggleTempUnlock=()=>{De=!!$,$=!1};window.xToggleTempRelock=()=>{$=De};window.xToggleSetLocking=e=>{$=!!e};window.xToggleHashUpdate=Zt;function Yt(e,t){Array.from(document.querySelectorAll(`[data-x-toggleable="${e}"]`)).forEach(n=>{n.dispatchEvent(new CustomEvent("tco-toggle",{bubbles:!1,detail:{state:t,id:e}}))})}function Fe(e){return zt(e,"tco-toggle",({currentTarget:t,detail:{state:n,id:r}})=>{var o;if(n||Kt(e),e.hasAttribute("data-x-toggle-overlay")&&(n?((o=document.querySelector(`[data-x-toggleable=${r}][role="dialog"]`))==null?void 0:o.hasAttribute("data-x-disable-body-scroll"))&&(requestAnimationFrame(Nt),j.set(r,!0)):n||(j.delete(r),requestAnimationFrame(He))),e.hasAttribute("aria-hidden")&&e.setAttribute("aria-hidden",!n),e.hasAttribute("aria-expanded")&&e.setAttribute("aria-expanded",n),e.hasAttribute("aria-selected")&&e.setAttribute("aria-selected",n),e.hasAttribute("data-x-toggle-collapse")?ie(e,n):e.hasAttribute("data-x-toggle-layered")?fe(e,n):T(e,"x-anchor")?ae(e,n):e.getAttribute("data-x-toggle")==="collapse-b"?v(e,"collapsed",!n):T(e.parentElement,"x-nav-tabs-item")?v(e.parentElement,"active",n):T(e,"x-tab-pane")?v(e,"active",n):T(e,"x-dropdown")?Xt(e,n):v(e,"x-active",n),T(e,"x-modal")&&qt(),Wt(),e.matches("[data-x-toggle]")){if(v(e.querySelector(".x-toggle"),"x-active",n),$t)return;Array.from(e.querySelectorAll("[data-x-toggle-anim]")).forEach(i=>{T(i,"x-running")||ze(i,"animationiteration",()=>{Pt(i,"x-running"),T(e,"x-active")||i.removeAttribute("style")}),Ht(i,"x-running"),T(e,"x-active")&&(i.style.animationName=i.getAttribute("data-x-toggle-anim"))})}if(n&&!window.csGlobal.isPreview)if(t.querySelector("[data-x-search][data-x-search-autofocus]")){let i=t.querySelector("[data-x-search][data-x-search-autofocus] input");if(en(i,350),!Se())return;ze(t,"transitionend",function(){i.scrollIntoView(!0)})}else{let i=e.querySelector('[tabindex="-1"]');i&&i.focus&&(i.focus(),setTimeout(function(){i.focus()},250))}n?Ut(e):Jt(e)})}var qe=["video","audio"];function Jt(e){let t=e.querySelectorAll(qe);for(let n=0;n<t.length;++n)t[n].pause()}function Ut(e){let t=e.querySelectorAll(qe);for(let n=0;n<t.length;++n){let r=t[n];r.currentTime=0,r.getAttribute("autoplay")&&r.play()}}function Kt(e){let t=e.querySelectorAll("[data-x-toggleable]")||[];for(let n=0;n<t.length;++n){let r=t[n];G({id:r.getAttribute("data-x-toggleable"),state:!1})}}function Zt(e){Bt(e).forEach(n=>{G({id:n,state:!0})})}function Xt(e,t){let r=window.getComputedStyle(e)["transition-duration"];if(r=r?parseFloat(r.replace("s","")):0,B&&(B(),B=null),!r){v(e,"x-active",t),v(e,"x-active-animate",t);return}let o=r*1e3,i=t?"x-active":"x-active-animate",l=t?"x-active-animate":"x-active",a=t?15:o;requestAnimationFrame(function(){v(e,i,t),window.dispatchEvent(new CustomEvent("resize"))});let s=setTimeout(function(){requestAnimationFrame(function(){v(e,l,t)})},a);return B=function(){!s||(clearTimeout(s),v(e,"x-active",t),v(e,"x-active-animate",t))}}function jt(e,t){let n=Me(e);if(!n)return;let r=t?n:"";!t&&`#${n}`!==window.location.hash||`#${r}`!==window.location.hash&&(history.pushState(null,null,"#"+r),window.dispatchEvent(new CustomEvent("hashchange")))}function en(e,t){if(t||(t=100),e){var n=document.createElement("input");n.style.position="fixed",n.style.top=e.offsetTop+7+"px",n.style.left=e.offsetLeft+"px",n.style.height=0,n.style.opacity=0,document.body.appendChild(n),n.focus(),setTimeout(function(){e.focus(),e.click(),document.body.removeChild(n)},t)}}var{attach:Q,util:tn}=window.csGlobal.rivet,{scrollOffset:nn}=tn;window.xJsData=window.xJsData||{};var Be,$e,Ge,rn={up:(Be=window.xJsData.icons)==null?void 0:Be.up,down:($e=window.xJsData.icons)==null?void 0:$e.down,subindicator:(Ge=window.xJsData.icons)==null?void 0:Ge.subindicator};window.csGlobal||console.warn("X is running without Cornerstone.");var Qe,{csHooks:N,fixedTopOffset:Jr,adminBarOffset:on,scrollTo:sn,rivet:{util:{getOuterHeight:an,hasClass:We,toggleClass:te,addClass:cn,onPercentScrolled:ln,onScroll:un,onResize:Ur,listener:Ve}={}}={}}=(Qe=window.csGlobal)!=null?Qe:{};window.jQuery&&window.jQuery.extend(window.jQuery.easing,{xEaseOutQuad:e=>csGlobal.rivet.util.getEasing("easeOutQuad")(e),xEaseInOutExpo:e=>csGlobal.rivet.util.getEasing("easeInOutExpo")(e)});function fn(e){let t=()=>{gn(),hn(),dn(),window.csGlobal&&e()};document.readyState!="loading"?t():document.addEventListener("DOMContentLoaded",t)}fn(()=>{Q("body.x-navbar-fixed-top-active .x-navbar",e=>{let t=["x-navbar-fixed-top",...We(document.body,"x-boxed-layout-active")?["x-container","max","width"]:[]],n=document.querySelector(".x-navbar-wrap");un(()=>{let i=window.scrollY+on()>nn(n).top;t.forEach(l=>{te(e,l,i)})});let r=i=>l=>{l.matches(".x-nav-wrap.desktop .x-nav li > a")&&te(l.closest("li"),"current-menu-item",i)},o=window.getComputedStyle(e);N.action("scrollspy_activate",r(!0)),N.action("scrollspy_deactivate",r(!1)),N.filter("fixed_top_offset",i=>window.innerWidth<=978.98&&N.apply("x_mobile_header_not_fix",!0)&&o.getPropertyValue("position")!=="fixed"?i:Math.max(i,an(e)))}),N.filter("hash_scrolling_allow",(e,t,n,r)=>r==="#comments"||t.hasAttribute("data-vc-accordion")||t.hasAttribute("data-vc-tabs")?!1:e),Ve(window.document.body,"click",e=>{e.target.matches(".x-btn-navbar-search, .x-btn-widgetbar")&&e.preventDefault()}),Array.from(document.querySelectorAll('iframe[src*="youtube.com"]')).forEach(e=>{let t=e.getAttribute("src");e.setAttribute("wmode","Opaque"),t&&t.includes("?")?e.setAttribute("src",`${t}&wmode=transparent`):e.setAttribute("src",`${t}?wmode=transparent`)}),Q(".x-slider-container .x-slider-scroll-bottom",e=>Ve(e,"click",t=>{t.preventDefault();let n=e.closest(".x-slider-container");sn(n,{bottom:!0,offsetTop:We(n,"below")})})),Q("body.x-stack-icon .x-sidebar",e=>{let t=e.querySelector(".max.width");cn(t,"x-container")}),Q(".x-scroll-top",e=>{var t;return ln(parseFloat((t=xJsData.scrollTop)!=null?t:".75"),n=>{te(e,"in",n)})})});function dn(){let e=document.querySelector(".x-searchform-overlay");if(!e)return;let t=e.querySelector(".search-query");function n(){e.classList.toggle("in"),setTimeout(function(){t.value=""},350)}let r=function(o){(o.target.matches(".x-btn-navbar-search")||o.target.closest(".x-btn-navbar-search"))&&(o.preventDefault(),e.classList.toggle("in"),t.focus()),(o.target.matches(".x-searchform-overlay")||o.target.closest(".x-searchform-overlay"))&&(o.target.matches(".search-query")||n())};document.body.addEventListener("click",r),document.body.addEventListener("touchstart",r),document.addEventListener("keydown",function(o){o.key==="Escape"&&e.matches(".in")&&n()})}function pn(e){let t=!1;function n(){t=!0,typeof e=="function"&&e(),document.body.removeEventListener(n,{passive:!0,capture:!0})}return document.body.addEventListener("touchstart",n,{passive:!0,capture:!0}),()=>t}function gn(){let e=document.querySelector(".desktop .x-nav");if(!e)return;let t=d=>d.matches(".desktop .x-nav li")?d:d.closest(".desktop .x-nav li"),n=d=>d&&d.matches("li.menu-item-has-children");function r(d){let c=d&&d.closest(".sub-menu, .x-nav");c&&[...c.querySelectorAll(".x-active")].forEach(p=>p.classList.remove("x-active"))}function o(d){d&&(r(d),n(d)&&d.classList.add("x-active"))}let i=!0;function l({target:d}){let c=t(d);c?(i=c,o(c)):i&&(i=!1,r(e))}document.body.addEventListener("focusin",l);let a=d=>{let c=t(d.target);n(c)&&(d.preventDefault(),d.stopPropagation(),o(c)),c||r(e)};document.body.addEventListener("touchstart",a,{passive:!1}),document.body.addEventListener("click",a,{passive:!1});let s=pn(()=>document.body.removeEventListener("focusin",l)),u;[...e.querySelectorAll("li")].forEach(d=>{ne(d,({target:c})=>{if(s())return;let p=t(c);clearTimeout(u),n(p)?o(p):u=setTimeout(()=>r(p),350),document.body.removeEventListener("touchstart",a,{passive:!1}),document.body.removeEventListener("click",a,{passive:!1})},({relatedTarget:c,toElement:p})=>{if(s())return;let m=c||p;if(!e.contains(m)){clearTimeout(u),u=setTimeout(()=>r(e),750);return}let y=t(m);y&&(clearTimeout(u),u=setTimeout(()=>r(y),350))})})}function hn(){function e(t){let n=document.createElement("div");return n.innerHTML=t.trim(),n.firstChild}[...document.querySelectorAll(".mobile .x-nav li.menu-item-has-children > a")].forEach((t,n)=>{t.appendChild(e(`<div class="x-sub-toggle collapsed" data-x-toggle="collapse-b" data-x-toggleable="x-nav-wrap-mobile-sm-${n}" aria-expanded="false" aria-haspopup="true" aria-controls="x-nav-wrap-mobile-sm-${n}" data-x-skip-scroll="true"><span data-x-skip-scroll="true">${rn.subindicator}</span></div>`))}),[...document.querySelectorAll(".mobile .x-nav .sub-menu")].forEach((t,n)=>{t.setAttribute("id",`x-nav-wrap-mobile-sm-${n}`),t.setAttribute("class","x-collapsed"),t.setAttribute("data-x-toggleable",`x-nav-wrap-mobile-sm-${n}`),t.setAttribute("data-x-toggle-collapse","1"),t.setAttribute("aria-hidden","true"),Fe(t)})}})();
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery-var-for-color","./vendor/jquery-color/jquery.color","./version"],t):t(jQuery)}(function(u){"use strict";var s,o,r,a,c,e,n,i,f,l,d="ui-effects-",h="ui-effects-style",p="ui-effects-animated";function m(t){var e,n,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;)"string"==typeof i[e=i[n]]&&(o[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=i[e]);else for(e in i)"string"==typeof i[e]&&(o[e]=i[e]);return o}function g(t,e,n,i){return t={effect:t=u.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(i=e,n=null,e={}),"number"!=typeof e&&!u.fx.speeds[e]||(i=n,n=e,e={}),"function"==typeof n&&(i=n,n=null),e&&u.extend(t,e),n=n||e.duration,t.duration=u.fx.off?0:"number"==typeof n?n:n in u.fx.speeds?u.fx.speeds[n]:u.fx.speeds._default,t.complete=i||e.complete,t}function v(t){return!t||"number"==typeof t||u.fx.speeds[t]||"string"==typeof t&&!u.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function y(t,e){var n=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?n:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}return u.effects={effect:{}},a=["add","remove","toggle"],c={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},u.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){u.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,e,t.end),t.setAttr=!0)}}),u.fn.addBack||(u.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),u.effects.animateClass=function(o,t,e,n){var s=u.speed(t,e,n);return this.queue(function(){var n=u(this),t=n.attr("class")||"",e=(e=s.children?n.find("*").addBack():n).map(function(){return{el:u(this),start:m(this)}}),i=function(){u.each(a,function(t,e){o[e]&&n[e+"Class"](o[e])})};i(),e=e.map(function(){return this.end=m(this.el[0]),this.diff=function(t,e){var n,i,o={};for(n in e)i=e[n],t[n]===i||c[n]||!u.fx.step[n]&&isNaN(parseFloat(i))||(o[n]=i);return o}(this.start,this.end),this}),n.attr("class",t),e=e.map(function(){var t=this,e=u.Deferred(),n=u.extend({},s,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,n),e.promise()}),u.when.apply(u,e.get()).done(function(){i(),u.each(arguments,function(){var e=this.el;u.each(this.diff,function(t){e.css(t,"")})}),s.complete.call(n[0])})})},u.fn.extend({addClass:(r=u.fn.addClass,function(t,e,n,i){return e?u.effects.animateClass.call(this,{add:t},e,n,i):r.apply(this,arguments)}),removeClass:(o=u.fn.removeClass,function(t,e,n,i){return 1<arguments.length?u.effects.animateClass.call(this,{remove:t},e,n,i):o.apply(this,arguments)}),toggleClass:(s=u.fn.toggleClass,function(t,e,n,i,o){return"boolean"==typeof e||void 0===e?n?u.effects.animateClass.call(this,e?{add:t}:{remove:t},n,i,o):s.apply(this,arguments):u.effects.animateClass.call(this,{toggle:t},e,n,i)}),switchClass:function(t,e,n,i,o){return u.effects.animateClass.call(this,{add:e,remove:t},n,i,o)}}),u.expr&&u.expr.pseudos&&u.expr.pseudos.animated&&(u.expr.pseudos.animated=(e=u.expr.pseudos.animated,function(t){return!!u(t).data(p)||e(t)})),!1!==u.uiBackCompat&&u.extend(u.effects,{save:function(t,e){for(var n=0,i=e.length;n<i;n++)null!==e[n]&&t.data(d+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,i=0,o=e.length;i<o;i++)null!==e[i]&&(n=t.data(d+e[i]),t.css(e[i],n))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var i={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},t=u("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return n.wrap(t),n[0]!==o&&!u.contains(n[0],o)||u(o).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(u.extend(i,{position:n.css("position"),zIndex:n.css("z-index")}),u.each(["top","left","bottom","right"],function(t,e){i[e]=n.css(e),isNaN(parseInt(i[e],10))&&(i[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(i).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!u.contains(t[0],e)||u(e).trigger("focus")),t}}),u.extend(u.effects,{version:"1.13.3",define:function(t,e,n){return n||(n=e,e="effect"),u.effects.effect[t]=n,u.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){var i;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(i="horizontal"!==n?(e||100)/100:1,n="vertical"!==n?(e||100)/100:1,{height:t.height()*n,width:t.width()*i,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*i})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var i=t.queue();1<e&&i.splice.apply(i,[1,0].concat(i.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(h,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(h)||"",t.removeData(h)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),e=(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var n,i;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=t[1]/e.width}return{x:i,y:n}},createPlaceholder:function(t){var e,n=t.css("position"),i=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",e=u("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(d+"placeholder",e)),t.css({position:n,left:i.left,top:i.top}),e},removePlaceholder:function(t){var e=d+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){u.effects.restoreStyle(t),u.effects.removePlaceholder(t)},setTransition:function(i,t,o,s){return s=s||{},u.each(t,function(t,e){var n=i.cssUnit(e);0<n[0]&&(s[e]=n[0]*o+n[1])}),s}}),u.fn.extend({effect:function(){function t(t){var e=u(this),n=u.effects.mode(e,a)||s;e.data(p,!0),c.push(n),s&&("show"===n||n===s&&"hide"===n)&&e.show(),s&&"none"===n||u.effects.saveStyle(e),"function"==typeof t&&t()}var i=g.apply(this,arguments),o=u.effects.effect[i.effect],s=o.mode,e=i.queue,n=e||"fx",r=i.complete,a=i.mode,c=[];return u.fx.off||!o?a?this[a](i.duration,r):this.each(function(){r&&r.call(this)}):!1===e?this.each(t).each(f):this.queue(n,t).queue(n,f);function f(t){var e=u(this);function n(){"function"==typeof r&&r.call(e[0]),"function"==typeof t&&t()}i.mode=c.shift(),!1===u.uiBackCompat||s?"none"===i.mode?(e[a](),n()):o.call(e[0],i,function(){e.removeData(p),u.effects.cleanUp(e),"hide"===i.mode&&e.hide(),n()}):(e.is(":hidden")?"hide"===a:"show"===a)?(e[a](),n()):o.call(e[0],i,n)}},show:(f=u.fn.show,function(t){return v(t)?f.apply(this,arguments):((t=g.apply(this,arguments)).mode="show",this.effect.call(this,t))}),hide:(i=u.fn.hide,function(t){return v(t)?i.apply(this,arguments):((t=g.apply(this,arguments)).mode="hide",this.effect.call(this,t))}),toggle:(n=u.fn.toggle,function(t){return v(t)||"boolean"==typeof t?n.apply(this,arguments):((t=g.apply(this,arguments)).mode="toggle",this.effect.call(this,t))}),cssUnit:function(t){var n=this.css(t),i=[];return u.each(["em","px","%","pt"],function(t,e){0<n.indexOf(e)&&(i=[parseFloat(n),e])}),i},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):y(this.css("clip"),this)},transfer:function(t,e){var n=u(this),i=u(t.to),o="fixed"===i.css("position"),s=u("body"),r=o?s.scrollTop():0,s=o?s.scrollLeft():0,a=i.offset(),a={top:a.top-r,left:a.left-s,height:i.innerHeight(),width:i.innerWidth()},i=n.offset(),c=u("<div class='ui-effects-transfer'></div>");c.appendTo("body").addClass(t.className).css({top:i.top-r,left:i.left-s,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){c.remove(),"function"==typeof e&&e()})}}),u.fx.step.clip=function(t){t.clipInit||(t.start=u(t.elem).cssClip(),"string"==typeof t.end&&(t.end=y(t.end,t.elem)),t.clipInit=!0),u(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},l={},u.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){l[t]=function(t){return Math.pow(t,e+2)}}),u.extend(l,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),u.each(l,function(t,e){u.easing["easeIn"+t]=e,u.easing["easeOut"+t]=function(t){return 1-e(1-t)},u.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),u.effects});
!function(t){var d=Array.prototype.slice;function e(u){if(u){return u.bridget=function(t,e){var i,s,l;(i=e).prototype.option||(i.prototype.option=function(t){u.isPlainObject(t)&&(this.options=u.extend(!0,this.options,t))}),s=t,l=e,u.fn[s]=function(e){if("string"!=typeof e)return this.each(function(){var t=u.data(this,s);t?(t.option(e),t._init()):(t=new l(this,e),u.data(this,s,t))});for(var t=d.call(arguments,1),i=0,o=this.length;i<o;i++){var n=this[i],r=u.data(n,s);if(r&&u.isFunction(r[e])&&"_"!==e.charAt(0)){var a=r[e].apply(r,t);if(void 0!==a)return a}}return this}},u.bridget}}"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],e):"object"==typeof exports?e(require("jquery")):e(t.jQuery)}(window),function(i){var t=document.documentElement,e=function(){};function o(t){var e=i.event;return e.target=e.target||e.srcElement||t,e}t.addEventListener?e=function(t,e,i){t.addEventListener(e,i,!1)}:t.attachEvent&&(e=function(e,t,i){e[t+i]=i.handleEvent?function(){var t=o(e);i.handleEvent.call(i,t)}:function(){var t=o(e);i.call(e,t)},e.attachEvent("on"+t,e[t+i])});var n=function(){};t.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:t.detachEvent&&(n=function(e,i,o){e.detachEvent("on"+i,e[i+o]);try{delete e[i+o]}catch(t){e[i+o]=void 0}});var r={bind:e,unbind:n};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:i.eventie=r}(window),function(){"use strict";function t(){}var e=t.prototype,i=this,o=i.EventEmitter;function r(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function n(t){return function(){return this[t].apply(this,arguments)}}e.getListeners=function(t){var e,i,o=this._getEvents();if(t instanceof RegExp)for(i in e={},o)o.hasOwnProperty(i)&&t.test(i)&&(e[i]=o[i]);else e=o[t]||(o[t]=[]);return e},e.flattenListeners=function(t){var e,i=[];for(e=0;e<t.length;e+=1)i.push(t[e].listener);return i},e.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&((e={})[t]=i),e||i},e.addListener=function(t,e){var i,o=this.getListenersAsObject(t),n="object"==typeof e;for(i in o)o.hasOwnProperty(i)&&-1===r(o[i],e)&&o[i].push(n?e:{listener:e,once:!1});return this},e.on=n("addListener"),e.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},e.once=n("addOnceListener"),e.defineEvent=function(t){return this.getListeners(t),this},e.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},e.removeListener=function(t,e){var i,o,n=this.getListenersAsObject(t);for(o in n)n.hasOwnProperty(o)&&-1!==(i=r(n[o],e))&&n[o].splice(i,1);return this},e.off=n("removeListener"),e.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},e.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},e.manipulateListeners=function(t,e,i){var o,n,r=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(o=i.length;o--;)r.call(this,e,i[o]);else for(o in e)e.hasOwnProperty(o)&&(n=e[o])&&("function"==typeof n?r.call(this,o,n):a.call(this,o,n));return this},e.removeEvent=function(t){var e,i=typeof t,o=this._getEvents();if("string"===i)delete o[t];else if(t instanceof RegExp)for(e in o)o.hasOwnProperty(e)&&t.test(e)&&delete o[e];else delete this._events;return this},e.removeAllListeners=n("removeEvent"),e.emitEvent=function(t,e){var i,o,n,r=this.getListenersAsObject(t);for(n in r)if(r.hasOwnProperty(n))for(o=r[n].length;o--;)!0===(i=r[n][o]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},e.trigger=n("emitEvent"),e.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},e.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},e._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},e._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return i.EventEmitter=o,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:i.EventEmitter=t}.call(this),function(t){var n="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;function e(t){if(t){if("string"==typeof r[t])return t;var e;t=t.charAt(0).toUpperCase()+t.slice(1);for(var i=0,o=n.length;i<o;i++)if(e=n[i]+t,"string"==typeof r[e])return e}}"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(z,t){function L(t){var e=parseFloat(t);return-1===t.indexOf("%")&&!isNaN(e)&&e}var C="undefined"==typeof console?function(){}:function(t){console.error(t)},I=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];function e(v){var _,w,b,T=!1;function x(t,e){if(z.getComputedStyle||-1===e.indexOf("%"))return e;var i=t.style,o=i.left,n=t.runtimeStyle,r=n&&n.left;return r&&(n.left=t.currentStyle.left),i.left=e,e=i.pixelLeft,i.left=o,r&&(n.left=r),e}return function(t){if(function(){if(!T){T=!0;var i,e=z.getComputedStyle;if(i=e?function(t){return e(t,null)}:function(t){return t.currentStyle},_=function(t){var e=i(t);return e||C("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e},w=v("boxSizing")){var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[w]="border-box";var o=document.body||document.documentElement;o.appendChild(t);var n=_(t);b=200===L(n.width),o.removeChild(t)}}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=_(t);if("none"===e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=I.length;e<i;e++)t[I[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var o=i.isBorderBox=!(!w||!e[w]||"border-box"!==e[w]),n=0,r=I.length;n<r;n++){var a=I[n],s=e[a];s=x(t,s);var l=parseFloat(s);i[a]=isNaN(l)?0:l}var u=i.paddingLeft+i.paddingRight,d=i.paddingTop+i.paddingBottom,c=i.marginLeft+i.marginRight,h=i.marginTop+i.marginBottom,p=i.borderLeftWidth+i.borderRightWidth,f=i.borderTopWidth+i.borderBottomWidth,m=o&&b,g=L(e.width);!1!==g&&(i.width=g+(m?0:u+p));var y=L(e.height);return!1!==y&&(i.height=y+(m?0:d+f)),i.innerWidth=i.width-(u+p),i.innerHeight=i.height-(d+f),i.outerWidth=i.width+c,i.outerHeight=i.height+h,i}}}"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],e):"object"==typeof exports?module.exports=e(require("desandro-get-style-property")):z.getSize=e(z.getStyleProperty)}(window),function(e){var i=e.document,o=[];function n(t){"function"==typeof t&&(n.isReady?t():o.push(t))}function r(t){var e="readystatechange"===t.type&&"complete"!==i.readyState;n.isReady||e||a()}function a(){n.isReady=!0;for(var t=0,e=o.length;t<e;t++){(0,o[t])()}}function t(t){return"complete"===i.readyState?a():(t.bind(i,"DOMContentLoaded",r),t.bind(i,"readystatechange",r),t.bind(e,"load",r)),n}n.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],t):"object"==typeof exports?module.exports=t(require("eventie")):e.docReady=t(e.eventie)}(window),function(n){"use strict";var t,i=function(){if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],e=0,i=t.length;e<i;e++){var o=t[e]+"MatchesSelector";if(n[o])return o}}();function o(t,e){return t[i](e)}function r(t){t.parentNode||document.createDocumentFragment().appendChild(t)}if(i){var e=o(document.createElement("div"),"div");t=e?o:function(t,e){return r(t),o(t,e)}}else t=function(t,e){r(t);for(var i=t.parentNode.querySelectorAll(e),o=0,n=i.length;o<n;o++)if(i[o]===t)return!0;return!1};"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):"object"==typeof exports?module.exports=t:window.matchesSelector=t}(Element.prototype),function(i,o){"use strict";"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(t,e){return o(i,t,e)}):"object"==typeof exports?module.exports=o(i,require("doc-ready"),require("desandro-matches-selector")):i.fizzyUIUtils=o(i,i.docReady,i.matchesSelector)}(window,function(h,t,u){var i,p={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Object.prototype.toString;p.isArray=function(t){return"[object Array]"==e.call(t)},p.makeArray=function(t){var e=[];if(p.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0,o=t.length;i<o;i++)e.push(t[i]);else e.push(t);return e},p.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;i<o;i++)if(t[i]===e)return i;return-1},p.removeFrom=function(t,e){var i=p.indexOf(t,e);-1!=i&&t.splice(i,1)},p.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1==t.nodeType&&"string"==typeof t.nodeName},p.setText=function(t,e){t[i=i||(void 0!==document.documentElement.textContent?"textContent":"innerText")]=e},p.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,u(t,e))return t},p.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},p.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},p.filterFindElements=function(t,e){for(var i=[],o=0,n=(t=p.makeArray(t)).length;o<n;o++){var r=t[o];if(p.isElement(r))if(e){u(r,e)&&i.push(r);for(var a=r.querySelectorAll(e),s=0,l=a.length;s<l;s++)i.push(a[s])}else i.push(r)}return i},p.debounceMethod=function(t,e,o){var n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];t&&clearTimeout(t);var e=arguments,i=this;this[r]=setTimeout(function(){n.apply(i,e),delete i[r]},o||100)}},p.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var f=h.console;return p.htmlInit=function(d,c){t(function(){for(var t=p.toDashed(c),e=document.querySelectorAll(".js-"+t),i="data-"+t+"-options",o=0,n=e.length;o<n;o++){var r,a=e[o],s=a.getAttribute(i);try{r=s&&JSON.parse(s)}catch(t){f&&f.error("Error parsing "+i+" on "+a.nodeName.toLowerCase()+(a.id?"#"+a.id:"")+": "+t);continue}var l=new d(a,r),u=h.jQuery;u&&u.data(a,c,l)}})},p}),function(n,r){"use strict";"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(t,e,i,o){return r(n,t,e,i,o)}):"object"==typeof exports?module.exports=r(n,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(n.Outlayer={},n.Outlayer.Item=r(n,n.EventEmitter,n.getSize,n.getStyleProperty,n.fizzyUIUtils))}(window,function(t,e,i,r,o){"use strict";var n=t.getComputedStyle,u=n?function(t){return n(t,null)}:function(t){return t.currentStyle};var a=r("transition"),s=r("transform"),l=a&&s,d=!!r("perspective"),c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[a],h=["transform","transition","transitionDuration","transitionProperty"],p=function(){for(var t={},e=0,i=h.length;e<i;e++){var o=h[e],n=r(o);n&&n!==o&&(t[o]=n)}return t}();function f(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}o.extend(f.prototype,e.prototype),f.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},f.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},f.prototype.getSize=function(){this.size=i(this.element)},f.prototype.css=function(t){var e=this.element.style;for(var i in t){e[p[i]||i]=t[i]}},f.prototype.getPosition=function(){var t=u(this.element),e=this.layout.options,i=e.isOriginLeft,o=e.isOriginTop,n=t[i?"left":"right"],r=t[o?"top":"bottom"],a=this.layout.size,s=-1!=n.indexOf("%")?parseFloat(n)/100*a.width:parseInt(n,10),l=-1!=r.indexOf("%")?parseFloat(r)/100*a.height:parseInt(r,10);s=isNaN(s)?0:s,l=isNaN(l)?0:l,s-=i?a.paddingLeft:a.paddingRight,l-=o?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=l},f.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={},o=e.isOriginLeft?"paddingLeft":"paddingRight",n=e.isOriginLeft?"left":"right",r=e.isOriginLeft?"right":"left",a=this.position.x+t[o];i[n]=this.getXValue(a),i[r]="";var s=e.isOriginTop?"paddingTop":"paddingBottom",l=e.isOriginTop?"top":"bottom",u=e.isOriginTop?"bottom":"top",d=this.position.y+t[s];i[l]=this.getYValue(d),i[u]="",this.css(i),this.emitEvent("layout",[this])},f.prototype.getXValue=function(t){var e=this.layout.options;return e.percentPosition&&!e.isHorizontal?t/this.layout.size.width*100+"%":t+"px"},f.prototype.getYValue=function(t){var e=this.layout.options;return e.percentPosition&&e.isHorizontal?t/this.layout.size.height*100+"%":t+"px"},f.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=parseInt(t,10),r=parseInt(e,10),a=n===this.position.x&&r===this.position.y;if(this.setPosition(t,e),!a||this.isTransitioning){var s=t-i,l=e-o,u={};u.transform=this.getTranslate(s,l),this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},f.prototype.getTranslate=function(t,e){var i=this.layout.options;return t=i.isOriginLeft?t:-t,e=i.isOriginTop?e:-e,d?"translate3d("+t+"px, "+e+"px, 0)":"translate("+t+"px, "+e+"px)"},f.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},f.prototype.moveTo=l?f.prototype._transitionTo:f.prototype.goTo,f.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},f.prototype._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},f.prototype._transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var m="opacity,"+(p.transform||"transform").replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});f.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:m,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(c,this,!1))},f.prototype.transition=f.prototype[a?"_transition":"_nonTransition"],f.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},f.prototype.onotransitionend=function(t){this.ontransitionend(t)};var g={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};f.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=g[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},f.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(c,this,!1),this.isTransitioning=!1},f.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var y={transitionProperty:"",transitionDuration:""};return f.prototype.removeTransitionStyles=function(){this.css(y)},f.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},f.prototype.remove=function(){if(a&&parseFloat(this.layout.options.transitionDuration)){var t=this;this.once("transitionEnd",function(){t.removeElem()}),this.hide()}else this.removeElem()},f.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},f.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.prototype.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},f.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},f.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},f}),function(r,a){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,o,n){return a(r,t,e,i,o,n)}):"object"==typeof exports?module.exports=a(r,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):r.Outlayer=a(r,r.eventie,r.EventEmitter,r.getSize,r.fizzyUIUtils,r.Outlayer.Item)}(window,function(t,e,i,n,a,o){"use strict";var r=t.console,s=t.jQuery,l=0,u={};function d(t,e){var i=a.getQueryElement(t);if(i){this.element=i,s&&(this.$element=s(this.element)),this.options=a.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,(u[o]=this)._create(),this.options.isInitLayout&&this.layout()}else r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||t))}return d.namespace="outlayer",d.Item=o,d.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},a.extend(d.prototype,i.prototype),d.prototype.option=function(t){a.extend(this.options,t)},d.prototype._create=function(){this.reloadItems(),a.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},d.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},d.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0,r=e.length;n<r;n++){var a=new i(e[n],this);o.push(a)}return o},d.prototype._filterFindItemElements=function(t){return a.filterFindElements(t,this.options.itemSelector)},d.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;e<i;e++)t.push(this.items[e].element);return t},d.prototype._init=d.prototype.layout=function(){this._resetLayout();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d.prototype._resetLayout=function(){this.getSize()},d.prototype.getSize=function(){this.size=n(this.element)},d.prototype._getMeasurement=function(t,e){var i,o=this.options[t];this[t]=o?("string"==typeof o?i=this.element.querySelector(o):a.isElement(o)&&(i=o),i?n(i)[e]:o):0},d.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d.prototype._getItemsForLayout=function(t){for(var e=[],i=0,o=t.length;i<o;i++){var n=t[i];n.isIgnored||e.push(n)}return e},d.prototype._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){for(var i=[],o=0,n=t.length;o<n;o++){var r=t[o],a=this._getItemLayoutPosition(r);a.item=r,a.isInstant=e||r.isLayoutInstant,i.push(a)}this._processLayoutQueue(i)}},d.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},d.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;e<i;e++){var o=t[e];this._positionItem(o.item,o.x,o.y,o.isInstant)}},d.prototype._positionItem=function(t,e,i,o){o?t.goTo(e,i):t.moveTo(e,i)},d.prototype._postLayout=function(){this.resizeContainer()},d.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},d.prototype._getContainerSize=function(){},d.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},d.prototype._emitCompleteOnItems=function(t,e){var i=this;function o(){i.dispatchEvent(t+"Complete",null,[e])}var n=e.length;if(e&&n)for(var r=0,a=0,s=e.length;a<s;a++){e[a].once(t,l)}else o();function l(){++r===n&&o()}},d.prototype.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),s)if(this.$element=this.$element||s(this.element),e){var n=s.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},d.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},d.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},d.prototype._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=a.makeArray(t)},d.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=n(t);return{left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom}},d.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.prototype.bindResize=function(){this.isResizeBound||(e.bind(t,"resize",this),this.isResizeBound=!0)},d.prototype.unbindResize=function(){this.isResizeBound&&e.unbind(t,"resize",this),this.isResizeBound=!1},d.prototype.onresize=function(){this.resizeTimeout&&clearTimeout(this.resizeTimeout);var t=this;this.resizeTimeout=setTimeout(function(){t.resize(),delete t.resizeTimeout},100)},d.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.prototype.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},d.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},d.prototype.reveal=function(t){this._emitCompleteOnItems("reveal",t);for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].reveal()}},d.prototype.hide=function(t){this._emitCompleteOnItems("hide",t);for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].hide()}},d.prototype.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},d.prototype.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},d.prototype.getItem=function(t){for(var e=0,i=this.items.length;e<i;e++){var o=this.items[e];if(o.element===t)return o}},d.prototype.getItems=function(t){for(var e=[],i=0,o=(t=a.makeArray(t)).length;i<o;i++){var n=t[i],r=this.getItem(n);r&&e.push(r)}return e},d.prototype.remove=function(t){var e=this.getItems(t);if(this._emitCompleteOnItems("remove",e),e&&e.length)for(var i=0,o=e.length;i<o;i++){var n=e[i];n.remove(),a.removeFrom(this.items,n)}},d.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;e<i;e++){this.items[e].destroy()}this.unbindResize();var o=this.element.outlayerGUID;delete u[o],delete this.element.outlayerGUID,s&&s.removeData(this.element,this.constructor.namespace)},d.data=function(t){var e=(t=a.getQueryElement(t))&&t.outlayerGUID;return e&&u[e]},d.create=function(t,e){function i(){d.apply(this,arguments)}return Object.create?i.prototype=Object.create(d.prototype):a.extend(i.prototype,d.prototype),(i.prototype.constructor=i).defaults=a.extend({},d.defaults),a.extend(i.defaults,e),i.prototype.settings={},i.namespace=t,i.data=d.data,(i.Item=function(){o.apply(this,arguments)}).prototype=new o,a.htmlInit(i,t),s&&s.bridget&&s.bridget(t,i),i},d.Item=o,d}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("TG_Layout/js/item",["outlayer/outlayer"],e):"object"==typeof exports?module.exports=e(require("outlayer")):(t.TG_Layout=t.TG_Layout||{},t.TG_Layout.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}(e.prototype=new t.Item)._create=function(){this.id=this.layout.itemGUID++,t.Item.prototype._create.call(this),this.sortData={}},e.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var i=e.prototype.destroy;return e.prototype.destroy=function(){i.apply(this,arguments),this.css({display:""})},e}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("TG_Layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof exports?module.exports=e(require("get-size"),require("outlayer")):(t.TG_Layout=t.TG_Layout||{},t.TG_Layout.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(e,r){"use strict";function a(t){(this.TG_Layout=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}return function(){for(var t=["_resetLayout","_getItemLayoutPosition","_getContainerSize","_getElementOffset","needsResizeLayout"],e=0,i=t.length;e<i;e++){var o=t[e];a.prototype[o]=n(o)}function n(t){return function(){return r.prototype[t].apply(this.TG_Layout,arguments)}}}(),a.prototype.needsVerticalResizeLayout=function(){var t=e(this.TG_Layout.element);return this.TG_Layout.size&&t&&t.innerHeight!=this.TG_Layout.size.innerHeight},a.prototype._getMeasurement=function(){this.TG_Layout._getMeasurement.apply(this,arguments)},a.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},a.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},a.prototype.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.TG_Layout.size["inner"+e]}},a.prototype.getFirstItemSize=function(){var t=this.TG_Layout.filteredItems[0];return t&&t.element&&e(t.element)},a.prototype.layout=function(){this.TG_Layout.layout.apply(this.TG_Layout,arguments)},a.prototype.getSize=function(){this.TG_Layout.getSize(),this.size=this.TG_Layout.size},a.modes={},a.create=function(t,e){function i(){a.apply(this,arguments)}return i.prototype=new a,e&&(i.options=e),a.modes[i.prototype.namespace=t]=i},a}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):t.Masonry=e(t.Outlayer,t.getSize,t.fizzyUIUtils)}(window,function(t,a,h){var e=t.create("masonry");return e.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.x=0,this.y=0,this.maxY=0},e.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],e=t&&t.element;this.columnWidth=e&&a(e).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,n=o/i,r=i-o%i;n=Math[r&&r<1?"round":"floor"](n),this.cols=Math.max(n,1)},e.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,e=a(t);this.containerWidth=e&&e.innerWidth},e.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);var o=this._getColGroup(i),n=Math.min.apply(Math,o),r=h.indexOf(o,n);if(this.options.isFitRows){var a=t.size.outerWidth+this.gutter,s=this.TG_Layout.size.innerWidth+this.gutter;0!==this.x&&a+this.x>s&&(this.x=0,this.y=this.maxY)}else this.x=this.columnWidth*r,this.y=n;var l={x:this.x,y:this.y};this.options.isFitRows&&(this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight+this.gutter),this.x+=a);for(var u=n+t.size.outerHeight+this.gutter,d=this.cols+1-o.length,c=0;c<d;c++)this.colYs[r+c]=u;return l},e.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++){var n=this.colYs.slice(o,o+t);e[o]=Math.max.apply(Math,n)}return e},e.prototype._getContainerSize=function(){this.maxY=this.options.isFitRows?this.maxY:Math.max.apply(Math,this.colYs);var t={height:this.maxY-this.gutter};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},e.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},e}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("TG_Layout/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.TG_Layout.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype._getElementOffset,n=i.prototype.layout,r=i.prototype._getMeasurement;!function(t,e){for(var i in e)t[i]=e[i]}(i.prototype,e.prototype),i.prototype._getElementOffset=o,i.prototype.layout=n,i.prototype._getMeasurement=r;var a=i.prototype.measureColumns;return i.prototype.measureColumns=function(){this.items=this.TG_Layout.filteredItems,a.call(this)},i}),function(a,s){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","TG_Layout/js/item","TG_Layout/js/layout-mode","TG_Layout/js/layout-modes/masonry"],function(t,e,i,o,n,r){return s(a,t,e,i,o,n,r)}):"object"==typeof exports?module.exports=s(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry")):a.TG_Layout=s(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.TG_Layout.Item,a.TG_Layout.LayoutMode)}(window,function(t,o,e,i,n,r,a){var s=t.jQuery,l=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=document.documentElement.textContent?function(t){return t.textContent}:function(t){return t.innerText},d=o.create("TG_Layout",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=r,d.LayoutMode=a,d.prototype._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),o.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],a.modes)this._initLayoutMode(t)},d.prototype.reloadItems=function(){this.itemGUID=0,o.prototype.reloadItems.call(this)},d.prototype._itemize=function(){for(var t=o.prototype._itemize.apply(this,arguments),e=0,i=t.length;e<i;e++){t[e].id=this.itemGUID++}return this._updateItemsSortData(t),t},d.prototype._initLayoutMode=function(t){var e=a.modes[t],i=this.options[t]||{};this.options[t]=e.options?n.extend(e.options,i):i,this.modes[t]=new e(this)},d.prototype.layout=function(){this._isLayoutInited||!this.options.isInitLayout?this._layout():this.arrange()},d.prototype._layout=function(){var t=this._getIsInstant();this._resetLayout(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},d.prototype.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches;var i=this;function o(){i.reveal(e.needReveal),i.hide(e.needHide)}this._bindArrangeComplete(),this._isInstant?this._noTransition(o):o(),this._sort(),this._layout()},d.prototype._init=d.prototype.arrange,d.prototype._getIsInstant=function(){var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=t},d.prototype._bindArrangeComplete=function(){var t,e,i,o=this;function n(){t&&e&&i&&o.dispatchEvent("arrangeComplete",null,[o.filteredItems])}this.once("layoutComplete",function(){t=!0,n()}),this.once("hideComplete",function(){e=!0,n()}),this.once("revealComplete",function(){i=!0,n()})},d.prototype._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],r=this._getFilterTest(e),a=0,s=t.length;a<s;a++){var l=t[a];if(!l.isIgnored){var u=r(l);u&&i.push(l),u&&l.isHidden?o.push(l):u||l.isHidden||n.push(l)}}return{matches:i,needReveal:o,needHide:n}},d.prototype._getFilterTest=function(e){return s&&this.options.isJQueryFiltering?function(t){return s(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return i(t.element,e)}},d.prototype.updateSortData=function(t){var e;e=t?(t=n.makeArray(t),this.getItems(t)):this.items,this._getSorters(),this._updateItemsSortData(e)},d.prototype._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=c(i)}},d.prototype._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].updateSortData()}};var c=function(t){if("string"!=typeof t)return t;var e,i,o=l(t).split(" "),n=o[0],r=n.match(/^\[(.+)\]$/),a=(e=r&&r[1],i=n,e?function(t){return t.getAttribute(e)}:function(t){var e=t.querySelector(i);return e&&u(e)}),s=d.sortDataParsers[o[1]];return t=s?function(t){return t&&s(a(t))}:function(t){return t&&a(t)}};return d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},d.prototype._sort=function(){var t=this.options.sortBy;if(t){var u,d,e=[].concat.apply(t,this.sortHistory),i=(u=e,d=this.options.sortAscending,function(t,e){for(var i=0,o=u.length;i<o;i++){var n=u[i],r=t.sortData[n],a=e.sortData[n];if(a<r||r<a){var s=void 0!==d[n]?d[n]:d,l=s?1:-1;return(a<r?1:-1)*l}}return 0});this.filteredItems.sort(i),t!=this.sortHistory[0]&&this.sortHistory.unshift(t)}},d.prototype._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},d.prototype._resetLayout=function(){o.prototype._resetLayout.call(this),this._mode()._resetLayout()},d.prototype._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},d.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},d.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},d.prototype.appended=function(t){var e=this.addItems(t);if(e.length)if("justified"==this.options.layoutMode){var i=this._filter(e);this.hide(i.needHide),this.reveal(i.matches),this.filteredItems=this.filteredItems.concat(i.matches),this.layoutItems(i.matches,!0)}else{var o=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(o)}},d.prototype._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},d.prototype._noTransition=function(t){var e=this.options.transitionDuration;this.options.transitionDuration=0;var i=t.call(this);return this.options.transitionDuration=e,i},d.prototype.getFilteredItemElements=function(){for(var t=[],e=0,i=this.filteredItems.length;e<i;e++)t.push(this.filteredItems[e].element);return t},d}),function(t){function i(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}var o,n,r;function e(t,e){(o(t,e)?r:n)(t,e)}r="classList"in document.documentElement?(o=function(t,e){return t.classList.contains(e)},n=function(t,e){t.classList.add(e)},function(t,e){t.classList.remove(e)}):(o=function(t,e){return i(e).test(t.className)},n=function(t,e){o(t,e)||(t.className=t.className+" "+e)},function(t,e){t.className=t.className.replace(i(e)," ")});var a={hasClass:o,addClass:n,removeClass:r,toggleClass:e,has:o,add:n,remove:r,toggle:e};"function"==typeof define&&define.amd?define("classie/classie",a):"object"==typeof exports?module.exports=a:t.classie=a}(window),function(t,e){"function"==typeof define&&define.amd?define("packery/js/rect",e):"object"==typeof exports?module.exports=e():(t.Packery=t.Packery||{},t.Packery.Rect=e())}(window,function(){function s(t){for(var e in s.defaults)this[e]=s.defaults[e];for(e in t)this[e]=t[e]}return((window.Packery=function(){}).Rect=s).defaults={x:0,y:0,width:0,height:0},s.prototype.contains=function(t){var e=t.width||0,i=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+i},s.prototype.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,o=t.x+t.width,n=t.y+t.height;return this.x<o&&e>t.x&&this.y<n&&i>t.y},s.prototype.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var e,i=[],o=this.x+this.width,n=this.y+this.height,r=t.x+t.width,a=t.y+t.height;return this.y<t.y&&(e=new s({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),i.push(e)),r<o&&(e=new s({x:r,y:this.y,width:o-r,height:this.height}),i.push(e)),a<n&&(e=new s({x:this.x,y:a,width:this.width,height:n-a}),i.push(e)),this.x<t.x&&(e=new s({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),i.push(e)),i},s.prototype.canFit=function(t){return this.width>=t.width&&this.height>=t.height},s}),function(t,e){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],e);else if("object"==typeof exports)module.exports=e(require("./rect"));else{var i=t.Packery=t.Packery||{};i.Packer=e(i.Rect)}}(window,function(e){function t(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}t.prototype.reset=function(){this.spaces=[],this.newSpaces=[];var t=new e({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=i[this.sortDirection]||i.downwardLeftToRight},t.prototype.pack=function(t){for(var e=0,i=this.spaces.length;e<i;e++){var o=this.spaces[e];if(o.canFit(t)){this.placeInSpace(t,o);break}}},t.prototype.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},t.prototype.placed=function(t){for(var e=[],i=0,o=this.spaces.length;i<o;i++){var n=this.spaces[i],r=n.getMaximalFreeRects(t);r?e.push.apply(e,r):e.push(n)}this.spaces=e,this.mergeSortSpaces()},t.prototype.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},t.prototype.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},t.mergeRects=function(t){for(var e=0,i=t.length;e<i;e++){var o=t[e];if(o){var n=t.slice(0);n.splice(e,1);for(var r=0,a=0,s=n.length;a<s;a++){var l=n[a],u=a<e?0:1;o.contains(l)&&(t.splice(a+u-r,1),r++)}}}return t};var i={downwardLeftToRight:function(t,e){return t.y-e.y||t.x-e.x},rightwardTopToBottom:function(t,e){return t.x-e.x||t.y-e.y}};return t}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/item",["get-style-property/get-style-property","outlayer/outlayer","./rect"],e):"object"==typeof exports?module.exports=e(require("desandro-get-style-property"),require("outlayer"),require("./rect")):t.Packery.Item=e(t.getStyleProperty,t.Outlayer,t.Packery.Rect)}(window,function(t,e,i){t("transform");var o=function(){e.Item.apply(this,arguments)},n=(o.prototype=new e.Item)._create;return o.prototype._create=function(){n.call(this),this.rect=new i,this.placeRect=new i},o.prototype.positionPlaceRect=function(t,e,i){this.placeRect.x=this.getPlaceRectCoord(t,!0),this.placeRect.y=this.getPlaceRectCoord(e,!1,i)},o.prototype.getPlaceRectCoord=function(t,e,i){var o,n=e?"Width":"Height",r=this.size["outer"+n],a=this.layout[e?"columnWidth":"rowHeight"],s=this.layout.size["inner"+n];if(e||(s=Math.max(s,this.layout.maxY),this.layout.rowHeight||(s-=this.layout.gutter)),a){var l;a+=this.layout.gutter,s+=e?this.layout.gutter:0,t=Math.round(t/a),l=this.layout.options.isHorizontal?e?"ceil":"floor":e?"floor":"ceil";var u=Math[l](s/a);o=u-=Math.ceil(r/a)}else o=s-r;return t=i?t:Math.min(t,o),t*=a||1,Math.max(0,t)},o.prototype.copyPlaceRectPosition=function(){this.rect.x=this.placeRect.x,this.rect.y=this.placeRect.y},o.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},o}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/packery",["classie/classie","get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],e):"object"==typeof exports?module.exports=e(require("desandro-classie"),require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):t.Packery=e(t.classie,t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(t,r,e,i,o,n){i.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var a=e.create("packery");function s(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function l(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}return a.Item=n,a.prototype._create=function(){e.prototype._create.call(this),this.packer=new o},a.prototype._resetLayout=function(){this.getSize(),this._getMeasurements();var t=this.packer;this.options.isHorizontal?(t.width=Number.POSITIVE_INFINITY,t.height=this.size.innerHeight+this.gutter,t.sortDirection="rightwardTopToBottom"):(t.width=this.size.innerWidth+this.gutter,t.height=Number.POSITIVE_INFINITY,t.sortDirection="downwardLeftToRight"),t.reset(),this.maxY=0,this.maxX=0},a.prototype._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},a.prototype._getItemLayoutPosition=function(t){return this._packItem(t),t.rect},a.prototype._packItem=function(t){this._setRectSize(t.element,t.rect),this.packer.pack(t.rect),this._setMaxXY(t.rect)},a.prototype._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},a.prototype._setRectSize=function(t,e){var i=r(t),o=i.outerWidth,n=i.outerHeight;(o||n)&&(o=this._applyGridGutter(o,this.columnWidth),n=this._applyGridGutter(n,this.rowHeight)),e.width=Math.min(o,this.packer.width),e.height=Math.min(n,this.packer.height)},a.prototype._applyGridGutter=function(t,e){if(!e)return t+this.gutter;var i=t%(e+=this.gutter);return t=Math[i&&i<1?"round":"ceil"](t/e)*e},a.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},a.prototype.sortItemsByPosition=function(){var t=this.options.isHorizontal?l:s;this.items.sort(t)},a.prototype.fit=function(t,e,i){var o=this.getItem(t);o&&(this._getMeasurements(),o.getSize(),o.isPlacing=!0,e=void 0===e?o.rect.x:e,i=void 0===i?o.rect.y:i,o.positionPlaceRect(e,i,!0),this._bindFitEvents(o),o.moveTo(o.placeRect.x,o.placeRect.y),this.layout(),this.unstamp(o.element),this.sortItemsByPosition(),o.isPlacing=!1,o.copyPlaceRectPosition())},a.prototype._bindFitEvents=function(t){var e=this,i=0;function o(){2==++i&&e.emitEvent("fitComplete",[t])}t.on("layout",function(){return o(),!0}),this.on("layoutComplete",function(){return o(),!0})},a.prototype.resize=function(){var t=r(this.element),e=this.size&&t,i=this.options.isHorizontal?"innerHeight":"innerWidth";e&&t[i]==this.size[i]||this.layout()},a.Rect=i,a.Packer=o,a}),function(t,e){"function"==typeof define&&define.amd?define(["TG_Layout/js/layout-mode","packery/js/packery","get-size/get-size"],e):"object"==typeof exports?module.exports=e(require("TG_Layout-layout/js/layout-mode"),require("packery"),require("get-size")):e(t.TG_Layout.LayoutMode,t.Packery,t.getSize)}(window,function(t,e,o){var i=t.create("packery"),n=i.prototype._getElementOffset,r=i.prototype._getMeasurement;!function(t,e){for(var i in e)t[i]=e[i]}(i.prototype,e.prototype),i.prototype._getElementOffset=n,i.prototype._getMeasurement=r;var a=i.prototype._resetLayout;i.prototype._resetLayout=function(){this.packer=this.packer||new e.Packer,a.apply(this,arguments)};var s=i.prototype._getItemLayoutPosition;return i.prototype._getItemLayoutPosition=function(t){return t.rect=t.rect||new e.Rect,s.call(this,t)},i.prototype.needsResizeLayout=function(){var t=o(this.element),e=this.size&&t,i=this.options.isHorizontal?"innerHeight":"innerWidth";return e&&t[i]!=this.size[i]},i}),function(t){"use strict";function e(t){var e=t.create("horizontal");return e.prototype._resetLayout=function(){this.x=0},e.prototype._getItemLayoutPosition=function(t){t.getSize(),this._getMeasurement("gutter","width");var e=this.x;return this.x+=t.size.outerWidth+this.gutter,{x:e,y:0}},e.prototype._getContainerSize=function(){return{width:this.x-this.gutter}},e.prototype.needsResizeLayout=function(){return this.needsVerticalResizeLayout()},e}"function"==typeof define&&define.amd?define(["TG_Layout/js/layout-mode"],e):"object"==typeof exports?module.exports=e(require("TG_Layout-layout/js/layout-mode")):e(t.TG_Layout.LayoutMode)}(window),function(t){"use strict";function e(t){var e=t.create("justified");return e.prototype._resetLayout=function(){this.justified_data=[],this.prev_width=0,this.prev_top=0,this.max_width=0,this.count=0,this._getMeasurement("gutter","width"),this._getMeasurement("rowHeight","height");var t=this.TG_Layout.size.innerWidth+this.gutter,e=this.TG_Layout.filteredItems;if(this.options.isHorizontal)this.row(e);else{t:for(;0<e.length;){for(var i=1;i<e.length+1;++i){var o=e.slice(0,i),n=this.getHeight(o,t);if(n<this.rowHeight){this.setHeight(o,n),0,e=e.slice(i);continue t}}this.setHeight(o,Math.min(this.rowHeight,n)),0;break}this.checkWidth()}},e.prototype.row=function(t){for(var e=this.options.row,i=this.rowHeight,o=0;o<t.length;++o){var n=jQuery(t[o].element).find(this.options.image),r=n[0]?this.getSize(n):[],a=r.width?Math.round(i*r.width/r.height):16*i/9,s=this.justified_data[o-e],l=s?s.x+s.width+this.gutter:0,u=s?s.y:o*(i+this.gutter);this.justified_data.push({width:a,height:i,x:l,y:u})}},e.prototype.getHeight=function(t,e){e-=t.length*this.gutter;for(var i=0,o=0;o<t.length;++o){var n=jQuery(t[o].element).find(this.options.image),r=n[0]?this.getSize(n):[];i+=(r.width?r.width:16*this.rowHeight/9)/(r.height?r.height:this.rowHeight)}return e/i},e.prototype.setHeight=function(t,e){for(var i=this.prev_width=0;i<t.length;++i){var o=jQuery(t[i].element).find(this.options.image),n=(e=Math.round(e),o[0]?this.getSize(o):[]),r=n.width?Math.round(e*n.width/n.height):16*e/9;this.justified_data.push({width:r,height:e,x:this.prev_width,y:this.prev_top}),this.prev_width+=r+this.gutter}this.prev_top+=e+this.gutter},e.prototype.getSize=function(t){if(t[0].naturalWidth)var e=t[0]?t[0].naturalWidth:null,i=t[0]?t[0].naturalHeight:null;else{var o=new Image;o.src=t[0]?t.attr("src"):null;e=o?o.width:null,i=o?o.height:null}return{width:e,height:i}},e.prototype.checkWidth=function(){for(var t=0,e=this.justified_data.length,i=0;i<this.justified_data.length;++i)this.justified_data[i].y!=t&&this.adjustWidth(i-1),t=this.justified_data[i].y;var o=this.justified_data[e-1];o&&o.x+o.width>this.TG_Layout.size.innerWidth&&this.adjustWidth(e-1)},e.prototype.adjustWidth=function(t){var e=this.justified_data[t].x,i=this.justified_data[t].width,o=this.TG_Layout.size.innerWidth-(e+i);this.justified_data[t].width=i+o},e.prototype._getItemLayoutPosition=function(t){if(!this.justified_data[this.count]){this.pcount=this.count,this._resetLayout();for(var e=0;e<this.pcount;++e){jQuery(this.TG_Layout.filteredItems[e].element).width(this.justified_data[e].width).height(this.justified_data[e].height).css("top",this.justified_data[e].y).css("left",this.justified_data[e].x);var i=this.justified_data[e].x+this.justified_data[e].width;this.max_width=i>this.max_width?i:this.max_width}this.count=this.pcount}t.element.style.width=this.justified_data[this.count].width+"px",t.element.style.height=this.justified_data[this.count].height+"px";var o={x:this.justified_data[this.count].x,y:this.justified_data[this.count].y};i=o.x+this.justified_data[this.count].width;return this.max_width=i>this.max_width?i:this.max_width,++this.count,o},e.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.max_width,height:(this.rowHeight+this.gutter)*this.options.row-this.gutter}:{height:this.prev_top-this.gutter}},e.prototype.needsResizeLayout=function(){return this.max_width},e}"function"==typeof define&&define.amd?define(["TG_Layout/js/layout-mode"],e):"object"==typeof exports?module.exports=e(require("TG_Layout-layout/js/layout-mode")):e(t.TG_Layout.LayoutMode)}(window),function(t){var e=TG_Layout.Item.prototype.reveal;TG_Layout.Item.prototype.reveal=function(){e.apply(this,arguments),t(this.element).removeClass("tg-item-hidden")};var i=TG_Layout.Item.prototype.hide;TG_Layout.Item.prototype.hide=function(){i.apply(this,arguments),t(this.element).addClass("tg-item-hidden")}}(jQuery),function(ft,t,mt){"use strict";var gt,yt,e="TG_Slider",vt=e,_t=t.cancelAnimationFrame||t.cancelRequestAnimationFrame,wt=t.requestAnimationFrame,bt=ft(document),Tt="touchstart."+vt+" mousedown."+vt,xt="mousemove."+vt+" mouseup."+vt,zt="touchmove."+vt+" touchend."+vt,i=(document.implementation.hasFeature("Event.wheel","3.0")?"wheel.":"mousewheel.")+vt,Lt="click."+vt,Ct="mousedown."+vt,It=["INPUT","SELECT","BUTTON","TEXTAREA"],St=[],Gt=Math.abs,Pt=Math.sqrt,jt=Math.pow,Et=Math.round,kt=Math.max,Mt=Math.min,o=0;function Rt(t,e,o){var i,n,_=ft.extend({},Rt.defaults,e),w=this,b=At(t),T=ft(t),x=_.slidee?ft(_.slidee).eq(0):T.children().eq(0),z=0,L=0,C={start:0,center:0,end:0,cur:0,dest:0},I=ft(_.scrollBar).eq(0),r=I.children().eq(0),S=0,G=0,a={start:0,end:0,cur:0},P=ft(_.pagesBar),j=0,E=[],k=0,M=[],R={firstItem:0,lastItem:0,centerItem:0,activeItem:null,activePage:0},s=new Ft(T[0]),l=new Ft(x[0]),u=new Ft(I[0]),d=new Ft(r[0]),c="basic"===_.itemNav,D="forceCentered"===_.itemNav,O="centered"===_.itemNav||D,W=!b&&(c||O||D),h=(_.scrollSource&&ft(_.scrollSource),_.dragSource?ft(_.dragSource):T),p=ft(_.forward),f=ft(_.backward),m=ft(_.prev),g=ft(_.next),y=ft(_.prevPage),v=ft(_.nextPage),q={},A={},H={},B={},F={released:1},N=0,Y=0,Q=0,V=0;function X(t){var e=E.length,i=x.data("TG_Layout"),r=i?i.options[i.options.layoutMode].gutter.offsetWidth:0;if(!i)return!1;if(z=T.width(),S=I.width(),L=x.outerWidth(),E.length=0,C.start=0,C.end=kt(L-z,0),W){M.length,k=x.children(_.itemSelector),M.length=0;for(var a,s=Ht(x,_.horizontal?"paddingLeft":"paddingTop"),l=Ht(x,_.horizontal?"paddingRight":"paddingBottom"),o="border-box"===ft(k).css("boxSizing"),n=i.filteredItems,u=0,d=0,c=[],h=[],p=0;p<n.length;p++){var f=parseFloat(getComputedStyle(n[p].element).width)+r,m=n[p].position.x;d=d<m+f?m+f:d,c.push(m)}c.push(d),c.sort(function(t,e){return t-e});for(p=1;p<c.length;p++)h.push(c[p]-c[p-1]);L=0,ft(n).each(function(t,e){var i=r/2,o=r/2,n={};n.el=e,n.size=h[t],n.half=n.size/2,n.start=L-i,n.center=n.start-Et(z/2-n.size/2),n.end=n.start-z+n.size,t||(L+=s),L+=n.size,_.horizontal||o&&i&&0<t&&(L-=Mt(i,o)),0===t&&(n.end+=l,L+=l,u=o),n.size&&(M.push(n),a=n)}),x[0].style[_.horizontal?"width":"height"]=(o?L:L-s-l)+"px",L-=u,M.length?(C.start=M[0][D?"center":"start"],C.end=D?a.center:z<L?a.end:C.start):C.start=C.end=0}if(C.center=Et(C.end/2+C.start/2),et(),!b&&0<z){var g=C.start,y="";if(W)ft.each(M,function(t,e){D?E.push(e.center):e.start+e.size>g&&g<=C.end&&(g=e.start,E.push(e.size<z&&"justified"===i.options.layoutMode?e.start+(e.size-z)/2:e.start),(g+=z)>C.end&&g<C.end+z&&E.push(C.end))});else for(;g-z<C.end;)E.push(g),g+=z;if(P[0]&&e!==E.length){for(p=0;p<E.length;p++)y+=_.pageBuilder.call(w,p);1===E.length&&(y=null),(j=P.html(y).children()).eq(R.activePage).addClass(_.activeClass)}}if(R.slideeSize=L,R.frameSize=z,R.sbSize=S,R.handleSize=G,W){t&&null!=_.startAt&&w[O?"toCenter":"toStart"](_.startAt);var v=M[R.activeItem];U(O&&v?v.center:Bt(C.dest,C.start,C.end))}else t?null!=_.startAt&&U(_.startAt,1):U(Bt(C.dest,C.start,C.end));pt("load")}function U(t,e,i){if(W&&F.released&&!i){var o=tt(t),n=t>C.start&&t<C.end;O?(n&&(t=M[o.centerItem].center),D&&_.activateMiddle&&activate(o.centerItem)):n&&(t=M[o.firstItem].start)}F.init&&F.slidee&&_.elasticBounds?t>C.end?t=C.end+(t-C.end)/6:t<C.start&&(t=C.start+(t-C.start)/6):t=Bt(t,C.start,C.end),H.start=+new Date,H.time=0,H.from=C.cur,H.to=t,H.delta=t-C.cur,H.tweesing=F.tweese||F.init&&!F.slidee,H.immediate=!H.tweesing&&(e||F.init&&F.slidee||!_.speed),F.tweese=0,t!==C.dest&&(C.dest=t,pt("change"),N||$()),F.released&&!w.isPaused&&w.resume(),et(),function(){var t=C.dest<=C.start,e=C.dest>=C.end,i=(t?1:0)|(e?2:0);A.slideePosState!==i&&(A.slideePosState=i,y.is("button,input")&&y.prop("disabled",t),v.is("button,input")&&v.prop("disabled",e),y.add(f)[t?"addClass":"removeClass"](_.disabledClass),v.add(p)[e?"addClass":"removeClass"](_.disabledClass));A.fwdbwdState!==i&&F.released&&(A.fwdbwdState=i,f.is("button,input")&&f.prop("disabled",t),p.is("button,input")&&p.prop("disabled",e));if(W&&null!=R.activeItem){var o=0===R.activeItem,n=R.activeItem>=M.length-1,r=(o?1:0)|(n?2:0);A.itemsButtonState!==r&&(A.itemsButtonState=r,m.is("button,input")&&m.prop("disabled",o),g.is("button,input")&&g.prop("disabled",n),m[o?"addClass":"removeClass"](_.disabledClass),g[n?"addClass":"removeClass"](_.disabledClass))}}(),j[0]&&A.page!==R.activePage&&(A.page=R.activePage,j.removeClass(_.activeClass).eq(R.activePage).addClass(_.activeClass),pt("activePage",A.page))}function $(){if(w.initialized){if(!N)return N=wt($),void(F.released&&pt("moveStart"));H.immediate?C.cur=H.to:H.tweesing?(H.tweeseDelta=H.to-C.cur,Gt(H.tweeseDelta)<.1?C.cur=H.to:C.cur+=H.tweeseDelta*(F.released?_.swingSpeed:_.syncSpeed)):(H.time=Mt(+new Date-H.start,_.speed),C.cur=H.from+H.delta*ft.easing[_.easing](H.time/_.speed,H.time,0,1,_.speed)),H.to===C.cur?(C.cur=H.to,F.tweese=N=0):N=wt($),pt("move"),b||(gt?x[0].style[gt]=yt+(_.horizontal?"translateX":"translateY")+"("+-C.cur+"px)":x[0].style[_.horizontal?"left":"top"]=-Et(C.cur)+"px"),!N&&F.released&&pt("moveEnd")}}function Z(){B.speed&&C.cur!==(0<B.speed?C.end:C.start)||w.stop(),V=F.init?wt(Z):0,B.now=+new Date,B.pos=C.cur+(B.now-B.lastTime)/1e3*B.speed,U(F.init?B.pos:Et(B.pos)),F.init||C.cur!==C.dest||pt("moveEnd"),B.lastTime=B.now}function J(t,e,i){if("boolean"===Dt(e)&&(i=e,e=mt),e===mt)U(C[t],i);else{if(O&&"center"!==t)return;var o=w.getPos(e);o&&U(o[t],i,!O)}}function K(t){return null!=t?At(t)?0<=t&&t<M.length?t:-1:k.index(t):-1}function tt(t){t=Bt(At(t)?t:C.dest,C.start,C.end);var e={},i=D?0:z/2;if(!b)for(var o=0,n=E.length;o<n;o++){if(t>=C.end||o===E.length-1){e.activePage=E.length-1;break}if(t<=E[o]+i){e.activePage=o;break}}if(W){for(var r=!1,a=!1,s=!1,l=0,u=M.length;l<u;l++)if(!1===r&&t<=M[l].start+M[l].half&&(r=l),!1===s&&t<=M[l].center+M[l].half&&(s=l),l===u-1||t<=M[l].end+M[l].half){a=l;break}e.firstItem=At(r)?r:0,e.centerItem=At(s)?s:e.firstItem,e.lastItem=At(a)?a:e.centerItem}return e}function et(t){ft.extend(R,tt(t))}function it(t,e){for(var i=0,o=q[t].length;i<o;i++)if(q[t][i]===e)return i;return-1}function ot(){F.history[0]=F.history[1],F.history[1]=F.history[2],F.history[2]=F.history[3],F.history[3]=F.delta}function nt(t){F.released=0,F.source=t,F.slidee="slidee"===t}function rt(t){var e,i="touchstart"===t.type,o=t.data.source,n="slidee"===o;F.init||!i&&(e=t.target,~ft.inArray(e.nodeName,It)||ft(e).is(_.interactive))||("handle"!==o||_.dragHandle&&a.start!==a.end)&&(n&&!(i?_.touchDragging:_.mouseDragging&&t.which<2)||(i||Ot(t),nt(o),F.init=0,F.$source=ft(t.target),F.touch=i,F.pointer=i?t.originalEvent.touches[0]:t,F.initX=F.pointer.pageX,F.initY=F.pointer.pageY,F.initPos=n?C.cur:a.cur,F.start=+new Date,F.time=0,F.path=0,F.delta=0,F.locked=0,F.history=[0,0,0,0],F.pathToLock=n?i?30:10:0,bt.on(i?zt:xt,at),w.pause(1),(n?x:r).addClass(_.draggedClass),pt("moveStart"),n&&(Y=setInterval(ot,10))))}function at(t){if(F.released="mouseup"===t.type||"touchend"===t.type,F.pointer=F.touch?t.originalEvent[F.released?"changedTouches":"touches"][0]:t,F.pathX=F.pointer.pageX-F.initX,F.pathY=F.pointer.pageY-F.initY,F.path=Pt(jt(F.pathX,2)+jt(F.pathY,2)),F.delta=_.horizontal?F.pathX:F.pathY,F.released||!(F.path<1)){if(!F.init){if(!(_.horizontal?Gt(F.pathX)>Gt(F.pathY):Gt(F.pathX)<Gt(F.pathY)))return st();F.init=1}var e;Ot(t),!F.locked&&F.path>F.pathToLock&&F.slidee&&(F.locked=1,F.$source.on(Lt,Wt)),F.released&&(st(),_.releaseSwing&&F.slidee&&(F.swing=(F.delta-F.history[0])/40*300,F.delta+=F.swing,F.tweese=10<Gt(F.swing))),U(F.slidee?Et(F.initPos-F.delta):(e=F.initPos+F.delta,Et(Bt(e,a.start,a.end)/a.end*(C.end-C.start))+C.start))}}function st(){clearInterval(Y),F.released=!0,bt.off(F.touch?zt:xt,at),(F.slidee?x:r).removeClass(_.draggedClass),setTimeout(function(){F.$source.off(Lt,Wt)}),C.cur===C.dest&&F.init&&pt("moveEnd"),w.resume(1),F.init=0}function lt(){w.stop(),bt.off("mouseup",lt)}function ut(t){switch(Ot(t),this){case p[0]:case f[0]:w.moveBy(p.is(this)?_.moveBy:-_.moveBy),bt.on("mouseup",lt);break;case m[0]:w.prev();break;case g[0]:w.next();break;case y[0]:w.prevPage();break;case v[0]:w.nextPage()}}function dt(t){if(_.keyboardNavBy)switch(t.which){case _.horizontal?37:38:Ot(t),w["pages"===_.keyboardNavBy?"prevPage":"prev"]();break;case _.horizontal?39:40:Ot(t),w["pages"===_.keyboardNavBy?"nextPage":"next"]()}}function ct(){this.parentNode===P[0]&&w.activatePage(j.index(this))}function ht(t){_.pauseOnHover&&w["mouseenter"===t.type?"pause":"resume"](2)}function pt(t,e){if(q[t]){for(n=q[t].length,St.length=0,i=0;i<n;i++)St.push(q[t][i]);for(i=0;i<n;i++)St[i].call(w,t,e)}}b||(t=T[0]),w.initialized=0,w.frame=t,w.slidee=x[0],w.pos=C,w.rel=R,w.items=M,w.pages=E,w.isPaused=0,w.options=_,w.dragging=F,w.reload=function(){X()},w.getPos=function(t){if(W){var e=K(t);return-1!==e&&M[e]}var i=x.find(t).eq(0);if(i[0]){var o=_.horizontal?i.offset().left-x.offset().left:i.offset().top-x.offset().top,n=i[_.horizontal?"outerWidth":"outerHeight"]();return{start:o,center:o-z/2+n/2,end:o-z+n,size:n}}return!1},w.moveBy=function(t){B.speed=t,!F.init&&B.speed&&C.cur!==(0<B.speed?C.end:C.start)&&(B.lastTime=+new Date,B.startPos=C.cur,nt("button"),F.init=1,pt("moveStart"),_t(V),Z())},w.stop=function(){"button"===F.source&&(F.init=0,F.released=1)},w.prev=function(){w.activate(null==R.activeItem?0:R.activeItem-1)},w.next=function(){w.activate(null==R.activeItem?0:R.activeItem+1)},w.prevPage=function(){w.activatePage(R.activePage-1)},w.nextPage=function(){w.activatePage(R.activePage+1)},w.slideBy=function(t,e){t&&(W?w[O?"toCenter":"toStart"](Bt((O?R.centerItem:R.firstItem)+_.scrollBy*t,0,M.length)):U(C.dest+t,e))},w.slideTo=function(t,e){U(t,e)},w.toStart=function(t,e){J("start",t,e)},w.toEnd=function(t,e){J("end",t,e)},w.toCenter=function(t,e){J("center",t,e)},w.getIndex=K,w.activatePage=function(t,e){At(t)&&U(E[Bt(t,0,E.length-1)],e)},w.resume=function(t){_.cycleBy&&_.cycleInterval&&("items"!==_.cycleBy||M[0]&&null!=R.activeItem)&&!(t<w.isPaused)&&(w.isPaused=0,Q?Q=clearTimeout(Q):pt("resume"),Q=setTimeout(function(){switch(pt("cycle"),_.cycleBy){case"items":w.activate(R.activeItem>=M.length-1?0:R.activeItem+1);break;case"pages":w.activatePage(R.activePage>=E.length-1?0:R.activePage+1)}},_.cycleInterval))},w.pause=function(t){t<w.isPaused||(w.isPaused=t||100,Q&&(Q=clearTimeout(Q),pt("pause")))},w.toggle=function(){w[Q?"pause":"resume"]()},w.on=function(t,e){if("object"===Dt(t))for(var i in t)t.hasOwnProperty(i)&&w.on(i,t[i]);else if("function"===Dt(e))for(var o=t.split(" "),n=0,r=o.length;n<r;n++)q[o[n]]=q[o[n]]||[],-1===it(o[n],e)&&q[o[n]].push(e);else if("array"===Dt(e))for(var a=0,s=e.length;a<s;a++)w.on(t,e[a])},w.init=function(){if(!w.initialized){w.on(o);var t=["overflow","position"],e=["position","webkitTransform","msTransform","transform","left","top","width","height"];s.save.apply(s,t),u.save.apply(u,t),l.save.apply(l,e),d.save.apply(d,e);var i=r;return b||(i=i.add(x),T.css("overflow","hidden"),gt||"static"!==T.css("position")||T.css("position","relative")),gt?yt&&i.css(gt,yt):("static"===I.css("position")&&I.css("position","relative"),i.css({position:"absolute"})),_.forward&&p.on(Ct,ut),_.backward&&f.on(Ct,ut),_.prev&&m.on(Lt,ut),_.next&&g.on(Lt,ut),_.prevPage&&y.on(Lt,ut),_.nextPage&&v.on(Lt,ut),P[0]&&_.activatePageOn&&P.on(_.activatePageOn+"."+vt,"*",ct),h.on(Tt,{source:"slidee"},rt),r&&r.on(Tt,{source:"handle"},rt),bt.on("keydown",dt),b||(T.on("mouseenter."+vt+" mouseleave."+vt,ht),T.on("scroll."+vt,qt)),w.initialized=1,X(!0),_.cycleBy&&!b&&w[_.startPaused?"pause":"resume"](),w}}}function Dt(t){return null==t?String(t):"object"==typeof t||"function"==typeof t?Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()||"object":typeof t}function Ot(t,e){t.preventDefault(),e&&t.stopPropagation()}function Wt(t){Ot(t,1),ft(this).off(t.type,Wt)}function qt(){this.scrollLeft=0,this.scrollTop=0}function At(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Ht(t,e){return 0|Et(String(t.css(e)).replace(/[^\-0-9.]/g,""))}function Bt(t,e,i){return t<e?e:i<t?i:t}function Ft(e){var i={style:{},save:function(){if(e&&e.nodeType){for(var t=0;t<arguments.length;t++)i.style[arguments[t]]=e.style[arguments[t]];return i}},restore:function(){if(e&&e.nodeType){for(var t in i.style)i.style.hasOwnProperty(t)&&(e.style[t]=i.style[t]);return i}}};return i}bt.on(i,function(t){var e=t.originalEvent[vt],i=+new Date;(!e||e.options.scrollHijack<i-o)&&(o=i)}),function(e){wt=e.requestAnimationFrame||e.webkitRequestAnimationFrame||function(t){var e=(new Date).getTime(),i=Math.max(0,16-(e-n)),o=setTimeout(t,i);return n=e,o};var n=(new Date).getTime();var i=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;_t=function(t){i.call(e,t)}}(window),function(){var n=["","Webkit","Moz","ms","O"],r=document.createElement("div");function t(t){for(var e=0,i=n.length;e<i;e++){var o=n[e]?n[e]+t.charAt(0).toUpperCase()+t.slice(1):t;if(null!=r.style[o])return o}}gt=t("transform"),yt=t("perspective")?"translateZ(0) ":""}(),t.TG_Slider=Rt,ft.fn[e]=function(o,n){var r,a;return ft.isPlainObject(o)||("string"!==Dt(o)&&!1!==o||(r=!1===o?"destroy":o,a=Array.prototype.slice.call(arguments,1)),o={}),this.each(function(t,e){var i=ft.data(e,vt);i||r?i&&r&&i[r]&&i[r].apply(i,a):i=ft.data(e,vt,new Rt(e,o,n).init())})}}(jQuery,window);var The_Grid={preview:"#tg-grid-preview-inner",wrapper:".tg-grid-wrapper",slider:".tg-grid-slider",grid:".tg-grid-holder",loader:".tg-grid-preloader",ajax:".tg-ajax-button",ajaxMsg:".tg-ajax-scroll-holder",sizer:".tg-grid-sizer",gutter:".tg-gutter-sizer",item:".tg-item",itemImg:".tg-item-image",gallery:".tg-item-gallery-holder",tooltip:".tg-filter-count",filterH:".tg-filters-holder",filter:".tg-filter, .tg-filters-holder select",search:".tg-search",clear:".tg-search-clear",sorter:".tg-sorters-holder",sorterBy:".tg-sorter li, select.tg-sorter",sortASC:".tg-sorter-order",arrLeft:".tg-left-arrow",arrRight:".tg-right-arrow",bullets:".tg-slider-bullets",pages:".tg-page-ajax",sortData:{excerpt:"p",title:function(t){return jQuery(t).data("title")},id:function(t){return jQuery(t).data("id")},date:function(t){return jQuery(t).data("date")},author:function(t){return jQuery(t).data("author")},comment:function(t){return jQuery(t).data("comment")},popular_post:function(t){return jQuery(t).data("popular-post")},total_sales:function(t){return jQuery(t).data("total-sales")},regular_price:function(t){return jQuery(t).data("regular-price")},sale_price:function(t){return jQuery(t).data("sale-price")},featured:function(t){return jQuery(t).data("featured")},stock:function(t){return jQuery(t).data("stock")},sku:function(t){return jQuery(t).data("sku")}},defaults:{style:"grid",layout:"vertical",fitrows:!1,fullWidth:null,fullHeight:null,rtl:!0,filterComb:!1,filterLogic:"AND",filterLoad:"",sortByLoad:"",orderLoad:!1,row:1,ratio:1,gutters:[[9999,0],[1200,0],[980,0],[768,0],[480,0],[320,0]],cols:[[9999,4],[1200,3],[980,3],[768,2],[480,1],[320,1]],rows:[[9999,240],[1200,240],[980,220],[768,220],[480,200],[320,200]],animation:[{name:"None"},{visible:""},{hidden:""}],transition:0,itemNav:null,swingSpeed:500,cycleBy:null,cycle:5e3,startAt:0,ajaxMethod:null,ajaxDelay:0,preloader:0,itemDelay:0,gallery:!1}},tg_meta_data=tg_global_var.meta_data,tg_custom_sorter={};if(tg_meta_data)for(var i=0;i<tg_meta_data.length;i++){var tg_cmk=tg_meta_data[i].key,tg_cma=(tg_cmk=tg_cmk.length&&"_"==tg_cmk[0]?tg_cmk.slice(1):tg_cmk).replace(/\_/g,"-");!function(e){tg_custom_sorter[tg_cmk]=function(t){return jQuery(t).data(e)}}(tg_cma)}The_Grid.sortData=jQuery.extend({},The_Grid.sortData,tg_custom_sorter);var tg_debounce_resize=tg_global_var.debounce?"debouncedresize":"resize",tg_is_mobile=tg_global_var.is_mobile;function throttle(e,i){var o=0;return function(){var t=Date.now();if(o+i<t)return o=t,e.apply(this,arguments)}}function debounce(t,e){"use strict";var i;return function(){i&&clearTimeout(i),setTimeout(function(){t(),i=null},e||100)}}!function(ft){"use strict";ft.fn.The_Grid=function(t){return this.each(function(){var o,e,i,n,r,a,s,l,u,d,c,h,p,f,m,g,y=ft(this),v=[],_=!0,w=!0,b=!1,T=!1,x=1,z=null,L=[],t=y.closest(The_Grid.wrapper).attr("id"),C=1<ft('[id="'+t+'"]').length?y.closest(The_Grid.wrapper):ft("#"+t),I=C.closest(The_Grid.preview),S=C.find(The_Grid.slider),G=C.find(The_Grid.loader),P=C.find(The_Grid.ajax),j=C.find(The_Grid.ajaxMsg),E=C.find(The_Grid.sizer),k=C.find(The_Grid.gutter),M=C.find(The_Grid.item),R=C.find(The_Grid.filterH),D=C.find(The_Grid.filter),O=C.find(The_Grid.search),W=C.find(The_Grid.clear),q=C.find(The_Grid.sorter),A=C.find(The_Grid.sorterBy),H=C.find(The_Grid.sortASC),B=C.find(The_Grid.arrLeft),F=C.find(The_Grid.arrRight),N=C.find(The_Grid.bullets),Y=C.find(The_Grid.pages),Q=y.data(),V={style:Q.style&&Q.style,layout:Q.layout&&Q.layout,fitrows:Q.fitrows&&Q.fitrows,fullWidth:Q.fullwidth&&Q.fullwidth,fullHeight:Q.fullheight&&Q.fullheight,rtl:Q.rtl&&Q.rtl,filterComb:Q.filtercomb&&Q.filtercomb,filterLogic:Q.filterlogic&&Q.filterlogic,filterLoad:Q.filterload&&Q.filterload,sortByLoad:Q.sortbyload&&Q.sortbyload,orderLoad:Q.orderload&&Q.orderload,row:Q.row&&Q.row,ratio:Q.ratio&&Q.ratio,gutters:Q.gutters&&Q.gutters,cols:Q.cols&&Q.cols,rows:Q.rows&&Q.rows,animation:Q.animation&&Q.animation,transition:Q.transition&&Q.transition,itemNav:Q.slider&&Q.slider.itemNav,swingSpeed:Q.slider&&Q.slider.swingSpeed,cycleBy:Q.slider&&Q.slider.cycleBy,cycle:Q.slider&&Q.slider.cycle,startAt:Q.slider&&Q.slider.startAt,ajaxMethod:Q.ajaxmethod&&Q.ajaxmethod,ajaxDelay:Q.ajaxdelay&&Q.ajaxdelay,preloader:Q.preloader&&Q.preloader,itemDelay:Q.itemdelay&&Q.itemdelay,gallery:Q.gallery&&Q.gallery},X=ft.extend({},The_Grid.defaults,V);X.cols.sort(function(t,e){return e[0]-t[0]}),X.gutters.sort(function(t,e){return e[0]-t[0]}),X.rows.sort(function(t,e){return e[0]-t[0]}),X.rtl=!X.rtl,X.ajaxDelay=0<Y.length?X.itemDelay:X.ajaxDelay;for(var U=ft.map(Q,function(t,e){return e}),$=0;$<U.length;$++)y.removeAttr("data-"+U[$]);function Z(t){var e=M.not(".tg-item-hidden").length;t.length===e&&s.reload()}function J(t){for(var e=0;e<ft(t).length;e++)for(var i,o,n=ft(t).eq(e),r=n.get(0).attributes,a=0;a<r.length;a++)i=r[a].name,o=r[a].value,0===i.indexOf("data-")&&"data-row"!==i&&"data-col"!==i&&(n.removeAttr(i),n.data(i.replace("data-",""),o),a--)}function K(t){if(!b)return!1;var e;M.removeClass("tg-item-index"),O.val(""),X.filterComb?(e=[],"*"===t.data("filter")?t.nextAll("[data-filter]").removeClass("tg-filter-active"):t.prevAll('[data-filter="*"]').removeClass("tg-filter-active"),"*"===t.data("filter")?t.closest("select").find("option").prop("selected",!1):t.closest("select").find('[data-filter="*"]').prop("selected",!0),t.toggleClass("tg-filter-active"),C.find(".tg-filter-active").each(function(){"*"!=ft(this).data("filter")&&e.push(ft(this).data("filter"))}),e="AND"===X.filterLogic?function(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e+=t[i]);return e}(e):e.join(", ")):(e=t.data("filter"),D.removeClass("tg-filter-active"),t.addClass("tg-filter-active")),!e&&C.find('[data-filter="*"]').addClass("tg-filter-active"),R.each(function(t,e){var i=ft(this).find(The_Grid.filter+".tg-filter-active").length;0===i&&ft(this).find('[data-filter="*"]').addClass("tg-filter-active")}),y.TG_Layout({filter:e}),ft.TG_Pause_Players()}function tt(t){if(!b)return!1;e="none"===t.data("value")?"":t.data("value"),i=t.text(),_=H.data("asc"),M.removeClass("tg-item-index"),q.find(".tg-dropdown-value").text(i),y.TG_Layout({sortAscending:_,sortBy:e})}it(),lt(),ut(),ot(),at(),"masonry"===X.style||"justified"===X.style||X.preloader||"horizontal"===X.layout?M.the_grid_images_loaded({complete:function(){var t,e,i;dt(),ct(),ht(),X.preloader&&(e=0,i=y.data("TG_Layout"),0===Y.length?G.remove():G.hide(),C.removeClass("tg-grid-loading"),void(0<(o=i.filteredItems).length?t=window.tgInterval(function(){0<y.closest("body").length&&(ft(o[e].element).removeClass("tg-item-reveal"),X.itemDelay&&y.TG_Layout("reveal",[o[e]]),e!==o.length-1&&X.itemDelay||(b=!0,M.removeClass("tg-item-reveal"),C.addClass("tg-grid-loaded"),!X.itemDelay&&y.TG_Layout("reveal",o),t.clear()),e++)},X.itemDelay):(b=!0,M.removeClass("tg-item-reveal"),C.addClass("tg-grid-loaded")))),"horizontal"===X.layout&&y.TG_Layout("on","arrangeComplete",function(t){Z(t)})}}):(ct(),ht(),"horizontal"===X.layout&&y.TG_Layout("on","arrangeComplete",function(t){Z(t)})),b=!X.preloader&&!0,b&&C.addClass("tg-grid-loaded"),D.on("click",function(t){var e=ft(this);e.is("select")?D.one("change",function(){K(e.find("option:selected"))}):K(e)}),tg_is_mobile?A.on("change",function(){tt(ft(this).find("option:selected"))}):A.on("click",function(){tt(ft(this))}),H.on("click",function(){if(!b)return!1;var t=ft(this);_=!0!==t.data("asc"),t.data("asc",_).attr("data-asc",_),M.removeClass("tg-item-index"),y.TG_Layout({sortAscending:_})});var et=O.keyup(debounce(function(){if(!b)return!1;var i=new RegExp(et.val(),"gi");M.removeClass("tg-item-index"),D.removeClass("tg-filter-active"),y.TG_Layout({filter:function(){var t=ft(this),e=!i||t.text().match(i);return ft('.tg-filter[data-filter="*"]').addClass("tg-filter-active"),e&&!0}}),ft.TG_Pause_Players()},200));function it(){if(X.fullWidth&&0===I.length){C.css("left",0);var t=parseInt(C.css("margin-left")),e=parseInt(C.css("margin-right")),i=C.offset().left-t;C.width(ft(window).width()-(t+e)),C.css("left",-i)}}function ot(){var t;X.gallery&&(rt(),!The_Grid.galleryInt&&0<ft(The_Grid.gallery).length&&(The_Grid.galleryInt=setInterval(function(){n=Math.floor(Math.random()*v.length),r=r===n&&0<v.length?nt(v,n+1):n,t=ft(The_Grid.gallery).eq(r),a=0<v.length?nt(v[r],t.find(".show").index()-1+2):0,t.find(The_Grid.itemImg).removeClass("show"),t.find(The_Grid.itemImg).eq(a).addClass("show")},3500)))}function nt(t,e){return(t.length+e%t.length)%t.length}function rt(){v=[];for(var t=ft(The_Grid.gallery),e=0;e<t.length;e++){var i=ft(t[e]).find(The_Grid.itemImg);v[e]=[];for(var o=0;o<i.length;o++)v[e][o]=ft(i[o])}}function at(){for(var t=0;t<D.length;t++){var e=D.eq(t).data("filter"),i=0<Y.length?".tg-item-hidden":null,o="*"!==e?y.find(e).not(i).length:M.not(i).length;D.eq(t).find(The_Grid.tooltip).html(o),D.eq(t).find("span:first-child").data("count")&&D.eq(t).find("span:first-child").data("tooltip",o),0===o?D.eq(t).removeClass("tg-show-filter"):D.eq(t).addClass("tg-show-filter")}}function st(){if(0<P.length)if((w=P.data("item-tt")?P.data("item-tt")-M.length:99999)<=0)P.addClass("tg-no-more"),P.find("span").html(P.data("no-more")),setTimeout(function(){P.fadeOut(500)},3e3);else{var t=P.data("button");P.data("remain")?P.find("span").html(t+" ("+w+")"):P.find("span").html(t)}}function lt(){for(var t="justified"!==X.style?X.cols:X.rows,e=function(){{if(0!==I.length)return{width:I.width()};var t=window,e="inner";return"innerWidth"in window||(e="client",t=document.documentElement||document.body),{width:t[e+"Width"]}}}().width,i=0,o=t.length;i<o&&t[i][0]>=e;i++)h=t[i][1],l=X.gutters[i][1];if(k.width(l),"justified"!==X.style){var n=C.width();if(p=n/h-l,"vertical"===X.layout&&(y.width(""),p=(p=(n-(m=(h-1)*l))/h)%1!=0?Math.ceil(p):p,g=h*p+m,y.css("left",-(g-y.width())/2+"px"),y.width(g)),X.fullHeight&&"horizontal"===X.layout){var r=ft("#wpadminbar").height();f=0===I.length?(ft(window).height()-r-l*(X.row-1))/X.row:I.height()/X.row}else f=Math.round(p/X.ratio)}else f=h,E.height(f);"null"===X.itemNav&&S.css("padding","0 "+l/2+"px")}function ut(){if("justified"!==X.style){E.width(p);for(var t=0;t<M.length;t++){var e=M.eq(t).data("col"),i=M.eq(t).data("row");i="horizontal"===X.layout&&i>X.row?X.row:i,d=1===h?(u=p,f):h<e?(c=Math.round(h/(e/i)),u=h*p+(h-1)*l,1===(c=c<=1?1:c)?f:c*f+(c-1)*l):(u=e*p+(e-1)*l,i*f+(i-1)*l),M.eq(t).width(u),"grid"===X.style?M.eq(t).height(d):null}}}function dt(){var t;"horizontal"===X.layout&&(t="masonry"===X.style?(C.removeClass("tg-grid-loading"),Math.max.apply(null,M.map(function(){return ft(this).height()}).get())):f*X.row+l*(X.row-1),y.add(S).height(t))}function ct(){var t,e,i=!1;t=e="horizontal"===X.layout?(i=!0,"grid"===X.style?"packery":"justified"===X.style?"justified":"horizontal"):"grid"===X.style?"packery":X.style;var o={};o[e]={},o.hiddenStyle={},o.visibleStyle={},o.layoutMode=t,o.filter=X.filterLoad,"none"!==X.sortByLoad&&(o.sortBy=X.sortByLoad),o.sortAscending=X.orderLoad,o.isOriginLeft=X.rtl,o.itemSelector=The_Grid.item,o[e].gutter=k[0],o[e].rowHeight=E[0],o[e].columnWidth=E[0],o[e].isHorizontal=i,o[e].isFitRows=X.fitrows,o[e].image=The_Grid.itemImg,o[e].row=X.row,o[e].previewMode=I,o.hiddenStyle.opacity=0,o.visibleStyle.opacity=1,o.hiddenStyle.transform=X.animation.hidden,o.visibleStyle.transform=X.animation.visible,o.transitionDuration=X.transition,o.getSortData=The_Grid.sortData,y.TG_Layout(o),J(M)}function ht(){if("horizontal"===X.layout){var e=y.data("TG_Layout"),i=e.filteredItems,t=X.startAt=X.startAt-1>i.length?i.length:X.startAt;"forceCentered"===X.itemNav&&0===N.length&&(N=ft(ft('<div class="tg-slider-bullets"></div>')).appendTo(C).hide()),s=new TG_Slider(S,{itemSelector:".tg-item:not(.tg-item-hidden)",cycleBy:X.cycleBy,cycleInterval:X.cycle,pauseOnHover:1,itemNav:X.itemNav,startAt:X.startAt-1,smart:1,horizontal:1,easing:"easeOutExpo",speed:1e3,swingSpeed:X.swingSpeed,releaseSwing:1,mouseDragging:1,touchDragging:1,elasticBounds:1,moveBy:u,syncSpeed:.8,keyboardNavBy:"pages",activeClass:"tg-active-item",disabledClass:"tg-disabled",draggedClass:"tg-slider-dragged",pageBuilder:function(){return"<li><span></span></li>"},pagesBar:N,prevPage:B,nextPage:F,activatePageOn:"click"}).init(),S.data("slider",s).trigger("tg-slider-init"),"forceCentered"===X.itemNav&&(ft(i[t-1].element).addClass("tg-active-item"),s.on("load activePage",function(t){t=this.rel.activePage,e=y.data("TG_Layout"),i=e.filteredItems,M.removeClass("tg-active-item"),i[t]&&ft(i[t].element).addClass("tg-active-item")}))}}function pt(a){if(z&&(3==z.readyState||2==z.readyState||1==z.readyState))return!1;var t={action:"the_grid_load_more",grid_nonce:tg_global_var.nonce,grid_name:a.data("name"),grid_page:x,grid_data:function(){if(0<I.length)return new TG_metaData(ft("#the_grid_metabox .tomb-row"))}(),grid_ajax:a.data("ajax"),main_query:tg_global_var.main_query};z=ft.ajax({url:tg_global_var.url,type:"post",datatype:"json",data:t,beforeSend:function(){T=!0,x+=1,P.data("loading")&&!P.hasClass("tg-no-more")&&P.find("span").html(P.data("loading")),0<ft(j).length&&0===P.length&&ft(j).addClass("tg-loading")},success:function(t){var e=t.success,i=t.message,o=t.content,n=t.ajax_data;try{n=ft.parseJSON(n)}catch(t){!1}if(a.data("ajax",n),!e)return P.add(ft(j)).add(Y).removeClass("tg-loading"),G.find("> div").html(i),P.find("span").html(i),ft(j).children("div").html(i),x-=1,!1;if(!o)return P.data("item-tt",-1),st(),ft(j).children("div").html(ft(j).children("div").data("no-more")),setTimeout(function(){ft(j).fadeOut(400)},1e3),x-=1,!1;var r=ft(o);0===Y.length&&r.addClass("tg-item-index"),0<r.find(The_Grid.grid).length&&(r=r.find(The_Grid.item).removeClass("tg-item-reveal")),a.append(r),M=a.find(The_Grid.item),r.hide(),ut(),ft.TG_media_init(),at(),rt(),ot(),0<I.length&&TG_excludeItem(),r=ft(ft.grep(r,function(t){return void 0!==t.id})),L.push(r),L.length<2&&function i(o){var n=o.length-1;o.the_grid_images_loaded({complete:function(){var t,e=0;G.hide(),Q&&ft(j).removeClass("tg-loading"),"horizontal"===X.layout&&y.css("min-height",""),"masonry"===X.style&&"horizontal"===X.layout&&dt(),t=window.tgInterval(function(){if(0<y.closest("body").length){if(y.TG_Layout("reLayout"),X.ajaxDelay&&y.TG_Layout("appended",o.eq(e)),"horizontal"===X.layout&&s.reload(),n===e||!X.ajaxDelay)return at(),st(),!X.ajaxDelay&&y.TG_Layout("appended",o),"horizontal"===X.layout&&s.reload(),Y.removeClass("tg-loading"),T=!1,t.clear(),"undefined"!=typeof FOOBOX&&ft.isFunction(FOOBOX.init)&&FOOBOX.init(),ft().fancybox&&ft(".tg-item a.fancybox").fancybox(),ft().prettyPhoto&&ft('.tg-item  a[rel^="prettyPhoto"]').prettyPhoto(),J(M),0<L.length&&(L.splice(0,1),L[0]&&i(L[0])),!1;e++}},X.ajaxDelay)}})}(r)},error:function(t,e,i){x-=1,console.error(t),console.error(e+" :: "+i)}})}W.on("click",function(){O.val("").trigger("keyup")}),ft(window).on(tg_debounce_resize,function(){it(),lt(),ut(),dt(),b&&0<y.closest("body").length&&y.TG_Layout("layout"),"horizontal"===X.layout&&y.TG_Layout("once","layoutComplete",function(t){Z(t)})}),Y.on("click",function(t){t.preventDefault();var e=ft(this);x=e.data("page"),e.is(".tg-page-current")||z&&(!z||4!=z.readyState)||T||!b||(q.find(".tg-dropdown-value").text(""),O.val(""),D.removeClass("tg-filter-active"),ft('.tg-filter[data-filter="*"]').addClass("tg-filter-active"),Y.removeClass("tg-page-current").addClass("tg-loading"),e.addClass("tg-page-current"),ft(".tg-item-hidden").addClass("tg-item-removed"),ft.TG_media_destroy(y),y.css("min-height",250).TG_Layout("remove",M).TG_Layout({filter:"*"}),y.contents().each(function(){8==this.nodeType?ft(this).remove():null}),G.show(),pt(y))}),P.on("click",function(t){w&&(t.preventDefault(),pt(y))}),"on_scroll"==X.ajaxMethod&&ft(window).on("mousewheel resize scroll",function(){w&&C.length&&C[0].getBoundingClientRect().bottom<ft(this).height()&&!0===b&&pt(y)})})};var l=[];ft.fn.the_grid_images_loaded=function(){var t,e=ft(this),i=ft.extend({complete:function(){}},arguments[0]||{}),o=0,n=[];e.find("*").filter(function(){t=ft(this).css("background-image"),(t=(t=!(t=(t=/^url\((['"]?)(.*)\1\)$/.exec(t))?t[2]:null)&&ft(this).is("img")?ft(this).attr("src"):t)&&(t.match(/\.(jpg|jpeg|png|bmp|gif|tif|tiff|jif|jfif)/g)||0<=t.indexOf("external.xx.fbcdn")||0<=t.indexOf("drscdn.500px.org"))?t:null)&&-1==ft.inArray(t,l)&&(n.push(t),l.push(t))});for(var r=[],a=0;a<n.length;a++)r[a]=new Image,r[a].onload=s,r[a].onerror=s,r[a].onabort=s,r[a].src=n[a];if(!n.length)return i.complete.call(e),!1;function s(){if(++o>=n.length)return i.complete.call(e),!1}},ft(document).ready(function(){var r,a="tg-dropdown-holder-animation";function e(t){if(t.data("list-DOM")){var e=t.data("list-DOM").removeClass(a),i=setTimeout(function(){e.remove(),e=null,t.data("list-DOM",e)},400);ft(t.data("list-DOM")).data("list-timer",i)}return!1}function s(t){var e=t.parent().offset(),i=t.parent().height(),o="relative"===ft("body").css("position")?ft(window).scrollTop()+ft("body")[0].getBoundingClientRect().top:null,n=parseInt(t.css("margin-bottom")),r=t.outerWidth(),a=e.left,s=e.top+i-o-n,l=[];return l.top=s,l.left=a,l.width=r,l}tg_is_mobile||(ft(document).on("mouseenter",".tg-dropdown-holder",function(t){t.preventDefault(),t.stopPropagation();var e=ft(this),i=ft(e.data("list-DOM")).data("list-timer");if(i)return clearTimeout(i),e.data("list-DOM").addClass(a),!1;var o=(r=e.find("ul")).clone(!0).addClass("tg-list-appended").attr("style","").appendTo("body");e.add(o).data("list-DOM",o),o.data("filter-DOM",e);var n=s(e);r.hide(),o.css({position:"absolute","z-index":99999,width:n.width,top:n.top,left:n.left}).addClass(a)}).on("mouseleave",".tg-dropdown-holder",function(t){e(ft(this))}),ft(document).on("mouseenter touchstart",".tg-list-appended",function(t){var e=ft(this);if(e.data("list-DOM"))return clearTimeout(e.data("list-timer")),e.data("list-DOM").addClass(a),!1}).on("mouseleave touchend",".tg-list-appended",function(t){e(ft(this))}),ft(document).on("click touchstart",".tg-list-appended li",function(){var e=ft(this).closest("ul"),t=e.data("filter-DOM");t.find('[data-filter="'+ft(this).data("filter")+'"]').trigger("click"),t.find('[data-value="'+ft(this).data("value")+'"]').trigger("click"),e.width(t.outerWidth()),e.css("left",t.offset().left);var i=s(t);i.top!==e.position().top?e.css("top",i.top):(e.find("li").removeClass("tg-filter-active"),t.find(".tg-filter-active").each(function(t){e.find("li").eq(ft(this).index()).addClass("tg-filter-active")}))}))}),ft.fn.TG_ToolTip=function(l){var u="tooltip-DOM",d="tooltip-timer";ft(document).on("mouseenter",ft(this).selector,function(){var t=ft(this);if(!t.data(l.data))return!1;if(t.data(u))return clearTimeout(t.data(d)),t.data(u).addClass(l.hoverClass.split(".").join("")),!1;var e=ft('<div class="'+l.appendClass.split(".").join("")+'"></div>').appendTo("body");t.data(u,e);var i=t.data(l.data),o=t.offset(),n="relative"===ft("body").css("position")?ft(window).scrollTop()+ft("body")[0].getBoundingClientRect().top:null,r=o.top-n,a=o.left,s=t.outerWidth(!0);e.html(i).css({position:"absolute","z-index":l.zindex,width:s,top:r+l.spacing-e.outerHeight(!0),left:a+s/2}).addClass(l.hoverClass.split(".").join(""))}).on("mouseleave",ft(this).selector,function(){var t=ft(this);if(!t.data(l.data)||!t.data(u))return!1;var e=t.data(u).removeClass(l.hoverClass.split(".").join("")),i=setTimeout(function(){e.remove(),e=null,t.data(u,e)},400);t.data(d,i)})},ft(document).ready(function(){ft(".tg-filter-name").TG_ToolTip({data:"tooltip",zindex:99999,place:"top",appendClass:".tg-filter-tooltip",hoverClass:".tg-tooltip-hover",spacing:-2})});var r="tg-media-init",a=".tg-item",n=function(){for(var t=3,e=document.createElement("div"),i=e.getElementsByTagName("i");e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",i[0];);return 4<t?t:document.documentMode}();n&&ft("body").addClass("is-ie"),ft.fn.TG_SoundCloud=function(){return this.each(function(){var t=ft(this).closest(a),e=ft(this).attr("src");if(!t.hasClass(r)&&"about:blank"!==e){var i=SC.Widget(ft(this).attr("id"));i.bind(SC.Widget.Events.READY,function(){i.getCurrentSound,ft.TG_Media_Ready(t,i,"STD"),i.bind(SC.Widget.Events.PAUSE,function(){ft.TG_Media_Pause(t)}),i.bind(SC.Widget.Events.FINISH,function(){ft.TG_Media_Pause(t)})})}})};var o,s,u,d,c,h,t,e,p,f,m,y,v,_,g,w,b={};ft.fn.TG_Youtube=function(){return this.each(function(){var e=ft(this).closest(a),t=ft(this).attr("src");if(!e.hasClass(r)&&"about:blank"!==t){var i=this.id;b[i]=new YT.Player(i,{events:{onReady:function(t){tg_is_mobile||t.target.playVideo(),ft.TG_Media_Ready(e,t.target,"YT")},onStateChange:function(t){1===t.data&&ft.TG_Media_Play(e),2!==t.data&&0!==t.data||ft.TG_Media_Pause(e)}}})}})},ft.fn.TG_Vimeo=function(){return this.each(function(){var t=ft(this).closest(a),e=ft(this).attr("src"),i=!1;if(n<=9&&(ft(this).remove(),t.find(".tg-media-button").remove()),!t.hasClass(r)&&"about:blank"!==e){ft(this).attr("src",ft(this).attr("src"));var o=new Vimeo.Player(this);tg_is_mobile||o.play(),ft.TG_Media_Ready(t,o,"VM"),o.on("play",function(){i||ft.TG_Media_Play(t),i=!0}),o.on("pause",function(){ft.TG_Media_Pause(t),play=!1}),o.on("ended",function(){ft.TG_Media_Pause(t),play=!1})}})},ft.fn.TG_Wistia=function(){return this.each(function(){var n=ft(this).closest(a),t=ft(this).attr("src");n.hasClass(r)||"about:blank"===t||ft(this).load(function(){var t=ft(this)[0].wistiaApi,e=!1,i=!1,o=!1;ft.TG_Media_Ready(n,t,"STD"),t&&(t.play(),t.bind("seek",function(){i=!0}),t.bind("heightchange",function(){o=!0}),t.bind("play",function(){!1===i&&!1===o&&e&&ft.TG_Media_Play(n),i=o=!1}),t.bind("pause",function(){!1===i&&!1===o&&ft.TG_Media_Pause(n),o=e=!0}),t.bind("finish",function(){ft.TG_Media_Pause(n)}))})})},ft.fn.TG_HTML_Player=function(){return this.each(function(){var t=ft(this).closest(a);if(!t.hasClass(r)){var e=ft(this)[0];e.addEventListener&&(ft.TG_Media_Ready(t,e,"STD"),e.addEventListener("play",function(){ft.TG_Media_Play(t)}),e.addEventListener("pause",function(){ft.TG_Media_Pause(t)}),e.addEventListener("ended",function(){ft.TG_Media_Pause(t)}))}})},ft.TG_Media_Ready=function(t,e,i){t.data("pause-method",i).data("media-player",e).addClass(r)},ft.TG_Media_Play=function(t){t.hasClass("tg-force-play")||ft.TG_Pause_Players(),t.addClass("tg-is-playing"),ft(a).removeClass("tg-force-play")},ft.TG_Media_Pause=function(t){t.removeClass("tg-is-playing tg-force-play")},ft(document).on("webkitfullscreenchange mozfullscreenchange fullscreenchange",function(t){var e=ft(t.target);ft(".tg-item-media").removeClass("tg-item-media-fullscreen"),e&&e.hasClass("tg-item-media")&&e.addClass("tg-item-media-fullscreen")}),ft(document).on("click",".tg-item:not(.tg-media-init) .tg-item-button-play",function(t){t.preventDefault();var e=ft(this).closest(".tg-item"),i=e.find("iframe");i.attr("src",i.data("src")),ft.TG_Pause_Players(),ft.TG_media_init(),e.addClass("tg-force-play")}),ft(document).on("click",".tg-item.tg-media-init .tg-item-button-play",function(t){t.preventDefault();var e=ft(this).closest(".tg-item"),i=e.data("pause-method"),o=e.data("media-player");if(e.is(".tg-force-play, .tg-is-playing"))return ft.TG_Pause_Players(),!1;if(o&&e.hasClass(r))switch(e.find(".tg-item-media").show(),ft.TG_Pause_Players(),ft(a).removeClass("tg-force-play tg-play-error"),e.addClass("tg-force-play"),i){case"STD":(!o.getCurrentSound&&tg_is_mobile||!tg_is_mobile)&&o.play();break;case"YT":o.playVideo();break;case"VM":o.play()}}),ft.TG_Pause_Players=function(){ft(".tg-item.tg-is-playing, .tg-item.tg-force-play").each(function(){var t=ft(this),e=t.data("pause-method"),i=t.data("media-player");if(i&&t.hasClass(r)){switch(e){case"STD":case"VM":i.pause();break;case"YT":i.pauseVideo()}t.closest(a).removeClass("tg-is-playing tg-force-play")}})},ft.TG_media_init=function(){var i,o,t,e,n=[{ID:"youtube",url:"//www.youtube.com/iframe_api"},{ID:"vimeo",url:"//player.vimeo.com/api/player.js"},{ID:"soundcloud",url:"//w.soundcloud.com/player/api.js"},{ID:"wistia",url:"//fast.wistia.com/assets/external/E-v1.js"}];if(ft(".g-ytsubscribe").length&&((i=document.createElement("script")).src="https://apis.google.com/js/platform.js",i.id="tg-youtube-subscribe-api",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(i,e)),0===ft(".tg-item-media").length)return!1;o={youtube:function(){"undefined"==typeof YT||0===YT.loaded?window.onYouTubeIframeAPIReady=function(){ft('[data-api="1"].tg-item-youtube').TG_Youtube()}:ft('[data-api="1"].tg-item-youtube').TG_Youtube()},vimeo:function(){ft('[data-api="1"].tg-item-vimeo').TG_Vimeo()},soundcloud:function(){ft('[data-api="1"].tg-item-soundcloud').TG_SoundCloud()},wistia:function(){ft('[data-api="1"].tg-item-wistia').TG_Wistia()}};for(var r=0;r<n.length;r++)t=n[r].ID,0<ft('[data-api="1"].tg-item-'+t).length&&(n[r].url,0===ft("#tg-"+t+"-api").length?((i=document.createElement("script")).src=n[r].url,i.id="tg-"+t+"-api",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(i,e),function(t,e){i.onload=function(){o[e]()}}(0,t)):o[t]());ft(document).ready(function(){ft(".tg-item .tg-item-audio-player").attr("width","100%"),ft(".tg-item-video-player,.tg-item-audio-player").TG_HTML_Player(),tg_global_var.mediaelement&&(ft(".tg-item-video-player:not(.tg-mediaelement-init), .tg-item-audio-player:not(.tg-mediaelement-init)").mediaelementplayer({audioVolume:"vertical",videoVolume:"vertical",features:["playpause","current","progress","duration","volume","fullscreen"],startVolume:.8}),ft(".tg-item-video-player, .tg-item-audio-player").addClass("tg-mediaelement-init"))})},ft.TG_media_destroy=function(t){(t||ft(".tg-item")).find(".tg-item-vimeo").each(function(){var t=ft(this),e=t.closest(a).data("media-player");e&&(e.api("pause"),t.attr("src","about:blank"))}),(t=t?t.find(".tg-item video, .tg-item audio"):ft(".tg-item video, .tg-item audio")).each(function(){var t=ft(this),e=t.data("mediaelementplayer");t.closest(a).removeClass("tg-force-play tg-is-playing"),t.length&&(e?((e=t.data("mediaelementplayer")).pause(),e.setSrc("about:blank"),t.children("source").prop("src",""),e.remove()):(t[0].pause(),t[0].src="about:blank",t.children("source").prop("src",""),t.remove().length=0))}),tg_global_var.mediaelement&&(mejs.players=[])},ft.TO_Lightbox=function(){var o,n,r,a,s,l,u,d,c,h=[],p="[data-tolb-src]:not(.tolb-disabled)",f=".tolb-holder",e=".tolb-inner",t=".tolb-content",m=".tolb-img",g=".tolb-title",y=".tolb-counter",v=".tolb-next",_=".tolb-prev",w=".tolb-close",b="tolb-index",T="tolb-open",x="tolb-ready",z="tolb-loading",L="tolb-iframe",C=tg_global_var.lightbox_autoplay;function I(t){switch(ft(f).addClass(T+" "+z),n=t.data(b),u=h[n].type,a=h[n].src,s=h[n].alt,ft(_).data(b,M(n-1)),ft(v).data(b,M(n+1)),u){case"image":l=ft('<img class="tolb-img" src="'+a+'" alt="'+s+'"></img>'),(r=new Image).onload=P,r.onerror=P,r.src=a;break;case"youtube":l=ft('<iframe class="tolb-video" src="'+(a="//www.youtube.com/embed/"+a+"?html5=1&controls=1&autohide=1&rel=0&showinfo=0&autoplay="+C)+'" allowfullscreen></iframe>'),j();break;case"vimeo":l=ft('<iframe class="tolb-video" src="'+(a="//player.vimeo.com/video/"+a+"?title=0&amp;byline=0&amp;portrait=0&amp;autoplay="+C)+'" allowfullscreen></iframe>'),j();break;case"wistia":l=ft('<iframe class="tolb-video" src="'+(a="//fast.wistia.net/embed/iframe/"+a+"?title=0&amp;byline=0&amp;portrait=0&amp;autoPlay="+C)+'" allowfullscreen></iframe>'),j();break;case"video":for(var e="",i=0;i<a.length;i++)e+='<source src="'+a[i][0].source+'" type="video/'+a[i][0].type+'" width="100%" height="100%"></source>';d=h[n].poster,l=ft('<video class="tolb-video" controls'+(d=d?' poster="'+d+'"':"")+(C?" autoplay":"")+' width="100%">'+e+"</video>"),tg_is_mobile?(o&&o.setSrc("about:blank"),S()):(l.one("loadeddata",function(){o&&o.setSrc("about:blank"),tg_global_var.mediaelement?l.mediaelementplayer({features:["playpause","stop","loop","current","progress","duration","volume","fullscreen"],videoVolume:"horizontal",startVolume:.8,success:function(t,e){o=t,l=ft(e).closest(".mejs-container"),S(),o.addEventListener("ended",function(){l.find(".mejs-poster").show()})}}):S()}),l[0].addEventListener("error",function(){k(),ft(f).removeClass(z)}))}}function S(){var t=ft(f).find("iframe").not(l);0<t.length?t.attr("src","about:blank").one("load",function(){G()}):G()}function G(){ft(f).addClass(x),"iframe"!==u?ft(t).html(""):ft(t).find("*").not(l).remove(),"image"!==u?ft(f).addClass(L):ft(f).removeClass(L),"iframe"!==u&&ft(t).append(l),E(),k(),l.show(),ft(f).removeClass(z)}function P(){S()}function j(){u="iframe",ft(t).append(l.hide()),l.one("load",function(){S()})}function E(){ft(m).css("max-height",ft(window).height()-80-(ft("#wpadminbar").height()||0))}function k(){ft(g).text(s),ft(y).text(n+1+"/"+c)}function M(t){return(c+t%c)%c}function R(){ft(f).removeClass(T+" "+z+" "+x),setTimeout(function(){0<ft(f).find("iframe").length?ft(f).find("iframe").attr("src","about:blank").one("load",function(){ft(t).html("")}):ft(t).html("")},300)}ft(window).on("resize",function(){E()}),ft(document).on("click",p,function(t){return t.preventDefault(),ft.TG_Pause_Players(),ft(".tolb-video,"+m).remove(),function(){var t=ft(p).filter(":visible");for(c=t.length,i=0;i<c;i++){var e=t.eq(i);h[i]={},h[i].type=e.data("tolb-type"),h[i].src=e.data("tolb-src"),h[i].alt=e.data("tolb-alt"),h[i].poster=e.data("tolb-poster"),e.data(b,i)}1<c?ft(v+","+_).show():ft(v+","+_).hide()}(),I(ft(this)),!1}),ft(document).on("click touchend",v+","+_,function(){return I(ft(this)),!1}),ft(document).on("keydown",throttle(function(t){ft(f).hasClass(T)&&(37==t.keyCode?ft(_).trigger("click"):39==t.keyCode?ft(v).trigger("click"):27==t.keyCode&&R())},300)),ft(document).on("click touchend",e+","+w,function(t){return t.stopPropagation(),(ft(t.target).is(e)||ft(t.target).is(w))&&R(),!1}),ft("body").append(ft('<div class="tolb-holder"><div class="tolb-loader"></div><div class="tolb-inner"><figure><div class="tolb-close tg-icon-close"></div><div class="tolb-content"></div><figcaption><div class="tolb-title"></div><div class="tolb-counter"></div></figcaption></figure></div><div class="tolb-prev"><i class="tg-icon-arrow-prev-thin"></i></div><div class="tolb-next"><i class="tg-icon-arrow-next-thin"></i></div></div>'))},ft(document).on("click","[data-tolb-id]",function(t){t.preventDefault();var e=ft(this).data("tolb-id");e&&ft("#"+e)[0].click()}),t=window.navigator.userAgent.indexOf("Edge/"),e="ontouchstart"in window||navigator.msMaxTouchPoints,p="div:not(.tg-item-gallery-holder) > .tg-item-image, .tg-item-media-poster, .tg-item-audio-poster, .tg-item-gallery-holder",f=0,!e&&!ft("body").hasClass("is-ie")&&t<0&&ft(document).on("mousemove",".tg-panZ",function(t){o=ft(this),d=o.width(),u=o.height(),s=o.closest(".tg-item").offset();var e=Date.now();f+80<e&&(f=e,window.requestAnimationFrame(function(){c=.08*-(t.pageX-s.left-d/2)*.4,h=.08*-(t.pageY-s.top-u/2)*.4,ft(t.target).closest(".tg-item").find(p).css({"-webkit-transform":"matrix(1.08, 0, 0, 1.08,"+c+","+h+")","-moz-transform":"matrix(1.08, 0, 0, 1.08,"+c+","+h+")"})}))}).on("mouseleave",".tg-panZ",function(t){setTimeout(function(){ft(t.target).closest(".tg-item").find(p).css({"-webkit-transform":"","-moz-transform":""})},80)}),m=document,y=0,v=m.getElementsByTagName("html")[0],_=m.getElementsByTagName("body")[0],g="ontouchstart"in window||navigator.msMaxTouchPoints,w=ft("body").hasClass("is-ie")?1:80,g||ft(document).on("mousemove",".tg-atv-anim",function(m){var g=ft(this),t=Date.now();y+w<t&&(y=t,window.requestAnimationFrame(function(){var t,e,i,o,n,r,a,s,l,u,d,c,h,p,f;t=m,e=g,i=_.scrollTop||v.scrollTop,o=_.scrollLeft,n=t.pageX,r=t.pageY,a=e[0].getBoundingClientRect(),s=e[0].clientWidth||e[0].offsetWidth||e[0].scrollWidth,l=e[0].clientHeight||e[0].offsetHeight||e[0].scrollHeight,u=320/s,d=.52-(n-a.left-o)/s,c=.52-(r-a.top-i)/l,h=r-a.top-i-l/2,p=n-a.left-o-s/2,f="perspective("+3*s*(s<l?l/s*2:1)+"px) rotateX("+.1*u*(h-c)+"deg) rotateY("+.07*u*(d-p)+"deg) scale3d(1.03,1.03,1.03)",e.css("transform",f+" translateX("+2*d*(2.5/u)+"px) translateY("+1*c*(2.5/u)+"px)")}))}).on("mouseenter",".tg-atv-anim",function(t){ft(this).addClass("over")}).on("mouseleave",".tg-atv-anim",function(t){var e;(e=ft(this)).removeClass("over"),setTimeout(function(){var t=e[0].clientWidth||e[0].offsetWidth||e[0].scrollWidth;e.css("transform","perspective("+3*t+"px) rotateX(0deg) rotateY(0deg) translateZ(0)")},80)}),ft(document).on("click",".tg-social-share:not(.tg-social-disabled)",function(t){t.preventDefault();var e=ft(this)[0].href,i=Math.round(window.screenX+(window.outerWidth-626)/2),o=Math.round(window.screenY+(window.outerHeight-436)/2);return e&&window.open(e,"tg_share","status=0,resizable=1,location=1,toolbar=0,width=626,height=436,top="+o+",left="+i),!1}),ft.TG_media_init(),ft(document).ready(function(){ft(".tg-grid-preloader-styles, .tg-grid-styles").removeAttr("scoped"),ft(".tg-grid-holder").The_Grid(),ft.TO_Lightbox()});var T,x,z=ft.event;T=z.special.debouncedresize={setup:function(){ft(this).on("resize",T.handler)},teardown:function(){ft(this).off("resize",T.handler)},handler:function(t,e){var i=this,o=arguments,n=function(){t.type="debouncedresize",z.dispatch.apply(i,o)};x&&clearTimeout(x),e?n():x=setTimeout(n,T.threshold)},threshold:100}}(jQuery),function(){for(var r=0,t=["webkit","moz"],e=0;e<t.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[t[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),o=Math.max(0,16-(i-r)),n=window.setTimeout(function(){t(i+o)},o);return r=i+o,n}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}(),window.tgInterval=function(t,e){var i,o=Date.now,n=window.requestAnimationFrame,r=o(),a=function(){o()-r<e||(r+=e,t()),i||n(a)};return n(a),{clear:function(){i=1}}};
let WPFormsUserJourney=window.WPFormsUserJourney||((n,s)=>{let u={init(){u.checkCleanupCookie();let e=u.getUserJourneyData();var r=Math.round(Date.now()/1e3);0!==Object.keys(e).length||""===n.referrer||n.referrer.startsWith(s.location.origin)||(e[r-2]=n.referrer+"|#|{ReferrerPageTitle}");let t=s.location.href+"|#|"+n.title;"undefined"!=typeof wpforms_user_journey&&wpforms_user_journey.page_id&&(t+="|#|"+Number(wpforms_user_journey.page_id));var o=encodeURIComponent(u.addSlashes(t)),a=u.getLatestTimeStamp(e);e[a]===o&&delete e[a],e[r]=o,e=u.getLastData(e),u.setUserJourneyInputs(e),u.setUserJourneyData(e)},getObjectKeysAsNumbers(e){return Object.keys(e).map(e=>Number.parseInt(e,10))},getLatestTimeStamp(e){e=u.getObjectKeysAsNumbers(e);return Math.max(...e).toString()},checkCleanupCookie(){u.createCookie("_wpfuj","",0),"1"===u.getCookie(wpforms_user_journey.cleanup_cookie_name)&&(localStorage.removeItem(wpforms_user_journey.storage_name),u.createCookie(wpforms_user_journey.cleanup_cookie_name,"",0))},setUserJourneyInputs(t){let o=wpforms_user_journey.storage_name;n.querySelectorAll("form.wpforms-form").forEach(e=>{let r=e.querySelector(`input[name="${o}"]`);r||((r=n.createElement("input")).type="hidden",r.name=o,e.appendChild(r)),r.value=JSON.stringify(t)})},setUserJourneyData(e){u.setLocalStorage(JSON.stringify(e))},setLocalStorage(e){try{localStorage.setItem(wpforms_user_journey.storage_name,e)}catch(e){u.debug("Error setting local storage:",e)}},getLastData(e){var r=Object.entries(e).sort(([e],[r])=>Number(e)-Number(r)),t=[];let o=2;var a=Math.floor(Date.now()/1e3)-31536e3;for(let e=r.length-1;0<=e;--e){var[s,n]=r[e];if(Number(s)<a)break;if(t.length>=wpforms_user_journey.max_data_items)break;var u=String(s).length+String(n).length+6;if(o+u>wpforms_user_journey.max_data_size)break;o+=u,t.push([s,n])}return Object.fromEntries(t)},getUserJourneyData(){let e={};try{var r=JSON.parse(u.getLocalStorage());r&&"object"==typeof r&&!Array.isArray(r)&&(e=r)}catch(e){u.debug("Error parsing JSON:",e)}return e},getLocalStorage(){let e=null;try{e=localStorage.getItem(wpforms_user_journey.storage_name)}catch(e){u.debug("Error getting local storage:",e)}return e},createCookie(e,r,t){let o="",a="";var s;wpforms_user_journey.is_ssl&&(a=";secure"),o=t?-1===t?"":((s=new Date).setTime(s.getTime()+24*t*60*60*1e3),";expires="+s.toGMTString()):";expires=Thu, 01 Jan 1970 00:00:01 GMT",n.cookie=e+"="+r+o+";path=/;samesite=strict"+a},getCookie(e){var r,t=e+"=";for(r of n.cookie.split(";")){let e=r;for(;" "===e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(t))return e.substring(t.length,e.length)}return null},addSlashes(e){return(e+"").replace(/[\\"]/g,"\\$&")},debug(...e){wpforms_user_journey.is_debug&&console.log("User Journey:",...e)}};return u})(document,window);WPFormsUserJourney.init();
(()=>{var{store:et,util:tt}=window.csGlobal.rivet,{subtractVectors:W,debounce:nt,teardown:st,listener:z,listenerPassive:De,divideVectors:Te,clampVector:rt,vectorsEq:it,addVectors:ge,absVector:fn,roundVector:Fe,multiplyVectors:ve}=tt,se=.065,ot=75e-6,Ie=3,Me=7,at=3,re=e=>!1,ct=ot*-1;function lt(e,{canBeginMove:n=()=>!0,onBeginMove:i=()=>{},onEndMove:c=()=>{},onMove:a=()=>{},onClick:f=()=>{},className:t="is-drag",drag:l,click:m,scroll:r,checkY:d=!1}){let o=!0,u,g=null,p=!1,v=!1,A=!1,S,x=0,h=[],T=!0,D=(s,y)=>{S||(S=s.timeStamp);let b=S-s.timeStamp;S=s.timeStamp;let E=W(u,y);u=y;let k=rt(Te(E,[b,b]),Me*-1,Me);return h.push(k),h.length>at&&h.shift(),x=Te(h.reduce((F,V)=>ge(F,V)),[h.length,h.length]),[y,x]},I=({clientX:s,clientY:y})=>[s,y],M=s=>{var y;return s.type.includes("touch")?I((y=s.touches[0])!=null?y:s.changedTouches[0]):I(s)},L=([s,y])=>Math.abs(s)>Ie||d&&Math.abs(y)>Ie,P=s=>{g=M(s),u=g,h=[]},q=s=>W(g,M(s)),N=s=>{re("POINTER START"),l&&!A&&n(s)&&(P(s),e.addEventListener("pointermove",Y))},R=s=>{re("TOUCH START"),l&&!A&&n(s)&&(v=!0,P(s),e.removeEventListener("pointermove",Y),e.addEventListener("touchmove",X))},O=s=>{if(re("DRAG",s.type),!!o)if(p)s.cancelable&&s.preventDefault(),a(...D(s,q(s)));else{s.type==="pointermove"&&e.setPointerCapture(s.pointerId);let y=q(s);L(y)&&(P(s),p=!0,i(...D(s,y),!1,s),t&&e.classList.add(t))}},Y=s=>{O(s)},X=s=>{O(s)},U=(s,y)=>{S=null,!(s.type.includes("pointer")&&(e.removeEventListener("pointermove",Y),e.releasePointerCapture(s.pointerId),v))&&(s.type.includes("touch")&&(e.removeEventListener("touchmove",X),v=!1),!!p&&(re("END",s.type,y),c(q(s),x,!1,y),t&&e.classList.remove(t),p=!1))},Z=s=>{U(s),m&&s.target!==e&&!v&&f(s.target)},j=s=>void U(s,!0),ee=s=>{if(!o){o=!0;return}U(s)},_=s=>void U(s),ue=s=>{A?a(s,[0,0],!0):(A=!0,i([0,0],[0,0],!0)),fe()},fe=nt(()=>{A=!1,c([0,0],[0,0],!0)},200),J=0,Q=s=>{if(!p){if(J+=s.wheelDelta,Math.abs(J)<100)return;let b=-J;s.preventDefault(),J=0,ue([b,b])}},w,te=function(){o=!1,w&&clearTimeout(w),w=setTimeout(function(){o=!0},100)};return st([z(e,"touchstart",R),z(e,"touchend",ee),z(e,"touchcancel",_),z(e,"pointerdown",N),z(e,"pointerup",Z),z(e,"pointercancel",j),r?z(e,"wheel",Q):null,De(window,"scroll",te),De(document.body,"scroll",te),()=>void e.removeEventListener("pointermove",Y)])}function ie({el:e,drag:n,click:i,scroll:c,cursor:a=!1},f){if(window.csGlobal&&window.csGlobal.disableSlideInteractions)return()=>{};if(!n&&!i&&!c)return()=>{};a&&e.classList.add("can-drag");let{unsubscribe:t,getState:l,dispatch:m}=et.subscribe(e,"slider"),r=lt(e,{...f({getState:l,dispatch:m}),className:a?"is-drag":"",click:i,drag:n,scroll:c});return()=>{a&&e.classList.remove("can-drag"),r(),t()}}var Ve=e=>{let n=!1,i=!1,c=!1,a=null,f=[0,0],t=[0,0],l=W([1,1],[se,se]),m,r,d=u=>{let g=u-r;r=u,!c&&a&&(t=ge(t,ve(W(f,a),[ct*g,0]))),t=ve(t,l);let p=ve(t,[g,g]),v=ge(f,p),A=!1,S=!1;if(l[0]<1||l[1]<1){let h=.001*g,T=Math.abs(t[0])<=h&&t[0]!==0,D=Math.abs(t[1])<=h&&t[1]!==0;T&&(t[0]=0),D&&(t[1]=0),(T&&D||T&&t[1]===0||D&&t[0]===0)&&(S=!0)}if(a){let h=W(a,v),T=W(a,f);h[0]>0^T[0]>0&&(v[0]=a[0],t[0]=0),h[1]>0^T[1]>0&&(v[1]=a[1],t[1]=0),it(Fe(a,1),Fe(v,1))&&(v=a,a=null,A=!0,S=!0,t=[0,0])}i&&(i=!1,S=!0,t=[0,0]),f=v;let x=e(v,{snapped:A,stalled:S});S&&!a?n=!1:m=requestAnimationFrame(d),typeof x=="function"&&x()},o=()=>{i=!1,!n&&(n=!0,r=performance.now(),cancelAnimationFrame(m),requestAnimationFrame(d))};return{start:()=>{o()},snapTo:u=>{o(),a=u?[u[0],0]:null},stall:()=>{i=!0,a=null},suspend:u=>{c=!!u},isSuspended:()=>c,setPosition:([u])=>{o(),f=[u,0]},setVelocity:([u],g=!0)=>{g&&o(),t=[u,0]},setFriction:u=>{l=W([1,1],[u,u])},resetFriction:()=>{l=[se,se]}}},dt=.2,oe=e=>Math.abs(e)<dt?0:e>0?1:-1;var{store:ut,util:ft}=window.csGlobal.rivet,{teardown:pt,listener:Le,intersect:mt,getEasing:gt,round:vt,onPageVisibilityChange:yt,triggerScan:mn,oncePassive:ht,listenerPassive:bt}=ft,Ce=({onPlay:e,onPause:n,onReset:i,duration:c})=>{let a=new Set,f=!1,t=()=>{!f&&a.size<=0&&(f=!0,e(o))},l=u=>{a.has(u)&&a.delete(u),t()},m=u=>{let g=f;f=!1,a.has(u)||a.add(u),g&&n(o)};m("main");let o={getDuration:()=>(typeof c=="function"?c():c)||1e3,release:l,hold:m,reset:()=>{i(o,f),t()},setup:()=>{}};return o},wt=({duration:e,interval:n,animate:i,easing:c="linear"})=>{let a,f,t,l,m=0,r=0,d=gt(c);i(0);let o=p=>{let v=vt(d((p-f)/t),1e3);v!==m&&i(v),m=v,l=requestAnimationFrame(o)},u=p=>{f=window.performance.now(),r?f=window.performance.now()-p*r:i(0),m=r,t=p,r=0,cancelAnimationFrame(l),l=requestAnimationFrame(o)},g=p=>{let v=p;r&&(v=p-p*r),u(p),a=setInterval(()=>{u(p),v!==p&&(clearInterval(a),cancelAnimationFrame(l),g(p)),n()},v)};return Ce({duration:e,onPlay({getDuration:p}){g(p())},onPause(){r=m,clearInterval(a),cancelAnimationFrame(l)},onReset({getDuration:p},v){clearInterval(a),cancelAnimationFrame(l),v&&g(p())}})},St=({duration:e})=>{let n={play:()=>{},pause:()=>{},reset:()=>{}};return{...Ce({duration:e,onPlay:(...a)=>n.play(...a),onPause:(...a)=>n.pause(...a),onReset:(...a)=>n.reset(...a)}),setup:a=>{n={...n,...a}}}},xt=({mode:e,...n})=>e==="interval"?wt(n):e==="marquee"?St(n):{reset:()=>{},setup:()=>{},hold:()=>{},release:()=>{}},At=({autoplay:e,stacked:n})=>n&&e==="marquee"?"off":e,ae=(e,n,i)=>{let c=At(i),{unsubscribe:a,getState:f,dispatch:t}=ut.subscribe(e,"slider",(g,p,v)=>{v&&requestAnimationFrame(()=>{l.release("main")}),!v&&p.includes("lastUserInteraction")&&l.reset()},["lastUserInteraction"]),l=xt({mode:c,duration:()=>f().autoplayDuration||1e3,interval:()=>t(g=>({...g,autoplayAdvance:1})),animate:g=>{n.style.setProperty("--x-slide-autoplay-progress",g)}}),m=Le(window,"tco-drag-start",()=>{l.hold("dragging")}),r=Le(window,"tco-drag-end",()=>{l.release("dragging")}),d=null,o=null;i.autoplayStartInView&&(l.hold("viewport"),d=mt(e,({isIntersecting:g})=>{g?(l.release("viewport"),Array.from(e.querySelectorAll('[loading="lazy"]')).forEach(p=>{p.removeAttribute("loading")})):l.hold("viewport")},{threshold:.15,top:"0px",bottom:"0px"}),o=yt(g=>{g?l.release("vis"):l.hold("vis")})),f().autoplayer=l;let u=[a,m,r,d,o];if(i.pauseOnHover){let g=Pt(e,l);u.push(g)}return{unsubscribe:pt(u),autoplayer:l}};function Pt(e,n){let i=e.parentNode;return bt(i,"mouseover",function(){n.hold(),ht(i,"mouseout",function(){n.release()})})}var qe=(e,n,i,c)=>e(()=>{let{unsubscribe:a,autoplayer:f}=ae(n,i,c),t=(c.swipe||"").includes("x"),l=(c.swipe||"").includes("y"),m=([o,u])=>t&&l?Math.abs(o)>=Math.abs(u)?0:1:l?1:0,r=o=>oe(o[m(o)]),d=ie({el:n,drag:!!c.swipe,checkY:l},({dispatch:o,getState:u})=>({onBeginMove:()=>void f.hold("stacked-drag"),onEndMove:(g,p,v,A)=>{if(!A){let S=r(p);S!==0&&o(x=>({...x,advance:S}))}f.release("stacked-drag")}}));return()=>{a(),d()}});var{store:kt,util:Et}=window.csGlobal.rivet,{multiplyVectors:Be,once:Sn,oncePassive:Dt,vectorsEq:ye,listener:Tt,wrapNumber:Ft,clamp:It,addVectors:B,subtractVectors:$,balanceFromDifference:Mt,makeSortByKey:Vt,elementMeta:H,onViewportChange:Lt,onLoad:Ct}=Et,qt=e=>n=>Math.floor(n/e),Bt=({subprime:e=0,totalSlides:n=0,slidesPerScrollPage:i=1})=>It(qt(i)(e)*i,0,n),he=e=>n=>{if(!n)return null;let i=n;do i=i[e];while(i&&!i.matches("[data-x-slide]"));return i};function Nt(e,n,{wrapAround:i}){if(!i)return()=>{};let c=()=>{let{clones:t=[]}=H.get(e);t.forEach(l=>l.remove())},a=t=>l=>({before:t,clone:H.get(l).createClone()}),f=Tt(e,"tco-slide-refresh",()=>{let{slides:t=[]}=H.get(e);c();let l=[...t.map(a(!0)).reverse(),...t.map(a(!1))],m=0;t.forEach(function(d){m+=d.getBoundingClientRect().width});let r=window.innerWidth/m;for(r=Math.ceil(r),r=Math.min(6,r),m===0&&(r=2),r-=2;r>0;)l=[...t.map(a(!0)).reverse(),...l,...t.map(a(!1))],r-=2;l.forEach(({clone:d,before:o})=>{n[o?"prepend":"append"](d)}),H.update(e,d=>({...d,clones:l.map(({clone:o})=>o)})),e.dispatchEvent(new CustomEvent("tco-slides-cloned"))});return()=>{f(),c()}}var Rt=(e,n,i)=>{let c=()=>H.get(e).slides;c.first=()=>c()[0],c.last=()=>{let r=c();return r[r.length-1]};let a=Nt(e,n,i),f=(r,d)=>{let o=he(d<0?"previousElementSibling":"nextElementSibling");return(u,g)=>{if(d===0)return r[u];let p=o(r[g]);for(;p;){if(H.get(p).index===u)return p;p=o(p)}return r[u]}},t=(r,{prevSubprime:d=0,totalSlides:o,advanceDirection:u})=>{let g=c();if(!i.wrapAround)return g[r];let p=u===0?Mt(r,d,o):u;return f(g,p)(r,d)};return{anticipateSnapTarget:r=>t(Bt(r),r),teardownSlides:()=>{a()},getSlides:c}},Ot=(e,{justify:n})=>{let i,c=()=>{i=new WeakMap};c();let a=({offsetLeft:d,offsetTop:o,offsetWidth:u,offsetHeight:g})=>[d,o,u,g],f=d=>{if(!i.has()){let o=a(d);return i.set(d,o),o}return i.get(d)};return{getElementOffsets:f,getElementDimensions:d=>{let[,,o,u]=f(d);return[o,u]},getElementCoordinates:d=>{let[o,u]=f(d);return[o,u]},getVectorFromTarget:d=>{if(!d)return[0,0];let[o,u,g,p]=f(d),v=[o,u];return n==="center"?B(v,[g/2,p/2]):n==="end"?B(v,[g,p]):v},normalizeJustifiedVector:d=>{let[,,o,u]=f(e);return n==="center"?$(d,[o/2,u/2]):n==="end"?$(d,[o,u]):d},teardown:Lt(c)}},Ut=(e,n,{getElementDimensions:i,getElementOffsets:c,getElementCoordinates:a,normalizeJustifiedVector:f,getVectorFromTarget:t},{contain:l,wrapAround:m})=>{let r=0;return d=>{let o=e.first(),u=e.last();if(m){let g=$(d,t(he("previousElementSibling")(o))),p=$(d,t(he("nextElementSibling")(u)));if(g[r]<=0)return[d,B(t(u),g)];if(p[r]>=0)return[d,B(t(o),p)]}else{if(l){let v=f(d);if(v[r]<0){let h=Be(f([0,0]),[-1,-1]);return[h,h]}let A=i(n.parentElement),S=B(a(u),i(u)),x=$(S,A);if(f(x),v[r]>x[r]){let h=B(x,$(x,f(x)));return[h,h]}}let g=t(o),p=t(u);if(d[r]<g[r])return[g,g];if(d[r]>p[r])return[p,p]}return[d,null]}},Ne=(e,n,i,c,a)=>e(()=>{let{wrapAround:f=!1,snap:t=!1,int:l=""}=a,{unsubscribe:m,autoplayer:r}=ae(n,i,a),d=a.autoplay==="marquee";d&&r.hold("marquee-positioned");let o=Number.parseFloat(a.speed)||.1;a.direction==="reverse"&&(o=-o);let{getSlides:u,anticipateSnapTarget:g,teardownSlides:p}=Rt(n,c,a),v=Ot(c,a),{normalizeJustifiedVector:A,getElementDimensions:S,getVectorFromTarget:x,teardown:h}=v,T=Ut(u,c,v,a),D=!1,I=[0,0],M=[0,0],L=[0,0],P=s=>{if(ye(s,I)&&D)return!1;I=s,M=I;let[y]=A(s);return c.style.setProperty("transform",`translate3d(${y*-1}px,0,0)`),!0},q,N=([s])=>{let[y,b]=T([s,0]);w.suspend(!0),r.hold("transition"),c.style.removeProperty("transition"),P(y),clearTimeout(q),q=setTimeout(()=>{c.style.setProperty("transition","none"),c.offsetHeight,b&&P(b),r.release("transition"),w.suspend(!1),w.stall()},X().transitionDuration)},R=s=>x(g(s)),O=s=>d&&o<0?x(u.last()):R(s),{unsubscribe:Y,getState:X,dispatch:U}=kt.subscribe(n,"slider",(s,y)=>{if(!s.positioned||!s.pageLoaded)return;if(!D){c.style.setProperty("transition","none"),c.offsetHeight,P(O(s)),c.offsetHeight,c.style.removeProperty("transition"),D=!0,requestAnimationFrame(()=>{r.release("marquee-positioned")});return}if(d)return;if(y.includes("lastAutoBasisAdvance")){let k=Be(S(c.parentElement),[s.autoBasisAdvanceAmount,s.autoBasisAdvanceAmount]),F=B(M,k),[,V]=T(F);N(F),Q(V||F);return}let b=s.allowSnapTransition&&y.includes("subprime")||y.includes("snapBack"),E=y.includes("styleUpdate");(b||E)&&N(R(s))},["isTouchInteraction","allowSnapTransition","styleUpdate","subprime","slidesPerPage","snapBack","lastAutoBasisAdvance"]),Z=(s,y,b=0)=>{let{slideData:E}=X(),k=[];b!==0&&(k=E.filter(({isPageStart:C,balance:K})=>C&&K===b).map(({index:C})=>C),k.length===0&&f&&(k=E.filter(({isPageStart:C})=>C).map(({index:C})=>C)));let F=A(B(s,y)),V=Array.from(c.children),pe=Math.floor(V.length/2),ne=[];for(let C=0;C<V.length;C++){let K=V[Ft(C+pe,V.length)],{index:me,isClone:Ke}=H.get(K),{isPageStart:Qe}=E[me];if(!Qe||k.length>0&&!k.includes(me))continue;let Pe=x(K),Ze=S(K)[0],je=$(A(Pe),F),ke=Math.abs(je[0]),Ee={slide:K,vector:Pe,isClone:Ke,index:me,distance:ke};if(k.length===0&&ke<Ze/2)return Ee;ne.push(Ee)}return ne.sort(Vt("distance")).shift()},j=l.includes("drag"),ee=!1,_=!1,ue=ie({el:n,drag:j,click:l.includes("click")&&!d,cursor:j,scroll:!d&&!!a.scrollWheel},({dispatch:s})=>({canBeginMove:({target:y})=>{if(u().length<=0||_)return!1;let b=y.closest(".tco-element-preview");return!b||b.matches(".x-slide, .x-slide-container-viewport")},onBeginMove:(y,b,E,k)=>{E&&(ee=!0),r.hold("user-drag"),L=I,w.suspend(!0),w.snapTo(null),w.setVelocity([0,0]),w.setPosition(L),s(F=>({...F,isTouchInteraction:!0,allowSnapTransition:!1}))},onEndMove:(y,b,E,k)=>{w.suspend(!1),w.setVelocity(b),r.hold("physics"),E&&(w.stall(),ee=!1);let F={isTouchInteraction:!1};if(t&&!d){let V=k?0:oe(b[0]),{index:pe,vector:ne}=Z(E||k?I:L,k?[0,0]:y,V);F.softNavigateTo=pe,w.snapTo(ne)}s(V=>({...V,...F})),r.release("user-drag")},onMove:(y,b,E)=>{if(!_)if(E){let k=B(I,y);if(f)w.setPosition(k);else{let[F]=T(k);w.setPosition(ye(k,F)?k:F)}}else w.snapTo(null),w.setPosition(B(L,y))},onClick:y=>{let b=H.get(y.closest("[data-x-slide]")).index;typeof b!="undefined"&&s(E=>({...E,navigateToIndex:b}))}})),fe=s=>{let[y,b]=T(s);return f?(b&&d&&w.setPosition(b),b||s):(w.isSuspended()||y&&b&&ye(y,b)&&(_=!0,w.snapTo(b),Q(b)),s)},J=s=>{X().prime!==s&&U(y=>({...y,softNavigateTo:s}))},Q=s=>{J(Z(s,[0,0]).index)},w=Ve((s,{snapped:y,stalled:b})=>{let E=fe(s);if(P(E),(b||y)&&(_=!1),d&&(Q(E),y&&(o*=-1,w.resetFriction(),w.setVelocity([o,o]))),b)return()=>{r.release("physics")}});c.style.setProperty("transition","none"),r.setup({play:()=>{w.setFriction(0),w.setPosition(I),w.setVelocity([o,o])},pause:()=>{w.setVelocity([0,0],!1),w.resetFriction(),w.stall()}});let te=Dt(n,"tco-slides-cloned",()=>{U(s=>({...s,positioned:!0}))});return()=>{p(),te(),m(),Y(),Ct(()=>{U(s=>s),w.start()}),ue(),h()}});var{drive:Ht,attach:Re,util:Gt,debug:Wt}=window.csGlobal.rivet,{elementMeta:G,getCachedJsonAttribute:zt,listener:$t}=Gt,Oe=e=>!!G.get(e).isClone,Ue=e=>e?Array.from(e.children).filter(n=>!Oe(n)&&n.matches(".x-slide")):[],He=e=>Ue(e).filter(n=>G.get(n).ready),ce=(e,n)=>{if(!n){let{index:i}=G.get(e);if(typeof i!="undefined")return i}return Ue(e.parentElement).indexOf(e)},Ge=e=>{if(!e.hasAttribute("data-cs-observeable-id"))return;let n=e.getAttribute("data-cs-observeable-id");e.classList.remove("tco-element-preview"),e.removeAttribute("data-cs-observeable-container"),e.removeAttribute("data-cs-observe"),e.removeAttribute("data-cs-observeable"),e.removeAttribute("data-cs-observeable-id"),e.classList.add(`tco-observe-${n}`)},Yt=(e,n)=>{let i=e.cloneNode(!0);return i.classList.add("is-virtual"),i.setAttribute("aria-hidden",!0),Ge(i),Array.from(i.querySelectorAll("[data-cs-observeable-id]")).map(Ge),Array.from(i.querySelectorAll("[id]")).map(c=>c.removeAttribute("id")),()=>{let c=i.cloneNode(!0);return G.set(c,{...n,index:ce(e),isClone:!0}),c}};Re("[data-x-slide]",e=>{if(Oe(e))return;let n=e.closest("[data-x-slide-container]"),{wrapAround:i,enter:c="effect",exit:a="effect"}=zt(n,"data-x-slide-container"),f={enter:c,exit:a};G.update(e,l=>({...l,index:ce(e),ready:!0,effects:f,createClone:i?Yt(e,{effects:f}):null})),n.dispatchEvent(new CustomEvent("tco-slide-added-or-removed"));let t=$t(n,"tco-slide-reindex",()=>{G.update(e,l=>({...l,index:ce(e,!0)}))});return()=>{G.del(e),t(),n.dispatchEvent(new CustomEvent("tco-slide-added-or-removed"))}},50);Re("[data-x-slide]",e=>(G.update(e,n=>({...n,effectRivet:["effects",{key:()=>`slideData.${ce(e)}.active`,condition:!0,enter:"effect",exit:"effect"},"slider"]})),Ht([[e,"classname",{key:"slideData.meta(index).active",classname:"is-current-slide",condition:!0},"slider"],Wt(e)&&[e,"attr",{key:"subprime",attr:"data-prime-slide",value:!0,condition:["meta(index)","==="]},"slider"],[e,"effects",{key:"slideData.meta(index).active",condition:!0,enter:"meta(effects.enter)",exit:"meta(effects.exit)"},"slider"],[e,"prop",{key:"slideData.meta(index).distance",prop:"--x-slide-distance"},"slider"],[e,"prop",{key:"slideData.meta(index).balance",prop:"--x-slide-balance"},"slider"]])),200);var{attach:Xt,store:We,drive:_t,util:ze}=window.csGlobal.rivet,{onLoad:Jt,wrapNumber:Kt,clamp:Qt,makeStateSynchronizer:Zt,distanceInRange:$e,balanceFromDifference:jt,listenerPassive:le,elementMeta:be,parseTime:Ye}=ze,en=e=>n=>Math.floor(n/e),tn=({slidesPerScrollPage:e,totalSlides:n})=>e?Math.ceil(n/e):n,nn=()=>{let e=null,n=!0,i=(f,t)=>{n=t?!!t.keyboardNavigation:!0,e=f.closest("[data-x-slide-context], [data-x-slide-container], [data-x-slide-pagination], [data-x-slide-next], [data-x-slide-prev], [data-x-slide-goto]")};le(window,"focusin",({target:f})=>{i(f)});let c=["ArrowRight","ArrowDown"],a=["ArrowLeft","ArrowUp"];return le(window.document,"keyup",({key:f})=>{if(e&&n){let t=c.includes(f),l=a.includes(f);if(t||l){let m=We.makeDispatch(e,"slider");m&&m(r=>({...r,advance:t?1:-1}))}}}),i},sn=nn(),rn=()=>({advance:e,autoplayAdvance:n,navigateToIndex:i,softNavigateTo:c,navigateTo:a,...f})=>{let t={...f},{scrollBySlide:l,wrapAround:m,autoBasis:r}=t.options,d=!l&&r;typeof t.autoplayDuration!="number"&&(t={...t,autoplayDuration:Ye(t.autoplayDuration)}),typeof t.transitionDuration!="number"&&(t={...t,transitionDuration:Ye(t.transitionDuration)}),typeof t.slidesPerPage!="number"&&(t={...t,slidesPerPage:Number(t.slidesPerPage)}),t.slidesPerScrollPage=l?1:t.slidesPerPage;let o=en(t.slidesPerScrollPage),u=tn(t),g=o(t.prime),p,v;if(typeof c!="undefined"&&(v=c),typeof i!="undefined"&&(v=o(i)),t.options.autoplay!=="marquee"&&((typeof e!="undefined"||typeof a!="undefined"||typeof i!="undefined")&&(t={...t,lastUserInteraction:Date.now(),allowSnapTransition:!0}),typeof e!="undefined"&&t.ready&&(p=e),typeof a!="undefined"&&t.ready&&(v=a,t={...t,advanceDirection:0})),typeof n!="undefined"&&(p=n),typeof p!="undefined"&&(d?t={...t,lastAutoBasisAdvance:Date.now(),autoBasisAdvanceAmount:p,allowSnapTransition:!1}:(t={...t,advanceDirection:p>0?1:-1},v=Kt(g+p,u))),typeof v!="undefined"){let x=v*t.slidesPerScrollPage;t={...t,prime:Qt(x,0,t.totalSlides-1)}}let A=o(t.prime),S=o(t.subprime);return t={...t,current:A+1,total:u,atStart:A===0,atEnd:A===u-1,slideData:Array.from({length:t.totalSlides}).map((x,h)=>{let D=h%t.slidesPerScrollPage===0;if(o(h)===S)return{active:!0,distance:0,balance:0,index:h,isPageStart:D};let M=t.subprime,L=t.subprime+t.slidesPerScrollPage-1;if(m){let N=jt(h,t.subprime,t.totalSlides),R=N===1?L:M,O=Math.min($e(h,R,t.totalSlides),$e(R,h,t.totalSlides));return{active:!1,distance:O,balance:N,index:h,isPageStart:D}}let P=h>M?1:-1,q=h>M?h-L:M-h;return{active:!1,balance:P,distance:q,index:h,isPageStart:D}})},t};Xt("[data-x-slide-container]",(e,n)=>{let i=e.closest("[data-x-slide-context]")||e,c=e.querySelector(".x-slide-container"),{stacked:a=!1,autoplay:f="off",adaptiveHeight:t=!1,wrapAround:l,startingSlide:m=1}=n,r=d=>{let o=e.querySelector(".x-slide-container-content"),u=()=>be.update(e,P=>({...P,slides:He(c)}));u();let g=be.get(e).slides.length;m=g>0?Math.min(g,m):m,m=Math.max(1,m);let p=m-1,v=document.readyState==="complete",A=_t([[i,"define",{options:n,loading:!0,ready:!1,advanceDirection:0,autoplayDuration:"var(--x-slide-container-autoplay-transition-duration, 5s)",transitionDuration:"var(--x-slide-container-transition-duration, 1s)",isTouchInteraction:!1,allowSnapTransition:!0,current:m,prime:p,subprime:p,prevSubprime:p,slideData:[],styleUpdate:m,slidesPerPage:"var(--x-slides-per-page,1)",lastUserInteraction:Date.now(),autoBasisAdvanceAmount:1,lastAutoBasisAdvance:Date.now(),positioned:!!(a||!l),pageLoaded:v,total:g,totalSlides:g,_reducer:rn()},"slider"],[i,"prop",{key:"current",prop:"--x-slide-current"},"slider"],[i,"prop",{key:"total",prop:"--x-slide-total"},"slider"],[e,"onready"],[e,"onload"],[e,"onscan"],[e,"inc",{state:"slider",key:"styleUpdate"}],[e,"onload",{},"loaded"],[e,"onready",{},"ready"],[e,"set",{state:"slider",key:"ready",value:!0,defer:!0},"ready"],[e,"classname",{key:"ready",classname:"is-ready",condition:!0},"slider"],[e,"set",{state:"slider",key:"transitionDuration",value:"var(--x-slide-container-transition-duration, 1s)"}],f!=="off"&&[e,"set",{state:"slider",key:"autoplayDuration",value:"var(--x-slide-container-autoplay-transition-duration, 5s)"}],!a&&[e,"set",{state:"slider",key:"slidesPerPage",value:"var(--x-slides-per-page)"}],t&&[o,"height",{key:"subprime",selector:".is-current-slide"},"slider"]]),S=ze.rivetListener(e,"loaded",()=>{e.classList.remove("is-loading")}),x=Zt((P,q)=>{let N=P,R=T().transitionDuration;D(O=>({...O,prevSubprime:O.subprime,subprime:N})),setTimeout(q,R)}),{unsubscribe:h,getState:T,dispatch:D}=We.subscribe(e,"slider",({prime:P})=>void x(P)),I=le(e,"tco-slide-added-or-removed",()=>{u(),D(P=>({...P,totalSlides:be.get(e).slides.length})),e.dispatchEvent(new CustomEvent("tco-slide-reindex")),e.dispatchEvent(new CustomEvent("tco-slide-refresh"))}),M=d();e.dispatchEvent(new CustomEvent("tco-slide-refresh"));let L=le(e,"pointerup",()=>sn(e,n));return[h,A,I,S,M,L,v?null:Jt(()=>{D(P=>({...P,pageLoaded:document.readyState==="complete"}))})]};return a?qe(r,e,i,n):Ne(r,e,i,c,n)},100);var{csHooks:on}=window.csGlobal,{attach:de,store:we,drive:Xe,util:an,debug:Dn}=window.csGlobal.rivet,{makeStateSynchronizer:cn,getTransitionDuration:ln,listener:Se,elementMeta:dn}=an;de("[data-x-slide-pagination]",e=>{let n=cn((l,m)=>{Array.from(e.querySelectorAll("li")).forEach((r,d)=>{let o=d===l-1;r.classList.toggle("is-active",o),!o&&r.hasAttribute("aria-current")&&r.removeAttribute("aria-current"),o&&!r.hasAttribute("aria-current")&&r.setAttribute("aria-current","step")}),setTimeout(m,ln(e.querySelector("li")))}),i=l=>{let m=(r,d,o)=>r+`<li data-x-slide-index="${o+1}" aria-label="Slider Page ${o+1}"><span class="visually-hidden">${o}</span></li>`;e.innerHTML=Array.from({length:Math.max(1,l)}).reduce(m,""),n.reset()};i(1);let c=xe(e),{unsubscribe:a,dispatch:f}=we.subscribe(c,"slider",({total:l,current:m},r,d)=>{(d||r.includes("total"))&&i(l),n(m)},["current","total","slidesPerPage","styleUpdate"]),t=Ae(e);return[Se(e,t,l=>{l.preventDefault();let m=l.target.closest("li");if(m){let r=Number.parseInt(m.getAttribute("data-x-slide-index"),10)-1;isNaN(r)||f(d=>({...d,navigateTo:r}))}}),a]},1e3);var un=(e,n,i)=>e?Xe([[n,"effects",{key:i===-1?"atStart":"atEnd",condition:[!1,"==="],enter:"effect",exit:"effect"},"slider"],[n,"attr",{key:i===-1?"atStart":"atEnd",attr:"disabled",value:"",condition:[!0,"==="]},"slider"]]):()=>{},_e=e=>{let n=Number.parseInt(e);return isNaN(n)||n<=0?1:n},Je=e=>(n,i)=>{var r,d;let c=_e(i)*e,a=xe(n),{unsubscribe:f,getState:t,dispatch:l}=we.subscribe(a,"slider"),m=Ae(n);return[un(!((d=(r=t())==null?void 0:r.options)==null?void 0:d.wrapAround)&&i!=="noDisable",n,e),Se(n,m,o=>{l(u=>({...u,advance:c}))},{passive:!0}),f]};de("[data-x-slide-next]",Je(1),1e3);de("[data-x-slide-prev]",Je(-1),1e3);de("[data-x-slide-goto]",(e,n)=>{let i=_e(n),c=i-1,a=xe(e),f=!!e.getAttribute("data-x-slide-goto-keep-active");f=on.apply("slide-goto-keep-active",f,e);let{unsubscribe:t,getState:l,dispatch:m}=we.subscribe(a,"slider",function(o){!f||(i===o.current?e.classList.add("x-active"):e.classList.remove("x-active"))}),r=["effects",{key:"current",condition:[c+1,"=="],enter:"effect",exit:"effect"},"slider"];dn.update(e,o=>({...o,effectRivet:r}));let d=Ae(e);return[Se(e,d,o=>{m(u=>({...u,navigateTo:c}))},{passive:!0}),t,Xe([[e,...r]])]});function xe(e){let n=e;if(e.hasAttribute("data-x-slider-id")){let i=e.getAttribute("data-x-slider-id"),c=document.getElementById(i);c&&(n=c)}return n}function Ae(e){return e.getAttribute("data-x-slide-goto-trigger")||"click"}})();