var cssua=function(e,o,i){"use strict";var s=" ua-",r=/\s*([\-\w ]+)[\s\/\:]([\d_]+\b(?:[\-\._\/]\w+)*)/,n=/([\w\-\.]+[\s\/][v]?[\d_]+\b(?:[\-\._\/]\w+)*)/g,a=/\b(?:(blackberry\w*|bb10)|(rim tablet os))(?:\/(\d+\.\d+(?:\.\w+)*))?/,b=/\bsilk-accelerated=true\b/,t=/\bfluidapp\b/,l=/(\bwindows\b|\bmacintosh\b|\blinux\b|\bunix\b)/,p=/(\bandroid\b|\bipad\b|\bipod\b|\bwindows phone\b|\bwpdesktop\b|\bxblwp7\b|\bzunewp7\b|\bwindows ce\b|\bblackberry\w*|\bbb10\b|\brim tablet os\b|\bmeego|\bwebos\b|\bpalm|\bsymbian|\bj2me\b|\bdocomo\b|\bpda\b|\bchtml\b|\bmidp\b|\bcldc\b|\w*?mobile\w*?|\w*?phone\w*?)/,c=/(\bxbox\b|\bplaystation\b|\bnintendo\s+\w+)/,d={parse:function(e,o){var i={};if(o&&(i.standalone=o),!(e=(""+e).toLowerCase()))return i;for(var s,d,m=e.split(/[()]/),w=0,_=m.length;w<_;w++)if(w%2){var u=m[w].split(";");for(s=0,d=u.length;s0;)i+=s+e+"-"+o.substring(0,r),r=o.indexOf("-",r+1);i+=s+e+"-"+o}return i}var i="";for(var r in e)r&&e.hasOwnProperty(r)&&(i+=o(r,e[r]));return i},encode:function(e){var o="";for(var i in e)i&&e.hasOwnProperty(i)&&(o&&(o+="&"),o+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return o}};d.userAgent=d.ua=d.parse(o,i);var m=d.format(d.ua)+" js";return e.className?e.className=e.className.replace(/\bno-js\b/g,"")+m:e.className=m.substr(1),d}(document.documentElement,navigator.userAgent,navigator.standalone); /*! * modernizr v3.12.0 * Build https://modernizr.com/download?-applicationcache-audio-backgroundsize-borderimage-borderradius-boxshadow-canvas-canvastext-cssanimations-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-flexbox-fontface-generatedcontent-geolocation-hashchange-history-hsla-inlinesvg-input-inputtypes-localstorage-multiplebgs-opacity-postmessage-rgba-sessionstorage-smil-svgclippaths-textshadow-touchevents-video-webgl-websockets-websqldatabase-webworkers-addtest-atrule-domprefixes-hasevent-load-mq-prefixed-prefixedcss-prefixes-printshiv-setclasses-testallprops-testprop-teststyles-dontmin * * Copyright (c) * Faruk Ates * Paul Irish * Alex Sexton * Ryan Seddon * Patrick Kettner * Stu Cox * Richard Herrera * Veeck * MIT License */ !function(e,t,n,o){var r=[],a={_version:"3.12.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){r.push({name:e,fn:t,options:n})},addAsyncTest:function(e){r.push({name:null,fn:e})}},i=function(){};i.prototype=a,i=new i;var s=[];function c(e,t){return typeof e===t}var l,d,u=n.documentElement,p="svg"===u.nodeName.toLowerCase();function f(e){var t=u.className,n=i._config.classPrefix||"";if(p&&(t=t.baseVal),i._config.enableJSClass){var o=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(o,"$1"+n+"js$2")}i._config.enableClasses&&(e.length>0&&(t+=" "+n+e.join(" "+n)),p?u.className.baseVal=t:u.className=t)}function m(e,t){if("object"==typeof e)for(var n in e)l(e,n)&&m(n,e[n]);else{var o=(e=e.toLowerCase()).split("."),r=i[o[0]];if(2===o.length&&(r=r[o[1]]),void 0!==r)return i;t="function"==typeof t?t():t,1===o.length?i[o[0]]=t:(!i[o[0]]||i[o[0]]instanceof Boolean||(i[o[0]]=new Boolean(i[o[0]])),i[o[0]][o[1]]=t),f([(t&&!1!==t?"":"no-")+o.join("-")]),i._trigger(e,t)}return i}l=c(d={}.hasOwnProperty,"undefined")||c(d.call,"undefined")?function(e,t){return t in e&&c(e.constructor.prototype[t],"undefined")}:function(e,t){return d.call(e,t)},a._l={},a.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),i.hasOwnProperty(e)&&setTimeout(function(){i._trigger(e,i[e])},0)},a._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e;for(e=0;e",o.insertBefore(n.lastChild,o.firstChild)}function u(){var e=h.elements;return"string"==typeof e?e.split(" "):e}function p(e){var t=l[e[s]];return t||(t={},c++,e[s]=c,l[c]=t),t}function f(e,n,r){return n||(n=t),o?n.createElement(e):(r||(r=p(n)),!(s=r.cache[e]?r.cache[e].cloneNode():i.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e)).canHaveChildren||a.test(e)||s.tagUrn?s:r.frag.appendChild(s));var s}function m(e){e||(e=t);var r=p(e);return!h.shivCSS||n||r.hasCSS||(r.hasCSS=!!d(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),o||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return h.shivMethods?f(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+u().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(h,t.frag)}(e,r),e}!function(){try{var e=t.createElement("a");e.innerHTML="",n="hidden"in e,o=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){n=!0,o=!0}}();var h={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==r.shivCSS,supportsUnknownElements:o,shivMethods:!1!==r.shivMethods,type:"default",shivDocument:m,createElement:f,createDocumentFragment:function(e,n){if(e||(e=t),o)return e.createDocumentFragment();for(var r=(n=n||p(e)).frag.cloneNode(),a=0,i=u(),s=i.length;a+~])("+u().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),a="$1"+y+"\\:$2";o--;)(t=n[o]=n[o].split("}"))[t.length-1]=t[t.length-1].replace(r,a),n[o]=t.join("}");return n.join("{")}(c.reverse().join("")),n=function(e){for(var t,n=e.getElementsByTagName("*"),o=n.length,r=RegExp("^(?:"+u().join("|")+")$","i"),a=[];o--;)t=n[o],r.test(t.nodeName)&&a.push(t.applyElement(b(t)));return a}(e),t=d(e,c)}),a.attachEvent("onafterprint",function(){!function(e){for(var t=e.length;t--;)e[t].removeNode()}(n),clearTimeout(o._removeSheetTimer),o._removeSheetTimer=setTimeout(i,500)}),e.printShived=!0,e}h.type+=" print",h.shivPrint=x,x(t),"object"==typeof module&&module.exports&&(module.exports=h)}(void 0!==t?t:this,n);var w=function(){},S=function(){};function C(e,t,o,r){var a,i,s,c,l="modernizr",d=T("div"),f=function(){var e=n.body;return e||((e=T(p?"svg":"body")).fake=!0),e}();if(parseInt(o,10))for(;o--;)(s=T("div")).id=r?r[o]:l+(o+1),d.appendChild(s);return(a=T("style")).type="text/css",a.id="s"+l,(f.fake?f:d).appendChild(a),f.appendChild(d),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(n.createTextNode(e)),d.id=l,f.fake&&(f.style.background="",f.style.overflow="hidden",c=u.style.overflow,u.style.overflow="hidden",u.appendChild(f)),i=t(d,e),f.fake&&f.parentNode?(f.parentNode.removeChild(f),u.style.overflow=c,u.offsetHeight):d.parentNode.removeChild(d),!!i}function E(e,n,o){var r;if("getComputedStyle"in t){r=getComputedStyle.call(t,e,n);var a=t.console;if(null!==r)o&&(r=r.getPropertyValue(o));else if(a)a[a.error?"error":"log"].call(a,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else r=!n&&e.currentStyle&&e.currentStyle[o];return r}t.console&&(w=function(){var e=console.error?"error":"log";t.console[e].apply(t.console,Array.prototype.slice.call(arguments))},S=function(){var e=console.warn?"warn":"log";t.console[e].apply(t.console,Array.prototype.slice.call(arguments))}),a.load=function(){"yepnope"in t?(S("yepnope.js (aka Modernizr.load) is no longer included as part of Modernizr. yepnope appears to be available on the page, so we’ll use it to handle this call to Modernizr.load, but please update your code to use yepnope directly.\n See http://github.com/Modernizr/Modernizr/issues/1182 for more information."),t.yepnope.apply(t,[].slice.call(arguments,0))):w("yepnope.js (aka Modernizr.load) is no longer included as part of Modernizr. Get it from http://yepnopejs.com. See http://github.com/Modernizr/Modernizr/issues/1182 for more information.")};var P,k=(P=t.matchMedia||t.msMatchMedia)?function(e){var t=P(e);return t&&t.matches||!1}:function(e){var t=!1;return C("@media "+e+" { #modernizr { position: absolute; } }",function(e){t="absolute"===E(e,null,"position")}),t};function _(e,t){return!!~(""+e).indexOf(t)}a.mq=k;var z={elem:T("modernizr")};i._q.push(function(){delete z.elem});var N={style:z.elem.style};function M(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function $(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function j(e,n,r,a){if(a=!c(a,"undefined")&&a,!c(r,"undefined")){var i=function(e,n){var r=e.length;if("CSS"in t&&"supports"in t.CSS){for(;r--;)if(t.CSS.supports(M(e[r]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var a=[];r--;)a.push("("+M(e[r])+":"+n+")");return C("@supports ("+(a=a.join(" or "))+") { #modernizr { position: absolute; } }",function(e){return"absolute"===E(e,null,"position")})}return o}(e,r);if(!c(i,"undefined"))return i}for(var s,l,d,u,p,f=["modernizr","tspan","samp"];!N.style&&f.length;)s=!0,N.modElem=T(f.shift()),N.style=N.modElem.style;function m(){s&&(delete N.style,delete N.modElem)}for(d=e.length,l=0;l7)}), /*! { "name": "Geolocation API", "property": "geolocation", "caniuse": "geolocation", "tags": ["media"], "notes": [{ "name": "MDN Docs", "href": "https://developer.mozilla.org/en-US/docs/WebAPI/Using_geolocation" }], "polyfills": [ "joshuabell-polyfill", "webshims", "geo-location-javascript", "geolocation-api-polyfill" ] } !*/ i.addTest("geolocation","geolocation"in navigator), /*! { "name": "History API", "property": "history", "caniuse": "history", "tags": ["history"], "authors": ["Hay Kranen", "Alexander Farkas"], "notes": [{ "name": "W3C Spec", "href": "https://www.w3.org/TR/html51/browsers.html#the-history-interface" }, { "name": "MDN Docs", "href": "https://developer.mozilla.org/en-US/docs/Web/API/window.history" }], "polyfills": ["historyjs", "html5historyapi"] } !*/ i.addTest("history",function(){var e=navigator.userAgent;return!!e&&((-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")||"file:"===location.protocol)&&(t.history&&"pushState"in t.history))});var q=T("input"),I="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),V={}; /*! { "name": "Input attributes", "property": "input", "tags": ["forms"], "authors": ["Mike Taylor"], "notes": [{ "name": "WHATWG Spec", "href": "https://html.spec.whatwg.org/multipage/input.html#input-type-attr-summary" }], "knownBugs": ["Some blackberry devices report false positive for input.multiple"] } !*/i.input=function(e){for(var n=0,o=e.length;n=9,H||G)?i.addTest("fontface",!1):F('@font-face {font-family:"font";src:url("https://")}',function(e,t){var o=n.getElementById("smodernizr"),r=o.sheet||o.styleSheet,a=r?r.cssRules&&r.cssRules[0]?r.cssRules[0].cssText:r.cssText||"":"",s=/src/i.test(a)&&0===a.indexOf(t.split(" ")[0]);i.addTest("fontface",s)}), /*! { "name": "CSS Generated Content", "property": "generatedcontent", "tags": ["css"], "warnings": ["Android won't return correct height for anything below 7px #738"], "notes": [{ "name": "W3C Spec", "href": "https://www.w3.org/TR/css3-selectors/#gen-content" }, { "name": "MDN Docs on :before", "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/::before" }, { "name": "MDN Docs on :after", "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/::after" }] } !*/ F('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(e){i.addTest("generatedcontent",e.offsetHeight>=6)}), /*! { "name": "CSS Gradients", "caniuse": "css-gradients", "property": "cssgradients", "tags": ["css"], "knownBugs": ["False-positives on webOS (https://github.com/Modernizr/Modernizr/issues/202)"], "notes": [{ "name": "Webkit Gradient Syntax", "href": "https://webkit.org/blog/175/introducing-css-gradients/" }, { "name": "Linear Gradient Syntax", "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient" }, { "name": "W3C Spec", "href": "https://drafts.csswg.org/css-images-3/#gradients" }] } !*/ i.addTest("cssgradients",function(){for(var e,t="background-image:",n="",o=0,r=L.length-1;o-1}), /*! { "name": "CSS HSLA Colors", "caniuse": "css3-colors", "property": "hsla", "tags": ["css"] } !*/ i.addTest("hsla",function(){var e=T("a").style;return e.cssText="background-color:hsla(120,40%,100%,.5)",_(e.backgroundColor,"rgba")||_(e.backgroundColor,"hsla")}), /*! { "name": "CSS Multiple Backgrounds", "caniuse": "multibackgrounds", "property": "multiplebgs", "tags": ["css"] } !*/ i.addTest("multiplebgs",function(){var e=T("a").style;return e.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(e.background)}), /*! { "name": "CSS Opacity", "caniuse": "css-opacity", "property": "opacity", "tags": ["css"] } !*/ i.addTest("opacity",function(){var e=T("a").style;return e.cssText=L.join("opacity:.55;"),/^0.55$/.test(e.opacity)}), /*! { "name": "CSS Reflections", "caniuse": "css-reflections", "property": "cssreflections", "tags": ["css"] } !*/ i.addTest("cssreflections",B("boxReflect","above",!0)), /*! { "name": "CSS rgba", "caniuse": "css3-colors", "property": "rgba", "tags": ["css"], "notes": [{ "name": "CSSTricks Tutorial", "href": "https://css-tricks.com/rgba-browser-support/" }] } !*/ i.addTest("rgba",function(){var e=T("a").style;return e.cssText="background-color:rgba(150,255,150,.5)",(""+e.backgroundColor).indexOf("rgba")>-1}), /*! { "name": "CSS textshadow", "property": "textshadow", "caniuse": "css-textshadow", "tags": ["css"], "knownBugs": ["FF3.0 will false positive on this test"] } !*/ i.addTest("textshadow",D("textShadow","1px 1px")), /*! { "name": "CSS Transforms", "property": "csstransforms", "caniuse": "transforms2d", "tags": ["css"] } !*/ i.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&B("transform","scale(1)",!0)}); /*! { "name": "CSS Supports", "property": "supports", "caniuse": "css-featurequeries", "tags": ["css"], "builderAliases": ["css_supports"], "notes": [{ "name": "W3C Spec (The @supports rule)", "href": "https://dev.w3.org/csswg/css3-conditional/#at-supports" }, { "name": "Related Github Issue", "href": "https://github.com/Modernizr/Modernizr/issues/648" }, { "name": "W3C Spec (The CSSSupportsRule interface)", "href": "https://dev.w3.org/csswg/css3-conditional/#the-csssupportsrule-interface" }] } !*/ var Z="CSS"in t&&"supports"in t.CSS,K="supportsCSS"in t;i.addTest("supports",Z||K), /*! { "name": "CSS Transforms 3D", "property": "csstransforms3d", "caniuse": "transforms3d", "tags": ["css"], "warnings": [ "Chrome may occasionally fail this test on some systems; more info: https://bugs.chromium.org/p/chromium/issues/detail?id=129004" ] } !*/ i.addTest("csstransforms3d",function(){return!!B("perspective","1px",!0)}), /*! { "name": "CSS Transitions", "property": "csstransitions", "caniuse": "css-transitions", "tags": ["css"] } !*/ i.addTest("csstransitions",B("transition","all",!0)), /*! { "name": "Local Storage", "property": "localstorage", "caniuse": "namevalue-storage", "tags": ["storage"], "polyfills": [ "joshuabell-polyfill", "cupcake", "storagepolyfill", "amplifyjs", "yui-cacheoffline" ] } !*/ i.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}), /*! { "name": "Session Storage", "property": "sessionstorage", "tags": ["storage"], "polyfills": ["joshuabell-polyfill", "cupcake", "sessionstorage"] } !*/ i.addTest("sessionstorage",function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}), /*! { "name": "Web SQL Database", "property": "websqldatabase", "caniuse": "sql-storage", "tags": ["storage"] } !*/ i.addTest("websqldatabase","openDatabase"in t);var Q={}.toString; /*! { "name": "SVG clip paths", "property": "svgclippaths", "tags": ["svg"], "notes": [{ "name": "Demo", "href": "http://srufaculty.sru.edu/david.dailey/svg/newstuff/clipPath4.svg" }] } !*/i.addTest("svgclippaths",function(){return!!n.createElementNS&&/SVGClipPath/.test(Q.call(n.createElementNS("http://www.w3.org/2000/svg","clipPath")))}), /*! { "name": "Inline SVG", "property": "inlinesvg", "caniuse": "svg-html5", "tags": ["svg"], "notes": [{ "name": "Test page", "href": "https://paulirish.com/demo/inline-svg" }, { "name": "Test page and results", "href": "https://codepen.io/eltonmesquita/full/GgXbvo/" }], "polyfills": ["inline-svg-polyfill"], "knownBugs": ["False negative on some Chromia browsers."] } !*/ i.addTest("inlinesvg",function(){var e=T("div");return e.innerHTML="","http://www.w3.org/2000/svg"===("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)}), /*! { "name": "SVG SMIL animation", "property": "smil", "caniuse": "svg-smil", "tags": ["svg"], "notes": [{ "name": "W3C Spec", "href": "https://www.w3.org/AudioVideo/" }] } !*/ i.addTest("smil",function(){return!!n.createElementNS&&/SVGAnimate/.test(Q.call(n.createElementNS("http://www.w3.org/2000/svg","animate")))}), /*! { "name": "Web Workers", "property": "webworkers", "caniuse": "webworkers", "tags": ["performance", "workers"], "notes": [{ "name": "W3C Spec", "href": "https://www.w3.org/TR/workers/" }, { "name": "HTML5 Rocks Tutorial", "href": "https://www.html5rocks.com/en/tutorials/workers/basics/" }, { "name": "MDN Docs", "href": "https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers" }], "polyfills": ["fakeworker", "html5shims"] } !*/ i.addTest("webworkers","Worker"in t),function(){var e,t,n,o,a,l;for(var d in r)if(r.hasOwnProperty(d)){if(e=[],(t=r[d]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;na.intersectionRatio&&(d=!1):1>a.intersectionRatio&&(d=!1)),d&&(m.parents(".fusion-delayed-animation").length||(m.css("visibility","visible"),s=m.data("animationtype"),o=m.data("animationduration"),r=m.data("animationdelay"),m.addClass(s),o&&(m.css("animation-duration",o+"s"),c+=1e3*o),r&&(m.css("animation-delay",r+"s"),c+=1e3*r),c&&(u=m,setTimeout(function(){u.removeClass(s)},c))),e.unobserve(a.target)))})},t);n(this).each(function(){e.observe(this)}),window.awbAnimationObservers[i]=[this,e]}):n(".fusion-animated").each(function(){n(this).parents(".fusion-delayed-animation").length||n(this).css("visibility","visible")})}}(jQuery),jQuery(document).ready(function(){fusionSetAnimationData()}),jQuery(window).on("load",function(){jQuery("body").hasClass("fusion-builder-live")||setTimeout(function(){jQuery(window).initElementAnimations()},300)}),jQuery(window).on("CSSAnimations",{custom:!0},fusionSetAnimationData); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t} /*! * GSAP 3.12.7 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */var i,n,s,a,o,u,h,f,l,c,p,_,d,m,g,v,y,T={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},w={duration:.5,overwrite:!1,delay:0},x=1e8,b=1e-8,O=2*Math.PI,M=O/4,k=0,C=Math.sqrt,A=Math.cos,D=Math.sin,P=function(t){return"string"==typeof t},E=function(t){return"function"==typeof t},S=function(t){return"number"==typeof t},z=function(t){return void 0===t},R=function(t){return"object"==typeof t},F=function(t){return!1!==t},L=function(){return"undefined"!=typeof window},B=function(t){return E(t)||P(t)},I="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Y=Array.isArray,N=/(?:-?\.?\d|\.)+/gi,U=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,X=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,q=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,j=/[+-]=-?[.\d]+/,V=/[^,'"\[\]\s]+/gi,Q=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,W={},G={},H=function(t){return(G=Ot(t,W))&&Mr},Z=function(t,e){},$=function(t,e){return!e&&void 0},J=function(t,e){return t&&(W[t]=e)&&G&&(G[t]=e)||W},K=function(){return 0},tt={suppressEvents:!0,isStart:!0,kill:!1},et={suppressEvents:!0,kill:!1},rt={suppressEvents:!0},it={},nt=[],st={},at={},ot={},ut=30,ht=[],ft="",lt=function(t){var e,r,i=t[0];if(R(i)||E(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=ht.length;r--&&!ht[r].targetTest(i););e=ht[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Ye(t[r],e)))||t.splice(r,1);return t},ct=function(t){return t._gsap||lt(re(t))[0]._gsap},pt=function(t,e,r){return(r=t[e])&&E(r)?t[e]():z(r)&&t.getAttribute&&t.getAttribute(e)||r},_t=function(t,e){return(t=t.split(",")).forEach(e)||t},dt=function(t){return Math.round(1e5*t)/1e5||0},mt=function(t){return Math.round(1e7*t)/1e7||0},gt=function(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i},vt=function(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++is;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t,e},Dt=function(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null},Pt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Et=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},St=function(t,e,r,i){return t._startAt&&(n?t._startAt.revert(et):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},zt=function t(e){return!e||e._ts&&t(e.parent)},Rt=function(t){return t._repeat?Ft(t._tTime,t=t.duration()+t._rDelay)*t:0},Ft=function(t,e){var r=Math.floor(t=mt(t/e));return t&&r===t?r-1:r},Lt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Bt=function(t){return t._end=mt(t._start+(t._tDur/Math.abs(t._ts||t._rts||b)||0))},It=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=mt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Bt(t),r._dirty||Et(r,t)),t},Yt=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._startb)&&e.render(r,!0)),Et(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},Nt=function(t,e,r,i){return e.parent&&Pt(e),e._start=mt((S(r)?r:r||t!==a?Gt(t,r,e):t._time)+e._delay),e._end=mt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),At(t,e,"_first","_last",t._sort?"_start":0),jt(e)||(t._recent=e),i||Yt(t,e),t._ts<0&&It(t,t._tTime),t},Ut=function(t,e){return W.ScrollTrigger?W.ScrollTrigger.create(e,t):void 0},Xt=function(t,e,r,i,s){return We(t,e,s),t._initted?!r&&t._pt&&!n&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&l!==ke.frame?(nt.push(t),t._lazy=[s,i],1):void 0:1},qt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},jt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Vt=function(t,e,r,i){var n=t._repeat,s=mt(e)||0,a=t._tTime/t._tDur;return a&&!i&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:mt(s*(n+1)+t._rDelay*n):s,a>0&&!i&&It(t,t._tTime=t._tDur*a),t.parent&&Bt(t),r||Et(t.parent,t),t},Qt=function(t){return t instanceof Ue?Et(t):Vt(t,t._dur)},Wt={_start:0,endTime:K,totalDuration:K},Gt=function t(e,r,i){var n,s,a,o=e.labels,u=e._recent||Wt,h=e.duration()>=x?u.endTime(!1):e._dur;return P(r)&&(isNaN(r)||r in o)?(s=r.charAt(0),a="%"===r.substr(-1),n=r.indexOf("="),"<"===s||">"===s?(n>=0&&(r=r.replace(/=/,"")),("<"===s?u._start:u.endTime(u._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(n<0?u:i).totalDuration()/100:1)):n<0?(r in o||(o[r]=h),o[r]):(s=parseFloat(r.charAt(n-1)+r.substr(n+1)),a&&i&&(s=s/100*(Y(i)?i[0]:i).totalDuration()),n>1?t(e,r.substr(0,n-1),i)+s:h+s)):null==r?h:+r},Ht=function(t,e,r){var i,n,s=S(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=r,t){for(i=o,n=r;n&&!("immediateRender"in i);)i=n.vars.defaults||{},n=F(n.vars.inherit)&&n.parent;o.immediateRender=F(i.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new Je(e[0],o,e[a+1])},Zt=function(t,e){return t||0===t?e(t):e},$t=function(t,e,r){return re?e:r},Jt=function(t,e){return P(t)&&(e=Q.exec(t))?e[1]:""},Kt=[].slice,te=function(t,e){return t&&R(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&R(t[0]))&&!t.nodeType&&t!==o},ee=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var i;return P(t)&&!e||te(t,1)?(i=r).push.apply(i,re(t)):r.push(t)})||r},re=function(t,e,r){return s&&!e&&s.selector?s.selector(t):!P(t)||r||!u&&Ce()?Y(t)?ee(t,r):te(t)?Kt.call(t,0):t?[t]:[]:Kt.call((e||h).querySelectorAll(t),0)},ie=function(t){return t=re(t)[0]||$()||{},function(e){var r=t.current||t.nativeElement||t;return re(e,r.querySelectorAll?r:r===t?$()||h.createElement("div"):t)}},ne=function(t){return t.sort(function(){return.5-Math.random()})},se=function(t){if(E(t))return t;var e=R(t)?t:{each:t},r=Re(e.ease),i=e.from||0,n=parseFloat(e.base)||0,s={},a=i>0&&i<1,o=isNaN(i)||a,u=e.axis,h=i,f=i;return P(i)?h=f={center:.5,edges:.5,end:1}[i]||0:!a&&o&&(h=i[0],f=i[1]),function(t,a,l){var c,p,_,d,m,g,v,y,T,w=(l||e).length,b=s[w];if(!b){if(!(T="auto"===e.grid?0:(e.grid||[1,x])[1])){for(v=-x;v<(v=l[T++].getBoundingClientRect().left)&&Tv&&(v=m),mw?w-1:u?"y"===u?w/T:T:Math.max(T,w/T))||0)*("edges"===i?-1:1),b.b=w<0?n-w:n,b.u=Jt(e.amount||e.each)||0,r=r&&w<0?Se(r):r}return w=(b[t]-b.min)/b.max||0,mt(b.b+(r?r(w):w)*b.v)+b.u}},ae=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var i=mt(Math.round(parseFloat(r)/t)*t*e);return(i-i%1)/e+(S(r)?0:Jt(r))}},oe=function(t,e){var r,i,n=Y(t);return!n&&R(t)&&(r=n=t.radius||x,t.values?(t=re(t.values),(i=!S(t[0]))&&(r*=r)):t=ae(t.increment)),Zt(e,n?E(t)?function(e){return i=t(e),Math.abs(i-e)<=r?i:e}:function(e){for(var n,s,a=parseFloat(i?e.x:e),o=parseFloat(i?e.y:0),u=x,h=0,f=t.length;f--;)(n=i?(n=t[f].x-a)*n+(s=t[f].y-o)*s:Math.abs(t[f]-a))(n=Math.abs(n))&&(s=i,o=n);return s},pe=function(t,e,r){var i,n,a,o=t.vars,u=o[e],h=s,f=t._ctx;if(u)return i=o[e+"Params"],n=o.callbackScope||t,r&&nt.length&&yt(),f&&(s=f),a=i?u.apply(n,i):u.call(n),s=h,a},_e=function(t){return Pt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!n),t.progress()<1&&pe(t,"onInterrupt"),t},de=[],me=function(t){if(t)if(t=!t.name&&t.default||t,L()||t.headless){var e=t.name,r=E(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:K,render:or,add:Ve,kill:hr,modifier:ur,rawVars:0},s={targetTest:0,get:0,getSetter:ir,aliases:{},register:0};if(Ce(),t!==i){if(at[e])return;bt(i,bt(kt(t,n),s)),Ot(i.prototype,Ot(n,kt(t,s))),at[i.prop=e]=i,t.targetTest&&(ht.push(i),it[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}J(e,i),t.register&&t.register(Mr,i,cr)}else de.push(t)},ge=255,ve={aqua:[0,ge,ge],lime:[0,ge,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ge],navy:[0,0,128],white:[ge,ge,ge],olive:[128,128,0],yellow:[ge,ge,0],orange:[ge,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ge,0,0],pink:[ge,192,203],cyan:[0,ge,ge],transparent:[ge,ge,ge,0]},ye=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*ge+.5|0},Te=function(t,e,r){var i,n,s,a,o,u,h,f,l,c,p=t?S(t)?[t>>16,t>>8&ge,t&ge]:0:ve.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ve[t])p=ve[t];else if("#"===t.charAt(0)){if(t.length<6&&(i=t.charAt(1),n=t.charAt(2),s=t.charAt(3),t="#"+i+i+n+n+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&ge,p&ge,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&ge,t&ge]}else if("hsl"===t.substr(0,3))if(p=c=t.match(N),e){if(~t.indexOf("="))return p=t.match(U),r&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,o=+p[1]/100,i=2*(u=+p[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),p.length>3&&(p[3]*=1),p[0]=ye(a+1/3,i,n),p[1]=ye(a,i,n),p[2]=ye(a-1/3,i,n);else p=t.match(N)||ve.transparent;p=p.map(Number)}return e&&!c&&(i=p[0]/ge,n=p[1]/ge,s=p[2]/ge,u=((h=Math.max(i,n,s))+(f=Math.min(i,n,s)))/2,h===f?a=o=0:(l=h-f,o=u>.5?l/(2-h-f):l/(h+f),a=h===i?(n-s)/l+(nl||y<0)&&(_+=y-c),((u=(f=(d+=y)-_)-g)>0||T)&&(p=++i.frame,n=f-1e3*i.time,i.time=f/=1e3,g+=u+(u>=m?4:m-u),h=1),T||(t=e(r)),h)for(s=0;s=e&&s--},_listeners:v}}(),Ce=function(){return!p&&ke.wake()},Ae={},De=/^[\d.\-M][\d.\-,\s]/,Pe=/["']/g,Ee=function(t){for(var e,r,i,n={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o1&&a.config?a.config.apply(null,~t.indexOf("{")?[Ee(s[1])]:(e=t,r=e.indexOf("(")+1,i=e.indexOf(")"),n=e.indexOf("(",r),e.substring(r,~n&&n=1?r:1,s=(i||(e?.3:.45))/(r<1?r:1),a=s/O*(Math.asin(1/n)||0),o=function(t){return 1===t?1:n*Math.pow(2,-10*t)*D((t-a)*s)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Le(o);return s=O/s,u.config=function(r,i){return t(e,r,i)},u},Ie=function t(e,r){void 0===r&&(r=1.70158);var i=function(t){return t?--t*t*((r+1)*t+r)+1:0},n="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:Le(i);return n.config=function(r){return t(e,r)},n};_t("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Fe(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),Ae.Linear.easeNone=Ae.none=Ae.Linear.easeIn,Fe("Elastic",Be("in"),Be("out"),Be()),_=7.5625,g=2*(m=1/(d=2.75)),v=2.5*m,Fe("Bounce",function(t){return 1-y(1-t)},y=function(t){return t0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Vt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ce(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(It(this,t),!r._dp||r.parent||Yt(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&Nt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===b||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Tt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Rt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Rt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Ft(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?Lt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime($t(-Math.abs(this._delay),this._tDur,r),!1!==e),Bt(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ce(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==b&&(this._tTime-=b)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Nt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(F(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Lt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=rt);var e=n;return n=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),n=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Qt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Qt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Gt(this,t),F(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,F(e)),this._dur||(this._zTime=-1e-8),this},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t1?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},e.then=function(t){var e=this;return new Promise(function(r){var i=E(t)?t:xt,n=function(){var t=e.then;e.then=null,E(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),r(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?n():e._prom=n})},e.kill=function(){_e(this)},t}();bt(Ne.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ue=function(t){function i(e,i){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=F(e.sortChildren),a&&Nt(e.parent||a,r(n),i),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&Ut(r(n),e.scrollTrigger),n}e(i,t);var s=i.prototype;return s.to=function(t,e,r){return Ht(0,arguments,this),this},s.from=function(t,e,r){return Ht(1,arguments,this),this},s.fromTo=function(t,e,r,i){return Ht(2,arguments,this),this},s.set=function(t,e,r){return e.duration=0,e.parent=this,Ct(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Je(t,e,Gt(this,r),1),this},s.call=function(t,e,r){return Nt(this,Je.delayedCall(0,t,e),r)},s.staggerTo=function(t,e,r,i,n,s,a){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new Je(t,r,Gt(this,n)),this},s.staggerFrom=function(t,e,r,i,n,s,a){return r.runBackwards=1,Ct(r).immediateRender=F(r.immediateRender),this.staggerTo(t,e,r,i,n,s,a)},s.staggerFromTo=function(t,e,r,i,n,s,a,o){return i.startAt=r,Ct(i).immediateRender=F(i.immediateRender),this.staggerTo(t,e,i,n,s,a,o)},s.render=function(t,e,r){var i,s,o,u,h,f,l,c,p,_,d,m,g=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,T=t<=0?0:mt(t),w=this._zTime<0!=t<0&&(this._initted||!y);if(this!==a&&T>v&&t>=0&&(T=v),T!==this._tTime||r||w){if(g!==this._time&&y&&(T+=this._time-g,t+=this._time-g),i=T,p=this._start,f=!(c=this._ts),w&&(y||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,h=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*h+t,e,r);if(i=mt(T%h),T===v?(u=this._repeat,i=y):((u=~~(_=mt(T/h)))&&u===_&&(i=y,u--),i>y&&(i=y)),_=Ft(this._tTime,h),!g&&this._tTime&&_!==u&&this._tTime-_*h-this._dur<=0&&(_=u),d&&1&u&&(i=y-i,m=1),u!==_&&!this._lock){var x=d&&1&_,O=x===(d&&1&u);if(u<_&&(x=!x),g=x?0:T%y?y:T,this._lock=1,this.render(g||(m?0:mt(u*h)),e,!y)._lock=0,this._tTime=T,!e&&this.parent&&pe(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1),g&&g!==this._time||f!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,O&&(this._lock=2,g=x?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!f)return this;ze(this,m)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=function(t,e,r){var i;if(r>e)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start=g&&t>=0)for(s=this._first;s;){if(o=s._next,(s._act||i>=s._start)&&s._ts&&l!==s){if(s.parent!==this)return this.render(t,e,r);if(s.render(s._ts>0?(i-s._start)*s._ts:(s._dirty?s.totalDuration():s._tDur)+(i-s._start)*s._ts,e,r),i!==this._time||!this._ts&&!f){l=0,o&&(T+=this._zTime=-1e-8);break}}s=o}else{s=this._last;for(var M=t<0?t:i;s;){if(o=s._prev,(s._act||M<=s._end)&&s._ts&&l!==s){if(s.parent!==this)return this.render(t,e,r);if(s.render(s._ts>0?(M-s._start)*s._ts:(s._dirty?s.totalDuration():s._tDur)+(M-s._start)*s._ts,e,r||n&&(s._initted||s._startAt)),i!==this._time||!this._ts&&!f){l=0,o&&(T+=this._zTime=M?-1e-8:b);break}}s=o}}if(l&&!e&&(this.pause(),l.render(i>=g?0:-1e-8)._zTime=i>=g?1:-1,this._ts))return this._start=p,Bt(this),this.render(t,e,r);this._onUpdate&&!e&&pe(this,"onUpdate",!0),(T===v&&this._tTime>=this.totalDuration()||!T&&g)&&(p!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!y)&&(T===v&&this._ts>0||!T&&this._ts<0)&&Pt(this,1),e||t<0&&!g||!T&&!g&&v||(pe(this,T===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(T0)&&this._prom())))}return this},s.add=function(t,e){var r=this;if(S(e)||(e=Gt(this,e,t)),!(t instanceof Ne)){if(Y(t))return t.forEach(function(t){return r.add(t,e)}),this;if(P(t))return this.addLabel(t,e);if(!E(t))return this;t=Je.delayedCall(0,t)}return this!==t?Nt(this,t,e):this},s.getChildren=function(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-x);for(var n=[],s=this._first;s;)s._start>=i&&(s instanceof Je?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},s.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},s.remove=function(t){return P(t)?this.removeLabel(t):E(t)?this.killTweensOf(t):(t.parent===this&&Dt(this,t),t===this._recent&&(this._recent=this._last),Et(this))},s.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=mt(ke.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},s.addLabel=function(t,e){return this.labels[t]=Gt(this,e),this},s.removeLabel=function(t){return delete this.labels[t],this},s.addPause=function(t,e,r){var i=Je.delayedCall(0,e||K,r);return i.data="isPause",this._hasPause=1,Nt(this,i,Gt(this,t))},s.removePause=function(t){var e=this._first;for(t=Gt(this,t);e;)e._start===t&&"isPause"===e.data&&Pt(e),e=e._next},s.killTweensOf=function(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)Xe!==i[n]&&i[n].kill(t,e);return this},s.getTweensOf=function(t,e){for(var r,i=[],n=re(t),s=this._first,a=S(e);s;)s instanceof Je?vt(s._targets,n)&&(a?(!Xe||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&i.push(s):(r=s.getTweensOf(n,e)).length&&i.push.apply(i,r),s=s._next;return i},s.tweenTo=function(t,e){e=e||{};var r,i=this,n=Gt(i,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,h=s.immediateRender,f=Je.to(i,bt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||b,onStart:function(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());f._dur!==t&&Vt(f,t,0,1).render(f._time,!0,!0),r=1}o&&o.apply(f,u||[])}},e));return h?f.render(0):f},s.tweenFromTo=function(t,e,r){return this.tweenTo(e,bt({startAt:{time:Gt(this,t)}},r))},s.recent=function(){return this._recent},s.nextLabel=function(t){return void 0===t&&(t=this._time),ce(this,Gt(this,t))},s.previousLabel=function(t){return void 0===t&&(t=this._time),ce(this,Gt(this,t),1)},s.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+b)},s.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,s=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in s)s[i]>=r&&(s[i]+=t);return Et(this)},s.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},s.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Et(this)},s.totalDuration=function(t){var e,r,i,n=0,s=this,o=s._last,u=x;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(i=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(r=o._start)>u&&s._sort&&o._ts&&!s._lock?(s._lock=1,Nt(s,o,r-o._delay,1)._lock=0):u=r,r<0&&o._ts&&(n-=r,(!i&&!s._dp||i&&i.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-Infinity),u=0),o._end>n&&o._ts&&(n=o._end),o=e;Vt(s,s===a&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},i.updateRoot=function(t){if(a._ts&&(Tt(a,Lt(t,a)),l=ke.frame),ke.frame>=ut){ut+=T.autoSleep||120;var e=a._first;if((!e||!e._ts)&&T.autoSleep&&ke._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||ke.sleep()}}},i}(Ne);bt(Ue.prototype,{_lock:0,_hasPause:0,_forcing:0});var Xe,qe,je=function(t,e,r,i,n,s,a){var o,u,h,f,l,c,p,_,d=new cr(this._pt,t,e,0,1,ar,null,n),m=0,g=0;for(d.b=r,d.e=i,r+="",(p=~(i+="").indexOf("random("))&&(i=fe(i)),s&&(s(_=[r,i],t,e),r=_[0],i=_[1]),u=r.match(q)||[];o=q.exec(i);)f=o[0],l=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===l.substr(-5)&&(h=1),f!==u[g++]&&(c=parseFloat(u[g-1])||0,d._pt={_next:d._pt,p:l||1===g?l:",",s:c,c:"="===f.charAt(1)?gt(c,f)-c:parseFloat(f)-c,m:h&&h<4?Math.round:0},m=q.lastIndex);return d.c=m")}),h.duration();else{for(p in l={},O)"ease"===p||"easeEach"===p||Ge(p,O[p],l,O.easeEach);for(p in l)for(P=l[p].sort(function(t,e){return t.t-e.t}),L=0,f=0;f_-b&&!m?_:td&&(i=d),(h=this._yoyo&&1&a)&&(c=this._yEase,i=d-i),u=Ft(this._tTime,o),i===p&&!r&&this._initted&&a===u)return this._tTime=g,this;a!==u&&(l&&this._yEase&&ze(l,h),this.vars.repeatRefresh&&!h&&!this._lock&&i!==o&&this._initted&&(this._lock=r=1,this.render(mt(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(Xt(this,m?t:i,r,e,g))return this._tTime=0,this;if(!(p===this._time||r&&this.vars.repeatRefresh&&a!==u))return this;if(d!==this._dur)return this.render(t,e,r)}if(this._tTime=g,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=f=(c||this._ease)(i/d),this._from&&(this.ratio=f=1-f),i&&!p&&!e&&!a&&(pe(this,"onStart"),this._tTime!==g))return this;for(s=this._pt;s;)s.r(f,s.d),s=s._next;l&&l.render(t<0?t:l._dur*l._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&St(this,t,0,r),pe(this,"onUpdate")),this._repeat&&a!==u&&this.vars.onRepeat&&!e&&this.parent&&pe(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&St(this,t,0,!0),(t||!d)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Pt(this,1),e||m&&!p||!(g||p||h)||(pe(this,g===_?"onComplete":"onReverseComplete",!0),this._prom&&!(g<_&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,i){var s,a,o,u=t.ratio,h=e<0||!e&&(!t._start&&qt(t)&&(t._initted||!jt(t))||(t._ts<0||t._dp._ts<0)&&!jt(t))?0:1,f=t._rDelay,l=0;if(f&&t._repeat&&(l=$t(0,t._tDur,e),a=Ft(l,f),t._yoyo&&1&a&&(h=1-h),a!==Ft(t._tTime,f)&&(u=1-h,t.vars.repeatRefresh&&t._initted&&t.invalidate())),h!==u||n||i||t._zTime===b||!e&&t._zTime){if(!t._initted&&Xt(t,e,i,r,l))return;for(o=t._zTime,t._zTime=e||(r?b:0),r||(r=e&&!o),t.ratio=h,t._from&&(h=1-h),t._time=0,t._tTime=l,s=t._pt;s;)s.r(h,s.d),s=s._next;e<0&&St(t,e,0,!0),t._onUpdate&&!r&&pe(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&pe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===h&&(h&&Pt(t,1),r||n||(pe(t,h?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},o.targets=function(){return this._targets},o.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},o.resetTo=function(t,e,r,i,n){p||ke.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||We(this,s),function(t,e,r,i,n,s,a,o){var u,h,f,l,c=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!c)for(c=t._ptCache[e]=[],f=t._ptLookup,l=t._targets.length;l--;){if((u=f[l][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return qe=1,t.vars[e]="+=0",We(t,a),qe=0,o?$():1;c.push(u)}for(l=c.length;l--;)(u=(h=c[l])._pt||h).s=!i&&0!==i||n?u.s+(i||0)+s*u.c:i,u.c=r-u.s,h.e&&(h.e=dt(r)+Jt(h.e)),h.b&&(h.b=u.s+Jt(h.b))}(this,t,e,r,i,this._ease(s/this._dur),s,n)?this.resetTo(t,e,r,i,1):(It(this,0),this.parent||At(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},o.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?_e(this):this.scrollTrigger&&this.scrollTrigger.kill(!!n),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Xe&&!0!==Xe.vars.overwrite)._first||_e(this),this.parent&&r!==this.timeline.totalDuration()&&Vt(this,this._dur*this.timeline._tDur/r,0,1),this}var i,s,a,o,u,h,f,l=this._targets,c=t?re(t):l,p=this._ptLookup,_=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(l,c))return"all"===e&&(this._pt=0),_e(this);for(i=this._op=this._op||[],"all"!==e&&(P(e)&&(u={},_t(e,function(t){return u[t]=1}),e=u),e=function(t,e){var r,i,n,s,a=t[0]?ct(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(i in r=Ot({},e),o)if(i in r)for(n=(s=o[i].split(",")).length;n--;)r[s[n]]=r[i];return r}(l,e)),f=l.length;f--;)if(~c.indexOf(l[f]))for(u in s=p[f],"all"===e?(i[f]=e,o=s,a={}):(a=i[f]=i[f]||{},o=e),o)(h=s&&s[u])&&("kill"in h.d&&!0!==h.d.kill(u)||Dt(this,h,"_pt"),delete s[u]),"all"!==a&&(a[u]=1);return this._initted&&!this._pt&&_&&_e(this),this},s.to=function(t,e){return new s(t,e,arguments[2])},s.from=function(t,e){return Ht(1,arguments)},s.delayedCall=function(t,e,r,i){return new s(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},s.fromTo=function(t,e,r){return Ht(2,arguments)},s.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new s(t,e)},s.killTweensOf=function(t,e,r){return a.killTweensOf(t,e,r)},s}(Ne);bt(Je.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),_t("staggerTo,staggerFrom,staggerFromTo",function(t){Je[t]=function(){var e=new Ue,r=Kt.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var Ke=function(t,e,r){return t[e]=r},tr=function(t,e,r){return t[e](r)},er=function(t,e,r,i){return t[e](i.fp,r)},rr=function(t,e,r){return t.setAttribute(e,r)},ir=function(t,e){return E(t[e])?tr:z(t[e])&&t.setAttribute?rr:Ke},nr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},sr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ar=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},or=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},ur=function(t,e,r,i){for(var n,s=this._pt;s;)n=s._next,s.p===i&&s.modifier(t,e,r),s=n},hr=function(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?Dt(this,i,"_pt"):i.dep||(e=1),i=r;return!e},fr=function(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)},lr=function(t){for(var e,r,i,n,s=t._pt;s;){for(e=s._next,r=i;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:n)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:n=s,s=e}t._pt=i},cr=function(){function t(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||nr,this.d=a||this,this.set=o||Ke,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=fr,this.m=t,this.mt=r,this.tween=e},t}();_t(ft+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return it[t]=1}),W.TweenMax=W.TweenLite=Je,W.TimelineLite=W.TimelineMax=Ue,a=new Ue({sortChildren:!1,defaults:w,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),T.stringFilter=Me;var pr=[],_r={},dr=[],mr=0,gr=0,vr=function(t){return(_r[t]||dr).map(function(t){return t()})},yr=function(){var t=Date.now(),e=[];t-mr>2&&(vr("matchMediaInit"),pr.forEach(function(t){var r,i,n,s,a=t.queries,u=t.conditions;for(i in a)(r=o.matchMedia(a[i]).matches)&&(n=1),r!==u[i]&&(u[i]=r,s=1);s&&(t.revert(),n&&e.push(t))}),vr("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),mr=t,vr("matchMedia"))},Tr=function(){function t(t,e){this.selector=e&&ie(e),this.data=[],this._r=[],this.isReverted=!1,this.id=gr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){E(t)&&(r=e,e=t,t=E);var i=this,n=function(){var t,n=s,a=i.selector;return n&&n!==i&&n.data.push(i),r&&(i.selector=ie(r)),s=i,t=e.apply(i,arguments),E(t)&&i._r.push(t),s=n,i.selector=a,i.isReverted=!1,t};return i.last=n,t===E?n(i,function(t){return i.add(null,t)}):t?i[t]=n:n},e.ignore=function(t){var e=s;s=null,t(this),s=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof Je&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)}),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t?function(){for(var e,i=r.getTweens(),n=r.data.length;n--;)"isFlip"===(e=r.data[n]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach(function(t){return i.splice(i.indexOf(t),1)}));for(i.map(function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}}).sort(function(t,e){return e.g-t.g||-1/0}).forEach(function(e){return e.t.revert(t)}),n=r.data.length;n--;)(e=r.data[n])instanceof Ue?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof Je)&&e.revert&&e.revert(t);r._r.forEach(function(e){return e(t,r)}),r.isReverted=!0}():this.data.forEach(function(t){return t.kill&&t.kill()}),this.clear(),e)for(var i=pr.length;i--;)pr[i].id===this.id&&pr.splice(i,1)},e.revert=function(t){this.kill(t||{})},t}(),wr=function(){function t(t){this.contexts=[],this.scope=t,s&&s.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){R(t)||(t={matches:t});var i,n,a,u=new Tr(0,r||this.scope),h=u.conditions={};for(n in s&&!u.selector&&(u.selector=s.selector),this.contexts.push(u),e=u.add("onMatch",e),u.queries=t,t)"all"===n?a=1:(i=o.matchMedia(t[n]))&&(pr.indexOf(u)<0&&pr.push(u),(h[n]=i.matches)&&(a=1),i.addListener?i.addListener(yr):i.addEventListener("change",yr));return a&&e(u,function(t){return u.add(null,t)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(e){return e.kill(t,!0)})},t}(),xr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r1){var i=t.map(function(t){return Mr.quickSetter(t,e,r)}),n=i.length;return function(t){for(var e=n;e--;)i[e](t)}}t=t[0]||{};var s=at[e],a=ct(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var i=new s;c._pt=0,i.init(t,r?e+r:e,c,0,[t]),i.render(1,i),c._pt&&or(1,c)}:a.set(t,o);return s?u:function(e){return u(t,o,r?e+r:e,a,1)}},quickTo:function(t,e,r){var i,n=Mr.to(t,bt(((i={})[e]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(t,r,i){return n.resetTo(e,t,r,i)};return s.tween=n,s},isTweening:function(t){return a.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Re(t.ease,w.ease)),Mt(w,t||{})},config:function(t){return Mt(T,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,i=t.plugins,n=t.defaults,s=t.extendTimeline;(i||"").split(",").forEach(function(t){return t&&!at[t]&&!W[t]&&$()}),ot[e]=function(t,e,i){return r(re(t),bt(e||{},n),i)},s&&(Ue.prototype[e]=function(t,r,i){return this.add(ot[e](t,R(r)?r:(i=r)&&{},this),i)})},registerEase:function(t,e){Ae[t]=Re(e)},parseEase:function(t,e){return arguments.length?Re(t,e):Ae},getById:function(t){return a.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,i,n=new Ue(t);for(n.smoothChildTiming=F(t.smoothChildTiming),a.remove(n),n._dp=0,n._time=n._tTime=a._time,r=a._first;r;)i=r._next,!e&&!r._dur&&r instanceof Je&&r.vars.onComplete===r._targets[0]||Nt(n,r,r._start-r._delay),r=i;return Nt(a,n,0),n},context:function(t,e){return t?new Tr(t,e):s},matchMedia:function(t){return new wr(t)},matchMediaRefresh:function(){return pr.forEach(function(t){var e,r,i=t.conditions;for(r in i)i[r]&&(i[r]=!1,e=1);e&&t.revert()})||yr()},addEventListener:function(t,e){var r=_r[t]||(_r[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=_r[t],i=r&&r.indexOf(e);i>=0&&r.splice(i,1)},utils:{wrap:function t(e,r,i){var n=r-e;return Y(e)?he(e,t(0,e.length),r):Zt(i,function(t){return(n+(t-e)%n)%n+e})},wrapYoyo:function t(e,r,i){var n=r-e,s=2*n;return Y(e)?he(e,t(0,e.length-1),r):Zt(i,function(t){return e+((t=(s+(t-e)%s)%s||0)>n?s-t:t)})},distribute:se,random:ue,snap:oe,normalize:function(t,e,r){return le(t,e,0,1,r)},getUnit:Jt,clamp:function(t,e,r){return Zt(r,function(r){return $t(t,e,r)})},splitColor:Te,toArray:re,selector:ie,mapRange:le,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r=0)return;a.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(yi,r,"")),e=vi}(s||r)&&this.props.push(e,r,s[e])},wi=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},xi=function(){var t,e,r=this.props,i=this.target,n=i.style,s=i._gsap;for(t=0;t=0?ki[n]:"")+t},Ai=function(){"undefined"!=typeof window&&window.document&&(kr=window,Cr=kr.document,Ar=Cr.documentElement,Pr=Oi("div")||{style:{}},Oi("div"),vi=Ci(vi),yi=vi+"Origin",Pr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",zr=!!Ci("perspective"),Sr=Mr.core.reverting,Dr=1)},Di=function(t){var e,r=t.ownerSVGElement,i=Oi("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=t.cloneNode(!0);n.style.display="block",i.appendChild(n),Ar.appendChild(i);try{e=n.getBBox()}catch(t){}return i.removeChild(n),Ar.removeChild(i),e},Pi=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Ei=function(t){var e,r;try{e=t.getBBox()}catch(i){e=Di(t),r=1}return e&&(e.width||e.height)||r||(e=Di(t)),!e||e.width||e.x||e.y?e:{x:+Pi(t,["x","cx","x1"])||0,y:+Pi(t,["y","cy","y1"])||0,width:0,height:0}},Si=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Ei(t))},zi=function(t,e){if(e){var r,i=t.style;e in Jr&&e!==yi&&(e=vi),i.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),i.removeProperty("--"===r?e:e.replace(ri,"-$1").toLowerCase())):i.removeAttribute(e)}},Ri=function(t,e,r,i,n,s){var a=new cr(t._pt,e,r,0,1,s?li:fi);return t._pt=a,a.b=i,a.e=n,t._props.push(r),a},Fi={deg:1,rad:1,turn:1},Li={grid:1,flex:1},Bi=function t(e,r,i,n){var s,a,o,u,h=parseFloat(i)||0,f=(i+"").trim().substr((h+"").length)||"px",l=Pr.style,c=ii.test(r),p="svg"===e.tagName.toLowerCase(),_=(p?"client":"offset")+(c?"Width":"Height"),d=100,m="px"===n,g="%"===n;if(n===f||!h||Fi[n]||Fi[f])return h;if("px"!==f&&!m&&(h=t(e,r,i,"px")),u=e.getCTM&&Si(e),(g||"%"===f)&&(Jr[r]||~r.indexOf("adius")))return s=u?e.getBBox()[c?"width":"height"]:e[_],dt(g?h/s*d:h/100*s);if(l[c?"width":"height"]=d+(m?f:n),a="rem"!==n&&~r.indexOf("adius")||"em"===n&&e.appendChild&&!p?e:e.parentNode,u&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Cr&&a.appendChild||(a=Cr.body),(o=a._gsap)&&g&&o.width&&c&&o.time===ke.time&&!o.uncache)return dt(h/o.width*d);if(!g||"height"!==r&&"width"!==r)(g||"%"===f)&&!Li[Mi(a,"display")]&&(l.position=Mi(e,"position")),a===e&&(l.position="static"),a.appendChild(Pr),s=Pr[_],a.removeChild(Pr),l.position="absolute";else{var v=e.style[r];e.style[r]=d+n,s=e[_],v?e.style[r]=v:zi(e,r)}return c&&g&&((o=ct(a)).time=ke.time,o.width=a[_]),dt(m?s*h/d:s&&h?d/s*h:0)},Ii=function(t,e,r,i){var n;return Dr||Ai(),e in si&&"transform"!==e&&~(e=si[e]).indexOf(",")&&(e=e.split(",")[0]),Jr[e]&&"transform"!==e?(n=Zi(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:$i(Mi(t,yi))+" "+n.zOrigin+"px"):(!(n=t.style[e])||"auto"===n||i||~(n+"").indexOf("calc("))&&(n=qi[e]&&qi[e](t,e,r)||Mi(t,e)||pt(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?Bi(t,e,n,r)+r:n},Yi=function(t,e,r,i){if(!r||"none"===r){var n=Ci(e,t,1),s=n&&Mi(t,n,1);s&&s!==r?(e=n,r=s):"borderColor"===e&&(r=Mi(t,"borderTopColor"))}var a,o,u,h,f,l,c,p,_,d,m,g=new cr(this._pt,t.style,e,0,1,ar),v=0,y=0;if(g.b=r,g.e=i,r+="","auto"===(i+="")&&(l=t.style[e],t.style[e]=i,i=Mi(t,e)||i,l?t.style[e]=l:zi(t,e)),Me(a=[r,i]),i=a[1],u=(r=a[0]).match(X)||[],(i.match(X)||[]).length){for(;o=X.exec(i);)c=o[0],_=i.substring(v,o.index),f?f=(f+1)%5:"rgba("!==_.substr(-5)&&"hsla("!==_.substr(-5)||(f=1),c!==(l=u[y++]||"")&&(h=parseFloat(l)||0,m=l.substr((h+"").length),"="===c.charAt(1)&&(c=gt(h,c)+m),p=parseFloat(c),d=c.substr((p+"").length),v=X.lastIndex-d.length,d||(d=d||T.units[e]||m,v===i.length&&(i+=d,g.e+=d)),m!==d&&(h=Bi(t,e,l,d)||0),g._pt={_next:g._pt,p:_||1===y?_:",",s:h,c:p-h,m:f&&f<4||"zIndex"===e?Math.round:0});g.c=v-1;)r=o[n],Jr[r]&&(i=1,r="transformOrigin"===r?yi:vi),zi(s,r);i&&(zi(s,vi),u&&(u.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",Zi(s,1),u.uncache=1,wi(a)))}},qi={clearProps:function(t,e,r,i,n){if("isFromStart"!==n.data){var s=t._pt=new cr(t._pt,e,r,0,0,Xi);return s.u=i,s.pr=-10,s.tween=n,t._props.push(r),1}}},ji=[1,0,0,1,0,0],Vi={},Qi=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Wi=function(t){var e=Mi(t,vi);return Qi(e)?ji:e.substr(7).match(U).map(dt)},Gi=function(t,e){var r,i,n,s,a=t._gsap||ct(t),o=t.style,u=Wi(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?ji:u:(u!==ji||t.offsetParent||t===Ar||a.svg||(n=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,i=t.nextElementSibling,Ar.appendChild(t)),u=Wi(t),n?o.display=n:zi(t,"display"),s&&(i?r.insertBefore(t,i):r?r.appendChild(t):Ar.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Hi=function(t,e,r,i,n,s){var a,o,u,h=t._gsap,f=n||Gi(t,!0),l=h.xOrigin||0,c=h.yOrigin||0,p=h.xOffset||0,_=h.yOffset||0,d=f[0],m=f[1],g=f[2],v=f[3],y=f[4],T=f[5],w=e.split(" "),x=parseFloat(w[0])||0,b=parseFloat(w[1])||0;r?f!==ji&&(o=d*v-m*g)&&(u=x*(-m/o)+b*(d/o)-(d*T-m*y)/o,x=x*(v/o)+b*(-g/o)+(g*T-v*y)/o,b=u):(x=(a=Ei(t)).x+(~w[0].indexOf("%")?x/100*a.width:x),b=a.y+(~(w[1]||w[0]).indexOf("%")?b/100*a.height:b)),i||!1!==i&&h.smooth?(y=x-l,T=b-c,h.xOffset=p+(y*d+T*g)-y,h.yOffset=_+(y*m+T*v)-T):h.xOffset=h.yOffset=0,h.xOrigin=x,h.yOrigin=b,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[yi]="0px 0px",s&&(Ri(s,h,"xOrigin",l,x),Ri(s,h,"yOrigin",c,b),Ri(s,h,"xOffset",p,h.xOffset),Ri(s,h,"yOffset",_,h.yOffset)),t.setAttribute("data-svg-origin",x+" "+b)},Zi=function(t,e){var r=t._gsap||new Ye(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,s,a,o,u,h,f,l,c,p,_,d,m,g,v,y,w,x,b,O,M,k,C,A,D,P,E,S,z,R,F,L=t.style,B=r.scaleX<0,I="px",Y="deg",N=getComputedStyle(t),U=Mi(t,yi)||"0";return i=n=s=u=h=f=l=c=p=0,a=o=1,r.svg=!(!t.getCTM||!Si(t)),N.translate&&("none"===N.translate&&"none"===N.scale&&"none"===N.rotate||(L[vi]=("none"!==N.translate?"translate3d("+(N.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==N.rotate?"rotate("+N.rotate+") ":"")+("none"!==N.scale?"scale("+N.scale.split(" ").join(",")+") ":"")+("none"!==N[vi]?N[vi]:"")),L.scale=L.rotate=L.translate="none"),m=Gi(t,r.svg),r.svg&&(r.uncache?(A=t.getBBox(),U=r.xOrigin-A.x+"px "+(r.yOrigin-A.y)+"px",C=""):C=!e&&t.getAttribute("data-svg-origin"),Hi(t,C||U,!!C||r.originIsAbsolute,!1!==r.smooth,m)),_=r.xOrigin||0,d=r.yOrigin||0,m!==ji&&(w=m[0],x=m[1],b=m[2],O=m[3],i=M=m[4],n=k=m[5],6===m.length?(a=Math.sqrt(w*w+x*x),o=Math.sqrt(O*O+b*b),u=w||x?ei(x,w)*Kr:0,(l=b||O?ei(b,O)*Kr+u:0)&&(o*=Math.abs(Math.cos(l*ti))),r.svg&&(i-=_-(_*w+d*b),n-=d-(_*x+d*O))):(F=m[6],z=m[7],P=m[8],E=m[9],S=m[10],R=m[11],i=m[12],n=m[13],s=m[14],h=(g=ei(F,S))*Kr,g&&(C=M*(v=Math.cos(-g))+P*(y=Math.sin(-g)),A=k*v+E*y,D=F*v+S*y,P=M*-y+P*v,E=k*-y+E*v,S=F*-y+S*v,R=z*-y+R*v,M=C,k=A,F=D),f=(g=ei(-b,S))*Kr,g&&(v=Math.cos(-g),R=O*(y=Math.sin(-g))+R*v,w=C=w*v-P*y,x=A=x*v-E*y,b=D=b*v-S*y),u=(g=ei(x,w))*Kr,g&&(C=w*(v=Math.cos(g))+x*(y=Math.sin(g)),A=M*v+k*y,x=x*v-w*y,k=k*v-M*y,w=C,M=A),h&&Math.abs(h)+Math.abs(u)>359.9&&(h=u=0,f=180-f),a=dt(Math.sqrt(w*w+x*x+b*b)),o=dt(Math.sqrt(k*k+F*F)),g=ei(M,k),l=Math.abs(g)>2e-4?g*Kr:0,p=R?1/(R<0?-R:R):0),r.svg&&(C=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Qi(Mi(t,vi)),C&&t.setAttribute("transform",C))),Math.abs(l)>90&&Math.abs(l)<270&&(B?(a*=-1,l+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,l+=l<=0?180:-180)),e=e||r.uncache,r.x=i-((r.xPercent=i&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+I,r.y=n-((r.yPercent=n&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+I,r.z=s+I,r.scaleX=dt(a),r.scaleY=dt(o),r.rotation=dt(u)+Y,r.rotationX=dt(h)+Y,r.rotationY=dt(f)+Y,r.skewX=l+Y,r.skewY=c+Y,r.transformPerspective=p+I,(r.zOrigin=parseFloat(U.split(" ")[2])||!e&&r.zOrigin||0)&&(L[yi]=$i(U)),r.xOffset=r.yOffset=0,r.force3D=T.force3D,r.renderTransform=r.svg?sn:zr?nn:Ki,r.uncache=0,r},$i=function(t){return(t=t.split(" "))[0]+" "+t[1]},Ji=function(t,e,r){var i=Jt(e);return dt(parseFloat(e)+parseFloat(Bi(t,"x",r+"px",i)))+i},Ki=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,nn(t,e)},tn="0deg",en="0px",rn=") ",nn=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,a=r.y,o=r.z,u=r.rotation,h=r.rotationY,f=r.rotationX,l=r.skewX,c=r.skewY,p=r.scaleX,_=r.scaleY,d=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",T="auto"===m&&t&&1!==t||!0===m;if(v&&(f!==tn||h!==tn)){var w,x=parseFloat(h)*ti,b=Math.sin(x),O=Math.cos(x);x=parseFloat(f)*ti,w=Math.cos(x),s=Ji(g,s,b*w*-v),a=Ji(g,a,-Math.sin(x)*-v),o=Ji(g,o,O*w*-v+v)}d!==en&&(y+="perspective("+d+rn),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),(T||s!==en||a!==en||o!==en)&&(y+=o!==en||T?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+rn),u!==tn&&(y+="rotate("+u+rn),h!==tn&&(y+="rotateY("+h+rn),f!==tn&&(y+="rotateX("+f+rn),l===tn&&c===tn||(y+="skew("+l+", "+c+rn),1===p&&1===_||(y+="scale("+p+", "+_+rn),g.style[vi]=y||"translate(0, 0)"},sn=function(t,e){var r,i,n,s,a,o=e||this,u=o.xPercent,h=o.yPercent,f=o.x,l=o.y,c=o.rotation,p=o.skewX,_=o.skewY,d=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,T=o.xOffset,w=o.yOffset,x=o.forceCSS,b=parseFloat(f),O=parseFloat(l);c=parseFloat(c),p=parseFloat(p),(_=parseFloat(_))&&(p+=_=parseFloat(_),c+=_),c||p?(c*=ti,p*=ti,r=Math.cos(c)*d,i=Math.sin(c)*d,n=Math.sin(c-p)*-m,s=Math.cos(c-p)*m,p&&(_*=ti,a=Math.tan(p-_),n*=a=Math.sqrt(1+a*a),s*=a,_&&(a=Math.tan(_),r*=a=Math.sqrt(1+a*a),i*=a)),r=dt(r),i=dt(i),n=dt(n),s=dt(s)):(r=d,s=m,i=n=0),(b&&!~(f+"").indexOf("px")||O&&!~(l+"").indexOf("px"))&&(b=Bi(g,"x",f,"px"),O=Bi(g,"y",l,"px")),(v||y||T||w)&&(b=dt(b+v-(v*r+y*n)+T),O=dt(O+y-(v*i+y*s)+w)),(u||h)&&(a=g.getBBox(),b=dt(b+u/100*a.width),O=dt(O+h/100*a.height)),a="matrix("+r+","+i+","+n+","+s+","+b+","+O+")",g.setAttribute("transform",a),x&&(g.style[vi]=a)},an=function(t,e,r,i,n){var s,a,o=360,u=P(n),h=parseFloat(n)*(u&&~n.indexOf("rad")?Kr:1)-i,f=i+h+"deg";return u&&("short"===(s=n.split("_")[1])&&(h%=o)!==h%180&&(h+=h<0?o:-360),"cw"===s&&h<0?h=(h+36e9)%o-~~(h/o)*o:"ccw"===s&&h>0&&(h=(h-36e9)%o-~~(h/o)*o)),t._pt=a=new cr(t._pt,e,r,i,h,oi),a.e=f,a.u="deg",t._props.push(r),a},on=function(t,e){for(var r in e)t[r]=e[r];return t},un=function(t,e,r){var i,n,s,a,o,u,h,f=on({},r._gsap),l=r.style;for(n in f.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),l[vi]=e,i=Zi(r,1),zi(r,vi),r.setAttribute("transform",s)):(s=getComputedStyle(r)[vi],l[vi]=e,i=Zi(r,1),l[vi]=s),Jr)(s=f[n])!==(a=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=Jt(s)!==(h=Jt(a))?Bi(r,n,s,h):parseFloat(s),u=parseFloat(a),t._pt=new cr(t._pt,i,n,o,u-o,ai),t._pt.u=h||0,t._props.push(n));on(i,f)};_t("padding,margin,Width,Radius",function(t,e){var r="Top",i="Right",n="Bottom",s="Left",a=(e<3?[r,i,n,s]:[r+s,r+i,n+i,n+s]).map(function(r){return e<2?t+r:"border"+r+t});qi[e>1?"border"+t:t]=function(t,e,r,i,n){var s,o;if(arguments.length<4)return s=a.map(function(e){return Ii(t,e,r)}),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(i+"").split(" "),o={},a.forEach(function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]}),t.init(e,o,n)}});var hn,fn,ln,cn={name:"css",register:Ai,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var s,a,o,u,h,f,l,c,p,_,d,m,g,v,y,w,x=this._props,b=t.style,O=r.vars.startAt;for(l in Dr||Ai(),this.styles=this.styles||bi(t),w=this.styles.props,this.tween=r,e)if("autoRound"!==l&&(a=e[l],!at[l]||!Qe(l,e,r,i,t,n)))if(h=typeof a,f=qi[l],"function"===h&&(h=typeof(a=a.call(r,i,t,n))),"string"===h&&~a.indexOf("random(")&&(a=fe(a)),f)f(this,t,l,a,r)&&(y=1);else if("--"===l.substr(0,2))s=(getComputedStyle(t).getPropertyValue(l)+"").trim(),a+="",be.lastIndex=0,be.test(s)||(c=Jt(s),p=Jt(a)),p?c!==p&&(s=Bi(t,l,s,p)+p):c&&(a+=c),this.add(b,"setProperty",s,a,i,n,0,0,l),x.push(l),w.push(l,0,b[l]);else if("undefined"!==h){if(O&&l in O?(s="function"==typeof O[l]?O[l].call(r,i,t,n):O[l],P(s)&&~s.indexOf("random(")&&(s=fe(s)),Jt(s+"")||"auto"===s||(s+=T.units[l]||Jt(Ii(t,l))||""),"="===(s+"").charAt(1)&&(s=Ii(t,l))):s=Ii(t,l),u=parseFloat(s),(_="string"===h&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),l in si&&("autoAlpha"===l&&(1===u&&"hidden"===Ii(t,"visibility")&&o&&(u=0),w.push("visibility",0,b.visibility),Ri(this,b,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==l&&"transform"!==l&&~(l=si[l]).indexOf(",")&&(l=l.split(",")[0])),d=l in Jr)if(this.styles.save(l),m||((g=t._gsap).renderTransform&&!e.parseTransform||Zi(t,e.parseTransform),v=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new cr(this._pt,b,vi,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===l)this._pt=new cr(this._pt,g,"scaleY",g.scaleY,(_?gt(g.scaleY,_+o):o)-g.scaleY||0,ai),this._pt.u=0,x.push("scaleY",l),l+="X";else{if("transformOrigin"===l){w.push(yi,0,b[yi]),a=Ui(a),g.svg?Hi(t,a,0,v,0,this):((p=parseFloat(a.split(" ")[2])||0)!==g.zOrigin&&Ri(this,g,"zOrigin",g.zOrigin,p),Ri(this,b,l,$i(s),$i(a)));continue}if("svgOrigin"===l){Hi(t,a,1,v,0,this);continue}if(l in Vi){an(this,g,l,u,_?gt(u,_+a):a);continue}if("smoothOrigin"===l){Ri(this,g,"smooth",g.smooth,a);continue}if("force3D"===l){g[l]=a;continue}if("transform"===l){un(this,a,t);continue}}else l in b||(l=Ci(l)||l);if(d||(o||0===o)&&(u||0===u)&&!ni.test(a)&&l in b)o||(o=0),(c=(s+"").substr((u+"").length))!==(p=Jt(a)||(l in T.units?T.units[l]:c))&&(u=Bi(t,l,s,p)),this._pt=new cr(this._pt,d?g:b,l,u,(_?gt(u,_+o):o)-u,d||"px"!==p&&"zIndex"!==l||!1===e.autoRound?ai:hi),this._pt.u=p||0,c!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=ui);else if(l in b)Yi.call(this,t,l,s,_?_+a:a);else if(l in t)this.add(t,l,s||t[l],_?_+a:a,i,n);else if("parseTransform"!==l){Z();continue}d||(l in b?w.push(l,0,b[l]):"function"==typeof t[l]?w.push(l,2,t[l]()):w.push(l,1,s||t[l])),x.push(l)}y&&lr(this)},render:function(t,e){if(e.tween._time||!Sr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Ii,aliases:si,getSetter:function(t,e,r){var i=si[e];return i&&i.indexOf(",")<0&&(e=i),e in Jr&&e!==yi&&(t._gsap.x||Ii(t,"x"))?r&&Er===r?"scale"===e?di:_i:(Er=r||{})&&("scale"===e?mi:gi):t.style&&!z(t.style[e])?ci:~e.indexOf("-")?pi:ir(t,e)},core:{_removeProperty:zi,_getMatrix:Gi}};Mr.utils.checkPrefix=Ci,Mr.core.getStyleSaver=bi,ln=_t((hn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(fn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Jr[t]=1}),_t(fn,function(t){T.units[t]="deg",Vi[t]=1}),si[ln[13]]=hn+","+fn,_t("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");si[e[1]]=ln[e[0]]}),_t("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){T.units[t]="px"}),Mr.registerPlugin(cn);var pn=Mr.registerPlugin(cn)||Mr,_n=pn.core.Tween;t.Back=Qr,t.Bounce=Gr,t.CSSPlugin=cn,t.Circ=$r,t.Cubic=Ur,t.Elastic=Vr,t.Expo=Zr,t.Linear=Yr,t.Power0=Rr,t.Power1=Fr,t.Power2=Lr,t.Power3=Br,t.Power4=Ir,t.Quad=Nr,t.Quart=Xr,t.Quint=qr,t.Sine=Hr,t.SteppedEase=Wr,t.Strong=jr,t.TimelineLite=Ue,t.TimelineMax=Ue,t.TweenLite=Je,t.TweenMax=_n,t.default=pn,t.gsap=pn,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete window.default}); !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function t(e,t){for(var r=0;rs?(i=n,n=e,a=o,o=l):r?n+=e:n=i+(e-i)/(l-a)*(o-a)};return{update:c,reset:function(){i=n=r?0:n,a=o=0},getVelocity:function(e){var t=a,s=i,u=b();return(e||0===e)&&e!==n&&c(e),o===a||u-a>l?0:(n+(r?s:-s))/((r?u:o)-t)*1e3}}},I=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},B=function(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r},X=function(){var e,t,n,i;(u=r.core.globals().ScrollTrigger)&&u.core&&(e=u.core,t=e.bridge||{},n=e._scrollers,i=e._proxies,n.push.apply(n,y),i.push.apply(i,x),y=n,x=i,w=function(e,r){return t[e](r)})},z=function(e){return r=e||g(),!n&&r&&"undefined"!=typeof document&&document.body&&(i=window,o=document,a=o.documentElement,s=o.body,f=[i,o,a,s],r.utils.clamp,h=r.core.context||function(){},c="onpointerenter"in s?"pointer":"mouse",l=N.isTouch=i.matchMedia&&i.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in i||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,p=N.eventTypes=("ontouchstart"in a?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in a?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return v=0},500),X(),n=1),n};O.op=A,y.cache=0;var N=function(){function e(e){this.init(e)}var f,g,v;return e.prototype.init=function(e){n||z(r),u||X();var t=e.tolerance,f=e.dragMinimum,g=e.type,v=e.target,y=e.lineHeight,x=e.debounce,w=e.preventDefault,_=e.onStop,E=e.onStopDelay,S=e.ignore,P=e.wheelSpeed,N=e.event,F=e.onDragStart,H=e.onDragEnd,L=e.onDrag,W=e.onPress,q=e.onRelease,U=e.onRight,V=e.onLeft,G=e.onUp,j=e.onDown,K=e.onChangeX,Z=e.onChangeY,$=e.onChange,J=e.onToggleX,Q=e.onToggleY,ee=e.onHover,te=e.onHoverEnd,re=e.onMove,ne=e.ignoreCheck,ie=e.isNormalizer,oe=e.onGestureStart,ae=e.onGestureEnd,se=e.onWheel,le=e.onEnable,ce=e.onDisable,ue=e.onClick,fe=e.scrollSpeed,de=e.capture,pe=e.allowClicks,he=e.lockAxis,ge=e.onLockAxis;this.target=v=D(v)||a,this.vars=e,S&&(S=r.utils.toArray(S)),t=t||1e-9,f=f||0,P=P||1,fe=fe||1,g=g||"wheel,touch,pointer",x=!1!==x,y||(y=parseFloat(i.getComputedStyle(s).lineHeight)||22);var ve,me,ye,xe,be,we,_e,ke=this,Ce=0,Te=0,Ee=e.passive||!w&&!1!==e.passive,Se=R(v,O),Me=R(v,A),Pe=Se(),Oe=Me(),Ae=~g.indexOf("touch")&&!~g.indexOf("pointer")&&"pointerdown"===p[0],De=k(v),Re=v.ownerDocument||o,Ye=[0,0,0],Ie=[0,0,0],Be=0,Xe=function(){return Be=b()},ze=function(e,t){return(ke.event=e)&&S&&~S.indexOf(e.target)||t&&Ae&&"touch"!==e.pointerType||ne&&ne(e,t)},Ne=function(){var e=ke.deltaX=B(Ye),r=ke.deltaY=B(Ie),n=Math.abs(e)>=t,i=Math.abs(r)>=t;$&&(n||i)&&$(ke,e,r,Ye,Ie),n&&(U&&ke.deltaX>0&&U(ke),V&&ke.deltaX<0&&V(ke),K&&K(ke),J&&ke.deltaX<0!=Ce<0&&J(ke),Ce=ke.deltaX,Ye[0]=Ye[1]=Ye[2]=0),i&&(j&&ke.deltaY>0&&j(ke),G&&ke.deltaY<0&&G(ke),Z&&Z(ke),Q&&ke.deltaY<0!=Te<0&&Q(ke),Te=ke.deltaY,Ie[0]=Ie[1]=Ie[2]=0),(xe||ye)&&(re&&re(ke),ye&&(F&&1===ye&&F(ke),L&&L(ke),ye=0),xe=!1),we&&!(we=!1)&&ge&&ge(ke),be&&(se(ke),be=!1),ve=0},Fe=function(e,t,r){Ye[r]+=e,Ie[r]+=t,ke._vx.update(e),ke._vy.update(t),x?ve||(ve=requestAnimationFrame(Ne)):Ne()},He=function(e,t){he&&!_e&&(ke.axis=_e=Math.abs(e)>Math.abs(t)?"x":"y",we=!0),"y"!==_e&&(Ye[2]+=e,ke._vx.update(e,!0)),"x"!==_e&&(Ie[2]+=t,ke._vy.update(t,!0)),x?ve||(ve=requestAnimationFrame(Ne)):Ne()},Le=function(e){if(!ze(e,1)){var t=(e=I(e,w)).clientX,r=e.clientY,n=t-ke.x,i=r-ke.y,o=ke.isDragging;ke.x=t,ke.y=r,(o||(n||i)&&(Math.abs(ke.startX-t)>=f||Math.abs(ke.startY-r)>=f))&&(ye=o?2:1,o||(ke.isDragging=!0),He(n,i))}},We=ke.onPress=function(e){ze(e,1)||e&&e.button||(ke.axis=_e=null,me.pause(),ke.isPressed=!0,e=I(e),Ce=Te=0,ke.startX=ke.x=e.clientX,ke.startY=ke.y=e.clientY,ke._vx.reset(),ke._vy.reset(),C(ie?v:Re,p[1],Le,Ee,!0),ke.deltaX=ke.deltaY=0,W&&W(ke))},qe=ke.onRelease=function(e){if(!ze(e,1)){T(ie?v:Re,p[1],Le,!0);var t=!isNaN(ke.y-ke.startY),n=ke.isDragging,o=n&&(Math.abs(ke.x-ke.startX)>3||Math.abs(ke.y-ke.startY)>3),a=I(e);!o&&t&&(ke._vx.reset(),ke._vy.reset(),w&&pe&&r.delayedCall(.08,function(){if(b()-Be>300&&!e.defaultPrevented)if(e.target.click)e.target.click();else if(Re.createEvent){var t=Re.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,i,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}})),ke.isDragging=ke.isGesturing=ke.isPressed=!1,_&&n&&!ie&&me.restart(!0),ye&&Ne(),H&&n&&H(ke),q&&q(ke,o)}},Ue=function(e){return e.touches&&e.touches.length>1&&(ke.isGesturing=!0)&&oe(e,ke.isDragging)},Ve=function(){return(ke.isGesturing=!1)||ae(ke)},Ge=function(e){if(!ze(e)){var t=Se(),r=Me();Fe((t-Pe)*fe,(r-Oe)*fe,1),Pe=t,Oe=r,_&&me.restart(!0)}},je=function(e){if(!ze(e)){e=I(e,w),se&&(be=!0);var t=(1===e.deltaMode?y:2===e.deltaMode?i.innerHeight:1)*P;Fe(e.deltaX*t,e.deltaY*t,0),_&&!ie&&me.restart(!0)}},Ke=function(e){if(!ze(e)){var t=e.clientX,r=e.clientY,n=t-ke.x,i=r-ke.y;ke.x=t,ke.y=r,xe=!0,_&&me.restart(!0),(n||i)&&He(n,i)}},Ze=function(e){ke.event=e,ee(ke)},$e=function(e){ke.event=e,te(ke)},Je=function(e){return ze(e)||I(e,w)&&ue(ke)};me=ke._dc=r.delayedCall(E||.25,function(){ke._vx.reset(),ke._vy.reset(),me.pause(),_&&_(ke)}).pause(),ke.deltaX=ke.deltaY=0,ke._vx=Y(0,50,!0),ke._vy=Y(0,50,!0),ke.scrollX=Se,ke.scrollY=Me,ke.isDragging=ke.isGesturing=ke.isPressed=!1,h(this),ke.enable=function(e){return ke.isEnabled||(C(De?Re:v,"scroll",M),g.indexOf("scroll")>=0&&C(De?Re:v,"scroll",Ge,Ee,de),g.indexOf("wheel")>=0&&C(v,"wheel",je,Ee,de),(g.indexOf("touch")>=0&&l||g.indexOf("pointer")>=0)&&(C(v,p[0],We,Ee,de),C(Re,p[2],qe),C(Re,p[3],qe),pe&&C(v,"click",Xe,!0,!0),ue&&C(v,"click",Je),oe&&C(Re,"gesturestart",Ue),ae&&C(Re,"gestureend",Ve),ee&&C(v,c+"enter",Ze),te&&C(v,c+"leave",$e),re&&C(v,c+"move",Ke)),ke.isEnabled=!0,ke.isDragging=ke.isGesturing=ke.isPressed=xe=ye=!1,ke._vx.reset(),ke._vy.reset(),Pe=Se(),Oe=Me(),e&&e.type&&We(e),le&&le(ke)),ke},ke.disable=function(){ke.isEnabled&&(m.filter(function(e){return e!==ke&&k(e.target)}).length||T(De?Re:v,"scroll",M),ke.isPressed&&(ke._vx.reset(),ke._vy.reset(),T(ie?v:Re,p[1],Le,!0)),T(De?Re:v,"scroll",Ge,de),T(v,"wheel",je,de),T(v,p[0],We,de),T(Re,p[2],qe),T(Re,p[3],qe),T(v,"click",Xe,!0),T(v,"click",Je),T(Re,"gesturestart",Ue),T(Re,"gestureend",Ve),T(v,c+"enter",Ze),T(v,c+"leave",$e),T(v,c+"move",Ke),ke.isEnabled=ke.isPressed=ke.isDragging=!1,ce&&ce(ke))},ke.kill=ke.revert=function(){ke.disable();var e=m.indexOf(ke);e>=0&&m.splice(e,1),d===ke&&(d=0)},m.push(ke),ie&&k(v)&&(d=ke),ke.enable(N)},f=e,(g=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&t(f.prototype,g),v&&t(f,v),e}();N.version="3.12.7",N.create=function(e){return new N(e)},N.register=z,N.getAll=function(){return m.slice()},N.getById=function(e){return m.filter(function(t){return t.vars.id===e})[0]},g()&&r.registerPlugin(N); /*! * ScrollTrigger 3.12.7 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */ var F,H,L,W,q,U,V,G,j,K,Z,$,J,Q,ee,te,re,ne,ie,oe,ae,se,le,ce,ue,fe,de,pe,he,ge,ve,me,ye,xe,be,we,_e,ke,Ce=1,Te=Date.now,Ee=Te(),Se=0,Me=0,Pe=function(e,t,r){var n=We(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return r["_"+t+"Clamp"]=n,n?e.substr(6,e.length-7):e},Oe=function(e,t){return!t||We(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")"},Ae=function e(){return Me&&requestAnimationFrame(e)},De=function(){return Q=1},Re=function(){return Q=0},Ye=function(e){return e},Ie=function(e){return Math.round(1e5*e)/1e5||0},Be=function(){return"undefined"!=typeof window},Xe=function(){return F||Be()&&(F=window.gsap)&&F.registerPlugin&&F},ze=function(e){return!!~V.indexOf(e)},Ne=function(e){return("Height"===e?ve:L["inner"+e])||q["client"+e]||U["client"+e]},Fe=function(e){return _(e,"getBoundingClientRect")||(ze(e)?function(){return Qt.width=L.innerWidth,Qt.height=ve,Qt}:function(){return dt(e)})},He=function(e,t){var r=t.s,n=t.d2,i=t.d,o=t.a;return Math.max(0,(r="scroll"+n)&&(o=_(e,r))?o()-Fe(e)()[i]:ze(e)?(q[r]||U[r])-Ne(n):e[r]-e["offset"+n])},Le=function(e,t){for(var r=0;r0){for(e-=i,o=0;o=e)return r[o];return r[o-1]}for(o=r.length,e+=i;o--;)if(r[o]<=e)return r[o];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var o=t(r);return!n||Math.abs(o-r)r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in _t?_t[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},Ct=function(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,d=i.fontWeight,p=W.createElement("div"),h=ze(r)||"fixed"===_(r,"pinType"),g=-1!==e.indexOf("scroller"),v=h?U:r,m=-1!==e.indexOf("start"),y=m?l:c,x="border-color:"+y+";font-size:"+u+";color:"+y+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((g||s)&&h?"fixed;":"absolute;"),(g||s||!h)&&(x+=(n===A?$e:Je)+":"+(o+parseFloat(f))+"px;"),a&&(x+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=m,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=x,p.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(p,v.children[0]):v.appendChild(p),p._offset=p["offset"+n.op.d2],Tt(p,0,n,m),p},Tt=function(e,t,r,n){var i={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+st]=1,i["border"+a+st]=0,i[r.p]=t+"px",F.set(e,i)},Et=[],St={},Mt=function(){return Te()-Se>34&&(be||(be=requestAnimationFrame(Vt)))},Pt=function(){(!le||!le.isPressed||le.startX>U.clientWidth)&&(y.cache++,le?be||(be=requestAnimationFrame(Vt)):Vt(),Se||It("scrollStart"),Se=Te())},Ot=function(){fe=L.innerWidth,ue=L.innerHeight},At=function(e){y.cache++,(!0===e||!J&&!se&&!W.fullscreenElement&&!W.webkitFullscreenElement&&(!ce||fe!==L.innerWidth||Math.abs(L.innerHeight-ue)>.25*L.innerHeight))&&G.restart(!0)},Dt={},Rt=[],Yt=function e(){return yt(ar,"scrollEnd",e)||Wt(!0)},It=function(e){return Dt[e]&&Dt[e].map(function(e){return e()})||Rt},Bt=[],Xt=function(e){for(var t=0;tt,n=e._startClamp&&e.start>=t;(r||n)&&e.setPositions(n?t-1:e.start,r?Math.max(n?t:e.start+1,t):e.end,!0)}),Lt(!1),ye=0,r.forEach(function(e){return e&&e.render&&e.render(-1)}),y.forEach(function(e){qe(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),Nt(he,1),G.pause(),Ft++,we=2,Vt(2),Et.forEach(function(e){return qe(e.vars.onRefresh)&&e.vars.onRefresh(e)}),we=ar.isRefreshing=!1,It("refresh")}else mt(ar,"scrollEnd",Yt)},qt=0,Ut=1,Vt=function(e){if(2===e||!we&&!me){ar.isUpdating=!0,ke&&ke.update(0);var t=Et.length,r=Te(),n=r-Ee>=50,i=t&&Et[0].scroll();if(Ut=qt>i?-1:1,we||(qt=i),n&&(Se&&!Q&&r-Se>200&&(Se=0,It("scrollEnd")),Z=Ee,Ee=r),Ut<0){for(te=t;te-- >0;)Et[te]&&Et[te].update(0,n);Ut=1}else for(te=0;te20),r-=r-b}if(p&&(s[p]=e||-.001,e<0&&(e=0)),o){var k=e+r,C=o._isStart;h="scroll"+n.d2,Tt(o,k,n,C&&k>20||!C&&(u?Math.max(U[h],q[h]):o.parentNode[h])<=k+1),u&&(l=dt(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+ct))}return d&&v&&(h=dt(v),d.seek(f),g=dt(v),d._caScrollDist=h[n.p]-g[n.p],e=e/d._caScrollDist*f),d&&d.seek(m),d?e:Math.round(e)},tr=/(webkit|moz|length|cssText|inset)/i,rr=function(e,t,r,n){if(e.parentNode!==t){var i,o,a=e.style;if(t===U){for(i in e._stOrig=a.cssText,o=ut(e))+i||tr.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=r,a.left=n}else a.cssText=e._stOrig;F.core.getCache(e).uncache=1,t.appendChild(e)}},nr=function(e,t,r){var n=t,i=n;return function(t){var o=Math.round(e());return o!==n&&o!==i&&Math.abs(o-n)>3&&Math.abs(o-i)>3&&(t=o,r&&r()),i=n,n=Math.round(t)}},ir=function(e,t,r){var n={};n[t.p]="+="+r,F.set(e,n)},or=function(e,t){var r=R(e,t),n="_scroll"+t.p2,i=function t(i,o,a,s,l){var c=t.tween,u=o.onComplete,f={};a=a||r();var d=nr(r,a,function(){c.kill(),t.tween=0});return l=s&&l||0,s=s||i-a,c&&c.kill(),o[n]=i,o.inherit=!1,o.modifiers=f,f[n]=function(){return d(a+s*c.ratio+l*c.ratio*c.ratio)},o.onUpdate=function(){y.cache++,t.tween&&Vt()},o.onComplete=function(){t.tween=0,u&&u.call(c)},c=t.tween=F.to(e,o)};return e[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},mt(e,"wheel",r.wheelHandler),ar.isTouch&&mt(e,"touchmove",r.wheelHandler),i},ar=function(){function e(t,r){H||e.register(F),pe(this),this.init(t,r)}return e.prototype.init=function(t,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Me){var n,i,o,a,s,l,c,u,f,d,p,h,g,v,m,b,w,k,C,T,E,S,M,P,Y,I,B,X,z,N,H,V,G,$,ee,re,ne,ie,se,le,ce,ue,fe=t=ft(We(t)||Ue(t)||t.nodeType?{trigger:t}:t,wt),de=fe.onUpdate,pe=fe.toggleClass,he=fe.id,ge=fe.onToggle,ve=fe.onRefresh,me=fe.scrub,be=fe.trigger,Ee=fe.pin,Ae=fe.pinSpacing,De=fe.invalidateOnRefresh,Re=fe.anticipatePin,Be=fe.onScrubComplete,Xe=fe.onSnapComplete,Le=fe.once,Ze=fe.snap,$e=fe.pinReparent,Je=fe.pinSpacer,vt=fe.containerAnimation,xt=fe.fastScrollEnd,_t=fe.preventOverlaps,Tt=t.horizontal||t.containerAnimation&&!1!==t.horizontal?O:A,Mt=!me&&0!==me,Ot=D(t.scroller||L),Dt=F.core.getCache(Ot),Rt=ze(Ot),It="fixed"===("pinType"in t?t.pinType:_(Ot,"pinType")||Rt&&"fixed"),Bt=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],Xt=Mt&&t.toggleActions.split(" "),zt="markers"in t?t.markers:wt.markers,Nt=Rt?0:parseFloat(ut(Ot)["border"+Tt.p2+st])||0,Ht=this,Lt=t.onRefreshInit&&function(){return t.onRefreshInit(Ht)},qt=function(e,t,r){var n=r.d,i=r.d2,o=r.a;return(o=_(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?Ne(i):e["client"+i])||0}}(Ot,Rt,Tt),Vt=function(e,t){return!t||~x.indexOf(e)?Fe(e):function(){return Qt}}(Ot,Rt),Gt=0,jt=0,Zt=0,tr=R(Ot,Tt);if(Ht._startClamp=Ht._endClamp=!1,Ht._dir=Tt,Re*=45,Ht.scroller=Ot,Ht.scroll=vt?vt.time.bind(vt):tr,a=tr(),Ht.vars=t,r=r||t.animation,"refreshPriority"in t&&(oe=1,-9999===t.refreshPriority&&(ke=Ht)),Dt.tweenScroll=Dt.tweenScroll||{top:or(Ot,A),left:or(Ot,O)},Ht.tweenTo=n=Dt.tweenScroll[Tt.p],Ht.scrubDuration=function(e){(G=Ue(e)&&e)?V?V.duration(e):V=F.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:G,paused:!0,onComplete:function(){return Be&&Be(Ht)}}):(V&&V.progress(1).kill(),V=0)},r&&(r.vars.lazy=!1,r._initted&&!Ht.isReverted||!1!==r.vars.immediateRender&&!1!==t.immediateRender&&r.duration()&&r.render(0,!0,!0),Ht.animation=r.pause(),r.scrollTrigger=Ht,Ht.scrubDuration(me),N=0,he||(he=r.vars.id)),Ze&&(Ve(Ze)&&!Ze.push||(Ze={snapTo:Ze}),"scrollBehavior"in U.style&&F.set(Rt?[U,q]:Ot,{scrollBehavior:"auto"}),y.forEach(function(e){return qe(e)&&e.target===(Rt?W.scrollingElement||q:Ot)&&(e.smooth=!1)}),o=qe(Ze.snapTo)?Ze.snapTo:"labels"===Ze.snapTo?function(e){return function(t){return F.utils.snap(ht(e),t)}}(r):"labelsDirectional"===Ze.snapTo?(le=r,function(e,t){return gt(ht(le))(e,t.direction)}):!1!==Ze.directional?function(e,t){return gt(Ze.snapTo)(e,Te()-jt<500?0:t.direction)}:F.utils.snap(Ze.snapTo),$=Ze.duration||{min:.1,max:2},$=Ve($)?K($.min,$.max):K($,$),ee=F.delayedCall(Ze.delay||G/2||.1,function(){var e=tr(),t=Te()-jt<500,i=n.tween;if(!(t||Math.abs(Ht.getVelocity())<10)||i||Q||Gt===e)Ht.isActive&&Gt!==e&&ee.restart(!0);else{var a,s,u=(e-l)/v,f=r&&!Mt?r.totalProgress():u,d=t?0:(f-H)/(Te()-Z)*1e3||0,p=F.utils.clamp(-u,1-u,Ke(d/2)*d/.185),h=u+(!1===Ze.inertia?0:p),g=Ze,m=g.onStart,y=g.onInterrupt,x=g.onComplete;if(a=o(h,Ht),Ue(a)||(a=h),s=Math.max(0,Math.round(l+a*v)),e<=c&&e>=l&&s!==e){if(i&&!i._initted&&i.data<=Ke(s-e))return;!1===Ze.inertia&&(p=a-u),n(s,{duration:$(Ke(.185*Math.max(Ke(h-f),Ke(a-f))/d/.05||0)),ease:Ze.ease||"power3",data:Ke(s-e),onInterrupt:function(){return ee.restart(!0)&&y&&y(Ht)},onComplete:function(){Ht.update(),Gt=tr(),r&&!Mt&&(V?V.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),N=H=r&&!Mt?r.totalProgress():Ht.progress,Xe&&Xe(Ht),x&&x(Ht)}},e,p*v,s-e-p*v),m&&m(Ht,n.tween)}}}).pause()),he&&(St[he]=Ht),(se=(be=Ht.trigger=D(be||!0!==Ee&&Ee))&&be._gsap&&be._gsap.stRevert)&&(se=se(Ht)),Ee=!0===Ee?be:D(Ee),We(pe)&&(pe={targets:be,className:pe}),Ee&&(!1===Ae||Ae===at||(Ae=!(!Ae&&Ee.parentNode&&Ee.parentNode.style&&"flex"===ut(Ee.parentNode).display)&&ot),Ht.pin=Ee,(i=F.core.getCache(Ee)).spacer?m=i.pinState:(Je&&((Je=D(Je))&&!Je.nodeType&&(Je=Je.current||Je.nativeElement),i.spacerIsNative=!!Je,Je&&(i.spacerState=Jt(Je))),i.spacer=k=Je||W.createElement("div"),k.classList.add("pin-spacer"),he&&k.classList.add("pin-spacer-"+he),i.pinState=m=Jt(Ee)),!1!==t.force3D&&F.set(Ee,{force3D:!0}),Ht.spacer=k=i.spacer,z=ut(Ee),P=z[Ae+Tt.os2],T=F.getProperty(Ee),E=F.quickSetter(Ee,Tt.a,ct),Kt(Ee,k,z),w=Jt(Ee)),zt){h=Ve(zt)?ft(zt,bt):bt,d=Ct("scroller-start",he,Ot,Tt,h,0),p=Ct("scroller-end",he,Ot,Tt,h,0,d),C=d["offset"+Tt.op.d2];var nr=D(_(Ot,"content")||Ot);u=this.markerStart=Ct("start",he,nr,Tt,h,C,0,vt),f=this.markerEnd=Ct("end",he,nr,Tt,h,C,0,vt),vt&&(ie=F.quickSetter([u,f],Tt.a,ct)),It||x.length&&!0===_(Ot,"fixedMarkers")||(ue=ut(ce=Rt?U:Ot).position,ce.style.position="absolute"===ue||"fixed"===ue?ue:"relative",F.set([d,p],{force3D:!0}),I=F.quickSetter(d,Tt.a,ct),X=F.quickSetter(p,Tt.a,ct))}if(vt){var ar=vt.vars.onUpdate,sr=vt.vars.onUpdateParams;vt.eventCallback("onUpdate",function(){Ht.update(0,0,1),ar&&ar.apply(vt,sr||[])})}if(Ht.previous=function(){return Et[Et.indexOf(Ht)-1]},Ht.next=function(){return Et[Et.indexOf(Ht)+1]},Ht.revert=function(e,t){if(!t)return Ht.kill(!0);var n=!1!==e||!Ht.enabled,i=J;n!==Ht.isReverted&&(n&&(re=Math.max(tr(),Ht.scroll.rec||0),Zt=Ht.progress,ne=r&&r.progress()),u&&[u,f,d,p].forEach(function(e){return e.style.display=n?"none":"block"}),n&&(J=Ht,Ht.update(n)),!Ee||$e&&Ht.isActive||(n?function(e,t,r){$t(r);var n=e._gsap;if(n.spacerIsNative)$t(n.spacerState);else if(e._gsap.swappedIn){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}e._gsap.swappedIn=!1}(Ee,k,m):Kt(Ee,k,ut(Ee),Y)),n||Ht.update(n),J=i,Ht.isReverted=n)},Ht.refresh=function(i,o,h,y){if(!J&&Ht.enabled||o)if(Ee&&i&&Se)mt(e,"scrollEnd",Yt);else{!we&&Lt&&Lt(Ht),J=Ht,n.tween&&!h&&(n.tween.kill(),n.tween=0),V&&V.pause(),De&&r&&r.revert({kill:!1}).invalidate(),Ht.isReverted||Ht.revert(!0,!0),Ht._subPinOffset=!1;var x,_,C,E,P,I,X,z,N,H,L,G,j,K=qt(),Z=Vt(),$=vt?vt.duration():He(Ot,Tt),Q=v<=.01,te=0,ie=y||0,oe=Ve(h)?h.end:t.end,se=t.endTrigger||be,le=Ve(h)?h.start:t.start||(0!==t.start&&be?Ee?"0 0":"0 100%":0),ce=Ht.pinnedContainer=t.pinnedContainer&&D(t.pinnedContainer,Ht),ue=be&&Math.max(0,Et.indexOf(Ht))||0,fe=ue;for(zt&&Ve(h)&&(G=F.getProperty(d,Tt.p),j=F.getProperty(p,Tt.p));fe-- >0;)(I=Et[fe]).end||I.refresh(0,1)||(J=Ht),!(X=I.pin)||X!==be&&X!==Ee&&X!==ce||I.isReverted||(H||(H=[]),H.unshift(I),I.revert(!0,!0)),I!==Et[fe]&&(ue--,fe--);for(qe(le)&&(le=le(Ht)),le=Pe(le,"start",Ht),l=er(le,be,K,Tt,tr(),u,d,Ht,Z,Nt,It,$,vt,Ht._startClamp&&"_startClamp")||(Ee?-.001:0),qe(oe)&&(oe=oe(Ht)),We(oe)&&!oe.indexOf("+=")&&(~oe.indexOf(" ")?oe=(We(le)?le.split(" ")[0]:"")+oe:(te=kt(oe.substr(2),K),oe=We(le)?le:(vt?F.utils.mapRange(0,vt.duration(),vt.scrollTrigger.start,vt.scrollTrigger.end,l):l)+te,se=be)),oe=Pe(oe,"end",Ht),c=Math.max(l,er(oe||(se?"100% 0":$),se,K,Tt,tr()+te,f,p,Ht,Z,Nt,It,$,vt,Ht._endClamp&&"_endClamp"))||-.001,te=0,fe=ue;fe--;)(X=(I=Et[fe]).pin)&&I.start-I._pinPush<=l&&!vt&&I.end>0&&(x=I.end-(Ht._startClamp?Math.max(0,I.start):I.start),(X===be&&I.start-I._pinPush=He(Ot,Tt)){if(be&&tr()&&!vt)for(_=be.parentNode;_&&_!==U;)_._pinOffset&&(l-=_._pinOffset,c-=_._pinOffset),_=_.parentNode}else x=ut(Ee),E=Tt===A,C=tr(),S=parseFloat(T(Tt.a))+ie,!$&&c>1&&(L={style:L=(Rt?W.scrollingElement||q:Ot).style,value:L["overflow"+Tt.a.toUpperCase()]},Rt&&"scroll"!==ut(U)["overflow"+Tt.a.toUpperCase()]&&(L.style["overflow"+Tt.a.toUpperCase()]="scroll")),Kt(Ee,k,x),w=Jt(Ee),_=dt(Ee,!0),z=It&&R(Ot,E?O:A)(),Ae?((Y=[Ae+Tt.os2,v+ie+ct]).t=k,(fe=Ae===ot?pt(Ee,Tt)+v+ie:0)&&(Y.push(Tt.d,fe+ct),"auto"!==k.style.flexBasis&&(k.style.flexBasis=fe+ct)),$t(Y),ce&&Et.forEach(function(e){e.pin===ce&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),It&&tr(re)):(fe=pt(Ee,Tt))&&"auto"!==k.style.flexBasis&&(k.style.flexBasis=fe+ct),It&&((P={top:_.top+(E?C-l:z)+ct,left:_.left+(E?z:C-l)+ct,boxSizing:"border-box",position:"fixed"})[Qe]=P["max"+st]=Math.ceil(_.width)+ct,P[et]=P["max"+lt]=Math.ceil(_.height)+ct,P[at]=P[at+nt]=P[at+tt]=P[at+it]=P[at+rt]="0",P[ot]=x[ot],P[ot+nt]=x[ot+nt],P[ot+tt]=x[ot+tt],P[ot+it]=x[ot+it],P[ot+rt]=x[ot+rt],b=function(e,t,r){for(var n,i=[],o=e.length,a=r?8:0;a1,It&&B&&b.splice(b.length-2,2),r.render(0,!0,!0),N||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ae(0)):M=v,L&&(L.value?L.style["overflow"+Tt.a.toUpperCase()]=L.value:L.style.removeProperty("overflow-"+Tt.a));H&&H.forEach(function(e){return e.revert(!1,!0)}),Ht.start=l,Ht.end=c,a=s=we?re:tr(),vt||we||(a0?Et.slice(0,t).reverse():Et.slice(t+1);return(We(e)?r.filter(function(t){return t.vars.preventOverlaps===e}):r).filter(function(e){return Ht.direction>0?e.end<=l:e.start>=c})},Ht.update=function(e,t,i){if(!vt||i||e){var o,u,f,p,h,g,m,y=!0===we?re:Ht.scroll(),x=e?0:(y-l)/v,_=x<0?0:x>1?1:x||0,C=Ht.progress;if(t&&(s=a,a=vt?tr():y,Ze&&(H=N,N=r&&!Mt?r.totalProgress():_)),Re&&Ee&&!J&&!Ce&&Se&&(!_&&ly+(y-s)/(Te()-Z)*Re&&(_=.9999)),_!==C&&Ht.enabled){if(p=(h=(o=Ht.isActive=!!_&&_<1)!==(!!C&&C<1))||!!_!=!!C,Ht.direction=_>C?1:-1,Ht.progress=_,p&&!J&&(u=_&&!C?0:1===_?1:1===C?2:3,Mt&&(f=!h&&"none"!==Xt[u+1]&&Xt[u+1]||Xt[u],m=r&&("complete"===f||"reset"===f||f in r))),_t&&(h||m)&&(m||me||!r)&&(qe(_t)?_t(Ht):Ht.getTrailing(_t).forEach(function(e){return e.endAnimation()})),Mt||(!V||J||Ce?r&&r.totalProgress(_,!(!J||!jt&&!e)):(V._dp._time-V._start!==V._time&&V.render(V._dp._time-V._start),V.resetTo?V.resetTo("totalProgress",_,r._tTime/r._tDur):(V.vars.totalProgress=_,V.invalidate().restart()))),Ee)if(e&&Ae&&(k.style[Ae+Tt.os2]=P),It){if(p){if(g=!e&&_>C&&c+1>y&&y+1>=He(Ot,Tt),$e)if(e||!o&&!g)rr(Ee,k);else{var T=dt(Ee,!0),O=y-l;rr(Ee,U,T.top+(Tt===A?O:0)+ct,T.left+(Tt===A?0:O)+ct)}$t(o||g?b:w),B&&_<1&&o||E(S+(1!==_||g?0:M))}}else E(Ie(S+M*_));Ze&&!n.tween&&!J&&!Ce&&ee.restart(!0),pe&&(h||Le&&_&&(_<1||!xe))&&j(pe.targets).forEach(function(e){return e.classList[o||Le?"add":"remove"](pe.className)}),de&&!Mt&&!e&&de(Ht),p&&!J?(Mt&&(m&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),de&&de(Ht)),!h&&xe||(ge&&h&&je(Ht,ge),Bt[u]&&je(Ht,Bt[u]),Le&&(1===_?Ht.kill(!1,1):Bt[u]=0),h||Bt[u=1===_?1:3]&&je(Ht,Bt[u])),xt&&!o&&Math.abs(Ht.getVelocity())>(Ue(xt)?xt:2500)&&(Ge(Ht.callbackAnimation),V?V.progress(1):Ge(r,"reverse"===f?1:!_,1))):Mt&&de&&!J&&de(Ht)}if(X){var D=vt?y/vt.duration()*(vt._caScrollDist||0):y;I(D+(d._isFlipped?1:0)),X(D)}ie&&ie(-y/vt.duration()*(vt._caScrollDist||0))}},Ht.enable=function(t,r){Ht.enabled||(Ht.enabled=!0,mt(Ot,"resize",At),Rt||mt(Ot,"scroll",Pt),Lt&&mt(e,"refreshInit",Lt),!1!==t&&(Ht.progress=Zt=0,a=s=Gt=tr()),!1!==r&&Ht.refresh())},Ht.getTween=function(e){return e&&n?n.tween:V},Ht.setPositions=function(e,t,r,n){if(vt){var i=vt.scrollTrigger,o=vt.duration(),a=i.end-i.start;e=i.start+a*e/o,t=i.start+a*t/o}Ht.refresh(!1,!1,{start:Oe(e,r&&!!Ht._startClamp),end:Oe(t,r&&!!Ht._endClamp)},n),Ht.update()},Ht.adjustPinSpacing=function(e){if(Y&&e){var t=Y.indexOf(Tt.d)+1;Y[t]=parseFloat(Y[t])+e+ct,Y[1]=parseFloat(Y[1])+e+ct,$t(Y)}},Ht.disable=function(t,r){if(Ht.enabled&&(!1!==t&&Ht.revert(!0,!0),Ht.enabled=Ht.isActive=!1,r||V&&V.pause(),re=0,i&&(i.uncache=1),Lt&&yt(e,"refreshInit",Lt),ee&&(ee.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!Rt)){for(var o=Et.length;o--;)if(Et[o].scroller===Ot&&Et[o]!==Ht)return;yt(Ot,"resize",At),Rt||yt(Ot,"scroll",Pt)}},Ht.kill=function(e,n){Ht.disable(e,n),V&&!n&&V.kill(),he&&delete St[he];var o=Et.indexOf(Ht);o>=0&&Et.splice(o,1),o===te&&Ut>0&&te--,o=0,Et.forEach(function(e){return e.scroller===Ht.scroller&&(o=1)}),o||we||(Ht.scroll.rec=0),r&&(r.scrollTrigger=null,e&&r.revert({kill:!1}),n||r.kill()),u&&[u,f,d,p].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),ke===Ht&&(ke=0),Ee&&(i&&(i.uncache=1),o=0,Et.forEach(function(e){return e.pin===Ee&&o++}),o||(i.spacer=0)),t.onKill&&t.onKill(Ht)},Et.push(Ht),Ht.enable(!1,!1),se&&se(Ht),r&&r.add&&!v){var lr=Ht.update;Ht.update=function(){Ht.update=lr,y.cache++,l||c||Ht.refresh()},F.delayedCall(.01,Ht.update),v=.01,l=c=0}else Ht.refresh();Ee&&function(){if(_e!==Ft){var e=_e=Ft;requestAnimationFrame(function(){return e===Ft&&Wt(!0)})}}()}else this.update=this.refresh=this.kill=Ye},e.register=function(t){return H||(F=t||Xe(),Be()&&window.document&&e.enable(),H=Me),H},e.defaults=function(e){if(e)for(var t in e)wt[t]=e[t];return wt},e.disable=function(e,t){Me=0,Et.forEach(function(r){return r[t?"kill":"disable"](e)}),yt(L,"wheel",Pt),yt(W,"scroll",Pt),clearInterval($),yt(W,"touchcancel",Ye),yt(U,"touchstart",Ye),vt(yt,W,"pointerdown,touchstart,mousedown",De),vt(yt,W,"pointerup,touchend,mouseup",Re),G.kill(),Le(yt);for(var r=0;r0&&n.left+i0&&n.top+i=0&&Bt.splice(t,5),Bt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),F.core.getCache(e),pe())}}):Bt},ar.revert=function(e,t){return zt(!e,t)},ar.create=function(e,t){return new ar(e,t)},ar.refresh=function(e){return e?At(!0):(H||ar.register())&&Wt(!0)},ar.update=function(e){return++y.cache&&Vt(!0===e?2:0)},ar.clearScrollMemory=Nt,ar.maxScroll=function(e,t){return He(e,t?O:A)},ar.getScrollFunc=function(e,t){return R(D(e),t?O:A)},ar.getById=function(e){return St[e]},ar.getAll=function(){return Et.filter(function(e){return"ScrollSmoother"!==e.vars.id})},ar.isScrolling=function(){return!!Se},ar.snapDirectional=gt,ar.addEventListener=function(e,t){var r=Dt[e]||(Dt[e]=[]);~r.indexOf(t)||r.push(t)},ar.removeEventListener=function(e,t){var r=Dt[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},ar.batch=function(e,t){var r,n=[],i={},o=t.interval||.016,a=t.batchMax||1e9,s=function(e,t){var r=[],n=[],i=F.delayedCall(o,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||i.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&i.progress(1)}};for(r in t)i[r]="on"===r.substr(0,2)&&qe(t[r])&&"onRefreshInit"!==r?s(0,t[r]):t[r];return qe(a)&&(a=a(),mt(ar,"refresh",function(){return a=t.batchMax()})),j(e).forEach(function(e){var t={};for(r in i)t[r]=i[r];t.trigger=e,n.push(ar.create(t))}),n};var sr,lr=function(e,t,r,n){return t>n?e(n):t<0&&e(0),r>n?(n-t)/(r-t):r<0?t/(t-r):1},cr=function e(t,r){!0===r?t.style.removeProperty("touch-action"):t.style.touchAction=!0===r?"auto":r?"pan-"+r+(N.isTouch?" pinch-zoom":""):"none",t===q&&e(U,r)},ur={auto:1,scroll:1},fr=function(e){var t,r=e.event,n=e.target,i=e.axis,o=(r.changedTouches?r.changedTouches[0]:r).target,a=o._gsap||F.core.getCache(o),s=Te();if(!a._isScrollT||s-a._isScrollT>2e3){for(;o&&o!==U&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!ur[(t=ut(o)).overflowY]&&!ur[t.overflowX]);)o=o.parentNode;a._isScroll=o&&o!==n&&!ze(o)&&(ur[(t=ut(o)).overflowY]||ur[t.overflowX]),a._isScrollT=s}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},dr=function(e,t,r,n){return N.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&fr,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&mt(W,N.eventTypes[0],hr,!1,!0)},onDisable:function(){return yt(W,N.eventTypes[0],hr,!0)}})},pr=/(input|label|select|textarea)/i,hr=function(e){var t=pr.test(e.target.tagName);(t||sr)&&(e._gsapAllow=!0,sr=t)},gr=function(e){Ve(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,r,n,i,o,a,s,l,c=e,u=c.normalizeScrollX,f=c.momentum,d=c.allowNestedScroll,p=c.onRelease,h=D(e.target)||q,g=F.core.globals().ScrollSmoother,v=g&&g.get(),m=de&&(e.content&&D(e.content)||v&&!1!==e.content&&!v.smooth()&&v.content()),x=R(h,A),b=R(h,O),w=1,_=(N.isTouch&&L.visualViewport?L.visualViewport.scale*L.visualViewport.width:L.outerWidth)/L.innerWidth,k=0,C=qe(f)?function(){return f(t)}:function(){return f||2.8},T=dr(h,e.type,!0,d),E=function(){return i=!1},S=Ye,M=Ye,P=function(){r=He(h,A),M=K(de?1:0,r),u&&(S=K(0,He(h,O))),n=Ft},Y=function(){m._gsap.y=Ie(parseFloat(m._gsap.y)+x.offset)+"px",m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(m._gsap.y)+", 0, 1)",x.offset=x.cacheID=0},I=function(){P(),o.isActive()&&o.vars.scrollY>r&&(x()>r?o.progress(1)&&x(r):o.resetTo("scrollY",r))};return m&&F.set(m,{y:"+=0"}),e.ignoreCheck=function(e){return de&&"touchmove"===e.type&&function(){if(i){requestAnimationFrame(E);var e=Ie(t.deltaY/2),r=M(x.v-e);if(m&&r!==x.v+x.offset){x.offset=r-x.v;var n=Ie((parseFloat(m&&m._gsap.y)||0)-x.offset);m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",m._gsap.y=n+"px",x.cacheID=y.cache,Vt()}return!0}x.offset&&Y(),i=!0}()||w>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){i=!1;var e=w;w=Ie((L.visualViewport&&L.visualViewport.scale||1)/_),o.pause(),e!==w&&cr(h,w>1.01||!u&&"x"),a=b(),s=x(),P(),n=Ft},e.onRelease=e.onGestureStart=function(e,t){if(x.offset&&Y(),t){y.cache++;var n,i,a=C();u&&(i=(n=b())+.05*a*-e.velocityX/.227,a*=lr(b,n,i,He(h,O)),o.vars.scrollX=S(i)),i=(n=x())+.05*a*-e.velocityY/.227,a*=lr(x,n,i,He(h,A)),o.vars.scrollY=M(i),o.invalidate().duration(a).play(.01),(de&&o.vars.scrollY>=r||n>=r-1)&&F.to({},{onUpdate:I,duration:a})}else l.restart(!0);p&&p(e)},e.onWheel=function(){o._ts&&o.pause(),Te()-k>1e3&&(n=0,k=Te())},e.onChange=function(e,t,r,i,o){if(Ft!==n&&P(),t&&u&&b(S(i[2]===t?a+(e.startX-e.x):b()+t-i[1])),r){x.offset&&Y();var l=o[2]===r,c=l?s+e.startY-e.y:x()+r-o[1],f=M(c);l&&c!==f&&(s+=f-c),x(f)}(r||t)&&Vt()},e.onEnable=function(){cr(h,!u&&"x"),ar.addEventListener("refresh",I),mt(L,"resize",I),x.smooth&&(x.target.style.scrollBehavior="auto",x.smooth=b.smooth=!1),T.enable()},e.onDisable=function(){cr(h,!0),yt(L,"resize",I),ar.removeEventListener("refresh",I),T.kill()},e.lockAxis=!1!==e.lockAxis,(t=new N(e)).iOS=de,de&&!x()&&x(1),de&&F.ticker.add(Ye),l=t._dc,o=F.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:u?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:nr(x,x(),function(){return o.pause()})},onUpdate:Vt,onComplete:l.vars.onComplete}),t};ar.sort=function(e){if(qe(e))return Et.sort(e);var t=L.pageYOffset||0;return ar.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+L.innerHeight}),Et.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))})},ar.observe=function(e){return new N(e)},ar.normalizeScroll=function(e){if(void 0===e)return le;if(!0===e&&le)return le.enable();if(!1===e)return le&&le.kill(),void(le=e);var t=e instanceof N?e:gr(e);return le&&le.target===t.target&&le.kill(),ze(t.target)&&(le=t),t},ar.core={_getVelocityProp:Y,_inputObserver:dr,_scrollers:y,_proxies:x,bridge:{ss:function(){Se||It("scrollStart"),Se=Te()},ref:function(){return J}}},Xe()&&F.registerPlugin(ar),e.ScrollTrigger=ar,e.default=ar,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete window.default}); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).SplitType=e()}(this,function(){"use strict";function t(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},n=l(e);return void 0!==n.types?t=n.types:void 0!==n.split&&(t=n.split),void 0!==t&&(n.types=(u(t)||f(t)?String(t):"").split(",").map(function(t){return String(t).trim()}).filter(function(t){return/((line)|(word)|(char))/i.test(t)})),(n.absolute||n.position)&&(n.absolute=n.absolute||/absolute/.test(e.position)),n}function d(t){var e=u(t)||f(t)?String(t):"";return{none:!e,lines:/line/i.test(e),words:/word/i.test(e),chars:/char/i.test(e)}}function h(t){return null!==t&&"object"==typeof t}function y(t){return h(t)&&/^(1|3|11)$/.test(t.nodeType)}function g(t){return f(t)?t:null==t?[]:function(t){return h(t)&&function(t){return"number"==typeof t&&t>-1&&t%1==0}(t.length)}(t)?Array.prototype.slice.call(t):[t]}function v(t){var e=t;return u(t)&&(e=/^(#[a-z]\w+)$/.test(t.trim())?document.getElementById(t.trim().slice(1)):document.querySelectorAll(t)),g(e).reduce(function(t,e){return[].concat(a(t),a(g(e).filter(y)))},[])}!function(){function t(){for(var t=arguments.length,e=0;e1&&void 0!==arguments[1]?arguments[1]:" ";return(t?String(t):"").trim().replace(/\s+/g," ").split(e)}(i).reduce(function(t,n,i,l){var f,p;return r.chars&&(p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t=function(t){return null==t?"":String(t)}(t))&&u(t)&&!e&&z(t)?function(t){return z(t)?function(t){return t.match(H)||[]}(t):function(t){return t.split("")}(t)}(t):t.split(e)}(n).map(function(t){var n=V(o,{class:"".concat(e.splitClass," ").concat(e.charClass),style:"display: inline-block;",children:t});return j(n,"isChar",!0),s=[].concat(a(s),[n]),n})),r.words||r.lines?(j(f=V(o,{class:"".concat(e.wordClass," ").concat(e.splitClass),style:"display: inline-block; ".concat(r.words&&e.absolute?"position: relative;":""),children:r.chars?p:n}),{isWord:!0,isWordStart:!0,isWordEnd:!0}),c.appendChild(f)):p.forEach(function(t){c.appendChild(t)}),i=O)&&(p=d,u.push(f=[])),f.push(r)),e.absolute&&j(r,{top:d,left:h,width:s,height:l}))}),y&&y.removeChild(t),c.lines&&(h=u.map(function(t){var n=V(s,{class:"".concat(e.splitClass," ").concat(e.lineClass),style:"display: block; text-align: ".concat(w,"; width: 100%;")});j(n,"isLine",!0);var r={height:0,top:1e4};return m.appendChild(n),t.forEach(function(t,e,o){var i=C(t),a=i.isWordEnd,c=i.top,s=i.height,l=o[e+1];r.height=Math.max(r.height,s),r.top=Math.min(r.top,c),n.appendChild(t),a&&C(l).isWordStart&&n.append(" ")}),e.absolute&&j(n,{height:r.height,top:r.top}),n}),c.words||Y(m),t.replaceChildren(m)),e.absolute&&(t.style.width="".concat(t.style.width||o,"px"),t.style.height="".concat(r,"px"),g(l).forEach(function(t){var e=C(t),n=e.isLine,r=e.top,o=e.left,i=e.width,c=e.height,s=C(t.parentElement),l=!n&&s.isLine;t.style.top="".concat(l?r-s.top:r,"px"),t.style.left="".concat(n?a.left:o-(l?a.left:0),"px"),t.style.height="".concat(c,"px"),t.style.width="".concat(n?a.width:i,"px"),t.style.position="absolute"})),y&&(v?y.insertBefore(t,v):y.appendChild(t)),h}(t,e.settings,n);e.lines=[].concat(a(e.lines),a(o))}}),this.isSplit=!0,window.scrollTo(n[0],n[1]),m(w).forEach(function(t){var e=i(t,2),n=e[0],r=e[1],o=r.isRoot,a=r.isSplit;o&&a||(w[n]=null,delete w[n])}))}},{key:"revert",value:function(){this.isSplit&&(this.lines=null,this.words=null,this.chars=null,this.isSplit=!1),t.revert(this.elements)}}]),t}()}); jQuery(document).on("ready fusion-widget-render-Fusion_Widget_Tabs",function(){jQuery(".fusion-tabs-widget .fusion-tabs-nav li a").on("click",function(n){var t=jQuery(this).data("link");n.preventDefault(),jQuery(this).parents(".fusion-tabs-nav").find("li").removeClass("active"),jQuery(this).parent().addClass("active"),jQuery(this).parents(".fusion-tabs-widget").find(".fusion-tab-content").hide(),jQuery(this).parents(".fusion-tabs-widget").find('.fusion-tab-content[data-name="'+t+'"]').fadeIn()})}); jQuery(document).ready(function(){jQuery(".fusion-vertical-menu-widget .current_page_item, .fusion-vertical-menu-widget .current-menu-item").each(function(){var e=jQuery(this),n=e.parent();e.find(".children, .sub-menu").length&&e.find(".children, .sub-menu").show("slow"),e.parentsUntil(".fusion-vertical-menu-widget",".children, .sub-menu").show("slow"),n.hasClass("fusion-vertical-menu-widget")&&e.find("ul").show("slow")})}),jQuery(window).on("load",function(){jQuery(".fusion-vertical-menu-widget.click li a .arrow").on("click",function(e){var n=jQuery(this).parent(),i=n.parent(),t=i.find("> .children, > .sub-menu");if(e.preventDefault(),(i.hasClass("page_item_has_children")||i.hasClass("menu-item-has-children"))&&(t.length&&!t.is(":visible")?t.stop(!0,!0).slideDown("slow"):t.stop(!0,!0).slideUp("slow")),n.parent(".page_item_has_children.current_page_item, .menu-item-has-children.current-menu-item").length)return!1}),jQuery(".fusion-vertical-menu-widget.hover li").each(function(){var e;jQuery(this).hover(function(){var n=jQuery(this).find("> .children, > .sub-menu");clearTimeout(e),e=setTimeout(function(){n.length&&n.stop(!0,!0).slideDown("slow")},500)},function(){var n=jQuery(this),i=n.find(".children, .sub-menu");clearTimeout(e),e=setTimeout(function(){0===n.find(".current_page_item").length&&!1===n.hasClass("current_page_item")&&i.stop(!0,!0).slideUp("slow")},500)})})}); var fusionJSVars={"visibility_small":"850","visibility_medium":"1024"};var fusion={fusionResizeWidth:0,fusionResizeHeight:0,currentPostID:null,toBool:function(t){return 1===t||"1"===t||!0===t||"true"===t||"on"===t},restArguments:function(t,e){return e=null==e?t.length-1:+e,function(){for(var n,i=Math.max(arguments.length-e,0),o=Array(i),r=0;rt.rootBounds.height?(i=t.rootBounds.height/t.boundingClientRect.height,e.thresholds.filter(function(e){return e>=t.intersectionRatio&&e<=i}).length||(n=!0)):t.isIntersecting&&1===t.intersectionRatio&&(n=!0):t.isIntersecting&&(n=!0),n},getCurrentPostID:function(){return null===this.currentPostID&&(this.currentPostID=void 0!==jQuery("body").data("awb-post-id")?jQuery("body").data("awb-post-id"):0),this.currentPostID}};fusion.delay=fusion.restArguments(function(t,e,n){return setTimeout(function(){return t.apply(null,n)},e)}),fusion.ready=function(t){if("function"==typeof t)return"complete"===document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)},fusion.passiveSupported=function(){var t,e;if(void 0===fusion.supportsPassive){try{e={get passive(){t=!0}},window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){t=!1}fusion.supportsPassive=!!t&&{passive:!0}}return fusion.supportsPassive},fusion.getElements=function(t){var e=[];return t?("object"==typeof t?Object.keys(t).forEach(function(n){Element.prototype.isPrototypeOf(t[n])&&e.push(t[n])}):"string"==typeof t&&(e=document.querySelectorAll(t),e=Array.prototype.slice.call(e)),e):[]},Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),jQuery(document).ready(function(){var t;void 0===jQuery.migrateVersion&&2
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:o},l.prototype.init=function(e,i,o){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var r=n[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(i){var o=this.$element.data();for(var n in o)o.hasOwnProperty(n)&&-1!==t.inArray(n,e)&&delete o[n];return(i=t.extend({},this.getDefaults(),this.$element.data(),i)).delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),i.sanitize&&(i.template=a(i.template,i.whiteList,i.sanitizeFn)),i},l.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},l.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)}},l.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var o=this,n=this.tip(),s=this.getUID(this.type);this.setContent(),n.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&n.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,p=a.test(r);p&&(r=r.replace(a,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this).addClass(this.$element.data("class")),this.options.container?n.appendTo(t(document).find(this.options.container)):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),f=n[0].offsetWidth,u=n[0].offsetHeight;if(p){var c=r,d=this.getPosition(this.$viewport);r="bottom"==r&&h.bottom+u>d.bottom?"top":"top"==r&&h.top-ud.width?"left":"left"==r&&h.left-fr.top+r.height&&(n.top=r.top+r.height-l)}else{var p=e.left-s,h=e.left+s+i;pr.right&&(n.left=r.left+r.width-h)}return n},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})},l.prototype.sanitizeHtml=function(t){return a(t,this.options.whiteList,this.options.sanitizeFn)};var p=t.fn.tooltip;t.fn.tooltip=function(e){return this.each(function(){var i=t(this),o=i.data("bs.tooltip"),n="object"==typeof e&&e;!o&&/destroy|hide/.test(e)||(o||i.data("bs.tooltip",o=new l(this,n)),"string"==typeof e&&"function"==typeof o[e]&&o[e]())})},t.fn.tooltip.Constructor=l,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=p,this}}(jQuery); !function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e)}):"object"==typeof module&&"object"==typeof module.exports?exports=n(require("jquery")):n(jQuery)}(function(n){n.easing.jswing=n.easing.swing;var e=Math.pow,t=Math.sqrt,u=Math.sin,r=Math.cos,i=Math.PI,a=1.70158,c=1.525*a,o=a+1,s=2*i/3,f=2*i/4.5;function I(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}n.extend(n.easing,{def:"easeOutQuad",swing:function(e){return n.easing[n.easing.def](e)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-e(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-e(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-e(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-e(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-e(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-e(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-e(-2*n+2,5)/2},easeInSine:function(n){return 1-r(n*i/2)},easeOutSine:function(n){return u(n*i/2)},easeInOutSine:function(n){return-(r(i*n)-1)/2},easeInExpo:function(n){return 0===n?0:e(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-e(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?e(2,20*n-10)/2:(2-e(2,-20*n+10))/2},easeInCirc:function(n){return 1-t(1-e(n,2))},easeOutCirc:function(n){return t(1-e(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-t(1-e(2*n,2)))/2:(t(1-e(-2*n+2,2))+1)/2},easeInElastic:function(n){return 0===n?0:1===n?1:-e(2,10*n-10)*u((10*n-10.75)*s)},easeOutElastic:function(n){return 0===n?0:1===n?1:e(2,-10*n)*u((10*n-.75)*s)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-e(2,20*n-10)*u((20*n-11.125)*f)/2:e(2,-20*n+10)*u((20*n-11.125)*f)/2+1},easeInBack:function(n){return o*n*n*n-a*n*n},easeOutBack:function(n){return 1+o*e(n-1,3)+a*e(n-1,2)},easeInOutBack:function(n){return n<.5?e(2*n,2)*(7.189819*n-c)/2:(e(2*n-2,2)*((c+1)*(2*n-2)+c)+2)/2},easeInBounce:function(n){return 1-I(1-n)},easeOutBounce:I,easeInOutBounce:function(n){return n<.5?(1-I(1-2*n))/2:(1+I(2*n-1))/2}})}); /*! * FitVids 1.1 * * Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ * Released under the WTFPL license - http://sam.zoy.org/wtfpl/ * */ !function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("div");a.innerHTML='

x

',r.appendChild(a.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);var a=t(this).find(e.join(","));(a=(a=a.not("object object")).not(r)).each(function(){var e=t(this);if(!(e.parents(r).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("name")){var a="fitvid"+t.fn.fitVids._count;e.attr("name",a),t.fn.fitVids._count++}e.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*i+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto); !function(e){var t=!0;e.flexslider=function(a,n){var i=e(a);void 0===n.rtl&&"rtl"==e("html").attr("dir")&&(n.rtl=!0),i.vars=e.extend({},e.flexslider.defaults,n);var s,r=i.vars.namespace,o=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,l=("ontouchstart"in window||o||window.DocumentTouch&&document instanceof DocumentTouch)&&i.vars.touch,c="click touchend MSPointerUp keyup",d="",u="vertical"===i.vars.direction,v=i.vars.reverse,p=i.vars.itemWidth>0,m="fade"===i.vars.animation,f=""!==i.vars.asNavFor,h={};e.data(a,"flexslider",i),h={init:function(){i.animating=!1,i.currentSlide=parseInt(i.vars.startAt?i.vars.startAt:0,10),isNaN(i.currentSlide)&&(i.currentSlide=0),i.animatingTo=i.currentSlide,i.atEnd=0===i.currentSlide||i.currentSlide===i.last,i.containerSelector=i.vars.selector.substr(0,i.vars.selector.search(" ")),i.slides=e(i.vars.selector,i),i.container=e(i.containerSelector,i),i.count=i.slides.length,i.syncExists=e(i.vars.sync).length>0,"slide"===i.vars.animation&&(i.vars.animation="swing"),i.prop=u?"top":i.vars.rtl?"marginRight":"marginLeft",i.args={},i.manualPause=!1,i.stopped=!1,i.started=!1,i.startTimeout=null,i.transitions=!i.vars.video&&!m&&i.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var a in t)if(void 0!==e.style[t[a]])return i.pfx=t[a].replace("Perspective","").toLowerCase(),i.prop="-"+i.pfx+"-transform",!0;return!1}(),i.isFirefox=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,i.ensureAnimationEnd="",""!==i.vars.controlsContainer&&(i.controlsContainer=e(i.vars.controlsContainer).length>0&&e(i.vars.controlsContainer)),""!==i.vars.manualControls&&(i.manualControls=e(i.vars.manualControls).length>0&&e(i.vars.manualControls)),""!==i.vars.customDirectionNav&&(i.customDirectionNav=2===e(i.vars.customDirectionNav).length&&e(i.vars.customDirectionNav)),i.vars.randomize&&(i.slides.sort(function(){return Math.round(Math.random())-.5}),i.container.empty().append(i.slides)),i.doMath(),i.setup("init"),i.vars.controlNav&&h.controlNav.setup(),i.vars.directionNav&&h.directionNav.setup(),i.vars.keyboard&&(1===e(i.containerSelector).length||i.vars.multipleKeyboard)&&e(document).on("keyup",function(e){var t=e.keyCode;if(!i.animating&&(39===t||37===t)){var a=i.vars.rtl?37===t?i.getTarget("next"):39===t&&i.getTarget("prev"):39===t?i.getTarget("next"):37===t&&i.getTarget("prev");i.flexAnimate(a,i.vars.pauseOnAction)}}),i.vars.mousewheel&&i.on("mousewheel",function(e,t,a,n){e.preventDefault();var s=t<0?i.getTarget("next"):i.getTarget("prev");i.flexAnimate(s,i.vars.pauseOnAction)}),i.vars.pausePlay&&h.pausePlay.setup(),i.vars.slideshow&&i.vars.pauseInvisible&&h.pauseInvisible.init(),i.vars.slideshow&&(i.vars.pauseOnHover&&i.hover(function(){i.manualPlay||i.manualPause||i.pause()},function(){i.manualPause||i.manualPlay||i.stopped||i.play()}),i.vars.pauseInvisible&&h.pauseInvisible.isHidden()||(i.vars.initDelay>0?i.startTimeout=setTimeout(i.play,i.vars.initDelay):i.play())),f&&h.asNav.setup(),l&&i.vars.touch&&h.touch(),(!m||m&&i.vars.smoothHeight)&&e(window).on("resize orientationchange focus",h.resize),i.find("img").attr("draggable","false"),setTimeout(function(){i.vars.start(i)},200)},asNav:{setup:function(){i.asNav=!0,i.animatingTo=Math.floor(i.currentSlide/i.move),i.currentItem=i.currentSlide,i.slides.removeClass(r+"active-slide").eq(i.currentItem).addClass(r+"active-slide"),o?(a._slider=i,i.slides.each(function(){var t=this;t._gesture=new MSGesture,t._gesture.target=t,t.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),t.addEventListener("MSGestureTap",function(t){t.preventDefault();var a=e(this),n=a.index();e(i.vars.asNavFor).data("flexslider").animating||a.hasClass("active")||(i.direction=i.currentItem'),i.pagingCount>1)for(var o=0;o").attr("href","#").text(s),"thumbnails"===i.vars.controlNav&&(t=e("").attr("src",a.attr("data-thumb"))),""!==a.attr("data-thumb-alt")&&t.attr("alt",a.attr("data-thumb-alt")),"thumbnails"===i.vars.controlNav&&!0===i.vars.thumbCaptions){var l=a.attr("data-thumbcaption");if(""!==l&&void 0!==l){var u=e("").addClass(r+"caption").text(l);t.append(u)}}var v=e("
  • ");t.appendTo(v),v.append("
  • "),i.controlNavScaffold.append(v),s++}i.controlsContainer?e(i.controlsContainer).append(i.controlNavScaffold):i.append(i.controlNavScaffold),h.controlNav.set(),h.controlNav.active(),i.controlNavScaffold.on(c,"a, img",function(t){if(t.preventDefault(),""===d||d===t.type){var a=e(this),n=i.controlNav.index(a);a.hasClass(r+"active")||(i.direction=n>i.currentSlide?"next":"prev",i.flexAnimate(n,i.vars.pauseOnAction))}""===d&&(d=t.type),h.setToClearWatchedEvent()})},setupManual:function(){i.controlNav=i.manualControls,h.controlNav.active(),i.controlNav.on(c,function(t){if(t.preventDefault(),""===d||d===t.type){var a=e(this),n=i.controlNav.index(a);a.hasClass(r+"active")||(n>i.currentSlide?i.direction="next":i.direction="prev",i.flexAnimate(n,i.vars.pauseOnAction))}""===d&&(d=t.type),h.setToClearWatchedEvent()})},set:function(){var t="thumbnails"===i.vars.controlNav?"img":"a";i.controlNav=e("."+r+"control-nav li "+t,i.controlsContainer?i.controlsContainer:i)},active:function(){i.controlNav.removeClass(r+"active").eq(i.animatingTo).addClass(r+"active")},update:function(t,a){i.pagingCount>1&&"add"===t?i.controlNavScaffold.append(e('
  • '+i.count+"
  • ")):1===i.pagingCount?i.controlNavScaffold.find("li").remove():i.controlNav.eq(a).closest("li").remove(),h.controlNav.set(),i.pagingCount>1&&i.pagingCount!==i.controlNav.length?i.update(a,t):h.controlNav.active()}},directionNav:{setup:function(){var t=e('");i.customDirectionNav?i.directionNav=i.customDirectionNav:i.controlsContainer?(e(i.controlsContainer).append(t),i.directionNav=e("."+r+"direction-nav li a",i.controlsContainer)):(i.append(t),i.directionNav=e("."+r+"direction-nav li a",i)),h.directionNav.update(),i.directionNav.on(c,function(t){var a;t.preventDefault(),""!==d&&d!==t.type||(a=e(this).hasClass(r+"next")?i.getTarget("next"):i.getTarget("prev"),i.flexAnimate(a,i.vars.pauseOnAction)),""===d&&(d=t.type),h.setToClearWatchedEvent()})},update:function(){var e=r+"disabled";1===i.pagingCount?i.directionNav.addClass(e).attr("tabindex","-1"):i.vars.animationLoop?i.directionNav.removeClass(e).removeAttr("tabindex"):0===i.animatingTo?i.directionNav.removeClass(e).filter("."+r+"prev").addClass(e).attr("tabindex","-1"):i.animatingTo===i.last?i.directionNav.removeClass(e).filter("."+r+"next").addClass(e).attr("tabindex","-1"):i.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=e('
    ');i.controlsContainer?(i.controlsContainer.append(t),i.pausePlay=e("."+r+"pauseplay a",i.controlsContainer)):(i.append(t),i.pausePlay=e("."+r+"pauseplay a",i)),h.pausePlay.update(i.vars.slideshow?r+"pause":r+"play"),i.pausePlay.on(c,function(t){t.preventDefault(),""!==d&&d!==t.type||(e(this).hasClass(r+"pause")?(i.manualPause=!0,i.manualPlay=!1,i.pause()):(i.manualPause=!1,i.manualPlay=!0,i.play())),""===d&&(d=t.type),h.setToClearWatchedEvent()})},update:function(e){"play"===e?i.pausePlay.removeClass(r+"pause").addClass(r+"play").html(i.vars.playText):i.pausePlay.removeClass(r+"play").addClass(r+"pause").html(i.vars.pauseText)}},touch:function(){var e,t,n,s,r,l,c,d,f,h=!1,g=0,y=0;if(o){}else c=function(r){i.animating?r.preventDefault():(window.navigator.msPointerEnabled||1===r.touches.length)&&(i.pause(),s=u?i.h:i.w,l=Number(new Date),g=r.touches[0].pageX,y=r.touches[0].pageY,n=p&&v&&i.animatingTo===i.last?0:p&&v?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:p&&i.currentSlide===i.last?i.limit:p?(i.itemW+i.vars.itemMargin)*i.move*i.currentSlide:v?(i.last-i.currentSlide+i.cloneOffset)*s:(i.currentSlide+i.cloneOffset)*s,e=u?y:g,t=u?g:y,a.addEventListener("touchmove",d,!1),a.addEventListener("touchend",f,!1))},d=function(a){g=a.touches[0].pageX,y=a.touches[0].pageY,r=u?e-y:(i.vars.rtl?-1:1)*(e-g);(!(h=u?Math.abs(r)500)&&(a.preventDefault(),!m&&i.transitions&&(i.vars.animationLoop||(r/=0===i.currentSlide&&r<0||i.currentSlide===i.last&&r>0?Math.abs(r)/s+2:1),i.setProps(n+r,"setTouch")))},f=function(o){if(a.removeEventListener("touchmove",d,!1),i.animatingTo===i.currentSlide&&!h&&null!==r){var c=v?-r:r,u=c>0?i.getTarget("next"):i.getTarget("prev");i.canAdvance(u)&&(Number(new Date)-l<550&&Math.abs(c)>50||Math.abs(c)>s/2)?i.flexAnimate(u,i.vars.pauseOnAction):!m&&i.canAdvance(u)&&i.flexAnimate(i.currentSlide,i.vars.pauseOnAction,!0)}a.removeEventListener("touchend",f,!1),i.vars.slideshow&&null!==r&&50>Math.abs(c)&&i.play(),e=null,t=null,r=null,n=null},a.addEventListener("touchstart",c,{passive:!0,capture:!1})},resize:function(){!i.animating&&i.is(":visible")&&(p||i.doMath(),m?h.smoothHeight():p?(i.slides.width(i.computedW),i.update(i.pagingCount),i.setProps()):u?(i.viewport.height(i.h),i.setProps(i.h,"setTotal")):(i.vars.smoothHeight&&h.smoothHeight(),i.newSlides.width(i.computedW),i.setProps(i.computedW,"setTotal")))},smoothHeight:function(e){if(!u||m){var t=m?i:i.viewport;e?t.animate({height:i.slides.eq(i.animatingTo).innerHeight()},e):t.innerHeight(i.slides.eq(i.animatingTo).innerHeight())}},sync:function(t){var a=e(i.vars.sync).data("flexslider"),n=i.animatingTo;switch(t){case"animate":a.flexAnimate(n,i.vars.pauseOnAction,!1,!0);break;case"play":a.playing||a.asNav||a.play();break;case"pause":a.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=e(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var e=h.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){h.pauseInvisible.isHidden()?i.startTimeout?clearTimeout(i.startTimeout):i.pause():i.started?i.play():i.vars.initDelay>0?setTimeout(i.play,i.vars.initDelay):i.play()})}},isHidden:function(){var e=h.pauseInvisible.getHiddenProp();return!!e&&document[e]},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;ti.currentSlide?"next":"prev"),f&&1===i.pagingCount&&(i.direction=i.currentItemi.limit&&1!==i.visible?i.limit:y):g=0===i.currentSlide&&t===i.count-1&&i.vars.animationLoop&&"next"!==i.direction?v?(i.count+i.cloneOffset)*x:0:i.currentSlide===i.last&&0===t&&i.vars.animationLoop&&"prev"!==i.direction?v?0:(i.count+1)*x:v?(i.count-1-t+i.cloneOffset)*x:(t+i.cloneOffset)*x,i.setProps(g,"",i.vars.animationSpeed),i.transitions?(i.vars.animationLoop&&i.atEnd||(i.animating=!1,i.currentSlide=i.animatingTo),i.container.off("webkitTransitionEnd transitionend"),i.container.on("webkitTransitionEnd transitionend",function(){clearTimeout(i.ensureAnimationEnd),i.wrapup(x)}),clearTimeout(i.ensureAnimationEnd),i.ensureAnimationEnd=setTimeout(function(){i.wrapup(x)},i.vars.animationSpeed+100)):i.container.animate(i.args,i.vars.animationSpeed,i.vars.easing,function(){i.wrapup(x)})}i.vars.smoothHeight&&h.smoothHeight(i.vars.animationSpeed)}},i.wrapup=function(e){m||p||(0===i.currentSlide&&i.animatingTo===i.last&&i.vars.animationLoop?i.setProps(e,"jumpEnd"):i.currentSlide===i.last&&0===i.animatingTo&&i.vars.animationLoop&&i.setProps(e,"jumpStart")),i.animating=!1,i.currentSlide=i.animatingTo,i.vars.after(i)},i.animateSlides=function(){!i.animating&&t&&i.flexAnimate(i.getTarget("next"))},i.pause=function(){clearInterval(i.animatedSlides),i.animatedSlides=null,i.playing=!1,i.vars.pausePlay&&h.pausePlay.update("play"),i.syncExists&&h.sync("pause")},i.play=function(){i.playing&&clearInterval(i.animatedSlides),i.animatedSlides=i.animatedSlides||setInterval(i.animateSlides,i.vars.slideshowSpeed),i.started=i.playing=!0,i.vars.pausePlay&&h.pausePlay.update("pause"),i.syncExists&&h.sync("play")},i.stop=function(){i.pause(),i.stopped=!0},i.canAdvance=function(e,t){var a=f?i.pagingCount-1:i.last;return!!t||(!(!f||i.currentItem!==i.count-1||0!==e||"prev"!==i.direction)||(!f||0!==i.currentItem||e!==i.pagingCount-1||"next"===i.direction)&&(!(e===i.currentSlide&&!f)&&(!!i.vars.animationLoop||(!i.atEnd||0!==i.currentSlide||e!==a||"next"===i.direction)&&(!i.atEnd||i.currentSlide!==a||0!==e||"next"!==i.direction))))},i.getTarget=function(e){return i.direction=e,"next"===e?i.currentSlide===i.last?0:i.currentSlide+1:0===i.currentSlide?i.last:i.currentSlide-1},i.setProps=function(e,t,a){var n,s=(n=e||(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo,function(){if(p)return"setTouch"===t?e:v&&i.animatingTo===i.last?0:v?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:i.animatingTo===i.last?i.limit:n;switch(t){case"setTotal":return v?(i.count-1-i.currentSlide+i.cloneOffset)*e:(i.currentSlide+i.cloneOffset)*e;case"setTouch":default:return e;case"jumpEnd":return v?e:i.count*e;case"jumpStart":return v?i.count*e:e}}()*(i.vars.rtl?1:-1)+"px");i.transitions&&(s=u?"translate3d(0,"+s+",0)":"translate3d("+parseInt(s)+"px,0,0)",a=void 0!==a?a/1e3+"s":"0s",i.container.css("-"+i.pfx+"-transition-duration",a),i.container.css("transition-duration",a)),i.args[i.prop]=s,(i.transitions||void 0===a)&&i.container.css(i.args),i.container.css("transform",s)},i.setup=function(t){var a,n;m?(i.vars.rtl?i.slides.css({width:"100%",float:"right",marginLeft:"-100%",position:"relative"}):i.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===t&&(l?i.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+i.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(i.currentSlide).css({opacity:1,zIndex:2}):0==i.vars.fadeFirstSlide?i.slides.css({opacity:0,display:"block",zIndex:1}).eq(i.currentSlide).css({zIndex:2}).css({opacity:1}):i.slides.css({opacity:0,display:"block",zIndex:1}).eq(i.currentSlide).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing)),i.vars.smoothHeight&&h.smoothHeight()):("init"===t&&(i.viewport=e('
    ').css({overflow:"hidden",position:"relative"}).appendTo(i).append(i.container),i.cloneCount=0,i.cloneOffset=0,v&&(n=e.makeArray(i.slides).reverse(),i.slides=e(n),i.container.empty().append(i.slides))),i.vars.animationLoop&&!p&&(i.cloneCount=2,i.cloneOffset=1,"init"!==t&&i.container.find(".clone").remove(),h.uniqueID(i.slides.first().clone().addClass("clone").attr("aria-hidden","true")).appendTo(i.container),h.uniqueID(i.slides.last().clone().addClass("clone").attr("aria-hidden","true")).prependTo(i.container)),i.newSlides=e(i.vars.selector,i),a=v?i.count-1-i.currentSlide+i.cloneOffset:i.currentSlide+i.cloneOffset,u&&!p?(i.container.height(200*(i.count+i.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){i.newSlides.css({display:"block"}),i.doMath(),i.viewport.height(i.h),i.setProps(a*i.h,"init")},"init"===t?100:0)):(i.container.width(200*(i.count+i.cloneCount)+"%"),i.setProps(a*i.computedW,"init"),setTimeout(function(){i.is(":visible")&&i.doMath(),i.vars.rtl?i.newSlides.css({width:i.computedW,marginRight:i.computedM,float:"right",display:"block"}):i.newSlides.css({width:i.computedW,marginRight:i.computedM,float:"left",display:"block"}),i.vars.smoothHeight&&h.smoothHeight()},"init"===t?100:0)));p||i.slides.removeClass(r+"active-slide").eq(i.currentSlide).addClass(r+"active-slide"),i.vars.init(i)},i.doMath=function(){var e=i.slides.first(),t=i.vars.itemMargin,a=i.vars.minItems,n=i.vars.maxItems;i.w=void 0===i.viewport?i.width():i.viewport.width(),i.isFirefox&&(i.w=i.width()),i.h=e.height(),i.boxPadding=e.outerWidth()-e.width(),p?(i.itemT=i.vars.itemWidth+t,i.itemM=t,i.minW=a?a*i.itemT:i.w,i.maxW=n?n*i.itemT-t:i.w,i.itemW=i.minW>i.w?(i.w-t*(a-1))/a:i.maxWi.w?i.w:i.vars.itemWidth,i.visible=Math.floor(i.w/(i.itemW+t)),i.move=i.vars.move>0&&i.vars.movei.w?i.itemW*(i.count-1)+t*(i.count-1):(i.itemW+t)*i.count-i.w-t):(i.itemW=i.w,jQuery(i).children(".flex-viewport").length&&i.w!==jQuery(i).children(".flex-viewport").width()&&(i.itemW=jQuery(i).children(".flex-viewport").width()),i.itemM=t,i.pagingCount=i.count,i.last=i.count-1),i.computedW=i.itemW-i.boxPadding,i.computedM=i.itemM},i.update=function(e,t){i.doMath(),p||(ei.controlNav.length?h.controlNav.update("add"):("remove"===t&&!p||i.pagingCounti.last&&(i.currentSlide-=1,i.animatingTo-=1),h.controlNav.update("remove",i.last))),i.vars.directionNav&&h.directionNav.update()},i.addSlide=function(t,a){var n=e(t);i.count+=1,i.last=i.count-1,u&&v?void 0!==a?i.slides.eq(i.count-a).after(n):i.container.prepend(n):void 0!==a?i.slides.eq(a).before(n):i.container.append(n),i.update(a,"add"),i.slides=e(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.added(i)},i.removeSlide=function(t){var a=isNaN(t)?i.slides.index(e(t)):t;i.count-=1,i.last=i.count-1,isNaN(t)?e(t,i.slides).remove():u&&v?i.slides.eq(i.last).remove():i.slides.eq(t).remove(),i.doMath(),i.update(a,"remove"),i.slides=e(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.removed(i)},i.destroy=function(){var t="."+i.vars.namespace;i.vars.controlNav&&i.controlNav.closest(t+"control-nav").remove(),i.vars.directionNav&&i.directionNav.closest(t+"direction-nav").remove(),i.vars.pausePlay&&i.pausePlay.closest(t+"pauseplay").remove(),i.find(".clone").remove(),i.off(i.vars.eventNamespace),"fade"!=i.vars.animation&&i.container.unwrap(),i.container.removeAttr("style"),i.container.off(i.vars.eventNamespace),i.slides.removeAttr("style"),i.slides.filter(t+"active-slide").removeClass(i.vars.namespace+"active-slide"),i.slides.off(i.vars.eventNamespace),e(document).off(i.vars.eventNamespace+"-"+i.id),e(window).off(i.vars.eventNamespace+"-"+i.id),i.stop(),i.removeData("flexslider")},h.init()},e(window).on({blur:function(e){t=!1},focus:function(e){t=!0}}),e.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"",nextText:"",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,isFirefox:!1,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){},rtl:!1},e.fn.flexslider=function(t){if(void 0===t&&(t={}),"object"==typeof t)return this.each(function(){var a=e(this),n=t.selector?t.selector:".slides > li",i=a.find(n);1===i.length&&!1===t.allowOneSlide||0===i.length?(i.fadeIn(400),t.start&&t.start(a)):void 0===a.data("flexslider")&&new e.flexslider(this,t)});var a=e(this).data("flexslider");switch(t){case"play":a.play();break;case"pause":a.pause();break;case"stop":a.stop();break;case"next":a.flexAnimate(a.getTarget("next"),!0);break;case"prev":case"previous":a.flexAnimate(a.getTarget("prev"),!0);break;case"destroy":a.destroy();break;default:"number"==typeof t&&a.flexAnimate(t,!0)}}}(jQuery); var fusionLightboxVideoVars={"lightbox_video_width":"1280","lightbox_video_height":"720"};(function($,window,undefined){var extensions={flash:["swf"],image:["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe","webp","avif"],iframe:["asp","aspx","cgi","cfm","htm","html","jsp","php","pl","php3","php4","php5","phtml","rb","rhtml","shtml","txt"],video:["avi","mov","mpg","mpeg","movie","mp4","webm","ogv","ogg","3gp","m4v"]},$win=$(window),$doc=$(document),browser,transform,gpuAcceleration,fullScreenApi="",userAgent=navigator.userAgent||navigator.vendor||window.opera,supportTouch="ontouchstart"in window||navigator.msMaxTouchPoints,isMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(userAgent.substr(0,4)),clickEvent=supportTouch?"click itap":"click",touchStartEvent=supportTouch?"mousedown.iLightBox touchstart.iLightBox":"mousedown.iLightBox",touchStopEvent=supportTouch?"mouseup.iLightBox touchend.iLightBox":"mouseup.iLightBox",touchMoveEvent=supportTouch?"mousemove.iLightBox touchmove.iLightBox":"mousemove.iLightBox",abs=Math.abs,sqrt=Math.sqrt,round=Math.round,max=Math.max,min=Math.min,floor=Math.floor,random=Math.random,pluginspages={quicktime:"http://www.apple.com/quicktime/download",flash:"http://www.adobe.com/go/getflash"},iLightBox=function(e,t,o,i){var n=this;if(n.options=t,n.selector=e.selector||e,n.context=e.context,n.instant=i,o.length<1?n.attachItems():n.items=o,n.vars={total:n.items.length,start:0,current:null,next:null,prev:null,BODY:$("body"),loadRequests:0,overlay:$('
    '),loader:$('
    '),toolbar:$('
    '),innerToolbar:$('
    '),title:$('
    '),closeButton:$(''),fullScreenButton:$(''),innerPlayButton:$(''),innerNextButton:$(''),innerPrevButton:$(''),holder:$('
    '),nextPhoto:$('
    '),prevPhoto:$('
    '),nextButton:$(''),prevButton:$(''),thumbnails:$('
    '),thumbs:!1,nextLock:!1,prevLock:!1,hashLock:!1,isMobile:!1,mobileMaxWidth:980,isInFullScreen:!1,isSwipe:!1,mouseID:0,cycleID:0,isPaused:0},n.vars.hideableElements=n.vars.nextButton.add(n.vars.prevButton),n.normalizeItems(),n.availPlugins(),n.options.startFrom=n.options.startFrom>0&&n.options.startFrom>=n.vars.total?n.vars.total-1:n.options.startFrom,n.options.startFrom=n.options.randomStart?floor(random()*n.vars.total):n.options.startFrom,n.vars.start=n.options.startFrom,i?n.instantCall():n.patchItemsEvents(),n.options.linkId&&(n.hashChangeHandler(),$win.iLightBoxHashChange(function(){n.hashChangeHandler()})),supportTouch){var a=/(click|mouseenter|mouseleave|mouseover|mouseout)/gi,r="itap";n.options.caption.show=n.options.caption.show.replace(a,r),n.options.caption.hide=n.options.caption.hide.replace(a,r),n.options.social.show=n.options.social.show.replace(a,r),n.options.social.hide=n.options.social.hide.replace(a,r)}n.options.controls.arrows&&$.extend(n.options.styles,{nextOffsetX:0,prevOffsetX:0,nextOpacity:0,prevOpacity:0})},matched;function getPixel(e,t){return parseInt(e.css(t),10)||0}function within(e,t,o){return eo?o:e}function getViewport(){var e=window,t="inner";return"innerWidth"in window||(t="client",e=document.documentElement||document.body),{width:e[t+"Width"],height:e[t+"Height"]}}function removeHash(){var e=getScrollXY();window.location.hash="",window.scrollTo(e.x,e.y)}function doAjax(e,t){e="//ilightbox.net/getSource/jsonp.php?url="+encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A");$.ajax({url:e,dataType:"jsonp"}),iLCallback=function(e){t.call(this,e)}}function findImageInElement(e){var t=$("*",e),o=new Array;return t.each(function(){var e="",t=this;if("none"!=$(t).css("background-image")?e=$(t).css("background-image"):void 0!==$(t).attr("src")&&"img"==t.nodeName.toLowerCase()&&(e=$(t).attr("src")),-1==e.indexOf("gradient"))for(var i=(e=(e=(e=(e=e.replace(/url\(\"/g,"")).replace(/url\(/g,"")).replace(/\"\)/g,"")).replace(/\)/g,"")).split(","),n=0;n0&&-1==$.inArray(i[n],o)){var a="";browser.msie&&browser.version<9&&(a="?"+floor(3e3*random())),o.push(i[n]+a)}}),o}function getExtension(e){var t=e.split(".").pop().toLowerCase(),o=-1!==t.indexOf("?")?"?"+t.split("?").pop():"";return t.replace(o,"")}function getTypeByExtension(e,t){var o,i=getExtension(e);if(o=-1!==extensions.image.indexOf(i)?"image":-1!==extensions.flash.indexOf(i)?"flash":-1!==extensions.video.indexOf(i)?"video":"iframe",t){const e=(t=jQuery(t)).attr("data-media-type");e&&(o=e)}return o}function percentToValue(e,t){return parseInt(t/100*e)}function parseURI(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function absolutizeURI(e,t){var o,i;return t=parseURI(t||""),e=parseURI(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t.authority:e.authority)+(o=t.protocol||t.authority||"/"===t.pathname.charAt(0)?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname,i=[],o.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?i.pop():i.push(e)}),i.join("").replace(/^\//,"/"===o.charAt(0)?"/":""))+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null}function version_compare(e,t,o){this.php_js=this.php_js||{},this.php_js.ENV=this.php_js.ENV||{};var i,n=0,a=0,r={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},s=function(e){return(e=(e=(""+e).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?e.split("."):[-8]},l=function(e){return e?isNaN(e)?r[e]||-7:parseInt(e,10):0};for(e=s(e),t=s(t),i=max(e.length,t.length),n=0;nt[n]){a=1;break}}if(!o)return a;switch(o){case">":case"gt":return a>0;case">=":case"ge":return a>=0;case"<=":case"le":return a<=0;case"==":case"=":case"eq":return 0===a;case"<>":case"!=":case"ne":return 0!==a;case"":case"<":case"lt":return a<0;default:return null}}function getScrollXY(){var e=0,t=0;return"number"==typeof window.pageYOffset?(t=window.pageYOffset,e=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(t=document.body.scrollTop,e=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(t=document.documentElement.scrollTop,e=document.documentElement.scrollLeft),{x:e,y:t}}iLightBox.prototype={showLoader:function(){var e=this;e.vars.loadRequests+=1,"horizontal"==e.options.path.toLowerCase()?e.vars.loader.addClass("ilightbox-show").stop().animate({top:"-30px"},e.options.show.speed,"easeOutCirc"):e.vars.loader.addClass("ilightbox-show").stop().animate({left:"-30px"},e.options.show.speed,"easeOutCirc")},hideLoader:function(){var e=this;e.vars.loadRequests-=1,e.vars.loadRequests=e.vars.loadRequests<0?0:e.vars.loadRequests,"horizontal"==e.options.path.toLowerCase()?e.vars.loadRequests<=0&&e.vars.loader.removeClass("ilightbox-show").stop().animate({top:"-192px"},e.options.show.speed,"easeInCirc"):e.vars.loadRequests<=0&&e.vars.loader.removeClass("ilightbox-show").stop().animate({left:"-192px"},e.options.show.speed,"easeInCirc")},createUI:function(){var e=this;e.ui={currentElement:e.vars.holder,nextElement:e.vars.nextPhoto,prevElement:e.vars.prevPhoto,currentItem:e.vars.current,nextItem:e.vars.next,prevItem:e.vars.prev,hide:function(){e.closeAction()},refresh:function(){arguments.length>0?e.repositionPhoto(!0):e.repositionPhoto()},fullscreen:function(){e.fullScreenAction()}}},attachItems:function(){var iL=this,itemsObject=new Array,items=new Array;$(iL.selector,iL.context).each(function(){var t=$(this),URL=t.attr(iL.options.attr)||null,options=t.data("options")&&eval("({"+t.data("options")+"})")||{},caption=t.data("caption")?t.data("caption").toString().replace(/(<([^>]+)>)/gi,""):"",title=t.data("title")?t.data("title").toString().replace(/(<([^>]+)>)/gi,""):"",alt=t.data("alt")?t.data("alt").toString().replace(/(<([^>]+)>)/gi,""):"",type=t.data("type")||getTypeByExtension(URL,this);items.push({URL,caption,title,alt,type,options}),iL.instant||itemsObject.push(t)}),iL.items=items,iL.itemsObject=itemsObject,iL.vars&&(iL.vars.total=items.length)},normalizeItems:function(){var e=this,t=new Array;$.each(e.items,function(o,i){"string"==typeof i&&(i={url:i});var n=i.url||i.URL||null,a=i.options||{},r=i.caption||null,s=i.title||null,l=i.alt||null,c=i.type?i.type.toLowerCase():getTypeByExtension(n),u="object"!=typeof n?getExtension(n):"";if(a.thumbnail=a.thumbnail||("image"==c?n:null),a.videoType=a.videoType||null,a.skin=a.skin||e.options.skin,a.width=a.width||null,a.height=a.height||null,a.mousewheel=void 0===a.mousewheel||a.mousewheel,a.swipe=void 0===a.swipe||a.swipe,a.social=void 0!==a.social?a.social:e.options.social.buttons&&$.extend({},{},e.options.social.buttons),"video"==c&&(a.html5video=void 0!==a.html5video?a.html5video:{},a.html5video.webm=a.html5video.webm||a.html5video.WEBM||null,a.html5video.controls=void 0!==a.html5video.controls?a.html5video.controls:"controls",a.html5video.preload=a.html5video.preload||"metadata",a.html5video.autoplay=void 0!==a.html5video.autoplay&&a.html5video.autoplay),"iframe"===c)if(-1!==n.indexOf("youtube.com")){var h=n.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);h&&11===h[7].length&&(a.thumbnail="//img.youtube.com/vi/"+h[7]+"/mqdefault.jpg")}else if(-1!==n.indexOf("vimeo.com")&&-1===n.indexOf("preview=0")){var d=n.split(/[?#]/)[0];d.replace(/[^\d]/g,"");$.getJSON("https://vimeo.com/api/oembed.json?url="+d,{format:"json"},function(e){a.thumbnail=e.thumbnail_url})}a.width&&a.height||"video"!==c&&"iframe"!==c&&"flash"!==c||(a.width=parseInt(fusionLightboxVideoVars.lightbox_video_width),a.height=parseInt(fusionLightboxVideoVars.lightbox_video_height)),delete i.url,i.index=o,i.URL=n,i.caption=r,i.title=s,i.type=c,i.alt=l,i.options=a,i.ext=u,t.push(i)}),e.items=t},instantCall:function(){var e=this,t=e.vars.start;e.vars.current=t,e.vars.next=e.items[t+1]?t+1:null,e.vars.prev=e.items[t-1]?t-1:null,e.addContents(),e.patchEvents()},addContents:function(){var e=this,t=e.vars,o=e.options,i=getViewport(),n=o.path.toLowerCase(),a=t.total>0&&e.items.filter(function(e,t,i){return-1===["image","flash","video"].indexOf(e.type)&&void 0===e.recognized&&(o.smartRecognition||e.options.smartRecognition)}),r=a.length>0;o.mobileOptimizer&&!o.innerToolbar&&(t.isMobile=i.width<=t.mobileMaxWidth),t.overlay.addClass(o.skin).hide().css("opacity",o.overlay.opacity),o.linkId&&t.overlay[0].setAttribute("linkid",o.linkId),o.controls.toolbar&&(t.toolbar.addClass(o.skin).append(t.closeButton),o.controls.fullscreen&&t.toolbar.append(t.fullScreenButton),o.controls.slideshow&&t.toolbar.append(t.innerPlayButton),t.total>1&&t.toolbar.append(t.innerPrevButton).append(t.innerNextButton)),t.BODY.addClass("ilightbox-noscroll").append(t.overlay).append(t.loader).append(t.holder).append(t.nextPhoto).append(t.prevPhoto),o.innerToolbar||t.BODY.append(t.toolbar),o.controls.arrows&&t.BODY.append(t.nextButton).append(t.prevButton),o.controls.thumbnail&&t.total>1&&(t.BODY.append(t.thumbnails),t.thumbnails.addClass(o.skin).addClass("ilightbox-"+n),$("div.ilightbox-thumbnails-grid",t.thumbnails).empty(),t.thumbs=!0);var s="horizontal"==o.path.toLowerCase()?{left:parseInt(i.width/2-t.loader.outerWidth()/2)}:{top:parseInt(i.height/2-t.loader.outerHeight()/2)};t.loader.addClass(o.skin).css(s),t.nextButton.add(t.prevButton).addClass(o.skin),"horizontal"==n&&t.loader.add(t.nextButton).add(t.prevButton).addClass("horizontal"),t.BODY[t.isMobile?"addClass":"removeClass"]("isMobile"),o.infinite||(t.prevButton.add(t.prevButton).add(t.innerPrevButton).add(t.innerNextButton).removeClass("disabled"),0==t.current&&t.prevButton.add(t.innerPrevButton).addClass("disabled"),t.current>=t.total-1&&t.nextButton.add(t.innerNextButton).addClass("disabled")),o.show.effect?(t.overlay.stop().fadeIn(o.show.speed),t.toolbar.stop().fadeIn(o.show.speed)):(t.overlay.show(),t.toolbar.show());var l=a.length;r?(e.showLoader(),$.each(a,function(i,n){e.ogpRecognition(this,function(i){var n=-1,a=(e.items.filter(function(e,t,o){return e.URL==i.url&&(n=t),e.URL==i.url}),e.items[n]);i&&$.extend(!0,a,{URL:i.source,type:i.type,recognized:!0,options:{html5video:i.html5video,width:"image"==i.type?0:i.width||a.width,height:"image"==i.type?0:i.height||a.height,thumbnail:a.options.thumbnail||i.thumbnail}}),0==--l&&(e.hideLoader(),t.dontGenerateThumbs=!1,e.generateThumbnails(),o.show.effect?setTimeout(function(){e.generateBoxes()},o.show.speed):e.generateBoxes())})})):o.show.effect?setTimeout(function(){e.generateBoxes()},o.show.speed):e.generateBoxes(),e.createUI(),window.iLightBox={close:function(){e.closeAction()},fullscreen:function(){e.fullScreenAction()},moveNext:function(){e.moveTo("next")},movePrev:function(){e.moveTo("prev")},goTo:function(t){e.goTo(t)},refresh:function(){e.refresh()},reposition:function(){arguments.length>0?e.repositionPhoto(!0):e.repositionPhoto()},setOption:function(t){e.setOption(t)},destroy:function(){e.closeAction(),e.dispatchItemsEvents()}},o.linkId&&(t.hashLock=!0,window.location.hash=o.linkId+"/"+t.current,setTimeout(function(){t.hashLock=!1},55)),o.slideshow.startPaused||(e.resume(),t.innerPlayButton.removeClass("ilightbox-play").addClass("ilightbox-pause")),"function"==typeof e.options.callback.onOpen&&e.options.callback.onOpen.call(e)},loadContent:function(e,t,o){var i,n,a=this;switch(a.createUI(),e.speed=o||a.options.effects.loadedFadeSpeed,"current"==t&&(e.options.mousewheel?a.vars.lockWheel=!1:a.vars.lockWheel=!0,e.options.swipe?a.vars.lockSwipe=!1:a.vars.lockSwipe=!0),t){case"current":i=a.vars.holder,n=a.vars.current;break;case"next":i=a.vars.nextPhoto,n=a.vars.next;break;case"prev":i=a.vars.prevPhoto,n=a.vars.prev}if(i.removeAttr("style class").addClass("ilightbox-holder"+(supportTouch?" supportTouch":"")).addClass(e.options.skin),$("div.ilightbox-inner-toolbar",i).remove(),e.title||a.options.innerToolbar){var r=a.vars.innerToolbar.clone();if(e.title&&a.options.show.title){var s=a.vars.title.clone();s.empty().html(e.title),r.append(s)}a.options.innerToolbar&&r.append(a.vars.total>1?a.vars.toolbar.clone():a.vars.toolbar),i.prepend(r)}a.loadSwitcher(e,i,n,t)},loadSwitcher:function(e,t,o,i){var n=this,a=n.options,r={element:t,position:o};switch(e.type){case"image":"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.loadImage(e.URL,function(s){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r);var l=s?s.width:400,c=s?s.height:200;t.data({naturalWidth:l,naturalHeight:c}),$("div.ilightbox-container",t).empty().append(s?''+e.alt+'':''+a.errors.loadImage+""),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),n.configureHolder(e,i,t)});break;case"video":t.data({naturalWidth:e.options.width,naturalHeight:e.options.height}),n.addContent(t,e),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),n.configureHolder(e,i,t);break;case"iframe":for(var s=e.URL.substring(e.URL.indexOf("?")+1).split("&"),l={},c=0;c').css(f).html(u)),t.show().data({naturalWidth:d||h.outerWidth(),naturalHeight:p||h.outerHeight()}).hide(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r);var m=findImageInElement(t);n.loadImage(m,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.configureHolder(e,i,t)}),a.ajaxSetup.success(s,l,c),"function"==typeof g.success&&g.success(s,l,c)}).fail(function(s,l,c){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.hideLoader(),$("div.ilightbox-container",t).empty().append(''+a.errors.loadContents+""),n.configureHolder(e,i,t),a.ajaxSetup.error(s,l,c),"function"==typeof g.error&&g.error(s,l,c)});break;case"html":var m=e.URL;if(container=$("div.ilightbox-container",t),m[0].nodeName)h=m.clone();else{var v=$(m);h=v.selector?$("
    "+v+"
    "):v}var b=n.items[o].options.width||parseInt(h.attr("width")),x=n.items[o].options.height||parseInt(h.attr("height"));n.addContent(t,e),h.appendTo(document.documentElement).hide(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r);f=findImageInElement(t);"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.loadImage(f,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),t.show().data({naturalWidth:b||container.outerWidth(),naturalHeight:x||container.outerHeight()}).hide(),h.remove(),n.configureHolder(e,i,t)})}},configureHolder:function(e,t,o){var i=this,n=i.vars,a=i.options;if("current"!=t&&("next"==t?o.addClass("ilightbox-next"):o.addClass("ilightbox-prev")),"current"==t)var r=n.current;else if("next"==t){var s=a.styles.nextOpacity;r=n.next}else s=a.styles.prevOpacity,r=n.prev;var l={element:o,position:r};i.items[r].options.width=i.items[r].options.width||0,i.items[r].options.height=i.items[r].options.height||0,"current"==t?a.show.effect?o.css(transform,gpuAcceleration).fadeIn(e.speed,function(){if(o.css(transform,""),e.caption){i.setCaption(e,o);var t=$("div.ilightbox-caption",o),n=parseInt(t.outerHeight()/o.outerHeight()*100);a.caption.start&n<=50&&t.fadeIn(a.effects.fadeSpeed)}var s=e.options.social;s&&(i.setSocial(s,e.URL,o),a.social.start&&$("div.ilightbox-social",o).fadeIn(a.effects.fadeSpeed)),i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)}):(o.show(),i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)):a.show.effect?o.fadeTo(e.speed,s,function(){"next"==t?n.nextLock=!1:n.prevLock=!1,i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)}):(o.css({opacity:s}).show(),"next"==t?n.nextLock=!1:n.prevLock=!1,i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)),setTimeout(function(){i.repositionPhoto()},0)},generateBoxes:function(){var e=this,t=e.vars,o=e.options;o.infinite&&t.total>=3?(t.current==t.total-1&&(t.next=0),0==t.current&&(t.prev=t.total-1)):o.infinite=!1,e.loadContent(e.items[t.current],"current",o.show.speed),e.items[t.next]&&e.loadContent(e.items[t.next],"next",o.show.speed),e.items[t.prev]&&e.loadContent(e.items[t.prev],"prev",o.show.speed)},generateThumbnails:function(){var e=this,t=e.vars,o=e.options,i=null;if(t.thumbs&&!e.vars.dontGenerateThumbs){var n=t.thumbnails,a=$("div.ilightbox-thumbnails-container",n),r=$("div.ilightbox-thumbnails-grid",a),s=0;r.removeAttr("style").empty(),$.each(e.items,function(l,c){var u=t.current==l?"ilightbox-active":"",h=t.current==l?o.thumbnails.activeOpacity:o.thumbnails.normalOpacity,d=c.options.thumbnail,p=$('
    '),f=$('
    ');p.css({opacity:0}).addClass(u),"video"!=c.type&&"flash"!=c.type||void 0!==c.options.icon?c.options.icon&&(f.addClass("ilightbox-thumbnail-"+c.options.icon),p.append(f)):(f.addClass("ilightbox-thumbnail-video"),p.append(f)),d&&e.loadImage(d,function(t){s++,t?p.data({naturalWidth:t.width,naturalHeight:t.height}).append(''):p.data({naturalWidth:o.thumbnails.maxWidth,naturalHeight:o.thumbnails.maxHeight}),clearTimeout(i),i=setTimeout(function(){e.positionThumbnails(n,a,r)},20),setTimeout(function(){p.fadeTo(o.effects.loadedFadeSpeed,h)},20*s)}),r.append(p)}),e.vars.dontGenerateThumbs=!0}},positionThumbnails:function(e,t,o){var i=this,n=i.vars,a=i.options,r=getViewport(),s=a.path.toLowerCase();e||(e=n.thumbnails),t||(t=$("div.ilightbox-thumbnails-container",e)),o||(o=$("div.ilightbox-thumbnails-grid",t));var l=$(".ilightbox-thumbnail",o),c="horizontal"==s?r.width-a.styles.pageOffsetX:l.eq(0).outerWidth()-a.styles.pageOffsetX,u="horizontal"==s?l.eq(0).outerHeight()-a.styles.pageOffsetY:r.height-a.styles.pageOffsetY,h="horizontal"==s?0:c,d="horizontal"==s?u:0,p=$(".ilightbox-active",o),f={};arguments.length<3&&(l.css({opacity:a.thumbnails.normalOpacity}),p.css({opacity:a.thumbnails.activeOpacity})),l.each(function(e){var t=$(this),o=t.data(),n="horizontal"==s?0:a.thumbnails.maxWidth;height="horizontal"==s?a.thumbnails.maxHeight:0,dims=i.getNewDimenstions(n,height,o.naturalWidth,o.naturalHeight,!0),t.css({width:dims.width,height:dims.height}),"horizontal"==s&&t.css({float:"left"}),"horizontal"==s?h+=t.outerWidth(!0):d+=t.outerHeight()}),f={width:h,height:d},o.css(f),f={};var g=o.offset(),m=p.length?p.offset():{top:parseInt(u/2),left:parseInt(c/2)};g.top=g.top-$doc.scrollTop(),g.left=g.left-$doc.scrollLeft(),m.top=m.top-g.top-$doc.scrollTop(),m.left=m.left-g.left-$doc.scrollLeft(),"horizontal"==s?(f.top=0,f.left=parseInt(c/2-m.left-p.outerWidth()/2)):(f.top=parseInt(u/2-m.top-p.outerHeight()/2),f.left=0),arguments.length<3?o.stop().animate(f,a.effects.repositionSpeed,"easeOutCirc"):o.css(f)},loadImage:function(e,t){Array.isArray(e)||(e=[e]);var o=this,i=e.length;i>0?(o.showLoader(),$.each(e,function(n,a){var r=new Image;r.onload=function(){0==(i-=1)&&(o.hideLoader(),t(r))},r.onerror=r.onabort=function(){0==(i-=1)&&(o.hideLoader(),t(!1))},r.src=e[n]})):t(!1)},patchItemsEvents:function(){var e=this,t=e.vars,o=supportTouch?"click.iL itap.iL":"click.iL",i=supportTouch?"click.iL itap.iL":"itap.iL";if(e.context&&e.selector){var n=$(e.selector,e.context);$(e.context).on(o,e.selector,function(){var o=$(this),i=n.index(o);return t.current=i,t.next=e.items[i+1]?i+1:null,t.prev=e.items[i-1]?i-1:null,e.addContents(),e.patchEvents(),!1}).on(i,e.selector,function(){return!1})}else $.each(e.itemsObject,function(n,a){a.on(o,function(){return t.current=n,t.next=e.items[n+1]?n+1:null,t.prev=e.items[n-1]?n-1:null,e.addContents(),e.patchEvents(),!1}).on(i,function(){return!1})})},dispatchItemsEvents:function(){var e=this;e.vars,e.options;e.context&&e.selector?$(e.context).off(".iL",e.selector):$.each(e.itemsObject,function(e,t){t.off(".iL")})},refresh:function(){var e=this;e.dispatchItemsEvents(),e.attachItems(),e.normalizeItems(),e.patchItemsEvents()},patchEvents:function(){var e=this,t=e.vars,o=e.options,i=o.path.toLowerCase(),n=$(".ilightbox-holder"),a=fullScreenApi.fullScreenEventName+".iLightBox",r=verticalDistanceThreshold=100,s=[t.nextButton[0],t.prevButton[0],t.nextButton[0].firstChild,t.prevButton[0].firstChild];$win.on("resize.iLightBox",function(){var i=getViewport();o.mobileOptimizer&&!o.innerToolbar&&(t.isMobile=i.width<=t.mobileMaxWidth),t.BODY[t.isMobile?"addClass":"removeClass"]("isMobile"),t.nextLock||t.prevLock||e.repositionPhoto(null),supportTouch&&(clearTimeout(t.setTime),t.setTime=setTimeout(function(){var e=getScrollXY().y;window.scrollTo(0,e-30),window.scrollTo(0,e+30),window.scrollTo(0,e)},2e3)),t.thumbs&&e.positionThumbnails()}).on("keydown.iLightBox",function(i){if(o.controls.keyboard)switch(i.keyCode){case 13:i.shiftKey&&o.keyboard.shift_enter&&e.fullScreenAction();break;case 27:o.keyboard.esc&&e.closeAction();break;case 37:o.keyboard.left&&!t.lockKey&&e.moveTo("prev");break;case 38:o.keyboard.up&&!t.lockKey&&e.moveTo("prev");break;case 39:o.keyboard.right&&!t.lockKey&&e.moveTo("next");break;case 40:o.keyboard.down&&!t.lockKey&&e.moveTo("next")}}),fullScreenApi.supportsFullScreen&&$win.on(a,function(){e.doFullscreen()});var l=[o.caption.show+".iLightBox",o.caption.hide+".iLightBox",o.social.show+".iLightBox",o.social.hide+".iLightBox"].filter(function(e,t,o){return o.lastIndexOf(e)===t}),c="";$.each(l,function(e,t){0!=e&&(c+=" "),c+=t}),$doc.on(clickEvent,".ilightbox-overlay",function(){o.overlay.blur&&e.closeAction()}).on(clickEvent,".ilightbox-next, .ilightbox-next-button",function(){e.moveTo("next")}).on(clickEvent,".ilightbox-prev, .ilightbox-prev-button",function(){e.moveTo("prev")}).on(clickEvent,".ilightbox-thumbnail",function(){var o=$(this),i=$(".ilightbox-thumbnail",t.thumbnails).index(o);i!=t.current&&e.goTo(i)}).on(c,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(e){var i=$("div.ilightbox-caption",t.holder),n=$("div.ilightbox-social",t.holder),a=o.effects.fadeSpeed;t.nextLock||t.prevLock?(e.type!=o.caption.show||i.is(":visible")?e.type==o.caption.hide&&i.is(":visible")&&i.fadeOut(a):i.fadeIn(a),e.type!=o.social.show||n.is(":visible")?e.type==o.social.hide&&n.is(":visible")&&n.fadeOut(a):n.fadeIn(a)):(e.type!=o.caption.show||i.is(":visible")?e.type==o.caption.hide&&i.is(":visible")&&i.stop().fadeOut(a):i.stop().fadeIn(a),e.type!=o.social.show||n.is(":visible")?e.type==o.social.hide&&n.is(":visible")&&n.stop().fadeOut(a):n.stop().fadeIn(a))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(e){"mouseenter"==e.type?t.lockWheel=!0:t.lockWheel=!1}).on(clickEvent,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause",function(){var t=$(this);t.hasClass("fusion-updated")||(t.hasClass("ilightbox-fullscreen")?e.fullScreenAction():t.hasClass("ilightbox-play")?(e.resume(),t.addClass("ilightbox-pause").removeClass("ilightbox-play")):t.hasClass("ilightbox-pause")?(e.pause(),t.addClass("ilightbox-play").removeClass("ilightbox-pause")):e.closeAction(),t.addClass("fusion-updated"),setTimeout(function(){t.removeClass("fusion-updated")},100))}).on(touchMoveEvent,".ilightbox-overlay, .ilightbox-thumbnails-container",function(e){e.preventDefault()}),o.controls.arrows&&!supportTouch&&$doc.on("mousemove.iLightBox",function(e){t.isMobile||(t.mouseID||t.hideableElements.show(),t.mouseID=clearTimeout(t.mouseID),-1===s.indexOf(e.target)&&(t.mouseID=setTimeout(function(){t.hideableElements.hide(),t.mouseID=clearTimeout(t.mouseID)},3e3)))}),o.controls.slideshow&&o.slideshow.pauseOnHover&&$doc.on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(o){"mouseenter"==o.type&&t.cycleID?e.pause():"mouseleave"==o.type&&t.isPaused&&e.resume()});var u=$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails");o.controls.mousewheel&&u.on("mousewheel.iLightBox",function(o,i){t.lockWheel||(o.preventDefault(),i<0?e.moveTo("next"):i>0&&e.moveTo("prev"))}),o.controls.swipe&&n.on(touchStartEvent,function(a){if(!(t.nextLock||t.prevLock||1==t.total||t.lockSwipe)){t.BODY.addClass("ilightbox-closedhand");var s,l=a.originalEvent.touches?a.originalEvent.touches[0]:a,c=$doc.scrollTop(),u=$doc.scrollLeft(),h=[n.eq(0).offset(),n.eq(1).offset(),n.eq(2).offset()],d=[{top:h[0].top-c,left:h[0].left-u},{top:h[1].top-c,left:h[1].left-u},{top:h[2].top-c,left:h[2].left-u}],p={time:(new Date).getTime(),coords:[l.pageX-u,l.pageY-c]};n.on(touchMoveEvent,g),$doc.one(touchStopEvent,function(a){n.off(touchMoveEvent,g),t.BODY.removeClass("ilightbox-closedhand"),p&&s&&("horizontal"==i&&s.time-p.time<1e3&&abs(p.coords[0]-s.coords[0])>r&&abs(p.coords[1]-s.coords[1])s.coords[0]?t.current!=t.total-1||o.infinite?(t.isSwipe=!0,e.moveTo("next")):m():0!=t.current||o.infinite?(t.isSwipe=!0,e.moveTo("prev")):m():"vertical"==i&&s.time-p.time<1e3&&abs(p.coords[1]-s.coords[1])>r&&abs(p.coords[0]-s.coords[0])s.coords[1]?t.current!=t.total-1||o.infinite?(t.isSwipe=!0,e.moveTo("next")):m():0!=t.current||o.infinite?(t.isSwipe=!0,e.moveTo("prev")):m():m()),p=s=undefined})}function f(e){var t=$(this),o=d[e],n=[p.coords[0]-s.coords[0],p.coords[1]-s.coords[1]];t[0].style["horizontal"==i?"left":"top"]=("horizontal"==i?o.left-n[0]:o.top-n[1])+"px"}function g(e){if(p){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;s={time:(new Date).getTime(),coords:[t.pageX-u,t.pageY-c]},n.each(f),e.preventDefault()}}function m(){n.each(function(){var e=$(this),t=e.data("offset")||{top:e.offset().top-c,left:e.offset().left-u},o=t.top,i=t.left;e.css(transform,gpuAcceleration).stop().animate({top:o,left:i},500,"easeOutCirc",function(){e.css(transform,"")})})}})},goTo:function(e){var t=this,o=t.vars,i=t.options,n=e-o.current;if(i.infinite&&(e==o.total-1&&0==o.current&&(n=-1),o.current==o.total-1&&0==e&&(n=1)),1==n)t.moveTo("next");else if(-1==n)t.moveTo("prev");else{if(o.nextLock||o.prevLock)return!1;"function"==typeof i.callback.onBeforeChange&&i.callback.onBeforeChange.call(t,t.ui),i.linkId&&(o.hashLock=!0,window.location.hash=i.linkId+"/"+e),t.items[e]&&(t.items[e].options.mousewheel?t.vars.lockWheel=!1:o.lockWheel=!0,t.items[e].options.swipe?o.lockSwipe=!1:o.lockSwipe=!0),$.each([o.holder,o.nextPhoto,o.prevPhoto],function(e,t){t.css(transform,gpuAcceleration).fadeOut(i.effects.loadedFadeSpeed)}),o.current=e,o.next=e+1,o.prev=e-1,t.createUI(),setTimeout(function(){t.generateBoxes()},i.effects.loadedFadeSpeed+50),$(".ilightbox-thumbnail",o.thumbnails).removeClass("ilightbox-active").eq(e).addClass("ilightbox-active"),t.positionThumbnails(),i.linkId&&setTimeout(function(){o.hashLock=!1},55),i.infinite||(o.nextButton.add(o.prevButton).add(o.innerPrevButton).add(o.innerNextButton).removeClass("disabled"),0==o.current&&o.prevButton.add(o.innerPrevButton).addClass("disabled"),o.current>=o.total-1&&o.nextButton.add(o.innerNextButton).addClass("disabled")),t.resetCycle(),"function"==typeof i.callback.onAfterChange&&i.callback.onAfterChange.call(t,t.ui)}},moveTo:function(e){var t=this,o=t.vars,i=t.options,n=i.path.toLowerCase(),a=getViewport(),r=i.effects.switchSpeed,s=t.vars.holder,l=s.find("iframe").length?s.find("iframe").attr("src"):"";if(l&&-1!==l.indexOf("vimeo.com")&&s.find("iframe").attr("src",l),o.nextLock||o.prevLock)return!1;var c="next"==e?o.next:o.prev;if(i.linkId&&c&&(o.hashLock=!0,window.location.hash=i.linkId+"/"+c),"next"==e){if(!t.items[c])return!1;var u=o.nextPhoto,h=o.holder,d=o.prevPhoto,p="ilightbox-prev",f="ilightbox-next"}else if("prev"==e){if(!t.items[c])return!1;u=o.prevPhoto,h=o.holder,d=o.nextPhoto,p="ilightbox-next",f="ilightbox-prev"}"function"==typeof i.callback.onBeforeChange&&i.callback.onBeforeChange.call(t,t.ui),"next"==e?o.nextLock=!0:o.prevLock=!0;var g=$("div.ilightbox-caption",h),m=$("div.ilightbox-social",h);if(g.length&&g.stop().fadeOut(r,function(){$(this).remove()}),m.length&&m.stop().fadeOut(r,function(){$(this).remove()}),t.items[c].caption){t.setCaption(t.items[c],u);var v=$("div.ilightbox-caption",u),b=parseInt(v.outerHeight()/u.outerHeight()*100);i.caption.start&&b<=50&&v.fadeIn(r)}var x=t.items[c].options.social;x&&(t.setSocial(x,t.items[c].URL,u),i.social.start&&$("div.ilightbox-social",u).fadeIn(i.effects.fadeSpeed)),$.each([u,h,d],function(e,t){t.removeClass("ilightbox-next ilightbox-prev")});var w=u.data("offset"),y=a.width-i.styles.pageOffsetX,k=a.height-i.styles.pageOffsetY,S=w.newDims.width,L=w.newDims.height,T=w.thumbsOffset,A=w.diff,I=parseInt(k/2-L/2-A.H-T.H/2),C=parseInt(y/2-S/2-A.W-T.W/2);u.css(transform,gpuAcceleration).animate({top:I,left:C,opacity:1},r,o.isSwipe?"easeOutCirc":"easeInOutCirc",function(){u.css(transform,"")}),$("div.ilightbox-container",u).animate({width:S,height:L},r,o.isSwipe?"easeOutCirc":"easeInOutCirc");var O=h.data("offset"),B=O.object;A=O.diff,S=O.newDims.width,L=O.newDims.height,S=parseInt(S*i.styles["next"==e?"prevScale":"nextScale"]),L=parseInt(L*i.styles["next"==e?"prevScale":"nextScale"]),I="horizontal"==n?parseInt(k/2-B.offsetY-L/2-A.H-T.H/2):parseInt(k-B.offsetX-A.H-T.H/2),"prev"==e?C="horizontal"==n?parseInt(y-B.offsetX-A.W-T.W/2):parseInt(y/2-S/2-A.W-B.offsetY-T.W/2):(I="horizontal"==n?I:parseInt(B.offsetX-A.H-L-T.H/2),C="horizontal"==n?parseInt(B.offsetX-A.W-S-T.W/2):parseInt(y/2-B.offsetY-S/2-A.W-T.W/2)),$("div.ilightbox-container",h).animate({width:S,height:L},r,o.isSwipe?"easeOutCirc":"easeInOutCirc"),h.addClass(p).css(transform,gpuAcceleration).animate({top:I,left:C,opacity:i.styles.prevOpacity},r,o.isSwipe?"easeOutCirc":"easeInOutCirc",function(){h.css(transform,""),$(".ilightbox-thumbnail",o.thumbnails).removeClass("ilightbox-active").eq(c).addClass("ilightbox-active"),t.positionThumbnails(),t.items[c]&&(t.items[c].options.mousewheel?o.lockWheel=!1:o.lockWheel=!0,t.items[c].options.swipe?o.lockSwipe=!1:o.lockSwipe=!0),o.isSwipe=!1,"next"==e?(o.nextPhoto=d,o.prevPhoto=h,o.holder=u,o.nextPhoto.hide(),o.next=o.next+1,o.prev=o.current,o.current=o.current+1,i.infinite&&(o.current>o.total-1&&(o.current=0),o.current==o.total-1&&(o.next=0),0==o.current&&(o.prev=o.total-1)),t.createUI(),t.items[o.next]?t.loadContent(t.items[o.next],"next"):o.nextLock=!1):(o.prevPhoto=d,o.nextPhoto=h,o.holder=u,o.prevPhoto.hide(),o.next=o.current,o.current=o.prev,o.prev=o.current-1,i.infinite&&(o.current==o.total-1&&(o.next=0),0==o.current&&(o.prev=o.total-1)),t.createUI(),t.items[o.prev]?t.loadContent(t.items[o.prev],"prev"):o.prevLock=!1),i.linkId&&setTimeout(function(){o.hashLock=!1},55),i.infinite||(o.nextButton.add(o.prevButton).add(o.innerPrevButton).add(o.innerNextButton).removeClass("disabled"),0==o.current&&o.prevButton.add(o.innerPrevButton).addClass("disabled"),o.current>=o.total-1&&o.nextButton.add(o.innerNextButton).addClass("disabled")),t.repositionPhoto(),t.resetCycle(),"function"==typeof i.callback.onAfterChange&&i.callback.onAfterChange.call(t,t.ui)}),I="horizontal"==n?getPixel(d,"top"):"next"==e?parseInt(-k/2-d.outerHeight()):parseInt(2*I),C="horizontal"==n?"next"==e?parseInt(-y/2-d.outerWidth()):parseInt(2*C):getPixel(d,"left"),d.css(transform,gpuAcceleration).animate({top:I,left:C,opacity:i.styles.nextOpacity},r,o.isSwipe?"easeOutCirc":"easeInOutCirc",function(){d.css(transform,"")}).addClass(f)},setCaption:function(e,t){var o=$('
    ');e.caption&&(o.html(e.caption),$("div.ilightbox-container",t).append(o))},normalizeSocial:function(e,t){this.vars;var o=this.options,i=window.location.href;return $.each(e,function(n,a){if(!a)return!0;var r,s;switch(n.toLowerCase()){case"facebook":r="http://www.facebook.com/share.php?v=4&src=bm&u={URL}",s="Share on Facebook";break;case"twitter":r="http://twitter.com/home?status={URL}",s="Share on Twitter";break;case"delicious":r="http://delicious.com/post?url={URL}",s="Share on Delicious";break;case"digg":r="http://digg.com/submit?phase=2&url={URL}",s="Share on Digg";break;case"reddit":r="http://reddit.com/submit?url={URL}",s="Share on reddit"}e[n]={URL:a.URL&&absolutizeURI(i,a.URL)||o.linkId&&window.location.href||"string"!=typeof t&&i||t&&absolutizeURI(i,t)||i,source:a.source||r||a.URL&&absolutizeURI(i,a.URL)||t&&absolutizeURI(i,t),text:a.text||s||"Share on "+n,width:void 0===a.width||isNaN(a.width)?640:parseInt(a.width),height:a.height||360}}),e},setSocial:function(e,t,o){var i=$('
    '),n="
      ";e=this.normalizeSocial(e,t),$.each(e,function(e,t){e.toLowerCase();var o=t.source.replace(/\{URL\}/g,encodeURIComponent(t.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")),i="mail"===e?"":'onclick="javascript:window.open(this.href'+(t.width<=0||t.height<=0?"":", '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height="+t.height+",width="+t.width+",left=40,top=40'")+');return false;"';n+='
    • '}),n+="
    ",i.html(n),$("div.ilightbox-container",o).append(i)},fullScreenAction:function(){this.vars;fullScreenApi.supportsFullScreen?fullScreenApi.isFullScreen()?fullScreenApi.cancelFullScreen(document.documentElement):fullScreenApi.requestFullScreen(document.documentElement):this.doFullscreen()},doFullscreen:function(){var e=this,t=e.vars,o=getViewport(),i=e.options;if(i.fullAlone){var n=t.holder,a=e.items[t.current],r=o.width,s=o.height,l=[n,t.nextPhoto,t.prevPhoto,t.nextButton,t.prevButton,t.overlay,t.toolbar,t.thumbnails,t.loader],c=[t.loader,t.thumbnails];if(t.isInFullScreen)t.isInFullScreen=t.lockKey=t.lockWheel=t.lockSwipe=!1,t.overlay.css({opacity:e.options.overlay.opacity}),$.each(c,function(e,t){t.show()}),t.fullScreenButton.attr("title",i.text.enterFullscreen),n.data({naturalWidth:n.data("naturalWidthOld"),naturalHeight:n.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),$.each(l,function(e,t){t.removeClass("ilightbox-fullscreen")}),"function"==typeof i.callback.onExitFullScreen&&i.callback.onExitFullScreen.call(e,e.ui);else{if(t.isInFullScreen=t.lockKey=t.lockWheel=t.lockSwipe=!0,t.overlay.css({opacity:1}),$.each(c,function(e,t){t.hide()}),t.fullScreenButton.attr("title",i.text.exitFullscreen),-1!=i.fullStretchTypes.indexOf(a.type))n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:r,naturalHeight:s});else{o=a.options.fullViewPort||i.fullViewPort||"";var u=r,h=s,d=n.data("naturalWidth"),p=n.data("naturalHeight");if("fill"==o.toLowerCase())(h=u/d*p)u||p>h;u=(f=e.getNewDimenstions(u,h,d,p,g)).width,h=f.height}n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:u,naturalHeight:h})}$.each(l,function(e,t){t.addClass("ilightbox-fullscreen")}),"function"==typeof i.callback.onEnterFullScreen&&i.callback.onEnterFullScreen.call(e,e.ui)}}else t.isInFullScreen?t.isInFullScreen=!1:t.isInFullScreen=!0;e.repositionPhoto(!0)},closeAction:function(){var e=this,t=e.vars,o=e.options;$win.off(".iLightBox"),$doc.off(".iLightBox"),$doc.off(clickEvent,".ilightbox-overlay"),$doc.off(clickEvent,".ilightbox-next, .ilightbox-next-button"),$doc.off(clickEvent,".ilightbox-prev, .ilightbox-prev-button"),$doc.off(clickEvent,".ilightbox-thumbnail"),$doc.off(clickEvent,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause"),t.isInFullScreen&&fullScreenApi.cancelFullScreen(document.documentElement),$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails").off(".iLightBox"),o.hide.effect?t.overlay.stop().fadeOut(o.hide.speed,function(){t.overlay.remove(),t.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")}):(t.overlay.remove(),t.BODY.removeClass("ilightbox-noscroll").off(".iLightBox"));var i=[t.toolbar,t.holder,t.nextPhoto,t.prevPhoto,t.nextButton,t.prevButton,t.loader,t.thumbnails];$.each(i,function(e,t){t.removeAttr("style").remove()}),t.prevButton.removeClass("disabled"),t.nextButton.removeClass("disabled"),t.dontGenerateThumbs=t.isInFullScreen=!1,window.iLightBox=null,o.linkId&&(t.hashLock=!0,removeHash(),setTimeout(function(){t.hashLock=!1},55)),"function"==typeof o.callback.onHide&&o.callback.onHide.call(e,e.ui)},repositionPhoto:function(){var e=this,t=e.vars,o=e.options,i=o.path.toLowerCase(),n=getViewport(),a=n.width,r=n.height,s=t.isInFullScreen&&o.fullAlone||t.isMobile||"horizontal"==i?0:t.thumbnails.outerWidth(),l=t.isMobile?t.toolbar.outerHeight():t.isInFullScreen&&o.fullAlone?0:"horizontal"==i?t.thumbnails.outerHeight():0,c=t.isInFullScreen&&o.fullAlone?a:a-o.styles.pageOffsetX,u=t.isInFullScreen&&o.fullAlone?r:r-o.styles.pageOffsetY,h="horizontal"==i?parseInt(e.items[t.next]||e.items[t.prev]?2*(o.styles.nextOffsetX+o.styles.prevOffsetX):c/10<=30?30:c/10):parseInt(c/10<=30?30:c/10)+s,d="horizontal"==i?parseInt(u/10<=30?30:u/10)+l:parseInt(e.items[t.next]||e.items[t.prev]?2*(o.styles.nextOffsetX+o.styles.prevOffsetX):u/10<=30?30:u/10),p={type:"current",width:c,height:u,item:e.items[t.current],offsetW:h,offsetH:d,thumbsOffsetW:s,thumbsOffsetH:l,animate:arguments.length,holder:t.holder};e.repositionEl(p),e.items[t.next]&&(p=$.extend(p,{type:"next",item:e.items[t.next],offsetX:o.styles.nextOffsetX,offsetY:o.styles.nextOffsetY,holder:t.nextPhoto}),e.repositionEl(p)),e.items[t.prev]&&(p=$.extend(p,{type:"prev",item:e.items[t.prev],offsetX:o.styles.prevOffsetX,offsetY:o.styles.prevOffsetY,holder:t.prevPhoto}),e.repositionEl(p));var f="horizontal"==i?{left:parseInt(c/2-t.loader.outerWidth()/2)}:{top:parseInt(u/2-t.loader.outerHeight()/2)};t.loader.css(f)},repositionEl:function(e){var t=this,o=t.vars,i=t.options,n=i.path.toLowerCase(),a="current"==e.type&&o.isInFullScreen&&i.fullAlone?e.width:e.width-e.offsetW,r="current"==e.type&&o.isInFullScreen&&i.fullAlone?e.height:e.height-e.offsetH,s=e.item,l=e.item.options,c=e.holder,u=e.offsetX||0,h=e.offsetY||0,d=e.thumbsOffsetW,p=e.thumbsOffsetH;"current"==e.type?("number"==typeof l.width&&l.width&&(a=o.isInFullScreen&&i.fullAlone&&(-1!=i.fullStretchTypes.indexOf(s.type)||l.fullViewPort||i.fullViewPort)||l.width>a?a:l.width),"number"==typeof l.height&&l.height&&(r=o.isInFullScreen&&i.fullAlone&&(-1!=i.fullStretchTypes.indexOf(s.type)||l.fullViewPort||i.fullViewPort)||l.height>r?r:l.height)):("number"==typeof l.width&&l.width&&(a=l.width>a?a:l.width),"number"==typeof l.height&&l.height&&(r=l.height>r?r:l.height)),$(".ilightbox-inner-toolbar",c).length&&(r=parseInt(r-$(".ilightbox-inner-toolbar",c).outerHeight()));var f="string"==typeof l.width&&-1!=l.width.indexOf("%")?percentToValue(parseInt(l.width.replace("%","")),e.width):c.data("naturalWidth"),g="string"==typeof l.height&&-1!=l.height.indexOf("%")?percentToValue(parseInt(l.height.replace("%","")),e.height):c.data("naturalHeight"),m="string"==typeof l.width&&-1!=l.width.indexOf("%")||"string"==typeof l.height&&-1!=l.height.indexOf("%")?{width:f,height:g}:t.getNewDimenstions(a,r,f,g),v=$.extend({},m,{});"prev"==e.type||"next"==e.type?(f=parseInt(m.width*("next"==e.type?i.styles.nextScale:i.styles.prevScale)),g=parseInt(m.height*("next"==e.type?i.styles.nextScale:i.styles.prevScale))):(f=m.width,g=m.height);var b=parseInt((getPixel(c,"padding-left")+getPixel(c,"padding-right")+getPixel(c,"border-left-width")+getPixel(c,"border-right-width"))/2),x=parseInt((getPixel(c,"padding-top")+getPixel(c,"padding-bottom")+getPixel(c,"border-top-width")+getPixel(c,"border-bottom-width")+($(".ilightbox-inner-toolbar",c).outerHeight()||0))/2);switch(e.type){case"current":var w=parseInt(e.height/2-g/2-x-p/2),y=parseInt(e.width/2-f/2-b-d/2);break;case"next":w="horizontal"==n?parseInt(e.height/2-h-g/2-x-p/2):parseInt(e.height-u-x-p/2),y="horizontal"==n?parseInt(e.width-u-b-d/2):parseInt(e.width/2-f/2-b-h-d/2);break;case"prev":w="horizontal"==n?parseInt(e.height/2-h-g/2-x-p/2):parseInt(u-x-g-p/2),y="horizontal"==n?parseInt(u-b-f-d/2):parseInt(e.width/2-h-f/2-b-d/2)}c.data("offset",{top:w,left:y,newDims:v,diff:{W:b,H:x},thumbsOffset:{W:d,H:p},object:e}),e.animate>0&&i.effects.reposition?(c.css(transform,gpuAcceleration).stop().animate({top:w,left:y},i.effects.repositionSpeed,"easeOutCirc",function(){c.css(transform,"")}),$("div.ilightbox-container",c).stop().animate({width:f,height:g},i.effects.repositionSpeed,"easeOutCirc"),$("div.ilightbox-inner-toolbar",c).stop().animate({width:f},i.effects.repositionSpeed,"easeOutCirc",function(){$(this).css("overflow","visible")})):(c.css({top:w,left:y}),$("div.ilightbox-container",c).css({width:f,height:g}),$("div.ilightbox-inner-toolbar",c).css({width:f}))},resume:function(e){var t=this,o=t.vars,i=t.options;!i.slideshow.pauseTime||i.controls.slideshow&&o.total<=1||ea.options.maxScale?factor=a.options.maxScale:factor=0,html5H264:!(!e.canPlayType||!e.canPlayType("video/mp4").replace(/no/,"")),html5WebM:!(!e.canPlayType||!e.canPlayType("video/webm").replace(/no/,"")),html5Vorbis:!(!e.canPlayType||!e.canPlayType("video/ogg").replace(/no/,"")),html5QuickTime:!(!e.canPlayType||!e.canPlayType("video/quicktime").replace(/no/,""))}},addContent:function(e,t){var o=this;switch(t.type){case"video":var i=!1,n=t.videoType,a=t.options.html5video;("video/mp4"==(n=!n&&t.options.videoType?t.options.videoType:n)||"mp4"==t.ext||"m4v"==t.ext||a.h264)&&o.plugins.html5H264?(t.ext="mp4",t.URL=a.h264||t.URL):a.webm&&o.plugins.html5WebM?(t.ext="webm",t.URL=a.webm||t.URL):a.ogg&&o.plugins.html5Vorbis&&(t.ext="ogv",t.URL=a.ogg||t.URL),!o.plugins.html5H264||"video/mp4"!=n&&"mp4"!=t.ext&&"m4v"!=t.ext?!o.plugins.html5WebM||"video/webm"!=n&&"webm"!=t.ext?!o.plugins.html5Vorbis||"video/ogg"!=n&&"ogv"!=t.ext?!o.plugins.html5QuickTime||"video/quicktime"!=n&&"mov"!=t.ext&&"qt"!=t.ext||(i=!0,n="video/quicktime"):(i=!0,n="video/ogg"):(i=!0,n="video/webm"):(i=!0,n="video/mp4"),i?m=$("