void 0!==YUI&&(YUI._YUI=YUI);var YUI=function(){var e=0,t=this,n=arguments,i=n.length,r=function(e,t){return e&&e.hasOwnProperty&&e instanceof t},s="undefined"!=typeof YUI_config&&YUI_config;if(r(t,YUI)?(t._init(),YUI.GlobalConfig&&t.applyConfig(YUI.GlobalConfig),s&&t.applyConfig(s),i||t._setup()):t=new YUI,i){for(;e<i;e++)t.applyConfig(n[e]);t._setup()}return t.instanceOf=r,t};!function(){var e,t,n="3.18.1",i="https://yui-s.yahooapis.com/",r="yui3-js-enabled",s="yui3-css-stamp",a=function(){},o=Array.prototype.slice,u={"io.xdrReady":1,"io.xdrResponse":1,"SWF.eventHandler":1},l="undefined"!=typeof window,c=l?window:null,d=l?c.document:null,h=d&&d.documentElement,f=h&&h.className,p={},g=new Date().getTime(),m=function(e,t,n,i){e&&e.addEventListener&&"unload"!==t?e.addEventListener(t,n,i):e&&e.attachEvent&&e.attachEvent("on"+t,n)},v=function(e,t,n,i){if(e&&e.removeEventListener)try{e.removeEventListener(t,n,i)}catch(r){}else e&&e.detachEvent&&e.detachEvent("on"+t,n)},y=function(){YUI.Env.windowLoaded=!0,YUI.Env.DOMReady=!0,l&&v(window,"load",y)},b=function(e,t){var n=e.Env._loader;return n?(n.ignoreRegistered=!1,n.onEnd=null,n.data=null,n.required=[],n.loadType=null):(n=new e.Loader(e.config),e.Env._loader=n),YUI.Env.core=e.Array.dedupe([].concat(YUI.Env.core,["loader-base","loader-rollup","loader-yui3"])),n},$=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},_={success:!0};for(t in h&&-1==f.indexOf(r)&&(f&&(f+=" "),f+=r,h.className=f),n.indexOf("@")>-1&&(n="3.3.0"),e={applyConfig:function(e){e=e||a;var t,n,i=this.config,r=i.modules,s=i.groups,o=i.aliases,u=this.Env._loader;for(n in e)e.hasOwnProperty(n)&&(t=e[n],r&&"modules"==n?$(r,t):o&&"aliases"==n?$(o,t):s&&"groups"==n?$(s,t):"win"==n?(i[n]=t&&t.contentWindow||t,i.doc=i[n]?i[n].document:null):"_yuid"==n||(i[n]=t));u&&u._config(e)},_config:function(e){this.applyConfig(e)},_init:function(){var e,t,r,a=this,o=YUI.Env,u=a.Env;if(a.version=n,!u){if(a.Env={core:["get","features","intl-base","yui-log","yui-later","loader-base","loader-rollup","loader-yui3"],mods:{},versions:{},base:i,cdn:i+n+"/build/",_idx:0,_used:{},_attached:{},_missed:[],_yidx:0,_uidx:0,_guidp:"y",_loaded:{},_BASE_RE:/(?:\?(?:[^&]*&)*([^&]*))?\b(simpleyui|yui(?:-\w+)?)\/\2(?:-(min|debug))?\.js/,parseBasePath:function(e,t){var n,i,r=e.match(t);return r&&(n=RegExp.leftContext||e.slice(0,e.indexOf(r[0])),i=r[3],r[1]&&(n+="?"+r[1]),n={filter:i,path:n}),n},getBase:o&&o.getBase||function(t){var n,i,r,s,o=d&&d.getElementsByTagName("script")||[],l=u.cdn;for(i=0,r=o.length;i<r;++i)if((s=o[i].src)&&(n=a.Env.parseBasePath(s,t))){e=n.filter,l=n.path;break}return l}},(u=a.Env)._loaded[n]={},o&&a!==YUI)u._yidx=++o._yidx,u._guidp=("yui_"+n+"_"+u._yidx+"_"+g).replace(/\./g,"_");else if(YUI._YUI){for(r in o=YUI._YUI.Env,u._yidx+=o._yidx,u._uidx+=o._uidx,o)r in u||(u[r]=o[r]);delete YUI._YUI}a.id=a.stamp(a),p[a.id]=a}a.constructor=YUI,a.config=a.config||{bootstrap:!0,cacheUse:!0,debug:!0,doc:d,fetchCSS:!0,throwFail:!0,useBrowserConsole:!0,useNativeES5:!0,win:c},d&&!d.getElementById(s)&&((t=d.createElement("div")).innerHTML='<div id="'+s+'" style="position: absolute !important; visibility: hidden !important"></div>',YUI.Env.cssStampEl=t.firstChild,h.insertBefore(YUI.Env.cssStampEl,h.firstChild)),a.config.lang=a.config.lang||"en-US",a.config.base=YUI.config.base||a.Env.getBase(a.Env._BASE_RE),e&&"mindebug".indexOf(e)||(e="min"),e=e?"-"+e:e,a.config.loaderPath=YUI.config.loaderPath||"loader/loader"+e+".js"},_setup:function(e){var t,n=[],i=YUI.Env.mods,r=this.config.core||[].concat(YUI.Env.core);for(t=0;t<r.length;t++)i[r[t]]&&n.push(r[t]);this._attach(["yui-base"]),this._attach(n),this.Loader&&b(this)},applyTo:function(e,t,n){if(!(t in u))return this.log(t+": applyTo not allowed","warn","yui"),null;var i,r,s,a=p[e];if(a){for(s=0,i=t.split("."),r=a;s<i.length;s+=1)(r=r[i[s]])||this.log("applyTo not found: "+t,"warn","yui");return r&&r.apply(a,n)}return null},add:function(e,t,n,i){i=i||{};var r,s,a=YUI.Env,o={name:e,fn:t,version:n,details:i},u=a.versions;for(s in a.mods[e]=o,u[n]=u[n]||{},u[n][e]=o,p)p.hasOwnProperty(s)&&(r=p[s].Env._loader)&&(!r.moduleInfo[e]||r.moduleInfo[e].temp)&&r.addModule(i,e);return this},_attach:function(e,t){var n,i,r,s,a,o,u,l,c,d=YUI.Env.mods,h=YUI.Env.aliases,f=this,c=f.Env._loader,p=f.Env._attached,g=e.length,m=[];for(n=0;n<g;n++)r=d[i=e[n]],m.push(i),c&&c.conditions[i]&&f.Object.each(c.conditions[i],function(e){e&&(e.ua&&f.UA[e.ua]||e.test&&e.test(f))&&m.push(e.name)});for(n=0,g=(e=m).length;n<g;n++)if(!p[e[n]]){if(r=d[i=e[n]],h&&h[i]){f._attach(h[i]);continue}if(r){for(l=0,p[i]=!0;l<f.Env._missed.length;l++)f.Env._missed[l]===i&&(f.message("Found: "+i+" (was reported as missing earlier)","warn","yui"),f.Env._missed.splice(l,1));if(a=(s=r.details).requires,o=s.use,u=s.after,a){for(l=0;l<a.length;l++)if(!p[a[l]]){if(!f._attach(a))return!1;break}}if(u){for(l=0;l<u.length;l++)if(!p[u[l]]){if(!f._attach(u,!0))return!1;break}}if(r.fn)try{r.fn(f,i)}catch(v){return f.error("Attach error: "+i,v,i),!1}if(o){for(l=0;l<o.length;l++)if(!p[o[l]]){if(!f._attach(o))return!1;break}}}else c&&c.moduleInfo[i]&&(r=c.moduleInfo[i],t=!0),!t&&i&&-1===i.indexOf("skin-")&&-1===i.indexOf("css")&&(f.Env._missed.push(i),f.Env._missed=f.Array.dedupe(f.Env._missed),f.message("NOT loaded: "+i,"warn","yui"))}return!0},use:function(){var e,t=o.call(arguments,0),n=t[t.length-1],i=this,r=0,s=i.Env,a=!0;if(i.Lang.isFunction(n)?t.pop():n=null,i.Lang.isArray(t[0])&&(t=t[0]),i.config.cacheUse){for(;e=t[r++];)if(!s._attached[e]){a=!1;break}if(a)return t.length,i._notify(n,_,t),i}return i._loading?(i._useQueue=i._useQueue||new i.Queue,i._useQueue.add([t,n])):i._use(t,function(e,i){e._notify(n,i,t)}),i},_notify:function(e,t,n){if(!t.success&&this.config.loadErrorFn)this.config.loadErrorFn.call(this,this,e,t,n);else if(e)try{e(this,t)}catch(i){this.error("use callback error",i,n)}},_use:function(e,t){this.Array||this._attach(["yui-base"]);var i,r,s,a=this,o=YUI.Env,u=o.mods,l=a.Env,c=l._used,d=o.aliases,h=o._loaderQueue,f=e[0],p=a.Array,g=a.config,m=g.bootstrap,v=[],y=[],$=!0,_=g.fetchCSS,E=function(e,t){var i=0,r=[];if(e.length){if(d){for(i=0;i<e.length;i++)d[e[i]]?r=[].concat(r,d[e[i]]):r.push(e[i]);e=r}p.each(e,function(e){if(t||y.push(e),!c[e]){var i,r,s=u[e];s?(c[e]=!0,i=s.details.requires,r=s.details.use):o._loaded[n][e]?c[e]=!0:v.push(e),i&&i.length&&E(i),r&&r.length&&E(r,1)}})}},A=function(n){var i,r,s=n||{success:!0,msg:"not dynamic"},o=!0,u=s.data;a._loading=!1,u&&(r=v,v=[],y=[],E(u),(i=v.length)&&v.sort().join()==r.sort().join()&&(i=!1)),i&&u?(a._loading=!0,a._use(v,function(){a._attach(u)&&a._notify(t,s,u)})):(u&&(o=a._attach(u)),o&&a._notify(t,s,e)),a._useQueue&&a._useQueue.size()&&!a._loading&&a._use.apply(a,a._useQueue.next())};return"*"===f?(($=a._attach(a.Object.keys(u)))&&A(),a):(u.loader&&!a.Loader&&a._attach(["loader"]),m&&a.Loader&&e.length&&((r=b(a)).require(e),r.ignoreRegistered=!0,r._boot=!0,r.calculate(null,_?null:"js"),e=r.sorted,r._boot=!1),E(e),(i=v.length)&&(i=(v=a.Object.keys(p.hash(v))).length),m&&i&&a.Loader?(a._loading=!0,(r=b(a)).onEnd=A,r.context=a,r.data=e,r.ignoreRegistered=!1,r.require(e),r.insert(null,_?null:"js")):m&&i&&a.Get&&!l.bootstrapped?(a._loading=!0,s=function(){a._loading=!1,h.running=!1,l.bootstrapped=!0,o._bootstrapping=!1,a._attach(["loader"])&&a._use(e,t)},o._bootstrapping?h.add(s):(o._bootstrapping=!0,a.Get.script(g.base+g.loaderPath,{onEnd:s}))):($=a._attach(e))&&A(),a)},namespace:function(){for(var e,t,n,i,r=arguments,s=0;s<r.length;s++)if(e=this,(i=r[s]).indexOf(".")>-1)for(t="YAHOO"==(n=i.split("."))[0]?1:0;t<n.length;t++)e[n[t]]=e[n[t]]||{},e=e[n[t]];else e[i]=e[i]||{},e=e[i];return e},log:a,message:a,dump:function(e){return""+e},error:function(e,t,n){var i;if(this.config.errorFn&&(i=this.config.errorFn.apply(this,arguments)),this.config.throwFail&&!i)throw t||Error(e);return this.message(e,"error",""+n),this},guid:function(e){var t=this.Env._guidp+"_"+ ++this.Env._uidx;return e?e+t:t},stamp:function(e,t){var n;if(!e)return e;if(!(n=e.uniqueID&&e.nodeType&&9!==e.nodeType?e.uniqueID:"string"==typeof e?e:e._yuid)&&(n=this.guid(),!t))try{e._yuid=n}catch(i){n=null}return n},destroy:function(){this.Event&&this.Event._unload(),delete p[this.id],delete this.Env,delete this.config}},YUI.prototype=e,e)e.hasOwnProperty(t)&&(YUI[t]=e[t]);YUI.applyConfig=function(e){e&&(YUI.GlobalConfig&&this.prototype.applyConfig.call(this,YUI.GlobalConfig),this.prototype.applyConfig.call(this,e),YUI.GlobalConfig=this.config)},YUI._init(),l?m(window,"load",y):y(),YUI.Env.add=m,YUI.Env.remove=v,"object"==typeof exports&&(exports.YUI=YUI)}(),YUI.add("yui-base",function(e){var t=e.Lang||(e.Lang={}),n=String.prototype,i=Object.prototype.toString,r={undefined:"undefined",number:"number",boolean:"boolean",string:"string","[object Function]":"function","[object RegExp]":"regexp","[object Array]":"array","[object Date]":"date","[object Error]":"error"},s=/\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g,a=/^\s+|\s+$/g,o=/\{\s*\[(?:native code|function)\]\s*\}/i;t._isNative=function(t){return!!(e.config.useNativeES5&&t&&o.test(t))},t.isArray=t._isNative(Array.isArray)?Array.isArray:function(e){return"array"===t.type(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isDate=function(e){return"date"===t.type(e)&&"Invalid Date"!==e.toString()&&!isNaN(e)},t.isFunction=function(e){return"function"===t.type(e)},t.isNull=function(e){return null===e},t.isNumber=function(e){return"number"==typeof e&&isFinite(e)},t.isObject=function(e,n){var i=typeof e;return e&&("object"===i||!n&&("function"===i||t.isFunction(e)))||!1},t.isString=function(e){return"string"==typeof e},t.isUndefined=function(e){return void 0===e},t.isValue=function(e){var n=t.type(e);switch(n){case"number":return isFinite(e);case"null":case"undefined":return!1;default:return!!n}},t.now=Date.now||function(){return new Date().getTime()},t.sub=function(e,n){return e.replace?e.replace(s,function(e,i){return t.isUndefined(n[i])?e:n[i]}):e},t.trim=n.trim?function(e){return e&&e.trim?e.trim():e}:function(e){try{return e.replace(a,"")}catch(t){return e}},t.trimLeft=n.trimLeft?function(e){return e.trimLeft()}:function(e){return e.replace(/^\s+/,"")},t.trimRight=n.trimRight?function(e){return e.trimRight()}:function(e){return e.replace(/\s+$/,"")},t.type=function(e){return r[typeof e]||r[i.call(e)]||(e?"object":"null")};var u=e.Lang,l=Array.prototype,c=Object.prototype.hasOwnProperty;function d(e,t,n){var i,r;if(t||(t=0),n||d.test(e))try{return l.slice.call(e,t)}catch(s){for(r=[],i=e.length;t<i;++t)r.push(e[t]);return r}return[e]}function h(){this._init(),this.add.apply(this,arguments)}e.Array=d,d.dedupe=function(e){var t,n,i,r={},s=[];for(t=0,i=e.length;t<i;++t)n=e[t],c.call(r,n)||(r[n]=1,s.push(n));return s},d.each=d.forEach=u._isNative(l.forEach)?function(t,n,i){return l.forEach.call(t||[],n,i||e),e}:function(t,n,i){for(var r=0,s=t&&t.length||0;r<s;++r)r in t&&n.call(i||e,t[r],r,t);return e},d.hash=function(e,t){var n,i,r={},s=t&&t.length||0;for(n=0,i=e.length;n<i;++n)n in e&&(r[e[n]]=!(s>n)||!(n in t)||t[n]);return r},d.indexOf=u._isNative(l.indexOf)?function(e,t,n){return l.indexOf.call(e,t,n)}:function(e,t,n){var i=e.length;for((n=((n=+n||0)>0||-1)*Math.floor(Math.abs(n)))<0&&(n+=i)<0&&(n=0);n<i;++n)if(n in e&&e[n]===t)return n;return -1},d.numericSort=function(e,t){return e-t},d.some=u._isNative(l.some)?function(e,t,n){return l.some.call(e,t,n)}:function(e,t,n){for(var i=0,r=e.length;i<r;++i)if(i in e&&t.call(n,e[i],i,e))return!0;return!1},d.test=function(e){var t=0;if(u.isArray(e))t=1;else if(u.isObject(e))try{"length"in e&&!e.tagName&&!e.alert&&!e.apply&&(t=2)}catch(n){}return t},h.prototype={_init:function(){this._q=[]},next:function(){return this._q.shift()},last:function(){return this._q.pop()},add:function(){return this._q.push.apply(this._q,arguments),this},size:function(){return this._q.length}},e.Queue=h,YUI.Env._loaderQueue=YUI.Env._loaderQueue||new h;var c=Object.prototype.hasOwnProperty,f=e.Lang.isObject;e.cached=function(e,t,n){return t||(t={}),function(i){var r=arguments.length>1?Array.prototype.join.call(arguments,"__"):String(i);return r in t&&(!n||t[r]!=n)||(t[r]=e.apply(e,arguments)),t[r]}},e.getLocation=function(){var t=e.config.win;return t&&t.location},e.merge=function(){for(var t=arguments,n=0,i=t.length,r={};n<i;++n)e.mix(r,t[n],!0);return r},e.mix=function(t,n,i,r,s,a){var o,u,l,d,h,p,g;if(!t||!n)return t||e;if(s){if(2===s&&e.mix(t.prototype,n.prototype,i,r,0,a),l=1===s||3===s?n.prototype:n,g=1===s||4===s?t.prototype:t,!l||!g)return t}else l=n,g=t;if(o=i&&!a,r)for(d=0,p=r.length;d<p;++d)h=r[d],c.call(l,h)&&(u=!o&&h in g,a&&u&&f(g[h],!0)&&f(l[h],!0)?e.mix(g[h],l[h],i,null,0,a):(i||!u)&&(g[h]=l[h]));else{for(h in l)c.call(l,h)&&(u=!o&&h in g,a&&u&&f(g[h],!0)&&f(l[h],!0)?e.mix(g[h],l[h],i,null,0,a):(i||!u)&&(g[h]=l[h]));e.Object._hasEnumBug&&e.mix(g,l,i,e.Object._forceEnum,s,a)}return t};var p,u=e.Lang,c=Object.prototype.hasOwnProperty,g=e.Object=u._isNative(Object.create)?function(e){return Object.create(e)}:function(){function e(){}return function(t){return e.prototype=t,new e}}(),m=g._forceEnum=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","toLocaleString","valueOf"],v=g._hasEnumBug=!({valueOf:0}).propertyIsEnumerable("valueOf"),y=g._hasProtoEnumBug=(function(){}).propertyIsEnumerable("prototype"),b=g.owns=function(e,t){return!!e&&c.call(e,t)};g.hasKey=b,g.keys=u._isNative(Object.keys)?Object.keys:function(e){if(!u.isObject(e))throw TypeError("Object.keys called on a non-object");var t,n,i,r=[];if(y&&"function"==typeof e)for(n in e)b(e,n)&&"prototype"!==n&&r.push(n);else for(n in e)b(e,n)&&r.push(n);if(v)for(t=0,i=m.length;t<i;++t)b(e,n=m[t])&&r.push(n);return r},g.values=function(e){for(var t=g.keys(e),n=0,i=t.length,r=[];n<i;++n)r.push(e[t[n]]);return r},g.size=function(e){try{return g.keys(e).length}catch(t){return 0}},g.hasValue=function(t,n){return e.Array.indexOf(g.values(t),n)>-1},g.each=function(t,n,i,r){var s;for(s in t)(r||b(t,s))&&n.call(i||e,t[s],s,t);return e},g.some=function(t,n,i,r){var s;for(s in t)if((r||b(t,s))&&n.call(i||e,t[s],s,t))return!0;return!1},g.getValue=function(t,n){if(!u.isObject(t))return p;var i,r=e.Array(n),s=r.length;for(i=0;t!==p&&i<s;i++)t=t[r[i]];return t},g.setValue=function(t,n,i){var r,s=e.Array(n),a=s.length-1,o=t;if(a>=0){for(r=0;o!==p&&r<a;r++)o=o[s[r]];if(o===p)return p;o[s[r]]=i}return t},g.isEmpty=function(e){return!g.keys(Object(e)).length},YUI.Env.parseUA=function(t){var n,i=function(e){var t=0;return parseFloat(e.replace(/\./g,function(){return 1==t++?"":"."}))},r=e.config.win,s=r&&r.navigator,a={ie:0,opera:0,gecko:0,webkit:0,safari:0,chrome:0,mobile:null,air:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,silk:0,accel:!1,webos:0,caja:s&&s.cajaVersion,secure:!1,os:null,nodejs:0},o=t||s&&s.userAgent,u=r&&r.location,l=u&&u.href;return a.userAgent=o,a.secure=l&&0===l.toLowerCase().indexOf("https"),o&&(/windows|win32/i.test(o)?a.os="windows":/macintosh|mac_powerpc/i.test(o)?a.os="macintosh":/android/i.test(o)?a.os="android":/symbos/i.test(o)?a.os="symbos":/linux/i.test(o)?a.os="linux":/rhino/i.test(o)&&(a.os="rhino"),/KHTML/.test(o)&&(a.webkit=1),/IEMobile|XBLWP7/.test(o)&&(a.mobile="windows"),/Fennec/.test(o)&&(a.mobile="gecko"),(n=o.match(/AppleWebKit\/([^\s]*)/))&&n[1]&&(a.webkit=i(n[1]),a.safari=a.webkit,/ Mobile\//.test(o)||/iPad|iPod|iPhone/.test(o)?(a.mobile="Apple",(n=o.match(/OS ([^\s]*)/))&&n[1]&&(n=i(n[1].replace("_","."))),a.ios=n,a.os="ios",a.ipad=a.ipod=a.iphone=0,(n=o.match(/iPad|iPod|iPhone/))&&n[0]&&(a[n[0].toLowerCase()]=a.ios)):((n=o.match(/NokiaN[^\/]*|webOS\/\d\.\d/))&&(a.mobile=n[0]),/webOS/.test(o)&&(a.mobile="WebOS",(n=o.match(/webOS\/([^\s]*);/))&&n[1]&&(a.webos=i(n[1]))),/ Android/.test(o)&&(/Mobile/.test(o)&&(a.mobile="Android"),(n=o.match(/Android ([^\s]*);/))&&n[1]&&(a.android=i(n[1]))),/Silk/.test(o)&&((n=o.match(/Silk\/([^\s]*)\)/))&&n[1]&&(a.silk=i(n[1])),a.android||(a.android=2.34,a.os="Android"),/Accelerated=true/.test(o)&&(a.accel=!0))),(n=o.match(/(Chrome|CrMo)\/([^\s]*)/))&&n[1]&&n[2]?(a.chrome=i(n[2]),a.safari=0,"CrMo"===n[1]&&(a.mobile="chrome")):(n=o.match(/AdobeAIR\/([^\s]*)/))&&(a.air=n[0])),!a.webkit&&(/Opera/.test(o)?((n=o.match(/Opera[\s\/]([^\s]*)/))&&n[1]&&(a.opera=i(n[1])),(n=o.match(/Version\/([^\s]*)/))&&n[1]&&(a.opera=i(n[1])),/Opera Mobi/.test(o)&&(a.mobile="opera",(n=o.replace("Opera Mobi","").match(/Opera ([^\s]*)/))&&n[1]&&(a.opera=i(n[1]))),(n=o.match(/Opera Mini[^;]*/))&&(a.mobile=n[0])):(n=o.match(/MSIE\s([^;]*)/))&&n[1]?a.ie=i(n[1]):(n=o.match(/Gecko\/([^\s]*)/))&&(a.gecko=1,(n=o.match(/rv:([^\s\)]*)/))&&n[1]&&(a.gecko=i(n[1]))))),t||("object"==typeof process&&process.versions&&process.versions.node&&(a.os=process.platform,a.nodejs=process.versions.node),YUI.Env.UA=a),a},e.UA=YUI.Env.UA||YUI.Env.parseUA(),e.UA.compareVersions=function(e,t){var n,i,r,s,a,o;if(e===t)return 0;for(a=0,i=(e+"").split("."),s=(t+"").split("."),o=Math.max(i.length,s.length);a<o;++a){if(n=parseInt(i[a],10),r=parseInt(s[a],10),isNaN(n)&&(n=0),isNaN(r)&&(r=0),n<r)return -1;if(n>r)return 1}return 0},YUI.Env.aliases={anim:["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"],app:["app-base","app-transitions","model","model-list","router","view"],attribute:["attribute-base","attribute-complex"],autocomplete:["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"],base:["base-base","base-pluginhost","base-build"],cache:["cache-base","cache-offline","cache-plugin"],collection:["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"],controller:["router"],dataschema:["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"],datasource:["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling",],datatable:["datatable-core","datatable-head","datatable-body","datatable-base","datatable-column-widths","datatable-message","datatable-mutable","datatable-sort","datatable-datasource"],"datatable-deprecated":["datatable-base-deprecated","datatable-datasource-deprecated","datatable-sort-deprecated","datatable-scroll-deprecated"],datatype:["datatype-number","datatype-date","datatype-xml"],"datatype-date":["datatype-date-parse","datatype-date-format"],"datatype-number":["datatype-number-parse","datatype-number-format"],"datatype-xml":["datatype-xml-parse","datatype-xml-format"],dd:["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"],dom:["dom-base","dom-screen","dom-style","selector-native","selector"],editor:["frame","editor-selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"],event:["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside","event-touch","event-move","event-flick","event-valuechange",],"event-custom":["event-custom-base","event-custom-complex"],"event-gestures":["event-flick","event-move"],handlebars:["handlebars-compiler"],highlight:["highlight-base","highlight-accentfold"],history:["history-base","history-hash","history-hash-ie","history-html5"],io:["io-base","io-xdr","io-form","io-upload-iframe","io-queue"],json:["json-parse","json-stringify"],loader:["loader-base","loader-rollup","loader-yui3"],node:["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"],pluginhost:["pluginhost-base","pluginhost-config"],querystring:["querystring-parse","querystring-stringify"],recordset:["recordset-base","recordset-sort","recordset-filter","recordset-indexer"],resize:["resize-base","resize-proxy","resize-constrain"],slider:["slider-base","slider-value-range","clickable-rail","range-slider"],text:["text-accentfold","text-wordbreak"],widget:["widget-base","widget-htmlparser","widget-skin","widget-uievents"]}},"3.18.1"),YUI.add("get",function(e){var t,n,i,r=e.Lang;e.Get=n={cssOptions:{attributes:{rel:"stylesheet"},doc:e.config.linkDoc||e.config.doc,pollInterval:50},jsOptions:{autopurge:!0,doc:e.config.scriptDoc||e.config.doc},options:{attributes:{charset:"utf-8"},purgethreshold:20},REGEX_CSS:/\.css(?:[?;].*)?$/i,REGEX_JS:/\.js(?:[?;].*)?$/i,_insertCache:{},_pending:null,_purgeNodes:[],_queue:[],abort:function(e){var t,n,i,r,s;if(!e.abort){if(n=e,s=this._pending,e=null,s&&s.transaction.id===n)e=s.transaction,this._pending=null;else for(t=0,r=this._queue.length;t<r;++t)if((i=this._queue[t].transaction).id===n){e=i,this._queue.splice(t,1);break}}e&&e.abort()},css:function(e,t,n){return this._load("css",e,t,n)},js:function(e,t,n){return this._load("js",e,t,n)},load:function(e,t,n){return this._load(null,e,t,n)},_autoPurge:function(e){e&&this._purgeNodes.length>=e&&this._purge(this._purgeNodes)},_getEnv:function(){var t=e.config.doc,n=e.UA;return this._env={async:t&&!0===t.createElement("script").async,cssFail:n.gecko>=9||n.compareVersions(n.webkit,535.24)>=0,cssLoad:(!n.gecko&&!n.webkit||n.gecko>=9||n.compareVersions(n.webkit,535.24)>=0)&&!(n.chrome&&n.chrome<=18),preservesScriptOrder:!!(n.gecko||n.opera)}},_getTransaction:function(t,n){var s,a,o,u,l=[];for(r.isArray(t)||(t=[t]),(n=e.merge(this.options,n)).attributes=e.merge(this.options.attributes,n.attributes),s=0,a=t.length;s<a;++s){if(u=t[s],o={attributes:{}},"string"==typeof u)o.url=u;else{if(!u.url)continue;e.mix(o,u,!1,null,0,!0),u=u.url}e.mix(o,n,!1,null,0,!0),o.type||(this.REGEX_CSS.test(u)?o.type="css":(this.REGEX_JS.test(u),o.type="js")),e.mix(o,"js"===o.type?this.jsOptions:this.cssOptions,!1,null,0,!0),o.attributes.id||(o.attributes.id=e.guid()),o.win?o.doc=o.win.document:o.win=o.doc.defaultView||o.doc.parentWindow,o.charset&&(o.attributes.charset=o.charset),l.push(o)}return new i(l,n)},_load:function(e,t,n,i){var r;return"function"==typeof n&&(i=n,n={}),n||(n={}),n.type=e,this._env||this._getEnv(),r=this._getTransaction(t,n),this._queue.push({callback:i,transaction:r}),this._next(),r},_next:function(){var e;!this._pending&&(e=this._queue.shift())&&(this._pending=e,e.transaction.execute(function(){e.callback&&e.callback.apply(this,arguments),n._pending=null,n._next()}))},_purge:function(t){for(var n,i,r=this._purgeNodes,s=t!==r;i=t.pop();)i._yuiget_finished&&(i.parentNode&&i.parentNode.removeChild(i),s&&(n=e.Array.indexOf(r,i))>-1&&r.splice(n,1))}},n.script=n.js,n.Transaction=i=function(t,n){var r=this;r.id=i._lastId+=1,r.data=n.data,r.errors=[],r.nodes=[],r.options=n,r.requests=t,r._callbacks=[],r._queue=[],r._waiting=0,r.tId=r.id,r.win=n.win||e.config.win},i._lastId=0,i.prototype={_state:"new",abort:function(e){this._pending=null,this._pendingCSS=null,this._pollTimer=clearTimeout(this._pollTimer),this._queue=[],this._waiting=0,this.errors.push({error:e||"Aborted"}),this._finish()},execute:function(e){var t,n,i,r,s=this,a=s.requests,o=s._state;if("done"===o){e&&e(s.errors.length?s.errors:null,s);return}if(e&&s._callbacks.push(e),"executing"!==o){for(s._state="executing",s._queue=i=[],s.options.timeout&&(s._timeout=setTimeout(function(){s.abort("Timeout")},s.options.timeout)),t=0,n=a.length;t<n;++t)(r=s.requests[t]).async||"css"===r.type?s._insert(r):i.push(r);s._next()}},purge:function(){n._purge(this.nodes)},_createNode:function(e,n,i){var r,s,a=i.createElement(e);for(r in t||((s=i.createElement("div")).setAttribute("class","a"),t="a"===s.className?{}:{for:"htmlFor",class:"className"}),n)n.hasOwnProperty(r)&&a.setAttribute(t[r]||r,n[r]);return a},_finish:function(){var e,t,n,i=this.errors.length?this.errors:null,r=this.options,s=r.context||this;if("done"!==this._state){for(t=0,this._state="done",n=this._callbacks.length;t<n;++t)this._callbacks[t].call(s,i,this);e=this._getEventData(),i?(r.onTimeout&&"Timeout"===i[i.length-1].error&&r.onTimeout.call(s,e),r.onFailure&&r.onFailure.call(s,e)):r.onSuccess&&r.onSuccess.call(s,e),r.onEnd&&r.onEnd.call(s,e)}},_getEventData:function(t){return t?e.merge(this,{abort:this.abort,purge:this.purge,request:t,url:t.url,win:t.win}):this},_getInsertBefore:function(t){var i,r,s=t.doc,a=t.insertBefore;return a?"string"==typeof a?s.getElementById(a):a:(a=(i=n._insertCache)[r=e.stamp(s)])?a:(a=s.getElementsByTagName("base")[0])?i[r]=a:(a=s.head||s.getElementsByTagName("head")[0])?(a.appendChild(s.createTextNode("")),i[r]=a.lastChild):i[r]=s.getElementsByTagName("script")[0]},_insert:function(t){var i,r,s=n._env,a=this._getInsertBefore(t),o="js"===t.type,u=t.node,l=this,c=e.UA;function d(){l._progress("Failed to load "+t.url,t)}function h(){i&&clearTimeout(i),l._progress(null,t)}u||(r=o?"script":!s.cssLoad&&c.gecko?"style":"link",u=t.node=this._createNode(r,t.attributes,t.doc)),o?(u.setAttribute("src",t.url),t.async?u.async=!0:(s.async&&(u.async=!1),s.preservesScriptOrder||(this._pending=t))):!s.cssLoad&&c.gecko?u.innerHTML=(t.attributes.charset?'@charset "'+t.attributes.charset+'";':"")+'@import "'+t.url+'";':u.setAttribute("href",t.url),o&&c.ie&&c.ie<9?u.onreadystatechange=function(){/loaded|complete/.test(u.readyState)&&(u.onreadystatechange=null,h())}:o||s.cssLoad?(u.onerror=d,u.onload=h,s.cssFail||o||(i=setTimeout(d,t.timeout||3e3))):this._poll(t),this._waiting+=1,this.nodes.push(u),a.parentNode.insertBefore(u,a)},_next:function(){!this._pending&&(this._queue.length?this._insert(this._queue.shift()):this._waiting||this._finish())},_poll:function(t){var n,i,r,s,a,o,u=this,l=u._pendingCSS,c=e.UA.webkit;if(!t||(l||(l=u._pendingCSS=[]),l.push(t),!u._pollTimer)){for(n=0,u._pollTimer=null;n<l.length;++n)if(a=l[n],c){for(r=(o=a.doc.styleSheets).length,s=a.node.href;--r>=0;)if(o[r].href===s){l.splice(n,1),n-=1,u._progress(null,a);break}}else try{i=!!a.node.sheet.cssRules,l.splice(n,1),n-=1,u._progress(null,a)}catch(d){}l.length&&(u._pollTimer=setTimeout(function(){u._poll.call(u)},u.options.pollInterval))}},_progress:function(e,t){var i=this.options;e&&(t.error=e,this.errors.push({error:e,request:t})),t.node._yuiget_finished=t.finished=!0,i.onProgress&&i.onProgress.call(i.context||this,this._getEventData(t)),t.autopurge&&(n._autoPurge(this.options.purgethreshold),n._purgeNodes.push(t.node)),this._pending===t&&(this._pending=null),this._waiting-=1,this._next()}}},"3.18.1",{requires:["yui-base"]}),YUI.add("features",function(e){var t={};e.mix(e.namespace("Features"),{tests:t,add:function(e,n,i){t[e]=t[e]||{},t[e][n]=i},all:function(n,i){var r=t[n],s=[];return r&&e.Object.each(r,function(t,r){s.push(r+":"+(e.Features.test(n,r,i)?1:0))}),s.length?s.join(";"):""},test:function(n,i,r){r=r||[];var s,a,o,u=t[n],l=u&&u[i];return l&&(s=l.result,e.Lang.isUndefined(s)&&((a=l.ua)&&(s=e.UA[a]),(o=l.test)&&(!a||s)&&(s=o.apply(e,r)),l.result=s)),s}});var n=e.Features.add;n("load","0",{name:"io-nodejs",trigger:"io-base",ua:"nodejs"}),n("load","1",{name:"graphics-canvas-default",test:function(e){var t=e.config.doc,n=e.config.defaultGraphicEngine&&"canvas"==e.config.defaultGraphicEngine,i=t&&t.createElement("canvas");return(!(t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"))||n)&&i&&i.getContext&&i.getContext("2d")},trigger:"graphics"}),n("load","2",{name:"autocomplete-list-keys",test:function(e){return!(e.UA.ios||e.UA.android)},trigger:"autocomplete-list"}),n("load","3",{name:"graphics-svg",test:function(e){var t=e.config.doc,n=!e.config.defaultGraphicEngine||"canvas"!=e.config.defaultGraphicEngine,i=t&&t.createElement("canvas");return t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(n||!i)},trigger:"graphics"}),n("load","4",{name:"editor-para-ie",trigger:"editor-para",ua:"ie",when:"instead"}),n("load","5",{name:"graphics-vml-default",test:function(e){var t=e.config.doc,n=t&&t.createElement("canvas");return t&&!t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!n||!n.getContext||!n.getContext("2d"))},trigger:"graphics"}),n("load","6",{name:"graphics-svg-default",test:function(e){var t=e.config.doc,n=!e.config.defaultGraphicEngine||"canvas"!=e.config.defaultGraphicEngine,i=t&&t.createElement("canvas");return t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(n||!i)},trigger:"graphics"}),n("load","7",{name:"history-hash-ie",test:function(e){var t=e.config.doc&&e.config.doc.documentMode;return e.UA.ie&&(!("onhashchange"in e.config.win)||!t||t<8)},trigger:"history-hash"}),n("load","8",{name:"transition-timer",test:function(e){var t=e.config.doc,n=t?t.documentElement:null,i=!0;return n&&n.style&&(i=!("MozTransition"in n.style||"WebkitTransition"in n.style)),i},trigger:"transition"}),n("load","9",{name:"dom-style-ie",test:function(e){var t=e.Features.test,n=e.Features.add,i=e.config.win,r=e.config.doc,s=!1;return n("style","computedStyle",{test:function(){return i&&"getComputedStyle"in i}}),n("style","opacity",{test:function(){return r&&"opacity"in r.documentElement.style}}),s=!t("style","opacity")&&!t("style","computedStyle")},trigger:"dom-style"}),n("load","10",{name:"selector-css2",test:function(e){var t=e.config.doc;return t&&!("querySelectorAll"in t)},trigger:"selector"}),n("load","11",{name:"widget-base-ie",trigger:"widget-base",ua:"ie"}),n("load","12",{name:"event-base-ie",test:function(e){var t=e.config.doc&&e.config.doc.implementation;return t&&!t.hasFeature("Events","2.0")},trigger:"node-base"}),n("load","13",{name:"dd-gestures",test:function(e){return e.config.win&&"ontouchstart"in e.config.win&&!(e.UA.chrome&&e.UA.chrome<6)},trigger:"dd-drag"}),n("load","14",{name:"scrollview-base-ie",trigger:"scrollview-base",ua:"ie"}),n("load","15",{name:"app-transitions-native",test:function(e){var t=e.config.doc,n=t?t.documentElement:null;return!!n&&!!n.style&&("MozTransition"in n.style||"WebkitTransition"in n.style)},trigger:"app-transitions"}),n("load","16",{name:"graphics-canvas",test:function(e){var t=e.config.doc,n=e.config.defaultGraphicEngine&&"canvas"==e.config.defaultGraphicEngine,i=t&&t.createElement("canvas");return(!(t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"))||n)&&i&&i.getContext&&i.getContext("2d")},trigger:"graphics"}),n("load","17",{name:"graphics-vml",test:function(e){var t=e.config.doc,n=t&&t.createElement("canvas");return t&&!t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!n||!n.getContext||!n.getContext("2d"))},trigger:"graphics"})},"3.18.1",{requires:["yui-base"]}),YUI.add("intl-base",function(e){var t=/[, ]/;e.mix(e.namespace("Intl"),{lookupBestLang:function(n,i){var r,s,a,o;function u(e){var t;for(t=0;t<i.length;t+=1)if(e.toLowerCase()===i[t].toLowerCase())return i[t]}for(e.Lang.isString(n)&&(n=n.split(t)),r=0;r<n.length;r+=1)if((s=n[r])&&"*"!==s)for(;s.length>0;){if(a=u(s))return a;if((o=s.lastIndexOf("-"))>=0)s=s.substring(0,o),o>=2&&"-"===s.charAt(o-2)&&(s=s.substring(0,o-2));else break}return""}})},"3.18.1",{requires:["yui-base"]}),YUI.add("yui-log",function(e){var t=e,n="yui:log",i="undefined",r={debug:1,info:1,warn:1,error:1};t.log=function(e,s,a,o){var u,l,c,d,h,f=t,p=f.config,g=f.fire?f:YUI.Env.globalEvents;return p.debug&&(a&&(l=p.logExclude,!(c=p.logInclude)||a in c?c&&a in c?u=!c[a]:l&&a in l&&(u=l[a]):u=1),u||(p.useBrowserConsole&&(d=a?a+": "+e:e,f.Lang.isFunction(p.logFn)?p.logFn.call(f,e,s,a):typeof console!=i&&console.log?(h=s&&console[s]&&s in r?s:"log",console[h](d)):typeof opera!=i&&opera.postError(d)),g&&!o&&(g!=f||g.getEvent(n)||g.publish(n,{broadcast:2}),g.fire(n,{msg:e,cat:s,src:a})))),f},t.message=function(){return t.log.apply(t,arguments)}},"3.18.1",{requires:["yui-base"]}),YUI.add("yui-later",function(e){var t=[];e.later=function(n,i,r,s,a){n=n||0,s=e.Lang.isUndefined(s)?t:e.Array(s);var o=!1,u=(i=i||e.config.win||e)&&e.Lang.isString(r)?i[r]:r,l=function(){o||(u.apply?u.apply(i,s||t):u(s[0],s[1],s[2],s[3]))},c=a?setInterval(l,n):setTimeout(l,n);return{id:c,interval:a,cancel:function(){o=!0,this.interval?clearInterval(c):clearTimeout(c)}}},e.Lang.later=e.later},"3.18.1",{requires:["yui-base"]}),YUI.add("loader-base",function(e){if(!YUI.Env[e.version]){var t,n,i,r,s,a,o,u;t=e.version,n="/build/",r=(i=e.Env.base)+"combo?",a=(s={version:t,root:t+n,base:e.Env.base,comboBase:r,skin:{defaultSkin:"sam",base:"assets/skins/",path:"skin.css",after:["cssreset","cssfonts","cssgrids","cssbase","cssreset-context","cssfonts-context"]},groups:{},patterns:{}}).groups,o=function(e,t,s){var o="2in3."+(e||"4")+"/"+(t||"2.9.0")+n,u=s&&s.base?s.base:i,l=s&&s.comboBase?s.comboBase:r;a.yui2.base=u+o,a.yui2.root=o,a.yui2.comboBase=l},u=function(e,t){var s=(e||"gallery-2012.04.10-14-57")+n,o=t&&t.base?t.base:i,u=t&&t.comboBase?t.comboBase:r;a.gallery.base=o+s,a.gallery.root=s,a.gallery.comboBase=u},a[t]={},a.gallery={ext:!1,combine:!0,comboBase:r,update:u,patterns:{"gallery-":{},"lang/gallery-":{},"gallerycss-":{type:"css"}}},a.yui2={combine:!0,ext:!1,comboBase:r,update:o,patterns:{"yui2-":{configFn:function(e){/-skin|reset|fonts|grids|base/.test(e.name)&&(e.type="css",e.path=e.path.replace(/\.js/,".css"),e.path=e.path.replace(/\/yui2-skin/,"/assets/skins/sam/yui2-skin"))}}}},u(),o(),YUI.Env[t]=s}var l,c,d={},h=[],f=YUI.Env,p=f._loaded,g="intl",m=e.version,v=e.Object,y=v.each,b=e.Array,$=f._loaderQueue,_=f[m],E=e.Lang,A=f.mods,T=function(e,t,n,i){var r=e+"/"+t;return i||(r+="-min"),r+="."+(n||"css")};e.Env.meta=_,e.Loader=function(t){var n=_.modules,i=this;t=t||{},l=_.md5,i.context=e,i.base=e.Env.meta.base+e.Env.meta.root,i.comboBase=e.Env.meta.comboBase,i.combine=t.base&&t.base.indexOf(i.comboBase.substr(0,20))>-1,i.comboSep="&",i.maxURLLength=1024,i.root=e.Env.meta.root,i.timeout=0,i.forceMap={},i.allowRollup=!1,i.filters={},i.required={},i.patterns={},i.moduleInfo={},i.groups=e.merge(e.Env.meta.groups),i.skin=e.merge(e.Env.meta.skin),i.conditions={},i.config=t,i._internal=!0,(c=f._renderedMods)?(y(c,function t(n,r){i.moduleInfo[r]=e.merge(n)}),y(c=f._conditions,function t(n,r){i.conditions[r]=e.merge(n)})):y(n,i.addModule,i),i.loaded=p[m],i._inspectPage(),i._internal=!1,i._config(t),i.forceMap=i.force?e.Array.hash(i.force):{},i.testresults=null,e.config.tests&&(i.testresults=e.config.tests),i.sorted=[],i.dirty=!0,i.inserted={},i.skipped={},i.tested={}},e.Loader.prototype={REGEX_CSS:/\.css(?:[?;].*)?$/i,FILTER_DEFS:{RAW:{searchExp:"-min\\.js",replaceStr:".js"},DEBUG:{searchExp:"-min\\.js",replaceStr:"-debug.js"}},_inspectPage:function(){y(this.moduleInfo,function(e,t){e.type&&"css"===e.type&&this.isCSSLoaded(e.name)&&(this.loaded[t]=!0)},this),y(A,function(e,t){if(e.details){var n=this.moduleInfo[t],i=e.details.requires,r=n&&n.requires;n?!n._inspected&&i&&r.length!=i.length&&delete n.expanded:n=this.addModule(e.details,t),n._inspected=!0}},this)},_requires:function(e,t){var n,i,r,s,a=this.moduleInfo,o=a[e],u=a[t];if(!o||!u)return!1;if(i=o.expanded_map,(r=o.after_map)&&t in r)return!0;if((r=u.after_map)&&e in r)return!1;if(s=a[t]&&a[t].supersedes){for(n=0;n<s.length;n++)if(this._requires(e,s[n]))return!0}if(s=a[e]&&a[e].supersedes){for(n=0;n<s.length;n++)if(this._requires(t,s[n]))return!1}return!!i&&t in i||!!o.ext&&"css"==o.type&&!u.ext&&"css"==u.type},_config:function(t){var n,i,r,s,a,o,u=this;if(t){for(n in t)if(t.hasOwnProperty(n)){if(r=t[n],"require"==n)u.require(r);else if("skin"==n)"string"==typeof r&&(u.skin.defaultSkin=t.skin,r={defaultSkin:r}),e.mix(u.skin,r,!0);else if("groups"==n)for(i in r)r.hasOwnProperty(i)&&(o=i,a=r[i],u.addGroup(a,o),a.aliases&&y(a.aliases,u.addAlias,u));else"modules"==n?y(r,u.addModule,u):"aliases"===n?y(r,u.addAlias,u):"gallery"==n?this.groups.gallery.update(r,t):"yui2"==n||"2in3"==n?this.groups.yui2.update(t["2in3"],t.yui2,t):u[n]=r}}s=u.filter,E.isString(s)&&(s=s.toUpperCase(),u.filterName=s,u.filter=u.FILTER_DEFS[s],"DEBUG"==s&&u.require("yui-log","dump")),u.lang},formatSkin:function(e,t){var n="skin-"+e;return t&&(n=n+"-"+t),n},_addSkin:function(e,t,n){var i,r,s,a,o=this.moduleInfo,u=this.skin,l=o[t]&&o[t].ext;return t&&!o[s=this.formatSkin(e,t)]&&(r=(i=o[t]).pkg||t,a={name:s,group:i.group,type:"css",after:u.after,path:(n||r)+"/"+u.base+e+"/"+t+".css",ext:l},i.base&&(a.base=i.base),i.configFn&&(a.configFn=i.configFn),this.addModule(a,s)),s},addAlias:function(e,t){YUI.Env.aliases[t]=e,this.addModule({name:t,use:e})},addGroup:function(e,t){var n=e.modules,i=this;t=t||e.name,e.name=t,i.groups[t]=e,e.patterns&&y(e.patterns,function(e,n){e.group=t,i.patterns[n]=e}),n&&y(n,function(e,n){"string"==typeof e&&(e={name:n,fullpath:e}),e.group=t,i.addModule(e,n)},i)},addModule:function(t,n){if(n=n||t.name,"string"==typeof t&&(t={name:n,fullpath:t}),this.moduleInfo[n]&&this.moduleInfo[n].temp&&(t=e.merge(this.moduleInfo[n],t)),t.name=n,!t||!t.name)return null;if(!t.type){t.type="js";var i=t.path||t.fullpath;i&&this.REGEX_CSS.test(i)&&(t.type="css")}t.path||t.fullpath||(t.path=T(n,n,t.type)),t.supersedes=t.supersedes||t.use,t.ext="ext"in t?t.ext:!this._internal;var r,s,a,o,u,l,c,d,h,p,g,m,v,y,$,_,E,A,w,x,S=t.submodules,N=this.conditions;if(this.moduleInfo[n]=t,t.requires=t.requires||[],t.skinnable&&(A=this._addSkin(this.skin.defaultSkin,n),t.requires.unshift(A)),t.requires=this.filterRequires(t.requires)||[],!t.langPack&&t.lang)for(h=0,p=b(t.lang);h<p.length;h++)$=p[h],g=this.getLangPackName($,n),(l=this.moduleInfo[g])||(l=this._addLangPack($,t,g));if(S){for(r in o=t.supersedes||[],s=0,S)if(S.hasOwnProperty(r)){if((u=S[r]).path=u.path||T(n,r,t.type),u.pkg=n,u.group=t.group,u.supersedes&&(o=o.concat(u.supersedes)),l=this.addModule(u,r),o.push(r),l.skinnable){if(t.skinnable=!0,(E=this.skin.overrides)&&E[r])for(h=0;h<E[r].length;h++)A=this._addSkin(E[r][h],r,n),o.push(A);A=this._addSkin(this.skin.defaultSkin,r,n),o.push(A)}if(u.lang&&u.lang.length)for(h=0,p=b(u.lang);h<p.length;h++)$=p[h],g=this.getLangPackName($,n),m=this.getLangPackName($,r),(l=this.moduleInfo[g])||(l=this._addLangPack($,t,g)),m in(v=v||b.hash(l.supersedes))||l.supersedes.push(m),t.lang=t.lang||[],$ in(y=y||b.hash(t.lang))||t.lang.push($),g=this.getLangPackName("",n),m=this.getLangPackName("",r),(l=this.moduleInfo[g])||(l=this._addLangPack($,t,g)),m in v||l.supersedes.push(m);s++}t.supersedes=b.dedupe(o),this.allowRollup&&(t.rollup=s<4?s:Math.min(s-1,4))}if(c=t.plugins)for(r in c)c.hasOwnProperty(r)&&((d=c[r]).pkg=n,d.path=d.path||T(n,r,t.type),d.requires=d.requires||[],d.group=t.group,this.addModule(d,r),t.skinnable&&this._addSkin(this.skin.defaultSkin,r,n));if(t.condition)for(a=t.condition.trigger,YUI.Env.aliases[a]&&(a=YUI.Env.aliases[a]),e.Lang.isArray(a)||(a=[a]),r=0;r<a.length;r++)x=a[r],w=t.condition.when,N[x]=N[x]||{},N[x][n]=t.condition,w&&"after"!=w?"instead"==w&&(t.supersedes=t.supersedes||[],t.supersedes.push(x)):(t.after=t.after||[],t.after.push(x));return t.supersedes&&(t.supersedes=this.filterRequires(t.supersedes)),t.after&&(t.after=this.filterRequires(t.after),t.after_map=b.hash(t.after)),t.configFn&&!1===(_=t.configFn(t))&&(delete this.moduleInfo[n],delete f._renderedMods[n],t=null),t&&(f._renderedMods||(f._renderedMods={}),f._renderedMods[n]=e.merge(t),f._conditions=N),t},require:function(t){var n="string"==typeof t?b(arguments):t;this.dirty=!0,this.required=e.merge(this.required,b.hash(this.filterRequires(n))),this._explodeRollups()},_explodeRollups:function(){var e,t=this,n=t.required;t.allowRollup||(y(n,function(i,r){(e=t.getModule(r))&&e.use&&b.each(e.use,function(i){(e=t.getModule(i))&&e.use?b.each(e.use,function(e){n[e]=!0}):n[i]=!0})}),t.required=n)},filterRequires:function(t){if(t){e.Lang.isArray(t)||(t=[t]),t=e.Array(t);var n,i,r,s,a=[];for(n=0;n<t.length;n++)if((i=this.getModule(t[n]))&&i.use)for(r=0;r<i.use.length;r++)(s=this.getModule(i.use[r]))&&s.use?a=e.Array.dedupe([].concat(a,this.filterRequires(s.use))):a.push(i.use[r]);else a.push(t[n]);t=a}return t},getRequires:function(t){if(!t)return h;if(t._parsed)return t.expanded||h;var n,i,r,s,a,o,u,l,c,d,f,p,m,$,_,E,T=this.testresults,w=t.name,x=A[w]&&A[w].details,S=t.lang||t.intl,N=this.moduleInfo,O=e.Features&&e.Features.tests.load;if(t.temp&&x&&(d=t,(t=this.addModule(x,w)).group=d.group,t.pkg=d.pkg,delete t.expanded),t.expanded&&(!this.lang||t.langCache===this.lang))return t.expanded;for(l=[],E={},c=this.filterRequires(t.requires),t.lang&&(l.unshift("intl"),c.unshift("intl"),S=!0),f=this.filterRequires(t.optional),t._parsed=!0,t.langCache=this.lang,n=0;n<c.length;n++)if(!E[c[n]]&&(l.push(c[n]),E[c[n]]=!0,i=this.getModule(c[n])))for(r=0,s=this.getRequires(i),S=S||i.expanded_map&&(g in i.expanded_map);r<s.length;r++)l.push(s[r]);if(c=this.filterRequires(t.supersedes)){for(n=0;n<c.length;n++)if(!E[c[n]]&&(t.submodules&&l.push(c[n]),E[c[n]]=!0,i=this.getModule(c[n])))for(r=0,s=this.getRequires(i),S=S||i.expanded_map&&(g in i.expanded_map);r<s.length;r++)l.push(s[r])}if(f&&this.loadOptional){for(n=0;n<f.length;n++)if(!E[f[n]]&&(l.push(f[n]),E[f[n]]=!0,i=N[f[n]]))for(r=0,s=this.getRequires(i),S=S||i.expanded_map&&(g in i.expanded_map);r<s.length;r++)l.push(s[r])}if((u=this.conditions[w])&&(t._parsed=!1,T&&O?y(T,function(e,t){var n=O[t].name;!E[n]&&O[t].trigger==w&&e&&O[t]&&(E[n]=!0,l.push(n))}):y(u,function(t,n){if(!E[n]&&t&&(!t.ua&&!t.test||t.ua&&e.UA[t.ua]||t.test&&t.test(e,c))&&(E[n]=!0,l.push(n),i=this.getModule(n)))for(r=0,s=this.getRequires(i);r<s.length;r++)l.push(s[r])},this)),t.skinnable){if(m=this.skin.overrides,y(YUI.Env.aliases,function(t,n){e.Array.indexOf(t,w)>-1&&($=n)}),m&&(m[w]||$&&m[$]))for(_=w,m[$]&&(_=$),n=0;n<m[_].length;n++)p=this._addSkin(m[_][n],w),this.isCSSLoaded(p,this._boot)||l.push(p);else p=this._addSkin(this.skin.defaultSkin,w),this.isCSSLoaded(p,this._boot)||l.push(p)}return t._parsed=!1,S&&(t.lang&&!t.langPack&&e.Intl&&(o=e.Intl.lookupBestLang(this.lang||"",t.lang),(a=this.getLangPackName(o,w))&&l.unshift(a)),l.unshift(g)),t.expanded_map=b.hash(l),t.expanded=v.keys(t.expanded_map),t.expanded},isCSSLoaded:function(t,n){if(!t||!YUI.Env.cssStampEl||!n&&this.ignoreRegistered)return!1;var i=YUI.Env.cssStampEl,r=!1,s=i.currentStyle;return i.className=t,s||(s=e.config.doc.defaultView.getComputedStyle(i,null)),s&&"none"===s.display&&(r=!0),i.className="",r},getProvides:function(t){var n,i,r=this.getModule(t);return r?(r&&!r.provides&&(n={},(i=r.supersedes)&&b.each(i,function(t){e.mix(n,this.getProvides(t))},this),n[t]=!0,r.provides=n),r.provides):d},calculate:function(e,t){(e||t||this.dirty)&&(e&&this._config(e),this._init||this._setup(),this._explode(),this.allowRollup?this._rollup():this._explodeRollups(),this._reduce(),this._sort())},_addLangPack:function(t,n,i){var r,s,a=n.name;return!this.moduleInfo[i]&&(s={path:r=T(n.pkg||a,i,"js",!0),intl:!0,langPack:!0,ext:n.ext,group:n.group,supersedes:[]},n.configFn&&(s.configFn=n.configFn),this.addModule(s,i),t&&(e.Env.lang=e.Env.lang||{},e.Env.lang[t]=e.Env.lang[t]||{},e.Env.lang[t][a]=!0)),this.moduleInfo[i]},_setup:function(){var t,n,i,r,s,a,o=this.moduleInfo;for(t in o)o.hasOwnProperty(t)&&(r=o[t])&&(r.requires=b.dedupe(r.requires),r.lang&&r.lang.length&&(a=this.getLangPackName("",t),this._addLangPack(null,r,a)));for(i in s={},this.ignoreRegistered||e.mix(s,f.mods),this.ignore&&e.mix(s,b.hash(this.ignore)),s)s.hasOwnProperty(i)&&e.mix(s,this.getProvides(i));if(this.force)for(n=0;n<this.force.length;n++)this.force[n]in s&&delete s[this.force[n]];e.mix(this.loaded,s),this._init=!0},getLangPackName:function(e,t){return"lang/"+t+(e?"_"+e:"")},_explode:function(){var t,n,i=this.required,r={},s=this;s.dirty=!1,s._explodeRollups(),y(i=s.required,function(a,o){if(!r[o]&&(r[o]=!0,t=s.getModule(o))){var u=t.expound;u&&(i[u]=s.getModule(u),n=s.getRequires(i[u]),e.mix(i,b.hash(n))),n=s.getRequires(t),e.mix(i,b.hash(n))}})},getModule:function(t){if(!t)return null;var n,i,r,s=this.moduleInfo[t],a=this.patterns;if(!s){for(r in a)if(a.hasOwnProperty(r)&&((n=a[r]).test||(n.test=function(e,t){return e.indexOf(t)>-1}),n.test(t,r))){i=n;break}i&&(n.action?n.action.call(this,t,r):(s=this.addModule(e.merge(i),t)).temp=!0)}return s},_rollup:function(){},_reduce:function(e){e=e||this.required;var t,n,i,r,s=this.loadType,a=!!this.ignore&&b.hash(this.ignore);for(t in e)if(e.hasOwnProperty(t)&&(r=this.getModule(t),((this.loaded[t]||A[t])&&!this.forceMap[t]&&!this.ignoreRegistered||s&&r&&r.type!=s)&&delete e[t],a&&a[t]&&delete e[t],i=r&&r.supersedes))for(n=0;n<i.length;n++)i[n]in e&&delete e[i[n]];return e},_finish:function(e,t){$.running=!1;var n=this.onEnd;n&&n.call(this.context,{msg:e,data:this.data,success:t}),this._continue()},_onSuccess:function(){var t,n,i,r=this,s=e.merge(r.skipped),a=[],o=r.requireRegistration;y(s,function(e){delete r.inserted[e]}),r.skipped={},y(r.inserted,function(t,n){var i=r.getModule(n);!i||!o||"js"!=i.type||n in YUI.Env.mods?e.mix(r.loaded,r.getProvides(n)):a.push(n)}),t=r.onSuccess,i=a.length?"notregistered":"success",n=!a.length,t&&t.call(r.context,{msg:i,data:r.data,success:n,failed:a,skipped:s}),r._finish(i,n)},_onProgress:function(e){this.onProgress&&this.onProgress.call(this.context,{name:e.url,data:e.data})},_onFailure:function(e){for(var t=this.onFailure,n=[],i=0,r=e.errors.length;i<r;i++)n.push(e.errors[i].error);n=n.join(","),t&&t.call(this.context,{msg:n,data:this.data,success:!1}),this._finish(n,!1)},_onTimeout:function(){var e=this.onTimeout;e&&e.call(this.context,{msg:"timeout",data:this.data,success:!1})},_sort:function(){for(var e,t,n,i,r,s,a,o=v.keys(this.required),u={},l=0;;){for(e=o.length,s=!1,i=l;i<e;i++){for(t=o[i],r=i+1;r<e;r++)if(!u[a=t+o[r]]&&this._requires(t,o[r])){n=o.splice(r,1),o.splice(i,0,n[0]),u[a]=!0,s=!0;break}if(s)break;l++}if(!s)break}this.sorted=o},_insert:function(t,n,i,r){t&&this._config(t),r||this.calculate(n);var s=this.resolve(),a=this,o=0,u=0;i&&(s["js"===i?"css":"js"]=[]),s.js.length&&o++,s.css.length&&o++;var l=function(e){u++;var t,n={},i=0,r="";if(e&&e.errors)for(i=0;i<e.errors.length;i++)n[r=e.errors[i].request?e.errors[i].request.url:e.errors[i]]=r;if(e&&e.data&&e.data.length&&"success"===e.type)for(i=0;i<e.data.length;i++)a.inserted[e.data[i].name]=!0;u===o&&(a._loading=null,e&&e.fn&&(t=e.fn,delete e.fn,t.call(a,e)))};if(this._loading=!0,!s.js.length&&!s.css.length){u=-1,l({fn:a._onSuccess});return}s.css.length&&e.Get.css(s.css,{data:s.cssMods,attributes:a.cssAttributes,insertBefore:a.insertBefore,charset:a.charset,timeout:a.timeout,context:a,onProgress:function(e){a._onProgress.call(a,e)},onTimeout:function(e){a._onTimeout.call(a,e)},onSuccess:function(e){e.type="success",e.fn=a._onSuccess,l.call(a,e)},onFailure:function(e){e.type="failure",e.fn=a._onFailure,l.call(a,e)}}),s.js.length&&e.Get.js(s.js,{data:s.jsMods,insertBefore:a.insertBefore,attributes:a.jsAttributes,charset:a.charset,timeout:a.timeout,autopurge:!1,context:a,async:!0,onProgress:function(e){a._onProgress.call(a,e)},onTimeout:function(e){a._onTimeout.call(a,e)},onSuccess:function(e){e.type="success",e.fn=a._onSuccess,l.call(a,e)},onFailure:function(e){e.type="failure",e.fn=a._onFailure,l.call(a,e)}})},_continue:function(){!$.running&&$.size()>0&&($.running=!0,$.next()())},insert:function(t,n,i){var r=this,s=e.merge(this);delete s.require,delete s.dirty,$.add(function(){r._insert(s,t,n,i)}),this._continue()},loadNext:function(e){},_filter:function(e,t,n){var i=this.filter,r=t&&t in this.filters,s=r&&this.filters[t],a=n||(this.moduleInfo[t]?this.moduleInfo[t].group:null);return a&&this.groups[a]&&this.groups[a].filter&&(s=this.groups[a].filter,r=!0),e&&(r&&(i=E.isString(s)?this.FILTER_DEFS[s.toUpperCase()]||null:s),i&&(e=e.replace(RegExp(i.searchExp,"g"),i.replaceStr))),e},_url:function(e,t,n){return this._filter((n||this.base||"")+e,t)},resolve:function(e,t){var n,i,r,s,a,o,u,l,c,h,f,p,g,m,v,y,b,$,_=[],A={},T=this,w=T.ignoreRegistered?{}:T.inserted,x={js:[],jsMods:[],css:[],cssMods:[]},S=T.loadType||"js";e&&T.calculate(),t=t||T.sorted;var N=function(e){e&&(!1===(a=e.group&&T.groups[e.group]||d).async&&(e.async=a.async),s=e.fullpath?T._filter(e.fullpath,t[i]):T._url(e.path,t[i],a.base||e.base),(e.attributes||!1===e.async)&&(s={url:s,async:e.async},e.attributes&&(s.attributes=e.attributes)),x[e.type].push(s),x[e.type+"Mods"].push(e))};for(i=0,n=t.length,s=p=T.comboBase,h={};i<n;i++){if(c=p,o=(r=T.getModule(t[i]))&&r.group,a=T.groups[o],o&&a){if(!a.combine||r.fullpath){N(r);continue}r.combine=!0,a.comboBase&&(c=a.comboBase),"root"in a&&E.isValue(a.root)&&(r.root=a.root),r.comboSep=a.comboSep||T.comboSep,r.maxURLLength=a.maxURLLength||T.maxURLLength}else if(!T.combine){N(r);continue}h[c]=h[c]||[],h[c].push(r)}for(u in h)if(h.hasOwnProperty(u)&&(A[u]=A[u]||{js:[],jsMods:[],css:[],cssMods:[]},s=u,n=(f=h[u]).length))for(i=0;i<n;i++)!w[f[i]]&&((r=f[i])&&(r.combine||!r.ext)?(A[u].comboSep=r.comboSep,A[u].group=r.group,A[u].maxURLLength=r.maxURLLength,l=(E.isValue(r.root)?r.root:T.root)+(r.path||r.fullpath),l=T._filter(l,r.name),A[u][r.type].push(l),A[u][r.type+"Mods"].push(r)):f[i]&&N(f[i]));for(u in A)for(S in b=A[g=u].comboSep||T.comboSep,$=A[g].maxURLLength||T.maxURLLength,A[g])if("js"===S||"css"===S){if(m=A[g][S],f=A[g][S+"Mods"],n=m.length,y=(v=g+m.join(b)).length,$<=g.length&&($=1024),n){if(y>$){for(t=0,_=[];t<n;t++)_.push(m[t]),(v=g+_.join(b)).length>$&&(r=_.pop(),v=g+_.join(b),x[S].push(T._filter(v,null,A[g].group)),_=[],r&&_.push(r));_.length&&(v=g+_.join(b),x[S].push(T._filter(v,null,A[g].group)))}else x[S].push(T._filter(v,null,A[g].group))}x[S+"Mods"]=x[S+"Mods"].concat(f)}return A=null,x},load:function(e){if(e){var t=this,n=t.resolve(!0);t.data=n,t.onEnd=function(){e.apply(t.context||t,arguments)},t.insert()}}}},"3.18.1",{requires:["get","features"]}),YUI.add("loader-rollup",function(e){e.Loader.prototype._rollup=function(){var e,t,n,i,r,s,a,o,u=this.required,l=this.moduleInfo;if(this.dirty||!this.rollups)for(e in this.rollups={},l)l.hasOwnProperty(e)&&(n=this.getModule(e))&&n.rollup&&(this.rollups[e]=n);for(;;){for(e in s=!1,this.rollups)if(this.rollups.hasOwnProperty(e)&&!u[e]&&(!this.loaded[e]||this.forceMap[e])){if(i=(n=this.getModule(e)).supersedes||[],r=!1,!n.rollup)continue;for(t=0,a=0;t<i.length;t++){if(o=l[i[t]],this.loaded[i[t]]&&!this.forceMap[i[t]]){r=!1;break}if(u[i[t]]&&n.type==o.type&&(r=++a>=n.rollup))break}r&&(u[e]=!0,s=!0,this.getRequires(n))}if(!s)break}}},"3.18.1",{requires:["loader-base"]}),YUI.add("loader-yui3",function(e){YUI.Env[e.version].modules=YUI.Env[e.version].modules||{"align-plugin":{requires:["node-screen","node-pluginhost"]},anim:{use:["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"]},"anim-base":{requires:["base-base","node-style"]},"anim-color":{requires:["anim-base"]},"anim-curve":{requires:["anim-xy"]},"anim-easing":{requires:["anim-base"]},"anim-node-plugin":{requires:["node-pluginhost","anim-base"]},"anim-scroll":{requires:["anim-base"]},"anim-shape-transform":{requires:["anim-base","anim-easing","matrix"]},"anim-xy":{requires:["anim-base","node-screen"]},app:{use:["app-base","app-transitions","model","model-list","router","view"]},"app-base":{requires:["classnamemanager","pjax-base","router","view"]},"app-transitions":{requires:["app-base"]},"app-transitions-css":{type:"css"},"app-transitions-native":{condition:{name:"app-transitions-native",test:function(e){var t=e.config.doc,n=t?t.documentElement:null;return!!n&&!!n.style&&("MozTransition"in n.style||"WebkitTransition"in n.style)},trigger:"app-transitions"},requires:["app-transitions","app-transitions-css","parallel","transition"]},"array-extras":{requires:["yui-base"]},"array-invoke":{requires:["yui-base"]},arraylist:{requires:["yui-base"]},"arraylist-add":{requires:["arraylist"]},"arraylist-filter":{requires:["arraylist"]},arraysort:{requires:["yui-base"]},"async-queue":{requires:["event-custom"]},attribute:{use:["attribute-base","attribute-complex"]},"attribute-base":{requires:["attribute-core","attribute-events","attribute-extras"]},"attribute-complex":{requires:["attribute-base"]},"attribute-core":{requires:["yui-base"]},"attribute-events":{requires:["event-custom"]},"attribute-extras":{requires:["yui-base"]},autocomplete:{use:["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"]},"autocomplete-base":{optional:["autocomplete-sources"],requires:["array-extras","base-build","escape","event-valuechange","node-base"]},"autocomplete-filters":{requires:["array-extras","text-wordbreak"]},"autocomplete-filters-accentfold":{requires:["array-extras","text-accentfold","text-wordbreak"]},"autocomplete-highlighters":{requires:["array-extras","highlight-base"]},"autocomplete-highlighters-accentfold":{requires:["array-extras","highlight-accentfold"]},"autocomplete-list":{after:["autocomplete-sources"],lang:["en"],requires:["autocomplete-base","event-resize","node-screen","selector-css3","shim-plugin","widget","widget-position","widget-position-align"],skinnable:!0},"autocomplete-list-keys":{condition:{name:"autocomplete-list-keys",test:function(e){return!(e.UA.ios||e.UA.android)},trigger:"autocomplete-list"},requires:["autocomplete-list","base-build"]},"autocomplete-plugin":{requires:["autocomplete-list","node-pluginhost"]},"autocomplete-sources":{optional:["io-base","json-parse","jsonp","yql"],requires:["autocomplete-base"]},base:{use:["base-base","base-pluginhost","base-build"]},"base-base":{after:["attribute-complex"],requires:["base-core","attribute-base"]},"base-build":{requires:["base-base"]},"base-core":{requires:["attribute-core"]},"base-pluginhost":{requires:["base-base","pluginhost"]},button:{requires:["button-core","cssbutton","widget"]},"button-core":{requires:["attribute-core","classnamemanager","node-base"]},"button-group":{requires:["button-plugin","cssbutton","widget"]},"button-plugin":{requires:["button-core","cssbutton","node-pluginhost"]},cache:{use:["cache-base","cache-offline","cache-plugin"]},"cache-base":{requires:["base"]},"cache-offline":{requires:["cache-base","json"]},"cache-plugin":{requires:["plugin","cache-base"]},calendar:{lang:["de","en","fr","ja","nb-NO","pt-BR","ru","zh-HANT-TW"],requires:["calendar-base","calendarnavigator"],skinnable:!0},"calendar-base":{lang:["de","en","fr","ja","nb-NO","pt-BR","ru","zh-HANT-TW"],requires:["widget","substitute","datatype-date","datatype-date-math","cssgrids"],skinnable:!0},calendarnavigator:{requires:["plugin","classnamemanager","datatype-date","node","substitute"],skinnable:!0},charts:{requires:["charts-base"]},"charts-base":{requires:["dom","datatype-number","datatype-date","event-custom","event-mouseenter","event-touch","widget","widget-position","widget-stack","graphics"]},"charts-legend":{requires:["charts-base"]},classnamemanager:{requires:["yui-base"]},"clickable-rail":{requires:["slider-base"]},collection:{use:["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"]},console:{lang:["en","es","ja"],requires:["yui-log","widget","substitute"],skinnable:!0},"console-filters":{requires:["plugin","console"],skinnable:!0},controller:{use:["router"]},cookie:{requires:["yui-base"]},"createlink-base":{requires:["editor-base"]},cssbase:{after:["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],type:"css"},"cssbase-context":{after:["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],type:"css"},cssbutton:{type:"css"},cssfonts:{type:"css"},"cssfonts-context":{type:"css"},cssgrids:{optional:["cssreset","cssfonts"],type:"css"},"cssgrids-base":{optional:["cssreset","cssfonts"],type:"css"},"cssgrids-units":{optional:["cssreset","cssfonts"],requires:["cssgrids-base"],type:"css"},cssreset:{type:"css"},"cssreset-context":{type:"css"},dataschema:{use:["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"]},"dataschema-array":{requires:["dataschema-base"]},"dataschema-base":{requires:["base"]},"dataschema-json":{requires:["dataschema-base","json"]},"dataschema-text":{requires:["dataschema-base"]},"dataschema-xml":{requires:["dataschema-base"]},datasource:{use:["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling",]},"datasource-arrayschema":{requires:["datasource-local","plugin","dataschema-array"]},"datasource-cache":{requires:["datasource-local","plugin","cache-base"]},"datasource-function":{requires:["datasource-local"]},"datasource-get":{requires:["datasource-local","get"]},"datasource-io":{requires:["datasource-local","io-base"]},"datasource-jsonschema":{requires:["datasource-local","plugin","dataschema-json"]},"datasource-local":{requires:["base"]},"datasource-polling":{requires:["datasource-local"]},"datasource-textschema":{requires:["datasource-local","plugin","dataschema-text"]},"datasource-xmlschema":{requires:["datasource-local","plugin","dataschema-xml"]},datatable:{use:["datatable-core","datatable-head","datatable-body","datatable-base","datatable-column-widths","datatable-message","datatable-mutable","datatable-sort","datatable-datasource"]},"datatable-base":{requires:["datatable-core","datatable-head","datatable-body","base-build","widget"],skinnable:!0},"datatable-base-deprecated":{requires:["recordset-base","widget","substitute","event-mouseenter"],skinnable:!0},"datatable-body":{requires:["datatable-core","view","classnamemanager"]},"datatable-column-widths":{requires:["datatable-base"]},"datatable-core":{requires:["escape","model-list","node-event-delegate"]},"datatable-datasource":{requires:["datatable-base","plugin","datasource-local"]},"datatable-datasource-deprecated":{requires:["datatable-base-deprecated","plugin","datasource-local"]},"datatable-deprecated":{use:["datatable-base-deprecated","datatable-datasource-deprecated","datatable-sort-deprecated","datatable-scroll-deprecated"]},"datatable-head":{requires:["datatable-core","view","classnamemanager"]},"datatable-message":{lang:["en"],requires:["datatable-base"],skinnable:!0},"datatable-mutable":{requires:["datatable-base"]},"datatable-scroll":{requires:["datatable-base","datatable-column-widths","dom-screen"],skinnable:!0},"datatable-scroll-deprecated":{requires:["datatable-base-deprecated","plugin"]},"datatable-sort":{lang:["en"],requires:["datatable-base"],skinnable:!0},"datatable-sort-deprecated":{lang:["en"],requires:["datatable-base-deprecated","plugin","recordset-sort"]},datatype:{use:["datatype-number","datatype-date","datatype-xml"]},"datatype-date":{supersedes:["datatype-date-format"],use:["datatype-date-parse","datatype-date-format"]},"datatype-date-format":{lang:["ar","ar-JO","ca","ca-ES","da","da-DK","de","de-AT","de-DE","el","el-GR","en","en-AU","en-CA","en-GB","en-IE","en-IN","en-JO","en-MY","en-NZ","en-PH","en-SG","en-US","es","es-AR","es-BO","es-CL","es-CO","es-EC","es-ES","es-MX","es-PE","es-PY","es-US","es-UY","es-VE","fi","fi-FI","fr","fr-BE","fr-CA","fr-FR","hi","hi-IN","id","id-ID","it","it-IT","ja","ja-JP","ko","ko-KR","ms","ms-MY","nb","nb-NO","nl","nl-BE","nl-NL","pl","pl-PL","pt","pt-BR","ro","ro-RO","ru","ru-RU","sv","sv-SE","th","th-TH","tr","tr-TR","vi","vi-VN","zh-Hans","zh-Hans-CN","zh-Hant","zh-Hant-HK","zh-Hant-TW",]},"datatype-date-math":{requires:["yui-base"]},"datatype-date-parse":{},"datatype-number":{use:["datatype-number-parse","datatype-number-format"]},"datatype-number-format":{},"datatype-number-parse":{},"datatype-xml":{use:["datatype-xml-parse","datatype-xml-format"]},"datatype-xml-format":{},"datatype-xml-parse":{},dd:{use:["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"]},"dd-constrain":{requires:["dd-drag"]},"dd-ddm":{requires:["dd-ddm-base","event-resize"]},"dd-ddm-base":{requires:["node","base","yui-throttle","classnamemanager"]},"dd-ddm-drop":{requires:["dd-ddm"]},"dd-delegate":{requires:["dd-drag","dd-drop-plugin","event-mouseenter"]},"dd-drag":{requires:["dd-ddm-base"]},"dd-drop":{requires:["dd-drag","dd-ddm-drop"]},"dd-drop-plugin":{requires:["dd-drop"]},"dd-gestures":{condition:{name:"dd-gestures",test:function(e){return e.config.win&&"ontouchstart"in e.config.win&&!(e.UA.chrome&&e.UA.chrome<6)},trigger:"dd-drag"},requires:["dd-drag","event-synthetic","event-gestures"]},"dd-plugin":{optional:["dd-constrain","dd-proxy"],requires:["dd-drag"]},"dd-proxy":{requires:["dd-drag"]},"dd-scroll":{requires:["dd-drag"]},dial:{lang:["en","es"],requires:["widget","dd-drag","substitute","event-mouseenter","event-move","event-key","transition","intl"],skinnable:!0},dom:{use:["dom-base","dom-screen","dom-style","selector-native","selector"]},"dom-base":{requires:["dom-core"]},"dom-core":{requires:["oop","features"]},"dom-deprecated":{requires:["dom-base"]},"dom-screen":{requires:["dom-base","dom-style"]},"dom-style":{requires:["dom-base"]},"dom-style-ie":{condition:{name:"dom-style-ie",test:function(e){var t=e.Features.test,n=e.Features.add,i=e.config.win,r=e.config.doc,s=!1;return n("style","computedStyle",{test:function(){return i&&"getComputedStyle"in i}}),n("style","opacity",{test:function(){return r&&"opacity"in r.documentElement.style}}),s=!t("style","opacity")&&!t("style","computedStyle")},trigger:"dom-style"},requires:["dom-style"]},dump:{requires:["yui-base"]},editor:{use:["frame","editor-selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"]},"editor-base":{requires:["base","frame","node","exec-command","editor-selection"]},"editor-bidi":{requires:["editor-base"]},"editor-br":{requires:["editor-base"]},"editor-lists":{requires:["editor-base"]},"editor-para":{requires:["editor-para-base"]},"editor-para-base":{requires:["editor-base"]},"editor-para-ie":{condition:{name:"editor-para-ie",trigger:"editor-para",ua:"ie",when:"instead"},requires:["editor-para-base"]},"editor-selection":{requires:["node"]},"editor-tab":{requires:["editor-base"]},escape:{requires:["yui-base"]},event:{after:["node-base"],use:["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside","event-touch","event-move","event-flick","event-valuechange",]},"event-base":{after:["node-base"],requires:["event-custom-base"]},"event-base-ie":{after:["event-base"],condition:{name:"event-base-ie",test:function(e){var t=e.config.doc&&e.config.doc.implementation;return t&&!t.hasFeature("Events","2.0")},trigger:"node-base"},requires:["node-base"]},"event-contextmenu":{requires:["event-synthetic","dom-screen"]},"event-custom":{use:["event-custom-base","event-custom-complex"]},"event-custom-base":{requires:["oop"]},"event-custom-complex":{requires:["event-custom-base"]},"event-delegate":{requires:["node-base"]},"event-flick":{requires:["node-base","event-touch","event-synthetic"]},"event-focus":{requires:["event-synthetic"]},"event-gestures":{use:["event-flick","event-move"]},"event-hover":{requires:["event-mouseenter"]},"event-key":{requires:["event-synthetic"]},"event-mouseenter":{requires:["event-synthetic"]},"event-mousewheel":{requires:["node-base"]},"event-move":{requires:["node-base","event-touch","event-synthetic"]},"event-outside":{requires:["event-synthetic"]},"event-resize":{requires:["node-base","event-synthetic"]},"event-simulate":{requires:["event-base"]},"event-synthetic":{requires:["node-base","event-custom-complex"]},"event-touch":{requires:["node-base"]},"event-valuechange":{requires:["event-focus","event-synthetic"]},"exec-command":{requires:["frame"]},features:{requires:["yui-base"]},file:{requires:["file-flash","file-html5"]},"file-flash":{requires:["base"]},"file-html5":{requires:["base"]},frame:{requires:["base","node","selector-css3","substitute","yui-throttle"]},get:{requires:["yui-base"]},graphics:{requires:["node","event-custom","pluginhost","matrix"]},"graphics-canvas":{condition:{name:"graphics-canvas",test:function(e){var t=e.config.doc,n=e.config.defaultGraphicEngine&&"canvas"==e.config.defaultGraphicEngine,i=t&&t.createElement("canvas");return(!(t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"))||n)&&i&&i.getContext&&i.getContext("2d")},trigger:"graphics"},requires:["graphics"]},"graphics-canvas-default":{condition:{name:"graphics-canvas-default",test:function(e){var t=e.config.doc,n=e.config.defaultGraphicEngine&&"canvas"==e.config.defaultGraphicEngine,i=t&&t.createElement("canvas");return(!(t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"))||n)&&i&&i.getContext&&i.getContext("2d")},trigger:"graphics"}},"graphics-svg":{condition:{name:"graphics-svg",test:function(e){var t=e.config.doc,n=!e.config.defaultGraphicEngine||"canvas"!=e.config.defaultGraphicEngine,i=t&&t.createElement("canvas");return t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(n||!i)},trigger:"graphics"},requires:["graphics"]},"graphics-svg-default":{condition:{name:"graphics-svg-default",test:function(e){var t=e.config.doc,n=!e.config.defaultGraphicEngine||"canvas"!=e.config.defaultGraphicEngine,i=t&&t.createElement("canvas");return t&&t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(n||!i)},trigger:"graphics"}},"graphics-vml":{condition:{name:"graphics-vml",test:function(e){var t=e.config.doc,n=t&&t.createElement("canvas");return t&&!t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!n||!n.getContext||!n.getContext("2d"))},trigger:"graphics"},requires:["graphics"]},"graphics-vml-default":{condition:{name:"graphics-vml-default",test:function(e){var t=e.config.doc,n=t&&t.createElement("canvas");return t&&!t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!n||!n.getContext||!n.getContext("2d"))},trigger:"graphics"}},handlebars:{use:["handlebars-compiler"]},"handlebars-base":{requires:["escape"]},"handlebars-compiler":{requires:["handlebars-base"]},highlight:{use:["highlight-base","highlight-accentfold"]},"highlight-accentfold":{requires:["highlight-base","text-accentfold"]},"highlight-base":{requires:["array-extras","classnamemanager","escape","text-wordbreak"]},history:{use:["history-base","history-hash","history-hash-ie","history-html5"]},"history-base":{requires:["event-custom-complex"]},"history-hash":{after:["history-html5"],requires:["event-synthetic","history-base","yui-later"]},"history-hash-ie":{condition:{name:"history-hash-ie",test:function(e){var t=e.config.doc&&e.config.doc.documentMode;return e.UA.ie&&(!("onhashchange"in e.config.win)||!t||t<8)},trigger:"history-hash"},requires:["history-hash","node-base"]},"history-html5":{optional:["json"],requires:["event-base","history-base","node-base"]},imageloader:{requires:["base-base","node-style","node-screen"]},intl:{requires:["intl-base","event-custom"]},"intl-base":{requires:["yui-base"]},io:{use:["io-base","io-xdr","io-form","io-upload-iframe","io-queue"]},"io-base":{requires:["event-custom-base","querystring-stringify-simple"]},"io-form":{requires:["io-base","node-base"]},"io-nodejs":{condition:{name:"io-nodejs",trigger:"io-base",ua:"nodejs"},requires:["io-base"]},"io-queue":{requires:["io-base","queue-promote"]},"io-upload-iframe":{requires:["io-base","node-base"]},"io-xdr":{requires:["io-base","datatype-xml-parse"]},json:{use:["json-parse","json-stringify"]},"json-parse":{requires:["yui-base"]},"json-stringify":{requires:["yui-base"]},jsonp:{requires:["get","oop"]},"jsonp-url":{requires:["jsonp"]},loader:{use:["loader-base","loader-rollup","loader-yui3"]},"loader-base":{requires:["get","features"]},"loader-rollup":{requires:["loader-base"]},"loader-yui3":{requires:["loader-base"]},matrix:{requires:["yui-base"]},model:{requires:["base-build","escape","json-parse"]},"model-list":{requires:["array-extras","array-invoke","arraylist","base-build","escape","json-parse","model"]},node:{use:["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"]},"node-base":{requires:["event-base","node-core","dom-base"]},"node-core":{requires:["dom-core","selector"]},"node-deprecated":{requires:["node-base"]},"node-event-delegate":{requires:["node-base","event-delegate"]},"node-event-html5":{requires:["node-base"]},"node-event-simulate":{requires:["node-base","event-simulate"]},"node-flick":{requires:["classnamemanager","transition","event-flick","plugin"],skinnable:!0},"node-focusmanager":{requires:["attribute","node","plugin","node-event-simulate","event-key","event-focus"]},"node-load":{requires:["node-base","io-base"]},"node-menunav":{requires:["node","classnamemanager","plugin","node-focusmanager"],skinnable:!0},"node-pluginhost":{requires:["node-base","pluginhost"]},"node-screen":{requires:["dom-screen","node-base"]},"node-style":{requires:["dom-style","node-base"]},oop:{requires:["yui-base"]},overlay:{requires:["widget","widget-stdmod","widget-position","widget-position-align","widget-stack","widget-position-constrain"],skinnable:!0},panel:{requires:["widget","widget-autohide","widget-buttons","widget-modality","widget-position","widget-position-align","widget-position-constrain","widget-stack","widget-stdmod"],skinnable:!0},parallel:{requires:["yui-base"]},pjax:{requires:["pjax-base","io-base"]},"pjax-base":{requires:["classnamemanager","node-event-delegate","router"]},"pjax-plugin":{requires:["node-pluginhost","pjax","plugin"]},plugin:{requires:["base-base"]},pluginhost:{use:["pluginhost-base","pluginhost-config"]},"pluginhost-base":{requires:["yui-base"]},"pluginhost-config":{requires:["pluginhost-base"]},profiler:{requires:["yui-base"]},querystring:{use:["querystring-parse","querystring-stringify"]},"querystring-parse":{requires:["yui-base","array-extras"]},"querystring-parse-simple":{requires:["yui-base"]},"querystring-stringify":{requires:["yui-base"]},"querystring-stringify-simple":{requires:["yui-base"]},"queue-promote":{requires:["yui-base"]},"range-slider":{requires:["slider-base","slider-value-range","clickable-rail"]},recordset:{use:["recordset-base","recordset-sort","recordset-filter","recordset-indexer"]},"recordset-base":{requires:["base","arraylist"]},"recordset-filter":{requires:["recordset-base","array-extras","plugin"]},"recordset-indexer":{requires:["recordset-base","plugin"]},"recordset-sort":{requires:["arraysort","recordset-base","plugin"]},resize:{use:["resize-base","resize-proxy","resize-constrain"]},"resize-base":{requires:["base","widget","substitute","event","oop","dd-drag","dd-delegate","dd-drop"],skinnable:!0},"resize-constrain":{requires:["plugin","resize-base"]},"resize-plugin":{optional:["resize-constrain"],requires:["resize-base","plugin"]},"resize-proxy":{requires:["plugin","resize-base"]},rls:{requires:["get","features"]},router:{optional:["querystring-parse"],requires:["array-extras","base-build","history"]},scrollview:{requires:["scrollview-base","scrollview-scrollbars"]},"scrollview-base":{requires:["widget","event-gestures","event-mousewheel","transition"],skinnable:!0},"scrollview-base-ie":{condition:{name:"scrollview-base-ie",trigger:"scrollview-base",ua:"ie"},requires:["scrollview-base"]},"scrollview-list":{requires:["plugin","classnamemanager"],skinnable:!0},"scrollview-paginator":{requires:["plugin"]},"scrollview-scrollbars":{requires:["classnamemanager","transition","plugin"],skinnable:!0},selector:{requires:["selector-native"]},"selector-css2":{condition:{name:"selector-css2",test:function(e){var t=e.config.doc;return t&&!("querySelectorAll"in t)},trigger:"selector"},requires:["selector-native"]},"selector-css3":{requires:["selector-native","selector-css2"]},"selector-native":{requires:["dom-base"]},"shim-plugin":{requires:["node-style","node-pluginhost"]},slider:{use:["slider-base","slider-value-range","clickable-rail","range-slider"]},"slider-base":{requires:["widget","dd-constrain","substitute","event-key"],skinnable:!0},"slider-value-range":{requires:["slider-base"]},sortable:{requires:["dd-delegate","dd-drop-plugin","dd-proxy"]},"sortable-scroll":{requires:["dd-scroll","sortable"]},stylesheet:{requires:["yui-base"]},substitute:{optional:["dump"],requires:["yui-base"]},swf:{requires:["event-custom","node","swfdetect","escape"]},swfdetect:{requires:["yui-base"]},tabview:{requires:["widget","widget-parent","widget-child","tabview-base","node-pluginhost","node-focusmanager"],skinnable:!0},"tabview-base":{requires:["node-event-delegate","classnamemanager","skin-sam-tabview"]},"tabview-plugin":{requires:["tabview-base"]},test:{requires:["event-simulate","event-custom","substitute","json-stringify"],skinnable:!0},"test-console":{requires:["console-filters","test"],skinnable:!0},text:{use:["text-accentfold","text-wordbreak"]},"text-accentfold":{requires:["array-extras","text-data-accentfold"]},"text-data-accentfold":{requires:["yui-base"]},"text-data-wordbreak":{requires:["yui-base"]},"text-wordbreak":{requires:["array-extras","text-data-wordbreak"]},transition:{requires:["node-style"]},"transition-timer":{condition:{name:"transition-timer",test:function(e){var t=e.config.doc,n=t?t.documentElement:null,i=!0;return n&&n.style&&(i=!("MozTransition"in n.style||"WebkitTransition"in n.style)),i},trigger:"transition"},requires:["transition"]},uploader:{requires:["uploader-html5","uploader-flash"]},"uploader-deprecated":{requires:["event-custom","node","base","swf"]},"uploader-flash":{requires:["swf","widget","substitute","base","cssbutton","node","event-custom","file-flash","uploader-queue"]},"uploader-html5":{requires:["widget","node-event-simulate","substitute","file-html5","uploader-queue"]},"uploader-queue":{requires:["base"]},view:{requires:["base-build","node-event-delegate"]},"view-node-map":{requires:["view"]},widget:{use:["widget-base","widget-htmlparser","widget-skin","widget-uievents"]},"widget-anim":{requires:["anim-base","plugin","widget"]},"widget-autohide":{requires:["base-build","event-key","event-outside","widget"]},"widget-base":{requires:["attribute","base-base","base-pluginhost","classnamemanager","event-focus","node-base","node-style"],skinnable:!0},"widget-base-ie":{condition:{name:"widget-base-ie",trigger:"widget-base",ua:"ie"},requires:["widget-base"]},"widget-buttons":{requires:["button-plugin","cssbutton","widget-stdmod"]},"widget-child":{requires:["base-build","widget"]},"widget-htmlparser":{requires:["widget-base"]},"widget-locale":{requires:["widget-base"]},"widget-modality":{requires:["base-build","event-outside","widget"],skinnable:!0},"widget-parent":{requires:["arraylist","base-build","widget"]},"widget-position":{requires:["base-build","node-screen","widget"]},"widget-position-align":{requires:["widget-position"]},"widget-position-constrain":{requires:["widget-position"]},"widget-skin":{requires:["widget-base"]},"widget-stack":{requires:["base-build","widget"],skinnable:!0},"widget-stdmod":{requires:["base-build","widget"]},"widget-uievents":{requires:["node-event-delegate","widget-base"]},yql:{requires:["jsonp","jsonp-url"]},yui:{},"yui-base":{},"yui-later":{requires:["yui-base"]},"yui-log":{requires:["yui-base"]},"yui-rls":{},"yui-throttle":{requires:["yui-base"]}},YUI.Env[e.version].md5="f5a3bc9bda2441a3b15fb52c567fc1f7"},"3.18.1",{requires:["loader-base"]}),YUI.add("yui",function(e){},"3.18.1",{use:["yui-base","get","features","intl-base","yui-log","yui-later","loader-base","loader-rollup","loader-yui3"]}),YUI.add("widget-base",function(e){var t,n,i=e.Lang,r=e.Node,s=e.ClassNameManager,a=s.getClassName,o=e.cached(function(e){return e.substring(0,1).toUpperCase()+e.substring(1)}),u="content",l="visible",c="disabled",d="focused",h="width",f="height",p="boundingBox",g="contentBox",m="ownerDocument",v="srcNode",y="tabIndex",b="render",$="rendered",_="strings",E="<div></div>",A="loading",T="_uiSet",w=function(){},x={},S=[l,c,f,h,d,y],N=e.UA.webkit,O={};function q(e){var t,n,i=this,r=i.constructor;i._strs={},i._cssPrefix=r.CSS_PREFIX||a(r.NAME.toLowerCase()),e=e||{},q.superclass.constructor.call(i,e),(n=i.get(b))&&(!0!==n&&(t=n),i.render(t))}q.NAME="widget",n=q.UI_SRC="ui",q.ATTRS=x,x.id={valueFn:"_guid",writeOnce:!0},x[$]={value:!1,readOnly:!0},x[p]={value:null,setter:"_setBB",writeOnce:!0},x[g]={valueFn:"_defaultCB",setter:"_setCB",writeOnce:!0},x[y]={value:null,validator:"_validTabIndex"},x[d]={value:!1,readOnly:!0},x[c]={value:!1},x[l]={value:!0},x[f]={value:""},x[h]={value:""},x[_]={value:{},setter:"_strSetter",getter:"_strGetter"},x[b]={value:!1,writeOnce:!0},q.CSS_PREFIX=a(q.NAME.toLowerCase()),q.getClassName=function(){return a.apply(s,[q.CSS_PREFIX].concat(e.Array(arguments),!0))},t=q.getClassName,q.getByNode=function(e){var n,i,s=t();return(e=r.one(e))&&(e=e.ancestor("."+s,!0))&&(n=O[i=e.get("id")]),n||null},e.extend(q,e.Base,{getClassName:function(){return a.apply(s,[this._cssPrefix].concat(e.Array(arguments),!0))},initializer:function(e){var t=this.get(p);t instanceof r&&this._mapInstance(t.get("id")),this._applyParser&&this._applyParser(e)},_mapInstance:function(e){O[e]||(O[e]=this)},destructor:function(){var e,t=this.get(p);t instanceof r&&((e=t.get("id"))in O&&delete O[e],this._destroyBox())},destroy:function(e){return this._destroyAllNodes=e,q.superclass.destroy.apply(this)},_destroyBox:function(){var e,t=this.get(p),n=this.get(g),i=this._destroyAllNodes;e=t&&t.compareTo(n),this.UI_EVENTS&&this._destroyUIEvents(),this._unbindUI(t),i?(t.empty(),t.remove(!0)):(n&&n.remove(!0),e||t.remove(!0))},render:function(e){return this.get("destroyed")||this.get($)||(this.publish(b,{queuable:!1,fireOnce:!0,defaultTargetOnly:!0,defaultFn:this._defRenderFn}),this.fire(b,{parentNode:e?r.one(e):null})),this},_defRenderFn:function(e){this._parentNode=e.parentNode,this.renderer(),this._set($,!0),this._removeLoadingClassNames()},renderer:function(){this._renderUI(),this.renderUI(),this._bindUI(),this.bindUI(),this._syncUI(),this.syncUI()},bindUI:w,renderUI:w,syncUI:w,hide:function(){return this.set(l,!1)},show:function(){return this.set(l,!0)},focus:function(){return this._set(d,!0)},blur:function(){return this._set(d,!1)},enable:function(){return this.set(c,!1)},disable:function(){return this.set(c,!0)},_uiSizeCB:function(e){this.get(g).toggleClass(t(u,"expanded"),e)},_renderBox:function(e){var t=this.get(g),n=this.get(p),i=this.get(v),s=this.DEF_PARENT_NODE,a=i&&i.get(m)||n.get(m)||t.get(m);!i||i.compareTo(t)||t.inDoc(a)||i.replace(t),n.compareTo(t.get("parentNode"))||n.compareTo(t)||(t.inDoc(a)&&t.replace(n),n.appendChild(t)),(e=e||s&&r.one(s))?e.appendChild(n):n.inDoc(a)||r.one("body").insert(n,0)},_setBB:function(e){return this._setBox(this.get("id"),e,this.BOUNDING_TEMPLATE)},_setCB:function(e){return null===this.CONTENT_TEMPLATE?this.get(p):this._setBox(null,e,this.CONTENT_TEMPLATE)},_defaultCB:function(e){return this.get(v)||null},_setBox:function(t,n,i){return(n=r.one(n)||r.create(i)).get("id")||n.set("id",t||e.guid()),n},_renderUI:function(){this._renderBoxClassNames(),this._renderBox(this._parentNode)},_renderBoxClassNames:function(){var e,n,i=this._getClasses(),r=this.get(p);for(r.addClass(t()),n=i.length-3;n>=0;n--)e=i[n],r.addClass(e.CSS_PREFIX||a(e.NAME.toLowerCase()));this.get(g).addClass(this.getClassName(u))},_removeLoadingClassNames:function(){var e=this.get(p),n=this.get(g),i=this.getClassName(A),r=t(A);e.removeClass(r).removeClass(i),n.removeClass(r).removeClass(i)},_bindUI:function(){this._bindAttrUI(this._UI_ATTRS.BIND),this._bindDOM()},_unbindUI:function(e){this._unbindDOM(e)},_bindDOM:function(){var t=this.get(p).get(m),n=q._hDocFocus;n||((n=q._hDocFocus=t.on("focus",this._onDocFocus,this)).listeners={count:0}),n.listeners[e.stamp(this,!0)]=!0,n.listeners.count++,N&&(this._hDocMouseDown=t.on("mousedown",this._onDocMouseDown,this))},_unbindDOM:function(t){var n,i=q._hDocFocus,r=e.stamp(this,!0),s=this._hDocMouseDown;i&&((n=i.listeners)[r]&&(delete n[r],n.count--),0===n.count&&(i.detach(),q._hDocFocus=null)),N&&s&&s.detach()},_syncUI:function(){this._syncAttrUI(this._UI_ATTRS.SYNC)},_uiSetHeight:function(e){this._uiSetDim(f,e),this._uiSizeCB(""!==e&&"auto"!==e)},_uiSetWidth:function(e){this._uiSetDim(h,e)},_uiSetDim:function(e,t){this.get(p).setStyle(e,i.isNumber(t)?t+this.DEF_UNIT:t)},_uiSetVisible:function(e){this.get(p).toggleClass(this.getClassName("hidden"),!e)},_uiSetDisabled:function(e){this.get(p).toggleClass(this.getClassName(c),e)},_uiSetFocused:function(e,t){var i=this.get(p);i.toggleClass(this.getClassName(d),e),t!==n&&(e?i.focus():i.blur())},_uiSetTabIndex:function(e){var t=this.get(p);i.isNumber(e)?t.set(y,e):t.removeAttribute(y)},_onDocMouseDown:function(e){this._domFocus&&this._onDocFocus(e)},_onDocFocus:function(e){var t=q.getByNode(e.target),i=q._active;i&&i!==t&&(i._domFocus=!1,i._set(d,!1,{src:n}),q._active=null),t&&(t._domFocus=!0,t._set(d,!0,{src:n}),q._active=t)},toString:function(){return this.name+"["+this.get("id")+"]"},DEF_UNIT:"px",DEF_PARENT_NODE:null,CONTENT_TEMPLATE:E,BOUNDING_TEMPLATE:E,_guid:function(){return e.guid()},_validTabIndex:function(e){return i.isNumber(e)||i.isNull(e)},_bindAttrUI:function(e){var t,n=e.length;for(t=0;t<n;t++)this.after(e[t]+"Change",this._setAttrUI)},_syncAttrUI:function(e){var t,n,i=e.length;for(t=0;t<i;t++)this[T+o(n=e[t])](this.get(n))},_setAttrUI:function(e){e.target===this&&this[T+o(e.attrName)](e.newVal,e.src)},_strSetter:function(t){return e.merge(this.get(_),t)},getString:function(e){return this.get(_)[e]},getStrings:function(){return this.get(_)},_UI_ATTRS:{BIND:S,SYNC:S}}),e.Widget=q},"3.18.1",{requires:["attribute","event-focus","base-base","base-pluginhost","node-base","node-style","classnamemanager"],skinnable:!0}),YUI.add("widget-htmlparser",function(e){var t=e.Widget,n=e.Node,i=e.Lang,r="srcNode";t.HTML_PARSER={},t._buildCfg={aggregates:["HTML_PARSER"]},t.ATTRS[r]={value:null,setter:n.one,getter:"_getSrcNode",writeOnce:!0},e.mix(t.prototype,{_getSrcNode:function(e){return e||this.get("contentBox")},_applyParsedConfig:function(t,n,i){return i?e.mix(n,i,!1):n},_applyParser:function(t){var n,s,a=this,o=a.get(r),u=a._getHtmlParser();u&&o&&e.Object.each(u,function(e,t,r){s=null,i.isFunction(e)?s=e.call(a,o):i.isArray(e)?(s=o.all(e[0])).isEmpty()&&(s=null):s=o.one(e),null!=s&&((n=n||{})[t]=s)}),t=a._applyParsedConfig(o,t,n)},_getHtmlParser:function(){var t,n,i=this._getClasses(),r={};for(t=i.length-1;t>=0;t--)(n=i[t].HTML_PARSER)&&e.mix(r,n,!0);return r}})},"3.18.1",{requires:["widget-base"]}),YUI.add("widget-skin",function(e){var t=e.ClassNameManager.getClassName;e.Widget.prototype.getSkinName=function(){var e,n=this.get("contentBox")||this.get("boundingBox"),i=RegExp("\\b"+t("skin")+"-(\\S+)");return n&&n.ancestor(function(t){return e=t.get("className").match(i)}),e?e[1]:null}},"3.18.1",{requires:["widget-base"]}),YUI.add("widget-uievents",function(e){var t=e.Widget,n=e.Lang,i=e.Widget._uievts=e.Widget._uievts||{};e.mix(t.prototype,{_destroyUIEvents:function(){var t=e.stamp(this,!0);e.each(i,function(n,r){n.instances[t]&&(delete n.instances[t],e.Object.isEmpty(n.instances)&&(n.handle.detach(),i[r]&&delete i[r]))})},UI_EVENTS:e.Node.DOM_EVENTS,_getUIEventNode:function(){return this.get("boundingBox")},_createUIEvent:function(n){var r,s=this._getUIEventNode(),a=e.stamp(s)+n,o=i[a];o||(r=s.delegate(n,function(e){var n=t.getByNode(this);n&&n._filterUIEvent(e)&&n.fire(e.type,{domEvent:e})},"."+e.Widget.getClassName()),i[a]=o={instances:{},handle:r}),o.instances[e.stamp(this)]=1},_filterUIEvent:function(e){return e.currentTarget.compareTo(e.container)||e.container.compareTo(this._getUIEventNode())},_getUIEvent:function(e){if(n.isString(e)){var t,i,r=this.parseType(e)[1];return r&&((t=r.indexOf(":"))>-1&&(r=r.substring(t+1)),this.UI_EVENTS[r]&&(i=r)),i}},_initUIEvent:function(e){var t=this._getUIEvent(e),n=this._uiEvtsInitQueue||{};t&&!n[t]&&(this._uiEvtsInitQueue=n[t]=1,this.after("render",function(){this._createUIEvent(t),delete this._uiEvtsInitQueue[t]}))},on:function(e){return this._initUIEvent(e),t.superclass.on.apply(this,arguments)},publish:function(e,n){var i=this._getUIEvent(e);return i&&n&&n.defaultFn&&this._initUIEvent(i),t.superclass.publish.apply(this,arguments)}},!0)},"3.18.1",{requires:["widget-base","node-event-delegate"]}),YUI.add("arraylist",function(e){var t,n=e.Array,i=n.each;function r(t){void 0!==t?this._items=e.Lang.isArray(t)?t:n(t):this._items=this._items||[]}(t={item:function(e){return this._items[e]},each:function(e,t){return i(this._items,function(n,i){n=this.item(i),e.call(t||n,n,i,this)},this),this},some:function(e,t){return n.some(this._items,function(n,i){return n=this.item(i),e.call(t||n,n,i,this)},this)},indexOf:function(e){return n.indexOf(this._items,e)},size:function(){return this._items.length},isEmpty:function(){return!this.size()},toJSON:function(){return this._items}})._item=t.item,e.mix(r.prototype,t),e.mix(r,{addMethod:function(e,t){t=n(t),i(t,function(t){e[t]=function(){var e=n(arguments,0,!0),r=[];return i(this._items,function(n,i){var s=(n=this._item(i))[t].apply(n,e);void 0!==s&&s!==n&&(r[i]=s)},this),r.length?r:this}})}}),e.ArrayList=r},"3.18.1",{requires:["yui-base"]}),YUI.add("widget-parent",function(e){var t=e.Lang,n="rendered",i="boundingBox";function r(t){var n,i;this.publish("addChild",{defaultTargetOnly:!0,defaultFn:this._defAddChildFn}),this.publish("removeChild",{defaultTargetOnly:!0,defaultFn:this._defRemoveChildFn}),this._items=[],t&&t.children&&(n=t.children,i=this.after("initializedChange",function(e){this._add(n),i.detach()})),e.after(this._renderChildren,this,"renderUI"),e.after(this._bindUIParent,this,"bindUI"),this.after("selectionChange",this._afterSelectionChange),this.after("selectedChange",this._afterParentSelectedChange),this.after("activeDescendantChange",this._afterActiveDescendantChange),this._hDestroyChild=this.after("*:destroy",this._afterDestroyChild),this.after("*:focusedChange",this._updateActiveDescendant)}r.ATTRS={defaultChildType:{setter:function(n){var i=e.Attribute.INVALID_VALUE,r=t.isString(n)?e[n]:n;return t.isFunction(r)&&(i=r),i}},activeDescendant:{readOnly:!0},multiple:{value:!1,validator:t.isBoolean,writeOnce:!0,getter:function(e){var t=this.get("root");return t&&t!=this?t.get("multiple"):e}},selection:{readOnly:!0,setter:"_setSelection",getter:function(n){return t.isArray(n)?new e.ArrayList(n):n}},selected:{setter:function(t){var n=t;return 1!==t||this.get("multiple")||(n=e.Attribute.INVALID_VALUE),n}}},r.prototype={destructor:function(){this._destroyChildren()},_afterDestroyChild:function(e){var t=e.target;t.get("parent")==this&&t.remove()},_afterSelectionChange:function(t){if(t.target==this&&t.src!=this){var n=t.newVal,i=0;n&&(i=2,e.instanceOf(n,e.ArrayList)&&n.size()===this.size()&&(i=1)),this.set("selected",i,{src:this})}},_afterActiveDescendantChange:function(e){var t=this.get("parent");t&&t._set("activeDescendant",e.newVal)},_afterParentSelectedChange:function(e){var t=e.newVal;this==e.target&&e.src!=this&&(0===t||1===t)&&this.each(function(e){e.set("selected",t,{src:this})},this)},_setSelection:function(e){var t,n=null;return this.get("multiple")&&!this.isEmpty()?(t=[],this.each(function(e){e.get("selected")>0&&t.push(e)}),t.length>0&&(n=t)):e.get("selected")>0&&(n=e),n},_updateSelection:function(e){var t,n=e.target;n.get("parent")==this&&("_updateSelection"!=e.src&&(t=this.get("selection"),!this.get("multiple")&&t&&e.newVal>0&&t.set("selected",0,{src:"_updateSelection"}),this._set("selection",n)),e.src==this&&this._set("selection",n,{src:this}))},_updateActiveDescendant:function(e){var t=!0===e.newVal?e.target:null;this._set("activeDescendant",t)},_createChild:function(n){var i,r,s,a=this.get("defaultChildType"),o=n.childType||n.type;return o&&(r=t.isString(o)?e[o]:o),t.isFunction(r)?s=r:a&&(s=a),s?i=new s(n):e.error("Could not create a child instance because its constructor is either undefined or invalid."),i},_defAddChildFn:function(n){var i=n.child,r=n.index,s=this._items;i.get("parent")&&i.remove(),t.isNumber(r)?s.splice(r,0,i):s.push(i),i._set("parent",this),i.addTarget(this),n.index=i.get("index"),i.after("selectedChange",e.bind(this._updateSelection,this))},_defRemoveChildFn:function(e){var t=e.child,n=e.index,i=this._items;t.get("focused")&&t.blur(),t.get("selected")&&t.set("selected",0),i.splice(n,1),t.removeTarget(this),t._oldParent=t.get("parent"),t._set("parent",null)},_add:function(n,i){var r,s,a;return t.isArray(n)?(r=[],e.each(n,function(e,t){(s=this._add(e,i+t))&&r.push(s)},this),r.length>0&&(a=r)):(s=e.instanceOf(n,e.Widget)?n:this._createChild(n))&&this.fire("addChild",{child:s,index:i})&&(a=s),a},add:function(){var n=this._add.apply(this,arguments),i=n?t.isArray(n)?n:[n]:[];return new e.ArrayList(i)},remove:function(e){var t,n=this._items[e];return n&&this.fire("removeChild",{child:n,index:e})&&(t=n),t},removeAll:function(){var t,n=[];return e.each(this._items.concat(),function(){(t=this.remove(0))&&n.push(t)},this),new e.ArrayList(n)},selectChild:function(e){this.item(e).set("selected",1)},selectAll:function(){this.set("selected",1)},deselectAll:function(){this.set("selected",0)},_uiAddChild:function(e,t){e.render(t);var r,s,a=e.get("boundingBox"),o=e.next(!1);o&&o.get(n)?(r=o.get(i)).insert(a,"before"):(s=e.previous(!1))&&s.get(n)?(r=s.get(i)).insert(a,"after"):t.contains(a)||t.appendChild(a)},_uiRemoveChild:function(e){e.get("boundingBox").remove()},_afterAddChild:function(e){var t=e.child;t.get("parent")==this&&this._uiAddChild(t,this._childrenContainer)},_afterRemoveChild:function(e){var t=e.child;t._oldParent==this&&this._uiRemoveChild(t)},_bindUIParent:function(){this.after("addChild",this._afterAddChild),this.after("removeChild",this._afterRemoveChild)},_renderChildren:function(){var e=this._childrenContainer||this.get("contentBox");this._childrenContainer=e,this.each(function(t){t.render(e)})},_destroyChildren:function(){this._hDestroyChild.detach(),this.each(function(e){e.destroy()})}},e.augment(r,e.ArrayList),e.WidgetParent=r},"3.18.1",{requires:["base-build","arraylist","widget"]}),YUI.add("widget-child",function(e){var t=e.Lang;function n(){e.after(this._syncUIChild,this,"syncUI"),e.after(this._bindUIChild,this,"bindUI")}n.ATTRS={selected:{value:0,validator:t.isNumber},index:{readOnly:!0,getter:function(){var e=this.get("parent"),t=-1;return e&&(t=e.indexOf(this)),t}},parent:{readOnly:!0},depth:{readOnly:!0,getter:function(){for(var e=this.get("parent"),t=this.get("root"),n=-1;e&&(n+=1,e!=t);)e=e.get("parent");return n}},root:{readOnly:!0,getter:function(){var t=function(n){var i=n.get("parent"),r=n.ROOT_TYPE,s=i;return r&&(s=i&&e.instanceOf(i,r)),s?t(i):n};return t(this)}}},n.prototype={ROOT_TYPE:null,_getUIEventNode:function(){var e,t=this.get("root");return t&&(e=t.get("boundingBox")),e},next:function(e){var t,n=this.get("parent");return n&&(t=n.item(this.get("index")+1)),!t&&e&&(t=n.item(0)),t},previous:function(e){var t,n=this.get("parent"),i=this.get("index");return n&&i>0&&(t=n.item([i-1])),!t&&e&&(t=n.item(n.size()-1)),t},remove:function(n){var i,r;return t.isNumber(n)?r=e.WidgetParent.prototype.remove.apply(this,arguments):(i=this.get("parent"))&&(r=i.remove(this.get("index"))),r},isRoot:function(){return this==this.get("root")},ancestor:function(e){var t,n=this.get("root");if(this.get("depth")>e)for(t=this.get("parent");t!=n&&t.get("depth")>e;)t=t.get("parent");return t},_uiSetChildSelected:function(e){var t=this.get("boundingBox"),n=this.getClassName("selected");0===e?t.removeClass(n):t.addClass(n)},_afterChildSelectedChange:function(e){this._uiSetChildSelected(e.newVal)},_syncUIChild:function(){this._uiSetChildSelected(this.get("selected"))},_bindUIChild:function(){this.after("selectedChange",this._afterChildSelectedChange)}},e.WidgetChild=n},"3.18.1",{requires:["base-build","widget"]}),YUI.add("jsonp",function(e){var t=e.Lang.isFunction;function n(){this._init.apply(this,arguments)}n.prototype={_init:function(n,i){this.url=n,this._requests={},this._timeouts={};var r=(i=t(i)?{on:{success:i}}:i||{}).on||{};r.success||(r.success=this._defaultCallback(n,i)),this._config=e.merge({context:this,args:[],format:this._format,allowCache:!1},i,{on:r})},_defaultCallback:function(){},send:function(){var n,i=this,r=e.Array(arguments,0,!0),s=i._config,a=i._proxy||e.guid();if(s.allowCache&&(i._proxy=a),void 0===i._requests[a]&&(i._requests[a]=0),void 0===i._timeouts[a]&&(i._timeouts[a]=0),i._requests[a]++,r.unshift(i.url,"YUI.Env.JSONP."+a),n=s.format.apply(i,r),!s.on.success)return i;function o(e,n){return t(e)?function(t){var r=!0,o="_requests";n?(++i._timeouts[a],--i._requests[a]):(i._requests[a]||(r=!1,o="_timeouts"),--i[o][a]),i._requests[a]||i._timeouts[a]||delete YUI.Env.JSONP[a],r&&e.apply(s.context,[t].concat(s.args))}:null}return YUI.Env.JSONP[a]=o(s.on.success),e.Get.script(n,{onFailure:o(s.on.failure),onTimeout:o(s.on.timeout,!0),timeout:s.timeout,charset:s.charset,attributes:s.attributes}),i},_format:function(e,t){return e.replace(/\{callback\}/,t)}},e.JSONPRequest=n,e.jsonp=function(t,n){var i=new e.JSONPRequest(t,n);return i.send.apply(i,e.Array(arguments,2,!0))},YUI.Env.JSONP||(YUI.Env.JSONP={})},"3.18.1",{requires:["get","oop"]}),YUI.add("node-screen",function(e){e.each(["winWidth","winHeight","docWidth","docHeight","docScrollX","docScrollY"],function(t){e.Node.ATTRS[t]={getter:function(){var n=Array.prototype.slice.call(arguments);return n.unshift(e.Node.getDOMNode(this)),e.DOM[t].apply(this,n)}}}),e.Node.ATTRS.scrollLeft={getter:function(){var t=e.Node.getDOMNode(this);return"scrollLeft"in t?t.scrollLeft:e.DOM.docScrollX(t)},setter:function(t){var n=e.Node.getDOMNode(this);n&&("scrollLeft"in n?n.scrollLeft=t:(n.document||9===n.nodeType)&&e.DOM._getWin(n).scrollTo(t,e.DOM.docScrollY(n)))}},e.Node.ATTRS.scrollTop={getter:function(){var t=e.Node.getDOMNode(this);return"scrollTop"in t?t.scrollTop:e.DOM.docScrollY(t)},setter:function(t){var n=e.Node.getDOMNode(this);n&&("scrollTop"in n?n.scrollTop=t:(n.document||9===n.nodeType)&&e.DOM._getWin(n).scrollTo(e.DOM.docScrollX(n),t))}},e.Node.importMethod(e.DOM,["getXY","setXY","getX","setX","getY","setY","swapXY"]),e.Node.ATTRS.region={getter:function(){var t,n=this.getDOMNode();return n&&!n.tagName&&9===n.nodeType&&(n=n.documentElement),t=e.DOM.isWindow(n)?e.DOM.viewportRegion(n):e.DOM.region(n)}},e.Node.ATTRS.viewportRegion={getter:function(){return e.DOM.viewportRegion(e.Node.getDOMNode(this))}},e.Node.importMethod(e.DOM,"inViewportRegion"),e.Node.prototype.intersect=function(t,n){var i=e.Node.getDOMNode(this);return e.instanceOf(t,e.Node)&&(t=e.Node.getDOMNode(t)),e.DOM.intersect(i,t,n)},e.Node.prototype.inRegion=function(t,n,i){var r=e.Node.getDOMNode(this);return e.instanceOf(t,e.Node)&&(t=e.Node.getDOMNode(t)),e.DOM.inRegion(r,t,n,i)}},"3.18.1",{requires:["node-base","dom-screen"]}),YUI.add("anim-xy",function(e){var t=Number;e.Anim.behaviors.xy={set:function(e,n,i,r,s,a,o){e._node.setXY([o(s,t(i[0]),t(r[0])-t(i[0]),a),o(s,t(i[1]),t(r[1])-t(i[1]),a)])},get:function(e){return e._node.getXY()}}},"3.18.1",{requires:["anim-base","node-screen"]}),YUI.add("anim-curve",function(e){e.Anim.behaviors.curve={set:function(t,n,i,r,s,a,o){i=i.slice.call(i),r=r.slice.call(r);var u=o(s,0,100,a)/100;r.unshift(i),t._node.setXY(e.Anim.getBezier(r,u))},get:function(e,t){return e._node.getXY()}},e.Anim.getBezier=function(e,t){for(var n=e.length,i=[],r=0;r<n;++r)i[r]=[e[r][0],e[r][1]];for(var s=1;s<n;++s)for(r=0;r<n-s;++r)i[r][0]=(1-t)*i[r][0]+t*i[parseInt(r+1,10)][0],i[r][1]=(1-t)*i[r][1]+t*i[parseInt(r+1,10)][1];return[i[0][0],i[0][1]]}},"3.18.1",{requires:["anim-xy"]}),YUI.add("anim-easing",function(e){e.Easing={easeNone:function(e,t,n,i){return n*e/i+t},easeIn:function(e,t,n,i){return n*(e/=i)*e+t},easeOut:function(e,t,n,i){return-n*(e/=i)*(e-2)+t},easeBoth:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},easeInStrong:function(e,t,n,i){return n*(e/=i)*e*e*e+t},easeOutStrong:function(e,t,n,i){return-n*((e=e/i-1)*e*e*e-1)+t},easeBothStrong:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t},elasticIn:function(e,t,n,i,r,s){var a;return 0===e?t:1==(e/=i)?t+n:(s||(s=.3*i),!r||r<Math.abs(n)?(r=n,a=s/4):a=s/(2*Math.PI)*Math.asin(n/r),-(r*Math.pow(2,10*(e-=1))*Math.sin((e*i-a)*(2*Math.PI)/s))+t)},elasticOut:function(e,t,n,i,r,s){var a;return 0===e?t:1==(e/=i)?t+n:(s||(s=.3*i),!r||r<Math.abs(n)?(r=n,a=s/4):a=s/(2*Math.PI)*Math.asin(n/r),r*Math.pow(2,-10*e)*Math.sin((e*i-a)*(2*Math.PI)/s)+n+t)},elasticBoth:function(e,t,n,i,r,s){var a;return 0===e?t:2==(e/=i/2)?t+n:(s||(s=i*(.3*1.5)),!r||r<Math.abs(n)?(r=n,a=s/4):a=s/(2*Math.PI)*Math.asin(n/r),e<1)?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e*i-a)*(2*Math.PI)/s))+t:r*Math.pow(2,-10*(e-=1))*Math.sin((e*i-a)*(2*Math.PI)/s)*.5+n+t},backIn:function(e,t,n,i,r){return void 0===r&&(r=1.70158),e===i&&(e-=.001),n*(e/=i)*e*((r+1)*e-r)+t},backOut:function(e,t,n,i,r){return void 0===r&&(r=1.70158),n*((e=e/i-1)*e*((r+1)*e+r)+1)+t},backBoth:function(e,t,n,i,r){return(void 0===r&&(r=1.70158),(e/=i/2)<1)?n/2*(e*e*(((r*=1.525)+1)*e-r))+t:n/2*((e-=2)*e*(((r*=1.525)+1)*e+r)+2)+t},bounceIn:function(t,n,i,r){return i-e.Easing.bounceOut(r-t,0,i,r)+n},bounceOut:function(e,t,n,i){return(e/=i)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},bounceBoth:function(t,n,i,r){return t<r/2?.5*e.Easing.bounceIn(2*t,0,i,r)+n:.5*e.Easing.bounceOut(2*t-r,0,i,r)+.5*i+n}}},"3.18.1",{requires:["anim-base"]}),YUI.add("pluginhost-base",function(e){var t=e.Lang;function n(){this._plugins={}}n.prototype={plug:function(e,n){var i,r,s;if(t.isArray(e))for(i=0,r=e.length;i<r;i++)this.plug(e[i]);else e&&!t.isFunction(e)&&(n=e.cfg,e=e.fn),e&&e.NS&&(s=e.NS,(n=n||{}).host=this,this.hasPlugin(s)?this[s].setAttrs(n):(this[s]=new e(n),this._plugins[s]=e));return this},unplug:function(e){var n=e,i=this._plugins;if(e)t.isFunction(e)&&(n=e.NS)&&(!i[n]||i[n]!==e)&&(n=null),n&&(this[n]&&(this[n].destroy(),delete this[n]),i[n]&&delete i[n]);else for(n in this._plugins)this._plugins.hasOwnProperty(n)&&this.unplug(n);return this},hasPlugin:function(e){return this._plugins[e]&&this[e]},_initPlugins:function(e){this._plugins=this._plugins||{},this._initConfigPlugins&&this._initConfigPlugins(e)},_destroyPlugins:function(){this.unplug()}},e.namespace("Plugin").Host=n},"3.18.1",{requires:["yui-base"]}),YUI.add("pluginhost-config",function(e){var t=e.Plugin.Host,n=e.Lang;t.prototype._initConfigPlugins=function(t){var n,i,r,s,a,o=this._getClasses?this._getClasses():[this.constructor],u=[],l={};for(i=o.length-1;i>=0;i--)(s=(n=o[i])._UNPLUG)&&e.mix(l,s,!0),(r=n._PLUG)&&e.mix(u,r,!0);for(a in u)u.hasOwnProperty(a)&&!l[a]&&this.plug(u[a]);t&&t.plugins&&this.plug(t.plugins)},t.plug=function(t,i,r){var s,a,o,u;if(t!==e.Base)for(t._PLUG=t._PLUG||{},n.isArray(i)||(r&&(i={fn:i,cfg:r}),i=[i]),a=0,o=i.length;a<o;a++)u=(s=i[a]).NAME||s.fn.NAME,t._PLUG[u]=s},t.unplug=function(t,i){var r,s,a,o;if(t!==e.Base)for(t._UNPLUG=t._UNPLUG||{},n.isArray(i)||(i=[i]),s=0,a=i.length;s<a;s++)o=(r=i[s]).NAME,t._PLUG[o]?delete t._PLUG[o]:t._UNPLUG[o]=r}},"3.18.1",{requires:["pluginhost-base"]}),YUI.add("node-pluginhost",function(e){e.Node.plug=function(){var t=e.Array(arguments);return t.unshift(e.Node),e.Plugin.Host.plug.apply(e.Base,t),e.Node},e.Node.unplug=function(){var t=e.Array(arguments);return t.unshift(e.Node),e.Plugin.Host.unplug.apply(e.Base,t),e.Node},e.mix(e.Node,e.Plugin.Host,!1,null,1),e.NodeList.prototype.plug=function(){var t=arguments;e.NodeList.each(this,function(n){e.Node.prototype.plug.apply(e.one(n),t)})},e.NodeList.prototype.unplug=function(){var t=arguments;e.NodeList.each(this,function(n){e.Node.prototype.unplug.apply(e.one(n),t)})}},"3.18.1",{requires:["node-base","pluginhost"]}),YUI.add("anim-node-plugin",function(e){var t=function(n){(n=n?e.merge(n):{}).node=n.host,t.superclass.constructor.apply(this,arguments)};t.NAME="nodefx",t.NS="fx",e.extend(t,e.Anim),e.namespace("Plugin"),e.Plugin.NodeFX=t},"3.18.1",{requires:["node-pluginhost","anim-base"]}),YUI.add("anim-scroll",function(e){var t=Number;e.Anim.behaviors.scroll={set:function(e,n,i,r,s,a,o){var u=e._node,l=[o(s,t(i[0]),t(r[0])-t(i[0]),a),o(s,t(i[1]),t(r[1])-t(i[1]),a)];l[0]&&u.set("scrollLeft",l[0]),l[1]&&u.set("scrollTop",l[1])},get:function(e){var t=e._node;return[t.get("scrollLeft"),t.get("scrollTop")]}}},"3.18.1",{requires:["anim-base"]}),YUI.add("event-synthetic",function(e){var t=e.Env.evt.dom_map,n=e.Array,i=e.Lang,r=i.isObject,s=i.isString,a=i.isArray,o=e.Selector.query,u=function(){};function l(e,t){this.handle=e,this.emitFacade=t}function c(e,t,n){this.handles=[],this.el=e,this.key=n,this.domkey=t}function d(){this._init.apply(this,arguments)}l.prototype.fire=function(t){var i,s=n(arguments,0,!0),a=this.handle,o=a.evt,u=a.sub,l=u.context,c=u.filter,d=t||{};return this.emitFacade?(t&&t.preventDefault||(d=o._getFacade(),r(t)&&!t.preventDefault?(e.mix(d,t,!0),s[0]=d):s.unshift(d)),d.type=o.type,d.details=s.slice(),c&&(d.container=o.host)):c&&r(t)&&t.currentTarget&&s.shift(),u.context=l||d.currentTarget||o.host,i=o.fire.apply(o,s),u.context=l,i},c.prototype={constructor:c,type:"_synth",fn:u,capture:!1,register:function(e){e.evt.registry=this,this.handles.push(e)},unregister:function(n){var i,r=this.handles,s=t[this.domkey];for(i=r.length-1;i>=0;--i)if(r[i].sub===n){r.splice(i,1);break}r.length||(delete s[this.key],e.Object.size(s)||delete t[this.domkey])},detachAll:function(){for(var e=this.handles,t=e.length;--t>=0;)e[t].detach()}},e.mix(d,{Notifier:l,SynthRegistry:c,getRegistry:function(n,i,r){var s=n._node,a=e.stamp(s),o="event:"+a+i+"_synth",u=t[a];return r&&(u||(u=t[a]={}),u[o]||(u[o]=new c(s,a,o))),u&&u[o]||null},_deleteSub:function(e){if(e&&e.fn){var t=this.eventDef,n=e.filter?"detachDelegate":"detach";this.subscribers={},this.subCount=0,t[n](e.node,e,this.notifier,e.filter),this.registry.unregister(e),delete e.fn,delete e.node,delete e.context}},prototype:{constructor:d,_init:function(){var e=this.publishConfig||(this.publishConfig={});this.emitFacade=!("emitFacade"in e)||e.emitFacade,e.emitFacade=!1},processArgs:u,on:u,detach:u,delegate:u,detachDelegate:u,_on:function(t,i){var r,a,u=[],l=t.slice(),c=this.processArgs(t,i),d=t[2],h=i?"delegate":"on";return!(r=s(d)?o(d):n(d||e.one(e.config.win))).length&&s(d)?a=e.on("available",function(){e.mix(a,e[h].apply(e,l),!0)},d):(e.Array.each(r,function(n){var r,s=t.slice();(n=e.one(n))&&(i&&(r=s.splice(3,1)[0]),s.splice(0,4,s[1],s[3]),this.preventDups&&this.getSubs(n,t,null,!0)||u.push(this._subscribe(n,h,s,c,r)))},this),1===u.length?u[0]:new e.EventHandle(u))},_subscribe:function(t,n,i,r,s){var a=new e.CustomEvent(this.type,this.publishConfig),o=a.on.apply(a,i),u=new l(o,this.emitFacade),c=d.getRegistry(t,this.type,!0),h=o.sub;return h.node=t,h.filter=s,r&&this.applyArgExtras(r,h),e.mix(a,{eventDef:this,notifier:u,host:t,currentTarget:t,target:t,el:t._node,_delete:d._deleteSub},!0),o.notifier=u,c.register(o),this[n](t,h,u,s),o},applyArgExtras:function(e,t){t._extra=e},_detach:function(t){var i,r,a,u,l,c=t[2],d=s(c)?o(c):n(c);for(t.splice(2,1),r=0,a=d.length;r<a;++r)if((i=e.one(d[r]))&&(u=this.getSubs(i,t)))for(l=u.length-1;l>=0;--l)u[l].detach()},getSubs:function(e,t,n,i){var r,s,a,o,u=d.getRegistry(e,this.type),l=[];if(u){for(r=u.handles,n||(n=this.subMatch),s=0,a=r.length;s<a;++s)if(o=r[s],n.call(this,o.sub,t)){if(i)return o;l.push(r[s])}}return l.length&&l},subMatch:function(e,t){return!t[1]||e.fn===t[1]}}},!0),e.SyntheticEvent=d,e.Event.define=function(t,i,r){var o,u,l;return t&&t.type?(o=t,r=i):i&&(o=e.merge({type:t},i)),o?(r||!e.Node.DOM_EVENTS[o.type])&&(u=function(){d.apply(this,arguments)},e.extend(u,d,o),t=(l=new u).type,e.Node.DOM_EVENTS[t]=e.Env.evt.plugins[t]={eventDef:l,on:function(){return l._on(n(arguments))},delegate:function(){return l._on(n(arguments),!0)},detach:function(){return l._detach(n(arguments))}}):(s(t)||a(t))&&e.Array.each(n(t),function(t){e.Node.DOM_EVENTS[t]=1}),l}},"3.18.1",{requires:["node-base","event-custom-complex"]}),YUI.add("event-mouseenter",function(e){var t=e.Env.evt.dom_wrappers,n=e.DOM.contains,i=e.Array,r=function(){},s={proxyType:"mouseover",relProperty:"fromElement",_notify:function(i,r,s){var a=this._node,o=i.relatedTarget||i[r];a===o||n(a,o)||s.fire(new e.DOMEventFacade(i,a,t["event:"+e.stamp(a)+i.type]))},on:function(t,n,i){var r=e.Node.getDOMNode(t),s=[this.proxyType,this._notify,r,null,this.relProperty,i];n.handle=e.Event._attach(s,{facade:!1})},detach:function(e,t){t.handle.detach()},delegate:function(t,n,i,s){var a=e.Node.getDOMNode(t),o=[this.proxyType,r,a,null,i];n.handle=e.Event._attach(o,{facade:!1}),n.handle.sub.filter=s,n.handle.sub.relProperty=this.relProperty,n.handle.sub._notify=this._filterNotify},_filterNotify:function(t,r,s){r=r.slice(),this.args&&r.push.apply(r,this.args);var a,o,u,l,c,d=e.delegate._applyFilter(this.filter,r,s),h=r[0].relatedTarget||r[0][this.relProperty];if(d)for(o=0,u=(d=i(d)).length&&(!a||!a.stopped);o<u&&(n(c=d[0],h)||(a||((a=new e.DOMEventFacade(r[0],c,s)).container=e.one(s.el)),a.currentTarget=e.one(c),!1!==(l=r[1].fire(a))));++o);return l},detachDelegate:function(e,t){t.handle.detach()}};e.Event.define("mouseenter",s,!0),e.Event.define("mouseleave",e.merge(s,{proxyType:"mouseout",relProperty:"toElement"}),!0)},"3.18.1",{requires:["event-synthetic"]}),YUI.add("plugin",function(e){function t(n){this.hasImpl&&this.hasImpl(e.Plugin.Base)?t.prototype.initializer.apply(this,arguments):t.superclass.constructor.apply(this,arguments)}t.ATTRS={host:{writeOnce:!0}},t.NAME="plugin",t.NS="plugin",e.extend(t,e.Base,{_handles:null,initializer:function(e){this._handles=[]},destructor:function(){if(this._handles)for(var e=0,t=this._handles.length;e<t;e++)this._handles[e].detach()},doBefore:function(e,t,n){var i,r=this.get("host");return e in r?i=this.beforeHostMethod(e,t,n):r.on&&(i=this.onHostEvent(e,t,n)),i},doAfter:function(e,t,n){var i,r=this.get("host");return e in r?i=this.afterHostMethod(e,t,n):r.after&&(i=this.afterHostEvent(e,t,n)),i},onHostEvent:function(e,t,n){var i=this.get("host").on(e,t,n||this);return this._handles.push(i),i},afterHostEvent:function(e,t,n){var i=this.get("host").after(e,t,n||this);return this._handles.push(i),i},beforeHostMethod:function(t,n,i){var r=e.Do.before(n,this.get("host"),t,i||this);return this._handles.push(r),r},afterHostMethod:function(t,n,i){var r=e.Do.after(n,this.get("host"),t,i||this);return this._handles.push(r),r},toString:function(){return this.constructor.NAME+"["+this.constructor.NS+"]"}}),e.namespace("Plugin").Base=t},"3.18.1",{requires:["base-base"]}),YUI.add("transition",function(e){var t,n,i,r,s,a,o,u,l="",c="",d=e.config.doc,h="Transition",f={},p=function(){this.init.apply(this,arguments)};p._toCamel=function(e){return e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()})},p._toHyphen=function(e){return e=e.replace(/([A-Z]?)([a-z]+)([A-Z]?)/g,function(e,t,n,i){var r=(t?"-"+t.toLowerCase():"")+n;return i&&(r+="-"+i.toLowerCase()),r})},p.SHOW_TRANSITION="fadeIn",p.HIDE_TRANSITION="fadeOut",p.useNative=!1,e.Array.each(["Webkit","Moz"],function(e){e+h in d.documentElement.style&&(l=e,c=p._toHyphen(e)+"-",p.useNative=!0,p.supported=!0,p._VENDOR_PREFIX=e)}),h=l+h,t=l+"TransitionProperty",n=c+"transition-property",i=c+"transition-duration",r=c+"transition-timing-function",s=c+"transition-delay",a="transitionend",o="on"+l.toLowerCase()+"transitionend",a=({Webkit:"webkitTransitionEnd"})[l]||a,u=l+"Transform",p.fx={},p.toggles={},p._hasEnd={},p._reKeywords=/^(?:node|duration|iterations|easing|delay|on|onstart|onend)$/i,e.Node.DOM_EVENTS[a]=1,p.NAME="transition",p.DEFAULT_EASING="ease",p.DEFAULT_DURATION=.5,p.DEFAULT_DELAY=0,p._nodeAttrs={},p.prototype={constructor:p,init:function(e,t){var n=this;return n._node=e,!n._running&&t&&(n._config=t,e._transition=n,n._duration="duration"in t?t.duration:n.constructor.DEFAULT_DURATION,n._delay="delay"in t?t.delay:n.constructor.DEFAULT_DELAY,n._easing=t.easing||n.constructor.DEFAULT_EASING,n._count=0,n._running=!1),n},addProperty:function(t,n){var i,r,s,a,o,u=this,l=this._node,c=e.stamp(l),d=e.one(l),h=p._nodeAttrs[c];h||(h=p._nodeAttrs[c]={}),a=h[t],n&&void 0!==n.value?o=n.value:void 0!==n&&(o=n,n=f),"function"==typeof o&&(o=o.call(d,d)),a&&a.transition&&a.transition!==u&&a.transition._count--,u._count++,s=(void 0!==n.duration?n.duration:u._duration)||1e-4,h[t]={value:o,duration:s,delay:void 0!==n.delay?n.delay:u._delay,easing:n.easing||u._easing,transition:u},i=e.DOM.getComputedStyle(l,t),r="string"==typeof o?i:parseFloat(i),p.useNative&&r===o&&setTimeout(function(){u._onNativeEnd.call(l,{propertyName:t,elapsedTime:s})},1e3*s)},removeProperty:function(t){var n=p._nodeAttrs[e.stamp(this._node)];n&&n[t]&&(delete n[t],this._count--)},initAttrs:function(t){var n,i=this._node;for(n in t.transform&&!t[u]&&(t[u]=t.transform,delete t.transform),t)t.hasOwnProperty(n)&&!p._reKeywords.test(n)&&(this.addProperty(n,t[n]),""===i.style[n]&&e.DOM.setStyle(i,n,e.DOM.getComputedStyle(i,n)))},run:function(t){var n=this,i=n._node,r=n._config;return n._running||(n._running=!0,r.on&&r.on.start&&r.on.start.call(e.one(i),{type:"transition:start",config:r}),n.initAttrs(n._config),n._callback=t,n._start()),n},_start:function(){this._runNative()},_prepDur:function(e){return(e=parseFloat(e))+"s"},_runNative:function(t){var o,u,l,c=this._node,d=e.stamp(c),h=c.style,f=c.ownerDocument.defaultView.getComputedStyle(c),g=p._nodeAttrs[d],m="",v=f[p._toCamel(n)],y=n+": ",b=i+": ",$=r+": ",_=s+": ";for(l in"all"!==v&&(y+=v+",",b+=f[p._toCamel(i)]+",",$+=f[p._toCamel(r)]+",",_+=f[p._toCamel(s)]+","),g)o=p._toHyphen(l),u=g[l],(u=g[l])&&u.transition===this&&(l in c.style?(b+=this._prepDur(u.duration)+",",_+=this._prepDur(u.delay)+",",$+=u.easing+",",y+=o+",",m+=o+": "+u.value+"; "):this.removeProperty(l));y=y.replace(/,$/,";"),b=b.replace(/,$/,";"),$=$.replace(/,$/,";"),_=_.replace(/,$/,";"),p._hasEnd[d]||(c.addEventListener(a,this._onNativeEnd,""),p._hasEnd[d]=!0),h.cssText+=y+b+$+_+m},_end:function(t){var n=this,i=n._node,r=n._callback,s=n._config,a={type:"transition:end",config:s,elapsedTime:t},o=e.one(i);n._running=!1,n._callback=null,i&&(s.on&&s.on.end?setTimeout(function(){s.on.end.call(o,a),r&&r.call(o,a)},1):r&&setTimeout(function(){r.call(o,a)},1))},_endNative:function(e){var t=this._node,i=t.ownerDocument.defaultView.getComputedStyle(t,"")[p._toCamel(n)];e=p._toHyphen(e),"string"==typeof i&&(i=(i=i.replace(RegExp("(?:^|,\\s)"+e+",?"),",")).replace(/^,|,$/,""),t.style[h]=i)},_onNativeEnd:function(n){var i,r,s=this,a=e.stamp(s),o=n,u=p._toCamel(o.propertyName),l=o.elapsedTime,c=p._nodeAttrs[a][u],d=c?c.transition:null;d&&(d.removeProperty(u),d._endNative(u),r=d._config[u],i={type:"propertyEnd",propertyName:u,elapsedTime:l,config:r},r&&r.on&&r.on.end&&r.on.end.call(e.one(s),i),d._count<=0&&(d._end(l),s.style[t]=""))},destroy:function(){var e=this,t=e._node;t&&(t.removeEventListener(a,e._onNativeEnd,!1),e._node=null)}},e.Transition=p,e.TransitionNative=p,e.Node.prototype.transition=function(t,n,i){var r,s,a=p._nodeAttrs[e.stamp(this._node)],o=a&&a.transition||null;if("string"==typeof t){if("function"==typeof n&&(i=n,n=null),r=p.fx[t],n&&"boolean"!=typeof n)for(s in n=e.clone(n),r)!r.hasOwnProperty(s)||s in n||(n[s]=r[s]);else n=r}else i=n,n=t;return o&&!o._running?o.init(this,n):o=new p(this._node,n),o.run(i),this},e.Node.prototype.show=function(t,n,i){return this._show(),t&&e.Transition&&("string"==typeof t||t.push||("function"==typeof n&&(i=n,n=t),t=p.SHOW_TRANSITION),this.transition(t,n,i)),this};var g=function(e,t,n){return function(){t&&t.call(e),n&&n.apply(e._node,arguments)}};e.Node.prototype.hide=function(t,n,i){return t&&e.Transition?("function"==typeof n&&(i=n,n=null),i=g(this,this._hide,i),"string"==typeof t||t.push||("function"==typeof n&&(i=n,n=t),t=p.HIDE_TRANSITION),this.transition(t,n,i)):this._hide(),this},e.NodeList.prototype.transition=function(t,n){for(var i,r=this._nodes,s=0;i=r[s++];)e.one(i).transition(t,n);return this},e.Node.prototype.toggleView=function(t,n,i){return this._toggles=this._toggles||[],i=arguments[arguments.length-1],"boolean"==typeof t&&(n=t,t=null),t=t||e.Transition.DEFAULT_TOGGLE,void 0===n&&t in this._toggles&&(n=!this._toggles[t]),(n=n?1:0)?this._show():i=g(this,this._hide,i),this._toggles[t]=n,this.transition(e.Transition.toggles[t][n],i),this},e.NodeList.prototype.toggleView=function(t,n,i){for(var r,s=this._nodes,a=0;r=s[a++];)e.one(r).toggleView(t,n,i);return this},e.mix(p.fx,{fadeOut:{opacity:0,duration:.5,easing:"ease-out"},fadeIn:{opacity:1,duration:.5,easing:"ease-in"},sizeOut:{height:0,width:0,duration:.75,easing:"ease-out"},sizeIn:{height:function(e){return e.get("scrollHeight")+"px"},width:function(e){return e.get("scrollWidth")+"px"},duration:.5,easing:"ease-in",on:{start:function(){var e=this.getStyle("overflow");"hidden"!==e&&(this.setStyle("overflow","hidden"),this._transitionOverflow=e)},end:function(){this._transitionOverflow&&(this.setStyle("overflow",this._transitionOverflow),delete this._transitionOverflow)}}}}),e.mix(p.toggles,{size:["sizeOut","sizeIn"],fade:["fadeOut","fadeIn"]}),p.DEFAULT_TOGGLE="fade"},"3.18.1",{requires:["node-style"]}),YUI.add("transition-timer",function(e){var t=e.Transition;e.mix(t.prototype,{_start:function(){t.useNative?this._runNative():this._runTimer()},_runTimer:function(){var n=this;n._initAttrs(),t._running[e.stamp(n)]=n,n._startTime=new Date,t._startTimer()},_endTimer:function(){var n=this;delete t._running[e.stamp(n)],n._startTime=null},_runFrame:function(){var e=new Date-this._startTime;this._runAttrs(e)},_runAttrs:function(n){var i,r,s,a,o,u,l,c,d,h=this._node,f=this._config,p=e.stamp(h),g=t._nodeAttrs[p],m=t.behaviors,v=!1,y=!1;for(r in g)(s=g[r])&&s.transition===this&&(l=s.duration,o=(n-(u=s.delay))/1e3,c=n,i={type:"propertyEnd",propertyName:r,config:f,elapsedTime:o},a=d in m&&"set"in m[d]?m[d].set:t.DEFAULT_SETTER,v=c>=l,c>l&&(c=l),(!u||n>=u)&&(a(this,r,s.from,s.to,c-u,l-u,s.easing,s.unit),v&&(delete g[r],this._count--,f[r]&&f[r].on&&f[r].on.end&&f[r].on.end.call(e.one(h),i),!y&&this._count<=0&&(y=!0,this._end(o),this._endTimer()))))},_initAttrs:function(){var n,i,r,s,a,o,u,l,c,d,h,f=t.behaviors,p=e.stamp(this._node),g=t._nodeAttrs[p];for(o in g)(n=g[o])&&n.transition===this&&(i=1e3*n.duration,r=1e3*n.delay,s=n.easing,a=n.value,o in this._node.style||o in e.DOM.CUSTOM_STYLES?(d=o in f&&"get"in f[o]?f[o].get(this,o):t.DEFAULT_GETTER(this,o),l=t.RE_UNITS.exec(d),u=t.RE_UNITS.exec(a),d=l?l[1]:d,h=u?u[1]:a,!(c=u?u[2]:l?l[2]:"")&&t.RE_DEFAULT_UNIT.test(o)&&(c=t.DEFAULT_UNIT),"string"==typeof s&&(s.indexOf("cubic-bezier")>-1?s=s.substring(13,s.length-1).split(","):t.easings[s]&&(s=t.easings[s])),n.from=Number(d),n.to=Number(h),n.unit=c,n.easing=s,n.duration=i+r,n.delay=r):(delete g[o],this._count--))},destroy:function(){this.detachAll(),this._node=null}},!0),e.mix(e.Transition,{_runtimeAttrs:{},RE_DEFAULT_UNIT:/^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i,DEFAULT_UNIT:"px",intervalTime:20,behaviors:{left:{get:function(t,n){return e.DOM._getAttrOffset(t._node,n)}}},DEFAULT_SETTER:function(n,i,r,s,a,o,u,l){r=Number(r),s=Number(s);var c=n._node,d=t.cubicBezier(u,a/o);d=r+d[0]*(s-r),c?(i in c.style||i in e.DOM.CUSTOM_STYLES)&&(l=l||"",e.DOM.setStyle(c,i,d+l)):n._end()},DEFAULT_GETTER:function(t,n){var i=t._node,r="";return(n in i.style||n in e.DOM.CUSTOM_STYLES)&&(r=e.DOM.getComputedStyle(i,n)),r},_startTimer:function(){t._timer||(t._timer=setInterval(t._runFrame,t.intervalTime))},_stopTimer:function(){clearInterval(t._timer),t._timer=null},_runFrame:function(){var e,n=!0;for(e in t._running)t._running[e]._runFrame&&(n=!1,t._running[e]._runFrame());n&&t._stopTimer()},cubicBezier:function(e,t){var n=e[0],i=e[1],r=e[2],s=e[3];return[(((1-3*r+3*n-0)*t+(3*r-6*n+0))*t+(3*n-0))*t+0,(((0-3*s+3*i-0)*t+(3*s-6*i+0))*t+(3*i-0))*t+0]},easings:{ease:[.25,0,1,.25],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},_running:{},_timer:null,RE_UNITS:/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/},!0),t.behaviors.top=t.behaviors.bottom=t.behaviors.right=t.behaviors.left,e.Transition=t},"3.18.1",{requires:["transition"]}),YUI.add("event-touch",function(e){var t="scale",n="rotation",i="identifier";e.DOMEventFacade.prototype._touch=function(r,s,a){var o,u,l,c,d;if(r.touches)for(o=0,this.touches=[],d={},u=r.touches.length;o<u;++o)c=r.touches[o],d[e.stamp(c)]=this.touches[o]=new e.DOMEventFacade(c,s,a);if(r.targetTouches)for(o=0,this.targetTouches=[],u=r.targetTouches.length;o<u;++o)c=r.targetTouches[o],l=d&&d[e.stamp(c,!0)],this.targetTouches[o]=l||new e.DOMEventFacade(c,s,a);if(r.changedTouches)for(o=0,this.changedTouches=[],u=r.changedTouches.length;o<u;++o)c=r.changedTouches[o],l=d&&d[e.stamp(c,!0)],this.changedTouches[o]=l||new e.DOMEventFacade(c,s,a);t in r&&(this[t]=r[t]),n in r&&(this[n]=r[n]),i in r&&(this[i]=r[i])},e.Node.DOM_EVENTS&&e.mix(e.Node.DOM_EVENTS,{touchstart:1,touchmove:1,touchend:1,touchcancel:1,gesturestart:1,gesturechange:1,gestureend:1})},"3.18.1",{requires:["node-base"]}),YUI.add("event-move",function(e){var t=e.config.win&&"ontouchstart"in e.config.win&&!(e.UA.chrome&&e.UA.chrome<6)?{start:"touchstart",move:"touchmove",end:"touchend"}:{start:"mousedown",move:"mousemove",end:"mouseup"},n="start",i="move",r="gesture"+i,s=r+"end",a=r+n,o="_msh",u="_meh",l="_dmsh",c="_dmh",d="_dmeh",h="minTime",f="minDistance",p="preventDefault",g="button",m="currentTarget",v="target",y=function(t,n,i){var r=i?4:3,s=n.length>r?e.merge(n.splice(r,1)[0]):{};return p in s||(s[p]=t.PREVENT_DEFAULT),s},b=function(e,t){return t._extra.root||9===e.get("nodeType")?e:e.get("ownerDocument")},$=function(e,t,n){e.pageX=t.pageX,e.pageY=t.pageY,e.screenX=t.screenX,e.screenY=t.screenY,e.clientX=t.clientX,e.clientY=t.clientY,e[v]=e[v]||t[v],e[m]=e[m]||t[m],e[g]=n&&n[g]||1},_=function(e,t){t&&(!t.call||t(e))&&e.preventDefault()},E=e.Event.define;E(a,{on:function(e,i,r){i[o]=e.on(t[n],this._onStart,this,e,i,r)},delegate:function(e,i,r,s){var a=this;i[l]=e.delegate(t[n],function(t){a._onStart(t,e,i,r,!0)},s)},detachDelegate:function(e,t,n,i){var r=t[l];r&&(r.detach(),t[l]=null)},detach:function(e,t,n){var i=t[o];i&&(i.detach(),t[o]=null)},processArgs:function(e,t){var n=y(this,e,t);return h in n||(n[h]=this.MIN_TIME),f in n||(n[f]=this.MIN_DISTANCE),n},_onStart:function(n,r,s,a,o){o&&(r=n[m]);var u,l=s._extra,c=!0,d=l[h],g=l[f],v=l.button,y=l[p],E=b(r,s);n.touches?1===n.touches.length?$(n,n.touches[0],l):c=!1:c=void 0===v||v===n.button,c&&(_(n,y),0===d||0===g?this._start(n,r,a,l):(u=[n.pageX,n.pageY],d>0&&(l._ht=e.later(d,this,this._start,[n,r,a,l]),l._hme=E.on(t.end,e.bind(function(){this._cancel(l)},this))),g>0&&(l._hm=E.on(t[i],e.bind(function(e){(Math.abs(e.pageX-u[0])>g||Math.abs(e.pageY-u[1])>g)&&this._start(n,r,a,l)},this)))))},_cancel:function(e){e._ht&&(e._ht.cancel(),e._ht=null),e._hme&&(e._hme.detach(),e._hme=null),e._hm&&(e._hm.detach(),e._hm=null)},_start:function(e,t,n,i){i&&this._cancel(i),e.type=a,t.setData("_ms",e),n.fire(e)},MIN_TIME:0,MIN_DISTANCE:0,PREVENT_DEFAULT:!1}),E(r,{on:function(e,n,r){var s=b(e,n).on(t[i],this._onMove,this,e,n,r);n._mh=s},delegate:function(e,n,r,s){var a=this;n[c]=e.delegate(t[i],function(t){a._onMove(t,e,n,r,!0)},s)},detach:function(e,t,n){var i=t._mh;i&&(i.detach(),t._mh=null)},detachDelegate:function(e,t,n,i){var r=t[c];r&&(r.detach(),t[c]=null)},processArgs:function(e,t){return y(this,e,t)},_onMove:function(e,t,n,i,s){s&&(t=e[m]);var a=n._extra.standAlone||t.getData("_ms"),o=n._extra.preventDefault;a&&(e.touches&&(1===e.touches.length?$(e,e.touches[0]):a=!1),a&&(_(e,o),e.type=r,i.fire(e)))},PREVENT_DEFAULT:!1}),E(s,{on:function(e,n,i){var r=b(e,n).on(t.end,this._onEnd,this,e,n,i);n[u]=r},delegate:function(e,n,i,r){var s=this;n[d]=e.delegate(t.end,function(t){s._onEnd(t,e,n,i,!0)},r)},detachDelegate:function(e,t,n,i){var r=t[d];r&&(r.detach(),t[d]=null)},detach:function(e,t,n){var i=t[u];i&&(i.detach(),t[u]=null)},processArgs:function(e,t){return y(this,e,t)},_onEnd:function(e,t,n,i,r){r&&(t=e[m]);var a=n._extra.standAlone||t.getData("_m")||t.getData("_ms"),o=n._extra.preventDefault;a&&(e.changedTouches&&(1===e.changedTouches.length?$(e,e.changedTouches[0]):a=!1),a&&(_(e,o),e.type=s,i.fire(e),t.clearData("_ms"),t.clearData("_m")))},PREVENT_DEFAULT:!1})},"3.18.1",{requires:["node-base","event-touch","event-synthetic"]}),YUI.add("event-delegate",function(e){var t=e.Array,n=e.Lang,i=n.isString,r=n.isObject,s=n.isArray,a=e.Selector.test,o=e.Env.evt.handles;function u(n,a,l,c){var d,h,f,p,g,m,v,y,b,$=t(arguments,0,!0),_=i(l)?l:null;if(r(n)){if(y=[],s(n))for(m=0,v=n.length;m<v;++m)$[0]=n[m],y.push(e.delegate.apply(e,$));else for(m in $.unshift(null),n)n.hasOwnProperty(m)&&($[0]=m,$[1]=n[m],y.push(e.delegate.apply(e,$)));return new e.EventHandle(y)}if((d=n.split(/\|/)).length>1&&(g=d.shift(),$[0]=n=d.shift()),r(h=e.Node.DOM_EVENTS[n])&&h.delegate&&(b=h.delegate.apply(h,arguments)),!b){if(!n||!a||!l||!c)return;!(f=_?e.Selector.query(_,null,!0):l)&&i(l)&&(b=e.on("available",function(){e.mix(b,e.delegate.apply(e,$),!0)},l)),!b&&f&&($.splice(2,2,f),(b=e.Event._attach($,{facade:!1})).sub.filter=c,b.sub._notify=u.notifySub)}return b&&g&&(p=(p=o[g]||(o[g]={}))[n]||(p[n]=[])).push(b),b}u.notifySub=function(n,i,r){i=i.slice(),this.args&&i.push.apply(i,this.args);var s,a,o,l,c=u._applyFilter(this.filter,i,r);if(c){for(a=0,c=t(c),(s=i[0]=new e.DOMEventFacade(i[0],r.el,r)).container=e.one(r.el),o=c.length;a<o&&!s.stopped&&(s.currentTarget=e.one(c[a]),!1!==(l=this.fn.apply(this.context||s.currentTarget,i)));++a);return l}},u.compileFilter=e.cached(function(e){return function(t,n){return a(t._node,e,n.currentTarget===n.target?null:n.currentTarget._node)}}),u._applyFilter=function(t,n,r){var s=n[0],o=r.el,u=s.target||s.srcElement,l=[],c=!1;if(3===u.nodeType&&(u=u.parentNode),n.unshift(u),i(t))for(;u&&(c=u===o,a(u,t,c?null:o)&&l.push(u),!c);)u=u.parentNode;else{for(n[0]=e.one(u),n[1]=new e.DOMEventFacade(s,o,r);u&&(t.apply(n[0],n)&&l.push(u),u!==o);)u=u.parentNode,n[0]=e.one(u);n[1]=s}return l.length<=1&&(l=l[0]),n.shift(),l},e.delegate=e.Event.delegate=u},"3.18.1",{requires:["node-base"]}),YUI.add("node-event-delegate",function(e){e.Node.prototype.delegate=function(t){var n=e.Array(arguments,0,!0),i=e.Lang.isObject(t)&&!e.Lang.isArray(t)?1:2;return n.splice(i,0,this._node),e.delegate.apply(e,n)}},"3.18.1",{requires:["node-base","event-delegate"]}),YUI.add("base-pluginhost",function(e){var t=e.Base,n=e.Plugin.Host;e.mix(t,n,!1,null,1),t.plug=n.plug,t.unplug=n.unplug},"3.18.1",{requires:["base-base","pluginhost"]}),YUI.add("base-build",function(e){var t,n=e.Base,i=e.Lang,r="initializer",s="destructor",a=function(e,t,n){n[e]&&(t[e]=(t[e]||[]).concat(n[e]))};n._build=function(t,i,a,o,u,l){var c,d,h,f,p,g,m=n._build,v=m._ctor(i,l),y=m._cfg(i,l,a),b=m._mixCust,$=v._yuibuild.dynamic;for(c=0,d=a.length;c<d;c++)p=(f=(h=a[c]).prototype)[r],g=f[s],delete f[r],delete f[s],e.mix(v,h,!0,null,1),b(v,h,y),p&&(f[r]=p),g&&(f[s]=g),v._yuibuild.exts.push(h);return o&&e.mix(v.prototype,o,!0),u&&(e.mix(v,m._clean(u,y),!0),b(v,u,y)),v.prototype.hasImpl=m._impl,$&&(v.NAME=t,v.prototype.constructor=v),v},t=n._build,e.mix(t,{_mixCust:function(t,n,r){var s,a,o,u,l,c;if(r&&(s=r.aggregates,a=r.custom,o=r.statics),o&&e.mix(t,n,!0,o),s)for(c=0,l=s.length;c<l;c++)u=s[c],!t.hasOwnProperty(u)&&n.hasOwnProperty(u)&&(t[u]=i.isArray(n[u])?[]:{}),e.aggregate(t,n,!0,[u]);if(a)for(c in a)a.hasOwnProperty(c)&&a[c](c,t,n)},_tmpl:function(t){function n(){n.superclass.constructor.apply(this,arguments)}return e.extend(n,t),n},_impl:function(e){var t,n,i,r,s,a,o=this._getClasses();for(t=0,n=o.length;t<n;t++)if((i=o[t])._yuibuild){for(a=0,s=(r=i._yuibuild.exts).length;a<s;a++)if(r[a]===e)return!0}return!1},_ctor:function(e,n){var i=!n||!1!==n.dynamic,r=i?t._tmpl(e):e,s=r._yuibuild;return s||(s=r._yuibuild={}),s.id=s.id||null,s.exts=s.exts||[],s.dynamic=i,r},_cfg:function(t,n,i){for(var r,s,a,o=[],u={},l=[],c=n&&n.aggregates,d=n&&n.custom,h=n&&n.statics,f=t;f&&f.prototype;)(r=f._buildCfg)&&(r.aggregates&&(o=o.concat(r.aggregates)),r.custom&&e.mix(u,r.custom,!0),r.statics&&(l=l.concat(r.statics))),f=f.superclass?f.superclass.constructor:null;if(i)for(s=0,a=i.length;s<a;s++)(r=(f=i[s])._buildCfg)&&(r.aggregates&&(o=o.concat(r.aggregates)),r.custom&&e.mix(u,r.custom,!0),r.statics&&(l=l.concat(r.statics)));return c&&(o=o.concat(c)),d&&e.mix(u,n.cfgBuild,!0),h&&(l=l.concat(h)),{aggregates:o,custom:u,statics:l}},_clean:function(t,n){var i,r,s,a=e.merge(t),o=n.aggregates,u=n.custom;for(i in u)a.hasOwnProperty(i)&&delete a[i];for(r=0,s=o.length;r<s;r++)i=o[r],a.hasOwnProperty(i)&&delete a[i];return a}}),n.build=function(e,n,i,r){return t(e,n,i,null,null,r)},n.create=function(e,n,i,r,s){return t(e,n,i,r,s)},n.mix=function(e,n){return t(null,e,n,null,null,{dynamic:!1})},n._buildCfg={custom:{ATTRS:function(t,n,i){if(n.ATTRS=n.ATTRS||{},i.ATTRS){var r,s=i.ATTRS,a=n.ATTRS;for(r in s)s.hasOwnProperty(r)&&(a[r]=a[r]||{},e.mix(a[r],s[r],!0))}},_NON_ATTRS_CFG:a},aggregates:["_PLUG","_UNPLUG"]}},"3.18.1",{requires:["base-base"]}),YUI.add("classnamemanager",function(e){var t,n,i="classNamePrefix",r="classNameDelimiter",s=e.config;s[i]=s[i]||"yui3",s[r]=s[r]||"-",e.ClassNameManager=(t=s[i],n=s[r],{getClassName:e.cached(function(){var i=e.Array(arguments);return!0!==i[i.length-1]?i.unshift(t):i.pop(),i.join(n)})})},"3.18.1",{requires:["yui-base"]}),YUI.add("event-focus",function(e){var t=e.Event,n=e.Lang,i=n.isString,r=e.Array.indexOf,s=n.isFunction(e.DOM.create('<p onbeforeactivate=";"/>').onbeforeactivate);function a(n,a,o){var u="_"+n+"Notifiers";e.Event.define(n,{_attach:function(i,r,s){return e.DOM.isWindow(i)?t._attach([n,function(e){r.fire(e)},i,]):t._attach([a,this._proxy,i,this,r,s],{capture:!0})},_proxy:function(n,i,r){var a,l=n.target,c=n.currentTarget,d=l.getData(u),h=e.stamp(c._node),f=s||l!==c;i.currentTarget=r?l:c,i.container=r?c:null,d?f=!0:(d={},l.setData(u,d),f&&((a=t._attach([o,this._notify,l._node]).sub).once=!0)),d[h]||(d[h]=[]),d[h].push(i),f||this._notify(n)},_notify:function(t,n){var i,s,a,o,l,c,d,h,f,p,g=t.currentTarget,m=g.getData(u),v=g.ancestors(),y=g.get("ownerDocument"),b=[],$=m?e.Object.keys(m).length:0;for(g.clearData(u),v.push(g),y&&v.unshift(y),v._nodes.reverse(),c=$,v.some(function(t){var n,i,r=m[e.stamp(t)];if(r)for($--,n=0,i=r.length;n<i;++n)r[n].handle.sub.filter&&b.push(r[n]);return!$}),$=c;$&&(i=v.shift());){if(s=m[o=e.stamp(i)]){for(d=0,h=s.length;d<h&&(f=(a=s[d]).handle.sub,l=!0,t.currentTarget=i,f.filter&&(l=f.filter.apply(i,[i,t].concat(f.args||[])),b.splice(r(b,a),1)),l&&(t.container=a.container,p=a.fire(t)),!1!==p&&2!==t.stopped);++d);delete s[o],$--}if(2!==t.stopped)for(d=0,h=b.length;d<h&&((f=(a=b[d]).handle.sub).filter.apply(i,[i,t].concat(f.args||[]))&&(t.container=a.container,t.currentTarget=i,p=a.fire(t)),!1!==p&&2!==t.stopped);++d);if(t.stopped)break}},on:function(e,t,n){t.handle=this._attach(e._node,n)},detach:function(e,t){t.handle.detach()},delegate:function(t,n,r,s){i(s)&&(n.filter=function(n){return e.Selector.test(n._node,s,t===n?null:t._node)}),n.handle=this._attach(t._node,r,!0)},detachDelegate:function(e,t){t.handle.detach()}},!0)}s?(a("focus","beforeactivate","focusin"),a("blur","beforedeactivate","focusout")):(a("focus","focus","focus"),a("blur","blur","blur"))},"3.18.1",{requires:["event-synthetic"]}),YUI.add("attribute-core",function(e){e.State=function(){this.data={}},e.State.prototype={add:function(e,t,n){var i=this.data;i[e]=i[e]||{},i[e][t]=n},addAll:function(e,t){var n;for(n in t)t.hasOwnProperty(n)&&this.add(e,n,t[n])},remove:function(e,t){var n=this.data;n[e]&&delete n[e][t]},removeAll:function(t,n){var i=this.data;n?e.each(n,function(n,i){e.Lang.isString(i)?this.remove(t,i):this.remove(t,n)},this):i[t]&&delete i[t]},get:function(e,t){var n=this.data;return n[e]?n[e][t]:void 0},getAll:function(t,n){var i,r=this.data;return n?i=r[t]:e.each(r[t],function(e,t){(i=i||{})[t]=e}),i}};var t,n=e.Object,i=e.Lang,r="getter",s="value",a="lazyAdd",o="_bypassProxy",u="initValue",l="lazy",c="isLazyAdd";function d(e,t,n){this._initAttrHost(e,t,n)}d.INVALID_VALUE={},t=d.INVALID_VALUE,d._ATTR_CFG=["setter",r,"validator",s,"valueFn","writeOnce","readOnly",a,o],d.prototype={_initAttrHost:function(t,n,i){this._state=new e.State,this._initAttrs(t,n,i)},addAttr:function(e,t,n){var i,r,o=this._state;return(n=a in(t=t||{})?t[a]:n)&&!this.attrAdded(e)?o.addAll(e,{lazy:t,added:!0}):(!this.attrAdded(e)||o.get(e,c))&&((r=s in t)&&(i=t.value,delete t.value),t.added=!0,t.initializing=!0,o.addAll(e,t),r&&this.set(e,i),o.remove(e,"initializing")),this},attrAdded:function(e){return!!this._state.get(e,"added")},get:function(e){return this._getAttr(e)},_isLazyAttr:function(e){return this._state.get(e,l)},_addLazyAttr:function(e,t){var n=this._state,i=n.get(e,l);n.add(e,c,!0),n.remove(e,l),this.addAttr(e,i)},set:function(e,t){return this._setAttr(e,t)},_set:function(e,t){return this._setAttr(e,t,null,!0)},_setAttr:function(t,i,r,a){var o,u,l,c,d,h,f,p=!0,g=this._state,m=this._stateProxy;return -1!==t.indexOf(".")&&(l=t,t=(c=t.split(".")).shift()),this._isLazyAttr(t)&&this._addLazyAttr(t),u=!(s in(o=g.getAll(t,!0)||{})),m&&t in m&&!o._bypassProxy&&(u=!1),h=o.writeOnce,f=o.initializing,u||a||(h&&(p=!1),o.readOnly&&(p=!1)),f||a||"initOnly"!==h||(p=!1),p&&(u||(d=this.get(t)),c&&void 0===(i=n.setValue(e.clone(d),c,i))&&(p=!1),p&&(!this._fireAttrChange||f?this._setAttrVal(t,l,d,i):this._fireAttrChange(t,l,d,i,r))),this},_getAttr:function(e){var t,i,s,a,o=e,u=this._state;return -1!==e.indexOf(".")&&(e=(t=e.split(".")).shift()),this._tCfgs&&this._tCfgs[e]&&((a={})[e]=this._tCfgs[e],delete this._tCfgs[e],this._addAttrs(a,this._tVals)),this._isLazyAttr(e)&&this._addLazyAttr(e),s=this._getStateVal(e),(i=u.get(e,r))&&!i.call&&(i=this[i]),s=i?i.call(this,s,o):s,s=t?n.getValue(s,t):s},_getStateVal:function(e){var t=this._stateProxy;return t&&e in t&&!this._state.get(e,o)?t[e]:this._state.get(e,s)},_setStateVal:function(e,t){var n=this._stateProxy;n&&e in n&&!this._state.get(e,o)?n[e]=t:this._state.add(e,s,t)},_setAttrVal:function(e,n,r,s){var a,o,l=!0,c=this._state.getAll(e,!0)||{},d=c.validator,h=c.setter,f=c.initializing,p=this._getStateVal(e),g=n||e;return d&&(d.call||(d=this[d]),!d||(o=d.call(this,s,g))||!f||(s=c.defaultValue,o=!0)),!d||o?(h&&(h.call||(h=this[h]),h&&((a=h.call(this,s,g))===t?l=!1:void 0!==a&&(s=a))),l&&(n||s!==p||i.isObject(s)?(u in c||(c.initValue=s),this._setStateVal(e,s)):l=!1)):l=!1,l},setAttrs:function(e){return this._setAttrs(e)},_setAttrs:function(e){for(var t in e)e.hasOwnProperty(t)&&this.set(t,e[t]);return this},getAttrs:function(e){return this._getAttrs(e)},_getAttrs:function(e){var t,i,r,s,a={},o=!0===e;for(t=0,i=(e=e&&!o?e:n.keys(this._state.data)).length;t<i;t++)r=e[t],s=this.get(r),o&&this._getStateVal(r)==this._state.get(r,u)||(a[r]=this.get(r));return a},addAttrs:function(e,t,n){var i=this;return e&&(i._tCfgs=e,i._tVals=i._normAttrVals(t),i._addAttrs(e,i._tVals,n),i._tCfgs=i._tVals=null),i},_addAttrs:function(e,t,n){var i,r,s;for(i in e)e.hasOwnProperty(i)&&((r=e[i]).defaultValue=r.value,void 0!==(s=this._getAttrInitVal(i,r,this._tVals))&&(r.value=s),this._tCfgs[i]&&delete this._tCfgs[i],this.addAttr(i,r,n))},_protectAttrs:function(t){if(t)for(var n in t=e.merge(t))t.hasOwnProperty(n)&&(t[n]=e.merge(t[n]));return t},_normAttrVals:function(t){return t?e.merge(t):null},_getAttrInitVal:function(e,t,n){var i,r;return!t.readOnly&&n&&n.hasOwnProperty(e)?i=n[e]:(i=t.value,(r=t.valueFn)&&(r.call||(r=this[r]),r&&(i=r.call(this,e)))),i},_initAttrs:function(t,n,i){t=t||this.constructor.ATTRS;var r=e.Base,s=e.BaseCore,a=r&&e.instanceOf(this,r),o=!a&&s&&e.instanceOf(this,s);!t||a||o||this.addAttrs(this._protectAttrs(t),n,i)}},e.AttributeCore=d},"3.18.1"),YUI.add("base-core",function(e){var t=e.Object,n=e.Lang,i="initializer",r=Object.prototype.constructor,s="destructor",a=e.AttributeCore,o=function(e,t,n){var i;for(i in t)n[i]&&(e[i]=t[i]);return e};function u(e){this._BaseInvoked||(this._BaseInvoked=!0,this._initBase(e))}u._ATTR_CFG=a._ATTR_CFG.concat("cloneDefaultValue"),u._ATTR_CFG_HASH=e.Array.hash(u._ATTR_CFG),u._NON_ATTRS_CFG=["plugins"],u.NAME="baseCore",u.ATTRS={initialized:{readOnly:!0,value:!1},destroyed:{readOnly:!0,value:!1}},u.prototype={_initBase:function(t){e.stamp(this),this._initAttribute(t);var n=e.Plugin&&e.Plugin.Host;this._initPlugins&&n&&n.call(this),!1!==this._lazyAddAttrs&&(this._lazyAddAttrs=!0),this.name=this.constructor.NAME,this.init.apply(this,arguments)},_initAttribute:function(){a.apply(this)},init:function(e){return this._baseInit(e),this},_baseInit:function(e){this._initHierarchy(e),this._initPlugins&&this._initPlugins(e),this._set("initialized",!0)},destroy:function(){return this._baseDestroy(),this},_baseDestroy:function(){this._destroyPlugins&&this._destroyPlugins(),this._destroyHierarchy(),this._set("destroyed",!0)},_getClasses:function(){return this._classes||this._initHierarchyData(),this._classes},_getAttrCfgs:function(){return this._attrs||this._initHierarchyData(),this._attrs},_filterAttrCfgs:function(e,t){var n,i=null,r=e.ATTRS;if(r)for(n in r)t[n]&&((i=i||{})[n]=t[n],t[n]=null);return i},_filterAdHocAttrs:function(e,t){var n,i,r=this._nonAttrs;if(t)for(i in n={},t)!e[i]&&!r[i]&&t.hasOwnProperty(i)&&(n[i]={value:t[i]});return n},_initHierarchyData:function(){for(var e,t,n,i=this.constructor,r=this._allowAdHocAttrs?{}:null,s=[],a=[];i;){if(s[s.length]=i,i.ATTRS&&(a[a.length]=i.ATTRS),this._allowAdHocAttrs&&(n=i._NON_ATTRS_CFG))for(e=0,t=n.length;e<t;e++)r[n[e]]=!0;i=i.superclass?i.superclass.constructor:null}this._classes=s,this._nonAttrs=r,this._attrs=this._aggregateAttrs(a)},_attrCfgHash:function(){return u._ATTR_CFG_HASH},_aggregateAttrs:function(i){var s,a,u,l,c,d,h,f=this._attrCfgHash(),p={};if(i)for(d=i.length-1;d>=0;--d)for(s in a=i[d])a.hasOwnProperty(s)&&(l=(u=o({},a[s],f)).value,h=u.cloneDefaultValue,l&&(void 0===h&&(r===l.constructor||n.isArray(l))||"deep"===h||!0===h?u.value=e.clone(l):"shallow"===h&&(u.value=e.merge(l))),c=null,-1!==s.indexOf(".")&&(s=(c=s.split(".")).shift()),c&&p[s]&&p[s].value?t.setValue(p[s].value,c,l):c||(p[s]?o(p[s],u,f):p[s]=u));return p},_initHierarchy:function(e){var t,n,r,s,a,o,u,l=this._lazyAddAttrs,c=this._getClasses(),d=this._getAttrCfgs(),h=c.length-1;for(r=h;r>=0;r--){if(n=(t=c[r]).prototype,u=t._yuibuild&&t._yuibuild.exts)for(s=0,a=u.length;s<a;s++)u[s].apply(this,arguments);if(this.addAttrs(this._filterAttrCfgs(t,d),e,l),this._allowAdHocAttrs&&r===h&&this.addAttrs(this._filterAdHocAttrs(d,e),e,l),n.hasOwnProperty(i)&&n.initializer.apply(this,arguments),u)for(s=0;s<a;s++)(o=u[s].prototype).hasOwnProperty(i)&&o.initializer.apply(this,arguments)}},_destroyHierarchy:function(){var e,t,n,i,r,a,o,u,l=this._getClasses();for(n=0,i=l.length;n<i;n++){if(t=(e=l[n]).prototype,o=e._yuibuild&&e._yuibuild.exts)for(r=0,a=o.length;r<a;r++)(u=o[r].prototype).hasOwnProperty(s)&&u.destructor.apply(this,arguments);t.hasOwnProperty(s)&&t.destructor.apply(this,arguments)}},toString:function(){return this.name+"["+e.stamp(this,!0)+"]"}},e.mix(u,a,!1,null,1),u.prototype.constructor=u,e.BaseCore=u},"3.18.1",{requires:["attribute-core"]}),YUI.add("oop",function(e){var t=e.Lang,n=e.Array,i=Object.prototype,r="_~yuim~_",s=i.hasOwnProperty,a=i.toString;function o(t,i,r,s,a){if(t&&t[a]&&t!==e)return t[a].call(t,i,r);switch(n.test(t)){case 1:return n[a](t,i,r);case 2:return n[a](e.Array(t,0,!0),i,r);default:return e.Object[a](t,i,r,s)}}e.augment=function(t,n,i,r,o){var u,l,c,d,h,f=t.prototype,p=f&&n,g=n.prototype,m=f||t;return o=o?e.Array(o):[],p&&(l={},c={},d={},u=function(e,t){!i&&t in f||("[object Function]"===a.call(e)?(d[t]=e,l[t]=c[t]=function(){return h(this,e,arguments)}):l[t]=e)},h=function(e,t,i){for(var r in d)s.call(d,r)&&e[r]===c[r]&&(e[r]=d[r]);return n.apply(e,o),t.apply(e,i)},r?e.Array.each(r,function(e){e in g&&u(g[e],e)}):e.Object.each(g,u,null,!0)),e.mix(m,l||g,i,r),p||n.apply(m,o),t},e.aggregate=function(t,n,i,r){return e.mix(t,n,i,r,0,!0)},e.extend=function(t,n,r,s){n&&t||e.error("extend failed, verify dependencies");var a=n.prototype,o=e.Object(a);return t.prototype=o,o.constructor=t,t.superclass=a,n!=Object&&a.constructor==i.constructor&&(a.constructor=n),r&&e.mix(o,r,!0),s&&e.mix(t,s,!0),t},e.each=function(e,t,n,i){return o(e,t,n,i,"each")},e.some=function(e,t,n,i){return o(e,t,n,i,"some")},e.clone=function(n,i,s,a,o,u){if(!t.isObject(n)||e.instanceOf(n,YUI))return n;var l,c,d=u||{},h=e.each;switch(t.type(n)){case"date":return new Date(n);case"regexp":case"function":return n;case"array":l=[];break;default:if(n[r])return d[n[r]];c=e.guid(),l=i?{}:e.Object(n),n[r]=c,d[c]=n}return n.addEventListener||n.attachEvent||h(n,function(t,u){(u||0===u)&&(!s||!1!==s.call(a||this,t,u,this,n))&&u!==r&&("prototype"==u||(this[u]=e.clone(t,i,s,a,o||n,d)))},l),u||(e.Object.each(d,function(e,t){if(e[r])try{delete e[r]}catch(n){e[r]=null}},this),d=null),l},e.bind=function(n,i){var r=arguments.length>2?e.Array(arguments,2,!0):null;return function(){var s=t.isString(n)?i[n]:n,a=r?r.concat(e.Array(arguments,0,!0)):arguments;return s.apply(i||s,a)}},e.rbind=function(n,i){var r=arguments.length>2?e.Array(arguments,2,!0):null;return function(){var s=t.isString(n)?i[n]:n,a=r?e.Array(arguments,0,!0).concat(r):arguments;return s.apply(i||s,a)}}},"3.18.1",{requires:["yui-base"]}),YUI.add("event-custom-base",function(e){e.Env.evt={handles:{},plugins:{}};var t={objs:{},before:function(t,n,i,r){var s,a=t;return r&&(s=[t,r].concat(e.Array(arguments,4,!0)),a=e.rbind.apply(e,s)),this._inject(0,a,n,i)},after:function(t,n,i,r){var s,a=t;return r&&(s=[t,r].concat(e.Array(arguments,4,!0)),a=e.rbind.apply(e,s)),this._inject(1,a,n,i)},_inject:function(t,n,i,r){var s,a,o=e.stamp(i);return this.objs[o]||(this.objs[o]={}),(s=this.objs[o])[r]||(s[r]=new e.Do.Method(i,r),i[r]=function(){return s[r].exec.apply(s[r],arguments)}),a=o+e.stamp(n)+r,s[r].register(a,n,t),new e.EventHandle(s[r],a)},detach:function(e){e.detach&&e.detach()},_unload:function(e,t){}};e.Do=t,t.Method=function(e,t){this.obj=e,this.methodName=t,this.method=e[t],this.before={},this.after={}},t.Method.prototype.register=function(e,t,n){n?this.after[e]=t:this.before[e]=t},t.Method.prototype._delete=function(e){delete this.before[e],delete this.after[e]},t.Method.prototype.exec=function(){var n,i,r,s=e.Array(arguments,0,!0),a=this.before,o=this.after,u=!1;for(n in a)if(a.hasOwnProperty(n)&&(i=a[n].apply(this.obj,s)))switch(i.constructor){case t.Halt:return i.retVal;case t.AlterArgs:s=i.newArgs;break;case t.Prevent:u=!0}for(n in u||(i=this.method.apply(this.obj,s)),t.originalRetVal=i,t.currentRetVal=i,o)if(o.hasOwnProperty(n)){if((r=o[n].apply(this.obj,s))&&r.constructor==t.Halt)return r.retVal;r&&r.constructor==t.AlterReturn&&(i=r.newRetVal,t.currentRetVal=i)}return i},t.AlterArgs=function(e,t){this.msg=e,this.newArgs=t},t.AlterReturn=function(e,t){this.msg=e,this.newRetVal=t},t.Halt=function(e,t){this.msg=e,this.retVal=t},t.Prevent=function(e){this.msg=e},t.Error=t.Halt;var n="after",i=["broadcast","monitored","bubbles","context","contextFn","currentTarget","defaultFn","defaultTargetOnly","details","emitFacade","fireOnce","async","host","preventable","preventedFn","queuable","silent","stoppedFn","target","type",];e.CustomEvent=function(t,n){n=n||{},this.id=e.stamp(this),this.type=t,this.context=e,this.logSystem="yui:log"==t,this.silent=this.logSystem,this.subscribers={},this.afters={},this.preventable=!0,this.bubbles=!0,this.signature=9,this.subCount=0,this.afterCount=0,this.applyConfig(n,!0)},e.CustomEvent.prototype={constructor:e.CustomEvent,hasSubs:function(e){var t=this.subCount,n=this.afterCount,i=this.sibling;return(i&&(t+=i.subCount,n+=i.afterCount),e)?"after"==e?n:t:t+n},monitor:function(t){this.monitored=!0;var n=this.id+"|"+this.type+"_"+t,i=e.Array(arguments,0,!0);return i[0]=n,this.host.on.apply(this.host,i)},getSubs:function(){var t=e.merge(this.subscribers),n=e.merge(this.afters),i=this.sibling;return i&&(e.mix(t,i.subscribers),e.mix(n,i.afters)),[t,n]},applyConfig:function(t,n){t&&e.mix(this,t,n,i)},_on:function(t,i,r,s){t||this.log("Invalid callback for CE: "+this.type);var a=new e.Subscriber(t,i,r,s);return this.fireOnce&&this.fired&&(this.async?setTimeout(e.bind(this._notify,this,a,this.firedWith),0):this._notify(a,this.firedWith)),s==n?(this.afters[a.id]=a,this.afterCount++):(this.subscribers[a.id]=a,this.subCount++),new e.EventHandle(this,a)},subscribe:function(t,n){var i=arguments.length>2?e.Array(arguments,2,!0):null;return this._on(t,n,i,!0)},on:function(t,n){var i=arguments.length>2?e.Array(arguments,2,!0):null;return this.host&&this.host._monitor("attach",this.type,{args:arguments}),this._on(t,n,i,!0)},after:function(t,i){var r=arguments.length>2?e.Array(arguments,2,!0):null;return this._on(t,i,r,n)},detach:function(t,n){if(t&&t.detach)return t.detach();var i,r,s=0,a=e.merge(this.subscribers,this.afters);for(i in a)a.hasOwnProperty(i)&&(r=a[i])&&(!t||t===r.fn)&&(this._delete(r),s++);return s},unsubscribe:function(){return this.detach.apply(this,arguments)},_notify:function(e,t,n){var i;return this.log(this.type+"->sub: "+e.id),!1!==(i=e.notify(t,this))&&!(this.stopped>1)||(this.log(this.type+" cancelled by subscriber"),!1)},log:function(e,t){this.silent},fire:function(){if(this.fireOnce&&this.fired)return this.log("fireOnce event: "+this.type+" already fired"),!0;var t=e.Array(arguments,0,!0);return(this.fired=!0,this.firedWith=t,this.emitFacade)?this.fireComplex(t):this.fireSimple(t)},fireSimple:function(e){if(this.stopped=0,this.prevented=0,this.hasSubs()){var t=this.getSubs();this._procSubs(t[0],e),this._procSubs(t[1],e)}return this._broadcast(e),!this.stopped},fireComplex:function(e){return e[0]=e[0]||{},this.fireSimple(e)},_procSubs:function(e,t,n){var i,r;for(r in e)if(e.hasOwnProperty(r)&&(i=e[r])&&i.fn&&(!1===this._notify(i,t,n)&&(this.stopped=2),2==this.stopped))return!1;return!0},_broadcast:function(t){if(!this.stopped&&this.broadcast){var n=e.Array(t);n.unshift(this.type),this.host!==e&&e.fire.apply(e,n),2==this.broadcast&&e.Global.fire.apply(e.Global,n)}},unsubscribeAll:function(){return this.detachAll.apply(this,arguments)},detachAll:function(){return this.detach()},_delete:function(e){e&&(this.subscribers[e.id]&&(delete this.subscribers[e.id],this.subCount--),this.afters[e.id]&&(delete this.afters[e.id],this.afterCount--)),this.host&&this.host._monitor("detach",this.type,{ce:this,sub:e}),e&&(e.deleted=!0)}},e.Subscriber=function(t,n,i){this.fn=t,this.context=n,this.id=e.stamp(this),this.args=i},e.Subscriber.prototype={constructor:e.Subscriber,_notify:function(e,t,n){if(this.deleted&&!this.postponed){if(!this.postponed)return delete this.postponed,null;delete this.fn,delete this.context}var i,r=this.args;switch(n.signature){case 0:i=this.fn.call(e,n.type,t,e);break;case 1:i=this.fn.call(e,t[0]||null,e);break;default:r||t?(t=t||[],r=r?t.concat(r):t,i=this.fn.apply(e,r)):i=this.fn.call(e)}return this.once&&n._delete(this),i},notify:function(t,n){var i=this.context,r=!0;if(i||(i=n.contextFn?n.contextFn():n.context),e.config.throwFail)r=this._notify(i,t,n);else try{r=this._notify(i,t,n)}catch(s){e.error(this+" failed: "+s.message,s)}return r},contains:function(e,t){return t?this.fn==e&&this.context==t:this.fn==e}},e.EventHandle=function(e,t){this.evt=e,this.sub=t},e.EventHandle.prototype={batch:function(t,n){t.call(n||this,this),e.Lang.isArray(this.evt)&&e.Array.each(this.evt,function(e){e.batch.call(n||e,t)})},detach:function(){var t,n=this.evt,i=0;if(n){if(e.Lang.isArray(n))for(t=0;t<n.length;t++)i+=n[t].detach();else n._delete(this.sub),i=1}return i},monitor:function(e){return this.evt.monitor.apply(this.evt,arguments)}};var r=e.Lang,s="~AFTER~",a=e.Array,o=e.cached(function(e){return e.replace(/(.*)(:)(.*)/,"*$2$3")}),u=e.cached(function(e,t){return!t||!r.isString(e)||e.indexOf(":")>-1?e:t+":"+e}),l=e.cached(function(e,t){var n,i,a,o=e;return r.isString(o)?((a=o.indexOf(s))>-1&&(i=!0,o=o.substr(s.length)),(a=o.indexOf("|"))>-1&&(n=o.substr(0,a),"*"==(o=o.substr(a+1))&&(o=null)),[n,t?u(o,t):o,i,o]):o}),c=function(t){var n=r.isObject(t)?t:{};this._yuievt=this._yuievt||{id:e.guid(),events:{},targets:{},config:n,chain:"chain"in n?n.chain:e.config.chain,bubbling:!1,defaults:{context:n.context||this,host:this,emitFacade:n.emitFacade,fireOnce:n.fireOnce,queuable:n.queuable,monitored:n.monitored,broadcast:n.broadcast,defaultTargetOnly:n.defaultTargetOnly,bubbles:!("bubbles"in n)||n.bubbles}}};c.prototype={constructor:c,once:function(){var e=this.on.apply(this,arguments);return e.batch(function(e){e.sub&&(e.sub.once=!0)}),e},onceAfter:function(){var e=this.after.apply(this,arguments);return e.batch(function(e){e.sub&&(e.sub.once=!0)}),e},parseType:function(e,t){return l(e,t||this._yuievt.config.prefix)},on:function(t,n,i){var o,u,c,d,h,f,p,g,m,v,y,b,$,_=l(t,this._yuievt.config.prefix),E=e.Env.evt.handles,A=e.Node;return(this._monitor("attach",_[1],{args:arguments,category:_[0],after:_[2]}),r.isObject(t))?r.isFunction(t)?e.Do.before.apply(e.Do,arguments):(o=n,u=i,c=a(arguments,0,!0),d=[],r.isArray(t)&&($=!0),g=t._after,delete t._after,e.each(t,function(e,t){r.isObject(e)&&(o=e.fn||(r.isFunction(e)?e:o),u=e.context||u);var n=g?s:"";c[0]=n+($?e:t),c[1]=o,c[2]=u,d.push(this.on.apply(this,c))},this),this._yuievt.chain?this:new e.EventHandle(d)):(f=_[0],g=_[2],v=_[3],A&&e.instanceOf(this,A)&&v in A.DOM_EVENTS)?(c=a(arguments,0,!0),c.splice(2,0,A.getDOMNode(this)),e.on.apply(e,c)):(t=_[1],e.instanceOf(this,YUI)&&(m=e.Env.evt.plugins[t],c=a(arguments,0,!0),c[0]=v,A&&(y=c[2],e.instanceOf(y,e.NodeList)?y=e.NodeList.getDOMNodes(y):e.instanceOf(y,A)&&(y=A.getDOMNode(y)),(b=v in A.DOM_EVENTS)&&(c[2]=y)),m?p=m.on.apply(e,c):(!t||b)&&(p=e.Event._attach(c))),p||(p=(h=this._yuievt.events[t]||this.publish(t))._on(n,i,arguments.length>3?a(arguments,3,!0):null,!g||"after")),f&&(E[f]=E[f]||{},E[f][t]=E[f][t]||[],E[f][t].push(p)),this._yuievt.chain?this:p)},subscribe:function(){return this.on.apply(this,arguments)},detach:function(t,n,i){var s,o=this._yuievt.events,u=e.Node,c=u&&e.instanceOf(this,u);if(!t&&this!==e){for(s in o)o.hasOwnProperty(s)&&o[s].detach(n,i);return c&&e.Event.purgeElement(u.getDOMNode(this)),this}var d,h,f,p,g,m=l(t,this._yuievt.config.prefix),v=r.isArray(m)?m[0]:null,y=m?m[3]:null,b=e.Env.evt.handles,$=function(e,t,n){var i,r,s=e[t];if(s)for(r=s.length-1;r>=0;--r)((i=s[r].evt).host===n||i.el===n)&&s[r].detach()};if(v){if(f=b[v],t=m[1],h=c?e.Node.getDOMNode(this):this,f){if(t)$(f,t,h);else for(s in f)f.hasOwnProperty(s)&&$(f,s,h);return this}}else{if(r.isObject(t)&&t.detach)return t.detach(),this;if(c&&(!y||y in u.DOM_EVENTS))return p=a(arguments,0,!0),p[2]=u.getDOMNode(this),e.detach.apply(e,p),this}if(d=e.Env.evt.plugins[y],e.instanceOf(this,YUI)){if(p=a(arguments,0,!0),d&&d.detach)return d.detach.apply(e,p),this;if(!t||!d&&u&&t in u.DOM_EVENTS)return p[0]=t,e.Event.detach.apply(e.Event,p),this}return(g=o[m[1]])&&g.detach(n,i),this},unsubscribe:function(){return this.detach.apply(this,arguments)},detachAll:function(e){return this.detach(e)},unsubscribeAll:function(){return this.detachAll.apply(this,arguments)},publish:function(t,n){var i,s,a,o,l=this._yuievt,c=l.config.prefix;return r.isObject(t)?(a={},e.each(t,function(e,t){a[t]=this.publish(t,e||n)},this),a):(t=c?u(t,c):t,this._monitor("publish",t,{args:arguments}),(s=(i=l.events)[t])?n&&s.applyConfig(n,!0):(o=l.defaults,s=new e.CustomEvent(t,n?e.merge(o,n):o),i[t]=s),i[t])},_monitor:function(e,t,n){var i,r=this.getEvent(t);(this._yuievt.config.monitored&&(!r||r.monitored)||r&&r.monitored)&&(i=t+"_"+e,n.monitored=e,this.fire.call(this,i,n))},fire:function(e){var t,n,i,s=r.isString(e),o=s?e:e&&e.type,l=this._yuievt.config.prefix,c=s?a(arguments,1,!0):arguments;if(o=l?u(o,l):o,this._monitor("fire",o,{args:c}),t=this.getEvent(o,!0),(i=this.getSibling(o,t))&&!t&&(t=this.publish(o)),t)t.sibling=i,n=t.fire.apply(t,c);else{if(this._yuievt.hasTargets)return this.bubble({type:o},c,this);n=!0}return this._yuievt.chain?this:n},getSibling:function(e,t){var n;return e.indexOf(":")>-1&&(e=o(e),(n=this.getEvent(e,!0))&&(n.applyConfig(t),n.bubbles=!1,n.broadcast=0)),n},getEvent:function(e,t){var n,i;return t||(e=(n=this._yuievt.config.prefix)?u(e,n):e),(i=this._yuievt.events)[e]||null},after:function(t,n){var i=a(arguments,0,!0);switch(r.type(t)){case"function":return e.Do.after.apply(e.Do,arguments);case"array":case"object":i[0]._after=!0;break;default:i[0]=s+t}return this.on.apply(this,i)},before:function(){return this.on.apply(this,arguments)}},e.EventTarget=c,e.mix(e,c.prototype),c.call(e,{bubbles:!1}),YUI.Env.globalEvents=YUI.Env.globalEvents||new c,e.Global=YUI.Env.globalEvents},"3.18.1",{requires:["oop"]}),YUI.add("event-custom-complex",function(e){var t,n,i={},r=e.CustomEvent.prototype,s=e.EventTarget.prototype;e.EventFacade=function(e,t){e=e||i,this._event=e,this.details=e.details,this.type=e.type,this._type=e.type,this.target=e.target,this.currentTarget=t,this.relatedTarget=e.relatedTarget},e.extend(e.EventFacade,Object,{stopPropagation:function(){this._event.stopPropagation(),this.stopped=1},stopImmediatePropagation:function(){this._event.stopImmediatePropagation(),this.stopped=2},preventDefault:function(){this._event.preventDefault(),this.prevented=1},halt:function(e){this._event.halt(e),this.prevented=1,this.stopped=e?2:1}}),r.fireComplex=function(t){var n,i,r,s,a,o,u,l,c,d,h,f=this,p=f.host||f;if(f.stack&&f.queuable&&f.type!=f.stack.next.type)return f.log("queue "+f.type),f.stack.queue.push([f,t]),!0;if(n=f.stack||{id:f.id,next:f,silent:f.silent,stopped:0,prevented:0,bubbling:null,type:f.type,afterQueue:new e.Queue,defaultTargetOnly:f.defaultTargetOnly,queue:[]},l=f.getSubs(),f.stopped=f.type!==n.type?0:n.stopped,f.prevented=f.type!==n.type?0:n.prevented,f.target=f.target||p,u=new e.EventTarget({fireOnce:!0,context:p}),f.events=u,f.stoppedFn&&u.on("stopped",f.stoppedFn),f.currentTarget=p,f.details=t.slice(),f.log("Firing "+f.type),f._facade=null,i=f._getFacade(t),e.Lang.isObject(t[0])?t[0]=i:t.unshift(i),l[0]&&f._procSubs(l[0],t,i),f.bubbles&&p.bubble&&!f.stopped&&(h=n.bubbling,n.bubbling=f.type,n.type!=f.type&&(n.stopped=0,n.prevented=0),o=p.bubble(f,t,null,n),f.stopped=Math.max(f.stopped,n.stopped),f.prevented=Math.max(f.prevented,n.prevented),n.bubbling=h),f.prevented?f.preventedFn&&f.preventedFn.apply(p,t):!f.defaultFn||(f.defaultTargetOnly||n.defaultTargetOnly)&&p!==i.target||f.defaultFn.apply(p,t),f._broadcast(t),l[1]&&!f.prevented&&f.stopped<2){if(n.id===f.id||f.type!=p._yuievt.bubbling)for(f._procSubs(l[1],t,i);d=n.afterQueue.last();)d();else c=l[1],n.execDefaultCnt&&(c=e.merge(c),e.each(c,function(e){e.postponed=!0})),n.afterQueue.add(function(){f._procSubs(c,t,i)})}if(f.target=null,n.id===f.id){for(s=n.queue;s.length;)a=(r=s.pop())[0],n.next=a,a.fire.apply(a,r[1]);f.stack=null}return o=!f.stopped,f.type!=p._yuievt.bubbling&&(n.stopped=0,n.prevented=0,f.stopped=0,f.prevented=0),o},r._getFacade=function(){var t,i,r=this._facade,s=this.details;return r||(r=new e.EventFacade(this,this.currentTarget)),t=s&&s[0],e.Lang.isObject(t,!0)&&(i={},e.mix(i,r,!0,n),e.mix(r,t,!0),e.mix(r,i,!0,n),r.type=t.type||r.type),r.details=this.details,r.target=this.originalTarget||this.target,r.currentTarget=this.currentTarget,r.stopped=0,r.prevented=0,this._facade=r,this._facade},r.stopPropagation=function(){this.stopped=1,this.stack&&(this.stack.stopped=1),this.events.fire("stopped",this)},r.stopImmediatePropagation=function(){this.stopped=2,this.stack&&(this.stack.stopped=2),this.events.fire("stopped",this)},r.preventDefault=function(){this.preventable&&(this.prevented=1,this.stack&&(this.stack.prevented=1))},r.halt=function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()},s.addTarget=function(t){this._yuievt.targets[e.stamp(t)]=t,this._yuievt.hasTargets=!0},s.getTargets=function(){return e.Object.values(this._yuievt.targets)},s.removeTarget=function(t){delete this._yuievt.targets[e.stamp(t)]},s.bubble=function(e,t,n,i){var r,s,a,o,u,l,c=this._yuievt.targets,d=!0,h=e&&e.type,f=n||e&&e.target||this;if(!e||!e.stopped&&c){for(a in c)if(c.hasOwnProperty(a)){if(s=(r=c[a]).getEvent(h,!0),(u=r.getSibling(h,s))&&!s&&(s=r.publish(h)),l=r._yuievt.bubbling,r._yuievt.bubbling=h,s){if(s.sibling=u,s.target=f,s.originalTarget=f,s.currentTarget=r,o=s.broadcast,s.broadcast=!1,s.emitFacade=!0,s.stack=i,d=d&&s.fire.apply(s,t||e.details||[]),s.broadcast=o,s.originalTarget=null,s.stopped)break}else r._yuievt.hasTargets&&r.bubble(e,t,f,i);r._yuievt.bubbling=l}}return d},t=new e.EventFacade,n=e.Object.keys(t)},"3.18.1",{requires:["event-custom-base"]}),YUI.add("attribute-events",function(e){var t=e.EventTarget,n="broadcast",i="published";function r(){this._ATTR_E_FACADE={},t.call(this,{emitFacade:!0})}r._ATTR_CFG=[n],r.prototype={set:function(e,t,n){return this._setAttr(e,t,n)},_set:function(e,t,n){return this._setAttr(e,t,n,!0)},setAttrs:function(e,t){return this._setAttrs(e,t)},_fireAttrChange:function(t,r,s,a,o){var u,l,c,d=t+"Change",h=this._state;h.get(t,i)||(c={queuable:!1,defaultTargetOnly:!0,defaultFn:this._defAttrChangeFn,silent:!0},void 0!==(l=h.get(t,n))&&(c.broadcast=l),this.publish(d,c),h.add(t,i,!0)),(u=o?e.merge(o):this._ATTR_E_FACADE).attrName=t,u.subAttrName=r,u.prevVal=s,u.newVal=a,this.fire(d,u)},_defAttrChangeFn:function(e){this._setAttrVal(e.attrName,e.subAttrName,e.prevVal,e.newVal)?e.newVal=this.get(e.attrName):e.stopImmediatePropagation()}},e.mix(r,t,!1,null,1),e.AttributeEvents=r},"3.18.1",{requires:["event-custom"]}),YUI.add("attribute-extras",function(e){var t={readOnly:1,writeOnce:1,getter:1,broadcast:1};function n(){}n.prototype={modifyAttr:function(e,n){var i,r;if(this.attrAdded(e))for(i in this._isLazyAttr(e)&&this._addLazyAttr(e),r=this._state,n)t[i]&&n.hasOwnProperty(i)&&(r.add(e,i,n[i]),"broadcast"===i&&r.remove(e,"published"))},removeAttr:function(e){this._state.removeAll(e)},reset:function(t){var n=this;return t?(n._isLazyAttr(t)&&n._addLazyAttr(t),n.set(t,n._state.get(t,"initValue"))):e.each(n._state.data,function(e,t){n.reset(t)}),n},_getAttrCfg:function(t){var n,i=this._state;return t?n=i.getAll(t)||{}:(n={},e.each(i.data,function(e,t){n[t]=i.getAll(t)})),n}},e.AttributeExtras=n},"3.18.1"),YUI.add("attribute-base",function(e){var t=function(){this._ATTR_E_FACADE=null,this._yuievt=null,e.AttributeCore.apply(this,arguments),e.AttributeEvents.apply(this,arguments),e.AttributeExtras.apply(this,arguments)};e.mix(t,e.AttributeCore,!1,null,1),e.mix(t,e.AttributeExtras,!1,null,1),e.mix(t,e.AttributeEvents,!0,null,1),t.INVALID_VALUE=e.AttributeCore.INVALID_VALUE,t._ATTR_CFG=e.AttributeCore._ATTR_CFG.concat(e.AttributeEvents._ATTR_CFG),e.Attribute=t},"3.18.1",{requires:["attribute-core","attribute-events","attribute-extras"]}),YUI.add("attribute-complex",function(e){var t=e.Object;e.Attribute.Complex=function(){},e.Attribute.Complex.prototype={_normAttrVals:function(e){var t,n,i,r,s={},a={};if(!e)return null;for(r in e)e.hasOwnProperty(r)&&(-1!==r.indexOf(".")?(i=a[n=(t=r.split(".")).shift()]=a[n]||[])[i.length]={path:t,value:e[r]}:s[r]=e[r]);return{simple:s,complex:a}},_getAttrInitVal:function(e,n,i){var r,s,a,o,u,l,c,d=n.value,h=n.valueFn;if(h&&(h.call||(h=this[h]),h&&(d=h.call(this,e))),!n.readOnly&&i&&((r=i.simple)&&r.hasOwnProperty(e)&&(d=r[e]),(s=i.complex)&&s.hasOwnProperty(e)))for(a=0,o=(c=s[e]).length;a<o;++a)u=c[a].path,l=c[a].value,t.setValue(d,u,l);return d}},e.mix(e.Attribute,e.Attribute.Complex,!0,null,1),e.AttributeComplex=e.Attribute.Complex},"3.18.1",{requires:["attribute-base"]}),YUI.add("base-base",function(e){var t=e.Lang,n="destroy",i="init",r=e.BaseCore,s=e.AttributeCore,a=e.Attribute;function o(){r.apply(this,arguments)}o._ATTR_CFG=a._ATTR_CFG.concat("cloneDefaultValue"),o._ATTR_CFG_HASH=e.Array.hash(o._ATTR_CFG),o._NON_ATTRS_CFG=r._NON_ATTRS_CFG.concat(["on","after","bubbleTargets"]),o.NAME="base",o.ATTRS=s.prototype._protectAttrs(r.ATTRS),o.prototype={_initBase:function(t){this._eventPrefix=this.constructor.EVENT_PREFIX||this.constructor.NAME,e.BaseCore.prototype._initBase.call(this,t)},_initAttribute:function(e){a.call(this),this._yuievt.config.prefix=this._eventPrefix},_attrCfgHash:function(){return o._ATTR_CFG_HASH},init:function(e){return this.publish(i,{queuable:!1,fireOnce:!0,defaultTargetOnly:!0,defaultFn:this._defInitFn}),this._preInitEventCfg(e),this.fire(i,{cfg:e}),this},_preInitEventCfg:function(e){e&&(e.on&&this.on(e.on),e.after&&this.after(e.after));var n,i,r,s=e&&"bubbleTargets"in e;if(s||"_bubbleTargets"in this){if(r=s?e&&e.bubbleTargets:this._bubbleTargets,t.isArray(r))for(n=0,i=r.length;n<i;n++)this.addTarget(r[n]);else r&&this.addTarget(r)}},destroy:function(){return this.publish(n,{queuable:!1,fireOnce:!0,defaultTargetOnly:!0,defaultFn:this._defDestroyFn}),this.fire(n),this.detachAll(),this},_defInitFn:function(e){this._baseInit(e.cfg)},_defDestroyFn:function(e){this._baseDestroy(e.cfg)}},e.mix(o,a,!1,null,1),e.mix(o,r,!1,null,1),o.prototype.constructor=o,e.Base=o},"3.18.1",{requires:["base-core","attribute-base"]}),YUI.add("dom-core",function(e){var t="nodeType",n="ownerDocument",i="tagName",r="contains",s="compareDocumentPosition",a=[],o={byId:function(e,t){return o.allById(e,t)[0]||null},getId:function(e){var t;return!e.id||e.id.tagName||e.id.item?e.attributes&&e.attributes.id&&(t=e.attributes.id.value):t=e.id,t},setId:function(e,t){e.setAttribute?e.setAttribute("id",t):e.id=t},ancestor:function(e,t,n,i){var r=null;return n&&(r=!t||t(e)?e:null),r||o.elementByAxis(e,"parentNode",t,null,i)},ancestors:function(e,t,n,i){for(var r=e,s=[];(r=o.ancestor(r,t,n,i))&&(n=!1,!(r&&(s.unshift(r),i&&i(r)))););return s},elementByAxis:function(e,t,n,r,s){for(;e&&(e=e[t]);){if((r||e[i])&&(!n||n(e)))return e;if(s&&s(e))break}return null},contains:function(n,i){var a=!1;return i&&n&&i[t]&&n[t]?n[r]?a=e.UA.opera||1===i[t]?n[r](i):o._bruteContains(n,i):n[s]&&(n===i||16&n[s](i))&&(a=!0):a=!1,a},inDoc:function(e,t){var i,r=!1;return e&&e.nodeType&&(t||(t=e[n]),r=(i=t.documentElement)&&i.contains&&e.tagName?i.contains(e):o.contains(i,e)),r},allById:function(t,n){n=n||e.config.doc;var i,r,s=[],u=[];if(n.querySelectorAll)u=n.querySelectorAll('[id="'+t+'"]');else if(n.all){if((s=n.all(t))&&(s.nodeName&&(s.id===t?(u.push(s),s=a):s=[s]),s.length))for(i=0;r=s[i++];)(r.id===t||r.attributes&&r.attributes.id&&r.attributes.id.value===t)&&u.push(r)}else u=[o._getDoc(n).getElementById(t)];return u},isWindow:function(e){return!!(e&&e.alert&&e.document)},_removeChildNodes:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},siblings:function(e,t){for(var n=[],r=e;r=r.previousSibling;)r[i]&&(!t||t(r))&&n.unshift(r);for(r=e;r=r.nextSibling;)r[i]&&(!t||t(r))&&n.push(r);return n},_bruteContains:function(e,t){for(;t;){if(e===t)return!0;t=t.parentNode}return!1},_getRegExp:function(e,t){return t=t||"",o._regexCache=o._regexCache||{},o._regexCache[e+t]||(o._regexCache[e+t]=RegExp(e,t)),o._regexCache[e+t]},_getDoc:function(i){var r=e.config.doc;return i&&(r=9===i[t]?i:i[n]||i.document||e.config.doc),r},_getWin:function(t){var n=o._getDoc(t);return n.defaultView||n.parentWindow||e.config.win},_batch:function(e,t,n,i,r,s){t="string"==typeof t?o[t]:t;var a,u,l,c=0;if(t&&e)for(;u=e[c++];)void 0!==(a=a=t.call(o,u,n,i,r,s))&&(l||(l=[]),l.push(a));return void 0!==l?l:e},generateID:function(t){var n=t.id;return n||(n=e.stamp(t),t.id=n),n}};e.DOM=o},"3.18.1",{requires:["oop","features"]}),YUI.add("dom-base",function(e){var t,n,i,r=e.config.doc.documentElement,s=e.DOM,a="tagName",o=e.Features.add,u=e.Features.test;e.mix(s,{getText:void 0!==r.textContent?function(e){var t="";return e&&(t=e.textContent),t||""}:function(e){var t="";return e&&(t=e.innerText||e.nodeValue),t||""},setText:void 0!==r.textContent?function(e,t){e&&(e.textContent=t)}:function(e,t){"innerText"in e?e.innerText=t:"nodeValue"in e&&(e.nodeValue=t)},CUSTOM_ATTRIBUTES:r.hasAttribute?{htmlFor:"for",className:"class"}:{for:"htmlFor",class:"className"},setAttribute:function(e,t,n,i){e&&t&&e.setAttribute&&(t=s.CUSTOM_ATTRIBUTES[t]||t,e.setAttribute(t,n,i))},getAttribute:function(e,t,n){n=void 0!==n?n:2;var i="";return e&&t&&e.getAttribute&&(t=s.CUSTOM_ATTRIBUTES[t]||t,null===(i=e.getAttribute(t,n))&&(i="")),i},VALUE_SETTERS:{},VALUE_GETTERS:{},getValue:function(e){var t,n="";return e&&e[a]&&(n=(t=s.VALUE_GETTERS[e[a].toLowerCase()])?t(e):e.value),""===n&&(n=""),"string"==typeof n?n:""},setValue:function(e,t){var n;e&&e[a]&&((n=s.VALUE_SETTERS[e[a].toLowerCase()])?n(e,t):e.value=t)},creators:{}}),o("value-set","select",{test:function(){var t=e.config.doc.createElement("select");return t.innerHTML="<option>1</option><option>2</option>",t.value="2",t.value&&"2"===t.value}}),u("value-set","select")||(s.VALUE_SETTERS.select=function(e,t){for(var n,i=0,r=e.getElementsByTagName("option");n=r[i++];)if(s.getValue(n)===t){n.selected=!0;break}}),e.mix(s.VALUE_GETTERS,{button:function(e){return e.attributes&&e.attributes.value?e.attributes.value.value:""}}),e.mix(s.VALUE_SETTERS,{button:function(e,t){var n=e.attributes.value;n||(n=e.ownerDocument.createAttribute("value"),e.setAttributeNode(n)),n.value=t}}),e.mix(s.VALUE_GETTERS,{option:function(e){var t=e.attributes;return t.value&&t.value.specified?e.value:e.text},select:function(e){var t=e.value,n=e.options;return n&&n.length&&(e.multiple||e.selectedIndex>-1&&(t=s.getValue(n[e.selectedIndex]))),t}}),e.mix(e.DOM,{hasClass:function(t,n){return e.DOM._getRegExp("(?:^|\\s+)"+n+"(?:\\s+|$)").test(t.className)},addClass:function(t,n){e.DOM.hasClass(t,n)||(t.className=e.Lang.trim([t.className,n].join(" ")))},removeClass:function(t,r){r&&n(t,r)&&(t.className=e.Lang.trim(t.className.replace(e.DOM._getRegExp("(?:^|\\s+)"+r+"(?:\\s+|$)")," ")),n(t,r)&&i(t,r))},replaceClass:function(e,n,r){i(e,n),t(e,r)},toggleClass:function(e,r,s){(void 0!==s?s:!n(e,r))?t(e,r):i(e,r)}}),n=e.DOM.hasClass,i=e.DOM.removeClass,t=e.DOM.addClass;var l=/<([a-z]+)/i,s=e.DOM,o=e.Features.add,u=e.Features.test,c={},d=function(t,n){var i=e.config.doc.createElement("div"),r=!0;return i.innerHTML=t,i.firstChild&&i.firstChild.tagName===n.toUpperCase()||(r=!1),r},h=/(?:\/(?:thead|tfoot|tbody|caption|col|colgroup)>)+\s*<tbody/;e.mix(e.DOM,{_fragClones:{},_create:function(e,t,n){n=n||"div";var i=s._fragClones[n];return(i=i?i.cloneNode(!1):s._fragClones[n]=t.createElement(n)).innerHTML=e,i},_children:function(e,t){var n,i,r,s=0,a=e.children;if(a&&a.tags&&(t?a=e.children.tags(t):i=a.tags("!").length),!a||!a.tags&&t||i)for(n=a||e.childNodes,a=[];r=n[s++];)1!==r.nodeType||t&&t!==r.tagName||a.push(r);return a||[]},create:function(t,n){"string"==typeof t&&(t=e.Lang.trim(t)),n=n||e.config.doc;var i,r,a,o=l.exec(t),u=s._create,d=null;return void 0!=t&&(o&&o[1]&&("function"==typeof(i=c[o[1].toLowerCase()])?u=i:r=i),1===(a=u(t,n,r).childNodes).length?d=a[0].parentNode.removeChild(a[0]):a[0]&&"yui3-big-dummy"===a[0].className?2===a.length?d=a[0].nextSibling:(a[0].parentNode.removeChild(a[0]),d=s._nl2frag(a,n)):d=s._nl2frag(a,n)),d},_nl2frag:function(t,n){var i,r,s=null;if(t&&(t.push||t.item)&&t[0])for(s=(n=n||t[0].ownerDocument).createDocumentFragment(),t.item&&(t=e.Array(t,0,!0)),i=0,r=t.length;i<r;i++)s.appendChild(t[i]);return s},addHTML:function(t,n,i){var r,a,o=t.parentNode,u=0,l=n;if(void 0!=n){if(n.nodeType)a=n;else if("string"==typeof n||"number"==typeof n)l=a=s.create(n);else if(n[0]&&n[0].nodeType)for(a=e.config.doc.createDocumentFragment();r=n[u++];)a.appendChild(r)}if(i){if(a&&i.parentNode)i.parentNode.insertBefore(a,i);else switch(i){case"replace":for(;t.firstChild;)t.removeChild(t.firstChild);a&&t.appendChild(a);break;case"before":a&&o.insertBefore(a,t);break;case"after":a&&(t.nextSibling?o.insertBefore(a,t.nextSibling):o.appendChild(a));break;default:a&&t.appendChild(a)}}else a&&t.appendChild(a);return l},wrap:function(t,n){var i=n&&n.nodeType?n:e.DOM.create(n),r=i.getElementsByTagName("*");r.length&&(i=r[r.length-1]),t.parentNode&&t.parentNode.replaceChild(i,t),i.appendChild(t)},unwrap:function(e){var t,n=e.parentNode,i=n.lastChild,r=e;if(n){if(t=n.parentNode){for(e=n.firstChild;e!==i;)r=e.nextSibling,t.insertBefore(e,n),e=r;t.replaceChild(i,n)}else n.removeChild(e)}}}),o("innerhtml","table",{test:function(){var t=e.config.doc.createElement("table");try{t.innerHTML="<tbody></tbody>"}catch(n){return!1}return t.firstChild&&"TBODY"===t.firstChild.nodeName}}),o("innerhtml-div","tr",{test:function(){return d("<tr></tr>","tr")}}),o("innerhtml-div","script",{test:function(){return d("<script></script>","script")}}),u("innerhtml","table")||(c.tbody=function(t,n){var i=s.create("<table>"+t+"</table>",n),r=e.DOM._children(i,"tbody")[0];return i.children.length>1&&r&&!h.test(t)&&r.parentNode.removeChild(r),i}),u("innerhtml-div","script")||(c.script=function(e,t){var n=t.createElement("div");return n.innerHTML="-"+e,n.removeChild(n.firstChild),n},c.link=c.style=c.script),u("innerhtml-div","tr")||(e.mix(c,{option:function(e,t){return s.create('<select><option class="yui3-big-dummy" selected></option>'+e+"</select>",t)},tr:function(e,t){return s.create("<tbody>"+e+"</tbody>",t)},td:function(e,t){return s.create("<tr>"+e+"</tr>",t)},col:function(e,t){return s.create("<colgroup>"+e+"</colgroup>",t)},tbody:"table"}),e.mix(c,{legend:"fieldset",th:c.td,thead:c.tbody,tfoot:c.tbody,caption:c.tbody,colgroup:c.tbody,optgroup:c.option})),s.creators=c,e.mix(e.DOM,{setWidth:function(t,n){e.DOM._setSize(t,"width",n)},setHeight:function(t,n){e.DOM._setSize(t,"height",n)},_setSize:function(e,t,n){n=n>0?n:0;var i=0;e.style[t]=n+"px",(i="height"===t?e.offsetHeight:e.offsetWidth)>n&&((n-=i-n)<0&&(n=0),e.style[t]=n+"px")}})},"3.18.1",{requires:["dom-core"]}),YUI.add("dom-style",function(e){var t,n,i,r,s,a,o,u,l,c,d,h,f,p,g,m,v,y,b;n="documentElement",i="defaultView",r="ownerDocument",s="style",a="float",o="cssFloat",u="styleFloat",l="getComputedStyle",c="getBoundingClientRect",d=((t=e).config.win,t.config.doc),h=void 0,f=t.DOM,p="transform",g=/color$/i,m=/width|height|top|left|right|bottom|margin|padding/i,t.Array.each(["WebkitTransform","MozTransform","OTransform"],function(e){e in d[n].style&&(p=e)}),t.mix(f,{DEFAULT_UNIT:"px",CUSTOM_STYLES:{},setStyle:function(e,t,n,i){i=i||e.style;var r=f.CUSTOM_STYLES;if(i){if(null===n||""===n?n="":!isNaN(new Number(n))&&m.test(t)&&(n+=f.DEFAULT_UNIT),t in r){if(r[t].set){r[t].set(e,n,i);return}"string"==typeof r[t]&&(t=r[t])}else""===t&&(t="cssText",n="");i[t]=n}},getStyle:function(e,t,n){n=n||e.style;var i=f.CUSTOM_STYLES,r="";if(n){if(t in i){if(i[t].get)return i[t].get(e,t,n);"string"==typeof i[t]&&(t=i[t])}""===(r=n[t])&&(r=f[l](e,t))}return r},setStyles:function(e,n){var i=e.style;t.each(n,function(t,n){f.setStyle(e,n,t,i)},f)},getComputedStyle:function(e,t){var n,a="",o=e[r];return e[s]&&o[i]&&o[i][l]&&(n=o[i][l](e,null))&&(a=n[t]),a}}),d[n][s][o]!==h?f.CUSTOM_STYLES[a]=o:d[n][s][u]!==h&&(f.CUSTOM_STYLES[a]=u),t.UA.opera&&(f[l]=function(e,n){var s=e[r][i][l](e,"")[n];return g.test(n)&&(s=t.Color.toRGB(s)),s}),t.UA.webkit&&(f[l]=function(e,t){var n=e[r][i][l](e,"")[t];return"rgba(0, 0, 0, 0)"===n&&(n="transparent"),n}),t.DOM._getAttrOffset=function(e,n){var i,r,s,a=t.DOM[l](e,n),o=e.offsetParent;return"auto"===a&&("static"===(i=t.DOM.getStyle(e,"position"))||"relative"===i?a=0:o&&o[c]&&(r=o[c]()[n],s=e[c]()[n],a="left"===n||"top"===n?s-r:r-e[c]()[n])),a},t.DOM._getOffset=function(e){var t,n=null;return e&&(t=f.getStyle(e,"position"),isNaN((n=[parseInt(f[l](e,"left"),10),parseInt(f[l](e,"top"),10)])[0])&&(n[0]=parseInt(f.getStyle(e,"left"),10),isNaN(n[0])&&(n[0]="relative"===t?0:e.offsetLeft||0)),isNaN(n[1])&&(n[1]=parseInt(f.getStyle(e,"top"),10),isNaN(n[1])&&(n[1]="relative"===t?0:e.offsetTop||0))),n},f.CUSTOM_STYLES.transform={set:function(e,t,n){n[p]=t},get:function(e,t){return f[l](e,p)}},v=e,y=parseInt,b=RegExp,v.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(e){return v.Color.re_RGB.test(e)||(e=v.Color.toHex(e)),v.Color.re_hex.exec(e)&&(e="rgb("+[y(b.$1,16),y(b.$2,16),y(b.$3,16)].join(", ")+")"),e},toHex:function(e){if(e=v.Color.KEYWORDS[e]||e,v.Color.re_RGB.exec(e)){e=[Number(b.$1).toString(16),Number(b.$2).toString(16),Number(b.$3).toString(16)];for(var t=0;t<e.length;t++)e[t].length<2&&(e[t]="0"+e[t]);e=e.join("")}return e.length<6&&(e=e.replace(v.Color.re_hex3,"$1$1")),"transparent"!==e&&0>e.indexOf("#")&&(e="#"+e),e.toUpperCase()}}},"3.18.1",{requires:["dom-base"]}),YUI.add("selector-native",function(e){!function(e){e.namespace("Selector");var t="compareDocumentPosition",n="ownerDocument",i={_types:{esc:{token:"",re:/\\[:\[\]\(\)#\.\'\>+~"]/gi},attr:{token:"",re:/(\[[^\]]*\])/g},pseudo:{token:"",re:/(\([^\)]*\))/g}},useNative:!0,_escapeId:function(e){return e&&(e=e.replace(/([:\[\]\(\)#\.'<>+~"])/g,"\\$1")),e},_compare:"sourceIndex"in e.config.doc.documentElement?function(e,t){var n=e.sourceIndex,i=t.sourceIndex;return n===i?0:n>i?1:-1}:e.config.doc.documentElement[t]?function(e,n){return 4&e[t](n)?-1:1}:function(e,t){var i,r,s;return e&&t&&((i=e[n].createRange()).setStart(e,0),(r=t[n].createRange()).setStart(t,0),s=i.compareBoundaryPoints(1,r)),s},_sort:function(t){return t&&(t=e.Array(t,0,!0)).sort&&t.sort(i._compare),t},_deDupe:function(e){var t,n,i=[];for(t=0;n=e[t++];)n._found||(i[i.length]=n,n._found=!0);for(t=0;n=i[t++];)n._found=null,n.removeAttribute("_found");return i},query:function(t,n,r,s){n=n||e.config.doc;var a,o,u,l=[],c=e.Selector.useNative&&e.config.doc.querySelector&&!s,d=[[t,n]],h=c?e.Selector._nativeQuery:e.Selector._bruteQuery;if(t&&h){for(s||c&&!n.tagName||(d=i._splitQueries(t,n)),u=0;a=d[u++];)o=h(a[0],a[1],r),r||(o=e.Array(o,0,!0)),o&&(l=l.concat(o));d.length>1&&(l=i._sort(i._deDupe(l)))}return r?l[0]||null:l},_replaceSelector:function(t){var n,r,s=e.Selector._parse("esc",t);return t=e.Selector._replace("esc",t),r=e.Selector._parse("pseudo",t),t=i._replace("pseudo",t),n=e.Selector._parse("attr",t),t=e.Selector._replace("attr",t),{esc:s,attrs:n,pseudos:r,selector:t}},_restoreSelector:function(t){var n=t.selector;return n=e.Selector._restore("attr",n,t.attrs),n=e.Selector._restore("pseudo",n,t.pseudos),n=e.Selector._restore("esc",n,t.esc)},_replaceCommas:function(t){var n=e.Selector._replaceSelector(t),t=n.selector;return t&&(t=t.replace(/,/g,""),n.selector=t,t=e.Selector._restoreSelector(n)),t},_splitQueries:function(t,n){t.indexOf(",")>-1&&(t=e.Selector._replaceCommas(t));var i,r,s,a=t.split(""),o=[],u="";if(n)for(1===n.nodeType&&((i=e.Selector._escapeId(e.DOM.getId(n)))||(i=e.guid(),e.DOM.setId(n,i)),u='[id="'+i+'"] '),r=0,s=a.length;r<s;++r)o.push([t=u+a[r],n]);return o},_nativeQuery:function(t,n,i){if(e.UA.webkit&&t.indexOf(":checked")>-1&&e.Selector.pseudos&&e.Selector.pseudos.checked)return e.Selector.query(t,n,i,!0);try{return n["querySelector"+(i?"":"All")](t)}catch(r){return e.Selector.query(t,n,i,!0)}},filter:function(t,n){var i,r,s=[];if(t&&n)for(i=0;r=t[i++];)e.Selector.test(r,n)&&(s[s.length]=r);return s},test:function(t,i,r){var s,a,o,u,l,c,d,h,f,p=!1,g=!1;if(t&&t.tagName){if("function"==typeof i)p=i.call(t,t);else{for(s=i.split(","),r||e.DOM.inDoc(t)||((a=t.parentNode)?r=a:((l=t[n].createDocumentFragment()).appendChild(t),r=l,g=!0)),r=r||t[n],(c=e.Selector._escapeId(e.DOM.getId(t)))||(c=e.guid(),e.DOM.setId(t,c)),d=0;f=s[d++];){for(f+='[id="'+c+'"]',u=e.Selector.query(f,r),h=0;o=u[h++];)if(o===t){p=!0;break}if(p)break}g&&l.removeChild(t)}}return p},ancestor:function(t,n,i){return e.DOM.ancestor(t,function(t){return e.Selector.test(t,n)},i)},_parse:function(t,n){return n.match(e.Selector._types[t].re)},_replace:function(t,n){var i=e.Selector._types[t];return n.replace(i.re,i.token)},_restore:function(t,n,i){if(i){var r,s,a=e.Selector._types[t].token;for(r=0,s=i.length;r<s;++r)n=n.replace(a,i[r])}return n}};e.mix(e.Selector,i,!0)}(e)},"3.18.1",{requires:["dom-base"]}),YUI.add("selector",function(e){},"3.18.1",{requires:["selector-native"]}),YUI.add("node-core",function(e){var t="nodeName",n="nodeType",i="ownerDocument",r="_yuid",s=Array.prototype.slice,a=e.DOM,o=function(t){if(!this.getDOMNode)return new o(t);if("string"==typeof t&&!(t=o._fromString(t)))return null;var n=9!==t.nodeType?t.uniqueID:t[r];n&&o._instances[n]&&o._instances[n]._node!==t&&(t[r]=null),(n=n||e.stamp(t))||(n=e.guid()),this[r]=n,this._node=t,this._stateProxy=t,this._initPlugins&&this._initPlugins()},u=function(t){var n=null;return t&&(n="string"==typeof t?function(n){return e.Selector.test(n,t)}:function(n){return t(e.one(n))}),n};o.ATTRS={},o.DOM_EVENTS={},o._fromString=function(t){return t&&(t=0===t.indexOf("doc")?e.config.doc:0===t.indexOf("win")?e.config.win:e.Selector.query(t,null,!0)),t||null},o.NAME="node",o.re_aria=/^(?:role$|aria-)/,o.SHOW_TRANSITION="fadeIn",o.HIDE_TRANSITION="fadeOut",o._instances={},o.getDOMNode=function(e){return e?e.nodeType?e:e._node||null:null},o.scrubVal=function(t,i){return t?("object"==typeof t||"function"==typeof t)&&(n in t||a.isWindow(t)?t=e.one(t):(t.item&&!t._nodes||t[0]&&t[0][n])&&(t=e.all(t))):void 0===t?t=i:null===t&&(t=null),t},o.addMethod=function(e,t,n){e&&t&&"function"==typeof t&&(o.prototype[e]=function(){var e,n=s.call(arguments);return n[0]&&n[0]._node&&(n[0]=n[0]._node),n[1]&&n[1]._node&&(n[1]=n[1]._node),n.unshift(this._node),(e=t.apply(this,n))&&(e=o.scrubVal(e,this)),void 0!==e||(e=this),e})},o.importMethod=function(t,n,i){"string"==typeof n?(i=i||n,o.addMethod(i,t[n],t)):e.Array.each(n,function(e){o.importMethod(t,e)})},o.one=function(t){var n,i,s=null;if(t){if("string"==typeof t){if(!(t=o._fromString(t)))return null}else if(t.getDOMNode)return t;(t.nodeType||e.DOM.isWindow(t))&&(i=t.uniqueID&&9!==t.nodeType?t.uniqueID:t._yuid,n=(s=o._instances[i])?s._node:null,(!s||n&&t!==n)&&(s=new o(t),11!=t.nodeType&&(o._instances[s[r]]=s)))}return s},o.DEFAULT_SETTER=function(t,n){var i,r=this._stateProxy;return t.indexOf(".")>-1?(i=t,t=t.split("."),e.Object.setValue(r,t,n)):void 0!==r[t]&&(r[t]=n),n},o.DEFAULT_GETTER=function(t){var n,i=this._stateProxy;return t.indexOf&&t.indexOf(".")>-1?n=e.Object.getValue(i,t.split(".")):void 0!==i[t]&&(n=i[t]),n},e.mix(o.prototype,{DATA_PREFIX:"data-",toString:function(){var e,n,i,s=this[r]+": not bound to a node",a=this._node;return a&&(n=(e=a.attributes)&&e.id?a.getAttribute("id"):null,i=e&&e.className?a.getAttribute("className"):null,s=a[t],n&&(s+="#"+n),i&&(s+="."+i.replace(" ",".")),s+=" "+this[r]),s},get:function(e){var t;return(t=this._getAttr?this._getAttr(e):this._get(e))?t=o.scrubVal(t,this):null===t&&(t=null),t},_get:function(e){var t,n=o.ATTRS[e];return n&&n.getter?n.getter.call(this):o.re_aria.test(e)?this._node.getAttribute(e,2):o.DEFAULT_GETTER.apply(this,arguments)},set:function(e,t){var n=o.ATTRS[e];return this._setAttr?this._setAttr.apply(this,arguments):n&&n.setter?n.setter.call(this,t,e):o.re_aria.test(e)?this._node.setAttribute(e,t):o.DEFAULT_SETTER.apply(this,arguments),this},setAttrs:function(t){return this._setAttrs?this._setAttrs(t):e.Object.each(t,function(e,t){this.set(t,e)},this),this},getAttrs:function(t){var n={};return this._getAttrs?this._getAttrs(t):e.Array.each(t,function(e,t){n[e]=this.get(e)},this),n},compareTo:function(e){var t=this._node;return e&&e._node&&(e=e._node),t===e},inDoc:function(e){var t=this._node;if((e=e?e._node||e:t[i]).documentElement)return a.contains(e.documentElement,t)},getById:function(t){var n=this._node,r=a.byId(t,n[i]);return r&&a.contains(n,r)?e.one(r):null},ancestor:function(t,n,i){return 2===arguments.length&&("string"==typeof n||"function"==typeof n)&&(i=n),e.one(a.ancestor(this._node,u(t),n,u(i)))},ancestors:function(t,n,i){return 2===arguments.length&&("string"==typeof n||"function"==typeof n)&&(i=n),e.all(a.ancestors(this._node,u(t),n,u(i)))},previous:function(t,n){return e.one(a.elementByAxis(this._node,"previousSibling",u(t),n))},next:function(t,n){return e.one(a.elementByAxis(this._node,"nextSibling",u(t),n))},siblings:function(t){return e.all(a.siblings(this._node,u(t)))},one:function(t){return e.one(e.Selector.query(t,this._node,!0))},all:function(t){var n=e.all(e.Selector.query(t,this._node));return n._query=t,n._queryRoot=this._node,n},test:function(t){return e.Selector.test(this._node,t)},remove:function(e){var t=this._node;return t&&t.parentNode&&t.parentNode.removeChild(t),e&&this.destroy(),this},replace:function(e){var t=this._node;return"string"==typeof e&&(e=o.create(e)),t.parentNode.replaceChild(o.getDOMNode(e),t),this},replaceChild:function(t,n){return"string"==typeof t&&(t=a.create(t)),e.one(this._node.replaceChild(o.getDOMNode(t),o.getDOMNode(n)))},destroy:function(t){var n,i=e.config.doc.uniqueID?"uniqueID":"_yuid";this.purge(),this.unplug&&this.unplug(),this.clearData(),t&&e.NodeList.each(this.all("*"),function(e){(n=o._instances[e[i]])&&n.destroy()}),this._node=null,this._stateProxy=null,delete o._instances[this._yuid]},invoke:function(e,t,n,i,r,s){var a,u=this._node;return t&&t._node&&(t=t._node),n&&n._node&&(n=n._node),a=u[e](t,n,i,r,s),o.scrubVal(a,this)},swap:e.config.doc.documentElement.swapNode?function(e){this._node.swapNode(o.getDOMNode(e))}:function(e){e=o.getDOMNode(e);var t=this._node,n=e.parentNode,i=e.nextSibling;return i===t?n.insertBefore(t,e):e===t.nextSibling?n.insertBefore(e,t):(t.parentNode.replaceChild(e,t),a.addHTML(n,t,i)),this},hasMethod:function(e){var t=this._node;return!!(t&&e in t&&"unknown"!=typeof t[e]&&("function"==typeof t[e]||1===String(t[e]).indexOf("function")))},isFragment:function(){return 11===this.get("nodeType")},empty:function(){return this.get("childNodes").remove().destroy(!0),this},getDOMNode:function(){return this._node}},!0),e.Node=o,e.one=o.one;var l=function(t){var n=[];t&&("string"==typeof t?(this._query=t,t=e.Selector.query(t)):t.nodeType||a.isWindow(t)?t=[t]:t._node?t=[t._node]:t[0]&&t[0]._node?(e.Array.each(t,function(e){e._node&&n.push(e._node)}),t=n):t=e.Array(t,0,!0)),this._nodes=t||[]};l.NAME="NodeList",l.getDOMNodes=function(e){return e&&e._nodes?e._nodes:e},l.each=function(t,n,i){var r=t._nodes;r&&r.length&&e.Array.each(r,n,i||t)},l.addMethod=function(t,n,i){t&&n&&(l.prototype[t]=function(){var t=[],r=arguments;return e.Array.each(this._nodes,function(s){var a,o,u=s.uniqueID&&9!==s.nodeType?"uniqueID":"_yuid",c=e.Node._instances[s[u]];c||(c=l._getTempNode(s)),a=i||c,void 0!==(o=n.apply(a,r))&&o!==c&&(t[t.length]=o)}),t.length?t:this})},l.importMethod=function(t,n,i){"string"==typeof n?(i=i||n,l.addMethod(n,t[n])):e.Array.each(n,function(e){l.importMethod(t,e)})},l._getTempNode=function(t){var n=l._tempNode;return n||(n=e.Node.create("<div></div>"),l._tempNode=n),n._node=t,n._stateProxy=t,n},e.mix(l.prototype,{_invoke:function(e,t,n){var i=n?[]:this;return this.each(function(r){var s=r[e].apply(r,t);n&&i.push(s)}),i},item:function(t){return e.one((this._nodes||[])[t])},each:function(t,n){var i=this;return e.Array.each(this._nodes,function(r,s){return r=e.one(r),t.call(n||r,r,s,i)}),i},batch:function(t,n){var i=this;return e.Array.each(this._nodes,function(s,a){var o=e.Node._instances[s[r]];return o||(o=l._getTempNode(s)),t.call(n||o,o,a,i)}),i},some:function(t,n){var i=this;return e.Array.some(this._nodes,function(r,s){return r=e.one(r),n=n||r,t.call(n,r,s,i)})},toFrag:function(){return e.one(e.DOM._nl2frag(this._nodes))},indexOf:function(t){return e.Array.indexOf(this._nodes,e.Node.getDOMNode(t))},filter:function(t){return e.all(e.Selector.filter(this._nodes,t))},modulus:function(t,n){n=n||0;var i=[];return l.each(this,function(e,r){r%t===n&&i.push(e)}),e.all(i)},odd:function(){return this.modulus(2,1)},even:function(){return this.modulus(2)},destructor:function(){},refresh:function(){var t=this._nodes,n=this._query,i=this._queryRoot;return n&&(!i&&t&&t[0]&&t[0].ownerDocument&&(i=t[0].ownerDocument),this._nodes=e.Selector.query(n,i)),this},size:function(){return this._nodes.length},isEmpty:function(){return this._nodes.length<1},toString:function(){var e,n="",i=this[r]+": not bound to any nodes",s=this._nodes;return s&&s[0]&&(n+=(e=s[0])[t],e.id&&(n+="#"+e.id),e.className&&(n+="."+e.className.replace(" ",".")),s.length>1&&(n+="...["+s.length+" items]")),n||i},getDOMNodes:function(){return this._nodes}},!0),l.importMethod(e.Node.prototype,["destroy","empty","remove","set"]),l.prototype.get=function(t){var n,i,r=[],s=this._nodes,a=!1,o=l._getTempNode;return s[0]&&(i=(n=e.Node._instances[s[0]._yuid]||o(s[0]))._get(t))&&i.nodeType&&(a=!0),e.Array.each(s,function(s){(n=e.Node._instances[s._yuid])||(n=o(s)),i=n._get(t),a||(i=e.Node.scrubVal(i,n)),r.push(i)}),a?e.all(r):r},e.NodeList=l,e.all=function(e){return new l(e)},e.Node.all=e.all;var c=e.NodeList,d=Array.prototype;e.Object.each({concat:1,pop:0,push:0,shift:0,slice:1,splice:1,unshift:0},function(t,n){c.prototype[n]=function(){for(var i,r,s=[],a=0;void 0!==(i=arguments[a++]);)s.push(i._node||i._nodes||i);return r=d[n].apply(this._nodes,s),r=t?e.all(r):e.Node.scrubVal(r)}}),e.Array.each(["removeChild","hasChildNodes","cloneNode","hasAttribute","scrollIntoView","getElementsByTagName","focus","blur","submit","reset","select","createCaption"],function(t){e.Node.prototype[t]=function(e,n,i){return this.invoke(t,e,n,i)}}),e.Node.prototype.removeAttribute=function(e){var t=this._node;return t&&t.removeAttribute(e,0),this},e.Node.importMethod(e.DOM,["contains","setAttribute","getAttribute","wrap","unwrap","generateID"]),e.NodeList.importMethod(e.Node.prototype,["getAttribute","setAttribute","removeAttribute","unwrap","wrap","generateID"])},"3.18.1",{requires:["dom-core","selector"]}),YUI.add("node-base",function(e){var t=["hasClass","addClass","removeClass","replaceClass","toggleClass"];e.Node.importMethod(e.DOM,t),e.NodeList.importMethod(e.Node.prototype,t);var n=e.Node,i=e.DOM;n.create=function(t,n){return n&&n._node&&(n=n._node),e.one(i.create(t,n))},e.mix(n.prototype,{create:n.create,insert:function(e,t){return this._insert(e,t),this},_insert:function(e,t){var n=this._node,r=null;return"number"==typeof t?t=this._node.childNodes[t]:t&&t._node&&(t=t._node),e&&"string"!=typeof e&&(e=e._node||e._nodes||e),r=i.addHTML(n,e,t)},prepend:function(e){return this.insert(e,0)},append:function(e){return this.insert(e,null)},appendChild:function(e){return n.scrubVal(this._insert(e))},insertBefore:function(t,n){return e.Node.scrubVal(this._insert(t,n))},appendTo:function(t){return e.one(t).append(this),this},setContent:function(e){return this._insert(e,"replace"),this},getContent:function(e){return this.get("innerHTML")}}),e.Node.prototype.setHTML=e.Node.prototype.setContent,e.Node.prototype.getHTML=e.Node.prototype.getContent,e.NodeList.importMethod(e.Node.prototype,["append","insert","appendChild","insertBefore","prepend","setContent","getContent","setHTML","getHTML"]);var n=e.Node,i=e.DOM;n.ATTRS={text:{getter:function(){return i.getText(this._node)},setter:function(e){return i.setText(this._node,e),e}},for:{getter:function(){return i.getAttribute(this._node,"for")},setter:function(e){return i.setAttribute(this._node,"for",e),e}},options:{getter:function(){return this._node.getElementsByTagName("option")}},children:{getter:function(){var t,n,i,r=this._node,s=r.children;if(!s)for(n=0,t=r.childNodes,s=[],i=t.length;n<i;++n)t[n].tagName&&(s[s.length]=t[n]);return e.all(s)}},value:{getter:function(){return i.getValue(this._node)},setter:function(e){return i.setValue(this._node,e),e}}},e.Node.importMethod(e.DOM,["setAttribute","getAttribute"]);var n=e.Node,r=e.NodeList;n.DOM_EVENTS={abort:1,beforeunload:1,blur:1,change:1,click:1,close:1,command:1,contextmenu:1,dblclick:1,DOMMouseScroll:1,drag:1,dragstart:1,dragenter:1,dragover:1,dragleave:1,dragend:1,drop:1,error:1,focus:1,key:1,keydown:1,keypress:1,keyup:1,load:1,message:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mousemultiwheel:1,mouseout:1,mouseover:1,mouseup:1,mousewheel:1,orientationchange:1,reset:1,resize:1,select:1,selectstart:1,submit:1,scroll:1,textInput:1,unload:1},e.mix(n.DOM_EVENTS,e.Env.evt.plugins),e.augment(n,e.EventTarget),e.mix(n.prototype,{purge:function(t,n){return e.Event.purgeElement(this._node,t,n),this}}),e.mix(e.NodeList.prototype,{_prepEvtArgs:function(t,n,i){var r=e.Array(arguments,0,!0);return r.length<2?r[2]=this._nodes:r.splice(2,0,this._nodes),r[3]=i||this,r},on:function(t,n,i){return e.on.apply(e,this._prepEvtArgs.apply(this,arguments))},once:function(t,n,i){return e.once.apply(e,this._prepEvtArgs.apply(this,arguments))},after:function(t,n,i){return e.after.apply(e,this._prepEvtArgs.apply(this,arguments))},onceAfter:function(t,n,i){return e.onceAfter.apply(e,this._prepEvtArgs.apply(this,arguments))}}),r.importMethod(e.Node.prototype,["detach","detachAll"]),e.mix(e.Node.ATTRS,{offsetHeight:{setter:function(t){return e.DOM.setHeight(this._node,t),t},getter:function(){return this._node.offsetHeight}},offsetWidth:{setter:function(t){return e.DOM.setWidth(this._node,t),t},getter:function(){return this._node.offsetWidth}}}),e.mix(e.Node.prototype,{sizeTo:function(t,n){var i;arguments.length<2&&(t=(i=e.one(t)).get("offsetWidth"),n=i.get("offsetHeight")),this.setAttrs({offsetWidth:t,offsetHeight:n})}});var n=e.Node;e.mix(n.prototype,{show:function(e){return e=arguments[arguments.length-1],this.toggleView(!0,e),this},_show:function(){this.setStyle("display","")},_isHidden:function(){return"none"===e.DOM.getStyle(this._node,"display")},toggleView:function(e,t){return this._toggleView.apply(this,arguments),this},_toggleView:function(e,t){return t=arguments[arguments.length-1],"boolean"!=typeof e&&(e=this._isHidden()?1:0),e?this._show():this._hide(),"function"==typeof t&&t.call(this),this},hide:function(e){return e=arguments[arguments.length-1],this.toggleView(!1,e),this},_hide:function(){this.setStyle("display","none")}}),e.NodeList.importMethod(e.Node.prototype,["show","hide","toggleView"]),e.config.doc.documentElement.hasAttribute||(e.Node.prototype.hasAttribute=function(e){return"value"===e&&""!==this.get("value")||!!(this._node.attributes[e]&&this._node.attributes[e].specified)}),e.Node.prototype.focus=function(){try{this._node.focus()}catch(e){}return this},e.Node.ATTRS.type={setter:function(e){if("hidden"===e)try{this._node.type="hidden"}catch(t){this.setStyle("display","none"),this._inputType="hidden"}else try{this._node.type=e}catch(n){}return e},getter:function(){return this._inputType||this._node.type},_bypassProxy:!0},e.config.doc.createElement("form").elements.nodeType&&(e.Node.ATTRS.elements={getter:function(){return this.all("input, textarea, button, select")}}),e.mix(e.Node.prototype,{_initData:function(){"_data"in this||(this._data={})},getData:function(t){this._initData();var n=this._data,i=n;return arguments.length?i=t in n?n[t]:this._getDataAttribute(t):"object"==typeof n&&null!==n&&(i={},e.Object.each(n,function(e,t){i[t]=e}),i=this._getDataAttributes(i)),i},_getDataAttributes:function(e){e=e||{};for(var t,n=0,i=this._node.attributes,r=i.length,s=this.DATA_PREFIX,a=s.length;n<r;)0!==(t=i[n].name).indexOf(s)||(t=t.substr(a))in e||(e[t]=this._getDataAttribute(t)),n+=1;return e},_getDataAttribute:function(e){var e=this.DATA_PREFIX+e,t=this._node.attributes;return t&&t[e]&&t[e].value},setData:function(e,t){return this._initData(),arguments.length>1?this._data[e]=t:this._data=e,this},clearData:function(e){return"_data"in this&&(void 0!==e?delete this._data[e]:delete this._data),this}}),e.mix(e.NodeList.prototype,{getData:function(e){var t=arguments.length?[e]:[];return this._invoke("getData",t,!0)},setData:function(e,t){var n=arguments.length>1?[e,t]:[e];return this._invoke("setData",n)},clearData:function(e){return arguments.length,this._invoke("clearData",[e])}})},"3.18.1",{requires:["dom-base","node-core","event-base"]}),function(){var e=YUI.Env;e._ready||(e._ready=function(){e.DOMReady=!0,e.remove(YUI.config.doc,"DOMContentLoaded",e._ready)},e.add(YUI.config.doc,"DOMContentLoaded",e._ready))}(),YUI.add("event-base",function(e){e.publish("domready",{fireOnce:!0,async:!0}),YUI.Env.DOMReady?e.fire("domready"):e.Do.before(function(){e.fire("domready")},YUI.Env,"_ready");var t,n,i,r,s,a,o,u,l,c,d,h,f,p,g,m,v,y,b,$=e.UA,_={},E={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9,63272:46,63273:36,63275:35},A=function(t){if(!t)return t;try{t&&3==t.nodeType&&(t=t.parentNode)}catch(n){return null}return e.one(t)},T=function(e,t,n){this._event=e,this._currentTarget=t,this._wrapper=n||_,this.init()};e.extend(T,Object,{init:function(){var e,t=this._event,n=this._wrapper.overrides,i=t.pageX,r=t.pageY,s=this._currentTarget;this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.metaKey=t.metaKey,this.shiftKey=t.shiftKey,this.type=n&&n.type||t.type,this.clientX=t.clientX,this.clientY=t.clientY,this.pageX=i,this.pageY=r,e=t.keyCode||t.charCode,$.webkit&&e in E&&(e=E[e]),this.keyCode=e,this.charCode=e,this.which=t.which||t.charCode||e,this.button=this.which,this.target=A(t.target),this.currentTarget=A(s),this.relatedTarget=A(t.relatedTarget),("mousewheel"==t.type||"DOMMouseScroll"==t.type)&&(this.wheelDelta=t.detail?-1*t.detail:Math.round(t.wheelDelta/80)||(t.wheelDelta<0?-1:1)),this._touch&&this._touch(t,s,this._wrapper)},stopPropagation:function(){this._event.stopPropagation(),this._wrapper.stopped=1,this.stopped=1},stopImmediatePropagation:function(){var e=this._event;e.stopImmediatePropagation?e.stopImmediatePropagation():this.stopPropagation(),this._wrapper.stopped=2,this.stopped=2},preventDefault:function(e){var t=this._event;t.preventDefault(),t.returnValue=e||!1,this._wrapper.prevented=1,this.prevented=1},halt:function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}}),T.resolve=A,e.DOM2EventFacade=T,e.DOMEventFacade=T,e.Env.evt.dom_wrappers={},e.Env.evt.dom_map={},o=e.Env.evt,l=(u=e.config).win,c=YUI.Env.add,d=YUI.Env.remove,h=function(){YUI.Env.windowLoaded=!0,e.Event._load(),d(l,"load",h)},f=function(){e.Event._unload()},p="domready",g="~yui|2|compat~",m=function(t){try{return t&&"string"!=typeof t&&e.Lang.isNumber(t.length)&&!t.tagName&&!t.alert}catch(n){return!1}},v=e.CustomEvent.prototype._delete,y=function(t){var n=v.apply(this,arguments);return this.subCount||this.afterCount||e.Event._clean(this),n},b=(t=!1,n=0,i=[],r=o.dom_wrappers,s=null,a=o.dom_map,{POLL_RETRYS:1e3,POLL_INTERVAL:40,lastError:null,_interval:null,_dri:null,DOMReady:!1,startInterval:function(){b._interval||(b._interval=setInterval(b._poll,b.POLL_INTERVAL))},onAvailable:function(t,r,s,a,o,u){var l,c,d=e.Array(t);for(l=0;l<d.length;l+=1)i.push({id:d[l],fn:r,obj:s,override:a,checkReady:o,compat:u});return n=this.POLL_RETRYS,setTimeout(b._poll,0),c=new e.EventHandle({_delete:function(){var e,t;if(c.handle){c.handle.detach();return}for(e=0;e<d.length;e++)for(t=0;t<i.length;t++)d[e]===i[t].id&&i.splice(t,1)}})},onContentReady:function(e,t,n,i,r){return b.onAvailable(e,t,n,i,!0,r)},attach:function(t,n,i,r){return b._attach(e.Array(arguments,0,!0))},_createWrapper:function(t,n,i,o,u){var d,h=e.stamp(t),f="event:"+h+n;return!1===u&&(f+="native"),i&&(f+="capture"),(d=r[f])||((d=e.publish(f,{silent:!0,bubbles:!1,contextFn:function(){return o?d.el:(d.nodeRef=d.nodeRef||e.one(d.el),d.nodeRef)}})).overrides={},d.el=t,d.key=f,d.domkey=h,d.type=n,d.fn=function(e){d.fire(b.getEvent(e,t,o||!1===u))},d.capture=i,t==l&&"load"==n&&(d.fireOnce=!0,s=f),d._delete=y,r[f]=d,a[h]=a[h]||{},a[h][f]=d,c(t,n,d.fn,i)),d},_attach:function(t,n){var i,r,s,a,o,u,c=!1,d=t[0],h=t[1],f=t[2]||l,p=n&&n.facade,v=n&&n.capture,y=n&&n.overrides;if(t[t.length-1]===g&&(i=!0),!h||!h.call)return!1;if(m(f))return r=[],e.each(f,function(e,i){t[2]=e,r.push(b._attach(t.slice(),n))}),new e.EventHandle(r);if(e.Lang.isString(f)){if(i)s=e.DOM.byId(f);else switch((s=e.Selector.query(f)).length){case 0:s=null;break;case 1:s=s[0];break;default:return t[2]=s,b._attach(t,n)}if(!s)return u=b.onAvailable(f,function(){u.handle=b._attach(t,n)},b,!0,!1,i);f=s}return!!f&&(e.Node&&e.instanceOf(f,e.Node)&&(f=e.Node.getDOMNode(f)),a=b._createWrapper(f,d,v,i,p),y&&e.mix(a.overrides,y),f==l&&"load"==d&&YUI.Env.windowLoaded&&(c=!0),i&&t.pop(),o=t[3],u=a._on(h,o,t.length>4?t.slice(4):null),c&&a.fire(),u)},detach:function(t,n,i,s){var a,o,u,l,c,d,h=e.Array(arguments,0,!0);if(h[h.length-1]===g&&(a=!0),t&&t.detach)return t.detach();if("string"==typeof i&&(a?i=e.DOM.byId(i):(o=(i=e.Selector.query(i)).length)<1?i=null:1==o&&(i=i[0])),!i)return!1;if(i.detach)return h.splice(2,1),i.detach.apply(i,h);if(m(i)){for(l=0,u=!0,o=i.length;l<o;++l)h[2]=i[l],u=e.Event.detach.apply(e.Event,h)&&u;return u}return t&&n&&n.call?!!(d=r[c="event:"+e.stamp(i)+t])&&d.detach(n):b.purgeElement(i,!1,t)},getEvent:function(t,n,i){var s=t||l.event;return i?s:new e.DOMEventFacade(s,n,r["event:"+e.stamp(n)+t.type])},generateId:function(t){return e.DOM.generateID(t)},_isValidCollection:m,_load:function(n){t||(t=!0,e.fire&&e.fire(p),b._poll())},_poll:function(){if(!b.locked){if(e.UA.ie&&!YUI.Env.DOMReady){b.startInterval();return}b.locked=!0;var r,s,a,o,u,l,c=!t;for(c||(c=n>0),u=[],l=function(t,n){var i,r=n.override;try{n.compat?(i=n.override?!0===r?n.obj:r:t,n.fn.call(i,n.obj)):(i=n.obj||e.one(t),n.fn.apply(i,e.Lang.isArray(r)?r:[]))}catch(s){}},r=0,s=i.length;r<s;++r)(a=i[r])&&!a.checkReady&&((o=a.compat?e.DOM.byId(a.id):e.Selector.query(a.id,null,!0))?(l(o,a),i[r]=null):u.push(a));for(r=0,s=i.length;r<s;++r)(a=i[r])&&a.checkReady&&((o=a.compat?e.DOM.byId(a.id):e.Selector.query(a.id,null,!0))?(t||o.get&&o.get("nextSibling")||o.nextSibling)&&(l(o,a),i[r]=null):u.push(a));n=0===u.length?0:n-1,c?b.startInterval():(clearInterval(b._interval),b._interval=null),b.locked=!1}},purgeElement:function(t,n,i){var r,s,a,o,u=e.Lang.isString(t)?e.Selector.query(t,null,!0):t,l=b.getListeners(u,i);if(n&&u)for(l=l||[],a=e.Selector.query("*",u),r=0,s=a.length;r<s;++r)(o=b.getListeners(a[r],i))&&(l=l.concat(o));if(l)for(r=0,s=l.length;r<s;++r)l[r].detachAll()},_clean:function(t){var n=t.key,i=t.domkey;d(t.el,t.type,t.fn,t.capture),delete r[n],delete e._yuievt.events[n],a[i]&&(delete a[i][n],e.Object.size(a[i])||delete a[i])},getListeners:function(t,n){var i=e.stamp(t,!0),r=a[i],s=[],u=n?"event:"+i+n:null,l=o.plugins;return r?(u?(l[n]&&l[n].eventDef&&(u+="_synth"),r[u]&&s.push(r[u]),r[u+="native"]&&s.push(r[u])):e.each(r,function(e,t){s.push(e)}),s.length?s:null):null},_unload:function(t){e.each(r,function(e,n){"unload"==e.type&&e.fire(t),e.detachAll()}),d(l,"unload",f)},nativeAdd:c,nativeRemove:d}),e.Event=b,u.injected||YUI.Env.windowLoaded?h():c(l,"load",h),e.UA.ie&&e.on(p,b._poll),c(l,"unload",f),b.Custom=e.CustomEvent,b.Subscriber=e.Subscriber,b.Target=e.EventTarget,b.Handle=e.EventHandle,b.Facade=e.EventFacade,b._poll(),e.Env.evt.plugins.available={on:function(t,n,i,r){var s=arguments.length>4?e.Array(arguments,4,!0):null;return e.Event.onAvailable.call(e.Event,i,n,r,s)}},e.Env.evt.plugins.contentready={on:function(t,n,i,r){var s=arguments.length>4?e.Array(arguments,4,!0):null;return e.Event.onContentReady.call(e.Event,i,n,r,s)}}},"3.18.1",{requires:["event-custom-base"]}),YUI.add("node-style",function(e){var t;(t=e).mix(t.Node.prototype,{setStyle:function(e,n){return t.DOM.setStyle(this._node,e,n),this},setStyles:function(e){return t.DOM.setStyles(this._node,e),this},getStyle:function(e){return t.DOM.getStyle(this._node,e)},getComputedStyle:function(e){return t.DOM.getComputedStyle(this._node,e)}}),t.NodeList.importMethod(t.Node.prototype,["getStyle","getComputedStyle","setStyle","setStyles"])},"3.18.1",{requires:["dom-style","node-base"]}),YUI.add("anim-base",function(e){var t,n="running",i="startTime",r="elapsedTime",s="paused",a="reverse",o="iterationCount",u=Number,l={};e.Anim=function(){e.Anim.superclass.constructor.apply(this,arguments),e.Anim._instances[e.stamp(this)]=this},e.Anim.NAME="anim",e.Anim._instances={},e.Anim.RE_DEFAULT_UNIT=/^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i,e.Anim.DEFAULT_UNIT="px",e.Anim.DEFAULT_EASING=function(e,t,n,i){return n*e/i+t},e.Anim._intervalTime=20,e.Anim.behaviors={left:{get:function(e,t){return e._getOffset(t)}}},e.Anim.behaviors.top=e.Anim.behaviors.left,e.Anim.DEFAULT_SETTER=function(t,n,i,r,s,a,o,l){var c=t._node,d=c._node,h=o(s,u(i),u(r)-u(i),a);d&&(d.style||d.attributes)?n in d.style||n in e.DOM.CUSTOM_STYLES?(l=l||"",c.setStyle(n,h+l)):d.attributes[n]&&c.setAttribute(n,h):c.set&&c.set(n,h)},e.Anim.DEFAULT_GETTER=function(t,n){var i=t._node,r=i._node,s="";return r&&(r.style||r.attributes)?n in r.style||n in e.DOM.CUSTOM_STYLES?s=i.getComputedStyle(n):r.attributes[n]&&(s=i.getAttribute(n)):i.get&&(s=i.get(n)),s},e.Anim.ATTRS={node:{setter:function(t){return t&&("string"==typeof t||t.nodeType)&&(t=e.one(t)),this._node=t,t}},duration:{value:1},easing:{value:e.Anim.DEFAULT_EASING,setter:function(t){if("string"==typeof t&&e.Easing)return e.Easing[t]}},from:{},to:{},startTime:{value:0,readOnly:!0},elapsedTime:{value:0,readOnly:!0},running:{getter:function(){return!!l[e.stamp(this)]},value:!1,readOnly:!0},iterations:{value:1},iterationCount:{value:0,readOnly:!0},direction:{value:"normal"},paused:{readOnly:!0,value:!1},reverse:{value:!1}},e.Anim.run=function(){var t=e.Anim._instances;for(var n in t)t[n].run&&t[n].run()},e.Anim.pause=function(){for(var t in l)l[t].pause&&l[t].pause();e.Anim._stopTimer()},e.Anim.stop=function(){for(var t in l)l[t].stop&&l[t].stop();e.Anim._stopTimer()},e.Anim._startTimer=function(){t||(t=setInterval(e.Anim._runFrame,e.Anim._intervalTime))},e.Anim._stopTimer=function(){clearInterval(t),t=0},e.Anim._runFrame=function(){var t=!0;for(var n in l)l[n]._runFrame&&(t=!1,l[n]._runFrame());t&&e.Anim._stopTimer()},e.Anim.RE_UNITS=/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/,e.extend(e.Anim,e.Base,{run:function(){return this.get(s)?this._resume():this.get(n)||this._start(),this},pause:function(){return this.get(n)&&this._pause(),this},stop:function(e){return(this.get(n)||this.get(s))&&this._end(e),this},_added:!1,_start:function(){this._set(i,new Date-this.get(r)),this._actualFrames=0,this.get(s)||this._initAnimAttr(),l[e.stamp(this)]=this,e.Anim._startTimer(),this.fire("start")},_pause:function(){this._set(i,null),this._set(s,!0),delete l[e.stamp(this)],this.fire("pause")},_resume:function(){this._set(s,!1),l[e.stamp(this)]=this,this._set(i,new Date-this.get(r)),e.Anim._startTimer(),this.fire("resume")},_end:function(t){var n=1e3*this.get("duration");t&&this._runAttrs(n,n,this.get(a)),this._set(i,null),this._set(r,0),this._set(s,!1),delete l[e.stamp(this)],this.fire("end",{elapsed:this.get(r)})},_runFrame:function(){var e=this._runtimeAttr.duration,t=new Date-this.get(i),n=this.get(a);this._runAttrs(t,e,n),this._actualFrames+=1,this._set(r,t),this.fire("tween"),t>=e&&this._lastFrame()},_runAttrs:function(t,n,i){var r,s,a,o=this._runtimeAttr,u=e.Anim.behaviors,l=o.easing,c=n,d=!1;for(a in t>=n&&(d=!0),i&&(t=n-t,c=0),o)o[a].to&&(r=o[a],(s=a in u&&"set"in u[a]?u[a].set:e.Anim.DEFAULT_SETTER)(this,a,r.from,r.to,d?c:t,n,l,r.unit))},_lastFrame:function(){var e=this.get("iterations"),t=this.get(o);t+=1,"infinite"===e||t<e?("alternate"===this.get("direction")&&this.set(a,!this.get(a)),this.fire("iteration")):(t=0,this._end()),this._set(i,new Date),this._set(o,t)},_initAnimAttr:function(){var t,n,i,r=this.get("from")||{},s=this.get("to")||{},a={duration:1e3*this.get("duration"),easing:this.get("easing")},o=e.Anim.behaviors,u=this.get("node");e.each(s,function(s,l){"function"==typeof s&&(s=s.call(this,u)),void 0===(n=r[l])?n=l in o&&"get"in o[l]?o[l].get(this,l):e.Anim.DEFAULT_GETTER(this,l):"function"==typeof n&&(n=n.call(this,u));var c=e.Anim.RE_UNITS.exec(n),d=e.Anim.RE_UNITS.exec(s);if(n=c?c[1]:n,i=d?d[1]:s,!(t=d?d[2]:c?c[2]:"")&&e.Anim.RE_DEFAULT_UNIT.test(l)&&(t=e.Anim.DEFAULT_UNIT),!n||!i){e.error('invalid "from" or "to" for "'+l+'"',"Anim");return}a[l]={from:n,to:i,unit:t}},this),this._runtimeAttr=a},_getOffset:function(e){var t=this._node,n=t.getComputedStyle(e);if("auto"===n){var i=t.getStyle("position");"absolute"===i||"fixed"===i?(n=t["left"===e?"getX":"getY"](),t["left"===e?"setX":"setY"](n)):n=0}return n},destructor:function(){delete e.Anim._instances[e.stamp(this)]}})},"3.18.1",{requires:["base-base","node-style"]}),YUI.add("anim-color",function(e){var t=Number;e.Anim.behaviors.color={set:function(n,i,r,s,a,o,u){r=e.Color.re_RGB.exec(e.Color.toRGB(r)),s=e.Color.re_RGB.exec(e.Color.toRGB(s)),(!r||r.length<3||!s||s.length<3)&&e.error("invalid from or to passed to color behavior"),n._node.setStyle(i,"rgb("+[Math.floor(u(a,t(r[1]),t(s[1])-t(r[1]),o)),Math.floor(u(a,t(r[2]),t(s[2])-t(r[2]),o)),Math.floor(u(a,t(r[3]),t(s[3])-t(r[3]),o))].join(", ")+")")},get:function(e,t){var n=e._node.getComputedStyle(t);return"transparent"===n?"rgb(255, 255, 255)":n}},e.each(["backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],function(t,n){e.Anim.behaviors[t]=e.Anim.behaviors.color})},"3.18.1",{requires:["anim-base"]}),YUI.add("dom-screen",function(e){var t,n,i,r,s,a,o,u,l,c;i="documentElement",r="compatMode",s="position",a="BackCompat",o="getBoundingClientRect",u="getComputedStyle",l=(t=e).DOM,c=/^t(?:able|d|h)$/i,t.UA.ie&&(n="BackCompat"!==t.config.doc[r]?i:"body"),t.mix(l,{winHeight:function(e){return l._getWinSize(e).height},winWidth:function(e){return l._getWinSize(e).width},docHeight:function(e){return Math.max(l._getDocSize(e).height,l._getWinSize(e).height)},docWidth:function(e){return Math.max(l._getDocSize(e).width,l._getWinSize(e).width)},docScrollX:function(e,n){var r=(n=n||e?l._getDoc(e):t.config.doc).defaultView,s=r?r.pageXOffset:0;return Math.max(n[i].scrollLeft,n.body.scrollLeft,s)},docScrollY:function(e,n){var r=(n=n||e?l._getDoc(e):t.config.doc).defaultView,s=r?r.pageYOffset:0;return Math.max(n[i].scrollTop,n.body.scrollTop,s)},getXY:t.config.doc[i][o]?function(e){var s,u,c,d,h,f,p,g,m,v,y=null;return e&&e.tagName&&((m=(v=(c=(p=e.ownerDocument)[r])!==a?p[i]:p.body).contains?v.contains(e):t.DOM.contains(v,e))?((g=p.defaultView)&&"pageXOffset"in g?(s=g.pageXOffset,u=g.pageYOffset):(s=n?p[n].scrollLeft:l.docScrollX(e,p),u=n?p[n].scrollTop:l.docScrollY(e,p)),t.UA.ie&&(!p.documentMode||p.documentMode<8||c===a)&&(h=v.clientLeft,f=v.clientTop),y=[(d=e[o]()).left,d.top],(h||f)&&(y[0]-=h,y[1]-=f),(u||s)&&(!t.UA.ios||t.UA.ios>=4.2)&&(y[0]+=s,y[1]+=u)):y=l._getOffset(e)),y}:function(e){var n,i,r,a,o,u=null;if(e){if(l.inDoc(e)){for(u=[e.offsetLeft,e.offsetTop],n=e.ownerDocument,i=e,r=!!t.UA.gecko||t.UA.webkit>519;i=i.offsetParent;)u[0]+=i.offsetLeft,u[1]+=i.offsetTop,r&&(u=l._calcBorders(i,u));if("fixed"!=l.getStyle(e,s)){for(i=e;i=i.parentNode;)a=i.scrollTop,o=i.scrollLeft,t.UA.gecko&&"visible"!==l.getStyle(i,"overflow")&&(u=l._calcBorders(i,u)),(a||o)&&(u[0]-=o,u[1]-=a);u[0]+=l.docScrollX(e,n),u[1]+=l.docScrollY(e,n)}else u[0]+=l.docScrollX(e,n),u[1]+=l.docScrollY(e,n)}else u=l._getOffset(e)}return u},getScrollbarWidth:t.cached(function(){var e=t.config.doc,n=e.createElement("div"),i=e.getElementsByTagName("body")[0],r=.1;return i&&(n.style.cssText="position:absolute;visibility:hidden;overflow:scroll;width:20px;",n.appendChild(e.createElement("p")).style.height="1px",i.insertBefore(n,i.firstChild),r=n.offsetWidth-n.clientWidth,i.removeChild(n)),r},null,.1),getX:function(e){return l.getXY(e)[0]},getY:function(e){return l.getXY(e)[1]},setXY:function(e,t,n){var i,r,a,o,u=l.setStyle;e&&t&&(i=l.getStyle(e,s),r=l._getOffset(e),"static"==i&&u(e,s,i="relative"),o=l.getXY(e),null!==t[0]&&u(e,"left",t[0]-o[0]+r[0]+"px"),null!==t[1]&&u(e,"top",t[1]-o[1]+r[1]+"px"),n||(a=l.getXY(e))[0]===t[0]&&a[1]===t[1]||l.setXY(e,t,!0))},setX:function(e,t){return l.setXY(e,[t,null])},setY:function(e,t){return l.setXY(e,[null,t])},swapXY:function(e,t){var n=l.getXY(e);l.setXY(e,l.getXY(t)),l.setXY(t,n)},_calcBorders:function(e,n){var i=parseInt(l[u](e,"borderTopWidth"),10)||0,r=parseInt(l[u](e,"borderLeftWidth"),10)||0;return t.UA.gecko&&c.test(e.tagName)&&(i=0,r=0),n[0]+=r,n[1]+=i,n},_getWinSize:function(e,n){var s=(n=n||e?l._getDoc(e):t.config.doc).defaultView||n.parentWindow,a=n[r],o=s.innerHeight,u=s.innerWidth,c=n[i];return a&&!t.UA.opera&&("CSS1Compat"!=a&&(c=n.body),o=c.clientHeight,u=c.clientWidth),{height:o,width:u}},_getDocSize:function(e){var n=e?l._getDoc(e):t.config.doc,s=n[i];return"CSS1Compat"!=n[r]&&(s=n.body),{height:s.scrollHeight,width:s.scrollWidth}}}),function(e){var t="right",n="bottom",i="left",r=function(e,r){var s=Math.max(e.top,r.top),a=Math.min(e[t],r[t]),o=Math.min(e[n],r[n]),u=Math.max(e[i],r[i]),l={};return l.top=s,l[t]=a,l[n]=o,l[i]=u,l},s=e.DOM;e.mix(s,{region:function(e){var t=s.getXY(e),n=!1;return e&&t&&(n=s._getRegion(t[1],t[0]+e.offsetWidth,t[1]+e.offsetHeight,t[0])),n},intersect:function(a,o,u){var l,c=u||s.region(a),d={},h=o;if(h.tagName)d=s.region(h);else{if(!e.Lang.isObject(o))return!1;d=o}return{top:(l=r(d,c)).top,right:l[t],bottom:l[n],left:l[i],area:(l[n]-l.top)*(l[t]-l[i]),yoff:l[n]-l.top,xoff:l[t]-l[i],inRegion:s.inRegion(a,o,!1,u)}},inRegion:function(a,o,u,l){var c,d={},h=l||s.region(a),f=o;if(f.tagName)d=s.region(f);else{if(!e.Lang.isObject(o))return!1;d=o}return u?h[i]>=d[i]&&h[t]<=d[t]&&h.top>=d.top&&h[n]<=d[n]:!!((c=r(d,h))[n]>=c.top)&&!!(c[t]>=c[i])},inViewportRegion:function(e,t,n){return s.inRegion(e,s.viewportRegion(e),t,n)},_getRegion:function(e,r,s,a){var o={};return o.top=o[1]=e,o[i]=o[0]=a,o[n]=s,o[t]=r,o.width=o[t]-o[i],o.height=o[n]-o.top,o},viewportRegion:function(t){t=t||e.config.doc.documentElement;var n,i,r=!1;return t&&(n=s.docScrollX(t),i=s.docScrollY(t),r=s._getRegion(i,s.winWidth(t)+n,i+s.winHeight(t),n)),r}})}(e)},"3.18.1",{requires:["dom-base","dom-style"]}),YUI.add("event-simulate",function(e){var t,n,i,r,s,a,o,u,l,c,d;t=e.Lang,n=(e.Array,t.isFunction),i=t.isString,r=t.isBoolean,s=t.isObject,a=t.isNumber,o=e.config.doc,u={click:1,dblclick:1,mouseover:1,mouseout:1,mousedown:1,mouseup:1,mousemove:1,contextmenu:1},l={keydown:1,keyup:1,keypress:1},c={blur:1,change:1,focus:1,resize:1,scroll:1,select:1},d={scroll:1,resize:1,reset:1,submit:1,change:1,select:1,error:1,abort:1},e.mix(d,u),e.mix(d,l),e.Event.simulate=function(t,h,f){if(f=f||{},u[h])!function t(l,c,d,h,f,p,g,m,v,y,b,$,_,E,A,T){l||e.error("simulateMouseEvent(): Invalid target."),i(c)?u[c=c.toLowerCase()]||e.error("simulateMouseEvent(): Event type '"+c+"' not supported."):e.error("simulateMouseEvent(): Event type must be a string."),r(d)||(d=!0),r(h)||(h="mousemove"!=c),s(f)||(f=e.config.win),a(p)||(p=1),a(g)||(g=0),a(m)||(m=0),a(v)||(v=0),a(y)||(y=0),r(b)||(b=!1),r($)||($=!1),r(_)||(_=!1),r(E)||(E=!1),a(A)||(A=0),T=T||null;var w=null;if(n(o.createEvent))(w=o.createEvent("MouseEvents")).initMouseEvent?w.initMouseEvent(c,d,h,f,p,g,m,v,y,b,$,_,E,A,T):((w=o.createEvent("UIEvents")).initEvent(c,d,h),w.view=f,w.detail=p,w.screenX=g,w.screenY=m,w.clientX=v,w.clientY=y,w.ctrlKey=b,w.altKey=$,w.metaKey=E,w.shiftKey=_,w.button=A,w.relatedTarget=T),T&&!w.relatedTarget&&("mouseout"==c?w.toElement=T:"mouseover"==c&&(w.fromElement=T)),l.dispatchEvent(w);else if(s(o.createEventObject)){switch((w=o.createEventObject()).bubbles=d,w.cancelable=h,w.view=f,w.detail=p,w.screenX=g,w.screenY=m,w.clientX=v,w.clientY=y,w.ctrlKey=b,w.altKey=$,w.metaKey=E,w.shiftKey=_,A){case 0:w.button=1;break;case 1:w.button=4;break;case 2:break;default:w.button=0}w.relatedTarget=T,l.fireEvent("on"+c,w)}else e.error("simulateMouseEvent(): No event simulation framework present.")}(t,h,f.bubbles,f.cancelable,f.view,f.detail,f.screenX,f.screenY,f.clientX,f.clientY,f.ctrlKey,f.altKey,f.shiftKey,f.metaKey,f.button,f.relatedTarget);else if(l[h])!function t(u,l,c,d,h,f,p,g,m,v,y){if(u||e.error("simulateKeyEvent(): Invalid target."),i(l))switch(l=l.toLowerCase()){case"textevent":l="keypress";break;case"keyup":case"keydown":case"keypress":break;default:e.error("simulateKeyEvent(): Event type '"+l+"' not supported.")}else e.error("simulateKeyEvent(): Event type must be a string.");r(c)||(c=!0),r(d)||(d=!0),s(h)||(h=e.config.win),r(f)||(f=!1),r(p)||(p=!1),r(g)||(g=!1),r(m)||(m=!1),a(v)||(v=0),a(y)||(y=0);var b=null;if(n(o.createEvent)){try{(b=o.createEvent("KeyEvents")).initKeyEvent(l,c,d,h,f,p,g,m,v,y)}catch($){try{b=o.createEvent("Events")}catch(_){b=o.createEvent("UIEvents")}finally{b.initEvent(l,c,d),b.view=h,b.altKey=p,b.ctrlKey=f,b.shiftKey=g,b.metaKey=m,b.keyCode=v,b.charCode=y}}u.dispatchEvent(b)}else s(o.createEventObject)?((b=o.createEventObject()).bubbles=c,b.cancelable=d,b.view=h,b.ctrlKey=f,b.altKey=p,b.shiftKey=g,b.metaKey=m,b.keyCode=y>0?y:v,u.fireEvent("on"+l,b)):e.error("simulateKeyEvent(): No event simulation framework present.")}(t,h,f.bubbles,f.cancelable,f.view,f.ctrlKey,f.altKey,f.shiftKey,f.metaKey,f.keyCode,f.charCode);else if(c[h]){var p,g,m,v,y,b,$;p=t,g=h,m=f.bubbles,v=f.cancelable,y=f.view,b=f.detail,p||e.error("simulateUIEvent(): Invalid target."),i(g)?c[g=g.toLowerCase()]||e.error("simulateUIEvent(): Event type '"+g+"' not supported."):e.error("simulateUIEvent(): Event type must be a string."),$=null,r(m)||(m=g in d),r(v)||(v="submit"==g),s(y)||(y=e.config.win),a(b)||(b=1),n(o.createEvent)?(($=o.createEvent("UIEvents")).initUIEvent(g,m,v,y,b),p.dispatchEvent($)):s(o.createEventObject)?(($=o.createEventObject()).bubbles=m,$.cancelable=v,$.view=y,$.detail=b,p.fireEvent("on"+g,$)):e.error("simulateUIEvent(): No event simulation framework present.")}else e.error("simulate(): Event '"+h+"' can't be simulated.")}},"3.18.1",{requires:["event-base"]}),YUI.add("node-event-simulate",function(e){e.Node.prototype.simulate=function(t,n){e.Event.simulate(e.Node.getDOMNode(this),t,n)}},"3.18.1",{requires:["node-base","event-simulate"]});
YUI.add("fl-event-move",function(t){var e={_isEndEvent:!1,on:function(t,e,i){-1<this.type.indexOf("end")&&(this._isEndEvent=!0),e._direction=this.type.replace("gesturemove","").replace("end",""),window.navigator.msPointerEnabled?(e._startHandle=t.on("MSPointerDown",this._onStart,this,t,e,i),e._moveHandle=t.on("MSPointerMove",this._onMove,this,t,e,i),e._endHandle=t.on("MSPointerUp",this._onEnd,this,t,e,i)):(e._startHandle=t.on("gesturemovestart",this._onStart,null,this,t,e,i),e._moveHandle=t.on("gesturemove",this._onMove,null,this,t,e,i),e._endHandle=t.on("gesturemoveend",this._onEnd,{standAlone:!0},this,t,e,i))},detach:function(t,e,i){e._startHandle.detach(),e._startHandle=null,e._moveHandle.detach(),e._moveHandle=null,e._endHandle.detach(),e._endHandle=null},_onStart:function(t,e,i,s){i._doMove=null,i._startX=t.pageX,i._startY=t.pageY},_onMove:function(t,e,i,s){this._checkDirection(t,i)?i._doMove=!0:i._doMove=!1,i._doMove&&!this._isEndEvent&&s.fire(t)},_onEnd:function(t,e,i,s){i._doMove&&this._isEndEvent&&(t.startPageX=i._startX,t.startPageY=i._startY,s.fire(t)),i._doMove=null},_checkDirection:function(t,e){var i=Math.abs(e._startX-t.pageX),s=Math.abs(e._startY-t.pageY);return i<s&&e._startY>t.pageY&&"vertical"==e._direction||i<s&&e._startY<t.pageY&&"vertical"==e._direction||s<i&&e._startX>t.pageX&&"horizontal"==e._direction||s<i&&e._startX<t.pageX&&"horizontal"==e._direction}};t.Event.define("gesturemovevertical",e),t.Event.define("gesturemoveverticalend",e),t.Event.define("gesturemovehorizontal",e),t.Event.define("gesturemovehorizontalend",e)},"2.0.0",{requires:["event-move"]}),YUI.add("fl-slideshow",function(b){var t;b.namespace("FL").SlideshowCaption=b.Base.create("fl-slideshow-caption",b.Widget,[b.WidgetChild],{_textToggled:!1,_textToggleLink:null,renderUI:function(){var t=this.get("root"),e=this.get("boundingBox"),i=this.get("root").get("fallback");this._textToggleLink=i?b.Node.create('<a role="button" tabindex="0"></a>'):b.Node.create('<button type="button"></button>'),this._textToggleLink.addClass("fl-slideshow-caption-toggle"+(i?"":" fl-content-ui-button")),this._textToggleLink.set("innerHTML",t.get("captionMoreLinkText")),e.appendChild(this._textToggleLink)},bindUI:function(){this.get("root").on("imageLoadComplete",b.bind(this._setText,this)),this._textToggleLink.on("click",b.bind(this._toggleText,this))},_setText:function(){var t=this.get("root"),e=t.imageInfo.caption,i=t.get("captionTextLength"),s=this.get("contentBox");t.imageInfo.caption&&""!==t.imageInfo.caption?(-1<i?!this._textToggled&&i<e.length?(e=this._shortenText(e),this._textToggleLink.setStyle("display","inline-block")):this._textToggled&&i<e.length?(e=this._stripTags(e),this._textToggleLink.setStyle("display","inline-block")):(e=this._stripTags(e),this._textToggleLink.setStyle("display","none")):e=this._stripTags(e),s.set("innerHTML",e)):(s.set("innerHTML",""),this._textToggleLink.setStyle("display","none"))},_toggleText:function(){var t=this.get("root"),e=t.imageInfo.caption,i=this.get("contentBox");this._textToggled?(e=this._shortenText(e),this._textToggleLink.set("innerHTML",t.get("captionMoreLinkText")),this._textToggled=!1):(e=this._stripTags(e),this._textToggleLink.set("innerHTML",t.get("captionLessLinkText")),this._textToggled=!0),i.set("innerHTML",e)},_stripTags:function(t,e){var i=this.get("root");return(e||i.get("captionStripTags"))&&((e=document.createElement("div")).innerHTML=t,t=e.textContent||e.innerText),t},_shortenText:function(t){var e=this.get("root");return t=this._stripTags(t,!0).substring(0,e.get("captionTextLength")),b.Lang.trim(t.substring(0,t.lastIndexOf(" ")))+" ..."}},{CSS_PREFIX:"fl-slideshow-caption",ATTRS:{}}),b.namespace("FL").SlideshowFrame=b.Base.create("fl-slideshow-frame",b.Widget,[b.WidgetParent,b.WidgetChild],{_imageInfo:null,_activeImage:null,_nextImage:null,_loadQueue:null,_transition:null,_transitioning:!1,_resizeAfterTransition:!1,_gestures:null,initializer:function(){var t=this.get("imageConfig");this._activeImage=new b.FL.SlideshowImage(t),this._nextImage=new b.FL.SlideshowImage(t)},renderUI:function(){this.add(this._activeImage),this.add(this._nextImage)},bindUI:function(){var t=this._activeImage.get("boundingBox"),e=this._nextImage.get("boundingBox"),i=this.get("transition");("ontouchstart"in window||window.navigator.msPointerEnabled)&&this.get("touchSupport")&&(this._gestures=new b.FL.SlideshowGestures({direction:"slideVertical"==i?"vertical":"horizontal",activeItem:t,nextItem:e}),this._gestures.on("moveStart",this._gesturesMoveStart,this),this._gestures.on("endComplete",this._gesturesEndComplete,this))},syncUI:function(){var t=this._activeImage.get("boundingBox"),e=this._nextImage.get("boundingBox"),i=this.get("contentBox");t.setStyle("position","absolute"),t.setStyle("top","0px"),t.setStyle("left","-9999px"),e.setStyle("position","absolute"),e.setStyle("top","0px"),e.setStyle("left","-9999px"),i.setStyle("position","relative"),i.setStyle("overflow","hidden")},load:function(t){var e=this._activeImage._imageInfo;this._transitioning?this._loadQueue=t:e&&e.largeURL==t.largeURL||(this._imageInfo=t,this._transitionInit(t))},preload:function(t,e,i){this._imageInfo=t,this._nextImage.preload(t,e,i)},unload:function(){this._imageInfo=null,this._loadQueue=null,this._transitioning=!1,this._transition=null,this._activeImage.detachAll(),this._activeImage.unload(),this._activeImage.get("boundingBox").setStyle("left","-9999px"),this._nextImage.detachAll(),this._nextImage.unload(),this._nextImage.get("boundingBox").setStyle("left","-9999px")},resize:function(t,e){var i;t&&e&&(i=this.get("boundingBox"),e=e-(i=[parseInt(i.getComputedStyle("paddingTop"),10),parseInt(i.getComputedStyle("paddingRight"),10),parseInt(i.getComputedStyle("paddingBottom"),10),parseInt(i.getComputedStyle("paddingLeft"),10)])[0]-i[2],this.set("width",t=t-i[1]-i[3]),this.set("height",e),this._transitioning?this._resizeAfterTransition=!0:(this._activeImage.resize(t,e),this._nextImage.resize(t,e)))},_getTransition:function(){var t=this.get("root"),e=t.albumInfo.images.length-1,i="next",s=t.get("transition");return null===t.lastImageIndex?i="":t.imageIndex==e&&0===t.lastImageIndex?i="prev":0===t.imageIndex&&t.lastImageIndex==e?i="next":t.lastImageIndex>t.imageIndex?i="prev":t.lastImageIndex<t.imageIndex&&(i="next"),"next"==i?s=(s=s.replace("slideHorizontal","slideLeft")).replace("slideVertical","slideUp"):"prev"==i&&(s=(s=s.replace("slideHorizontal","slideRight")).replace("slideVertical","slideDown")),s},_transitionInit:function(t){this._transitioning=!0,this._gestures&&this._gestures.disable(),this.fire("transitionInit"),t?(this._nextImage.once("loadComplete",this._transitionStart,this),this._nextImage.load(t)):this._transitionStart()},_transitionStart:function(){var t=this.get("root");this.fire("transitionStart"),this._transition=new b.FL.SlideshowTransition({itemIn:this._nextImage._imageInfo?this._nextImage.get("boundingBox"):null,itemOut:this._activeImage._imageInfo?this._activeImage.get("boundingBox"):null,type:this._getTransition(),duration:t.get("transitionDuration"),easing:t.get("transitionEasing"),kenBurnsDuration:t.get("speed")/1e3,kenBurnsZoom:t.get("kenBurnsZoom")}),this._nextImage._imageInfo&&this._nextImage.get("boundingBox").setStyle("left","0px"),this._transition.once("complete",this._transitionComplete,this),this._transition.run()},_transitionComplete:function(){var t=this.get("root");this._swapImageRefs(),this.fire("transitionComplete"),this._transition=null,this._transitioning=!1,this._gestures&&(t&&t.albumInfo.images.length<=1?this._gestures.disable():this._gestures.enable()),this._loadQueue?(this.load(this._loadQueue),this._loadQueue=null):this._resizeAfterTransition&&(this._resizeAfterTransition=!1,this._activeImage.resize(this.get("width"),this.get("height")),this._nextImage.resize(this.get("width"),this.get("height")))},_gesturesMoveStart:function(t){var e=this.get("root");t=(t=(t="next"==t.direction?e.imageIndex+1:e.imageIndex-1)<0?e.albumInfo.images.length-1:t)>=e.albumInfo.images.length?0:t,e.pause(),e._hideLoadingImage(),e._showLoadingImageWithDelay(),b.FL.SlideshowImageLoader.removeGroup(this._nextImage.get("loadGroup")),this._nextImage.once("loadComplete",e._hideLoadingImage,e),this._nextImage.load(e.albumInfo.images[t])},_gesturesEndComplete:function(){var t,e=this.get("root");this._nextImage._imageInfo&&(t=this._nextImage._imageInfo.index,this._swapImageRefs(),this._imageInfo=e.albumInfo.images[t],e.loadImage(t))},_swapImageRefs:function(){var t=this._activeImage;this._activeImage=this._nextImage,this._nextImage=t,this._nextImage._imageInfo&&(this._nextImage.unload(),this._nextImage.get("boundingBox").setStyle("left","-9999px")),this._gestures&&(this._gestures.set("activeItem",this._activeImage.get("boundingBox")),this._gestures.set("nextItem",this._nextImage.get("boundingBox")))}},{CSS_PREFIX:"fl-slideshow-frame",ATTRS:{imageConfig:{value:null},touchSupport:{value:!1}}}),b.namespace("FL").SlideshowFullscreen=b.Base.create("fl-slideshow-fullscreen",b.Plugin.Base,[],{active:!1,_closeMessage:null,_closeMessageTimer:null,_initialStyles:{position:"static",top:"0px",left:"0px"},initializer:function(){var t=this.get("host").get("boundingBox"),e=this;t.addClass("fl-fullscreen-enabled"),b.FL.SlideshowFullscreen.OS_SUPPORT?(document.addEventListener("fullscreenchange",function(){e._osChange()},!1),document.addEventListener("mozfullscreenchange",function(){e._osChange()},!1),document.addEventListener("webkitfullscreenchange",function(){e._osChange()},!1)):this._renderCloseMessage()},toggle:function(){this.active?this.exit():this.enter()},enter:function(){b.FL.SlideshowFullscreen.OS_SUPPORT?this._osEnter():this._browserEnter()},exit:function(){b.FL.SlideshowFullscreen.OS_SUPPORT?this._osExit():this._browserExit()},_osEnter:function(){var t=this.get("host").get("boundingBox")._node;t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.requestFullScreen&&t.requestFullScreen()},_osExit:function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},_osChange:function(){var t=this.get("host");t.frame&&t.frame._transitioning&&t.frame._transitionComplete(),this.active?this._exit():this._enter()},_browserEnter:function(){var t=this.get("host").get("boundingBox");this._initialStyles={position:t.getStyle("position"),top:t.getStyle("top"),left:t.getStyle("left"),zIndex:t.getStyle("zIndex")},t.setStyles({position:"fixed",top:"0px",left:"0px",zIndex:1e4}),b.Node.one("body").on("fl-fullscreen|keydown",b.bind(this._onKey,this)),this._showCloseMessage(),this._enter()},_browserExit:function(){this.get("host").get("boundingBox").setStyles({position:this._initialStyles.position,top:this._initialStyles.top,left:this._initialStyles.left,zIndex:this._initialStyles.zIndex}),b.Node.one("body").detach("fl-fullscreen|keydown"),this._hideCloseMessage(),this._exit()},_enter:function(){var t=this.get("host");t.get("boundingBox").addClass("fl-fullscreen-active"),this.active=!0,t.resize()},_exit:function(){var t=this.get("host");t.get("boundingBox").removeClass("fl-fullscreen-active"),this.active=!1,t.resize()},_onKey:function(t){if(27==t.keyCode)return this.exit(),!1},_renderCloseMessage:function(){this._closeMessage=b.Node.create('<div class="fl-fullscreen-close-message"></div>'),this._closeMessage.set("innerHTML",'<span>Press the "esc" button to exit fullscreen mode.</span>'),this._closeMessage.setStyle("display","none"),this.get("host").get("boundingBox").insert(this._closeMessage)},_showCloseMessage:function(){this._closeMessageTimer&&(this._closeMessageTimer.cancel(),this._closeMessageTimer=null),this._closeMessage.show(!0),this._closeMessageTimer=b.later(4e3,this,this._hideCloseMessage)},_hideCloseMessage:function(){this._closeMessageTimer&&(this._closeMessageTimer.cancel(),this._closeMessageTimer=null),this._closeMessage.hide(!0)}},{NS:"fullscreen",OS_SUPPORT:(t=document.documentElement).webkitRequestFullScreen||t.mozRequestFullScreen||t.requestFullScreen}),b.namespace("FL").SlideshowGestures=b.Base.create("fl-slideshow-gestures",b.Base,[],{_startX:null,_startY:null,_touchMoving:!1,_moving:!1,_movingDirection:null,_transitioning:!1,initializer:function(){this.enable()},enable:function(){var t=this.get("id"),e=this.get("direction"),i=this.get("activeItem"),s=this.get("nextItem");i.on(t+"|gesturemovestart",b.bind(this._onStart,this)),s.on(t+"|gesturemovestart",b.bind(this._onStart,this)),s.on(t+"|transitionend",b.bind(this._onEndComplete,this)),s.on(t+"|oTransitionEnd",b.bind(this._onEndComplete,this)),s.on(t+"|webkitTransitionEnd",b.bind(this._onEndComplete,this)),"horizontal"==e?(i.on(t+"|gesturemovehorizontal",b.bind(this._onMoveHorizontal,this)),i.on(t+"|gesturemovehorizontalend",b.bind(this._onEndHorizontal,this)),s.on(t+"|gesturemovehorizontal",b.bind(this._onMoveHorizontal,this)),s.on(t+"|gesturemovehorizontalend",b.bind(this._onEndHorizontal,this))):(i.on(t+"|gesturemovevertical",b.bind(this._onMoveVertical,this)),i.on(t+"|gesturemoveverticalend",b.bind(this._onEndVertical,this)),s.on(t+"|gesturemovevertical",b.bind(this._onMoveVertical,this)),s.on(t+"|gesturemoveverticalend",b.bind(this._onEndVertical,this)))},disable:function(){var t=this.get("id"),e=this.get("activeItem"),i=this.get("nextItem");e.detach(t+"|*"),i.detach(t+"|*")},_onStart:function(t){var e=this.get("direction");this._transitioning&&this._onEndComplete(),"horizontal"==e?this._startX=t.pageX:this._startY=t.pageY,this.fire("start")},_onMoveHorizontal:function(t){var e=this._startX-t.pageX,i=this.get("activeItem"),s=this.get("nextItem"),n=parseInt(i.getComputedStyle("width"),10),a=e<0?Math.abs(e):-e,o=e<0?"prev":"next";t.preventDefault(),this._moving&&this._movingDirection==o||(i.setStyle("left",0),s.setStyles({opacity:1,left:e<0?-n:n}),this._moving=!0,this._movingDirection=o,this.fire("moveStart",{direction:o})),i.setStyle("-webkit-transform","translate("+a+"px, 0px) translateZ(0px)"),i.setStyle("-ms-transform","translate("+a+"px, 0px) translateZ(0px)"),s.setStyle("-webkit-transform","translate("+a+"px, 0px) translateZ(0px)"),s.setStyle("-ms-transform","translate("+a+"px, 0px) translateZ(0px)"),this.fire("move")},_onMoveVertical:function(t){var e=this._startY-t.pageY,i=this.get("activeItem"),s=this.get("nextItem"),n=parseInt(i.getComputedStyle("height"),10),a=e<0?Math.abs(e):-e,o=e<0?"prev":"next";t.preventDefault(),this._moving&&this._movingDirection==o||(i.setStyle("top",0),s.setStyles({opacity:1,left:"auto",top:e<0?-n:n}),this._moving=!0,this._movingDirection=o,this.fire("moveStart",{direction:o})),i.setStyle("-webkit-transform","translate(0px, "+a+"px) translateZ(0px)"),i.setStyle("-ms-transform","translate(0px, "+a+"px) translateZ(0px)"),s.setStyle("-webkit-transform","translate(0px, "+a+"px) translateZ(0px)"),s.setStyle("-ms-transform","translate(0px, "+a+"px) translateZ(0px)"),this.fire("move")},_onEndHorizontal:function(t){var e,i,s;this._moving&&(t=this._startX-t.pageX,s=this.get("activeItem"),e=this.get("nextItem"),i=parseInt(e.getComputedStyle("width"),10),s.transition({transform:"translate("+(s=t<0?i:-i)+"px, 0px)"}),e.transition({transform:"translate("+s+"px, 0px)"}),this._transitioning=!0,this.fire("end"))},_onEndVertical:function(t){var e,i,s;this._moving&&(t=this._startY-t.pageY,s=this.get("activeItem"),e=this.get("nextItem"),i=parseInt(e.getComputedStyle("height"),10),s.transition({transform:"translate(0px, "+(s=t<0?i:-i)+"px)"}),e.transition({transform:"translate(0px, "+s+"px)"}),this._transitioning=!0,this.fire("end"))},_onEndComplete:function(){var t=this.get("direction"),e=this.get("activeItem"),i=this.get("nextItem");e.setStyles({opacity:0,"-webkit-transform":"","-webkit-transition":"","-ms-transform":"","-ms-transition":""}),i.setStyles({"-webkit-transform":"","-webkit-transition":"","-ms-transform":"","-ms-transition":""}),"horizontal"==t?(e.setStyle("left","-9999px"),i.setStyle("left","0px")):(e.setStyle("top","-9999px"),i.setStyle("top","0px")),this.set("activeItem",i),this.set("nextItem",e),this._moving=!1,this._movingDirection=null,this._transitioning=!1,this.fire("endComplete")}},{ATTRS:{direction:{value:"horizontal"},activeItem:{value:null},nextItem:{value:null}}}),b.namespace("FL").SlideshowImageLoader={_loading:!1,_currentImage:null,_currentImageData:null,_queue:[],add:function(t,e,i,s){t={group:t,src:e,callback:i};s?this._queue.unshift(t):this._queue.push(t),this._loading||this._load()},removeGroup:function(t){for(var e=this._queue.length-1;-1<e;e--)this._queue[e].group==t&&this._queue.splice(e,1);this._currentImageData&&this._currentImageData.group==t&&(this._currentImage.detachAll(),this._currentImage=null,this._currentImageData=null,0<this._queue.length?this._load():this._loading=!1)},_load:function(){this._loading=!0,this._currentImageData=this._queue.shift(),this._currentImage=b.Node.create("<img />"),this._currentImage.on("error",b.bind(this._loadComplete,this)),this._currentImage.on("load",b.bind(this._loadComplete,this)),this._currentImage.set("src",this._currentImageData.src)},_loadComplete:function(){this._currentImageData.callback&&this._currentImageData.callback(this._currentImage),0<this._queue.length?this._load():(this._loading=!1,this._currentImage=null,this._currentImageData=null)}},b.namespace("FL").SlideshowImage=b.Base.create("fl-slideshow-image",b.Widget,[b.WidgetChild],{_imageInfo:null,_image:null,_loading:!1,_loadingURL:null,_videoButton:null,_videoBox:null,_video:null,CONTENT_TEMPLATE:null,syncUI:function(){var t=this.get("boundingBox");this.get("crop")&&(t.setStyle("overflow","hidden"),t.addClass("fl-slideshow-image-cropped"))},load:function(t){this._imageInfo=t,this._loading=!0,this._load()},preload:function(t,e,i){var s=this._isVideo(),n=this.get("loadVideos"),a=this.get("showVideoButton");this.unload(),this.set("width",e),this.set("height",i),this._imageInfo=t,s&&n&&!(s&&n&&a)||b.FL.SlideshowImageLoader.add(this.get("loadGroup"),this._getImageURL(),b.bind(this._imagePreloaded,this),this.get("loadPriority"))},_imagePreloaded:function(t){this._image=t},unload:function(){this._image&&(this._image.remove(),this._image.detachAll(),this._image.set("src",""),this._image=null),this._video&&(this._video.remove(),this._video=null),this._videoButton&&(this._videoButton.remove(),this._videoButton=null),this._videoBox&&this._removeVideoBox(),this._imageInfo=null,this._loading=!1,this._loadingURL=null},resize:function(t,e){var i=2*parseInt(this.get("boundingBox").getComputedStyle("borderTopWidth"),10),s=this.get("boundingBox");this.set("width",t-i),this.set("height",e-i),s.setStyle("width",t-i+"px"),s.setStyle("height",e-i+"px"),this._videoButton&&this._positionVideoButton(),this._videoBox&&this._loadVideo(),this._loading||(this._imageInfo&&this._load(),this._image&&this._positionImage())},_load:function(){var t=this.get("loadVideos"),e=this.get("showVideoButton");!this._isVideo()||!t||e||"ontouchstart"in window?this._loadImage():this._loadVideo()},_loadImage:function(){var t=this._getImageURL(),e=this.get("loadVideos");t!=this._loadingURL&&(this._loadingURL=t,b.FL.SlideshowImageLoader.add(this.get("loadGroup"),this._loadingURL,b.bind(this._loadImageComplete,this),this.get("loadPriority")),this._loading)&&(this._isVideo()&&e&&this._insertVideoButton(),this.fire("loadStart"))},_loadImageComplete:function(t){var e=this.get("boundingBox"),i=this.get("showVideoButton"),s=this.get("root").get("bgslideshow");this._image=t,this._image.setStyle("visibility","hidden"),this._image.addClass("fl-slideshow-image-img"),s?(this._image.set("aria-hidden","true"),this._image.set("alt","")):this._image.set("alt",this._imageInfo.alt),this._image.detachAll(),this._video&&!i&&(this._video.remove(),this._video=null),e.all("img").remove(),e.append(this._image),this._setupImage(),this._resizeImage(),this._positionImage(),this._image.setStyle("visibility","visible"),this._loadingURL=null,this._loading&&(this._loading=!1,this.fire("loadComplete"))},_setupImage:function(){var t=this.get("boundingBox");void 0!==this._image._node.style.msInterpolationMode&&(this._image._node.style.msInterpolationMode="bicubic"),this.get("protect")&&(t.delegate("contextmenu",this._protectImage,"img"),t.delegate("mousedown",this._protectImage,"img"))},_protectImage:function(t){return t.preventDefault(),!1},_resizeImage:function(){var t=2*parseInt(this._image.getComputedStyle("borderTopWidth"),10),e=this._image.get("width"),i=this._image.get("height"),s=parseInt(this.get("boundingBox").getComputedStyle("width"),10),n=parseInt(this.get("boundingBox").getComputedStyle("height"),10),a=0,o=0,l=this.get("cropHorizontalsOnly"),h=e<i,r=!1;this._imageInfo&&this.get("checkFilenamesForNoCrop")&&(r=-1<this._imageInfo.filename.indexOf("nocrop")),!this.get("crop")||l&&h||r?o=(l=e/s)<(h=i/n)?(a=Math.round(e*(1/h)),Math.round(i*(1/h))):(a=Math.round(e*(1/l)),Math.round(i*(1/l))):(a=s,(o=Math.round(i*s/e))<n&&(o=n,a=Math.round(e*n/i))),this.get("crop")||this.get("upsize")||!(e<a||i<o)||(a=e,o=i),o-=t,this._image.setStyle("width",(a-=t)+"px"),this._image.setStyle("height",o+"px"),!this.get("crop")&&this.get("constrainWidth")&&this.set("width",a+"px"),!this.get("crop")&&this.get("constrainHeight")&&this.set("height",o+"px")},_positionImage:function(){var t=this.get("position").split(" "),e=""===t[0]?"center":t[0],t=""===t[1]?"center":t[1],i=0,s=0,n=parseInt(this.get("boundingBox").getComputedStyle("width"),10),a=parseInt(this.get("boundingBox").getComputedStyle("height"),10),o=2*parseInt(this._image.getComputedStyle("borderTopWidth"),10),l=parseInt(this._image.getComputedStyle("width"),10)+o,o=parseInt(this._image.getComputedStyle("height"),10)+o;isNaN(l)&&isNaN(o)||("left"==e&&(i=0),"center"==e&&(i=(n-l)/2),"top"==t&&(s=0),"center"==t&&(s=(a-o)/2),this._image.setStyles({left:i="right"==e?n-l:i,top:s="bottom"==t?a-o:s}))},_getImageURL:function(){var t=0,e=0,i=this.get("width"),s=this.get("height"),n=this.get("useThumbSizes"),a=this._imageInfo,t=n&&i<=100?0:n&&i<=150?1:i<=400?2:400<=i&&i<=600?3:600<=i&&i<=800?4:800<=i&&i<=1024?5:1024<=i&&i<=1280?6:7,e=n&&s<=100?0:n&&s<=150?1:s<=300?2:300<=s&&s<=450?3:450<=s&&s<=600?4:600<=s&&s<=768?5:768<=s&&s<=960?6:7;return[a.tinyURL||a.thumbURL||a.largeURL,a.thumbURL||a.largeURL,a.smallURL||a.largeURL,a.mediumURL||a.largeURL||a.smallURL,a.largeURL||a.mediumURL||a.smallURL,a.xlargeURL||a.largeURL||a.mediumURL||a.smallURL,a.x2largeURL||a.largeURL||a.mediumURL||a.smallURL,a.x3largeURL||a.x2largeURL||a.largeURL||a.mediumURL||a.smallURL][Math.max(t,e)]},_isVideo:function(){return!!this._imageInfo&&("mp4"==this._imageInfo.format&&"smugmug"==this._imageInfo.sourceType||""!==this._imageInfo.iframe)},_loadVideo:function(){var t=this.get("boundingBox"),e=!!this.get("showVideoButton");this._video&&(this._video.remove(),this._video=null),"mp4"==this._imageInfo.format&&"smugmug"==this._imageInfo.sourceType?this._video=this._getSmugMugVideoEmbed(this._imageInfo,e):""!==this._imageInfo.iframe&&(this._video=this._getIframeVideoEmbed(this._imageInfo,e)),this._videoBox?this._videoBox.one(".fl-slideshow-video-wrap").insert(this._video):(t.all("img").remove(),t.append(this._video)),this._loading&&(this._loading=!1,this.fire("loadComplete"))},_insertVideoButton:function(){var t=this.get("boundingBox"),e="ontouchstart"in window?"touchstart":"click",i=this.get("root").get("fallback");this._videoButton=i?b.Node.create('<a class="fl-slideshow-video-button" role="button" aria-label="insert video" tabindex="0"></a>'):b.Node.create('<button class="fl-slideshow-video-button fl-content-ui-button" type="button" aria-label="insert video"></button>'),this._videoButton.on(e,b.bind(this._showVideoBox,this)),t.insert(this._videoButton),this._positionVideoButton()},_positionVideoButton:function(){var t=this.get("width"),e=this.get("height"),i=parseInt(this._videoButton.getStyle("width"),10),s=parseInt(this._videoButton.getStyle("height"),10);this._videoButton.setStyles({left:(t-i)/2,top:(e-s)/2})},_showVideoBox:function(){var t=this.get("root"),e=t.get("fallback"),i=b.Node.create('<div class="fl-slideshow-video-wrap"></div>'),s="ontouchstart"in window?"touchstart":"click",n=e?"a":"button",a=e?'role="button"':'type="button"',e=e?'class="fl-slideshow-video-close"':'class="fl-slideshow-video-close fl-content-ui-button"',a=b.Node.create("<"+[n,a,e].join(" ")+"></"+n+">");this._videoBox=b.Node.create('<div class="fl-slideshow-video"></div>'),this._videoBox.setStyle("padding",t.get("boundingBox").getStyle("padding")),this._videoBox.insert(i),this._videoBox.insert(a),this._videoBox.on(s,b.bind(this._removeVideoBox,this)),a.on(s,b.bind(this._removeVideoBox,this)),void 0!==YUI.Env.mods["sm-fonticon"]&&a.addClass("sm-fonticon sm-fonticon-XCrossEncircled sm-button-skin-default sm-button-nochrome"),b.one("body").insert(this._videoBox),this._loadVideo(),b.one("body").on("fl-slideshow-image|keydown",this._onKey,this)},_getSmugMugVideoEmbed:function(t,e){var i=document.createElement("video"),s="",n="",n=null!==b.UA.mobile&&i.canPlayType&&i.canPlayType("video/mp4")?(i=this.get("width"),i="https://www.smugmug.com/photos/"+t.id+"_"+t.key+"-"+i+".mp4",n+='<video width="100%" height="100%" poster="'+this._getImageURL()+'" controls preload="none"',e&&(n+=" autoplay"),(n+=">")+'<source src="'+i+'" type="video/mp4" /></video>'):(s="imageId="+t.id,(n=(n+='<object type="application/x-shockwave-flash" width="100%" height="100%" data="https://cdn.smugmug.com/img/ria/SmugPlayer/2012102601.swf"><param name="movie" value="https://cdn.smugmug.com/img/ria/SmugPlayer/2012102601.swf"><param name="allowFullScreen" value="true">')+'<param name="wmode" value="transparent"><param name="flashVars" value="'+(s=(s=(s+="&amp;imageKey="+t.key)+"&amp;albumId="+t.albumId+"&amp;albumKey="+t.albumKey)+"&amp;apiURL=https://api.smugmug.com/&amp;hostLevel=live&amp;isPro=true"+(e?"&amp;autoPlay=true":"&amp;autoPlay=false"))+'">')+'<embed src="https://cdn.smugmug.com/img/ria/SmugPlayer/2012102601.swf" flashvars="'+s+'" width="100%" height="100%" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent"></object>');return b.Node.create(n)},_getIframeVideoEmbed:function(t,e){var i='<iframe width="100%" height="100%" allowfullscreen ',t=t.iframe;return e&&(t+=-1<t.indexOf("?")?"&autoplay=1":"?autoplay=1"),b.Node.create(i+='src="'+t+'"></iframe>')},_removeVideoBox:function(t){void 0!==t&&t.target&&t.target.get("className").indexOf("fl-slideshow-video")<0||(null!==this._videoBox&&(this._videoBox.remove(),this._videoBox=null,this._video=null),b.one("body").detach("fl-slideshow-image|keydown",this._onKey))},_onKey:function(t){if(27==t.keyCode)return this._removeVideoBox(),!1}},{CSS_PREFIX:"fl-slideshow-image",ATTRS:{loadGroup:{value:"none"},loadPriority:{value:!1},crop:{value:!1},checkFilenamesForNoCrop:{value:!0},cropHorizontalsOnly:{value:!1},position:{value:"center center"},protect:{value:!0},upsize:{value:!0},useThumbSizes:{value:!1},constrainWidth:{value:!1},constrainHeight:{value:!1},loadVideos:{value:!0},showVideoButton:{value:!0}}}),b.namespace("FL").SlideshowMouseNav=b.Base.create("fl-slideshow-mouse-nav",b.Plugin.Base,[],{initializer:function(){var t=this.get("trigger");t.on("click",this._triggerClick,this),t.on("mousemove",this._showArrow,this),t.on("mouseleave",this._hideArrow,this)},_triggerClick:function(t){var e=this.get("host"),i=this.get("trigger"),s=parseInt(i.getStyle("width"),10),i=i.get("region");s/2<=t.pageX-i.left+5?e.nextImage():e.prevImage()},_showArrow:function(t){var e=this.get("host"),i=this.get("trigger"),s=parseInt(i.getStyle("width"),10),n=i.get("region"),t=t.pageX-n.left+5;null!==e.albumInfo&&1<e.albumInfo.images.length&&(s/2<=t?(i.removeClass("fl-slideshow-mouse-nav-prev"),i.addClass("fl-slideshow-mouse-nav-next")):(i.removeClass("fl-slideshow-mouse-nav-next"),i.addClass("fl-slideshow-mouse-nav-prev")))},_hideArrow:function(){var t=this.get("trigger");t.removeClass("fl-slideshow-mouse-nav-next"),t.removeClass("fl-slideshow-mouse-nav-prev")}},{NS:"mouseNav",ATTRS:{trigger:{value:null}}}),b.namespace("FL").SlideshowKenBurns=b.Base.create("fl-slideshow-ken-burns",b.Base,[],{run:function(){var t,e=null;b.FL.Utils.cssSupport("transform")&&(e=this.get("image").one("img"),t=this._getTransform(),e.setStyles({"-webkit-transform-origin":t.origin,"-moz-transform-origin":t.origin,"-ms-transform-origin":t.origin,"transform-origin":t.origin,transform:t.start}),e.transition({easing:"ease-out",duration:this.get("duration"),transform:t.end}))},_getTransform:function(){var t=this.get("zoom"),e=this.get("image"),i=null,s=Math.floor(Math.random()*b.FL.SlideshowKenBurns.ZOOM_DIRECTIONS.length),n=b.FL.SlideshowKenBurns.ZOOM_DIRECTIONS[s];return s=Math.floor(Math.random()*b.FL.SlideshowKenBurns.TRANSFORMS.length),i=b.FL.SlideshowKenBurns.TRANSFORMS[s],e.hasClass("fl-slideshow-image-cropped")||"in"!=n?"out"==n?(i.start="scale("+t+") "+i.translate,i.end="scale(1) translate(0, 0)"):(i.start="scale(1) translate(0, 0)",i.end="scale("+t+") "+i.translate):(s=Math.floor(2*Math.random()),i.start=0===s?"scale(1) translate(100px, 0)":"scale(1) translate(-100px, 0)",i.end="scale("+t+") translate(0, 0)",i.origin="center center"),i}},{ATTRS:{image:{value:null},zoom:{value:1.2},duration:{value:2}},ZOOM_DIRECTIONS:["in","out"],TRANSFORMS:[{origin:"left top",translate:"translate(-30px, -15px)"},{origin:"left center",translate:"translate(-30px, 0)"},{origin:"left bottom",translate:"translate(-30px, 15px)"},{origin:"right top",translate:"translate(30px, -15px)"},{origin:"right center",translate:"translate(30px, 0)"},{origin:"right bottom",translate:"translate(30px, 15px)"}]}),b.namespace("FL").SlideshowNav=b.Base.create("fl-slideshow-nav",b.Widget,[b.WidgetChild],{_buttons:null,_buttonsContainer:null,_buttonsLeftContainer:null,_buttonsRightContainer:null,_fontIcons:{buy:"Cart",caption:"InfoEncircled",close:"XCrossEncircled",fullscreen:"ScreenExpand",next:"ArrowRight",nextPage:"ArrowRight",pause:"PlayerPause",play:"PlayerPlay",prev:"ArrowLeft",prevPage:"ArrowLeft",social:"Heart",thumbs:"ViewThumbGrid"},CONTENT_TEMPLATE:null,renderUI:function(){this._renderContainers(),this._renderButtons(),this._renderFontIcons()},bindUI:function(){var t=this.get("root"),e=this.get("id");this._buttons.prev&&this._buttons.prev.on("click",t.prevImage,t),this._buttons.next&&this._buttons.next.on("click",t.nextImage,t),this._buttons.play&&(this._buttons.play.on("click",this._playClicked,this),t.on(e+"|played",this._showPauseButton,this),t.on(e+"|paused",this._showPlayButton,this),t._playing?this._showPauseButton():this._showPlayButton()),this._buttons.buy&&(t.on(e+"|albumLoadComplete",this._updateBuy,this),null!==t.albumInfo)&&this._updateBuy(),this._buttons.count&&t.on(e+"|imageLoadComplete",this._updateCount,this),this._buttons.thumbs&&this._buttons.thumbs.on("click",t._toggleThumbs,t),this._buttons.caption&&(t.on(e+"|imageLoadComplete",this._updateCaption,this),this._updateCaption()),this._buttons.social&&this._buttons.social.on("click",t._toggleSocial,t),this._buttons.fullscreen&&t.fullscreen&&this._buttons.fullscreen.on("click",t.fullscreen.toggle,t.fullscreen),this._buttons.close&&this._buttons.close.on("click",t.hide,t)},destructor:function(){var t=this.get("root"),e=this.get("id");t.detach(e+"|*")},_renderContainers:function(){var t=this.get("contentBox"),e=this.get("buttonsLeft"),i=this.get("buttonsRight");this._buttonsContainer=b.Node.create("<div></div>"),this._buttonsContainer.addClass("fl-slideshow-nav-buttons"),t.appendChild(this._buttonsContainer),0<e.length&&(this._buttonsLeftContainer=b.Node.create("<div></div>"),this._buttonsLeftContainer.addClass("fl-slideshow-nav-buttons-left"),t.appendChild(this._buttonsLeftContainer)),0<i.length&&(this._buttonsRightContainer=b.Node.create("<div></div>"),this._buttonsRightContainer.addClass("fl-slideshow-nav-buttons-right"),t.appendChild(this._buttonsRightContainer))},_renderButtons:function(){var t="",e=this.get("root").get("fallback"),i=e?"a":"button",s=e?'role="button" tabindex="0"':'type="button"',n=0,a=0,o=[{names:this.get("buttons"),container:this._buttonsContainer},{names:this.get("buttonsLeft"),container:this._buttonsLeftContainer},{names:this.get("buttonsRight"),container:this._buttonsRightContainer}];for(this._buttons={};n<o.length;n++)for(a=0;a<o[n].names.length;a++)-1<(t=o[n].names[a]).indexOf("count")?(this._buttons[t]=b.Node.create("<span></span>"),this._updateCount()):this._buttons[t]=b.Node.create("<"+i+" "+s+"></"+i+">"),-1<t.indexOf("buy")&&this._buttons[t].setStyle("display","none"),this._buttons[t].set("name",t),this._buttons[t].set("aria-label",t),this._buttons[t].addClass("fl-slideshow-nav-"+t+(e?"":" fl-content-ui-button")),o[n].container.appendChild(this._buttons[t])},_renderFontIcons:function(){var t=null;if(this.get("useFontIcons")&&void 0!==YUI.Env.mods["sm-fonticon"])for(t in this._buttons)void 0!==this._buttons[t]&&void 0!==this._fontIcons[t]?(this._buttons[t].addClass("sm-fonticon-"+this._fontIcons[t]),this._buttons[t].addClass("sm-fonticon sm-button-skin-default sm-button-nochrome")):-1<t.indexOf("count")&&this._buttons[t].addClass("fonticons-enabled")},_updateCount:function(){var t=b.FL.SlideshowNav.COUNT_TEXT,e=1,i=1;this.get("root").albumInfo&&(e=this.get("root").imageInfo.index+1,i=this.get("root").albumInfo.images.length),t=t.replace("{current}",e).replace("{total}",i),this._buttons.count.set("innerHTML",t)},_updateCaption:function(){var t=this.get("root"),e=t.imageInfo;e&&""===e.caption?(t.caption.slideshowOverlay.enable(),t.caption.slideshowOverlay.hide(),this._buttons.caption.detach("click"),this._buttons.caption.addClass("fl-slideshow-nav-caption-disabled")):(this._buttons.caption.on("click",t._toggleCaption,t),this._buttons.caption.removeClass("fl-slideshow-nav-caption-disabled"))},_updateBuy:function(){var t=null,e=this.get("root"),i=e.get("source")[e.albumIndex],s=e.albumIndex,s=e.get("source")[s];i&&"smugmug"==i.type&&(void 0!==e.albumInfo.printable?this._updateBuyComplete():((t=new b.FL.SmugMugAPI).addParam("method","smugmug.albums.getInfo"),t.addParam("AlbumID",s.id),t.addParam("AlbumKey",s.key),t.on("complete",this._updateBuyComplete,this),t.request()))},_updateBuyComplete:function(t){var e=this.get("root"),t=void 0===t?e.albumInfo.printable:t.Album.Printable,i=e.albumInfo.link;t?(e.albumInfo.printable=!0,this._buttons.buy.set("href","https://secure.smugmug.com/cart/batchadd/?url="+encodeURIComponent(i)),this._buttons.buy.setStyle("display","inline-block")):(e.albumInfo.printable=!1,this._buttons.buy.setStyle("display","none")),this.fire("resize")},_playClicked:function(){var t=this.get("root");t._playing?t.pause():t.play()},_showPlayButton:function(){this._buttons.play.removeClass("fl-slideshow-nav-pause"),this._buttons.play.addClass("fl-slideshow-nav-play"),this.get("useFontIcons")&&void 0!==YUI.Env.mods["sm-fonticon"]&&(this._buttons.play.removeClass("sm-fonticon-PlayerPause"),this._buttons.play.addClass("sm-fonticon-PlayerPlay"))},_showPauseButton:function(){this._buttons.play.removeClass("fl-slideshow-nav-play"),this._buttons.play.addClass("fl-slideshow-nav-pause"),this.get("useFontIcons")&&void 0!==YUI.Env.mods["sm-fonticon"]&&(this._buttons.play.removeClass("sm-fonticon-PlayerPlay"),this._buttons.play.addClass("sm-fonticon-PlayerPause"))}},{CSS_PREFIX:"fl-slideshow-nav",COUNT_TEXT:"{current} of {total}",ATTRS:{buttons:{value:[],writeOnce:!0},buttonsLeft:{value:[],writeOnce:!0},buttonsRight:{value:[],writeOnce:!0},useFontIcons:{value:!0,writeOnce:!0}}}),b.namespace("FL").SlideshowOverlay=b.Base.create("fl-slideshow-overlay",b.Plugin.Base,[],{_focus:!1,_visible:!0,_disabled:!1,_showProps:{duration:.5,easing:"ease-out",opacity:1},_hideProps:{duration:.5,easing:"ease-out",opacity:0},_hideTimer:null,initializer:function(){var t=this.get("host").get("boundingBox");this.afterHostEvent("render",this._initFocus),this.afterHostEvent("render",this._initVisibility),this.get("closeButton")&&this._initCloseButton(),t.addClass("fl-slideshow-overlay")},destructor:function(){this._hideTimerCancel()},_initFocus:function(){var t=this.get("host").get("boundingBox");t.on("mouseenter",b.bind(this._setFocusOnMouseenter,this)),t.on("mouseleave",b.bind(this._setFocusOnMouseleave,this))},_initVisibility:function(){var t=this.get("host").get("boundingBox"),e=this.get("hideStyle");this.get("visible")||("display"==e?t.setStyle("display","none"):"left"==e&&t.setStyle("left","-99999px"),t.setStyle("opacity","0"),this._visible=!1)},_initCloseButton:function(){var t=this.get("host").get("boundingBox"),e=null;(e=this.get("host").get("root").get("fallback")?b.Node.create('<a class="fl-slideshow-overlay-close" role="button" aria-label="close overlay" tabindex="0"></a>'):b.Node.create('<button class="fl-slideshow-overlay-close fl-content-ui-button" type="button" aria-label="close overlay"></button>')).on("click",b.bind(this._closeButtonClick,this)),void 0!==YUI.Env.mods["sm-fonticon"]&&e.addClass("sm-fonticon sm-fonticon-XCrossEncircled sm-button-skin-default sm-button-nochrome"),t.insert(e)},_closeButtonClick:function(){this.get("host").get("boundingBox").transition(this._hideProps,b.bind(this._hideComplete,this))},_setFocusOnMouseenter:function(){this._focus=!0},_setFocusOnMouseleave:function(){this._focus=!1},disable:function(){this._disabled=!0},enable:function(){this._disabled=!1},show:function(){var t=this.get("host").get("boundingBox"),e=this.get("hideStyle");this._disabled||("display"==e?t.setStyle("display","block"):"left"==e&&t.setStyle("left","auto"),t.transition(this._showProps,b.bind(this._showComplete,this)),this.fire("showStart"))},_showComplete:function(){this._visible=!0,this.hideWithTimer(),this.fire("showComplete")},hide:function(){this._focus||this._disabled||(this.get("host").get("boundingBox").transition(this._hideProps,b.bind(this._hideComplete,this)),this.fire("hideStart"))},hideWithTimer:function(){this._hideTimerCancel(),this._hideTimer=b.later(this.get("hideDelay"),this,this.hide)},_hideTimerCancel:function(){this._hideTimer&&(this._hideTimer.cancel(),this._hideTimer=null)},_hideComplete:function(){var t=this.get("host").get("boundingBox"),e=this.get("hideStyle");"display"==e?t.setStyle("display","none"):"left"==e&&t.setStyle("left","-99999px"),this._visible=!1,this.fire("hideComplete")}},{NS:"slideshowOverlay",ATTRS:{closeButton:{value:!1,writeOnce:!0},hideDelay:{value:3e3,writeOnce:!0},hideStyle:{value:"display",writeOnce:!0},visible:{value:!0,writeOnce:!0}}}),b.namespace("FL").SlideshowSocial=b.Base.create("fl-slideshow-social",b.Widget,[b.WidgetChild],{_buttons:null,renderUI:function(){this._buttons={}},bindUI:function(){var t=this.get("root");t.get("likeButtonEnabled")&&t.on("imageLoadComplete",b.bind(this._updateLikeButton,this)),t.get("tweetButtonEnabled")&&t.on("imageLoadComplete",b.bind(this._updateTweetButton,this)),t.get("pinterestButtonEnabled")&&t.on("imageLoadComplete",b.bind(this._updatePinterestButton,this))},_updateLikeButton:function(){var t=null,e=this.get("contentBox"),i=this.get("root"),s=i.albumIndex,s=i.get("source")[s],i=i.imageInfo;this._buttons.like&&(this._buttons.like.remove(),this._buttons.like=null),"smugmug"==s.type?t=(t="https://www.facebook.com/plugins/like.php?")+"href=https://www.smugmug.com/services/graph/gallery/"+s.id+"_"+s.key+"/"+i.id+"_"+i.key:(t="https://www.facebook.com/plugins/like.php?",t+="href="+encodeURIComponent(i.largeURL)),this._buttons.like=b.Node.create('<iframe src="'+(t=(t=(t=(t+="&send=false")+"&layout=button_count"+"&width=90")+"&show_faces=false"+"&action=like")+"&colorscheme=light"+"&height=21")+'" scrolling="no" allowTransparency="true"></iframe>'),this._buttons.like.setStyles({overflow:"hidden",width:"90px",height:"21px"}),e.appendChild(this._buttons.like)},_updateTweetButton:function(){var t,e=this.get("root").imageInfo,i=this.get("contentBox");this._buttons.tweet&&(this._buttons.tweet.remove(),this._buttons.tweet=null),t="https://platform.twitter.com/widgets/tweet_button.html?",t+="url="+encodeURIComponent(e.largeURL),this._buttons.tweet=b.Node.create('<iframe src="'+(t+="&count=none")+'" scrolling="no" allowTransparency="true"></iframe>'),this._buttons.tweet.setStyles({overflow:"hidden",width:"90px",height:"21px"}),i.appendChild(this._buttons.tweet)},_updatePinterestButton:function(){var t="https://pinterest.com/pin/create/button/",e=this.get("root").imageInfo,i=this.get("contentBox");this._buttons.pin&&(this._buttons.pin.remove(),this._buttons.pin=null),t=(t=(t+="?url="+encodeURIComponent(window.location.href))+"&media="+encodeURIComponent(e.mediumURL))+"&description="+encodeURIComponent(e.caption),this._buttons.pin=b.Node.create("<a></a>"),this._buttons.pin.setAttribute("data-pin-config","none"),this._buttons.pin.setAttribute("data-pin-do","buttonPin"),this._buttons.pin.setAttribute("href",t),this._buttons.pin.setAttribute("target","_blank"),this._buttons.pin.set("innerHTML",'<img src="https://assets.pinterest.com/images/pidgets/pin_it_button.png" border="0" />'),i.appendChild(this._buttons.pin)}},{CSS_PREFIX:"fl-slideshow-social",ATTRS:{}}),b.namespace("FL").SlideshowThumbs=b.Base.create("fl-slideshow-thumbs",b.Widget,[b.WidgetParent,b.WidgetChild],{_clipBox:null,_pagesBox:null,_activePageBox:null,_activePageIndex:0,_nextPageBox:null,_activeImages:null,_nextImages:null,_prevImages:null,_leftNav:null,_rightNav:null,_topNav:null,_bottomNav:null,_bbHeight:0,_bbWidth:0,_cbWidth:0,_clipBoxMarginLeft:0,_clipBoxTop:0,_colsPerPage:0,_rowsPerPage:0,_imagesPerPage:0,_numPages:0,_pageHeight:0,_pageWidth:0,_horizontalSpacing:0,_verticalSpacing:0,_leftNavWidth:0,_rightNavWidth:0,_transition:null,_transitioning:!1,_transitionDirection:"next",_gestures:null,initializer:function(){this._activeImages=[],this._nextImages=[],this._prevImages=[]},renderUI:function(){this._renderBoxes(),this._renderNavs()},bindUI:function(){var t=this.get("root"),e=this.get("id"),i=this.get("transition");t.on(e+"|albumLoadComplete",this._albumLoadComplete,this),"ontouchstart"in window&&this.get("touchSupport")&&(this._gestures=new b.FL.SlideshowGestures({direction:"slideVertical"==i?"vertical":"horizontal",activeItem:this._activePageBox,nextItem:this._nextPageBox}),this._gestures.on("moveStart",this._gesturesMoveStart,this),this._gestures.on("endComplete",this._gesturesEndComplete,this))},syncUI:function(){this._syncBoxes(),this._syncNavs()},destructor:function(){var t=this.get("root"),e=this.get("id");t.detach(e+"|*"),b.FL.SlideshowImageLoader.removeGroup("thumbs")},unload:function(){var t=this.get("root"),e=this.get("id"),i=0;for(t.detach(e+"|imageLoadComplete"),b.FL.SlideshowImageLoader.removeGroup("thumbs");i<this._activeImages.length;i++)this._activeImages[i].unload()},resize:function(){this._setSizeInfo(),this._togglePageButtons(),this._resizeBoxes(),this._resizeNavs(),this.get("root").albumInfo&&(b.FL.SlideshowImageLoader.removeGroup("thumbs"),this._renderActivePage(),this._preloadNextPage(),this._preloadPrevPage()),this._gestures&&this._numPages<2?this._gestures.disable():this._gestures&&this._gestures.enable()},prevPage:function(){this._transitioning||this._transitionStart("prev")},nextPage:function(){this._transitioning||this._transitionStart("next")},_albumLoadComplete:function(){var t=this.get("root"),e=this.get("id");t.once(e+"|imageLoadComplete",this.resize,this),t.on(e+"|imageLoadComplete",this._imageLoadComplete,this)},_imageLoadComplete:function(){var t,e=this.get("root").albumInfo,i=b.one(".fl-slideshow-image-active"),s=i?i._imageInfo:null,n=this.get("root").imageInfo;this._setActiveImage(this._activeImages),t=b.one(".fl-slideshow-image-active"),i&&!t&&(0===n.index&&s.index===e.images.length-1?this.nextPage():0===s.index&&n.index===e.images.length-1?this.prevPage():s.index<n.index?this.nextPage():s.index>n.index&&this.prevPage())},_renderBoxes:function(){this._clipBox=b.Node.create("<div></div>"),this._clipBox.addClass("fl-slideshow-thumbs-clip"),this.get("contentBox").insert(this._clipBox),this._pagesBox=b.Node.create("<div></div>"),this._pagesBox.addClass("fl-slideshow-thumbs-pages"),this._clipBox.insert(this._pagesBox),this._activePageBox=b.Node.create("<div></div>"),this._activePageBox.addClass("fl-slideshow-thumbs-page"),this._pagesBox.insert(this._activePageBox),this._nextPageBox=b.Node.create("<div></div>"),this._nextPageBox.addClass("fl-slideshow-thumbs-page"),this._pagesBox.insert(this._nextPageBox)},_syncBoxes:function(){this._activePageBox.setStyle("left","0"),this._nextPageBox.setStyle("left","-9999px")},_resizeBoxes:function(){this.set("width",this._bbWidth),this.set("height",this._bbHeight),this.get("contentBox").setStyle("width",this._cbWidth+"px"),this._clipBox.setStyle("width",this._pageWidth+"px"),this._clipBox.setStyle("height",this._pageHeight+"px"),this._clipBox.setStyle("padding",this._verticalSpacing+"px 0 0 "+this._horizontalSpacing+"px "),this._clipBox.setStyle("margin","0 0 0 "+this._clipBoxMarginLeft+"px"),this._clipBox.setStyle("top",this._clipBoxTop),this._pagesBox.setStyle("width",this._pageWidth+"px"),this._pagesBox.setStyle("height",this._pageHeight+"px"),this._activePageBox.setStyle("width",this._pageWidth+"px"),this._activePageBox.setStyle("height",this._pageHeight+"px"),this._nextPageBox.setStyle("width",this._pageWidth+"px"),this._nextPageBox.setStyle("height",this._pageHeight+"px")},_renderActivePage:function(){var t=0,e=this.get("root"),i=this._imagesPerPage*this._activePageIndex,s=i+this._imagesPerPage,n=e.albumInfo.images;for(this._clearActiveImage();t<this._activeImages.length;t++)this._activeImages[t].remove(),this._activeImages[t].unload(),this._activeImages[t].get("boundingBox")._imageInfo=null,this._activeImages[t].get("boundingBox").remove();for(t=0;i<s&&n[i];i++)this._renderImage(this._activeImages,t,this._activePageBox,n[i]),t++;this._setActiveImage(this._activeImages)},_renderNextPage:function(){var t=0,e="next"==this._transitionDirection?this._nextImages:this._prevImages;for(this._nextPageBox.get("children").remove();t<e.length&&e[t]._imageInfo;t++)this._renderImage(e,t,this._nextPageBox,e[t]._imageInfo);this._setActiveImage(e)},_preloadNextPage:function(){var t=this._activePageIndex+1>=this._numPages?0:this._activePageIndex+1;this._preloadPage(t,this._nextImages)},_preloadPrevPage:function(){var t=this._activePageIndex-1<0?this._numPages-1:this._activePageIndex-1;this._preloadPage(t,this._prevImages)},_preloadPage:function(t,e){var i=0,s=this.get("root").albumInfo.images,n=t*this._imagesPerPage,a=n+this._imagesPerPage,t=this.get("imageConfig"),o=t.width,l=t.height;if(1<this._numPages){for(;i<e.length;i++)e[i].remove(),e[i].unload();for(i=0;n<a;n++)s[n]&&(this._renderImage(e,i),e[i].preload(s[n],o,l),i++)}},_renderImage:function(t,e,i,s){var n=null,a=this.get("imageConfig");void 0===t[e]&&(a.loadGroup="thumbs",a.useThumbSizes=!0,a.loadVideos=!1,t[e]=new b.FL.SlideshowImage(a),(n=t[e].get("boundingBox")).on("click",this._imageClick,this),n.on("mouseover",this._imageMouseover,this),n.on("mouseout",this._imageMouseout,this)),(n=t[e].get("boundingBox")).setStyle("margin","0 "+this._horizontalSpacing+"px "+this._verticalSpacing+"px 0"),i&&(this._childrenContainer=i,this.add(t[e]),t[e].resize(a.width,a.height)),s&&(t[e].load(s),n._imageInfo=s)},_uiAddChild:function(t,e){t.render(e),e.appendChild(t.get("boundingBox"))},_imageClick:function(t){var e=this.get("root");this.get("pauseOnClick")&&e.pause(),e.loadImage(t.currentTarget._imageInfo.index),this.fire("imageClick")},_setActiveImage:function(t){var e=0;for(this._clearActiveImage();e<t.length;e++)if(t[e]._imageInfo&&t[e]._imageInfo.index==this.get("root").imageInfo.index){t[e].get("boundingBox").addClass("fl-slideshow-image-active");break}},_clearActiveImage:function(){var t=b.one(".fl-slideshow-image-active");t&&t.removeClass("fl-slideshow-image-active")},_getTransition:function(){var t=this.get("transition");return"slideHorizontal"==t&&"next"==this._transitionDirection?"slideLeft":"slideHorizontal"==t&&"prev"==this._transitionDirection?"slideRight":"slideVertical"==t&&"next"==this._transitionDirection?"slideUp":"slideVertical"==t&&"prev"==this._transitionDirection?"slideDown":t},_transitionStart:function(t){1<this._numPages&&(b.FL.SlideshowImageLoader.removeGroup("thumbs"),this._transitionDirection=t,this._transitioning=!0,this._nextPageBox.setStyle("left","0px"),this._renderNextPage(),this._transition=new b.FL.SlideshowTransition({itemIn:this._nextPageBox,itemOut:this._activePageBox,type:this._getTransition(),duration:this.get("transitionDuration"),easing:this.get("transitionEasing")}),this._transition.once("complete",this._transitionComplete,this),this._transition.run(),this._gestures)&&this._gestures.disable()},_transitionComplete:function(){this._swapPageRefs(),this._transitioning=!1,this._transitionDirection="",this._transition=null,this._gestures&&this._gestures.enable(),this.fire("transitionComplete")},_gesturesMoveStart:function(t){b.FL.SlideshowImageLoader.removeGroup("thumbs"),this._transitionDirection=t.direction,this._renderNextPage()},_gesturesEndComplete:function(){this._swapPageRefs(),this._transitionDirection="",this.fire("transitionComplete")},_swapPageRefs:function(){var t=this._activePageBox,e=this._activeImages;this._activePageBox=this._nextPageBox,this._nextPageBox=t,this._nextPageBox.setStyle("left","-9999px"),"next"==this._transitionDirection?(this._activeImages=this._nextImages,this._nextImages=e):(this._activeImages=this._prevImages,this._prevImages=e),"next"==this._transitionDirection&&this._activePageIndex+1<this._numPages?this._activePageIndex++:"next"==this._transitionDirection?this._activePageIndex=0:"prev"==this._transitionDirection&&-1<this._activePageIndex-1?this._activePageIndex--:"prev"==this._transitionDirection&&(this._activePageIndex=this._numPages-1),this._gestures&&(this._gestures.set("activeItem",this._activePageBox),this._gestures.set("nextItem",this._nextPageBox)),this._preloadNextPage(),this._preloadPrevPage()},_renderNavs:function(){var t=this.get("topNavButtons"),e=this.get("rightNavButtons"),i=this.get("bottomNavButtons"),s=this.get("leftNavButtons");this.get("topNavEnabled")&&0<t.length&&(this._topNav=new b.FL.SlideshowNav({buttons:t}),this._topNav.get("boundingBox").addClass("fl-slideshow-thumbs-top-nav"),this.add(this._topNav),this._topNav.render(this.get("contentBox")),this._clipBox.insert(this._topNav.get("boundingBox"),"before"),this._bindNavEvents(this._topNav)),this.get("rightNavEnabled")&&0<e.length&&(this._rightNav=new b.FL.SlideshowNav({buttons:e}),this._rightNav.get("boundingBox").addClass("fl-slideshow-thumbs-right-nav"),this.add(this._rightNav),this._rightNav.render(this.get("contentBox")),this._bindNavEvents(this._rightNav)),this.get("bottomNavEnabled")&&0<i.length&&(this._bottomNav=new b.FL.SlideshowNav({buttons:i}),this._bottomNav.get("boundingBox").addClass("fl-slideshow-thumbs-bottom-nav"),this.add(this._bottomNav),this._bottomNav.render(this.get("contentBox")),this._bindNavEvents(this._bottomNav)),this.get("leftNavEnabled")&&0<s.length&&(this._leftNav=new b.FL.SlideshowNav({buttons:s}),this._leftNav.get("boundingBox").addClass("fl-slideshow-thumbs-left-nav"),this.add(this._leftNav),this._leftNav.render(this.get("contentBox")),this._bindNavEvents(this._leftNav))},_syncNavs:function(){var t;this._rightNav&&((t=this._rightNav.get("boundingBox")).setStyle("position","absolute"),t.setStyle("top","0px"),t.setStyle("right","0px")),this._bottomNav&&((t=this._bottomNav.get("boundingBox")).setStyle("position","absolute"),t.setStyle("bottom","0px"),t.setStyle("width","100%")),this._leftNav&&((t=this._leftNav.get("boundingBox")).setStyle("position","absolute"),t.setStyle("top","0px"),t.setStyle("left","0px"))},_resizeNavs:function(){var t,e;this._rightNav&&(t=this._rightNav.get("boundingBox"),e=this._bbHeight/2-parseInt(t.getComputedStyle("height"),10)/2,t.setStyle("marginTop",e+"px")),this._leftNav&&(t=this._leftNav.get("boundingBox"),e=this._bbHeight/2-parseInt(t.getComputedStyle("height"),10)/2,t.setStyle("marginTop",e+"px"))},_bindNavEvents:function(t){t._buttons.prevPage&&t._buttons.prevPage.on("click",this.prevPage,this),t._buttons.nextPage&&t._buttons.nextPage.on("click",this.nextPage,this),t.on("resize",this.resize,this)},_togglePageButtons:function(){var t=this.get("boundingBox").all(".fl-slideshow-nav-prevPage, .fl-slideshow-nav-nextPage"),e=t.getStyle("display")[0];1==this._numPages&&"inline-block"==e?(t.setStyle("display","none"),this._setSizeInfo()):1<this._numPages&&"none"==e&&(t.setStyle("display","inline-block"),this._setSizeInfo())},_setSizeInfo:function(){var t,e=this.get("root"),i=this.get("boundingBox"),s=i.getStyle("position"),n=parseInt(i.getStyle("marginLeft"),10),a=parseInt(i.getStyle("marginRight"),10),o=parseInt(i.getStyle("marginTop"),10),l=parseInt(i.getStyle("marginBottom"),10),h=parseInt(i.getStyle("paddingLeft"),10),r=parseInt(i.getStyle("paddingRight"),10),g=parseInt(i.getStyle("paddingTop"),10),u=parseInt(i.getStyle("paddingBottom"),10),d=i.get("parentNode"),h=parseInt(d.getComputedStyle("width"),10)-h-r-n-a,r=parseInt(d.getComputedStyle("height"),10)-g-u-o-l,n=h,a=h,d=r,g=this.get("columns"),u=this.get("rows"),o=this.get("imageConfig"),l=this.get("horizontalSpacing"),m=this.get("verticalSpacing"),c=this.get("spaceEvenly"),_=this.get("centerSinglePage"),v=0,p=0,f=0,b=0,y=g,x=u,I=1,S=0,w=0,T=0,B=0;i.setStyle("position","relative"),isNaN(g)||(h=a=g*(o.width+l)+l),isNaN(u)||(r=d=u*(o.height+m)+m),this._leftNav&&(v=parseInt(this._leftNav.get("boundingBox").getComputedStyle("width"),10),isNaN(g)?a-=v:h+=v),this._rightNav&&(p=parseInt(this._rightNav.get("boundingBox").getComputedStyle("width"),10),isNaN(g)?a-=p:h+=p),this._topNav&&(f=parseInt(this._topNav.get("boundingBox").getComputedStyle("height"),10),isNaN(u)?d-=f:r+=f),this._bottomNav&&(b=parseInt(this._bottomNav.get("boundingBox").getComputedStyle("height"),10),isNaN(u)?d-=b:r+=b),t=(y=isNaN(g)?(y=Math.floor(a/(o.width+l)))<1?1:y:y)*(x=isNaN(u)?(x=Math.floor(d/(o.height+m)))<1?1:x:x),e.albumInfo&&(I=Math.ceil(e.albumInfo.images.length/t)),isNaN(g)&&c&&(l=Math.floor((a-o.width*y)/(y+1))),isNaN(u)&&c&&(m=Math.floor((d-o.height*x)/(x+1))),e.albumInfo&&_&&1==I&&1==x?(n=e.albumInfo.images.length*o.width,n+=l*(e.albumInfo.images.length+1),this._leftNav&&(n+=v),this._rightNav&&(n+=p)):n=h,e.albumInfo&&_&&1==I&&1==x?(a=e.albumInfo.images.length*o.width,a+=l*e.albumInfo.images.length):a=y*(o.width+l),d=x*(o.height+m),S=I<2?v:(T=h,this._rightNav&&(T-=p),this._leftNav?v+((T-=v)-a-l)/2:(T-a-l)/2),1<I&&!c&&(B=r,this._topNav&&(B-=f),this._bottomNav&&(B-=b),w=(B-(m+d))/2),this._bbHeight=r,this._bbWidth=h,this._cbWidth=n,this._clipBoxMarginLeft=S,this._clipBoxTop=w,this._colsPerPage=y,this._rowsPerPage=x,this._imagesPerPage=t,this._numPages=I,this._pageHeight=d,this._pageWidth=a,this._leftNavWidth=v,this._rightNavWidth=p,this._horizontalSpacing=l,this._verticalSpacing=m,this._activePageIndex=Math.floor(e.imageIndex/this._imagesPerPage),i.setStyle("position",s)}},{CSS_PREFIX:"fl-slideshow-thumbs",ATTRS:{columns:{value:"auto"},rows:{value:"auto"},horizontalSpacing:{value:15},verticalSpacing:{value:15},spaceEvenly:{value:!0},centerSinglePage:{value:!0},pauseOnClick:{value:!1},transition:{value:"slideHorizontal"},transitionDuration:{value:.8},transitionEasing:{value:"ease-out"},imageConfig:{value:{crop:!0,width:50,height:50}},topNavEnabled:{value:!1},topNavButtons:{value:["prevPage","nextPage"]},rightNavEnabled:{value:!0},rightNavButtons:{value:["nextPage"]},bottomNavEnabled:{value:!1},bottomNavButtons:{value:["prevPage","nextPage"]},leftNavEnabled:{value:!0},leftNavButtons:{value:["prevPage"]},touchSupport:{value:!1}}}),b.namespace("FL").SlideshowTransition=b.Base.create("fl-slideshow-transition",b.Base,[],{_transitionFunction:"_transitionFade",_type:"fade",initializer:function(){var t=this.get("type"),e=[],i=b.FL.SlideshowTransition.TYPES,s=b.FL.SlideshowTransition.SLIDESHOW_IMAGE_TYPES,s=-1<b.Array.indexOf(s,t),n=this._isSlideshowImage(),a=this.get("itemIn"),o=this.get("itemOut");-1<t.indexOf(",")&&((e=t.split(",")).sort(function(){return.5-Math.random()}),t=e[0]),!n&&s?t="fade":n&&(a&&null===a.one("img")||o&&null===o.one("img")?t="none":s&&(b.UA.gecko&&b.UA.gecko<5||0<b.UA.opera||0<b.UA.ie&&b.UA.ie<9)&&(t="fade")),b.FL.SlideshowTransition.TYPES[t]&&(this._transitionFunction=i[t],this._type=t),this._setupItems()},run:function(){this.fire("start"),this[this._transitionFunction].call(this)},_setupItems:function(){var t=this.get("itemIn"),e=this.get("itemOut");t&&(t.setStyle("zIndex",2),t.setStyle("opacity",1),b.FL.Utils.cssSupport("transform")?t.setStyle("transform","translate(0, 0)"):(t.setStyle("top","0"),t.setStyle("left","0"))),e&&e.setStyle("zIndex",1)},_isSlideshowImage:function(){var t=this.get("itemIn"),e=this.get("itemOut");return!(!t||!t.hasClass("fl-slideshow-image"))||!(!e||!e.hasClass("fl-slideshow-image"))},_transitionStart:function(t,e){var i=this.get("itemIn"),s=this.get("itemOut"),n=b.bind(this._transitionComplete,this),a=i?null:n,o=this.get("duration"),l=this.get("easing");i&&(t.duration=t.duration||o,t.easing=t.easing||l,i.transition(t)),s&&(e.duration=e.duration||o,e.easing=e.easing||l,s.transition(e)),n?b.later(1e3*t.duration+100,null,n):a&&b.later(1e3*e.duration+100,null,a)},_transitionComplete:function(){this._set("itemIn",null),this._set("itemOut",null),this.fire("complete")},_transitionNone:function(){var t=this.get("itemIn"),e=this.get("itemOut");t&&t.setStyle("opacity",1),e&&e.setStyle("opacity",0),this._transitionComplete()},_transitionFade:function(){var t=this.get("itemIn");t&&t.setStyle("opacity",0),this._transitionStart({opacity:1},{opacity:0})},_transitionSlideLeft:function(){b.FL.Utils.cssSupport("transform")?this._cssTransitionSlide({inStart:"translate(100%, 0)",inEnd:"translate(0, 0)",outStart:"translate(0, 0)",outEnd:"translate(-100%, 0)"}):this._jsTransitionSlide("left")},_transitionSlideRight:function(){b.FL.Utils.cssSupport("transform")?this._cssTransitionSlide({inStart:"translate(-100%, 0)",inEnd:"translate(0, 0)",outStart:"translate(0, 0)",outEnd:"translate(100%, 0)"}):this._jsTransitionSlide("right")},_transitionSlideUp:function(){b.FL.Utils.cssSupport("transform")?this._cssTransitionSlide({inStart:"translate(0, 100%)",inEnd:"translate(0, 0)",outStart:"translate(0, 0)",outEnd:"translate(0, -100%)"}):this._jsTransitionSlide("up")},_transitionSlideDown:function(){b.FL.Utils.cssSupport("transform")?this._cssTransitionSlide({inStart:"translate(0, -100%)",inEnd:"translate(0, 0)",outStart:"translate(0, 0)",outEnd:"translate(0, 100%)"}):this._jsTransitionSlide("down")},_jsTransitionSlide:function(t){var e=this.get("itemIn"),i=this.get("itemOut"),s=0;i&&"left"==t&&(s=-parseInt(i.getStyle("width"),10)),i&&"right"==t&&(s=parseInt(i.getStyle("width"),10)),i&&"up"==t&&(s=-parseInt(i.getStyle("height"),10)),i&&"down"==t&&(s=parseInt(i.getStyle("height"),10)),e&&e.setStyle("opacity",1),e&&"left"==t&&e.setStyle("left",e.getStyle("width")),e&&"right"==t&&e.setStyle("left","-"+e.getStyle("width")),e&&"up"==t&&e.setStyle("top",e.getStyle("height")),e&&"down"==t&&e.setStyle("top","-"+e.getStyle("height")),"left"==t||"right"==t?this._transitionStart({left:0},{left:s}):this._transitionStart({top:0},{top:s})},_cssTransitionSlide:function(t){var e=this.get("itemIn"),i=this.get("itemOut"),s=b.UA.chrome<36?"transform":"-webkit-transform",n={},a={};n[s]=t.inEnd,a[s]=t.outEnd,e&&(e.setStyle("transition",""),e.setStyle("opacity",1),e.setStyle(s,t.inStart)),i&&(i.setStyle("transition",""),i.setStyle(s,t.outStart)),this._transitionStart(n,a)},_transitionBars:function(){this.get("itemIn").one(".fl-slideshow-image-img").setStyle("opacity",0);var t,e=this.get("bars"),i=this._renderSlices(1,e),s=0,n=100,a=0,o=null,l={duration:this.get("duration"),opacity:1};for("barsRandom"==this._type&&(i=this._randomizeSlices(i));a<i.length;a++)o=b.clone(l),"blinds"==this._type&&(o.width=parseFloat(i[a].getComputedStyle("width"),10)+"px",i[a].setStyle("width","0px"),n=50),t=a==i.length-1,b.later(s,this,this._transitionSlice,[i[a],o,t]),s+=n;this._transitionSlicesFadeLast(s)},_transitionBoxes:function(){this.get("itemIn").one(".fl-slideshow-image-img").setStyle("opacity",0);var t=this.get("boxCols"),e=this.get("boxRows"),i=t*e,s="boxesRandom"!=this._type,n=this._renderSlices(e,t,s),a=0,o=150,l=!1,h=0,r=0,g=0,u=-1,d=null,m={duration:this.get("duration"),opacity:1};if(s)for(;h<i;){for(r=0;r<e;r++)-1<(g=0===r?++u:g)&&g<t&&(h++,d=b.clone(m),"boxesGrow"==this._type&&(d.height=parseFloat(n[r][g].getComputedStyle("height"),10)+"px",d.width=parseFloat(n[r][g].getComputedStyle("width"),10)+"px",n[r][g].setStyle("height","0px"),n[r][g].setStyle("width","0px"),o=50),b.later(a,this,this._transitionSlice,[n[r][g],d,l=h==i-1])),g--;a+=o}else for(n=this._randomizeSlices(n),o=30;h<n.length;h++)d=b.clone(m),l=h==n.length-1,b.later(a,this,this._transitionSlice,[n[h],d,l]),a+=o;this._transitionSlicesFadeLast(a)},_renderSlices:function(t,e,i){for(var s=this.get("itemIn"),n=parseFloat(s.getComputedStyle("height"),10),a=parseFloat(s.getComputedStyle("width"),10),o=s.one("img"),l=o.get("src"),h=parseFloat(o.getComputedStyle("height"),10),r=parseFloat(o.getComputedStyle("width"),10),g=parseFloat(o.getComputedStyle("left"),10),u=parseFloat(o.getComputedStyle("top"),10),d=0,m=0,c=Math.round(n/t),_=Math.round(a/e),v=null,p=null,f=[];m<t;m++)for(void 0!==i&&i&&(f[m]=[]),d=0;d<e;d++)v=b.Node.create('<div class="fl-slideshow-transition-slice"></div>'),p=b.Node.create('<img src="'+l+'" />'),v.setStyles({left:_*d+"px",top:c*m+"px",width:d==e-1?a-_*d+"px":_+"px",height:m==t-1?n-c*m+"px":c+"px",opacity:0}),p.setStyles({height:h+"px",width:r+"px",top:u-(c+m*c-c)+"px",left:g-(_+d*_-_)+"px"}),v.append(p),s.append(v),(void 0!==i&&i?f[m]:f).push(v);return f},_transitionSlicesFadeLast:function(t){var e=this.get("itemOut"),t=parseInt(b.one("body").get("winWidth"),10)>FLBuilderLayoutConfig.breakpoints.medium?t/1e3:0;e&&!e.hasClass("fl-slideshow-image-cropped")&&e.transition({duration:t+this.get("duration"),opacity:0})},_transitionSlice:function(t,e,i){i=i?b.bind(this._transitionSlicesComplete,this):null;t.transition(e,i)},_transitionSlicesComplete:function(){var t=this.get("itemIn");t.all(".fl-slideshow-transition-slice").remove(),t.one(".fl-slideshow-image-img").setStyle("opacity",1),this._transitionComplete()},_randomizeSlices:function(t){var e,i,s=t.length;if(0!==s){for(;--s;)e=Math.floor(Math.random()*(s+1)),i=t[s],t[s]=t[e],t[e]=i;return t}},_transitionKenBurns:function(){var t=this.get("kenBurnsDuration"),e=this.get("duration"),i=this.get("itemIn"),s=this.get("kenBurnsZoom");this._transitionFade(),new b.FL.SlideshowKenBurns({duration:t+e+4,image:i,zoom:s}).run()}},{ATTRS:{itemIn:{value:null},itemOut:{value:null},duration:{value:.5},easing:{value:"ease-out"},type:{value:"fade"},bars:{value:15},boxCols:{value:8},boxRows:{value:4},kenBurnsDuration:{value:4},kenBurnsZoom:{value:1.2}},TYPES:{fade:"_transitionFade",none:"_transitionNone",slideLeft:"_transitionSlideLeft",slideRight:"_transitionSlideRight",slideUp:"_transitionSlideUp",slideDown:"_transitionSlideDown",blinds:"_transitionBars",bars:"_transitionBars",barsRandom:"_transitionBars",boxes:"_transitionBoxes",boxesRandom:"_transitionBoxes",boxesGrow:"_transitionBoxes",kenBurns:"_transitionKenBurns"},SLIDESHOW_IMAGE_TYPES:["blinds","bars","barsRandom","boxes","boxesRandom","boxesGrow","kenBurns"]}),b.namespace("FL").Slideshow=b.Base.create("fl-slideshow",b.FL.SlideshowBase,[],{frame:null,nav:null,imageNavLeft:null,imageNavRight:null,thumbs:null,verticalThumbs:null,caption:null,social:null,_nextImagePreloader:null,_initialNavSettings:null,initializer:function(){var t={loadGroup:"main-preload",crop:this.get("crop"),position:this.get("position"),protect:this.get("protect"),upsize:this.get("upsize")};this._nextImagePreloader=new b.FL.SlideshowImage(t),this._isMobile()&&(this._removeNavButton("prevPage"),this._removeNavButton("nextPage"),this._removeNavButton("fullscreen")),this._hasNavButton("fullscreen")&&(b.FL.SlideshowFullscreen.OS_SUPPORT?this.plug(b.FL.SlideshowFullscreen):this._removeNavButton("fullscreen"))},renderUI:function(){b.FL.Slideshow.superclass.renderUI.apply(this,arguments),this._renderFrame(),this._renderVerticalThumbs(),this._renderNavAndThumbs(),this._renderImageNav(),this._renderMouseNav(),this._renderCaption(),this._renderSocial()},bindUI:function(){var t=this.get("boundingBox"),e=this.frame.get("boundingBox"),i=this.get("navOverlay"),s=this.get("navType"),n=this._getNav(),a=this.get("clickAction");b.FL.Slideshow.superclass.bindUI.apply(this,arguments),b.Do.after(this._resizeChildWidgets,this,"resize"),this.on("albumLoadStart",this._albumLoadStart,this),this.on("albumLoadComplete",this._albumLoadComplete,this),this.on("imageLoadComplete",this._loadFrame,this),this.get("loadingImageAlwaysEnabled")&&(this.frame.on("transitionInit",b.bind(this._showLoadingImageWithDelay,this)),this.frame.on("transitionStart",b.bind(this._hideLoadingImage,this))),this.get("overlayHideOnMousemove")&&(n&&i&&(this.frame.once("transitionComplete",n.slideshowOverlay.hideWithTimer,n.slideshowOverlay),t.on("mousemove",b.bind(this._toggleNav,this))),"buttons"!=s&&"thumbs"!=s&&"custom"!=s||(t.on("mouseenter",b.bind(this._checkOverlaysOnMouseenter,this)),t.on("mouseleave",b.bind(this._hideAllOverlays,this)))),t.delegate("click",b.bind(this._overlayCloseClick,this),".fl-slideshow-overlay-close"),"gallery"!=a&&"url"!=a||e.delegate("click",b.bind(this._frameClick,this),".fl-slideshow-image-img")},syncUI:function(){var t=this.get("boundingBox");b.FL.Slideshow.superclass.syncUI.apply(this,arguments),t._node.onselectstart=function(){return!1},t._node.unselectable="on",(t._node.style.MozUserSelect="none")!=this.get("clickAction")&&this.frame.get("boundingBox").addClass("fl-click-action-enabled")},_isMobile:function(){return/Mobile|Android|Silk\/|Kindle|BlackBerry|Opera Mini|Opera Mobi|webOS/i.test(navigator.userAgent)},unload:function(){this.pause(),this.frame.unload(),null!==this.thumbs&&this.thumbs.unload()},_albumLoadStart:function(){this._showLoadingImage()},_albumLoadComplete:function(){this.frame.once("transitionStart",b.bind(this._hideLoadingImage,this))},_resizeChildWidgets:function(){var t=this.get("boundingBox"),e=this.get("contentBox"),i=this.get("imageNavEnabled");this._renderNavAndThumbs(),this.get("verticalThumbsOverlay")?(this._resizeFrame(e.get("offsetWidth"),t.get("offsetHeight")),this._resizeVerticalThumbs()):(this._resizeVerticalThumbs(),this._resizeFrame(e.get("offsetWidth"),t.get("offsetHeight"))),i&&this._positionImageNav(),this._positionLoadingImage()},_renderVerticalThumbs:function(){var t=this.get("responsiveThreshold"),e=this.get("boundingBox"),i=e.get("offsetWidth");this.get("verticalThumbsEnabled")&&t<i&&(this.verticalThumbs=new b.FL.SlideshowThumbs(this._getVerticalThumbsConfig()),this.add(this.verticalThumbs),this.verticalThumbs.render(e),(t=this.verticalThumbs.get("boundingBox")).addClass("fl-slideshow-vertical-thumbs"),t.setStyle(this.get("verticalThumbsPosition"),0),e.append(t),this.get("verticalThumbsOverlay")?(this.verticalThumbs.plug(b.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay"),hideStyle:"left"}),this.frame.get("boundingBox").append(t),this.verticalThumbs.resize()):(this.verticalThumbs.resize(),this._adjustContentForVerticalThumbs()),this._bindVerticalThumbs())},_getVerticalThumbsConfig:function(){var t=this.getAttrs();return{columns:t.verticalThumbsColumns,rows:"auto",centerSinglePage:!1,horizontalSpacing:t.verticalThumbsHorizontalSpacing,verticalSpacing:t.verticalThumbsVerticalSpacing,spaceEvenly:t.verticalThumbsSpaceEvenly,rightNavEnabled:!1,leftNavEnabled:!1,topNavEnabled:t.verticalThumbsTopNavEnabled,topNavButtons:t.verticalThumbsTopNavButtons,bottomNavEnabled:t.verticalThumbsBottomNavEnabled,bottomNavButtons:t.verticalThumbsBottomNavButtons,pauseOnClick:t.verticalThumbsPauseOnClick,transition:t.verticalThumbsTransition,transitionDirection:t.verticalThumbsTransitionDirection,transitionEasing:t.verticalThumbsTransitionEasing,touchSupport:!0,imageConfig:{crop:t.verticalThumbsImageCrop,width:t.verticalThumbsImageWidth,height:t.verticalThumbsImageHeight}}},_bindVerticalThumbs:function(){var t=this.get("boundingBox"),e=this.get("overlayHideOnMousemove"),i=this.get("verticalThumbsOverlay"),s=this.verticalThumbs;s&&e&&i&&(this.frame.once("transitionComplete",s.slideshowOverlay.hideWithTimer,s.slideshowOverlay),t.on("mousemove",b.bind(this._toggleVerticalThumbs,this)),t.on("mouseenter",b.bind(this._toggleVerticalThumbs,this)))},_resizeVerticalThumbs:function(){var t,e,i,s,n,a;this.get("verticalThumbsEnabled")&&(t=this.get("verticalThumbsOverlay"),e=this.get("responsiveThreshold"),i=this.get("boundingBox").get("offsetWidth"),a=this.get("navOverlay"),s=this.get("navType"),n=this._getNav(),this.verticalThumbs&&e<i?(this.verticalThumbs.get("boundingBox").setStyle("display","block"),this.verticalThumbs.resize(),t?n&&a&&(a=n.get("boundingBox"),"thumbs"==s?(this._adjustOverlayForVerticalThumbs(a,!0),this.thumbs.resize()):this._adjustOverlayForVerticalThumbs(a)):this._adjustContentForVerticalThumbs()):!this.verticalThumbs&&e<i?this._renderVerticalThumbs():this.verticalThumbs&&i<=e&&(this.verticalThumbs.get("boundingBox").setStyle("display","none"),t||this.get("contentBox").setStyles({left:"auto",position:"relative",right:"auto",width:"auto"})))},_toggleVerticalThumbs:function(){this.verticalThumbs&&(this.verticalThumbs.slideshowOverlay._visible?this.verticalThumbs.slideshowOverlay.hideWithTimer():this.verticalThumbs.slideshowOverlay.show())},_adjustContentForVerticalThumbs:function(){var t=this.get("boundingBox"),e=this.verticalThumbs.get("boundingBox"),i=this.get("verticalThumbsPosition"),s=this.get("contentBox"),i="left"==i?"right":"left",t=t.get("offsetWidth")-e.get("offsetWidth");s.setStyle("position","absolute"),s.setStyle(i,0),s.setStyle("width",t)},_adjustOverlayForVerticalThumbs:function(t,e){var i=this.get("verticalThumbsEnabled"),s=this.get("verticalThumbsOverlay"),e=void 0===e?"":"margin-";this.verticalThumbs&&i&&s&&(i=this.verticalThumbs.get("boundingBox").get("offsetWidth"),"left"==this.get("verticalThumbsPosition")?t.setStyle(e+"left",i+"px"):t.setStyle(e+"right",i+"px"))},_renderFrame:function(){this.frame=new b.FL.SlideshowFrame({imageConfig:{loadGroup:"main",loadPriority:!0,crop:this.get("crop"),cropHorizontalsOnly:this.get("cropHorizontalsOnly"),position:this.get("position"),protect:this.get("protect"),upsize:this.get("upsize"),showVideoButton:this.get("navOverlay")},touchSupport:this.get("touchSupport")}),this.add(this.frame),this.frame.render(this.get("contentBox")),this.frame.get("boundingBox").addClass("fl-slideshow-main-image"),this._setPlayingTimerEvent(this.frame,"transitionComplete"),this._loadingImageContainer=this.frame.get("contentBox")},_resizeFrame:function(t,e){var i=this.get("navOverlay"),s=this._getNav();s&&!i&&(e-=parseInt(s.get("boundingBox").getComputedStyle("height"),10)),this.frame.resize(t,e)},_loadFrame:function(t){var e=this.imageInfo.index,i=this.albumInfo.images,e=e+1>=i.length?0:e+1,s=this.frame.get("width"),n=this.frame.get("height");this.frame.load(t.imageInfo),b.FL.SlideshowImageLoader.removeGroup("main-preload"),this._nextImagePreloader.preload(i[e],s,n)},_frameClick:function(){var t=this.get("clickAction"),e=this.get("clickActionUrl");"url"==t?window.location.href=e:"gallery"==t&&(window.location.href=this.imageInfo.link)},_initMiniNav:function(){var t=[];this._hasNavButton("prev")&&t.push("prev"),!this._hasNavButton("thumbs")&&"thumbs"!=this.get("navType")||t.push("thumbs"),this._hasNavButton("caption")&&t.push("caption"),this._hasNavButton("social")&&t.push("social"),this._hasNavButton("buy")&&t.push("buy"),this._hasNavButton("play")&&t.push("play"),!this._hasNavButton("fullscreen")||"ontouchstart"in window||t.push("fullscreen"),this._hasNavButton("next")&&t.push("next"),this._initialNavSettings={buttons:this.get("navButtons"),buttonsLeft:this.get("navButtonsLeft"),buttonsRight:this.get("navButtonsRight"),type:this.get("navType")},this._set("navButtons",t),this._set("navButtonsLeft",[]),this._set("navButtonsRight",[]),this._set("navType","buttons")},_renderNavAndThumbs:function(){var t,e=this.get("navType"),i=!1;"buttons"!=e&&"thumbs"!=e||((e=this.get("boundingBox").get("offsetWidth"))<=(t=this.get("responsiveThreshold"))&&null===this._initialNavSettings?(this._initMiniNav(),i=!0):t<e&&null!==this._initialNavSettings&&(this._set("navButtons",this._initialNavSettings.buttons),this._set("navButtonsLeft",this._initialNavSettings.buttonsLeft),this._set("navButtonsRight",this._initialNavSettings.buttonsRight),this._set("navType",this._initialNavSettings.type),i=!(this._initialNavSettings=null)),!i&&null!==this.nav||this._renderNav(),i||null===this.thumbs?this._renderThumbs():this._thumbsEnabled()&&this._resizeThumbs(),i&&null!==this.caption&&this._syncCaption(),i&&null!==this.social&&this._syncSocial())},_renderNav:function(){var t=this.frame.get("boundingBox"),e=null,i=this.get("navOverlay"),s=this.get("navPosition");this._destroyNav(),"buttons"==this.get("navType")&&(this.nav=new b.FL.SlideshowNav({buttons:this.get("navButtons"),buttonsLeft:this.get("navButtonsLeft"),buttonsRight:this.get("navButtonsRight")}),this.add(this.nav),this.nav.render(this.get("contentBox")),e=this.nav.get("boundingBox"),i&&(this.nav.plug(b.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay")}),e.setStyle("position","absolute"),e.setStyle(s,"0px")),"top"==s?t.insert(e,"before"):t.insert(e,"after"),e.addClass("fl-slideshow-main-nav"))},_destroyNav:function(){if(null!==this.nav){this.nav.slideshowOverlay&&this.nav.slideshowOverlay.destroy(),this.nav.get("boundingBox").remove(),this.remove(this.nav);try{this.nav.destroy(!0)}catch(t){}this.nav=null}},_getNav:function(){var t=this.get("navType");return"buttons"==t?this.nav:"thumbs"==t?this.thumbs:null},_toggleNav:function(){var t=this._getNav();t.slideshowOverlay&&(t.slideshowOverlay._visible?t.slideshowOverlay.hideWithTimer():t.slideshowOverlay.show())},_renderImageNav:function(){var t;this.get("imageNavEnabled")&&(this._isMobile()?this._set("imageNavEnabled",!1):(t=this.get("boundingBox"),this.imageNavLeft=new b.FL.SlideshowNav({buttons:["prev"],useFontIcons:!1}),this.imageNavRight=new b.FL.SlideshowNav({buttons:["next"],useFontIcons:!1}),this.add(this.imageNavLeft),this.add(this.imageNavRight),this.imageNavLeft.render(this.frame.get("boundingBox")),this.imageNavRight.render(this.frame.get("boundingBox")),this.imageNavLeft.plug(b.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay")}),this.imageNavRight.plug(b.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay")}),this.get("overlayHideOnMousemove")&&(this.frame.once("transitionComplete",this.imageNavLeft.slideshowOverlay.hideWithTimer,this.imageNavLeft.slideshowOverlay),this.frame.once("transitionComplete",this.imageNavRight.slideshowOverlay.hideWithTimer,this.imageNavRight.slideshowOverlay),t.on("mousemove",b.bind(this._toggleImageNav,this)),t.on("mouseenter",b.bind(this._toggleImageNav,this))),this.imageNavLeft.get("boundingBox").addClass("fl-slideshow-image-nav-left"),this.imageNavRight.get("boundingBox").addClass("fl-slideshow-image-nav-right")))},_positionImageNav:function(){var t=this.imageNavLeft.get("boundingBox"),e=this.imageNavRight.get("boundingBox"),i=t.get("offsetHeight"),i={top:this.frame.get("boundingBox").get("offsetHeight")/2-i/2+"px",display:"block"};t.setStyles(i),e.setStyles(i),this._adjustOverlayForVerticalThumbs(t),this._adjustOverlayForVerticalThumbs(e)},_toggleImageNav:function(){this.imageNavLeft.slideshowOverlay._visible?this.imageNavLeft.slideshowOverlay.hideWithTimer():this.imageNavLeft.slideshowOverlay.show(),this.imageNavRight.slideshowOverlay._visible?this.imageNavRight.slideshowOverlay.hideWithTimer():this.imageNavRight.slideshowOverlay.show()},_renderMouseNav:function(){!this.get("mouseNavEnabled")||"ontouchstart"in window||window.navigator.msPointerEnabled||this.plug(b.FL.SlideshowMouseNav,{trigger:this.frame.get("boundingBox")})},_thumbsEnabled:function(){var t=this.get("navType");return"thumbs"==t||!("buttons"!=t&&"custom"!=t||!this._hasNavButton("thumbs"))},_renderThumbs:function(){var t,e,i,s;if(this._destroyThumbs(),this._thumbsEnabled()){t=this.frame.get("boundingBox"),e=this.get("navOverlay"),i=this.get("navPosition"),s=this.get("navType"),this.thumbs=new b.FL.SlideshowThumbs(this._getThumbsConfig());try{this.add(this.thumbs)}catch(t){}"buttons"==s||"custom"==s?this.thumbs.plug(b.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay"),hideStyle:"left",visible:!1}):"thumbs"==s&&e&&this.thumbs.plug(b.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay"),hideStyle:"left"}),this.thumbs.render(this.get("contentBox")),"top"==i?t.insert(this.thumbs.get("boundingBox"),"before"):t.insert(this.thumbs.get("boundingBox"),"after"),this.get("thumbsHideOnClick")&&"thumbs"!=s&&this.thumbs.on("imageClick",b.bind(this._hideThumbsOnImageClick,this)),this._syncThumbs()}},_destroyThumbs:function(){if(null!==this.thumbs){this.thumbs.slideshowOverlay&&this.thumbs.slideshowOverlay.destroy(),this.thumbs.get("boundingBox").remove(),this.remove(this.thumbs);try{this.thumbs.destroy(!0)}catch(t){}this.thumbs=null}},_syncThumbs:function(){var t,e=this.thumbs.get("boundingBox"),i=this.get("navOverlay"),s=this.get("navPosition"),n=this.get("navType"),a="padding"+s.charAt(0).toUpperCase()+s.slice(1);"buttons"==n&&(t=parseInt(this.nav.get("boundingBox").getComputedStyle("height"),10),e.setStyle("position","absolute"),i?(e.setStyle(a,t+"px"),e.setStyle(s,"0px")):e.setStyle(s,t+"px")),("custom"==n||"thumbs"==n&&i)&&(e.setStyle("position","absolute"),e.setStyle(s,"0px")),this.thumbs.resize()},_getThumbsConfig:function(){var t=this.getAttrs(),e=this.get("navType"),i={crop:t.thumbsImageCrop,width:t.thumbsImageWidth,height:t.thumbsImageHeight},t={columns:"auto",rows:1,horizontalSpacing:t.thumbsHorizontalSpacing,verticalSpacing:t.thumbsVerticalSpacing,spaceEvenly:t.thumbsSpaceEvenly,centerSinglePage:t.thumbsCenterSinglePage,pauseOnClick:t.thumbsPauseOnClick,transition:t.thumbsTransition,transitionDirection:t.thumbsTransitionDirection,transitionEasing:t.thumbsTransitionEasing,leftNavButtons:t.navButtonsLeft,rightNavButtons:t.navButtonsRight,imageConfig:i,touchSupport:!0};return"buttons"!=e&&"custom"!=e||("ontouchstart"in window?(t.leftNavEnabled=!1,t.rightNavEnabled=!1):(t.centerSinglePage=!1,t.leftNavButtons=["prevPage"],t.rightNavButtons=["nextPage"])),t},_resizeThumbs:function(){this.thumbs&&this.thumbs.resize()},_toggleThumbs:function(){this._toggleOverlay(this.thumbs.slideshowOverlay)},_hideThumbsOnImageClick:function(){this.thumbs.slideshowOverlay&&(this.thumbs.slideshowOverlay._focus=!1,this.thumbs.slideshowOverlay.enable(),this.thumbs.slideshowOverlay.hide(),this.nav)&&this.nav.slideshowOverlay&&this.nav.slideshowOverlay.enable()},_renderCaption:function(){this._hasNavButton("caption")&&(this.caption=new b.FL.SlideshowCaption({lessLinkText:this.get("captionLessLinkText"),moreLinkText:this.get("captionMoreLinkText"),textLength:this.get("captionTextLength"),stripTags:this.get("captionStripTags")}),this.add(this.caption),this.caption.plug(b.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay"),visible:!1,closeButton:!0}),this._syncCaption())},_syncCaption:function(){var t=this.caption.get("boundingBox"),e=this.get("navOverlay"),i=this.get("navPosition"),s=this._getNav(),n="padding"+i.charAt(0).toUpperCase()+i.slice(1),a=0;t.setStyle("position","absolute"),s&&(a=parseInt(s.get("boundingBox").getComputedStyle("height"),10)),s&&e?(t.setStyle(n,a+"px"),t.setStyle(i,"0px")):t.setStyle(i,a+"px")},_toggleCaption:function(){this._toggleOverlay(this.caption.slideshowOverlay)},_renderSocial:function(){this._hasNavButton("social")&&(this.social=new b.FL.SlideshowSocial,this.add(this.social),this.social.plug(b.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay"),visible:!1,closeButton:!0}),this._syncSocial())},_syncSocial:function(){var t=this.social.get("boundingBox"),e=this.get("navOverlay"),i=this.get("navPosition"),s=this._getNav(),n="padding"+i.charAt(0).toUpperCase()+i.slice(1),a=0;t.setStyle("position","absolute"),s&&(a=parseInt(s.get("boundingBox").getComputedStyle("height"),10)),s&&e?(t.setStyle(n,a+"px"),t.setStyle(i,"0px")):t.setStyle(i,a+"px")},_toggleSocial:function(){this._toggleOverlay(this.social.slideshowOverlay);var t=jQuery(".fl-slideshow-social-content").find("iframe");t.remove(),jQuery(".fl-slideshow-social-content").prepend(t)},_toggleOverlay:function(t){var e=this.get("navType"),i=this._getNav();t._visible?(i&&i.slideshowOverlay&&i.slideshowOverlay.enable(),t.enable(),t.hide()):(i&&i.slideshowOverlay&&i.slideshowOverlay.disable(),t.show(),t.disable()),this.thumbs&&"thumbs"!=e&&this.thumbs.slideshowOverlay!==t&&(this.thumbs.slideshowOverlay.enable(),this.thumbs.slideshowOverlay.hide()),this.caption&&this.caption.slideshowOverlay!==t&&(this.caption.slideshowOverlay.enable(),this.caption.slideshowOverlay.hide()),this.social&&this.social.slideshowOverlay!==t&&(this.social.slideshowOverlay.enable(),this.social.slideshowOverlay.hide())},_overlayCloseClick:function(){this.nav&&this.nav.slideshowOverlay&&this.nav.slideshowOverlay.enable(),this.thumbs&&this.thumbs.slideshowOverlay&&this.thumbs.slideshowOverlay.enable(),this.caption&&this.caption.slideshowOverlay.enable(),this.social&&this.social.slideshowOverlay.enable(),this.imageNavLeft&&(this.imageNavLeft.slideshowOverlay.enable(),this.imageNavRight.slideshowOverlay.enable())},_hideAllOverlays:function(){this.nav&&this.nav.slideshowOverlay&&this.nav.slideshowOverlay._visible&&(this.nav.slideshowOverlay.enable(),this.nav.slideshowOverlay.hideWithTimer()),this.thumbs&&this.thumbs.slideshowOverlay&&this.thumbs.slideshowOverlay._visible&&(this.thumbs.slideshowOverlay.enable(),this.thumbs.slideshowOverlay.hideWithTimer()),this.caption&&this.caption.slideshowOverlay._visible&&(this.caption.slideshowOverlay.enable(),this.caption.slideshowOverlay.hideWithTimer()),this.social&&this.social.slideshowOverlay._visible&&(this.social.slideshowOverlay.enable(),this.social.slideshowOverlay.hideWithTimer()),this.imageNavLeft&&(this.imageNavLeft.slideshowOverlay.enable(),this.imageNavLeft.slideshowOverlay.hideWithTimer(),this.imageNavRight.slideshowOverlay.enable(),this.imageNavRight.slideshowOverlay.hideWithTimer())},_checkOverlaysOnMouseenter:function(){var t=this.get("navType"),e=this.get("navOverlay"),i=this._getNav(),s=!1;this.thumbs&&"thumbs"!=t&&this.thumbs.slideshowOverlay._visible?(s=!0,this.thumbs.slideshowOverlay.disable()):this.caption&&this.caption.slideshowOverlay._visible?(s=!0,this.caption.slideshowOverlay.disable()):this.social&&this.social.slideshowOverlay._visible&&(s=!0,this.social.slideshowOverlay.disable()),i&&s&&e&&i.slideshowOverlay.disable()},_hasNavButton:function(t){var e=this.get("navType");return("buttons"==e||"thumbs"==e||"custom"==e)&&(-1<b.Array.indexOf(this.get("navButtons"),t)||-1<b.Array.indexOf(this.get("navButtonsLeft"),t)||-1<b.Array.indexOf(this.get("navButtonsRight"),t))},_removeNavButton:function(t){var e=this.get("navButtons"),i=this.get("navButtonsLeft"),s=this.get("navButtonsRight"),n=this.get("verticalThumbsTopNavButtons"),a=this.get("verticalThumbsBottomNavButtons");-1<b.Array.indexOf(e,t)&&e.splice(b.Array.indexOf(e,t),1),-1<b.Array.indexOf(i,t)&&i.splice(b.Array.indexOf(i,t),1),-1<b.Array.indexOf(s,t)&&s.splice(b.Array.indexOf(s,t),1),-1<b.Array.indexOf(n,t)&&n.splice(b.Array.indexOf(n,t),1),-1<b.Array.indexOf(a,t)&&a.splice(b.Array.indexOf(a,t),1),this._set("navButtons",e),this._set("navButtonsLeft",i),this._set("navButtonsRight",s),this._set("verticalThumbsTopNavButtons",n),this._set("verticalThumbsBottomNavButtons",a)}},{CSS_PREFIX:"fl-slideshow",ATTRS:{clickAction:{value:"none"},clickActionUrl:{value:""},crop:{value:!1},cropHorizontalsOnly:{value:!1},loadingImageAlwaysEnabled:{value:!0},position:{value:"center center"},protect:{value:!0},upsize:{value:!0},transition:{value:"fade"},transitionDuration:{value:1},transitionEasing:{value:"ease-out"},kenBurnsZoom:{value:1.2},navType:{value:"none"},navPosition:{value:"bottom"},navOverlay:{value:!1},navButtons:{value:[]},navButtonsLeft:{value:[]},navButtonsRight:{value:[]},overlayHideOnMousemove:{value:!0},overlayHideDelay:{value:3e3},imageNavEnabled:{value:!1},mouseNavEnabled:{value:!1},thumbsHideOnClick:{value:!0},thumbsHorizontalSpacing:{value:15},thumbsVerticalSpacing:{value:15},thumbsSpaceEvenly:{value:!0},thumbsCenterSinglePage:{value:!0},thumbsPauseOnClick:{value:!1},thumbsTransition:{value:"slideHorizontal"},thumbsTransitionDuration:{value:.8},thumbsTransitionEasing:{value:"ease-out"},thumbsImageCrop:{value:!0},thumbsImageWidth:{value:50},thumbsImageHeight:{value:50},captionLessLinkText:{value:"Read Less"},captionMoreLinkText:{value:"Read More"},captionTextLength:{value:200},captionStripTags:{value:!1},verticalThumbsEnabled:{value:!1},verticalThumbsPosition:{value:"left"},verticalThumbsOverlay:{value:!1},verticalThumbsColumns:{value:1},verticalThumbsTopNavEnabled:{value:!1},verticalThumbsTopNavButtons:{value:["prevPage","nextPage"]},verticalThumbsBottomNavEnabled:{value:!0},verticalThumbsBottomNavButtons:{value:["prevPage","nextPage"]},verticalThumbsHorizontalSpacing:{value:15},verticalThumbsVerticalSpacing:{value:15},verticalThumbsSpaceEvenly:{value:!1},verticalThumbsPauseOnClick:{value:!1},verticalThumbsImageCrop:{value:!0},verticalThumbsImageWidth:{value:75},verticalThumbsImageHeight:{value:75},verticalThumbsTransition:{value:"slideVertical"},verticalThumbsTransitionDuration:{value:.8},verticalThumbsTransitionEasing:{value:"ease-out"},likeButtonEnabled:{value:!0},pinterestButtonEnabled:{value:!0},tweetButtonEnabled:{value:!0},touchSupport:{value:!0},fallback:{value:!1}}})},"2.0.0",{requires:["anim","event-mouseenter","plugin","transition","fl-event-move","fl-slideshow-css","fl-slideshow-base","fl-utils","sm-fonticon"]}),YUI.add("fl-slideshow-album-loader",function(g){g.namespace("FL").SlideshowAlbumLoader=g.Base.create("fl-slideshow-album-loader",g.Base,[],{_source:null,load:function(t){this._source=t,this.fire("start"),this[g.FL.SlideshowAlbumLoader.TYPES[t.type]].call(this)},_loadComplete:function(t){t=this._randomize(t),this.fire("complete",t)},_randomize:function(t){var e;if(this.get("randomize"))for(t.albumInfo.images.sort(function(){return.5-Math.random()}),e=0;e<t.albumInfo.images.length;e++)t.albumInfo.images[e].index=e;return t},_loadSmugMug:function(){var t=new g.FL.SmugMugAPI;t.on("complete",this._loadSmugMugSuccess,this),t.addParam("method","smugmug.images.get"),t.addParam("AlbumID",this._source.id),t.addParam("AlbumKey",this._source.key),t.addParam("Extras","Caption,Format,FileName"),this._source.password&&t.addParam("Password",this._source.password),this._source.sp&&t.addParam("SitePassword",this._source.sp),t.request()},_loadSmugMugSuccess:function(t){var e,i,s,n,a=t.Album.Images,o={},l=void 0!==this._source.proxy?this._source.proxy:"",h=0,r=null;for(o.index=this._source.index,o.id=t.Album.id,o.key=t.Album.Key,o.link=t.Album.URL,o.title=this._source.title||"",o.images=[],e="https://"+o.link.replace("https://","").split("/").shift()+"/buy/"+t.Album.id+"_"+t.Album.Key+"/",h=0;h<a.length;h++)i=l+t.Album.URL+"/"+a[h].id+"_"+a[h].Key,s="mp4"==(n=a[h].Format.toLowerCase())?".jpg":"."+n,o.images[h]={},o.images[h].index=h,o.images[h].sourceType="smugmug",o.images[h].albumId=t.Album.id,o.images[h].albumKey=t.Album.Key,o.images[h].id=a[h].id,o.images[h].key=a[h].Key,o.images[h].filename=a[h].FileName,o.images[h].format=n,o.images[h].caption=a[h].Caption||"",o.images[h].link=t.Album.URL+"#"+a[h].id+"_"+a[h].Key,o.images[h].tinyURL=i+"-Ti"+s,o.images[h].thumbURL=i+"-Th"+s,o.images[h].smallURL=i+"-S"+s,o.images[h].mediumURL=i+"-M"+s,o.images[h].largeURL=i+"-L"+s,o.images[h].xlargeURL=i+"-XL"+s,o.images[h].x2largeURL=i+"-X2"+s,o.images[h].x3largeURL=i+"-X3"+s,o.images[h].buyURL=e+a[h].id+"_"+a[h].Key,o.images[h].iframe="",o.images[h].caption.indexOf("iframe")&&(r=g.Node.create("<div>"+o.images[h].caption+"</div>").one("iframe"))&&(o.images[h].iframe=r.getAttribute("src"),o.images[h].caption=o.images[h].caption.replace(/<iframe.*>.*<\/iframe>/gi,""));this._loadComplete({albumInfo:o})},_loadUrls:function(){var t={},e=0;for(t.index=this._source.index,t.title=this._source.title||"",t.images=[];e<this._source.urls.length;e++)t.images[e]={},t.images[e].index=e,t.images[e].sourceType="urls",t.images[e].filename=this._source.urls[e].largeURL.split("/").pop(),t.images[e].format="",t.images[e].caption=this._source.urls[e].caption||"",t.images[e].alt=this._source.urls[e].alt||"",t.images[e].link=this._source.urls[e].largeURL,t.images[e].thumbURL=this._source.urls[e].thumbURL||this._source.urls[e].largeURL,t.images[e].smallURL=this._source.urls[e].smallURL||this._source.urls[e].largeURL,t.images[e].mediumURL=this._source.urls[e].mediumURL||this._source.urls[e].largeURL,t.images[e].largeURL=this._source.urls[e].largeURL,t.images[e].xlargeURL=this._source.urls[e].xlargeURL||this._source.urls[e].largeURL,t.images[e].x2largeURL=this._source.urls[e].x2largeURL||this._source.urls[e].largeURL,t.images[e].x3largeURL=this._source.urls[e].x3largeURL||this._source.urls[e].largeURL,t.images[e].buyURL=this._source.urls[e].buyURL||"",t.images[e].iframe=this._source.urls[e].iframe||"";this._loadComplete({albumInfo:t})}},{ATTRS:{randomize:{value:!1}},TYPES:{smugmug:"_loadSmugMug",flickr:"_loadFlickr",picasa:"_loadPicasa",urls:"_loadUrls",html:"_loadHtml"}})},"2.0.0",{requires:["base","fl-smugmug-api"]}),YUI.add("fl-slideshow-base",function(l){l.namespace("FL").SlideshowBase=l.Base.create("fl-slideshow-base",l.Widget,[l.WidgetParent],{_albumLoader:null,albums:[],albumInfo:null,albumIndex:null,imageInfo:null,imageIndex:null,lastImageIndex:null,_resizeTimer:null,_playing:!1,_playingTimer:null,_playingTimerEvent:null,_loadingImage:null,_loadingImageWrap:null,_loadingImageVisible:!1,_loadingImageTimer:null,_loadingImageContainer:null,_initialHeight:null,_initialWidth:null,initializer:function(){this._albumLoader=new l.FL.SlideshowAlbumLoader({randomize:this.get("randomize")})},renderUI:function(){this._renderLoadingImage()},bindUI:function(){this._albumLoader.on("complete",this._loadAlbumComplete,this),l.one(window).on("fl-slideshow-base|resize",this._delayResize,this),l.one(window).on("fl-slideshow-base|orientationchange",this._delayResize,this),l.Node.one("body").on("keydown",l.bind(this._onKey,this))},syncUI:function(){this.get("boundingBox").addClass("fl-slideshow-"+this.get("color")),this.resize(),this.get("loadOnRender")&&this.loadAlbum(this.get("defaultAlbum"),this.get("defaultImage"))},addAlbum:function(t){var e=this.get("source"),i=e.length;e[i]=t,e[i].index=i,this.set("source",e)},loadAlbum:function(t,e){var i=this.get("source"),e=void 0===e?0:e;this.imageIndex=null,this.lastImageIndex=null,this.fire("albumLoadStart"),this.once("albumLoadComplete",l.bind(this.loadImage,this,e)),i[t]&&"album-data"==i[t].type?(this.albums[t]=i[t].data,this._loadAlbumComplete({albumInfo:this.albums[t]})):i[t]&&this.albums[t]?this._loadAlbumComplete({albumInfo:this.albums[t]}):this._albumLoader.load(i[t]||i[0])},_loadAlbumComplete:function(t){this.albums[t.albumInfo.index]=t.albumInfo,this.albumInfo=t.albumInfo,this.albumIndex=t.albumInfo.index,this.fire("albumLoadComplete"),this.get("autoPlay")&&(this._playingTimerStart(),this.fire("played"),this._playing=!0)},loadImage:function(t){this._playing&&this._playingTimerStart(),t=(t=t<0?this.albumInfo.images.length-1:t)>=this.albumInfo.images.length?0:t,this.lastImageIndex=this.imageIndex,this.imageIndex=t,this.imageInfo=this.albumInfo.images[t],this.fire("imageLoadComplete",{imageInfo:this.imageInfo})},prevImage:function(){this.get("pauseOnNextOrPrev")&&this.pause(),this.loadImage(this.imageIndex-1),this.fire("prevImage")},nextImage:function(){this.get("pauseOnNextOrPrev")&&this.pause(),this.loadImage(this.imageIndex+1),this.fire("nextImage")},_onKey:function(t){switch(t.keyCode){case 37:this.prevImage();break;case 39:this.nextImage()}},resize:function(){var t=this.get("stretchy"),e=this.get("stretchyType"),i=parseInt(l.one("body").get("winWidth"),10),s=this.get("responsiveThreshold");s<i&&t&&"window"==e?this._stretchyWindowResize():i<=s||t&&"ratio"==e?this._stretchyRatioResize():this._standardResize(),this.fire("resize")},_standardResize:function(){var t=this.get("stretchy"),e=this.get("stretchyType"),i=this.get("boundingBox"),s=i.get("parentNode"),n=parseInt(s.getComputedStyle("height"),10),s=parseInt(s.getComputedStyle("width"),10),a=this.get("height"),o=this.get("width");i.hasClass("fl-fullscreen-active")?this._stretchyWindowResize():t&&"contain"==e?(i.setStyle("height",n+"px"),i.setStyle("width",s+"px")):l.Lang.isNumber(a)?(i.setStyle("height",a+"px"),o?i.setStyle("width",o+"px"):i.setStyle("width",s+"px")):this._stretchyRatioResize()},_stretchyWindowResize:function(){var t=this.get("boundingBox"),e=this.get("stretchyVerticalSpace"),i=parseInt(t.getStyle("paddingTop"),10),s=parseInt(t.getStyle("paddingBottom"),10),n=parseInt(l.one("body").get("winHeight"),10),a="";t.hasClass("fl-fullscreen-active")&&(e=0,a=parseInt(l.one("body").get("winWidth"),10)+"px"),t.setStyle("height",n-i-s-e+"px"),t.setStyle("width",a)},_stretchyRatioResize:function(){var t=this.get("boundingBox"),e=t.get("parentNode"),i=this.get("stretchyRatio"),s=parseInt(t.getStyle("paddingTop"),10),n=parseInt(t.getStyle("paddingBottom"),10),e=parseInt(e.getComputedStyle("width"),10),a=parseInt(l.one("body").get("winHeight"),10),o=parseInt(l.one("body").get("winWidth"),10),e=e*i,i="";t.hasClass("fl-fullscreen-active")&&(e=a,i=o),t.setStyle("height",e=e-s-n+"px"),t.setStyle("width",i)},_delayResize:function(){this._resizeTimer&&this._resizeTimer.cancel(),this._resizeTimer=l.later(300,this,this.resize)},play:function(){this._playingTimer=l.later(this.get("speed"),this,this._playingTimerComplete),this.fire("played"),this._playing=!0},pause:function(){this._playingTimerCancel(),this.fire("paused"),this._playing=!1},_setPlayingTimerEvent:function(t,e){this._playingTimerEvent={obj:t,e:e}},_playingTimerStart:function(t){this._playingTimerCancel(),t||null===this._playingTimerEvent?this._playingTimer=l.later(this.get("speed"),this,this._playingTimerComplete):this._playingTimerEvent.obj.once("fl-slideshow-base|"+this._playingTimerEvent.e,l.bind(this._playingTimerStart,this))},_playingTimerComplete:function(){this.loadImage(this.imageIndex+1),this.fire("playingTimerComplete")},_playingTimerCancel:function(){this._playingTimer&&this._playingTimer.cancel(),this._playingTimerEvent&&this._playingTimerEvent.obj.detach("fl-slideshow-base|"+this._playingTimerEvent.e)},_renderLoadingImage:function(){var t=l.merge({lines:11,length:6,width:2,radius:7,color:"",speed:1,trail:60,shadow:!1},this.get("loadingImageSettings"));this.get("loadingImageEnabled")&&(""===t.color&&(t.color=this._colorToHex(l.one("body").getStyle("color"))),this._loadingImage=new l.FL.Spinner(t),this._loadingImageWrap=l.Node.create('<div class="fl-loading-image"></div>'),this._loadingImageWrap.setStyles({position:"absolute","z-index":"1000"}))},_showLoadingImage:function(){this._loadingImage&&!this._loadingImageVisible&&(this._loadingImageVisible=!0,this._loadingImage.spin(),this._loadingImageWrap.insert(this._loadingImage.el),(null!==this._loadingImageContainer?this._loadingImageContainer:this.get("contentBox")).insert(this._loadingImageWrap),this._positionLoadingImage())},_showLoadingImageWithDelay:function(){this._loadingImage&&(this._loadingImageTimer=l.later(1e3,this,this._showLoadingImage))},_hideLoadingImage:function(){this._loadingImageTimer&&(this._loadingImageTimer.cancel(),this._loadingImageTimer=null),this._loadingImage&&this._loadingImageVisible&&(this._loadingImageVisible=!1,this._loadingImage.stop(),this._loadingImageWrap.remove())},_positionLoadingImage:function(){var t,e,i,s,n;this._loadingImage&&this._loadingImageVisible&&(t=this._loadingImageWrap,e=parseInt(t.getComputedStyle("height"),10),i=parseInt(t.getComputedStyle("width"),10),n=t.get("parentNode"),s=parseInt(n.getComputedStyle("height"),10),n=parseInt(n.getComputedStyle("width"),10),t.setStyles({left:(n-i)/2+"px",top:(s-e)/2+"px"}),l.one(this._loadingImage.el).setStyles({left:"50%",top:"50%"}))},_colorToHex:function(t){var e,i;return"#"===t.substr(0,1)?t:null===(t=/(.*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t))?"#000":(e=parseInt(t[2],10),i=parseInt(t[3],10),i=(i=parseInt(t[4],10)|i<<8|e<<16).toString(16),t[1]+"#"+(i="0"===i?"000":i))}},{CSS_PREFIX:"fl-slideshow-base",ATTRS:{color:{value:"dark",writeOnce:!0},source:{value:[],setter:function(t){t.constructor==Object&&(t=[t]);for(var e=0;e<t.length;e++)t[e].index=e;return t}},defaultAlbum:{value:0},defaultImage:{value:0},loadOnRender:{value:!0},autoPlay:{value:!0},pauseOnNextOrPrev:{value:!0},randomize:{value:!1},speed:{value:4e3},responsiveThreshold:{value:600},stretchy:{value:!1},stretchyType:{value:"ratio"},stretchyVerticalSpace:{value:0},stretchyRatio:{value:.7},loadingImageEnabled:{value:!0},loadingImageSettings:{value:{}}}})},"2.0.0",{requires:["node","base","widget","widget-parent","widget-child","fl-slideshow-album-loader","fl-spinner"]}),YUI.add("fl-smugmug-api",function(t){t.namespace("FL").SmugMugAPI=t.Base.create("fl-smugmug-api",t.Base,[],{_sessionID:null,_requestURL:null,initializer:function(){this._resetRequestURL()},addParam:function(t,e){this._requestURL=this._requestURL+"&"+t+"="+e},loginAnon:function(){this.addParam("method","smugmug.login.anonymously"),this.once("complete",this._loginAnonComplete),this.request()},_loginAnonComplete:function(t){t.Login&&(this._sessionID=t.Login.Session.id)},request:function(){this.addParam("Callback","{callback}"),t.jsonp(this._requestURL,{on:{success:this._requestComplete,timeout:function(){}},context:this,timeout:6e4,args:[]})},_requestComplete:function(t){this._resetRequestURL(),this.fire("complete",t)},_resetRequestURL:function(){this._requestURL=this.get("apiURL")+"?APIKey="+this.get("apiKey"),this._sessionID&&this.addParam("SessionID",this._sessionID)}},{ATTRS:{apiURL:{value:"https://api.smugmug.com/services/api/json/1.3.0/"},apiKey:{value:"7w6kuU5Ee6KSgRRExf2KLgppdkez9JD2"}}})},"2.0.0",{requires:["base","jsonp"]}),YUI.add("fl-spinner",function(U){var e,g=window,s=document,a=void 0,h="width",r="length",u="radius",d="lines",m="trail",c="color",_="opacity",v="speed",p="shadow",o="style",f="height",b="left",y="top",x="px",n="childNodes",I="firstChild",l="parentNode",S="position",z="relative",M="absolute",A="animation",w="transform",T="Timeout",B="#000",t=o+"Sheets",C="webkit0Moz0ms0O".split(0),D={};function L(t,e){for(var i=~~((t[r]-1)/2),s=1;s<=i;s++)e(t[2*s-1],t[2*s])}function N(t){var i=s.createElement(t||"div");return L(arguments,function(t,e){i[t]=e}),i}function P(t,e,i){return i&&!i[l]&&P(t,i),t.insertBefore(e,i||null),t}P(s.getElementsByTagName("head")[0],N(o));var O=s[t][s[t][r]-1];function R(t,e){var i,s,n=t[o];if(n[e]!==a)return e;for(e=e.charAt(0).toUpperCase()+e.slice(1),s=0;s<C[r];s++)if(n[i=C[s]+e]!==a)return i}function k(i){return L(arguments,function(t,e){i[o][R(i,t)||t]=e}),i}function H(t){this.opts=function(i){return L(arguments,function(t,e){i[t]===a&&(i[t]=e)}),i}(t||{},d,12,m,100,r,7,h,5,u,10,c,B,_,.25,v,1)}(t=H.prototype={spin:function(t){var s,n,a,o,l,h=this,r=h.el=h[d](h.opts);return t&&P(t,k(r,b,~~(t.offsetWidth/2)+x,y,~~(t.offsetHeight/2)+x),t[I]),e||(s=h.opts,n=0,a=20/s[v],o=(1-s[_])/(a*s[m]/100),l=a/s[d],function t(){n++;for(var e=s[d];e;e--){var i=Math.max(1-(n+e*l)%a*o,s[_]);h[_](r,s[d]-e,i,s)}h[T]=h.el&&g["set"+T](t,50)}()),h},stop:function(){var t=this.el;return g["clear"+T](this[T]),t&&t[l]&&t[l].removeChild(t),this.el=a,this}})[d]=function(i){var t,e=k(N(),S,z),s=((t,e)=>{var i,s=[_,e,~~(100*t)].join("-"),n="{"+_+":"+t+"}";if(!D[s]){for(i=0;i<C[r];i++)try{O.insertRule("@"+(C[i]&&"-"+C[i].toLowerCase()+"-"||"")+"keyframes "+s+"{0%{"+_+":1}"+e+"%"+n+"to"+n+"}",O.cssRules[r])}catch(t){}D[s]=1}return s})(i[_],i[m]),n=0;function a(t,e){return k(N(),S,M,h,i[r]+i[h]+x,f,i[h]+x,"background",t,"boxShadow",e,w+"Origin",b,w,"rotate("+~~(360/i[d]*n)+"deg) translate("+i[u]+x+",0)","borderRadius","100em")}for(;n<i[d];n++)t=k(N(),S,M,y,1+~(i[h]/2)+x,w,"translate3d(0,0,0)",A,s+" "+1/i[v]+"s linear infinite "+(1/i[d]/i[v]*n-1/i[v])+"s"),i[p]&&P(t,k(a(B,"0 0 4px "+B),y,2+x)),P(e,P(t,a(i[c],"0 0 1px rgba(0,0,0,.1)")));return e},t[_]=function(t,e,i){t[n][e][o][_]=i};var i,W="behavior",V="url(#default#VML)",E="group0roundrect0fill0stroke".split(0),F=k(N(E[0]),W,V);if(!R(F,w)&&F.adj){for(i=0;i<E[r];i++)O.addRule(E[i],W+":"+V);t[d]=function(){var s=this.opts,n=s[r]+s[h],t=2*n;function a(){return k(N(E[0],"coordsize",t+" "+t,"coordOrigin",-n+" "+-n),h,t,f,t)}var e,o=a(),i=~(s[r]+s[u]+s[h])+x;function l(t,e,i){P(o,P(k(a(),"rotation",360/s[d]*t+"deg",b,~~e),P(k(N(E[1],"arcsize",1),h,n,f,s[h],b,s[u],y,-s[h]/2,"filter",i),N(E[2],c,s[c],_,s[_]),N(E[3],_,0))))}if(s[p])for(e=1;e<=s[d];e++)l(e,-2,"progid:DXImage"+w+".Microsoft.Blur(pixel"+u+"=2,make"+p+"=1,"+p+_+"=.3)");for(e=1;e<=s[d];e++)l(e);return P(k(N(),"margin",i+" 0 0 "+i,S,z),o)},t[_]=function(t,e,i,s){s=s[p]&&s[d]||0,t[I][n][e+s][I][I][_]=i}}else e=R(F,A);U.namespace("FL").Spinner=H},"2.0.0"),YUI.add("fl-utils",function(n){n.namespace("FL").Utils={cssSupport:function(t){var e=(document.body||document.documentElement).style,i=["Moz","Webkit","Khtml","O","ms","Icab"],s=0;if("transform"==t&&n.UA.gecko&&n.UA.gecko<4)return!1;if("transform"==t&&0<n.UA.opera)return!1;if("transform"==t&&0<n.UA.ie&&n.UA.ie<10)return!1;if("transform"==t&&navigator.userAgent.match(/Trident/))return!1;if(void 0===e)return!1;if("string"==typeof e[t])return!0;for(t=t.charAt(0).toUpperCase()+t.substr(1);s<i.length;s++)if("string"==typeof e[i[s]+t])return!0}}},"2.0.0");
!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});
(e=>{"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)})(function(c){function e(){}function d(e,t){f.ev.on(x+e+I,t)}function u(e,t,n,o){var i=document.createElement("div");return i.className="mfp-"+e,n&&(i.innerHTML=n),o?t&&t.appendChild(i):(i=c(i),t&&i.appendTo(t)),i}function p(e,t){f.ev.triggerHandler(x+e,t),f.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),f.st.callbacks[e])&&f.st.callbacks[e].apply(f,Array.isArray(t)?t:[t])}function m(e){return e===A&&f.currTemplate.closeBtn||(f.currTemplate.closeBtn=c(f.st.closeMarkup.replace(/%title%/g,f.st.tClose)),A=e),f.currTemplate.closeBtn}function r(){c.magnificPopup.instance||((f=new e).init(),c.magnificPopup.instance=f)}function a(){y&&(v.after(y.addClass(l)).detach(),y=null)}function i(){n&&c(document.body).removeClass(n)}function t(){i(),f.req&&f.req.abort()}var f,o,g,s,h,A,l,v,y,n,w="Close",F="BeforeClose",C="MarkupParse",b="Open",j="Change",x="mfp",I="."+x,k="mfp-ready",N="mfp-removing",T="mfp-prevent-close",P=!!window.jQuery,_=c(window),S=(c.magnificPopup={instance:null,proto:e.prototype={constructor:e,init:function(){var e=navigator.appVersion;f.isLowIE=f.isIE8=document.all&&!document.addEventListener,f.isAndroid=/android/gi.test(e),f.isIOS=/iphone|ipad|ipod/gi.test(e),f.supportsTransition=(()=>{var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1})(),f.probablyMobile=f.isAndroid||f.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),g=c(document),f.popupsCache={}},open:function(e){if(!1===e.isObj){f.items=e.items.toArray(),f.index=0;for(var t,n=e.items,o=0;o<n.length;o++)if((t=(t=n[o]).parsed?t.el[0]:t)===e.el[0]){f.index=o;break}}else f.items=Array.isArray(e.items)?e.items:[e.items],f.index=e.index||0;if(!f.isOpen){f.types=[],h="",e.mainEl&&e.mainEl.length?f.ev=e.mainEl.eq(0):f.ev=g,e.key?(f.popupsCache[e.key]||(f.popupsCache[e.key]={}),f.currTemplate=f.popupsCache[e.key]):f.currTemplate={},f.st=c.extend(!0,{},c.magnificPopup.defaults,e),f.fixedContentPos="auto"===f.st.fixedContentPos?!f.probablyMobile:f.st.fixedContentPos,f.st.modal&&(f.st.closeOnContentClick=!1,f.st.closeOnBgClick=!1,f.st.showCloseBtn=!1,f.st.enableEscapeKey=!1),f.bgOverlay||(f.bgOverlay=u("bg").on("click"+I,function(){f.close()}),f.wrap=u("wrap").attr("tabindex",-1).attr("role","dialog").attr("aria-modal",!0).attr("aria-label","Popup Image").on("click"+I,function(e){f._checkIfClose(e.target)&&f.close()}),f.container=u("container",f.wrap)),f.contentContainer=u("content"),f.st.preloader&&(f.preloader=u("preloader",f.container,f.st.tLoading));var i=c.magnificPopup.modules;for(o=0;o<i.length;o++){var r=(r=i[o]).charAt(0).toUpperCase()+r.slice(1);f["init"+r].call(f)}p("BeforeOpen"),f.st.showCloseBtn&&(f.st.closeBtnInside?(d(C,function(e,t,n,o){n.close_replaceWith=m(o.type)}),h+=" mfp-close-btn-in"):f.wrap.append(m())),f.st.alignTop&&(h+=" mfp-align-top"),f.fixedContentPos?f.wrap.css({overflow:f.st.overflowY,overflowX:"hidden",overflowY:f.st.overflowY}):f.wrap.css({top:_.scrollTop(),position:"absolute"}),!1!==f.st.fixedBgPos&&("auto"!==f.st.fixedBgPos||f.fixedContentPos)||f.bgOverlay.css({height:g.height(),position:"absolute"}),f.st.enableEscapeKey&&g.on("keyup"+I,function(e){27===e.keyCode&&f.close()}),_.on("resize"+I,function(){f.updateSize()}),f.st.closeOnContentClick||(h+=" mfp-auto-cursor"),h&&f.wrap.addClass(h);var a=f.wH=_.height(),s={},l=(f.fixedContentPos&&f._hasScrollBar(a)&&(l=f._getScrollbarSize())&&(s.marginRight=l),f.fixedContentPos&&(f.isIE7?c("body, html").css("overflow","hidden"):s.overflow="hidden"),f.st.mainClass);return f.isIE7&&(l+=" mfp-ie7"),l&&f._addClassToMFP(l),f.updateItemHTML(),p("BuildControls"),c("html").css(s),f.bgOverlay.add(f.wrap).prependTo(f.st.prependTo||c(document.body)),f._lastFocusedEl=document.activeElement,setTimeout(function(){f.content?(f._addClassToMFP(k),f._setFocus()):f.bgOverlay.addClass(k),g.on("focusin"+I,f._onFocusIn)},16),f.isOpen=!0,f.updateSize(a),p(b),e}f.updateItemHTML()},close:function(){f.isOpen&&(p(F),f.isOpen=!1,f.st.removalDelay&&!f.isLowIE&&f.supportsTransition?(f._addClassToMFP(N),setTimeout(function(){f._close()},f.st.removalDelay)):f._close())},_close:function(){p(w);var e=N+" "+k+" ";f.bgOverlay.detach(),f.wrap.detach(),f.container.empty(),f.st.mainClass&&(e+=f.st.mainClass+" "),f._removeClassFromMFP(e),f.fixedContentPos&&(e={marginRight:""},f.isIE7?c("body, html").css("overflow",""):e.overflow="",c("html").css(e)),g.off("keyup.mfp focusin"+I),f.ev.off(I),f.wrap.attr("class","mfp-wrap").removeAttr("style"),f.bgOverlay.attr("class","mfp-bg"),f.container.attr("class","mfp-container"),!f.st.showCloseBtn||f.st.closeBtnInside&&!0!==f.currTemplate[f.currItem.type]||f.currTemplate.closeBtn&&f.currTemplate.closeBtn.detach(),f.st.autoFocusLast&&f._lastFocusedEl&&c(f._lastFocusedEl).trigger("focus"),f.currItem=null,f.content=null,f.currTemplate=null,f.prevHeight=0,p("AfterClose")},updateSize:function(e){var t;f.isIOS?(t=document.documentElement.clientWidth/window.innerWidth,f.wrap.css("height",t=window.innerHeight*t),f.wH=t):f.wH=e||_.height(),f.fixedContentPos||f.wrap.css("height",f.wH),p("Resize")},updateItemHTML:function(){var e=f.items[f.index],t=(f.contentContainer.detach(),f.content&&f.content.detach(),(e=e.parsed?e:f.parseEl(f.index)).type),n=(p("BeforeChange",[f.currItem?f.currItem.type:"",t]),f.currItem=e,f.currTemplate[t]||(n=!!f.st[t]&&f.st[t].markup,p("FirstMarkupParse",n),f.currTemplate[t]=!n||c(n)),s&&s!==e.type&&f.container.removeClass("mfp-"+s+"-holder"),f["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,f.currTemplate[t]));f.appendContent(n,t),e.preloaded=!0,p(j,e),s=e.type,f.container.prepend(f.contentContainer),p("AfterChange")},appendContent:function(e,t){(f.content=e)?f.st.showCloseBtn&&f.st.closeBtnInside&&!0===f.currTemplate[t]?f.content.find(".mfp-close").length||f.content.append(m()):f.content=e:f.content="",p("BeforeAppend"),f.container.addClass("mfp-"+t+"-holder"),f.contentContainer.append(f.content)},parseEl:function(e){var t,n=f.items[e];if((n=n.tagName?{el:c(n)}:(t=n.type,{data:n,src:n.src})).el){for(var o=f.types,i=0;i<o.length;i++)if(n.el.hasClass("mfp-"+o[i])){t=o[i];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=t||f.st.type||"inline",n.index=e,n.parsed=!0,f.items[e]=n,p("ElementParse",n),f.items[e]},addGroup:function(t,n){function e(e){e.mfpEl=this,f._openClick(e,t,n)}var o="click.magnificPopup";(n=n||{}).mainEl=t,n.items?(n.isObj=!0,t.off(o).on(o,e)):(n.isObj=!1,n.delegate?t.off(o).on(o,n.delegate,e):(n.items=t).off(o).on(o,e))},_openClick:function(e,t,n){var o=(void 0!==n.midClick?n:c.magnificPopup.defaults).midClick;if(o||!(2===e.which||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)){o=(void 0!==n.disableOn?n:c.magnificPopup.defaults).disableOn;if(o)if("function"==typeof o){if(!o.call(f))return!0}else if(_.width()<o)return!0;e.type&&(e.preventDefault(),f.isOpen)&&e.stopPropagation(),n.el=c(e.mfpEl),n.delegate&&(n.items=t.find(n.delegate)),f.open(n)}},updateStatus:function(e,t){var n;f.preloader&&(o!==e&&f.container.removeClass("mfp-s-"+o),n={status:e,text:t=t||"loading"!==e?t:f.st.tLoading},p("UpdateStatus",n),e=n.status,t=n.text,f.st.allowHTMLInStatusIndicator?f.preloader.html(t):f.preloader.text(t),f.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),f.container.addClass("mfp-s-"+e),o=e)},_checkIfClose:function(e){if(!c(e).closest("."+T).length){var t=f.st.closeOnContentClick,n=f.st.closeOnBgClick;if(t&&n)return!0;if(!f.content||c(e).closest(".mfp-close").length||f.preloader&&e===f.preloader[0])return!0;if(e===f.content[0]||c.contains(f.content[0],e)){if(t)return!0}else if(n&&c.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){f.bgOverlay.addClass(e),f.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),f.wrap.removeClass(e)},_hasScrollBar:function(e){return(f.isIE7?g.height():document.body.scrollHeight)>(e||_.height())},_setFocus:function(){(f.st.focus?f.content.find(f.st.focus).eq(0):f.wrap).trigger("focus")},_onFocusIn:function(e){if(e.target!==f.wrap[0]&&!c.contains(f.wrap[0],e.target))return f._setFocus(),!1},_parseMarkup:function(i,e,t){var r;t.data&&(e=c.extend(t.data,e)),p(C,[i,e,t]),c.each(e,function(e,t){if(void 0===t||!1===t)return!0;var n,o;1<(r=e.split("_")).length?0<(n=i.find(I+"-"+r[0])).length&&("replaceWith"===(o=r[1])?n[0]!==t[0]&&n.replaceWith(t):"img"===o?n.is("img")?n.attr("src",t):n.replaceWith(c("<img>").attr("src",t).attr("class",n.attr("class"))):n.attr(r[1],t)):f.st.allowHTMLInTemplate?i.find(I+"-"+e).html(t):i.find(I+"-"+e).text(t)})},_getScrollbarSize:function(){var e;return void 0===f.scrollbarSize&&((e=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),f.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),f.scrollbarSize}},modules:[],open:function(e,t){return r(),(e=e?c.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return c.magnificPopup.instance&&c.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(c.magnificPopup.defaults[e]=t.options),c.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close" aria-label="%title%"><span aria-hidden="true">&times;</span></button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0,allowHTMLInStatusIndicator:!1,allowHTMLInTemplate:!1}},c.fn.magnificPopup=function(e){r();var t,n,o,i=c(this);return"string"==typeof e?"open"===e?(t=P?i.data("magnificPopup"):i[0].magnificPopup,n=parseInt(arguments[1],10)||0,o=t.items?t.items[n]:(o=i,(o=t.delegate?o.find(t.delegate):o).eq(n)),f._openClick({mfpEl:o},i,t)):f.isOpen&&f[e].apply(f,Array.prototype.slice.call(arguments,1)):(e=c.extend(!0,{},e),P?i.data("magnificPopup",e):i[0].magnificPopup=e,f.addGroup(i,e)),i},"inline"),E=(c.magnificPopup.registerModule(S,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){f.types.push(S),d(w+"."+S,function(){a()})},getInline:function(e,t){var n,o,i;return a(),e.src?(n=f.st.inline,(o=c(e.src)).length?((i=o[0].parentNode)&&i.tagName&&(v||(l=n.hiddenClass,v=u(l),l="mfp-"+l),y=o.after(v).detach().removeClass(l)),f.updateStatus("ready")):(f.updateStatus("error",n.tNotFound),o=c("<div>")),e.inlineElement=o):(f.updateStatus("ready"),f._parseMarkup(t,{},e),t)}}}),"ajax");c.magnificPopup.registerModule(E,{options:{settings:null,cursor:"mfp-ajax-cur",tError:"The content could not be loaded."},proto:{initAjax:function(){f.types.push(E),n=f.st.ajax.cursor,d(w+"."+E,t),d("BeforeChange."+E,t)},getAjax:function(o){n&&c(document.body).addClass(n),f.updateStatus("loading");var e=c.extend({url:o.src,success:function(e,t,n){e={data:e,xhr:n};p("ParseAjax",e),f.appendContent(c(e.data),E),o.finished=!0,i(),f._setFocus(),setTimeout(function(){f.wrap.addClass(k)},16),f.updateStatus("ready"),p("AjaxContentAdded")},error:function(){i(),o.finished=o.loadError=!0,f.updateStatus("error",f.st.ajax.tError.replace("%url%",o.src))}},f.st.ajax.settings);return f.req=c.ajax(e),""}}});var z;c.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:"The image could not be loaded."},proto:{initImage:function(){var e=f.st.image,t=".image";f.types.push("image"),d(b+t,function(){"image"===f.currItem.type&&e.cursor&&c(document.body).addClass(e.cursor)}),d(w+t,function(){e.cursor&&c(document.body).removeClass(e.cursor),_.off("resize"+I)}),d("Resize"+t,f.resizeImage),f.isLowIE&&d("AfterChange",f.resizeImage)},resizeImage:function(){var e,t=f.currItem;t&&t.img&&f.st.image.verticalFit&&(e=0,f.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",f.wH-e))},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,z&&clearInterval(z),e.isCheckingImgSize=!1,p("ImageHasSize",e),e.imgHidden)&&(f.content&&f.content.removeClass("mfp-loading"),e.imgHidden=!1)},findImageSize:function(t){function n(e){z&&clearInterval(z),z=setInterval(function(){0<i.naturalWidth?f._onImageHasSize(t):(200<o&&clearInterval(z),3===++o?n(10):40===o?n(50):100===o&&n(500))},e)}var o=0,i=t.img[0];n(1)},getImage:function(e,t){function n(){e&&(e.img.off(".mfploader"),e===f.currItem&&(f._onImageHasSize(e),f.updateStatus("error",a.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)}function o(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===f.currItem&&(f._onImageHasSize(e),f.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,p("ImageLoadComplete")):++r<200?setTimeout(o,100):n())}var i,r=0,a=f.st.image,s=t.find(".mfp-img");return s.length&&((i=document.createElement("img")).className="mfp-img",e.el&&e.el.find("img").length&&(i.alt=e.el.find("img").attr("alt")),e.img=c(i).on("load.mfploader",o).on("error.mfploader",n),i.src=e.src,s.is("img")&&(e.img=e.img.clone()),0<(i=e.img[0]).naturalWidth?e.hasSize=!0:i.width||(e.hasSize=!1)),f._parseMarkup(t,{title:(e=>{if(e.data&&void 0!==e.data.title)return e.data.title;var t=f.st.image.titleSrc;if(t){if("function"==typeof t)return t.call(f,e);if(e.el)return e.el.attr(t)||""}return""})(e),img_replaceWith:e.img},e),f.resizeImage(),e.hasSize?(z&&clearInterval(z),e.loadError?(t.addClass("mfp-loading"),f.updateStatus("error",a.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),f.updateStatus("ready"))):(f.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),f.findImageSize(e))),t}}});function O(e){var t;f.currTemplate[L]&&(t=f.currTemplate[L].find("iframe")).length&&(e||(t[0].src="//about:blank"),f.isIE8)&&t.css("display",e?"block":"none")}function M(e){var t=f.items.length;return t-1<e?e-t:e<0?t+e:e}function D(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)}c.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,t,n,o,i,r,a=f.st.zoom,s=".zoom";a.enabled&&f.supportsTransition&&(t=a.duration,n=function(e){var e=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),t="all "+a.duration/1e3+"s "+a.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return n["-webkit-"+o]=n["-moz-"+o]=n["-o-"+o]=n[o]=t,e.css(n),e},o=function(){f.content.css("visibility","visible")},d("BuildControls"+s,function(){f._allowZoom()&&(clearTimeout(i),f.content.css("visibility","hidden"),(e=f._getItemToZoom())?((r=n(e)).css(f._getOffset()),f.wrap.append(r),i=setTimeout(function(){r.css(f._getOffset(!0)),i=setTimeout(function(){o(),setTimeout(function(){r.remove(),e=r=null,p("ZoomAnimationEnded")},16)},t)},16)):o())}),d(F+s,function(){if(f._allowZoom()){if(clearTimeout(i),f.st.removalDelay=t,!e){if(!(e=f._getItemToZoom()))return;r=n(e)}r.css(f._getOffset(!0)),f.wrap.append(r),f.content.css("visibility","hidden"),setTimeout(function(){r.css(f._getOffset())},16)}}),d(w+s,function(){f._allowZoom()&&(o(),r&&r.remove(),e=null)}))},_allowZoom:function(){return"image"===f.currItem.type},_getItemToZoom:function(){return!!f.currItem.hasSize&&f.currItem.img},_getOffset:function(e){var e=e?f.currItem.img:f.st.zoom.opener(f.currItem.el||f.currItem),t=e.offset(),n=parseInt(e.css("padding-top"),10),o=parseInt(e.css("padding-bottom"),10),e=(t.top-=c(window).scrollTop()-n,{width:e.width(),height:(P?e.innerHeight():e[0].offsetHeight)-o-n});return(B=void 0===B?void 0!==document.createElement("p").style.MozTransform:B)?e["-moz-transform"]=e.transform="translate("+t.left+"px,"+t.top+"px)":(e.left=t.left,e.top=t.top),e}}});var B,L="iframe",H=(c.magnificPopup.registerModule(L,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},youtu_be:{index:"youtu.be",id:"/",src:"//www.youtube.com/embed/%id%?autoplay=1"},youtube_nocookie:{index:"youtube-nocookie.com",id:"/",src:"//www.youtube-nocookie.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){f.types.push(L),d("BeforeChange",function(e,t,n){t!==n&&(t===L?O():n===L&&O(!0))}),d(w+"."+L,function(){O()})},getIframe:function(e,t){var n=e.src,o=f.st.iframe,i=(c.each(o.patterns,function(){if(-1<n.indexOf(this.index))return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1}),{});return o.srcAction&&(i[o.srcAction]=n),f._parseMarkup(t,i,e),f.updateStatus("ready"),t}}}),c.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%",langDir:null,loop:!0},proto:{initGallery:function(){var r=f.st.gallery,e=".mfp-gallery";if(f.direction=!0,!r||!r.enabled)return!1;r.langDir||(r.langDir=document.dir||"ltr"),h+=" mfp-gallery",d(b+e,function(){r.navigateByImgClick&&f.wrap.on("click"+e,".mfp-img",function(){if(1<f.items.length)return f.next(),!1}),g.on("keydown"+e,function(e){37===e.keyCode?"rtl"===r.langDir?f.next():f.prev():39===e.keyCode&&("rtl"===r.langDir?f.prev():f.next())}),f.updateGalleryButtons()}),d("UpdateStatus"+e,function(){f.updateGalleryButtons()}),d("UpdateStatus"+e,function(e,t){t.text&&(t.text=D(t.text,f.currItem.index,f.items.length))}),d(C+e,function(e,t,n,o){var i=f.items.length;n.counter=1<i?D(r.tCounter,o.index,i):""}),d("BuildControls"+e,function(){var e,t,n,o,i;1<f.items.length&&r.arrows&&!f.arrowLeft&&(t="rtl"===r.langDir?(i=r.tNext,e=r.tPrev,o="next","prev"):(i=r.tPrev,e=r.tNext,o="prev","next"),n=r.arrowMarkup,o=f.arrowLeft=c(n.replace(/%title%/gi,i).replace(/%action%/gi,o).replace(/%dir%/gi,"left")).attr("aria-label",i).addClass(T),i=f.arrowRight=c(n.replace(/%title%/gi,e).replace(/%action%/gi,t).replace(/%dir%/gi,"right")).attr("aria-label",e).addClass(T),"rtl"===r.langDir?(f.arrowNext=o,f.arrowPrev=i):(f.arrowNext=i,f.arrowPrev=o),o.on("click",function(){"rtl"===r.langDir?f.next():f.prev()}),i.on("click",function(){"rtl"===r.langDir?f.prev():f.next()}),f.container.append(o.add(i)),f.container.attr("role","region").attr("aria-label","carousel"))}),d(j+e,function(){f._preloadTimeout&&clearTimeout(f._preloadTimeout),f._preloadTimeout=setTimeout(function(){f.preloadNearbyImages(),f._preloadTimeout=null},16)}),d(w+e,function(){g.off(e),f.wrap.off("click"+e),f.arrowRight=f.arrowLeft=null})},next:function(){var e=M(f.index+1);if(!f.st.gallery.loop&&0===e)return!1;f.direction=!0,f.index=e,f.updateItemHTML()},prev:function(){var e=f.index-1;if(!f.st.gallery.loop&&e<0)return!1;f.direction=!1,f.index=M(e),f.updateItemHTML()},goTo:function(e){f.direction=e>=f.index,f.index=e,f.updateItemHTML()},preloadNearbyImages:function(){for(var e=f.st.gallery.preload,t=Math.min(e[0],f.items.length),n=Math.min(e[1],f.items.length),o=1;o<=(f.direction?n:t);o++)f._preloadItem(f.index+o);for(o=1;o<=(f.direction?t:n);o++)f._preloadItem(f.index-o)},_preloadItem:function(e){var t;e=M(e),f.items[e].preloaded||((t=f.items[e]).parsed||(t=f.parseEl(e)),p("LazyLoad",t),"image"===t.type&&(t.img=c('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,p("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0)},updateGalleryButtons:function(){f.st.gallery.loop||"object"!=typeof f.arrowPrev||null===f.arrowPrev||(0===f.index?f.arrowPrev.hide():f.arrowPrev.show(),f.index===f.items.length-1?f.arrowNext.hide():f.arrowNext.show())}}}),"retina");c.magnificPopup.registerModule(H,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){var n,o;1<window.devicePixelRatio&&(n=f.st.retina,o=n.ratio,1<(o=isNaN(o)?o():o))&&(d("ImageHasSize."+H,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/o,width:"100%"})}),d("ElementParse."+H,function(e,t){t.src=n.replaceSrc(t,o)}))}}}),r()});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Swiper=t()}(this,(function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s,a){void 0===s&&(s={}),void 0===a&&(a={}),Object.keys(a).forEach((i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}class n extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function l(e){void 0===e&&(e=[]);const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...l(e)):t.push(e)})),t}function o(e,t){return Array.prototype.filter.call(e,t)}function d(e,t){const s=r(),i=a();let l=[];if(!t&&e instanceof n)return e;if(!e)return new n(l);if("string"==typeof e){const s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){let e="div";0===s.indexOf("<li")&&(e="ul"),0===s.indexOf("<tr")&&(e="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(e="tr"),0===s.indexOf("<tbody")&&(e="table"),0===s.indexOf("<option")&&(e="select");const t=i.createElement(e);t.innerHTML=s;for(let e=0;e<t.childNodes.length;e+=1)l.push(t.childNodes[e])}else l=function(e,t){if("string"!=typeof e)return[e];const s=[],a=t.querySelectorAll(e);for(let e=0;e<a.length;e+=1)s.push(a[e]);return s}(e.trim(),t||i)}else if(e.nodeType||e===s||e===i)l.push(e);else if(Array.isArray(e)){if(e instanceof n)return e;l=e}return new n(function(e){const t=[];for(let s=0;s<e.length;s+=1)-1===t.indexOf(e[s])&&t.push(e[s]);return t}(l))}d.fn=n.prototype;const c={addClass:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const a=l(t.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.add(...a)})),this},removeClass:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const a=l(t.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...a)})),this},hasClass:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const a=l(t.map((e=>e.split(" "))));return o(this,(e=>a.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const a=l(t.map((e=>e.split(" "))));this.forEach((e=>{a.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let s=0;s<this.length;s+=1)if(2===arguments.length)this[s].setAttribute(e,t);else for(const t in e)this[s][t]=e[t],this[s].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?`${e}ms`:e;return this},on:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];let[a,i,r,n]=t;function l(e){const t=e.target;if(!t)return;const s=e.target.dom7EventData||[];if(s.indexOf(e)<0&&s.unshift(e),d(t).is(i))r.apply(t,s);else{const e=d(t).parents();for(let t=0;t<e.length;t+=1)d(e[t]).is(i)&&r.apply(e[t],s)}}function o(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof t[1]&&([a,r,n]=t,i=void 0),n||(n=!1);const c=a.split(" ");let p;for(let e=0;e<this.length;e+=1){const t=this[e];if(i)for(p=0;p<c.length;p+=1){const e=c[p];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:r,proxyListener:l}),t.addEventListener(e,l,n)}else for(p=0;p<c.length;p+=1){const e=c[p];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:r,proxyListener:o}),t.addEventListener(e,o,n)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];let[a,i,r,n]=t;"function"==typeof t[1]&&([a,r,n]=t,i=void 0),n||(n=!1);const l=a.split(" ");for(let e=0;e<l.length;e+=1){const t=l[e];for(let e=0;e<this.length;e+=1){const s=this[e];let a;if(!i&&s.dom7Listeners?a=s.dom7Listeners[t]:i&&s.dom7LiveListeners&&(a=s.dom7LiveListeners[t]),a&&a.length)for(let e=a.length-1;e>=0;e-=1){const i=a[e];r&&i.listener===r||r&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===r?(s.removeEventListener(t,i.proxyListener,n),a.splice(e,1)):r||(s.removeEventListener(t,i.proxyListener,n),a.splice(e,1))}}}return this},trigger:function(){const e=r();for(var t=arguments.length,s=new Array(t),a=0;a<t;a++)s[a]=arguments[a];const i=s[0].split(" "),n=s[1];for(let t=0;t<i.length;t+=1){const a=i[t];for(let t=0;t<this.length;t+=1){const i=this[t];if(e.CustomEvent){const t=new e.CustomEvent(a,{detail:n,bubbles:!0,cancelable:!0});i.dom7EventData=s.filter(((e,t)=>t>0)),i.dispatchEvent(t),i.dom7EventData=[],delete i.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function s(a){a.target===this&&(e.call(this,a),t.off("transitionend",s))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=r();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=r(),t=a(),s=this[0],i=s.getBoundingClientRect(),n=t.body,l=s.clientTop||n.clientTop||0,o=s.clientLeft||n.clientLeft||0,d=s===e?e.scrollY:s.scrollTop,c=s===e?e.scrollX:s.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}return null},css:function(e,t){const s=r();let a;if(1===arguments.length){if("string"!=typeof e){for(a=0;a<this.length;a+=1)for(const t in e)this[a].style[t]=e[t];return this}if(this[0])return s.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(a=0;a<this.length;a+=1)this[a].style[e]=t;return this}return this},each:function(e){return e?(this.forEach(((t,s)=>{e.apply(t,[t,s])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=r(),s=a(),i=this[0];let l,o;if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(l=d(e),o=0;o<l.length;o+=1)if(l[o]===i)return!0;return!1}if(e===s)return i===s;if(e===t)return i===t;if(e.nodeType||e instanceof n){for(l=e.nodeType?[e]:e,o=0;o<l.length;o+=1)if(l[o]===i)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;if(e>t-1)return d([]);if(e<0){const s=t+e;return d(s<0?[]:[this[s]])}return d([this[e]])},append:function(){let e;const t=a();for(let s=0;s<arguments.length;s+=1){e=s<0||arguments.length<=s?void 0:arguments[s];for(let s=0;s<this.length;s+=1)if("string"==typeof e){const a=t.createElement("div");for(a.innerHTML=e;a.firstChild;)this[s].appendChild(a.firstChild)}else if(e instanceof n)for(let t=0;t<e.length;t+=1)this[s].appendChild(e[t]);else this[s].appendChild(e)}return this},prepend:function(e){const t=a();let s,i;for(s=0;s<this.length;s+=1)if("string"==typeof e){const a=t.createElement("div");for(a.innerHTML=e,i=a.childNodes.length-1;i>=0;i-=1)this[s].insertBefore(a.childNodes[i],this[s].childNodes[0])}else if(e instanceof n)for(i=0;i<e.length;i+=1)this[s].insertBefore(e[i],this[s].childNodes[0]);else this[s].insertBefore(e,this[s].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&d(this[0].nextElementSibling).is(e)?d([this[0].nextElementSibling]):d([]):this[0].nextElementSibling?d([this[0].nextElementSibling]):d([]):d([])},nextAll:function(e){const t=[];let s=this[0];if(!s)return d([]);for(;s.nextElementSibling;){const a=s.nextElementSibling;e?d(a).is(e)&&t.push(a):t.push(a),s=a}return d(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&d(t.previousElementSibling).is(e)?d([t.previousElementSibling]):d([]):t.previousElementSibling?d([t.previousElementSibling]):d([])}return d([])},prevAll:function(e){const t=[];let s=this[0];if(!s)return d([]);for(;s.previousElementSibling;){const a=s.previousElementSibling;e?d(a).is(e)&&t.push(a):t.push(a),s=a}return d(t)},parent:function(e){const t=[];for(let s=0;s<this.length;s+=1)null!==this[s].parentNode&&(e?d(this[s].parentNode).is(e)&&t.push(this[s].parentNode):t.push(this[s].parentNode));return d(t)},parents:function(e){const t=[];for(let s=0;s<this.length;s+=1){let a=this[s].parentNode;for(;a;)e?d(a).is(e)&&t.push(a):t.push(a),a=a.parentNode}return d(t)},closest:function(e){let t=this;return void 0===e?d([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let s=0;s<this.length;s+=1){const a=this[s].querySelectorAll(e);for(let e=0;e<a.length;e+=1)t.push(a[e])}return d(t)},children:function(e){const t=[];for(let s=0;s<this.length;s+=1){const a=this[s].children;for(let s=0;s<a.length;s+=1)e&&!d(a[s]).is(e)||t.push(a[s])}return d(t)},filter:function(e){return d(o(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};function p(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function u(){return Date.now()}function h(e,t){void 0===t&&(t="x");const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function m(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function f(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function g(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let s=1;s<arguments.length;s+=1){const a=s<0||arguments.length<=s?void 0:arguments[s];if(null!=a&&!f(a)){const s=Object.keys(Object(a)).filter((e=>t.indexOf(e)<0));for(let t=0,i=s.length;t<i;t+=1){const i=s[t],r=Object.getOwnPropertyDescriptor(a,i);void 0!==r&&r.enumerable&&(m(e[i])&&m(a[i])?a[i].__swiper__?e[i]=a[i]:g(e[i],a[i]):!m(e[i])&&m(a[i])?(e[i]={},a[i].__swiper__?e[i]=a[i]:g(e[i],a[i])):e[i]=a[i])}}}return e}function v(e,t,s){e.style.setProperty(t,s)}function w(e){let{swiper:t,targetPosition:s,side:a}=e;const i=r(),n=-t.translate;let l,o=null;const d=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const c=s>n?"next":"prev",p=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{l=(new Date).getTime(),null===o&&(o=l);const e=Math.max(Math.min((l-o)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=n+r*(s-n);if(p(c,s)&&(c=s),t.wrapperEl.scrollTo({[a]:c}),p(c,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[a]:c})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(u)};u()}let b,x,y;function E(){return b||(b=function(){const e=r(),t=a();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const s=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,s)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),b}function C(e){return void 0===e&&(e={}),x||(x=function(e){let{userAgent:t}=void 0===e?{}:e;const s=E(),a=r(),i=a.navigator.platform,n=t||a.navigator.userAgent,l={ios:!1,android:!1},o=a.screen.width,d=a.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/);let p=n.match(/(iPad).*OS\s([\d_]+)/);const u=n.match(/(iPod)(.*OS\s([\d_]+))?/),h=!p&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===i;let f="MacIntel"===i;return!p&&f&&s.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${d}`)>=0&&(p=n.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),f=!1),c&&!m&&(l.os="android",l.android=!0),(p||h||u)&&(l.os="ios",l.ios=!0),l}(e)),x}function T(){return y||(y=function(){const e=r();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),y}Object.keys(c).forEach((e=>{Object.defineProperty(d.fn,e,{value:c[e],writable:!0})}));var $={on(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").forEach((e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)})),a},once(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;function i(){a.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];t.apply(a,r)}return i.__emitterProxy=t,a.on(e,i,s)},onAny(e,t){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;const a=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[a](e),s},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach(((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&s.eventsListeners[e].splice(i,1)}))})),s):s},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,s,a;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],s=r.slice(1,r.length),a=e):(t=r[0].events,s=r[0].data,a=r[0].context||e),s.unshift(a);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(a,[t,...s])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(a,s)}))})),e}};var S={updateSize:function(){const e=this;let t,s;const a=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:a[0].clientWidth,s=void 0!==e.params.height&&null!==e.params.height?e.params.height:a[0].clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(a.css("padding-left")||0,10)-parseInt(a.css("padding-right")||0,10),s=s-parseInt(a.css("padding-top")||0,10)-parseInt(a.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(s)&&(s=0),Object.assign(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function s(e,s){return parseFloat(e.getPropertyValue(t(s))||0)}const a=e.params,{$wrapperEl:i,size:r,rtlTranslate:n,wrongRTL:l}=e,o=e.virtual&&a.virtual.enabled,d=o?e.virtual.slides.length:e.slides.length,c=i.children(`.${e.params.slideClass}`),p=o?e.virtual.slides.length:c.length;let u=[];const h=[],m=[];let f=a.slidesOffsetBefore;"function"==typeof f&&(f=a.slidesOffsetBefore.call(e));let g=a.slidesOffsetAfter;"function"==typeof g&&(g=a.slidesOffsetAfter.call(e));const w=e.snapGrid.length,b=e.slidesGrid.length;let x=a.spaceBetween,y=-f,E=0,C=0;if(void 0===r)return;"string"==typeof x&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*r),e.virtualSize=-x,n?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),a.centeredSlides&&a.cssMode&&(v(e.wrapperEl,"--swiper-centered-offset-before",""),v(e.wrapperEl,"--swiper-centered-offset-after",""));const T=a.grid&&a.grid.rows>1&&e.grid;let $;T&&e.grid.initSlides(p);const S="auto"===a.slidesPerView&&a.breakpoints&&Object.keys(a.breakpoints).filter((e=>void 0!==a.breakpoints[e].slidesPerView)).length>0;for(let i=0;i<p;i+=1){$=0;const n=c.eq(i);if(T&&e.grid.updateSlide(i,n,p,t),"none"!==n.css("display")){if("auto"===a.slidesPerView){S&&(c[i].style[t("width")]="");const r=getComputedStyle(n[0]),l=n[0].style.transform,o=n[0].style.webkitTransform;if(l&&(n[0].style.transform="none"),o&&(n[0].style.webkitTransform="none"),a.roundLengths)$=e.isHorizontal()?n.outerWidth(!0):n.outerHeight(!0);else{const e=s(r,"width"),t=s(r,"padding-left"),a=s(r,"padding-right"),i=s(r,"margin-left"),l=s(r,"margin-right"),o=r.getPropertyValue("box-sizing");if(o&&"border-box"===o)$=e+i+l;else{const{clientWidth:s,offsetWidth:r}=n[0];$=e+t+a+i+l+(r-s)}}l&&(n[0].style.transform=l),o&&(n[0].style.webkitTransform=o),a.roundLengths&&($=Math.floor($))}else $=(r-(a.slidesPerView-1)*x)/a.slidesPerView,a.roundLengths&&($=Math.floor($)),c[i]&&(c[i].style[t("width")]=`${$}px`);c[i]&&(c[i].swiperSlideSize=$),m.push($),a.centeredSlides?(y=y+$/2+E/2+x,0===E&&0!==i&&(y=y-r/2-x),0===i&&(y=y-r/2-x),Math.abs(y)<.001&&(y=0),a.roundLengths&&(y=Math.floor(y)),C%a.slidesPerGroup==0&&u.push(y),h.push(y)):(a.roundLengths&&(y=Math.floor(y)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup==0&&u.push(y),h.push(y),y=y+$+x),e.virtualSize+=$+x,E=$,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+g,n&&l&&("slide"===a.effect||"coverflow"===a.effect)&&i.css({width:`${e.virtualSize+a.spaceBetween}px`}),a.setWrapperSize&&i.css({[t("width")]:`${e.virtualSize+a.spaceBetween}px`}),T&&e.grid.updateWrapperSize($,u,t),!a.centeredSlides){const t=[];for(let s=0;s<u.length;s+=1){let i=u[s];a.roundLengths&&(i=Math.floor(i)),u[s]<=e.virtualSize-r&&t.push(i)}u=t,Math.floor(e.virtualSize-r)-Math.floor(u[u.length-1])>1&&u.push(e.virtualSize-r)}if(0===u.length&&(u=[0]),0!==a.spaceBetween){const s=e.isHorizontal()&&n?"marginLeft":t("marginRight");c.filter(((e,t)=>!a.cssMode||t!==c.length-1)).css({[s]:`${x}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let e=0;m.forEach((t=>{e+=t+(a.spaceBetween?a.spaceBetween:0)})),e-=a.spaceBetween;const t=e-r;u=u.map((e=>e<0?-f:e>t?t+g:e))}if(a.centerInsufficientSlides){let e=0;if(m.forEach((t=>{e+=t+(a.spaceBetween?a.spaceBetween:0)})),e-=a.spaceBetween,e<r){const t=(r-e)/2;u.forEach(((e,s)=>{u[s]=e-t})),h.forEach(((e,s)=>{h[s]=e+t}))}}if(Object.assign(e,{slides:c,snapGrid:u,slidesGrid:h,slidesSizesGrid:m}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){v(e.wrapperEl,"--swiper-centered-offset-before",-u[0]+"px"),v(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-m[m.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+s))}if(p!==d&&e.emit("slidesLengthChange"),u.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),a.watchSlidesProgress&&e.updateSlidesOffset(),!(o||a.cssMode||"slide"!==a.effect&&"fade"!==a.effect)){const t=`${a.containerModifierClass}backface-hidden`,s=e.$el.hasClass(t);p<=a.maxBackfaceHiddenSlides?s||e.$el.addClass(t):s&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>a?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||d([])).each((e=>{s.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeIndex));for(i=0;i<s.length;i+=1)if(void 0!==s[i]){const e=s[i].offsetHeight;r=e>r?e:r}(r||0===r)&&t.$wrapperEl.css("height",`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,s=t.params,{slides:a,rtlTranslate:i,snapGrid:r}=t;if(0===a.length)return;void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;i&&(n=e),a.removeClass(s.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<a.length;e+=1){const l=a[e];let o=l.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(o-=a[0].swiperSlideOffset);const d=(n+(s.centeredSlides?t.minTranslate():0)-o)/(l.swiperSlideSize+s.spaceBetween),c=(n-r[0]+(s.centeredSlides?t.minTranslate():0)-o)/(l.swiperSlideSize+s.spaceBetween),p=-(n-o),u=p+t.slidesSizesGrid[e];(p>=0&&p<t.size-1||u>1&&u<=t.size||p<=0&&u>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e),a.eq(e).addClass(s.slideVisibleClass)),l.progress=i?-d:d,l.originalProgress=i?-c:c}t.visibleSlides=d(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:n}=t;const l=r,o=n;0===a?(i=0,r=!0,n=!0):(i=(e-t.minTranslate())/a,r=i<=0,n=i>=1),Object.assign(t,{progress:i,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),n&&!o&&t.emit("reachEnd toEdge"),(l&&!r||o&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,$wrapperEl:a,activeIndex:i,realIndex:r}=e,n=e.virtual&&s.virtual.enabled;let l;t.removeClass(`${s.slideActiveClass} ${s.slideNextClass} ${s.slidePrevClass} ${s.slideDuplicateActiveClass} ${s.slideDuplicateNextClass} ${s.slideDuplicatePrevClass}`),l=n?e.$wrapperEl.find(`.${s.slideClass}[data-swiper-slide-index="${i}"]`):t.eq(i),l.addClass(s.slideActiveClass),s.loop&&(l.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass));let o=l.nextAll(`.${s.slideClass}`).eq(0).addClass(s.slideNextClass);s.loop&&0===o.length&&(o=t.eq(0),o.addClass(s.slideNextClass));let d=l.prevAll(`.${s.slideClass}`).eq(0).addClass(s.slidePrevClass);s.loop&&0===d.length&&(d=t.eq(-1),d.addClass(s.slidePrevClass)),s.loop&&(o.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass),d.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:a,snapGrid:i,params:r,activeIndex:n,realIndex:l,snapIndex:o}=t;let d,c=e;if(void 0===c){for(let e=0;e<a.length;e+=1)void 0!==a[e+1]?s>=a[e]&&s<a[e+1]-(a[e+1]-a[e])/2?c=e:s>=a[e]&&s<a[e+1]&&(c=e+1):s>=a[e]&&(c=e);r.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(i.indexOf(s)>=0)d=i.indexOf(s);else{const e=Math.min(r.slidesPerGroupSkip,c);d=e+Math.floor((c-e)/r.slidesPerGroup)}if(d>=i.length&&(d=i.length-1),c===n)return void(d!==o&&(t.snapIndex=d,t.emit("snapIndexChange")));const p=parseInt(t.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(t,{snapIndex:d,realIndex:p,previousIndex:n,activeIndex:c}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==p&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,s=t.params,a=d(e).closest(`.${s.slideClass}`)[0];let i,r=!1;if(a)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===a){r=!0,i=e;break}if(!a||!r)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=a,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(d(a).attr("data-swiper-slide-index"),10):t.clickedIndex=i,s.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var M={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:s,translate:a,$wrapperEl:i}=this;if(t.virtualTranslate)return s?-a:a;if(t.cssMode)return a;let r=h(i[0],e);return s&&(r=-r),r||0},setTranslate:function(e,t){const s=this,{rtlTranslate:a,params:i,$wrapperEl:r,wrapperEl:n,progress:l}=s;let o,d=0,c=0;s.isHorizontal()?d=a?-e:e:c=e,i.roundLengths&&(d=Math.floor(d),c=Math.floor(c)),i.cssMode?n[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-d:-c:i.virtualTranslate||r.transform(`translate3d(${d}px, ${c}px, 0px)`),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?d:c;const p=s.maxTranslate()-s.minTranslate();o=0===p?0:(e-s.minTranslate())/p,o!==l&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,s,a,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),void 0===a&&(a=!0);const r=this,{params:n,wrapperEl:l}=r;if(r.animating&&n.preventInteractionOnTransition)return!1;const o=r.minTranslate(),d=r.maxTranslate();let c;if(c=a&&e>o?o:a&&e<d?d:e,r.updateProgress(c),n.cssMode){const e=r.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return w({swiper:r,targetPosition:-c,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,s&&r.emit("transitionEnd"))}),r.$wrapperEl[0].addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd))),!0}};function P(e){let{swiper:t,runCallbacks:s,direction:a,step:i}=e;const{activeIndex:r,previousIndex:n}=t;let l=a;if(l||(l=r>n?"next":r<n?"prev":"reset"),t.emit(`transition${i}`),s&&r!==n){if("reset"===l)return void t.emit(`slideResetTransition${i}`);t.emit(`slideChangeTransition${i}`),"next"===l?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`)}}var k={slideTo:function(e,t,s,a,i){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),"number"!=typeof e&&"string"!=typeof e)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const r=this;let n=e;n<0&&(n=0);const{params:l,snapGrid:o,slidesGrid:d,previousIndex:c,activeIndex:p,rtlTranslate:u,wrapperEl:h,enabled:m}=r;if(r.animating&&l.preventInteractionOnTransition||!m&&!a&&!i)return!1;const f=Math.min(r.params.slidesPerGroupSkip,n);let g=f+Math.floor((n-f)/r.params.slidesPerGroup);g>=o.length&&(g=o.length-1);const v=-o[g];if(l.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*v),s=Math.floor(100*d[e]),a=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=s&&t<a-(a-s)/2?n=e:t>=s&&t<a&&(n=e+1):t>=s&&(n=e)}if(r.initialized&&n!==p){if(!r.allowSlideNext&&v<r.translate&&v<r.minTranslate())return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(p||0)!==n)return!1}let b;if(n!==(c||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),b=n>p?"next":n<p?"prev":"reset",u&&-v===r.translate||!u&&v===r.translate)return r.updateActiveIndex(n),l.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==l.effect&&r.setTranslate(v),"reset"!==b&&(r.transitionStart(s,b),r.transitionEnd(s,b)),!1;if(l.cssMode){const e=r.isHorizontal(),s=u?v:-v;if(0===t){const t=r.virtual&&r.params.virtual.enabled;t&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),h[e?"scrollLeft":"scrollTop"]=s,t&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._swiperImmediateVirtual=!1}))}else{if(!r.support.smoothScroll)return w({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),0===t?r.transitionEnd(s,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,s,a){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),"string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const i=this;let r=e;return i.params.loop&&(r+=i.loopedSlides),i.slideTo(r,t,s,a)},slideNext:function(e,t,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const a=this,{animating:i,enabled:r,params:n}=a;if(!r)return a;let l=n.slidesPerGroup;"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(l=Math.max(a.slidesPerViewDynamic("current",!0),1));const o=a.activeIndex<n.slidesPerGroupSkip?1:l;if(n.loop){if(i&&n.loopPreventsSlide)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}return n.rewind&&a.isEnd?a.slideTo(0,e,t,s):a.slideTo(a.activeIndex+o,e,t,s)},slidePrev:function(e,t,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const a=this,{params:i,animating:r,snapGrid:n,slidesGrid:l,rtlTranslate:o,enabled:d}=a;if(!d)return a;if(i.loop){if(r&&i.loopPreventsSlide)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}function c(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=c(o?a.translate:-a.translate),u=n.map((e=>c(e)));let h=n[u.indexOf(p)-1];if(void 0===h&&i.cssMode){let e;n.forEach(((t,s)=>{p>=t&&(e=s)})),void 0!==e&&(h=n[e>0?e-1:e])}let m=0;if(void 0!==h&&(m=l.indexOf(h),m<0&&(m=a.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(m=m-a.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),i.rewind&&a.isBeginning){const i=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(i,e,t,s)}return a.slideTo(m,e,t,s)},slideReset:function(e,t,s){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,s)},slideToClosest:function(e,t,s,a){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===a&&(a=.5);const i=this;let r=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,r),l=n+Math.floor((r-n)/i.params.slidesPerGroup),o=i.rtlTranslate?i.translate:-i.translate;if(o>=i.snapGrid[l]){const e=i.snapGrid[l];o-e>(i.snapGrid[l+1]-e)*a&&(r+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];o-e<=(i.snapGrid[l]-e)*a&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,e,t,s)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:s}=e,a="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,r=e.clickedIndex;if(t.loop){if(e.animating)return;i=parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-a/2||r>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),r=s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),p((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-a?(e.loopFix(),r=s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),p((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var z={loopCreate:function(){const e=this,t=a(),{params:s,$wrapperEl:i}=e,r=i.children().length>0?d(i.children()[0].parentNode):i;r.children(`.${s.slideClass}.${s.slideDuplicateClass}`).remove();let n=r.children(`.${s.slideClass}`);if(s.loopFillGroupWithBlank){const e=s.slidesPerGroup-n.length%s.slidesPerGroup;if(e!==s.slidesPerGroup){for(let a=0;a<e;a+=1){const e=d(t.createElement("div")).addClass(`${s.slideClass} ${s.slideBlankClass}`);r.append(e)}n=r.children(`.${s.slideClass}`)}}"auto"!==s.slidesPerView||s.loopedSlides||(s.loopedSlides=n.length),e.loopedSlides=Math.ceil(parseFloat(s.loopedSlides||s.slidesPerView,10)),e.loopedSlides+=s.loopAdditionalSlides,e.loopedSlides>n.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=n.length);const l=[],o=[];n.each(((e,t)=>{d(e).attr("data-swiper-slide-index",t)}));for(let t=0;t<e.loopedSlides;t+=1){const e=t-Math.floor(t/n.length)*n.length;o.push(n.eq(e)[0]),l.unshift(n.eq(n.length-e-1)[0])}for(let e=0;e<o.length;e+=1)r.append(d(o[e].cloneNode(!0)).addClass(s.slideDuplicateClass));for(let e=l.length-1;e>=0;e-=1)r.prepend(d(l[e].cloneNode(!0)).addClass(s.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:s,loopedSlides:a,allowSlidePrev:i,allowSlideNext:r,snapGrid:n,rtlTranslate:l}=e;let o;e.allowSlidePrev=!0,e.allowSlideNext=!0;const d=-n[t]-e.getTranslate();if(t<a){o=s.length-3*a+t,o+=a;e.slideTo(o,0,!1,!0)&&0!==d&&e.setTranslate((l?-e.translate:e.translate)-d)}else if(t>=s.length-a){o=-s.length+t+a,o+=a;e.slideTo(o,0,!1,!0)&&0!==d&&e.setTranslate((l?-e.translate:e.translate)-d)}e.allowSlidePrev=i,e.allowSlideNext=r,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:s}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),s.removeAttr("data-swiper-slide-index")}};function L(e){const t=this,s=a(),i=r(),n=t.touchEventsData,{params:l,touches:o,enabled:c}=t;if(!c)return;if(t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let p=e;p.originalEvent&&(p=p.originalEvent);let h=d(p.target);if("wrapper"===l.touchEventsTarget&&!h.closest(t.wrapperEl).length)return;if(n.isTouchEvent="touchstart"===p.type,!n.isTouchEvent&&"which"in p&&3===p.which)return;if(!n.isTouchEvent&&"button"in p&&p.button>0)return;if(n.isTouched&&n.isMoved)return;const m=!!l.noSwipingClass&&""!==l.noSwipingClass,f=e.composedPath?e.composedPath():e.path;m&&p.target&&p.target.shadowRoot&&f&&(h=d(f[0]));const g=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,v=!(!p.target||!p.target.shadowRoot);if(l.noSwiping&&(v?function(e,t){return void 0===t&&(t=this),function t(s){if(!s||s===a()||s===r())return null;s.assignedSlot&&(s=s.assignedSlot);const i=s.closest(e);return i||s.getRootNode?i||t(s.getRootNode().host):null}(t)}(g,h[0]):h.closest(g)[0]))return void(t.allowClick=!0);if(l.swipeHandler&&!h.closest(l.swipeHandler)[0])return;o.currentX="touchstart"===p.type?p.targetTouches[0].pageX:p.pageX,o.currentY="touchstart"===p.type?p.targetTouches[0].pageY:p.pageY;const w=o.currentX,b=o.currentY,x=l.edgeSwipeDetection||l.iOSEdgeSwipeDetection,y=l.edgeSwipeThreshold||l.iOSEdgeSwipeThreshold;if(x&&(w<=y||w>=i.innerWidth-y)){if("prevent"!==x)return;e.preventDefault()}if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=w,o.startY=b,n.touchStartTime=u(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==p.type){let e=!0;h.is(n.focusableElements)&&(e=!1,"SELECT"===h[0].nodeName&&(n.isTouched=!1)),s.activeElement&&d(s.activeElement).is(n.focusableElements)&&s.activeElement!==h[0]&&s.activeElement.blur();const a=e&&t.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!a||h[0].isContentEditable||p.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",p)}function O(e){const t=a(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:o}=s;if(!o)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",c));if(i.isTouchEvent&&"touchmove"!==c.type)return;const p="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),h="touchmove"===c.type?p.pageX:c.pageX,m="touchmove"===c.type?p.pageY:c.pageY;if(c.preventedByNestedSwiper)return n.startX=h,void(n.startY=m);if(!s.allowTouchMove)return d(c.target).is(i.focusableElements)||(s.allowClick=!1),void(i.isTouched&&(Object.assign(n,{startX:h,startY:m,currentX:h,currentY:m}),i.touchStartTime=u()));if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(m<n.startY&&s.translate<=s.maxTranslate()||m>n.startY&&s.translate>=s.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(h<n.startX&&s.translate<=s.maxTranslate()||h>n.startX&&s.translate>=s.minTranslate())return;if(i.isTouchEvent&&t.activeElement&&c.target===t.activeElement&&d(c.target).is(i.focusableElements))return i.isMoved=!0,void(s.allowClick=!1);if(i.allowTouchCallbacks&&s.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;n.currentX=h,n.currentY=m;const f=n.currentX-n.startX,g=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(f**2+g**2)<s.params.threshold)return;if(void 0===i.isScrolling){let e;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:f*f+g*g>=25&&(e=180*Math.atan2(Math.abs(g),Math.abs(f))/Math.PI,i.isScrolling=s.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",c),void 0===i.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(i.startMoving=!0)),i.isScrolling)return void(i.isTouched=!1);if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation(),i.isMoved||(r.loop&&!r.cssMode&&s.loopFix(),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating&&s.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!r.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",c)),s.emit("sliderMove",c),i.isMoved=!0;let v=s.isHorizontal()?f:g;n.diff=v,v*=r.touchRatio,l&&(v=-v),s.swipeDirection=v>0?"prev":"next",i.currentTranslate=v+i.startTranslate;let w=!0,b=r.resistanceRatio;if(r.touchReleaseOnEdges&&(b=0),v>0&&i.currentTranslate>s.minTranslate()?(w=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+v)**b)):v<0&&i.currentTranslate<s.maxTranslate()&&(w=!1,r.resistance&&(i.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-i.startTranslate-v)**b)),w&&(c.preventedByNestedSwiper=!0),!s.allowSlideNext&&"next"===s.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&"prev"===s.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),s.allowSlidePrev||s.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(v)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,void(n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),s.params.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function I(e){const t=this,s=t.touchEventsData,{params:a,touches:i,rtlTranslate:r,slidesGrid:n,enabled:l}=t;if(!l)return;let o=e;if(o.originalEvent&&(o=o.originalEvent),s.allowTouchCallbacks&&t.emit("touchEnd",o),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&a.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);a.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=u(),c=d-s.touchStartTime;if(t.allowClick){const e=o.path||o.composedPath&&o.composedPath();t.updateClickedSlide(e&&e[0]||o.target),t.emit("tap click",o),c<300&&d-s.lastClickTime<300&&t.emit("doubleTap doubleClick",o)}if(s.lastClickTime=u(),p((()=>{t.destroyed||(t.allowClick=!0)})),!s.isTouched||!s.isMoved||!t.swipeDirection||0===i.diff||s.currentTranslate===s.startTranslate)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let h;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,h=a.followFinger?r?t.translate:-t.translate:-s.currentTranslate,a.cssMode)return;if(t.params.freeMode&&a.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});let m=0,f=t.slidesSizesGrid[0];for(let e=0;e<n.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){const t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==n[e+t]?h>=n[e]&&h<n[e+t]&&(m=e,f=n[e+t]-n[e]):h>=n[e]&&(m=e,f=n[n.length-1]-n[n.length-2])}let g=null,v=null;a.rewind&&(t.isBeginning?v=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const w=(h-n[m])/f,b=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(c>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(w>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:m+b):t.slideTo(m)),"prev"===t.swipeDirection&&(w>1-a.longSwipesRatio?t.slideTo(m+b):null!==v&&w<0&&Math.abs(w)>a.longSwipesRatio?t.slideTo(v):t.slideTo(m))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(o.target===t.navigation.nextEl||o.target===t.navigation.prevEl)?o.target===t.navigation.nextEl?t.slideTo(m+b):t.slideTo(m):("next"===t.swipeDirection&&t.slideTo(null!==g?g:m+b),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:m))}}function A(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function D(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function G(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:a}=e;if(!a)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();i=0===r?0:(e.translate-e.minTranslate())/r,i!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let N=!1;function B(){}const H=(e,t)=>{const s=a(),{params:i,touchEvents:r,el:n,wrapperEl:l,device:o,support:d}=e,c=!!i.nested,p="on"===t?"addEventListener":"removeEventListener",u=t;if(d.touch){const t=!("touchstart"!==r.start||!d.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};n[p](r.start,e.onTouchStart,t),n[p](r.move,e.onTouchMove,d.passiveListener?{passive:!1,capture:c}:c),n[p](r.end,e.onTouchEnd,t),r.cancel&&n[p](r.cancel,e.onTouchEnd,t)}else n[p](r.start,e.onTouchStart,!1),s[p](r.move,e.onTouchMove,c),s[p](r.end,e.onTouchEnd,!1);(i.preventClicks||i.preventClicksPropagation)&&n[p]("click",e.onClick,!0),i.cssMode&&l[p]("scroll",e.onScroll),i.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",A,!0):e[u]("observerUpdate",A,!0)};var X={attachEvents:function(){const e=this,t=a(),{params:s,support:i}=e;e.onTouchStart=L.bind(e),e.onTouchMove=O.bind(e),e.onTouchEnd=I.bind(e),s.cssMode&&(e.onScroll=G.bind(e)),e.onClick=D.bind(e),i.touch&&!N&&(t.addEventListener("touchstart",B),N=!0),H(e,"on")},detachEvents:function(){H(this,"off")}};const Y=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var R={addClasses:function(){const e=this,{classNames:t,params:s,rtl:a,$el:i,device:r,support:n}=e,l=function(e,t){const s=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((a=>{e[a]&&s.push(t+a)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"pointer-events":!n.touch},{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:a},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...l),i.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}};var W={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function q(e,t){return function(s){void 0===s&&(s={});const a=Object.keys(s)[0],i=s[a];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(a)>=0&&!0===e[a]&&(e[a]={auto:!0}),a in e&&"enabled"in i?(!0===e[a]&&(e[a]={enabled:!0}),"object"!=typeof e[a]||"enabled"in e[a]||(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),g(t,s)):g(t,s)):g(t,s)}}const j={eventsEmitter:$,update:S,translate:M,transition:{setTransition:function(e,t){const s=this;s.params.cssMode||s.$wrapperEl.transition(e),s.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;a.cssMode||(a.autoHeight&&s.updateAutoHeight(),P({swiper:s,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;s.animating=!1,a.cssMode||(s.setTransition(0),P({swiper:s,runCallbacks:e,direction:t,step:"End"}))}},slide:k,loop:z,grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;s.style.cursor="move",s.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:X,breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:s,loopedSlides:a=0,params:i,$el:r}=e,n=i.breakpoints;if(!n||n&&0===Object.keys(n).length)return;const l=e.getBreakpoint(n,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const o=(l in n?n[l]:void 0)||e.originalParams,d=Y(e,i),c=Y(e,o),p=i.enabled;d&&!c?(r.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&c&&(r.addClass(`${i.containerModifierClass}grid`),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===i.grid.fill)&&r.addClass(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{const s=i[t]&&i[t].enabled,a=o[t]&&o[t].enabled;s&&!a&&e[t].disable(),!s&&a&&e[t].enable()}));const u=o.direction&&o.direction!==i.direction,h=i.loop&&(o.slidesPerView!==i.slidesPerView||u);u&&s&&e.changeDirection(),g(e.params,o);const m=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!m?e.disable():!p&&m&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",o),h&&s&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-a+e.loopedSlides,0,!1)),e.emit("breakpoint",o)},getBreakpoint:function(e,t,s){if(void 0===t&&(t="window"),!e||"container"===t&&!s)return;let a=!1;const i=r(),n="window"===t?i.innerHeight:s.clientHeight,l=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));l.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<l.length;e+=1){const{point:r,value:n}=l[e];"window"===t?i.matchMedia(`(min-width: ${n}px)`).matches&&(a=r):n<=s.clientWidth&&(a=r)}return a||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:a}=s;if(a){const t=e.slides.length-1,s=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*a;e.isLocked=e.size>s}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:R,images:{loadImage:function(e,t,s,a,i,n){const l=r();let o;function c(){n&&n()}d(e).parent("picture")[0]||e.complete&&i?c():t?(o=new l.Image,o.onload=c,o.onerror=c,a&&(o.sizes=a),s&&(o.srcset=s),t&&(o.src=t)):c()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let s=0;s<e.imagesToLoad.length;s+=1){const a=e.imagesToLoad[s];e.loadImage(a,a.currentSrc||a.getAttribute("src"),a.srcset||a.getAttribute("srcset"),a.sizes||a.getAttribute("sizes"),!0,t)}}}},_={};class V{constructor(){let e,t;for(var s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];if(1===a.length&&a[0].constructor&&"Object"===Object.prototype.toString.call(a[0]).slice(8,-1)?t=a[0]:[e,t]=a,t||(t={}),t=g({},t),e&&!t.el&&(t.el=e),t.el&&d(t.el).length>1){const e=[];return d(t.el).each((s=>{const a=g({},t,{el:s});e.push(new V(a))})),e}const r=this;r.__swiper__=!0,r.support=E(),r.device=C({userAgent:t.userAgent}),r.browser=T(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],t.modules&&Array.isArray(t.modules)&&r.modules.push(...t.modules);const n={};r.modules.forEach((e=>{e({swiper:r,extendParams:q(t,n),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})}));const l=g({},W,n);return r.params=g({},l,_,t),r.originalParams=g({},r.params),r.passedParams=g({},t),r.params&&r.params.on&&Object.keys(r.params.on).forEach((e=>{r.on(e,r.params.on[e])})),r.params&&r.params.onAny&&r.onAny(r.params.onAny),r.$=d,Object.assign(r,{enabled:r.params.enabled,el:e,classNames:[],slides:d(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return r.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},r.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},r.support.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:u(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const a=s.minTranslate(),i=(s.maxTranslate()-a)*e+a;s.translateTo(i,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((s=>{const a=e.getSlideClasses(s);t.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:s,slides:a,slidesGrid:i,slidesSizesGrid:r,size:n,activeIndex:l}=this;let o=1;if(s.centeredSlides){let e,t=a[l].swiperSlideSize;for(let s=l+1;s<a.length;s+=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0));for(let s=l-1;s>=0;s-=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e<a.length;e+=1){(t?i[e]+r[e]-i[l]<n:i[e]-i[l]<n)&&(o+=1)}else for(let e=l-1;e>=0;e-=1){i[l]-i[e]<n&&(o+=1)}return o}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;function a(){const t=e.rtlTranslate?-1*e.translate:e.translate,s=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let i;s.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(a(),e.params.autoHeight&&e.updateAutoHeight()):(i=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),i||a()),s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.$el.removeClass(`${s.params.containerModifierClass}${a}`).addClass(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const s=d(e||t.params.el);if(!(e=s[0]))return!1;e.swiper=t;const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=d(e.shadowRoot.querySelector(i()));return t.children=e=>s.children(e),t}return s.children?s.children(i()):d(s).children(i())})();if(0===r.length&&t.params.createElements){const e=a().createElement("div");r=d(e),e.className=t.params.wrapperClass,s.append(e),s.children(`.${t.params.slideClass}`).each((e=>{r.append(e)}))}return Object.assign(t,{$el:s,el:e,$wrapperEl:r,wrapperEl:r[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===s.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===s.css("direction")),wrongRTL:"-webkit-box"===r.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const s=this,{params:a,$el:i,$wrapperEl:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),t&&(s.removeClasses(),i.removeAttr("style"),r.removeAttr("style"),n&&n.length&&n.removeClass([a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),s.emit("destroy"),Object.keys(s.eventsListeners).forEach((e=>{s.off(e)})),!1!==e&&(s.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extendDefaults(e){g(_,e)}static get extendedDefaults(){return _}static get defaults(){return W}static installModule(e){V.prototype.__modules__||(V.prototype.__modules__=[]);const t=V.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>V.installModule(e))),V):(V.installModule(e),V)}}function F(e,t,s,i){const r=a();return e.params.createElements&&Object.keys(i).forEach((a=>{if(!s[a]&&!0===s.auto){let n=e.$el.children(`.${i[a]}`)[0];n||(n=r.createElement("div"),n.className=i[a],e.$el.append(n)),s[a]=n,t[a]=n}})),s}function U(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function K(e){const t=this,{$wrapperEl:s,params:a}=t;if(a.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s.append(e[t]);else s.append(e);a.loop&&t.loopCreate(),a.observer||t.update()}function Z(e){const t=this,{params:s,$wrapperEl:a,activeIndex:i}=t;s.loop&&t.loopDestroy();let r=i+1;if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&a.prepend(e[t]);r=i+e.length}else a.prepend(e);s.loop&&t.loopCreate(),s.observer||t.update(),t.slideTo(r,0,!1)}function Q(e,t){const s=this,{$wrapperEl:a,params:i,activeIndex:r}=s;let n=r;i.loop&&(n-=s.loopedSlides,s.loopDestroy(),s.slides=a.children(`.${i.slideClass}`));const l=s.slides.length;if(e<=0)return void s.prependSlide(t);if(e>=l)return void s.appendSlide(t);let o=n>e?n+1:n;const d=[];for(let t=l-1;t>=e;t-=1){const e=s.slides.eq(t);e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a.append(t[e]);o=n>e?n+t.length:n}else a.append(t);for(let e=0;e<d.length;e+=1)a.append(d[e]);i.loop&&s.loopCreate(),i.observer||s.update(),i.loop?s.slideTo(o+s.loopedSlides,0,!1):s.slideTo(o,0,!1)}function J(e){const t=this,{params:s,$wrapperEl:a,activeIndex:i}=t;let r=i;s.loop&&(r-=t.loopedSlides,t.loopDestroy(),t.slides=a.children(`.${s.slideClass}`));let n,l=r;if("object"==typeof e&&"length"in e){for(let s=0;s<e.length;s+=1)n=e[s],t.slides[n]&&t.slides.eq(n).remove(),n<l&&(l-=1);l=Math.max(l,0)}else n=e,t.slides[n]&&t.slides.eq(n).remove(),n<l&&(l-=1),l=Math.max(l,0);s.loop&&t.loopCreate(),s.observer||t.update(),s.loop?t.slideTo(l+t.loopedSlides,0,!1):t.slideTo(l,0,!1)}function ee(){const e=this,t=[];for(let s=0;s<e.slides.length;s+=1)t.push(s);e.removeSlide(t)}function te(e){const{effect:t,swiper:s,on:a,setTranslate:i,setTransition:r,overwriteParams:n,perspective:l,recreateShadows:o,getEffectParams:d}=e;let c;a("beforeInit",(()=>{if(s.params.effect!==t)return;s.classNames.push(`${s.params.containerModifierClass}${t}`),l&&l()&&s.classNames.push(`${s.params.containerModifierClass}3d`);const e=n?n():{};Object.assign(s.params,e),Object.assign(s.originalParams,e)})),a("setTranslate",(()=>{s.params.effect===t&&i()})),a("setTransition",((e,a)=>{s.params.effect===t&&r(a)})),a("transitionEnd",(()=>{if(s.params.effect===t&&o){if(!d||!d().slideShadows)return;s.slides.each((e=>{s.$(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()})),o()}})),a("virtualUpdate",(()=>{s.params.effect===t&&(s.slides.length||(c=!0),requestAnimationFrame((()=>{c&&s.slides&&s.slides.length&&(i(),c=!1)})))}))}function se(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function ae(e){let{swiper:t,duration:s,transformEl:a,allSlides:i}=e;const{slides:r,activeIndex:n,$wrapperEl:l}=t;if(t.params.virtualTranslate&&0!==s){let e,s=!1;e=i?a?r.find(a):r:a?r.eq(n).find(a):r.eq(n),e.transitionEnd((()=>{if(s)return;if(!t||t.destroyed)return;s=!0,t.animating=!1;const e=["webkitTransitionEnd","transitionend"];for(let t=0;t<e.length;t+=1)l.trigger(e[t])}))}}function ie(e,t,s){const a="swiper-slide-shadow"+(s?`-${s}`:""),i=e.transformEl?t.find(e.transformEl):t;let r=i.children(`.${a}`);return r.length||(r=d(`<div class="swiper-slide-shadow${s?`-${s}`:""}"></div>`),i.append(r)),r}Object.keys(j).forEach((e=>{Object.keys(j[e]).forEach((t=>{V.prototype[t]=j[e][t]}))})),V.use([function(e){let{swiper:t,on:s,emit:a}=e;const i=r();let n=null,l=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(a("beforeResize"),a("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&a("orientationchange")};s("init",(()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((e=>{l=i.requestAnimationFrame((()=>{const{width:s,height:a}=t;let i=s,r=a;e.forEach((e=>{let{contentBoxSize:s,contentRect:a,target:n}=e;n&&n!==t.el||(i=a?a.width:(s[0]||s).inlineSize,r=a?a.height:(s[0]||s).blockSize)})),i===s&&r===a||o()}))})),n.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",d))})),s("destroy",(()=>{l&&i.cancelAnimationFrame(l),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",d)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=[],l=r(),o=function(e,t){void 0===t&&(t={});const s=new(l.MutationObserver||l.WebkitMutationObserver)((e=>{if(1===e.length)return void i("observerUpdate",e[0]);const t=function(){i("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(t):l.setTimeout(t,0)}));s.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.push(s)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t<e.length;t+=1)o(e[t])}o(t.$el[0],{childList:t.params.observeSlideChildren}),o(t.$wrapperEl[0],{attributes:!1})}})),a("destroy",(()=>{n.forEach((e=>{e.disconnect()})),n.splice(0,n.length)}))}]);const re=[function(e){let t,{swiper:s,extendParams:a,on:i,emit:r}=e;function n(e,t){const a=s.params.virtual;if(a.cache&&s.virtual.cache[t])return s.virtual.cache[t];const i=a.renderSlide?d(a.renderSlide.call(s,e,t)):d(`<div class="${s.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`);return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",t),a.cache&&(s.virtual.cache[t]=i),i}function l(e){const{slidesPerView:t,slidesPerGroup:a,centeredSlides:i}=s.params,{addSlidesBefore:l,addSlidesAfter:o}=s.params.virtual,{from:d,to:c,slides:p,slidesGrid:u,offset:h}=s.virtual;s.params.cssMode||s.updateActiveIndex();const m=s.activeIndex||0;let f,g,v;f=s.rtlTranslate?"right":s.isHorizontal()?"left":"top",i?(g=Math.floor(t/2)+a+o,v=Math.floor(t/2)+a+l):(g=t+(a-1)+o,v=a+l);const w=Math.max((m||0)-v,0),b=Math.min((m||0)+g,p.length-1),x=(s.slidesGrid[w]||0)-(s.slidesGrid[0]||0);function y(){s.updateSlides(),s.updateProgress(),s.updateSlidesClasses(),s.lazy&&s.params.lazy.enabled&&s.lazy.load(),r("virtualUpdate")}if(Object.assign(s.virtual,{from:w,to:b,offset:x,slidesGrid:s.slidesGrid}),d===w&&c===b&&!e)return s.slidesGrid!==u&&x!==h&&s.slides.css(f,`${x}px`),s.updateProgress(),void r("virtualUpdate");if(s.params.virtual.renderExternal)return s.params.virtual.renderExternal.call(s,{offset:x,from:w,to:b,slides:function(){const e=[];for(let t=w;t<=b;t+=1)e.push(p[t]);return e}()}),void(s.params.virtual.renderExternalUpdate?y():r("virtualUpdate"));const E=[],C=[];if(e)s.$wrapperEl.find(`.${s.params.slideClass}`).remove();else for(let e=d;e<=c;e+=1)(e<w||e>b)&&s.$wrapperEl.find(`.${s.params.slideClass}[data-swiper-slide-index="${e}"]`).remove();for(let t=0;t<p.length;t+=1)t>=w&&t<=b&&(void 0===c||e?C.push(t):(t>c&&C.push(t),t<d&&E.push(t)));C.forEach((e=>{s.$wrapperEl.append(n(p[e],e))})),E.sort(((e,t)=>t-e)).forEach((e=>{s.$wrapperEl.prepend(n(p[e],e))})),s.$wrapperEl.children(".swiper-slide").css(f,`${x}px`),y()}a({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),s.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},i("beforeInit",(()=>{s.params.virtual.enabled&&(s.virtual.slides=s.params.virtual.slides,s.classNames.push(`${s.params.containerModifierClass}virtual`),s.params.watchSlidesProgress=!0,s.originalParams.watchSlidesProgress=!0,s.params.initialSlide||l())})),i("setTranslate",(()=>{s.params.virtual.enabled&&(s.params.cssMode&&!s._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{l()}),100)):l())})),i("init update resize",(()=>{s.params.virtual.enabled&&s.params.cssMode&&v(s.wrapperEl,"--swiper-virtual-size",`${s.virtualSize}px`)})),Object.assign(s.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.push(e[t]);else s.virtual.slides.push(e);l(!0)},prependSlide:function(e){const t=s.activeIndex;let a=t+1,i=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.unshift(e[t]);a=t+e.length,i=e.length}else s.virtual.slides.unshift(e);if(s.params.virtual.cache){const e=s.virtual.cache,t={};Object.keys(e).forEach((s=>{const a=e[s],r=a.attr("data-swiper-slide-index");r&&a.attr("data-swiper-slide-index",parseInt(r,10)+i),t[parseInt(s,10)+i]=a})),s.virtual.cache=t}l(!0),s.slideTo(a,0)},removeSlide:function(e){if(null==e)return;let t=s.activeIndex;if(Array.isArray(e))for(let a=e.length-1;a>=0;a-=1)s.virtual.slides.splice(e[a],1),s.params.virtual.cache&&delete s.virtual.cache[e[a]],e[a]<t&&(t-=1),t=Math.max(t,0);else s.virtual.slides.splice(e,1),s.params.virtual.cache&&delete s.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);l(!0),s.slideTo(t,0)},removeAllSlides:function(){s.virtual.slides=[],s.params.virtual.cache&&(s.virtual.cache={}),l(!0),s.slideTo(0,0)},update:l})},function(e){let{swiper:t,extendParams:s,on:i,emit:n}=e;const l=a(),o=r();function c(e){if(!t.enabled)return;const{rtlTranslate:s}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const i=a.keyCode||a.charCode,r=t.params.keyboard.pageUpDown,d=r&&33===i,c=r&&34===i,p=37===i,u=39===i,h=38===i,m=40===i;if(!t.allowSlideNext&&(t.isHorizontal()&&u||t.isVertical()&&m||c))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&p||t.isVertical()&&h||d))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||l.activeElement&&l.activeElement.nodeName&&("input"===l.activeElement.nodeName.toLowerCase()||"textarea"===l.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(d||c||p||u||h||m)){let e=!1;if(t.$el.parents(`.${t.params.slideClass}`).length>0&&0===t.$el.parents(`.${t.params.slideActiveClass}`).length)return;const a=t.$el,i=a[0].clientWidth,r=a[0].clientHeight,n=o.innerWidth,l=o.innerHeight,d=t.$el.offset();s&&(d.left-=t.$el[0].scrollLeft);const c=[[d.left,d.top],[d.left+i,d.top],[d.left,d.top+r],[d.left+i,d.top+r]];for(let t=0;t<c.length;t+=1){const s=c[t];if(s[0]>=0&&s[0]<=n&&s[1]>=0&&s[1]<=l){if(0===s[0]&&0===s[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((d||c||p||u)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((c||u)&&!s||(d||p)&&s)&&t.slideNext(),((d||p)&&!s||(c||u)&&s)&&t.slidePrev()):((d||c||h||m)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(c||m)&&t.slideNext(),(d||h)&&t.slidePrev()),n("keyPress",i)}}function p(){t.keyboard.enabled||(d(l).on("keydown",c),t.keyboard.enabled=!0)}function u(){t.keyboard.enabled&&(d(l).off("keydown",c),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},s({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{t.params.keyboard.enabled&&p()})),i("destroy",(()=>{t.keyboard.enabled&&u()})),Object.assign(t.keyboard,{enable:p,disable:u})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();let l;s({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),t.mousewheel={enabled:!1};let o,c=u();const h=[];function m(){t.enabled&&(t.mouseEntered=!0)}function f(){t.enabled&&(t.mouseEntered=!1)}function g(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta)&&(!(t.params.mousewheel.thresholdTime&&u()-c<t.params.mousewheel.thresholdTime)&&(e.delta>=6&&u()-c<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),i("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),i("scroll",e.raw)),c=(new n.Date).getTime(),!1)))}function v(e){let s=e,a=!0;if(!t.enabled)return;const r=t.params.mousewheel;t.params.cssMode&&s.preventDefault();let n=t.$el;if("container"!==t.params.mousewheel.eventsTarget&&(n=d(t.params.mousewheel.eventsTarget)),!t.mouseEntered&&!n[0].contains(s.target)&&!r.releaseOnEdges)return!0;s.originalEvent&&(s=s.originalEvent);let c=0;const m=t.rtlTranslate?-1:1,f=function(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),a=10*t,i=10*s,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=i,i=0),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinX:t,spinY:s,pixelX:a,pixelY:i}}(s);if(r.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;c=-f.pixelX*m}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;c=-f.pixelY}else c=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*m:-f.pixelY;if(0===c)return!0;r.invert&&(c=-c);let v=t.getTranslate()+c*r.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),a=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),a&&t.params.nested&&s.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:u(),delta:Math.abs(c),direction:Math.sign(c)},a=o&&e.time<o.time+500&&e.delta<=o.delta&&e.direction===o.direction;if(!a){o=void 0,t.params.loop&&t.loopFix();let n=t.getTranslate()+c*r.sensitivity;const d=t.isBeginning,u=t.isEnd;if(n>=t.minTranslate()&&(n=t.minTranslate()),n<=t.maxTranslate()&&(n=t.maxTranslate()),t.setTransition(0),t.setTranslate(n),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!d&&t.isBeginning||!u&&t.isEnd)&&t.updateSlidesClasses(),t.params.freeMode.sticky){clearTimeout(l),l=void 0,h.length>=15&&h.shift();const s=h.length?h[h.length-1]:void 0,a=h[0];if(h.push(e),s&&(e.delta>s.delta||e.direction!==s.direction))h.splice(0);else if(h.length>=15&&e.time-a.time<500&&a.delta-e.delta>=1&&e.delta<=6){const s=c>0?.8:.2;o=e,h.splice(0),l=p((()=>{t.slideToClosest(t.params.speed,!0,void 0,s)}),0)}l||(l=p((()=>{o=e,h.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(a||i("scroll",s),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),n===t.minTranslate()||n===t.maxTranslate())return!0}}else{const s={time:u(),delta:Math.abs(c),direction:Math.sign(c),raw:e};h.length>=2&&h.shift();const a=h.length?h[h.length-1]:void 0;if(h.push(s),a?(s.direction!==a.direction||s.delta>a.delta||s.time>a.time+150)&&g(s):g(s),function(e){const s=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&s.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&s.releaseOnEdges)return!0;return!1}(s))return!0}return s.preventDefault?s.preventDefault():s.returnValue=!1,!1}function w(e){let s=t.$el;"container"!==t.params.mousewheel.eventsTarget&&(s=d(t.params.mousewheel.eventsTarget)),s[e]("mouseenter",m),s[e]("mouseleave",f),s[e]("wheel",v)}function b(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",v),!0):!t.mousewheel.enabled&&(w("on"),t.mousewheel.enabled=!0,!0)}function x(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,v),!0):!!t.mousewheel.enabled&&(w("off"),t.mousewheel.enabled=!1,!0)}a("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&x(),t.params.mousewheel.enabled&&b()})),a("destroy",(()=>{t.params.cssMode&&b(),t.mousewheel.enabled&&x()})),Object.assign(t.mousewheel,{enable:b,disable:x})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;function r(e){let s;return e&&(s=d(e),t.params.uniqueNavElements&&"string"==typeof e&&s.length>1&&1===t.$el.find(e).length&&(s=t.$el.find(e))),s}function n(e,s){const a=t.params.navigation;e&&e.length>0&&(e[s?"addClass":"removeClass"](a.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=s),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](a.lockClass))}function l(){if(t.params.loop)return;const{$nextEl:e,$prevEl:s}=t.navigation;n(s,t.isBeginning&&!t.params.rewind),n(e,t.isEnd&&!t.params.rewind)}function o(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function p(){const e=t.params.navigation;if(t.params.navigation=F(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const s=r(e.nextEl),a=r(e.prevEl);s&&s.length>0&&s.on("click",c),a&&a.length>0&&a.on("click",o),Object.assign(t.navigation,{$nextEl:s,nextEl:s&&s[0],$prevEl:a,prevEl:a&&a[0]}),t.enabled||(s&&s.addClass(e.lockClass),a&&a.addClass(e.lockClass))}function u(){const{$nextEl:e,$prevEl:s}=t.navigation;e&&e.length&&(e.off("click",c),e.removeClass(t.params.navigation.disabledClass)),s&&s.length&&(s.off("click",o),s.removeClass(t.params.navigation.disabledClass))}s({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},a("init",(()=>{!1===t.params.navigation.enabled?h():(p(),l())})),a("toEdge fromEdge lock unlock",(()=>{l()})),a("destroy",(()=>{u()})),a("enable disable",(()=>{const{$nextEl:e,$prevEl:s}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),s&&s[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)})),a("click",((e,s)=>{const{$nextEl:a,$prevEl:r}=t.navigation,n=s.target;if(t.params.navigation.hideOnClick&&!d(n).is(r)&&!d(n).is(a)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===n||t.pagination.el.contains(n)))return;let e;a?e=a.hasClass(t.params.navigation.hiddenClass):r&&(e=r.hasClass(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),a&&a.toggleClass(t.params.navigation.hiddenClass),r&&r.toggleClass(t.params.navigation.hiddenClass)}}));const h=()=>{t.$el.addClass(t.params.navigation.navigationDisabledClass),u()};Object.assign(t.navigation,{enable:()=>{t.$el.removeClass(t.params.navigation.navigationDisabledClass),p(),l()},disable:h,update:l,init:p,destroy:u})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const r="swiper-pagination";let n;s({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,$el:null,bullets:[]};let l=0;function o(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function c(e,s){const{bulletActiveClass:a}=t.params.pagination;e[s]().addClass(`${a}-${s}`)[s]().addClass(`${a}-${s}-${s}`)}function p(){const e=t.rtl,s=t.params.pagination;if(o())return;const a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,r=t.pagination.$el;let p;const u=t.params.loop?Math.ceil((a-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(p=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),p>a-1-2*t.loopedSlides&&(p-=a-2*t.loopedSlides),p>u-1&&(p-=u),p<0&&"bullets"!==t.params.paginationType&&(p=u+p)):p=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===s.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const a=t.pagination.bullets;let i,o,u;if(s.dynamicBullets&&(n=a.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(t.isHorizontal()?"width":"height",n*(s.dynamicMainBullets+4)+"px"),s.dynamicMainBullets>1&&void 0!==t.previousIndex&&(l+=p-(t.previousIndex-t.loopedSlides||0),l>s.dynamicMainBullets-1?l=s.dynamicMainBullets-1:l<0&&(l=0)),i=Math.max(p-l,0),o=i+(Math.min(a.length,s.dynamicMainBullets)-1),u=(o+i)/2),a.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${s.bulletActiveClass}${e}`)).join(" ")),r.length>1)a.each((e=>{const t=d(e),a=t.index();a===p&&t.addClass(s.bulletActiveClass),s.dynamicBullets&&(a>=i&&a<=o&&t.addClass(`${s.bulletActiveClass}-main`),a===i&&c(t,"prev"),a===o&&c(t,"next"))}));else{const e=a.eq(p),r=e.index();if(e.addClass(s.bulletActiveClass),s.dynamicBullets){const e=a.eq(i),n=a.eq(o);for(let e=i;e<=o;e+=1)a.eq(e).addClass(`${s.bulletActiveClass}-main`);if(t.params.loop)if(r>=a.length){for(let e=s.dynamicMainBullets;e>=0;e-=1)a.eq(a.length-e).addClass(`${s.bulletActiveClass}-main`);a.eq(a.length-s.dynamicMainBullets-1).addClass(`${s.bulletActiveClass}-prev`)}else c(e,"prev"),c(n,"next");else c(e,"prev"),c(n,"next")}}if(s.dynamicBullets){const i=Math.min(a.length,s.dynamicMainBullets+4),r=(n*i-n)/2-u*n,l=e?"right":"left";a.css(t.isHorizontal()?l:"top",`${r}px`)}}if("fraction"===s.type&&(r.find(U(s.currentClass)).text(s.formatFractionCurrent(p+1)),r.find(U(s.totalClass)).text(s.formatFractionTotal(u))),"progressbar"===s.type){let e;e=s.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const a=(p+1)/u;let i=1,n=1;"horizontal"===e?i=a:n=a,r.find(U(s.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${i}) scaleY(${n})`).transition(t.params.speed)}"custom"===s.type&&s.renderCustom?(r.html(s.renderCustom(t,p+1,u)),i("paginationRender",r[0])):i("paginationUpdate",r[0]),t.params.watchOverflow&&t.enabled&&r[t.isLocked?"addClass":"removeClass"](s.lockClass)}function u(){const e=t.params.pagination;if(o())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,a=t.pagination.$el;let r="";if("bullets"===e.type){let i=t.params.loop?Math.ceil((s-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&i>s&&(i=s);for(let s=0;s<i;s+=1)e.renderBullet?r+=e.renderBullet.call(t,s,e.bulletClass):r+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;a.html(r),t.pagination.bullets=a.find(U(e.bulletClass))}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`,a.html(r)),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`,a.html(r)),"custom"!==e.type&&i("paginationRender",t.pagination.$el[0])}function h(){t.params.pagination=F(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let s=d(e.el);0!==s.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&s.length>1&&(s=t.$el.find(e.el),s.length>1&&(s=s.filter((e=>d(e).parents(".swiper")[0]===t.el)))),"bullets"===e.type&&e.clickable&&s.addClass(e.clickableClass),s.addClass(e.modifierClass+e.type),s.addClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(s.addClass(`${e.modifierClass}${e.type}-dynamic`),l=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&s.addClass(e.progressbarOppositeClass),e.clickable&&s.on("click",U(e.bulletClass),(function(e){e.preventDefault();let s=d(this).index()*t.params.slidesPerGroup;t.params.loop&&(s+=t.loopedSlides),t.slideTo(s)})),Object.assign(t.pagination,{$el:s,el:s[0]}),t.enabled||s.addClass(e.lockClass))}function m(){const e=t.params.pagination;if(o())return;const s=t.pagination.$el;s.removeClass(e.hiddenClass),s.removeClass(e.modifierClass+e.type),s.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&s.off("click",U(e.bulletClass))}a("init",(()=>{!1===t.params.pagination.enabled?f():(h(),u(),p())})),a("activeIndexChange",(()=>{(t.params.loop||void 0===t.snapIndex)&&p()})),a("snapIndexChange",(()=>{t.params.loop||p()})),a("slidesLengthChange",(()=>{t.params.loop&&(u(),p())})),a("snapGridLengthChange",(()=>{t.params.loop||(u(),p())})),a("destroy",(()=>{m()})),a("enable disable",(()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)})),a("lock unlock",(()=>{p()})),a("click",((e,s)=>{const a=s.target,{$el:r}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!d(a).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&a===t.navigation.nextEl||t.navigation.prevEl&&a===t.navigation.prevEl))return;const e=r.hasClass(t.params.pagination.hiddenClass);i(!0===e?"paginationShow":"paginationHide"),r.toggleClass(t.params.pagination.hiddenClass)}}));const f=()=>{t.$el.addClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.addClass(t.params.pagination.paginationDisabledClass),m()};Object.assign(t.pagination,{enable:()=>{t.$el.removeClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.removeClass(t.params.pagination.paginationDisabledClass),h(),u(),p()},disable:f,render:u,update:p,init:h,destroy:m})},function(e){let{swiper:t,extendParams:s,on:i,emit:r}=e;const n=a();let l,o,c,u,h=!1,m=null,f=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:s,progress:a}=t,{$dragEl:i,$el:r}=e,n=t.params.scrollbar;let l=o,d=(c-o)*a;s?(d=-d,d>0?(l=o-d,d=0):-d+o>c&&(l=c+d)):d<0?(l=o+d,d=0):d+o>c&&(l=c-d),t.isHorizontal()?(i.transform(`translate3d(${d}px, 0, 0)`),i[0].style.width=`${l}px`):(i.transform(`translate3d(0px, ${d}px, 0)`),i[0].style.height=`${l}px`),n.hide&&(clearTimeout(m),r[0].style.opacity=1,m=setTimeout((()=>{r[0].style.opacity=0,r.transition(400)}),1e3))}function v(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:s,$el:a}=e;s[0].style.width="",s[0].style.height="",c=t.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),o="auto"===t.params.scrollbar.dragSize?c*u:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?s[0].style.width=`${o}px`:s[0].style.height=`${o}px`,a[0].style.display=u>=1?"none":"",t.params.scrollbar.hide&&(a[0].style.opacity=0),t.params.watchOverflow&&t.enabled&&e.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}function w(e){return t.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY}function b(e){const{scrollbar:s,rtlTranslate:a}=t,{$el:i}=s;let r;r=(w(e)-i.offset()[t.isHorizontal()?"left":"top"]-(null!==l?l:o/2))/(c-o),r=Math.max(Math.min(r,1),0),a&&(r=1-r);const n=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*r;t.updateProgress(n),t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}function x(e){const s=t.params.scrollbar,{scrollbar:a,$wrapperEl:i}=t,{$el:n,$dragEl:o}=a;h=!0,l=e.target===o[0]||e.target===o?w(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.transition(100),o.transition(100),b(e),clearTimeout(f),n.transition(0),s.hide&&n.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),r("scrollbarDragStart",e)}function y(e){const{scrollbar:s,$wrapperEl:a}=t,{$el:i,$dragEl:n}=s;h&&(e.preventDefault?e.preventDefault():e.returnValue=!1,b(e),a.transition(0),i.transition(0),n.transition(0),r("scrollbarDragMove",e))}function E(e){const s=t.params.scrollbar,{scrollbar:a,$wrapperEl:i}=t,{$el:n}=a;h&&(h=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),i.transition("")),s.hide&&(clearTimeout(f),f=p((()=>{n.css("opacity",0),n.transition(400)}),1e3)),r("scrollbarDragEnd",e),s.snapOnRelease&&t.slideToClosest())}function C(e){const{scrollbar:s,touchEventsTouch:a,touchEventsDesktop:i,params:r,support:l}=t,o=s.$el;if(!o)return;const d=o[0],c=!(!l.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},p=!(!l.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};if(!d)return;const u="on"===e?"addEventListener":"removeEventListener";l.touch?(d[u](a.start,x,c),d[u](a.move,y,c),d[u](a.end,E,p)):(d[u](i.start,x,c),n[u](i.move,y,c),n[u](i.end,E,p))}function T(){const{scrollbar:e,$el:s}=t;t.params.scrollbar=F(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const a=t.params.scrollbar;if(!a.el)return;let i=d(a.el);t.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===s.find(a.el).length&&(i=s.find(a.el)),i.addClass(t.isHorizontal()?a.horizontalClass:a.verticalClass);let r=i.find(`.${t.params.scrollbar.dragClass}`);0===r.length&&(r=d(`<div class="${t.params.scrollbar.dragClass}"></div>`),i.append(r)),Object.assign(e,{$el:i,el:i[0],$dragEl:r,dragEl:r[0]}),a.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&C("on"),i&&i[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}function $(){const e=t.params.scrollbar,s=t.scrollbar.$el;s&&s.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.params.scrollbar.el&&t.scrollbar.el&&C("off")}s({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},i("init",(()=>{!1===t.params.scrollbar.enabled?S():(T(),v(),g())})),i("update resize observerUpdate lock unlock",(()=>{v()})),i("setTranslate",(()=>{g()})),i("setTransition",((e,s)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)}(s)})),i("enable disable",(()=>{const{$el:e}=t.scrollbar;e&&e[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)})),i("destroy",(()=>{$()}));const S=()=>{t.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),$()};Object.assign(t.scrollbar,{enable:()=>{t.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),T(),v(),g()},disable:S,updateSize:v,setTranslate:g,init:T,destroy:$})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({parallax:{enabled:!1}});const i=(e,s)=>{const{rtl:a}=t,i=d(e),r=a?-1:1,n=i.attr("data-swiper-parallax")||"0";let l=i.attr("data-swiper-parallax-x"),o=i.attr("data-swiper-parallax-y");const c=i.attr("data-swiper-parallax-scale"),p=i.attr("data-swiper-parallax-opacity");if(l||o?(l=l||"0",o=o||"0"):t.isHorizontal()?(l=n,o="0"):(o=n,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*s*r+"%":l*s*r+"px",o=o.indexOf("%")>=0?parseInt(o,10)*s+"%":o*s+"px",null!=p){const e=p-(p-1)*(1-Math.abs(s));i[0].style.opacity=e}if(null==c)i.transform(`translate3d(${l}, ${o}, 0px)`);else{const e=c-(c-1)*(1-Math.abs(s));i.transform(`translate3d(${l}, ${o}, 0px) scale(${e})`)}},r=()=>{const{$el:e,slides:s,progress:a,snapGrid:r}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{i(e,a)})),s.each(((e,s)=>{let n=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(n+=Math.ceil(s/2)-a*(r.length-1)),n=Math.min(Math.max(n,-1),1),d(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{i(e,n)}))}))};a("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),a("init",(()=>{t.params.parallax.enabled&&r()})),a("setTranslate",(()=>{t.params.parallax.enabled&&r()})),a("setTransition",((e,s)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{$el:s}=t;s.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t=>{const s=d(t);let a=parseInt(s.attr("data-swiper-parallax-duration"),10)||e;0===e&&(a=0),s.transition(a)}))}(s)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();s({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let l,o,c,p=1,u=!1;const m={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},f={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v=1;function w(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,s=e.targetTouches[0].pageY,a=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt((a-t)**2+(i-s)**2)}function b(e){const s=t.support,a=t.params.zoom;if(o=!1,c=!1,!s.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;o=!0,m.scaleStart=w(e)}m.$slideEl&&m.$slideEl.length||(m.$slideEl=d(e.target).closest(`.${t.params.slideClass}`),0===m.$slideEl.length&&(m.$slideEl=t.slides.eq(t.activeIndex)),m.$imageEl=m.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),m.$imageWrapEl=m.$imageEl.parent(`.${a.containerClass}`),m.maxRatio=m.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,0!==m.$imageWrapEl.length)?(m.$imageEl&&m.$imageEl.transition(0),u=!0):m.$imageEl=void 0}function x(e){const s=t.support,a=t.params.zoom,i=t.zoom;if(!s.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;c=!0,m.scaleMove=w(e)}m.$imageEl&&0!==m.$imageEl.length?(s.gestures?i.scale=e.scale*p:i.scale=m.scaleMove/m.scaleStart*p,i.scale>m.maxRatio&&(i.scale=m.maxRatio-1+(i.scale-m.maxRatio+1)**.5),i.scale<a.minRatio&&(i.scale=a.minRatio+1-(a.minRatio-i.scale+1)**.5),m.$imageEl.transform(`translate3d(0,0,0) scale(${i.scale})`)):"gesturechange"===e.type&&b(e)}function y(e){const s=t.device,a=t.support,i=t.params.zoom,r=t.zoom;if(!a.gestures){if(!o||!c)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!s.android)return;o=!1,c=!1}m.$imageEl&&0!==m.$imageEl.length&&(r.scale=Math.max(Math.min(r.scale,m.maxRatio),i.minRatio),m.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${r.scale})`),p=r.scale,u=!1,1===r.scale&&(m.$slideEl=void 0))}function E(e){const s=t.zoom;if(!m.$imageEl||0===m.$imageEl.length)return;if(t.allowClick=!1,!f.isTouched||!m.$slideEl)return;f.isMoved||(f.width=m.$imageEl[0].offsetWidth,f.height=m.$imageEl[0].offsetHeight,f.startX=h(m.$imageWrapEl[0],"x")||0,f.startY=h(m.$imageWrapEl[0],"y")||0,m.slideWidth=m.$slideEl[0].offsetWidth,m.slideHeight=m.$slideEl[0].offsetHeight,m.$imageWrapEl.transition(0));const a=f.width*s.scale,i=f.height*s.scale;if(!(a<m.slideWidth&&i<m.slideHeight)){if(f.minX=Math.min(m.slideWidth/2-a/2,0),f.maxX=-f.minX,f.minY=Math.min(m.slideHeight/2-i/2,0),f.maxY=-f.minY,f.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,f.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!f.isMoved&&!u){if(t.isHorizontal()&&(Math.floor(f.minX)===Math.floor(f.startX)&&f.touchesCurrent.x<f.touchesStart.x||Math.floor(f.maxX)===Math.floor(f.startX)&&f.touchesCurrent.x>f.touchesStart.x))return void(f.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(f.minY)===Math.floor(f.startY)&&f.touchesCurrent.y<f.touchesStart.y||Math.floor(f.maxY)===Math.floor(f.startY)&&f.touchesCurrent.y>f.touchesStart.y))return void(f.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),f.isMoved=!0,f.currentX=f.touchesCurrent.x-f.touchesStart.x+f.startX,f.currentY=f.touchesCurrent.y-f.touchesStart.y+f.startY,f.currentX<f.minX&&(f.currentX=f.minX+1-(f.minX-f.currentX+1)**.8),f.currentX>f.maxX&&(f.currentX=f.maxX-1+(f.currentX-f.maxX+1)**.8),f.currentY<f.minY&&(f.currentY=f.minY+1-(f.minY-f.currentY+1)**.8),f.currentY>f.maxY&&(f.currentY=f.maxY-1+(f.currentY-f.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=f.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=f.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(f.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(f.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(f.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(f.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=f.touchesCurrent.x,g.prevPositionY=f.touchesCurrent.y,g.prevTime=Date.now(),m.$imageWrapEl.transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`)}}function C(){const e=t.zoom;m.$slideEl&&t.previousIndex!==t.activeIndex&&(m.$imageEl&&m.$imageEl.transform("translate3d(0,0,0) scale(1)"),m.$imageWrapEl&&m.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,p=1,m.$slideEl=void 0,m.$imageEl=void 0,m.$imageWrapEl=void 0)}function T(e){const s=t.zoom,a=t.params.zoom;if(m.$slideEl||(e&&e.target&&(m.$slideEl=d(e.target).closest(`.${t.params.slideClass}`)),m.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):m.$slideEl=t.slides.eq(t.activeIndex)),m.$imageEl=m.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),m.$imageWrapEl=m.$imageEl.parent(`.${a.containerClass}`)),!m.$imageEl||0===m.$imageEl.length||!m.$imageWrapEl||0===m.$imageWrapEl.length)return;let i,r,l,o,c,u,h,g,v,w,b,x,y,E,C,T,$,S;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),m.$slideEl.addClass(`${a.zoomedSlideClass}`),void 0===f.touchesStart.x&&e?(i="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,r="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(i=f.touchesStart.x,r=f.touchesStart.y),s.scale=m.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,p=m.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,e?($=m.$slideEl[0].offsetWidth,S=m.$slideEl[0].offsetHeight,l=m.$slideEl.offset().left+n.scrollX,o=m.$slideEl.offset().top+n.scrollY,c=l+$/2-i,u=o+S/2-r,v=m.$imageEl[0].offsetWidth,w=m.$imageEl[0].offsetHeight,b=v*s.scale,x=w*s.scale,y=Math.min($/2-b/2,0),E=Math.min(S/2-x/2,0),C=-y,T=-E,h=c*s.scale,g=u*s.scale,h<y&&(h=y),h>C&&(h=C),g<E&&(g=E),g>T&&(g=T)):(h=0,g=0),m.$imageWrapEl.transition(300).transform(`translate3d(${h}px, ${g}px,0)`),m.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${s.scale})`)}function $(){const e=t.zoom,s=t.params.zoom;m.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):m.$slideEl=t.slides.eq(t.activeIndex),m.$imageEl=m.$slideEl.find(`.${s.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),m.$imageWrapEl=m.$imageEl.parent(`.${s.containerClass}`)),m.$imageEl&&0!==m.$imageEl.length&&m.$imageWrapEl&&0!==m.$imageWrapEl.length&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,p=1,m.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),m.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),m.$slideEl.removeClass(`${s.zoomedSlideClass}`),m.$slideEl=void 0)}function S(e){const s=t.zoom;s.scale&&1!==s.scale?$():T(e)}function M(){const e=t.support;return{passiveListener:!("touchstart"!==t.touchEvents.start||!e.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!e.passiveListener||{passive:!1,capture:!0}}}function P(){return`.${t.params.slideClass}`}function k(e){const{passiveListener:s}=M(),a=P();t.$wrapperEl[e]("gesturestart",a,b,s),t.$wrapperEl[e]("gesturechange",a,x,s),t.$wrapperEl[e]("gestureend",a,y,s)}function z(){l||(l=!0,k("on"))}function L(){l&&(l=!1,k("off"))}function O(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const s=t.support,{passiveListener:a,activeListenerWithCapture:i}=M(),r=P();s.gestures?(t.$wrapperEl.on(t.touchEvents.start,z,a),t.$wrapperEl.on(t.touchEvents.end,L,a)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,r,b,a),t.$wrapperEl.on(t.touchEvents.move,r,x,i),t.$wrapperEl.on(t.touchEvents.end,r,y,a),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,r,y,a)),t.$wrapperEl.on(t.touchEvents.move,`.${t.params.zoom.containerClass}`,E,i)}function I(){const e=t.zoom;if(!e.enabled)return;const s=t.support;e.enabled=!1;const{passiveListener:a,activeListenerWithCapture:i}=M(),r=P();s.gestures?(t.$wrapperEl.off(t.touchEvents.start,z,a),t.$wrapperEl.off(t.touchEvents.end,L,a)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,r,b,a),t.$wrapperEl.off(t.touchEvents.move,r,x,i),t.$wrapperEl.off(t.touchEvents.end,r,y,a),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,r,y,a)),t.$wrapperEl.off(t.touchEvents.move,`.${t.params.zoom.containerClass}`,E,i)}Object.defineProperty(t.zoom,"scale",{get:()=>v,set(e){if(v!==e){const t=m.$imageEl?m.$imageEl[0]:void 0,s=m.$slideEl?m.$slideEl[0]:void 0;i("zoomChange",e,t,s)}v=e}}),a("init",(()=>{t.params.zoom.enabled&&O()})),a("destroy",(()=>{I()})),a("touchStart",((e,s)=>{t.zoom.enabled&&function(e){const s=t.device;m.$imageEl&&0!==m.$imageEl.length&&(f.isTouched||(s.android&&e.cancelable&&e.preventDefault(),f.isTouched=!0,f.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,f.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))}(s)})),a("touchEnd",((e,s)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!m.$imageEl||0===m.$imageEl.length)return;if(!f.isTouched||!f.isMoved)return f.isTouched=!1,void(f.isMoved=!1);f.isTouched=!1,f.isMoved=!1;let s=300,a=300;const i=g.x*s,r=f.currentX+i,n=g.y*a,l=f.currentY+n;0!==g.x&&(s=Math.abs((r-f.currentX)/g.x)),0!==g.y&&(a=Math.abs((l-f.currentY)/g.y));const o=Math.max(s,a);f.currentX=r,f.currentY=l;const d=f.width*e.scale,c=f.height*e.scale;f.minX=Math.min(m.slideWidth/2-d/2,0),f.maxX=-f.minX,f.minY=Math.min(m.slideHeight/2-c/2,0),f.maxY=-f.minY,f.currentX=Math.max(Math.min(f.currentX,f.maxX),f.minX),f.currentY=Math.max(Math.min(f.currentY,f.maxY),f.minY),m.$imageWrapEl.transition(o).transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`)}()})),a("doubleTap",((e,s)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&S(s)})),a("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&C()})),a("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&C()})),Object.assign(t.zoom,{enable:O,disable:I,in:T,out:$,toggle:S})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;s({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),t.lazy={};let n=!1,l=!1;function o(e,s){void 0===s&&(s=!0);const a=t.params.lazy;if(void 0===e)return;if(0===t.slides.length)return;const r=t.virtual&&t.params.virtual.enabled?t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`):t.slides.eq(e),n=r.find(`.${a.elementClass}:not(.${a.loadedClass}):not(.${a.loadingClass})`);!r.hasClass(a.elementClass)||r.hasClass(a.loadedClass)||r.hasClass(a.loadingClass)||n.push(r[0]),0!==n.length&&n.each((e=>{const n=d(e);n.addClass(a.loadingClass);const l=n.attr("data-background"),c=n.attr("data-src"),p=n.attr("data-srcset"),u=n.attr("data-sizes"),h=n.parent("picture");t.loadImage(n[0],c||l,p,u,!1,(()=>{if(null!=t&&t&&(!t||t.params)&&!t.destroyed){if(l?(n.css("background-image",`url("${l}")`),n.removeAttr("data-background")):(p&&(n.attr("srcset",p),n.removeAttr("data-srcset")),u&&(n.attr("sizes",u),n.removeAttr("data-sizes")),h.length&&h.children("source").each((e=>{const t=d(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))})),c&&(n.attr("src",c),n.removeAttr("data-src"))),n.addClass(a.loadedClass).removeClass(a.loadingClass),r.find(`.${a.preloaderClass}`).remove(),t.params.loop&&s){const e=r.attr("data-swiper-slide-index");if(r.hasClass(t.params.slideDuplicateClass)){o(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(),!1)}else{o(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(),!1)}}i("lazyImageReady",r[0],n[0]),t.params.autoHeight&&t.updateAutoHeight()}})),i("lazyImageLoad",r[0],n[0])}))}function c(){const{$wrapperEl:e,params:s,slides:a,activeIndex:i}=t,r=t.virtual&&s.virtual.enabled,n=s.lazy;let c=s.slidesPerView;function p(t){if(r){if(e.children(`.${s.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(a[t])return!0;return!1}function u(e){return r?d(e).attr("data-swiper-slide-index"):d(e).index()}if("auto"===c&&(c=0),l||(l=!0),t.params.watchSlidesProgress)e.children(`.${s.slideVisibleClass}`).each((e=>{o(r?d(e).attr("data-swiper-slide-index"):d(e).index())}));else if(c>1)for(let e=i;e<i+c;e+=1)p(e)&&o(e);else o(i);if(n.loadPrevNext)if(c>1||n.loadPrevNextAmount&&n.loadPrevNextAmount>1){const e=n.loadPrevNextAmount,t=Math.ceil(c),s=Math.min(i+t+Math.max(e,t),a.length),r=Math.max(i-Math.max(t,e),0);for(let e=i+t;e<s;e+=1)p(e)&&o(e);for(let e=r;e<i;e+=1)p(e)&&o(e)}else{const t=e.children(`.${s.slideNextClass}`);t.length>0&&o(u(t));const a=e.children(`.${s.slidePrevClass}`);a.length>0&&o(u(a))}}function p(){const e=r();if(!t||t.destroyed)return;const s=t.params.lazy.scrollingElement?d(t.params.lazy.scrollingElement):d(e),a=s[0]===e,i=a?e.innerWidth:s[0].offsetWidth,l=a?e.innerHeight:s[0].offsetHeight,o=t.$el.offset(),{rtlTranslate:u}=t;let h=!1;u&&(o.left-=t.$el[0].scrollLeft);const m=[[o.left,o.top],[o.left+t.width,o.top],[o.left,o.top+t.height],[o.left+t.width,o.top+t.height]];for(let e=0;e<m.length;e+=1){const t=m[e];if(t[0]>=0&&t[0]<=i&&t[1]>=0&&t[1]<=l){if(0===t[0]&&0===t[1])continue;h=!0}}const f=!("touchstart"!==t.touchEvents.start||!t.support.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};h?(c(),s.off("scroll",p,f)):n||(n=!0,s.on("scroll",p,f))}a("beforeInit",(()=>{t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)})),a("init",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?p():c())})),a("scroll",(()=>{t.params.freeMode&&t.params.freeMode.enabled&&!t.params.freeMode.sticky&&c()})),a("scrollbarDragMove resize _freeModeNoMomentumRelease",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?p():c())})),a("transitionStart",(()=>{t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!l)&&(t.params.lazy.checkInView?p():c())})),a("transitionEnd",(()=>{t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&(t.params.lazy.checkInView?p():c())})),a("slideChange",(()=>{const{lazy:e,cssMode:s,watchSlidesProgress:a,touchReleaseOnEdges:i,resistanceRatio:r}=t.params;e.enabled&&(s||a&&(i||0===r))&&c()})),a("destroy",(()=>{t.$el&&t.$el.find(`.${t.params.lazy.loadingClass}`).removeClass(t.params.lazy.loadingClass)})),Object.assign(t.lazy,{load:c,loadInSlide:o})},function(e){let{swiper:t,extendParams:s,on:a}=e;function i(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this}function r(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}s({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},a("beforeInit",(()=>{t.controller.control=t.params.controller.control})),a("update",(()=>{r()})),a("resize",(()=>{r()})),a("observerUpdate",(()=>{r()})),a("setTranslate",((e,s,a)=>{t.controller.control&&t.controller.setTranslate(s,a)})),a("setTransition",((e,s,a)=>{t.controller.control&&t.controller.setTransition(s,a)})),Object.assign(t.controller,{setTranslate:function(e,s){const a=t.controller.control;let r,n;const l=t.constructor;function o(e){const s=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline||(t.controller.spline=t.params.loop?new i(t.slidesGrid,e.slidesGrid):new i(t.snapGrid,e.snapGrid))}(e),n=-t.controller.spline.interpolate(-s)),n&&"container"!==t.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),n=(s-t.minTranslate())*r+e.minTranslate()),t.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(let e=0;e<a.length;e+=1)a[e]!==s&&a[e]instanceof l&&o(a[e]);else a instanceof l&&s!==a&&o(a)},setTransition:function(e,s){const a=t.constructor,i=t.controller.control;let r;function n(s){s.setTransition(e,t),0!==e&&(s.transitionStart(),s.params.autoHeight&&p((()=>{s.updateAutoHeight()})),s.$wrapperEl.transitionEnd((()=>{i&&(s.params.loop&&"slide"===t.params.controller.by&&s.loopFix(),s.transitionEnd())})))}if(Array.isArray(i))for(r=0;r<i.length;r+=1)i[r]!==s&&i[r]instanceof a&&n(i[r]);else i instanceof a&&s!==i&&n(i)}})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),t.a11y={clicked:!1};let i=null;function r(e){const t=i;0!==t.length&&(t.html(""),t.html(e))}function n(e){e.attr("tabIndex","0")}function l(e){e.attr("tabIndex","-1")}function o(e,t){e.attr("role",t)}function c(e,t){e.attr("aria-roledescription",t)}function p(e,t){e.attr("aria-label",t)}function u(e){e.attr("aria-disabled",!0)}function h(e){e.attr("aria-disabled",!1)}function m(e){if(13!==e.keyCode&&32!==e.keyCode)return;const s=t.params.a11y,a=d(e.target);t.navigation&&t.navigation.$nextEl&&a.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?r(s.lastSlideMessage):r(s.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&a.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?r(s.firstSlideMessage):r(s.prevSlideMessage)),t.pagination&&a.is(U(t.params.pagination.bulletClass))&&a[0].click()}function f(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function g(){return f()&&t.params.pagination.clickable}const v=(e,t,s)=>{n(e),"BUTTON"!==e[0].tagName&&(o(e,"button"),e.on("keydown",m)),p(e,s),function(e,t){e.attr("aria-controls",t)}(e,t)},w=()=>{t.a11y.clicked=!0},b=()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},x=e=>{if(t.a11y.clicked)return;const s=e.target.closest(`.${t.params.slideClass}`);if(!s||!t.slides.includes(s))return;const a=t.slides.indexOf(s)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(s);a||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(s),0))},y=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&c(d(t.slides),e.itemRoleDescriptionMessage),e.slideRole&&o(d(t.slides),e.slideRole);const s=t.params.loop?t.slides.filter((e=>!e.classList.contains(t.params.slideDuplicateClass))).length:t.slides.length;e.slideLabelMessage&&t.slides.each(((a,i)=>{const r=d(a),n=t.params.loop?parseInt(r.attr("data-swiper-slide-index"),10):i;p(r,e.slideLabelMessage.replace(/\{\{index\}\}/,n+1).replace(/\{\{slidesLength\}\}/,s))}))},E=()=>{const e=t.params.a11y;t.$el.append(i);const s=t.$el;e.containerRoleDescriptionMessage&&c(s,e.containerRoleDescriptionMessage),e.containerMessage&&p(s,e.containerMessage);const a=t.$wrapperEl,r=e.id||a.attr("id")||`swiper-wrapper-${n=16,void 0===n&&(n=16),"x".repeat(n).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var n;const l=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var o;let d,u;o=r,a.attr("id",o),function(e,t){e.attr("aria-live",t)}(a,l),y(),t.navigation&&t.navigation.$nextEl&&(d=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(u=t.navigation.$prevEl),d&&d.length&&v(d,r,e.nextSlideMessage),u&&u.length&&v(u,r,e.prevSlideMessage),g()&&t.pagination.$el.on("keydown",U(t.params.pagination.bulletClass),m),t.$el.on("focus",x,!0),t.$el.on("pointerdown",w,!0),t.$el.on("pointerup",b,!0)};a("beforeInit",(()=>{i=d(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)})),a("afterInit",(()=>{t.params.a11y.enabled&&E()})),a("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&y()})),a("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{$nextEl:e,$prevEl:s}=t.navigation;s&&s.length>0&&(t.isBeginning?(u(s),l(s)):(h(s),n(s))),e&&e.length>0&&(t.isEnd?(u(e),l(e)):(h(e),n(e)))}()})),a("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;f()&&t.pagination.bullets.each((s=>{const a=d(s);t.params.pagination.clickable&&(n(a),t.params.pagination.renderBullet||(o(a,"button"),p(a,e.paginationBulletMessage.replace(/\{\{index\}\}/,a.index()+1)))),a.is(`.${t.params.pagination.bulletActiveClass}`)?a.attr("aria-current","true"):a.removeAttr("aria-current")}))}()})),a("destroy",(()=>{t.params.a11y.enabled&&function(){let e,s;i&&i.length>0&&i.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(s=t.navigation.$prevEl),e&&e.off("keydown",m),s&&s.off("keydown",m),g()&&t.pagination.$el.off("keydown",U(t.params.pagination.bulletClass),m),t.$el.off("focus",x,!0),t.$el.off("pointerdown",w,!0),t.$el.off("pointerup",b,!0)}()}))},function(e){let{swiper:t,extendParams:s,on:a}=e;s({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,n={};const l=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=e=>{const t=r();let s;s=e?new URL(e):t.location;const a=s.pathname.slice(1).split("/").filter((e=>""!==e)),i=a.length;return{key:a[i-2],value:a[i-1]}},d=(e,s)=>{const a=r();if(!i||!t.params.history.enabled)return;let n;n=t.params.url?new URL(t.params.url):a.location;const o=t.slides.eq(s);let d=l(o.attr("data-history"));if(t.params.history.root.length>0){let s=t.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),d=`${s}/${e}/${d}`}else n.pathname.includes(e)||(d=`${e}/${d}`);t.params.history.keepQuery&&(d+=n.search);const c=a.history.state;c&&c.value===d||(t.params.history.replaceState?a.history.replaceState({value:d},null,d):a.history.pushState({value:d},null,d))},c=(e,s,a)=>{if(s)for(let i=0,r=t.slides.length;i<r;i+=1){const r=t.slides.eq(i);if(l(r.attr("data-history"))===s&&!r.hasClass(t.params.slideDuplicateClass)){const s=r.index();t.slideTo(s,e,a)}}else t.slideTo(0,e,a)},p=()=>{n=o(t.params.url),c(t.params.speed,n.value,!1)};a("init",(()=>{t.params.history.enabled&&(()=>{const e=r();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);i=!0,n=o(t.params.url),(n.key||n.value)&&(c(0,n.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",p))}})()})),a("destroy",(()=>{t.params.history.enabled&&(()=>{const e=r();t.params.history.replaceState||e.removeEventListener("popstate",p)})()})),a("transitionEnd _freeModeNoMomentumRelease",(()=>{i&&d(t.params.history.key,t.activeIndex)})),a("slideChange",(()=>{i&&t.params.cssMode&&d(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:s,emit:i,on:n}=e,l=!1;const o=a(),c=r();s({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const p=()=>{i("hashChange");const e=o.location.hash.replace("#","");if(e!==t.slides.eq(t.activeIndex).attr("data-hash")){const s=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(void 0===s)return;t.slideTo(s)}},u=()=>{if(l&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&c.history&&c.history.replaceState)c.history.replaceState(null,null,`#${t.slides.eq(t.activeIndex).attr("data-hash")}`||""),i("hashSet");else{const e=t.slides.eq(t.activeIndex),s=e.attr("data-hash")||e.attr("data-history");o.location.hash=s||"",i("hashSet")}};n("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;l=!0;const e=o.location.hash.replace("#","");if(e){const s=0;for(let a=0,i=t.slides.length;a<i;a+=1){const i=t.slides.eq(a);if((i.attr("data-hash")||i.attr("data-history"))===e&&!i.hasClass(t.params.slideDuplicateClass)){const e=i.index();t.slideTo(e,s,t.params.runCallbacksOnInit,!0)}}}t.params.hashNavigation.watchState&&d(c).on("hashchange",p)})()})),n("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&d(c).off("hashchange",p)})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{l&&u()})),n("slideChange",(()=>{l&&t.params.cssMode&&u()}))},function(e){let t,{swiper:s,extendParams:i,on:r,emit:n}=e;function l(){if(!s.size)return s.autoplay.running=!1,void(s.autoplay.paused=!1);const e=s.slides.eq(s.activeIndex);let a=s.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(a=e.attr("data-swiper-autoplay")||s.params.autoplay.delay),clearTimeout(t),t=p((()=>{let e;s.params.autoplay.reverseDirection?s.params.loop?(s.loopFix(),e=s.slidePrev(s.params.speed,!0,!0),n("autoplay")):s.isBeginning?s.params.autoplay.stopOnLastSlide?d():(e=s.slideTo(s.slides.length-1,s.params.speed,!0,!0),n("autoplay")):(e=s.slidePrev(s.params.speed,!0,!0),n("autoplay")):s.params.loop?(s.loopFix(),e=s.slideNext(s.params.speed,!0,!0),n("autoplay")):s.isEnd?s.params.autoplay.stopOnLastSlide?d():(e=s.slideTo(0,s.params.speed,!0,!0),n("autoplay")):(e=s.slideNext(s.params.speed,!0,!0),n("autoplay")),(s.params.cssMode&&s.autoplay.running||!1===e)&&l()}),a)}function o(){return void 0===t&&(!s.autoplay.running&&(s.autoplay.running=!0,n("autoplayStart"),l(),!0))}function d(){return!!s.autoplay.running&&(void 0!==t&&(t&&(clearTimeout(t),t=void 0),s.autoplay.running=!1,n("autoplayStop"),!0))}function c(e){s.autoplay.running&&(s.autoplay.paused||(t&&clearTimeout(t),s.autoplay.paused=!0,0!==e&&s.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((e=>{s.$wrapperEl[0].addEventListener(e,h)})):(s.autoplay.paused=!1,l())))}function u(){const e=a();"hidden"===e.visibilityState&&s.autoplay.running&&c(),"visible"===e.visibilityState&&s.autoplay.paused&&(l(),s.autoplay.paused=!1)}function h(e){s&&!s.destroyed&&s.$wrapperEl&&e.target===s.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((e=>{s.$wrapperEl[0].removeEventListener(e,h)})),s.autoplay.paused=!1,s.autoplay.running?l():d())}function m(){s.params.autoplay.disableOnInteraction?d():(n("autoplayPause"),c()),["transitionend","webkitTransitionEnd"].forEach((e=>{s.$wrapperEl[0].removeEventListener(e,h)}))}function f(){s.params.autoplay.disableOnInteraction||(s.autoplay.paused=!1,n("autoplayResume"),l())}s.autoplay={running:!1,paused:!1},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),r("init",(()=>{if(s.params.autoplay.enabled){o();a().addEventListener("visibilitychange",u),s.params.autoplay.pauseOnMouseEnter&&(s.$el.on("mouseenter",m),s.$el.on("mouseleave",f))}})),r("beforeTransitionStart",((e,t,a)=>{s.autoplay.running&&(a||!s.params.autoplay.disableOnInteraction?s.autoplay.pause(t):d())})),r("sliderFirstMove",(()=>{s.autoplay.running&&(s.params.autoplay.disableOnInteraction?d():c())})),r("touchEnd",(()=>{s.params.cssMode&&s.autoplay.paused&&!s.params.autoplay.disableOnInteraction&&l()})),r("destroy",(()=>{s.$el.off("mouseenter",m),s.$el.off("mouseleave",f),s.autoplay.running&&d();a().removeEventListener("visibilitychange",u)})),Object.assign(s.autoplay,{pause:c,run:l,start:o,stop:d})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,r=!1;function n(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const s=e.clickedIndex,a=e.clickedSlide;if(a&&d(a).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let i;if(i=e.params.loop?parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"),10):s,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const s=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),a=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();i=void 0===s?a:void 0===a?s:a-e<e-s?a:s}t.slideTo(i)}function l(){const{thumbs:e}=t.params;if(i)return!1;i=!0;const s=t.constructor;if(e.swiper instanceof s)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1});else if(m(e.swiper)){const a=Object.assign({},e.swiper);Object.assign(a,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new s(a),r=!0}return t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",n),!0}function o(e){const s=t.thumbs.swiper;if(!s||s.destroyed)return;const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView;let i=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),s.slides.removeClass(r),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let e=0;e<i;e+=1)s.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+e}"]`).addClass(r);else for(let e=0;e<i;e+=1)s.slides.eq(t.realIndex+e).addClass(r);const n=t.params.thumbs.autoScrollOffset,l=n&&!s.params.loop;if(t.realIndex!==s.realIndex||l){let i,r,o=s.activeIndex;if(s.params.loop){s.slides.eq(o).hasClass(s.params.slideDuplicateClass)&&(s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft,o=s.activeIndex);const e=s.slides.eq(o).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),a=s.slides.eq(o).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();i=void 0===e?a:void 0===a?e:a-o==o-e?s.params.slidesPerGroup>1?a:o:a-o<o-e?a:e,r=t.activeIndex>t.previousIndex?"next":"prev"}else i=t.realIndex,r=i>t.previousIndex?"next":"prev";l&&(i+="next"===r?n:-1*n),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(i)<0&&(s.params.centeredSlides?i=i>o?i-Math.floor(a/2)+1:i+Math.floor(a/2)-1:i>o&&s.params.slidesPerGroup,s.slideTo(i,e?0:void 0))}}t.thumbs={swiper:null},a("beforeInit",(()=>{const{thumbs:e}=t.params;e&&e.swiper&&(l(),o(!0))})),a("slideChange update resize observerUpdate",(()=>{o()})),a("setTransition",((e,s)=>{const a=t.thumbs.swiper;a&&!a.destroyed&&a.setTransition(s)})),a("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&r&&e.destroy()})),Object.assign(t.thumbs,{init:l,update:o})},function(e){let{swiper:t,extendParams:s,emit:a,once:i}=e;s({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){const{touchEventsData:e,touches:s}=t;0===e.velocities.length&&e.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:u()})},onTouchEnd:function(e){let{currentPos:s}=e;const{params:r,$wrapperEl:n,rtlTranslate:l,snapGrid:o,touchEventsData:d}=t,c=u()-d.touchStartTime;if(s<-t.minTranslate())t.slideTo(t.activeIndex);else if(s>-t.maxTranslate())t.slides.length<o.length?t.slideTo(o.length-1):t.slideTo(t.slides.length-1);else{if(r.freeMode.momentum){if(d.velocities.length>1){const e=d.velocities.pop(),s=d.velocities.pop(),a=e.position-s.position,i=e.time-s.time;t.velocity=a/i,t.velocity/=2,Math.abs(t.velocity)<r.freeMode.minimumVelocity&&(t.velocity=0),(i>150||u()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,d.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const s=t.velocity*e;let c=t.translate+s;l&&(c=-c);let p,h=!1;const m=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let f;if(c<t.maxTranslate())r.freeMode.momentumBounce?(c+t.maxTranslate()<-m&&(c=t.maxTranslate()-m),p=t.maxTranslate(),h=!0,d.allowMomentumBounce=!0):c=t.maxTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(c>t.minTranslate())r.freeMode.momentumBounce?(c-t.minTranslate()>m&&(c=t.minTranslate()+m),p=t.minTranslate(),h=!0,d.allowMomentumBounce=!0):c=t.minTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(r.freeMode.sticky){let e;for(let t=0;t<o.length;t+=1)if(o[t]>-c){e=t;break}c=Math.abs(o[e]-c)<Math.abs(o[e-1]-c)||"next"===t.swipeDirection?o[e]:o[e-1],c=-c}if(f&&i("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=l?Math.abs((-c-t.translate)/t.velocity):Math.abs((c-t.translate)/t.velocity),r.freeMode.sticky){const s=Math.abs((l?-c:c)-t.translate),a=t.slidesSizesGrid[t.activeIndex];e=s<a?r.speed:s<2*a?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode.momentumBounce&&h?(t.updateProgress(p),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating=!0,n.transitionEnd((()=>{t&&!t.destroyed&&d.allowMomentumBounce&&(a("momentumBounce"),t.setTransition(r.speed),setTimeout((()=>{t.setTranslate(p),n.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(a("_freeModeNoMomentumRelease"),t.updateProgress(c),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,n.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(c),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&a("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||c>=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,s,a,{swiper:i,extendParams:r}=e;r({grid:{rows:1,fill:"column"}}),i.grid={initSlides:e=>{const{slidesPerView:r}=i.params,{rows:n,fill:l}=i.params.grid;s=t/n,a=Math.floor(e/n),t=Math.floor(e/n)===e/n?e:Math.ceil(e/n)*n,"auto"!==r&&"row"===l&&(t=Math.max(t,r*n))},updateSlide:(e,r,n,l)=>{const{slidesPerGroup:o,spaceBetween:d}=i.params,{rows:c,fill:p}=i.params.grid;let u,h,m;if("row"===p&&o>1){const s=Math.floor(e/(o*c)),a=e-c*o*s,i=0===s?o:Math.min(Math.ceil((n-s*c*o)/c),o);m=Math.floor(a/i),h=a-m*i+s*o,u=h+m*t/c,r.css({"-webkit-order":u,order:u})}else"column"===p?(h=Math.floor(e/c),m=e-h*c,(h>a||h===a&&m===c-1)&&(m+=1,m>=c&&(m=0,h+=1))):(m=Math.floor(e/s),h=e-m*s);r.css(l("margin-top"),0!==m?d&&`${d}px`:"")},updateWrapperSize:(e,s,a)=>{const{spaceBetween:r,centeredSlides:n,roundLengths:l}=i.params,{rows:o}=i.params.grid;if(i.virtualSize=(e+r)*t,i.virtualSize=Math.ceil(i.virtualSize/o)-r,i.$wrapperEl.css({[a("width")]:`${i.virtualSize+r}px`}),n){s.splice(0,s.length);const e=[];for(let t=0;t<s.length;t+=1){let a=s[t];l&&(a=Math.floor(a)),s[t]<i.virtualSize+s[0]&&e.push(a)}s.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:K.bind(t),prependSlide:Z.bind(t),addSlide:Q.bind(t),removeSlide:J.bind(t),removeAllSlides:ee.bind(t)})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({fadeEffect:{crossFade:!1,transformEl:null}}),te({effect:"fade",swiper:t,on:a,setTranslate:()=>{const{slides:e}=t,s=t.params.fadeEffect;for(let a=0;a<e.length;a+=1){const e=t.slides.eq(a);let i=-e[0].swiperSlideOffset;t.params.virtualTranslate||(i-=t.translate);let r=0;t.isHorizontal()||(r=i,i=0);const n=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);se(s,e).css({opacity:n}).transform(`translate3d(${i}px, ${r}px, 0px)`)}},setTransition:e=>{const{transformEl:s}=t.params.fadeEffect;(s?t.slides.find(s):t.slides).transition(e),ae({swiper:t,duration:e,transformEl:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(e,t,s)=>{let a=s?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),i=s?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===a.length&&(a=d(`<div class="swiper-slide-shadow-${s?"left":"top"}"></div>`),e.append(a)),0===i.length&&(i=d(`<div class="swiper-slide-shadow-${s?"right":"bottom"}"></div>`),e.append(i)),a.length&&(a[0].style.opacity=Math.max(-t,0)),i.length&&(i[0].style.opacity=Math.max(t,0))};te({effect:"cube",swiper:t,on:a,setTranslate:()=>{const{$el:e,$wrapperEl:s,slides:a,width:r,height:n,rtlTranslate:l,size:o,browser:c}=t,p=t.params.cubeEffect,u=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled;let m,f=0;p.shadow&&(u?(m=s.find(".swiper-cube-shadow"),0===m.length&&(m=d('<div class="swiper-cube-shadow"></div>'),s.append(m)),m.css({height:`${r}px`})):(m=e.find(".swiper-cube-shadow"),0===m.length&&(m=d('<div class="swiper-cube-shadow"></div>'),e.append(m))));for(let e=0;e<a.length;e+=1){const t=a.eq(e);let s=e;h&&(s=parseInt(t.attr("data-swiper-slide-index"),10));let r=90*s,n=Math.floor(r/360);l&&(r=-r,n=Math.floor(-r/360));const d=Math.max(Math.min(t[0].progress,1),-1);let c=0,m=0,g=0;s%4==0?(c=4*-n*o,g=0):(s-1)%4==0?(c=0,g=4*-n*o):(s-2)%4==0?(c=o+4*n*o,g=o):(s-3)%4==0&&(c=-o,g=3*o+4*o*n),l&&(c=-c),u||(m=c,c=0);const v=`rotateX(${u?0:-r}deg) rotateY(${u?r:0}deg) translate3d(${c}px, ${m}px, ${g}px)`;d<=1&&d>-1&&(f=90*s+90*d,l&&(f=90*-s-90*d)),t.transform(v),p.slideShadows&&i(t,d,u)}if(s.css({"-webkit-transform-origin":`50% 50% -${o/2}px`,"transform-origin":`50% 50% -${o/2}px`}),p.shadow)if(u)m.transform(`translate3d(0px, ${r/2+p.shadowOffset}px, ${-r/2}px) rotateX(90deg) rotateZ(0deg) scale(${p.shadowScale})`);else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=p.shadowScale,a=p.shadowScale/t,i=p.shadowOffset;m.transform(`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-90deg)`)}const g=c.isSafari||c.isWebView?-o/2:0;s.transform(`translate3d(0px,0,${g}px) rotateX(${t.isHorizontal()?0:f}deg) rotateY(${t.isHorizontal()?-f:0}deg)`),s[0].style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{$el:s,slides:a}=t;a.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&s.find(".swiper-cube-shadow").transition(e)},recreateShadows:()=>{const e=t.isHorizontal();t.slides.each((t=>{const s=Math.max(Math.min(t.progress,1),-1);i(d(t),s,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const i=(e,s,a)=>{let i=t.isHorizontal()?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),r=t.isHorizontal()?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===i.length&&(i=ie(a,e,t.isHorizontal()?"left":"top")),0===r.length&&(r=ie(a,e,t.isHorizontal()?"right":"bottom")),i.length&&(i[0].style.opacity=Math.max(-s,0)),r.length&&(r[0].style.opacity=Math.max(s,0))};te({effect:"flip",swiper:t,on:a,setTranslate:()=>{const{slides:e,rtlTranslate:s}=t,a=t.params.flipEffect;for(let r=0;r<e.length;r+=1){const n=e.eq(r);let l=n[0].progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(n[0].progress,1),-1));const o=n[0].swiperSlideOffset;let d=-180*l,c=0,p=t.params.cssMode?-o-t.translate:-o,u=0;t.isHorizontal()?s&&(d=-d):(u=p,p=0,c=-d,d=0),n[0].style.zIndex=-Math.abs(Math.round(l))+e.length,a.slideShadows&&i(n,l,a);const h=`translate3d(${p}px, ${u}px, 0px) rotateX(${c}deg) rotateY(${d}deg)`;se(a,n).transform(h)}},setTransition:e=>{const{transformEl:s}=t.params.flipEffect;(s?t.slides.find(s):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),ae({swiper:t,duration:e,transformEl:s})},recreateShadows:()=>{const e=t.params.flipEffect;t.slides.each((s=>{const a=d(s);let r=a[0].progress;t.params.flipEffect.limitRotation&&(r=Math.max(Math.min(s.progress,1),-1)),i(a,r,e)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),te({effect:"coverflow",swiper:t,on:a,setTranslate:()=>{const{width:e,height:s,slides:a,slidesSizesGrid:i}=t,r=t.params.coverflowEffect,n=t.isHorizontal(),l=t.translate,o=n?e/2-l:s/2-l,d=n?r.rotate:-r.rotate,c=r.depth;for(let e=0,t=a.length;e<t;e+=1){const t=a.eq(e),s=i[e],l=(o-t[0].swiperSlideOffset-s/2)/s,p="function"==typeof r.modifier?r.modifier(l):l*r.modifier;let u=n?d*p:0,h=n?0:d*p,m=-c*Math.abs(p),f=r.stretch;"string"==typeof f&&-1!==f.indexOf("%")&&(f=parseFloat(r.stretch)/100*s);let g=n?0:f*p,v=n?f*p:0,w=1-(1-r.scale)*Math.abs(p);Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0),Math.abs(m)<.001&&(m=0),Math.abs(u)<.001&&(u=0),Math.abs(h)<.001&&(h=0),Math.abs(w)<.001&&(w=0);const b=`translate3d(${v}px,${g}px,${m}px)  rotateX(${h}deg) rotateY(${u}deg) scale(${w})`;if(se(r,t).transform(b),t[0].style.zIndex=1-Math.abs(Math.round(p)),r.slideShadows){let e=n?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),s=n?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=ie(r,t,n?"left":"top")),0===s.length&&(s=ie(r,t,n?"right":"bottom")),e.length&&(e[0].style.opacity=p>0?p:0),s.length&&(s[0].style.opacity=-p>0?-p:0)}}},setTransition:e=>{const{transformEl:s}=t.params.coverflowEffect;(s?t.slides.find(s):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=e=>"string"==typeof e?e:`${e}px`;te({effect:"creative",swiper:t,on:a,setTranslate:()=>{const{slides:e,$wrapperEl:s,slidesSizesGrid:a}=t,r=t.params.creativeEffect,{progressMultiplier:n}=r,l=t.params.centeredSlides;if(l){const e=a[0]/2-t.params.slidesOffsetBefore||0;s.transform(`translateX(calc(50% - ${e}px))`)}for(let s=0;s<e.length;s+=1){const a=e.eq(s),o=a[0].progress,d=Math.min(Math.max(a[0].progress,-r.limitProgress),r.limitProgress);let c=d;l||(c=Math.min(Math.max(a[0].originalProgress,-r.limitProgress),r.limitProgress));const p=a[0].swiperSlideOffset,u=[t.params.cssMode?-p-t.translate:-p,0,0],h=[0,0,0];let m=!1;t.isHorizontal()||(u[1]=u[0],u[0]=0);let f={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};d<0?(f=r.next,m=!0):d>0&&(f=r.prev,m=!0),u.forEach(((e,t)=>{u[t]=`calc(${e}px + (${i(f.translate[t])} * ${Math.abs(d*n)}))`})),h.forEach(((e,t)=>{h[t]=f.rotate[t]*Math.abs(d*n)})),a[0].style.zIndex=-Math.abs(Math.round(o))+e.length;const g=u.join(", "),v=`rotateX(${h[0]}deg) rotateY(${h[1]}deg) rotateZ(${h[2]}deg)`,w=c<0?`scale(${1+(1-f.scale)*c*n})`:`scale(${1-(1-f.scale)*c*n})`,b=c<0?1+(1-f.opacity)*c*n:1-(1-f.opacity)*c*n,x=`translate3d(${g}) ${v} ${w}`;if(m&&f.shadow||!m){let e=a.children(".swiper-slide-shadow");if(0===e.length&&f.shadow&&(e=ie(r,a)),e.length){const t=r.shadowPerProgress?d*(1/r.limitProgress):d;e[0].style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const y=se(r,a);y.transform(x).css({opacity:b}),f.origin&&y.css("transform-origin",f.origin)}},setTransition:e=>{const{transformEl:s}=t.params.creativeEffect;(s?t.slides.find(s):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),ae({swiper:t,duration:e,transformEl:s,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cardsEffect:{slideShadows:!0,transformEl:null,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),te({effect:"cards",swiper:t,on:a,setTranslate:()=>{const{slides:e,activeIndex:s}=t,a=t.params.cardsEffect,{startTranslate:i,isTouched:r}=t.touchEventsData,n=t.translate;for(let l=0;l<e.length;l+=1){const o=e.eq(l),d=o[0].progress,c=Math.min(Math.max(d,-4),4);let p=o[0].swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&t.$wrapperEl.transform(`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(p-=e[0].swiperSlideOffset);let u=t.params.cssMode?-p-t.translate:-p,h=0;const m=-100*Math.abs(c);let f=1,g=-a.perSlideRotate*c,v=a.perSlideOffset-.75*Math.abs(c);const w=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,b=(w===s||w===s-1)&&c>0&&c<1&&(r||t.params.cssMode)&&n<i,x=(w===s||w===s+1)&&c<0&&c>-1&&(r||t.params.cssMode)&&n>i;if(b||x){const e=(1-Math.abs((Math.abs(c)-.5)/.5))**.5;g+=-28*c*e,f+=-.5*e,v+=96*e,h=-25*e*Math.abs(c)+"%"}if(u=c<0?`calc(${u}px + (${v*Math.abs(c)}%))`:c>0?`calc(${u}px + (-${v*Math.abs(c)}%))`:`${u}px`,!t.isHorizontal()){const e=h;h=u,u=e}const y=c<0?""+(1+(1-f)*c):""+(1-(1-f)*c),E=`\n        translate3d(${u}, ${h}, ${m}px)\n        rotateZ(${a.rotate?g:0}deg)\n        scale(${y})\n      `;if(a.slideShadows){let e=o.find(".swiper-slide-shadow");0===e.length&&(e=ie(a,o)),e.length&&(e[0].style.opacity=Math.min(Math.max((Math.abs(c)-.5)/.5,0),1))}o[0].style.zIndex=-Math.abs(Math.round(d))+e.length;se(a,o).transform(E)}},setTransition:e=>{const{transformEl:s}=t.params.cardsEffect;(s?t.slides.find(s):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),ae({swiper:t,duration:e,transformEl:s})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return V.use(re),V}));
!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=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",d=document.createElement("div");d.innerHTML='<p>x</p><style id="fit-vids-style">'+a+"</style>",r.appendChild(d.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.not("object object"),a=a.not(r),a.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(),a=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),d=i/a;if(!e.attr("name")){var o="fitvid"+t.fn.fitVids._count;e.attr("name",o),t.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*d+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto);
var wpAjaxUrl='https://rkdoorsystems.co.uk/wp-admin/admin-ajax.php';var flBuilderUrl='https://rkdoorsystems.co.uk/wp-content/plugins/bb-plugin/';var FLBuilderLayoutConfig={anchorLinkAnimations:{duration:1000,easing:'swing',offset:100},paths:{pluginUrl:'https://rkdoorsystems.co.uk/wp-content/plugins/bb-plugin/',wpAjaxUrl:'https://rkdoorsystems.co.uk/wp-admin/admin-ajax.php'},breakpoints:{small:767,medium:992,large:1200},waypoint:{offset:80},emptyColWidth:'0%'};(function($){if(typeof FLBuilderLayout!='undefined'){return;}
FLBuilderLayout={init:function(){FLBuilderLayout._destroy();FLBuilderLayout._initClasses();FLBuilderLayout._initBackgrounds();FLBuilderLayout._initButtons();FLBuilderLayout._initRowShapeLayerHeight();if(0===$('.fl-builder-edit').length){FLBuilderLayout._initAnchorLinks();FLBuilderLayout._initHash();FLBuilderLayout._initForms();FLBuilderLayout._reorderMenu();}else{FLBuilderLayout._initNestedColsWidth();}
$('body').removeClass('fl-no-js');},refreshGalleries:function(element){var $element='undefined'==typeof element?$('body'):$(element),mfContent=$element.find('.fl-mosaicflow-content'),wmContent=$element.find('.fl-gallery'),mfObject=null;if(mfContent){mfObject=mfContent.data('mosaicflow');if(mfObject){mfObject.columns=$([]);mfObject.columnsHeights=[];mfContent.data('mosaicflow',mfObject);mfContent.mosaicflow('refill');}}
if(wmContent){wmContent.trigger('refreshWookmark');}},refreshGridLayout:function(element){var $element='undefined'==typeof element?$('body'):$(element),msnryContent=$element.find('.masonry');if(msnryContent.length){msnryContent.masonry('layout');}},reloadSlider:function(content){var $content='undefined'==typeof content?$('body'):$(content);if($content.find('.bx-viewport > div').length>0){$.each($content.find('.bx-viewport > div'),function(key,slider){setTimeout(function(){$(slider).data('bxSlider').reloadSlider();},100);});}},resizeAudio:function(element){var $element='undefined'==typeof element?$('body'):$(element),audioPlayers=$element.find('.wp-audio-shortcode.mejs-audio'),player=null,mejsPlayer=null,rail=null,railWidth=400;if(audioPlayers.length&&typeof mejs!=='undefined'){audioPlayers.each(function(){player=$(this);mejsPlayer=mejs.players[player.attr('id')];rail=player.find('.mejs-controls .mejs-time-rail');var innerMejs=player.find('.mejs-inner'),total=player.find('.mejs-controls .mejs-time-total');if(typeof mejsPlayer!=='undefined'){railWidth=Math.ceil(player.width()*0.8);if(innerMejs.length){rail.css('width',railWidth+'px!important');mejsPlayer.options.autosizeProgress=true;setTimeout(function(){mejsPlayer.setControlsSize();},50);player.find('.mejs-inner').css({visibility:'visible',height:'inherit'});}}});}},preloadAudio:function(element){var $element='undefined'==typeof element?$('body'):$(element),contentWrap=$element.closest('.fl-accordion-item'),audioPlayers=$element.find('.wp-audio-shortcode.mejs-audio');if(!contentWrap.hasClass('fl-accordion-item-active')&&audioPlayers.find('.mejs-inner').length){audioPlayers.find('.mejs-inner').css({visibility:'hidden',height:0});}},resizeSlideshow:function(){if(typeof YUI!=='undefined'){YUI().use('node-event-simulate',function(Y){Y.one(window).simulate("resize");});}},reloadGoogleMap:function(element){var $element='undefined'==typeof element?$('body'):$(element),googleMap=$element.find('iframe[src*="google.com/maps"]');if(googleMap.length){googleMap.attr('src',function(i,val){return val;});}},_destroy:function(){var win=$(window);win.off('scroll.fl-bg-parallax');win.off('resize.fl-bg-video');},_isTouch:function(){if(('ontouchstart'in window)||(window.DocumentTouch&&document instanceof DocumentTouch)){return true;}
return false;},_isMobile:function(){return/Mobile|Android|Silk\/|Kindle|BlackBerry|Opera Mini|Opera Mobi|webOS/i.test(navigator.userAgent);},_initClasses:function(){var body=$('body'),ua=navigator.userAgent;if(!body.hasClass('fl-builder-blocks-only')&&!body.hasClass('archive')&&$('.fl-builder-content-primary').length>0){body.addClass('fl-builder');}
if(FLBuilderLayout._isTouch()){body.addClass('fl-builder-touch');}
if(FLBuilderLayout._isMobile()){body.addClass('fl-builder-mobile');}
if($(window).width()<FLBuilderLayoutConfig.breakpoints.small){body.addClass('fl-builder-breakpoint-small');}
if($(window).width()>FLBuilderLayoutConfig.breakpoints.small&&$(window).width()<FLBuilderLayoutConfig.breakpoints.medium){body.addClass('fl-builder-breakpoint-medium');}
if($(window).width()>FLBuilderLayoutConfig.breakpoints.medium&&$(window).width()<FLBuilderLayoutConfig.breakpoints.large){body.addClass('fl-builder-breakpoint-large');}
if($(window).width()>FLBuilderLayoutConfig.breakpoints.large){body.addClass('fl-builder-breakpoint-default');}
if(ua.indexOf('Trident/7.0')>-1&&ua.indexOf('rv:11.0')>-1){body.addClass('fl-builder-ie-11');}},_initBackgrounds:function(){var win=$(window);if($('.fl-row-bg-parallax').length>0&&!FLBuilderLayout._isMobile()){FLBuilderLayout._scrollParallaxBackgrounds();FLBuilderLayout._initParallaxBackgrounds();win.on('resize.fl-bg-parallax',FLBuilderLayout._initParallaxBackgrounds);win.on('scroll.fl-bg-parallax',FLBuilderLayout._scrollParallaxBackgrounds);}
if($('.fl-bg-video').length>0){FLBuilderLayout._initBgVideos();FLBuilderLayout._resizeBgVideos();var resizeBGTimer=null;win.on('resize.fl-bg-video',function(e){clearTimeout(resizeBGTimer);resizeBGTimer=setTimeout(function(){FLBuilderLayout._resizeBgVideos(e);},100);});}},_initButtons:function(){$('a.fl-button[role="button"]').on('keydown',function(event){if(event.key==='Enter'||event.key===' '){event.preventDefault();$(this).trigger('click');}});},_initParallaxBackgrounds:function(){$('.fl-row-bg-parallax').each(FLBuilderLayout._initParallaxBackground);},_initParallaxBackground:function(){var row=$(this),content=row.find('> .fl-row-content-wrap'),winWidth=$(window).width(),screenSize='',imageSrc={default:'',medium:'',responsive:'',};imageSrc.default=row.data('parallax-image')||'';imageSrc.medium=row.data('parallax-image-medium')||imageSrc.default;imageSrc.responsive=row.data('parallax-image-responsive')||imageSrc.medium;if(winWidth>FLBuilderLayoutConfig.breakpoints.medium){screenSize='default';}else if(winWidth>FLBuilderLayoutConfig.breakpoints.small&&winWidth<=FLBuilderLayoutConfig.breakpoints.medium){screenSize='medium';}else if(winWidth<=FLBuilderLayoutConfig.breakpoints.small){screenSize='responsive';}
content.css('background-image','url('+imageSrc[screenSize]+')');row.data('current-image-loaded',screenSize);},_scrollParallaxBackgrounds:function(){$('.fl-row-bg-parallax').each(FLBuilderLayout._scrollParallaxBackground);},_scrollParallaxBackground:function(){var win=$(window),row=$(this),content=row.find('> .fl-row-content-wrap'),speed=row.data('parallax-speed'),offset=content.offset(),yPos=-((win.scrollTop()-offset.top)/ speed),initialOffset=(row.data('parallax-offset')!=null)?row.data('parallax-offset'):0,totalOffset=yPos-initialOffset;content.css('background-position','center '+totalOffset+'px');},_initBgVideos:function(){$('.fl-bg-video').each(FLBuilderLayout._initBgVideo);},_initBgVideo:function(){var wrap=$(this),width=wrap.data('width'),height=wrap.data('height'),mp4=wrap.data('mp4'),youtube=wrap.data('youtube'),vimeo=wrap.data('vimeo'),mp4Type=wrap.data('mp4-type'),webm=wrap.data('webm'),webmType=wrap.data('webm-type'),fallback=wrap.data('fallback'),loaded=wrap.data('loaded'),videoMobile=wrap.data('video-mobile'),playPauseButton=wrap.find('.fl-bg-video-play-pause-control'),fallbackTag='',videoTag=null,mp4Tag=null,webmTag=null;if(loaded){return;}
videoTag=$('<video autoplay loop muted playsinline></video>');if('undefined'!=typeof fallback&&''!=fallback){videoTag.attr('poster','data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7')
videoTag.css({backgroundImage:'url("'+fallback+'")',backgroundColor:'transparent',backgroundRepeat:'no-repeat',backgroundSize:'cover',backgroundPosition:'center center',})}
if('undefined'!=typeof mp4&&''!=mp4){mp4Tag=$('<source />');mp4Tag.attr('src',mp4);mp4Tag.attr('type',mp4Type);videoTag.append(mp4Tag);}
if('undefined'!=typeof webm&&''!=webm){webmTag=$('<source />');webmTag.attr('src',webm);webmTag.attr('type',webmType);videoTag.append(webmTag);}
if(!FLBuilderLayout._isMobile()||(FLBuilderLayout._isMobile()&&"yes"==videoMobile)){if('undefined'!=typeof youtube){FLBuilderLayout._initYoutubeBgVideo.apply(this);}
else if('undefined'!=typeof vimeo){FLBuilderLayout._initVimeoBgVideo.apply(this);}else{wrap.append(videoTag);if(playPauseButton.length>0){var video=videoTag[0];playPauseButton.on('click',{video:video},function(e){var video=e.data.video;if(video.paused){video.play();}else{video.pause();}});$(video).on('play playing',function(){playPauseButton.removeClass('fa-play').addClass('fa-pause');});$(video).on('pause ended waiting',function(){playPauseButton.removeClass('fa-pause').addClass('fa-play');});}}}else{videoTag.attr('src','')
wrap.append(videoTag);}
wrap.data('loaded',true);},_initYoutubeBgVideo:function(){var playerWrap=$(this),videoId=playerWrap.data('video-id'),videoPlayer=playerWrap.find('.fl-bg-video-player'),enableAudio=playerWrap.data('enable-audio'),audioButton=playerWrap.find('.fl-bg-video-audio'),playPauseButton=playerWrap.find('.fl-bg-video-play-pause-control'),startTime='undefined'!==typeof playerWrap.data('start')?playerWrap.data('start'):0,startTime='undefined'!==typeof playerWrap.data('t')&&startTime===0?playerWrap.data('t'):startTime,endTime='undefined'!==typeof playerWrap.data('end')?playerWrap.data('end'):0,loop='undefined'!==typeof playerWrap.data('loop')?playerWrap.data('loop'):1,stateCount=0,player,fallback_showing;if(videoId){fallback=playerWrap.data('fallback')||false
if(fallback){playerWrap.find('iframe').remove()
fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+playerWrap.data('fallback')+')');fallbackTag.css('background-size','cover');fallbackTag.css('transition','background-image 1s')
playerWrap.append(fallbackTag);fallback_showing=true;}
FLBuilderLayout._onYoutubeApiReady(function(YT){setTimeout(function(){player=new YT.Player(videoPlayer[0],{videoId:videoId,events:{onReady:function(event){if("no"===enableAudio||FLBuilderLayout._isMobile()){event.target.mute();}
else if("yes"===enableAudio&&event.target.isMuted){event.target.unMute();}
playerWrap.data('YTPlayer',player);FLBuilderLayout._resizeYoutubeBgVideo.apply(playerWrap);event.target.playVideo();if(audioButton.length>0&&!FLBuilderLayout._isMobile()){audioButton.on('click',{button:audioButton,player:player},FLBuilderLayout._toggleBgVideoAudio);}
if(playPauseButton.length>0){playPauseButton.on('click',{player:player},function(e){var player=e.data.player;if(1===player.getPlayerState()){player.pauseVideo();}else{player.playVideo();}});}},onStateChange:function(event){if(event.data===1){if(fallback_showing){$('.fl-bg-video-fallback').css('background-image','url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)')}}
if(stateCount<4){stateCount++;}
if(stateCount>1&&-1===event.data&&"yes"===enableAudio){player.mute();player.playVideo();audioButton.show();}
if(event.data===YT.PlayerState.ENDED&&1===loop){if(startTime>0){player.seekTo(startTime);}else{player.playVideo();}}
if(event.data===YT.PlayerState.PLAYING){playPauseButton.removeClass('fa-play').addClass('fa-pause');}else if(event.data===YT.PlayerState.PAUSED){playPauseButton.removeClass('fa-pause').addClass('fa-play');}else if(event.data===YT.PlayerState.BUFFERING){playPauseButton.removeClass('fa-play').addClass('fa-pause');}else if(event.data===YT.PlayerState.CUED){playPauseButton.removeClass('fa-pause').addClass('fa-play');}else if(event.data===YT.PlayerState.ENDED){playPauseButton.removeClass('fa-pause').addClass('fa-play');}},onError:function(event){console.info('YT Error: '+event.data)
FLBuilderLayout._onErrorYoutubeVimeo(playerWrap)}},playerVars:{playsinline:FLBuilderLayout._isMobile()?1:0,controls:0,showinfo:0,rel:0,start:startTime,end:endTime,}});},1);});}},_onErrorYoutubeVimeo:function(playerWrap){fallback=playerWrap.data('fallback')||false
if(!fallback){return false;}
playerWrap.find('iframe').remove()
fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+playerWrap.data('fallback')+')');playerWrap.append(fallbackTag);},_onYoutubeApiReady:function(callback){if(window.YT&&YT.loaded){callback(YT);}else{setTimeout(function(){FLBuilderLayout._onYoutubeApiReady(callback);},350);}},_initVimeoBgVideo:function(){var playerWrap=$(this),videoId=playerWrap.data('video-id'),videoHash=playerWrap.data('video-hash'),videoPlayer=playerWrap.find('.fl-bg-video-player'),enableAudio=playerWrap.data('enable-audio'),audioButton=playerWrap.find('.fl-bg-video-audio'),playPauseButton=playerWrap.find('.fl-bg-video-play-pause-control'),playerState='',player,width=playerWrap.outerWidth(),ua=navigator.userAgent;if(typeof Vimeo!=='undefined'&&videoId){const vimOptions={loop:true,title:false,portrait:false,background:true,autopause:false,muted:true,};if(videoHash.length){vimOptions.url=`https://player.vimeo.com/video/${ videoId }?h=${ videoHash }`;}else{vimOptions.id=videoId;}
player=new Vimeo.Player(videoPlayer[0],vimOptions);playerWrap.data('VMPlayer',player);if("no"===enableAudio){player.setVolume(0);}
else if("yes"===enableAudio){if(ua.indexOf("Safari")>-1||ua.indexOf("Chrome")>-1||ua.indexOf("Firefox")>-1){player.setVolume(0);audioButton.show();}else{player.setVolume(1);}}
player.play().catch(function(error){FLBuilderLayout._onErrorYoutubeVimeo(playerWrap)});if(audioButton.length>0){audioButton.on('click',{button:audioButton,player:player},FLBuilderLayout._toggleBgVideoAudio);}
player.on('play',function(){playerState='play';playPauseButton.removeClass('fa-play').addClass('fa-pause');});player.on('pause',function(){playerState='pause';playPauseButton.removeClass('fa-pause').addClass('fa-play');});player.on('ended',function(){playerState='ended';playPauseButton.removeClass('fa-pause').addClass('fa-play');});player.on('bufferstart',function(){playerState='bufferstart';playPauseButton.removeClass('fa-play').addClass('fa-pause');});if(playPauseButton.length>0){playPauseButton.on('click',{player:player},function(e){var player=e.data.player;if(playerState==='play'){player.pause();}else{player.play();}});}}},_toggleBgVideoAudio:function(e){var player=e.data.player,control=e.data.button.find('.fl-audio-control');if(control.hasClass('fa-volume-off')){control.removeClass('fa-volume-off').addClass('fa-volume-up');e.data.button.find('.fa-times').hide();if('function'===typeof player.unMute){player.unMute();}else{player.setVolume(1);}}else{control.removeClass('fa-volume-up').addClass('fa-volume-off');e.data.button.find('.fa-times').show();if('function'===typeof player.unMute){player.mute();}else{player.setVolume(0);}}},_videoBgSourceError:function(e){var source=$(e.target),wrap=source.closest('.fl-bg-video'),vid=wrap.find('video'),fallback=wrap.data('fallback'),fallbackTag='';source.remove();if(vid.find('source').length){return;}else if(''!==fallback){fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+fallback+')');wrap.append(fallbackTag);vid.remove();}},_resizeBgVideos:function(){$('.fl-bg-video').each(function(){FLBuilderLayout._resizeBgVideo.apply(this);if($(this).parent().find('img').length>0){$(this).parent().imagesLoaded($.proxy(FLBuilderLayout._resizeBgVideo,this));}});},_resizeBgVideo:function(){if(0===$(this).find('video').length&&0===$(this).find('iframe').length){return;}
var wrap=$(this),wrapHeight=wrap.outerHeight(),wrapWidth=wrap.outerWidth(),vid=wrap.find('video'),vidHeight=wrap.data('height'),vidWidth=wrap.data('width'),newWidth=wrapWidth,newHeight=Math.round(vidHeight*wrapWidth/vidWidth),newLeft=0,newTop=0,iframe=wrap.find('iframe'),isRowFullHeight=$(this).closest('.fl-row-bg-video').hasClass('fl-row-full-height'),vidCSS={top:'50%',left:'50%',transform:'translate(-50%,-50%)',};if(vid.length){if(vidHeight===''||typeof vidHeight==='undefined'||vidWidth===''||typeof vidWidth==='undefined'){vid.css({'left':'0px','top':'0px','width':newWidth+'px'});vid.on('loadedmetadata',FLBuilderLayout._resizeOnLoadedMeta);return;}
if(!isRowFullHeight){if(newHeight<wrapHeight){newHeight=wrapHeight;newLeft=-((newWidth-wrapWidth)/ 2);newWidth=vidHeight?Math.round(vidWidth*wrapHeight/vidHeight):newWidth;}else{newTop=-((newHeight-wrapHeight)/2);}
vidCSS={left:newLeft+'px',top:newTop+'px',height:newHeight+'px',width:newWidth+'px',}}
vid.css(vidCSS);}
else if(iframe.length){if(typeof wrap.data('youtube')!=='undefined'){FLBuilderLayout._resizeYoutubeBgVideo.apply(this);}}},_resizeOnLoadedMeta:function(){var video=$(this),wrapHeight=video.parent().outerHeight(),wrapWidth=video.parent().outerWidth(),vidWidth=video[0].videoWidth,vidHeight=video[0].videoHeight,newHeight=Math.round(vidHeight*wrapWidth/vidWidth),newWidth=wrapWidth,newLeft=0,newTop=0;if(newHeight<wrapHeight){newHeight=wrapHeight;newWidth=Math.round(vidWidth*wrapHeight/vidHeight);newLeft=-((newWidth-wrapWidth)/2);}else{newTop=-((newHeight-wrapHeight)/2);}
video.parent().data('width',vidWidth);video.parent().data('height',vidHeight);video.css({'left':newLeft+'px','top':newTop+'px','width':newWidth+'px','height':newHeight+'px'});},_resizeYoutubeBgVideo:function(){var wrap=$(this),wrapWidth=wrap.outerWidth(),wrapHeight=wrap.outerHeight(),player=wrap.data('YTPlayer'),video=player?player.getIframe():null,aspectRatioSetting='16:9',aspectRatioArray=aspectRatioSetting.split(':'),aspectRatio=aspectRatioArray[0]/ aspectRatioArray[1],ratioWidth=wrapWidth / aspectRatio,ratioHeight=wrapHeight*aspectRatio,isWidthFixed=wrapWidth / wrapHeight>aspectRatio,width=isWidthFixed?wrapWidth:ratioHeight,height=isWidthFixed?ratioWidth:wrapHeight;if(video){$(video).width(width).height(height);}},_initHash:function(){var hash=window.location.hash.replace('#','').split('/').shift(),element=null,tabs=null,responsiveLabel=null,tabIndex=null,label=null;if(''!==hash){try{element=$('#'+hash);if(element.length>0){if(element.hasClass('fl-accordion-item')){setTimeout(function(){element.find('.fl-accordion-button').trigger('click');},100);}
if(element.hasClass('fl-tabs-panel')){setTimeout(function(){tabs=element.closest('.fl-tabs');responsiveLabel=element.find('.fl-tabs-panel-label');tabIndex=responsiveLabel.data('index');label=tabs.find('.fl-tabs-labels .fl-tabs-label[data-index='+tabIndex+']');label[0].click();FLBuilderLayout._scrollToElement(element);},100);}}}
catch(e){}}},_initAnchorLinks:function(){$('a, [role="link"]').each(FLBuilderLayout._initAnchorLink);},_initAnchorLink:function(){var link=$(this),href=link.data('url')?link.data('url'):link.attr('href'),target=link.data('url')?new URL(href,window.location.href):this,loc=window.location,id=null,element=null,flNode=false;if('undefined'!=typeof href&&href.indexOf('#')>-1&&link.closest('svg').length<1){if(loc.pathname.replace(/^\//,'')==target.pathname.replace(/^\//,'')&&loc.hostname==target.hostname){try{id=href.split('#').pop();if(!id){return;}
element=$('#'+id);if(element.length>0){flNode=element.hasClass('fl-row')||element.hasClass('fl-col')||element.hasClass('fl-module');if(!element.hasClass('fl-no-scroll')&&(link.hasClass('fl-scroll-link')||flNode)){$(link).on('click',FLBuilderLayout._scrollToElementOnLinkClick);}
if(element.hasClass('fl-accordion-item')){$(link).on('click',FLBuilderLayout._scrollToAccordionOnLinkClick);}
if(element.hasClass('fl-tabs-panel')){$(link).on('click',FLBuilderLayout._scrollToTabOnLinkClick);}}}
catch(e){}}}},_scrollToElementOnLinkClick:function(e,callback){var attribute=$(this).data('url')?$(this).data('url'):$(this).attr('href');var element=$('#'+attribute.split('#').pop());FLBuilderLayout._scrollToElement(element,callback);e.preventDefault();},_scrollToElement:function(element,callback){var config=FLBuilderLayoutConfig.anchorLinkAnimations,dest=0,win=$(window),doc=$(document);if(element.length>0){if('fixed'===element.css('position')||'fixed'===element.parent().css('position')){dest=element.position().top;}
else if(element.offset().top>doc.height()-win.height()){dest=doc.height()-win.height();}else{dest=element.offset().top-config.offset;}
$('html, body').stop(true).animate({scrollTop:dest},config.duration,config.easing,function(){if('undefined'!=typeof callback){callback();}
if(undefined!=element.attr('id')&&window.location.hash!=='#'+element.attr('id')){var firefox_version=window.navigator.userAgent.match(/Firefox\/(\d+)\./),firefox_version=firefox_version?parseInt(firefox_version[1],10):null;if(firefox_version!==null&&firefox_version<135){window.location.hash=element.attr('id');}else{if(history.pushState){history.pushState(null,null,'#'+element.attr('id'));}else{window.location.hash=element.attr('id');}}}});}},_scrollToAccordionOnLinkClick:function(e){var element=$('#'+$(this).attr('href').split('#').pop());if(element.length>0){var callback=function(){if(element){element.find('.fl-accordion-button').trigger('click');element=false;}};FLBuilderLayout._scrollToElementOnLinkClick.call(this,e,callback);}},_scrollToTabOnLinkClick:function(e){var element=$('#'+$(this).attr('href').split('#').pop()),tabs=null,label=null,responsiveLabel=null;if(element.length>0){tabs=element.closest('.fl-tabs');responsiveLabel=element.find('.fl-tabs-panel-label');tabIndex=responsiveLabel.data('index');label=tabs.find('.fl-tabs-labels .fl-tabs-label[data-index='+tabIndex+']');if(responsiveLabel.is(':visible')){var callback=function(){if(element){responsiveLabel.trigger($.Event('click',{which:1}));}};FLBuilderLayout._scrollToElementOnLinkClick.call(this,e,callback);}else{label[0].click();FLBuilderLayout._scrollToElement(element);}
e.preventDefault();}},_initForms:function(){if(!FLBuilderLayout._hasPlaceholderSupport){$('.fl-form-field input').each(FLBuilderLayout._initFormFieldPlaceholderFallback);}
$('.fl-form-field input').on('focus',FLBuilderLayout._clearFormFieldError);},_hasPlaceholderSupport:function(){var input=document.createElement('input');return'undefined'!=input.placeholder;},_initFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if('undefined'!=placeholder&&''===val){field.val(placeholder);field.on('focus',FLBuilderLayout._hideFormFieldPlaceholderFallback);field.on('blur',FLBuilderLayout._showFormFieldPlaceholderFallback);}},_hideFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if(val==placeholder){field.val('');}},_showFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if(''===val){field.val(placeholder);}},_clearFormFieldError:function(){var field=$(this);field.removeAttr('aria-invalid');field.removeClass('fl-form-error');const message=field.attr('aria-describedby');message?$('#'+message).hide():field.siblings('.fl-form-error-message').hide();},_initRowShapeLayerHeight:function(){FLBuilderLayout._adjustRowShapeLayerHeight();$(window).on('resize',FLBuilderLayout._adjustRowShapeLayerHeight);},_initNestedColsWidth:function(){var nestedCols=$('.fl-col-has-cols');if(nestedCols.length<=0){return;}
$(nestedCols).each(function(index,col){if($(col).width()<=0){$(col).css('width',FLBuilderLayoutConfig.emptyColWidth);}});},_adjustRowShapeLayerHeight:function(){var rowShapeLayers=$('.fl-builder-shape-layer');$(rowShapeLayers).each(function(index){var rowShapeLayer=$(this),shape=$(rowShapeLayer).find('svg'),height=shape.height(),excludeShapes='.fl-builder-shape-circle, .fl-builder-shape-dot-cluster, .fl-builder-shape-topography, .fl-builder-shape-rect';if(!rowShapeLayer.is(excludeShapes)){$(shape).css('height',Math.ceil(height));}});},_string_to_slug:function(str){str=str.replace(/^\s+|\s+$/g,'');if('undefined'==typeof window._fl_string_to_slug_regex){regex=new RegExp('[^a-zA-Z0-9\'":() !.,-_|]','g');}else{regex=new RegExp('[^'+window._fl_string_to_slug_regex+'\'":\(\) !.,-_|\\\p{Letter}]','ug');}
str=str.replace(regex,'').replace(/\s+/g,' ');return str;},_reorderMenu:function(){if($('#wp-admin-bar-fl-builder-frontend-edit-link-default li').length>1){$('#wp-admin-bar-fl-builder-frontend-duplicate-link').appendTo('#wp-admin-bar-fl-builder-frontend-edit-link-default').css('padding-top','5px').css('border-top','2px solid #1D2125').css('margin-top','5px')}}};$(function(){FLBuilderLayout.init();});})(jQuery);(function($){if(typeof FLBuilderLayoutModules!=='undefined'){return;}
FLBuilderLayoutModules={init:function(){if(0===$('.fl-builder-edit').length){FLBuilderLayoutModules._initModuleAnimations();}},_initModuleAnimations:function(){if(typeof jQuery.fn.waypoint!=='undefined'){$('.fl-animation').each(function(){var node=$(this),nodeTop=node.offset().top,winHeight=$(window).height(),bodyHeight=$('body').height(),waypoint=FLBuilderLayoutConfig.waypoint,offset='80%';if(typeof waypoint.offset!==undefined){offset=FLBuilderLayoutConfig.waypoint.offset+'%';}
if(bodyHeight-nodeTop<winHeight*0.2){offset='100%';}
node.waypoint({offset:offset,handler:FLBuilderLayoutModules._doModuleAnimation});});}},_doModuleAnimation:function(){var module='undefined'==typeof this.element?$(this):$(this.element),delay=parseFloat(module.data('animation-delay')),duration=parseFloat(module.data('animation-duration'));if(!isNaN(duration)){module.css('animation-duration',duration+'s');}
if(!isNaN(delay)&&delay>0){setTimeout(function(){module.addClass('fl-animated');},delay*1000);}else{setTimeout(function(){module.addClass('fl-animated');},1);}}};$(function(){FLBuilderLayoutModules.init();});})(jQuery);YUI({'logExclude':{'yui':true}}).use('fl-slideshow',function(Y){if(null===Y.one('.fl-node-urij7bp6eg2a .fl-bg-slideshow')){return;}
var oldSlideshow=Y.one('.fl-node-urij7bp6eg2a .fl-bg-slideshow .fl-slideshow'),newSlideshow=new Y.FL.Slideshow({autoPlay:true,bgslideshow:true,crop:true,loadingImageEnabled:false,randomize:false,responsiveThreshold:0,touchSupport:false,source:[{type:"urls",urls:[{thumbURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Templeton-House-traditional-style-double-doors.-brass-knobs-150x150.webp",largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Templeton-House-traditional-style-double-doors.-brass-knobs-1400x932.webp",x3largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Templeton-House-traditional-style-double-doors.-brass-knobs.webp",caption:"",alt:"Traditional style double doors with brass knobs",},{thumbURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Bronze-liquid-metal-luxury-pivot-door-150x150.jpg",largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Bronze-liquid-metal-luxury-pivot-door-1400x1002.jpg",x3largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Bronze-liquid-metal-luxury-pivot-door.jpg",caption:"",alt:"Bronze liquid metal luxury pivot door",},{thumbURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Architect-designed-home-150x150.webp",largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Architect-designed-home-1400x882.webp",x3largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Architect-designed-home.webp",caption:"",alt:"Architect designed home with modern aluminium door",},{thumbURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/6-panel-georgian-aluminium-door-150x150.webp",largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/6-panel-georgian-aluminium-door-1400x885.webp",x3largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/6-panel-georgian-aluminium-door.webp",caption:"",alt:"6 panel Georgian luxury aluminium door",},{thumbURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Oversize-pivor-door-in-textured-broze-wirth-bespoke-branch-handle-150x150.jpg",largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Oversize-pivor-door-in-textured-broze-wirth-bespoke-branch-handle-1400x955.jpg",x3largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Oversize-pivor-door-in-textured-broze-wirth-bespoke-branch-handle.jpg",caption:"",alt:"Oversize pivot door in textured bronze with bespoke branch handle",},{thumbURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/traditional-grey-luxury-door-with-silver-knob-150x150.jpg",largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/traditional-grey-luxury-door-with-silver-knob-1400x933.jpg",x3largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/traditional-grey-luxury-door-with-silver-knob.jpg",caption:"",alt:"Traditional style grey aluminium door on luxury home",},{thumbURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Glass-door-on-architect-designed-modern-luxury-home-150x150.webp",largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Glass-door-on-architect-designed-modern-luxury-home-1400x936.webp",x3largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2026/06/Glass-door-on-architect-designed-modern-luxury-home.webp",caption:"",alt:"Glass door on architect designed modern luxury home",}]}],speed:4000,stretchy:true,stretchyType:'contain',transition:'kenBurns',transitionDuration:2});if(oldSlideshow){oldSlideshow.remove(true);}
jQuery('.fl-node-urij7bp6eg2a').imagesLoaded(function(){newSlideshow.render('.fl-node-urij7bp6eg2a .fl-bg-slideshow');});});YUI({'logExclude':{'yui':true}}).use('fl-slideshow',function(Y){if(null===Y.one('.fl-node-yl8w9sichtkf .fl-bg-slideshow')){return;}
var oldSlideshow=Y.one('.fl-node-yl8w9sichtkf .fl-bg-slideshow .fl-slideshow'),newSlideshow=new Y.FL.Slideshow({autoPlay:true,bgslideshow:true,crop:true,loadingImageEnabled:false,randomize:false,responsiveThreshold:0,touchSupport:false,source:[{type:"urls",urls:[{thumbURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2020/02/timber-clad-pivot-door-4-150x150.jpg",largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2020/02/timber-clad-pivot-door-4.jpg",x3largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2020/02/timber-clad-pivot-door-4.jpg",caption:"",alt:"Timber clad luxury aluminium door, closed",},{thumbURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2020/02/timber-clad-pivot-door-3-150x150.jpg",largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2020/02/timber-clad-pivot-door-3.jpg",x3largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2020/02/timber-clad-pivot-door-3.jpg",caption:"",alt:"Timber clad luxury aluminium door, opening",},{thumbURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2020/02/timber-clad-pivot-door-2-150x150.jpg",largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2020/02/timber-clad-pivot-door-2.jpg",x3largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2020/02/timber-clad-pivot-door-2.jpg",caption:"",alt:"Timber clad luxury aluminium door, open",},{thumbURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2020/02/Timber-clad-pivot-door-1-150x150.jpg",largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2020/02/Timber-clad-pivot-door-1.jpg",x3largeURL:"https://rkdoorsystems.co.uk/wp-content/uploads/2020/02/Timber-clad-pivot-door-1.jpg",caption:"",alt:"Timber clad luxury aluminium door fully open",}]}],speed:1000,stretchy:true,stretchyType:'contain',transition:'fade',transitionDuration:.5});if(oldSlideshow){oldSlideshow.remove(true);}
jQuery('.fl-node-yl8w9sichtkf').imagesLoaded(function(){newSlideshow.render('.fl-node-yl8w9sichtkf .fl-bg-slideshow');});});jQuery(function($){$(function(){$('.fl-node-1iro29mujkle .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-w4uclk2ea10b .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-yipf58xnzbuk .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){})(jQuery);jQuery(function($){$(function(){$('.fl-node-oypmaqjsx0c5 .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-votlf46jyxpc .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});;(function($){PPImageCarousel=function(settings){this.id=settings.id;this.nodeClass='.fl-node-'+settings.id;this.wrapperClass=this.nodeClass+' .pp-image-carousel';this.elements='';this.slidesPerView=settings.slidesPerView;this.slidesRows=settings.slidesRows;this.slidesToScroll=settings.slidesToScroll;this.settings=settings;this.swipers={};if(this._isSlideshow()){this.slidesPerView=settings.slideshow_slidesPerView;}
if(typeof Swiper==='undefined'){$(window).on('load',function(){if(typeof Swiper==='undefined'){return;}else{this._init();}}.bind(this));}else{this._init();}};PPImageCarousel.prototype={id:'',nodeClass:'',wrapperClass:'',elements:'',slidesPerView:{},slidesRows:{},slidesToScroll:{},settings:{},swipers:{},_init:function(){this.elements={mainSwiper:this.nodeClass+' .pp-image-carousel'};this.elements.swiperSlide=$(this.elements.mainSwiper).find('.swiper-slide:not(.swiper-slide-duplicate)');this.elements.thumbSwiper=this.nodeClass+' .pp-thumbnails-swiper';if(1>=this._getSlidesCount()){return;}
var swiperOptions=this._getSwiperOptions();$(this.nodeClass).trigger('pp_carousel_before_init',[swiperOptions]);this.swipers.main=new Swiper(this.elements.mainSwiper,swiperOptions.main);if(this.settings.pause_on_interaction&&this.settings.autoplay_delay!==false){var self=this;$(this.swipers.main.el).on('mouseenter',function(){self.swipers.main.autoplay.stop();}).on('mouseleave',function(){self.swipers.main.autoplay.start();});}
if(this._isSlideshow()&&1<this._getSlidesCount()){this.swipers.main.controller.control=this.swipers.thumbs=new Swiper(this.elements.thumbSwiper,swiperOptions.thumbs);this.swipers.thumbs.controller.control=this.swipers.main;}},_getEffect:function(){return this.settings.effect;},_getSlidesCount:function(){return this.elements.swiperSlide.length;},_getInitialSlide:function(){return this.settings.initialSlide;},_getSpaceBetween:function(){var space=this.settings.spaceBetween.desktop,space=parseInt(space);if(isNaN(space)){space=20;}
return space;},_getSpaceBetweenLarge:function(){var space=this.settings.spaceBetween.large,space=parseInt(space);if(isNaN(space)){space=this._getSpaceBetween();}
return space;},_getSpaceBetweenTablet:function(){var space=this.settings.spaceBetween.tablet,space=parseInt(space);if(isNaN(space)){space=this._getSpaceBetweenLarge();}
return space;},_getSpaceBetweenMobile:function(){var space=this.settings.spaceBetween.mobile,space=parseInt(space);if(isNaN(space)){space=this._getSpaceBetweenTablet();}
return space;},_getSlidesPerView:function(){if(this._isSlideshow()){return 1;}
var slidesPerView=this.slidesPerView.desktop;return Math.min(this._getSlidesCount(),+slidesPerView);},_getSlidesPerViewLarge:function(){if(this._isSlideshow()){return 1;}
var slidesPerView=this.slidesPerView.large;if(slidesPerView===''||slidesPerView===0){slidesPerView=this._getSlidesPerView();}
if(!slidesPerView&&'coverflow'===this.settings.type){return Math.min(this._getSlidesCount(),3);}
return Math.min(this._getSlidesCount(),+slidesPerView);},_getSlidesPerViewTablet:function(){if(this._isSlideshow()){return 1;}
var slidesPerView=this.slidesPerView.tablet;if(slidesPerView===''||slidesPerView===0){slidesPerView=this._getSlidesPerViewLarge();}
if(!slidesPerView&&'coverflow'===this.settings.type){return Math.min(this._getSlidesCount(),3);}
return Math.min(this._getSlidesCount(),+slidesPerView);},_getSlidesPerViewMobile:function(){if(this._isSlideshow()){return 1;}
var slidesPerView=this.slidesPerView.mobile;if(slidesPerView===''||slidesPerView===0){slidesPerView=this._getSlidesPerViewTablet();}
if(!slidesPerView&&'coverflow'===this.settings.type){return Math.min(this._getSlidesCount(),3);}
return Math.min(this._getSlidesCount(),+slidesPerView);},_getThumbsSlidesPerView:function(){var slidesPerView=this.slidesPerView.desktop;return Math.min(this._getSlidesCount(),+slidesPerView);},_getThumbsSlidesPerViewLarge:function(){var slidesPerView=this.slidesPerView.large;if(slidesPerView===''||slidesPerView===0){slidesPerView=this._getThumbsSlidesPerView();}
if(!slidesPerView&&'coverflow'===this.settings.type){return Math.min(this._getSlidesCount(),3);}
return Math.min(this._getSlidesCount(),+slidesPerView);},_getThumbsSlidesPerViewTablet:function(){var slidesPerView=this.slidesPerView.tablet;if(slidesPerView===''||slidesPerView===0){slidesPerView=this._getThumbsSlidesPerViewLarge();}
if(!slidesPerView&&'coverflow'===this.settings.type){return Math.min(this._getSlidesCount(),3);}
return Math.min(this._getSlidesCount(),+slidesPerView);},_getThumbsSlidesPerViewMobile:function(){var slidesPerView=this.slidesPerView.mobile;if(slidesPerView===''||slidesPerView===0){slidesPerView=this._getSlidesPerViewTablet();}
if(!slidesPerView&&'coverflow'===this.settings.type){return Math.min(this._getSlidesCount(),3);}
return Math.min(this._getSlidesCount(),+slidesPerView);},_getSlidesRows:function(){return this.slidesRows.desktop||1;},_getSlidesRowsLarge:function(){return this.slidesRows.large||this._getSlidesRows();},_getSlidesRowsTablet:function(){return this.slidesRows.tablet||this._getSlidesRowsLarge();},_getSlidesRowsMobile:function(){return this.slidesRows.mobile||this._getSlidesRowsTablet();},_getSlidesToScroll:function(device){if(!this._isSlideshow()&&'slide'===this._getEffect()){var slides=this.slidesToScroll[device];return Math.min(this._getSlidesCount(),+slides||1);}
return 1;},_getSlidesToScrollDesktop:function(){return this._getSlidesToScroll('desktop');},_getSlidesToScrollLarge:function(){return this._getSlidesToScroll('large');},_getSlidesToScrollTablet:function(){return this._getSlidesToScroll('tablet');},_getSlidesToScrollMobile:function(){return this._getSlidesToScroll('mobile');},_getSwiperOptions:function(){var minBreakpoint=0;var large_breakpoint=this.settings.breakpoint.large,medium_breakpoint=this.settings.breakpoint.medium,responsive_breakpoint=this.settings.breakpoint.responsive;nodeClass=this.nodeClass;var pagination=$(nodeClass).find('.swiper-pagination');var isAutoSlides=$(nodeClass).hasClass('pp-slides-auto');var captions=pagination.data('captions');var addAriaLabels=function(){var count=0;setTimeout(function(){pagination.find('.swiper-pagination-bullet').each(function(){var label=captions[count];if(''!==label){$(this).attr('aria-label',label);}
if($(this).hasClass('swiper-pagination-bullet-active')){$(this).attr('aria-current','true');}else{$(this).attr('aria-current','false');}
count++;});},250);};var addSlideCount=function($scope){var $slides=$($scope.el).find('.swiper-slide:not(.swiper-slide-duplicate)');var total=$slides.length;$($scope.slides).each(function(){var index=$(this).data('swiper-slide-index');var current=index+1;if($(this).find('.pp-caption').find('.pp-slides-count').length==0){$(this).find('.pp-caption').append('<span class="pp-slides-count" aria-hidden="true">'+current+' / '+total+'</span>');}});};var options={direction:this.settings.direction,keyboard:{enabled:true,onlyInViewport:true,},navigation:{prevEl:nodeClass+' .swiper-button-prev',nextEl:nodeClass+' .swiper-button-next'},pagination:{el:nodeClass+' .swiper-pagination',type:this.settings.pagination,clickable:true,renderBullet:function(index,className){var pagination=$(nodeClass).find('.swiper-pagination');var captions=pagination.data('captions');return'<button class="'+className+'" aria-label="'+captions[index]+'" tabindex="0" role="button"></button>';},dynamicBullets:this.settings.dynamic_bullets},a11y:{enabled:false},grabCursor:true,effect:this._getEffect(),initialSlide:this._getInitialSlide(),slidesPerView:this._getSlidesPerView(),slidesPerGroup:this._getSlidesToScrollDesktop(),spaceBetween:this._getSpaceBetween(),loop:'undefined'!==typeof this.settings.loop?this.settings.loop:true,speed:this.settings.speed,breakpoints:{},on:{init:addAriaLabels,slideChange:addAriaLabels,afterInit:addSlideCount,update:addSlideCount}};if(this.settings.mousewheel){options.mousewheel=this.settings.mousewheel;}
if(window.innerWidth>large_breakpoint&&this._getSlidesCount()<=this._getSlidesPerView()&&!isAutoSlides){options.pagination=false;}
if(window.innerWidth<=large_breakpoint&&window.innerWidth>medium_breakpoint&&this._getSlidesCount()<=this._getSlidesPerViewLarge()&&!isAutoSlides){options.pagination=false;}
if(window.innerWidth<=medium_breakpoint&&window.innerWidth>responsive_breakpoint&&this._getSlidesCount()<=this._getSlidesPerViewTablet()&&!isAutoSlides){options.pagination=false;}
if(window.innerWidth>=responsive_breakpoint&&this._getSlidesCount()<=this._getSlidesPerViewMobile()&&!isAutoSlides){options.pagination=false;}
if(!this.settings.isBuilderActive&&this.settings.lazy_load){options.lazy={loadPrevNext:true,loadPrevNextAmount:1}}
if(this._isSlideshow()){options.loopedSlides=this._getSlidesCount();if('fade'===this._getEffect()){options.fadeEffect={crossFade:true};}}
if(!this.settings.isBuilderActive&&this.settings.autoplay_delay!==false){options.autoplay={delay:this.settings.autoplay_delay,reverseDirection:this.settings.reverseDirection,disableOnInteraction:this.settings.pause_on_interaction,stopOnLastSlide:'undefined'!==typeof this.settings.stopOnLastSlide?this.settings.stopOnLastSlide:false,};}
if(!this._isSlideshow()){if('coverflow'===this.settings.type||'slide'===this._getEffect()){options.breakpoints[minBreakpoint]={slidesPerView:this._getSlidesPerViewMobile(),slidesPerGroup:this._getSlidesToScrollMobile(),spaceBetween:this._getSpaceBetweenMobile()};options.breakpoints[responsive_breakpoint+1]={slidesPerView:this._getSlidesPerViewTablet(),slidesPerGroup:this._getSlidesToScrollTablet(),spaceBetween:this._getSpaceBetweenTablet()};options.breakpoints[medium_breakpoint+1]={slidesPerView:this._getSlidesPerViewLarge(),slidesPerGroup:this._getSlidesToScrollLarge(),spaceBetween:this._getSpaceBetweenLarge()};options.breakpoints[large_breakpoint+1]={slidesPerView:this._getSlidesPerView(),slidesPerGroup:this._getSlidesToScrollDesktop(),spaceBetween:this._getSpaceBetween()};}
if('horizontal'===this.settings.direction&&('coverflow'===this.settings.type||'slide'===this._getEffect())){if(this._getSlidesRows()>1){options.grid={enabled:true,rows:this._getSlidesRows()};}
if(this._getSlidesRowsMobile()>=1){options.breakpoints[minBreakpoint].grid={enabled:true,rows:this._getSlidesRowsMobile()};}
if(this._getSlidesRowsTablet()>=1){options.breakpoints[responsive_breakpoint+1].grid={enabled:true,rows:this._getSlidesRowsTablet()};}
if(this._getSlidesRowsLarge()>=1){options.breakpoints[medium_breakpoint+1].grid={enabled:true,rows:this._getSlidesRowsLarge()};}
if(this._getSlidesRows()>=1){options.breakpoints[large_breakpoint+1].grid={enabled:true,rows:this._getSlidesRows()};}}}
if('carousel'===this.settings.type){options.centeredSlides=this.settings.centered_slides;if($(this.nodeClass).hasClass('pp-slides-auto')){options.slidesPerView='auto';options.slidesPerGroup=1;options.breakpoints[minBreakpoint]={slidesPerView:options.slidesPerView,slidesPerGroup:options.slidesPerGroup};options.breakpoints[responsive_breakpoint+1]={slidesPerView:options.slidesPerView,slidesPerGroup:options.slidesPerGroup};options.breakpoints[medium_breakpoint+1]={slidesPerView:options.slidesPerView,slidesPerGroup:options.slidesPerGroup};options.breakpoints[large_breakpoint+1]={slidesPerView:options.slidesPerView,slidesPerGroup:options.slidesPerGroup};}}
if('coverflow'===this.settings.type){options.effect='coverflow';options.centeredSlides=true;if(window.innerWidth>large_breakpoint&&this._getSlidesPerView()<=2){options.centeredSlides=false;}
if(window.innerWidth<=large_breakpoint&&window.innerWidth>medium_breakpoint&&this._getSlidesPerViewLarge()<=2){options.centeredSlides=false;}
if(window.innerWidth<=medium_breakpoint&&window.innerWidth>responsive_breakpoint&&this._getSlidesPerViewTablet()<=2){options.centeredSlides=false;}
if(window.innerWidth>=responsive_breakpoint&&this._getSlidesPerViewMobile()<=2){options.centeredSlides=false;}}
if(this._isSlideshow()){options.slidesPerView=1;delete options.pagination;delete options.breakpoints;}
var thumbsSliderOptions={slidesPerView:this._getThumbsSlidesPerView(),initialSlide:this._getInitialSlide(),centeredSlides:true,slideToClickedSlide:true,spaceBetween:this._getSpaceBetween(),loop:'undefined'!==typeof this.settings.loop?this.settings.loop:true,loopedSlides:this._getSlidesCount(),speed:this.settings.speed,onSlideChangeEnd:function(swiper){swiper.fixLoop();},breakpoints:{}};thumbsSliderOptions.breakpoints[minBreakpoint]={slidesPerView:this._getThumbsSlidesPerViewMobile(),spaceBetween:this._getSpaceBetweenMobile()};thumbsSliderOptions.breakpoints[responsive_breakpoint+1]={slidesPerView:this._getThumbsSlidesPerViewTablet(),spaceBetween:this._getSpaceBetweenTablet()};thumbsSliderOptions.breakpoints[medium_breakpoint+1]={slidesPerView:this._getThumbsSlidesPerViewLarge(),spaceBetween:this._getSpaceBetweenLarge()};thumbsSliderOptions.breakpoints[large_breakpoint+1]={slidesPerView:this._getThumbsSlidesPerView(),spaceBetween:this._getSpaceBetween()};if(!this.settings.isBuilderActive&&this.settings.lazy_load){thumbsSliderOptions.lazy={loadPrevNext:true,loadPrevNextAmount:1}}
return{main:options,thumbs:thumbsSliderOptions};},_isSlideshow:function(){return'slideshow'===this.settings.type;},};})(jQuery);var carousel_ukbgj23pomae='';(function($){$(function(){var gallery_selector=$('.fl-node-ukbgj23pomae .pp-image-carousel');if(gallery_selector.length&&typeof $.fn.magnificPopup!=='undefined'){gallery_selector.magnificPopup({delegate:'.pp-image-carousel-item:not(.swiper-slide-duplicate) a',closeBtnInside:false,type:'image',gallery:{enabled:true,navigateByImgClick:true,tCounter:''},mainClass:'mfp-ukbgj23pomae',});$('.fl-node-ukbgj23pomae .pp-image-carousel .swiper-slide').on('keyup',function(e){if(13===e.keyCode||13===e.which){$('.fl-node-ukbgj23pomae .pp-image-carousel .swiper-slide a').trigger('click');}});}});var settings={id:'ukbgj23pomae',type:'carousel',initialSlide:0,slidesPerView:{desktop:3,large:0,tablet:2,mobile:1,},slidesRows:{desktop:1,large:0,tablet:0,mobile:0,},slidesToScroll:{desktop:1,large:1,tablet:1,mobile:1,},slideshow_slidesPerView:{desktop:5,large:0,tablet:0,mobile:0,},spaceBetween:{desktop:'20',large:'',tablet:'',mobile:'',},direction:'horizontal',isBuilderActive:false,pagination:'bullets',dynamic_bullets:false,autoplay:true,autoplay_delay:3000,reverseDirection:false,pause_on_interaction:true,effect:'slide',speed:1000,centered_slides:false,lazy_load:false,mousewheel:{enabled:false,sensitivity:'1',forceToAxis:false,invert:false,releaseOnEdges:false,},breakpoint:{large:1200,medium:992,responsive:767},navText:{prev:'Previous slide',next:'Next slide',}};settings.loop=true;carousel_ukbgj23pomae=new PPImageCarousel(settings);function updateCarousel(){setTimeout(function(){if('number'!==typeof carousel_ukbgj23pomae.swipers.main.length){carousel_ukbgj23pomae.swipers.main.update();if('object'===typeof carousel_ukbgj23pomae.swipers.thumbs){carousel_ukbgj23pomae.swipers.thumbs.update();}}else{carousel_ukbgj23pomae.swipers.main.forEach(function(item){if('undefined'!==typeof item){item.update();}});}},10);}
$(document).on('pp_modal_box_rendered',function(e,selector){if(selector.find('.fl-node-ukbgj23pomae').length>0){updateCarousel();}});$(document).on('fl-builder.pp-accordion-toggle-complete',function(e){if($(e.target).find('.fl-node-ukbgj23pomae').length>0){updateCarousel();}});$(document).on('pp-tabs-switched',function(e,selector){if(selector.find('.fl-node-ukbgj23pomae').length>0){updateCarousel();}});$('.fl-tabs').find('.fl-tabs-label').on('click',function(){var index=$(this).data('index');var panel=$(this).parents('.fl-tabs').find('.fl-tabs-panel-content[data-index="'+index+'"]');if(panel.find('.fl-node-ukbgj23pomae').length>0){updateCarousel();}});var state=0;$(document).on('pp_expandable_row_toggle',function(e,selector){if(selector.is('.pp-er-open')&&state===0&&selector.parent().find('.fl-node-ukbgj23pomae').length>0){updateCarousel();state=1;}});})(jQuery);(function($){})(jQuery);jQuery(function($){$(function(){$('.fl-node-gqs9mczr08jp .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-hktcdlv69f8s .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){})(jQuery);(function($){})(jQuery);jQuery(function($){if(typeof $.fn.magnificPopup!=='undefined'){$('.fl-node-c390br5wfsjy a').magnificPopup({type:'image',closeOnContentClick:true,closeBtnInside:false,tLoading:'',preloader:true,fixedContentPos:true,image:{titleSrc:function(item){}},callbacks:{open:function(){$('.mfp-preloader').html('<i class="fas fa-spinner fa-spin fa-3x fa-fw"></i>');}}});}
$(function(){$('.fl-node-c390br5wfsjy .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-abc60s7dil89 .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){})(jQuery);(function($){})(jQuery);(function($){})(jQuery);(function($){})(jQuery);jQuery(function($){$(function(){$('.fl-node-0vqcp32l56xd .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});;(function($){$(function(){$('.fl-embed-video').fitVids();if(($('.fl-wp-video video').length>1)&&typeof $.fn.mediaelementplayer!=='undefined'){$('.fl-wp-video video').mediaelementplayer({pauseOtherPlayers:false});}});FLBuilderVideo=function(settings){this.nodeID=settings.id;this.nodeClass='.fl-node-'+settings.id;this._initVideo();this._initStickyOnScroll();};FLBuilderVideo.prototype={_initVideo:function(){var origTop=$(this.nodeClass).offset().top,origLeft=$(this.nodeClass).offset().left,origHeight=$(this.nodeClass).outerHeight(),origWidth=$(this.nodeClass).outerWidth();$(this.nodeClass).attr('data-orig-top',origTop);$(this.nodeClass).attr('data-orig-left',origLeft);$(this.nodeClass).attr('data-orig-height',origHeight);$(this.nodeClass).attr('data-orig-width',origWidth);},_makeSticky:function(){var origLeft=$(this.nodeClass).data('orig-left'),origHeight=$(this.nodeClass).data('orig-height'),origWidth=$(this.nodeClass).data('orig-width');$(this.nodeClass).addClass('fl-video-sticky');$(this.nodeClass).css('left',origLeft);$(this.nodeClass).css('height',origHeight);$(this.nodeClass).css('width',origWidth);},_removeSticky:function(){$(this.nodeClass).removeClass('fl-video-sticky');},_initStickyOnScroll:function(){$(window).on('scroll',$.proxy(function(e){var win=$(window),winTop=win.scrollTop(),nodeTop=$(this.nodeClass).data('orig-top');isSticky=$(this.nodeClass).hasClass('fl-video-sticky');if(winTop>=nodeTop){if(!isSticky){this._makeSticky();}}else{this._removeSticky();}},this));},};})(jQuery);(function($){})(jQuery);jQuery(function($){$(function(){$('.fl-node-9meb0gi7a4n1 .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-gkf7lpuo680h .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-qeyp6sr4hvxz .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){})(jQuery);(function($){})(jQuery);(function($){})(jQuery);(function($){})(jQuery);(function($){})(jQuery);(function($){})(jQuery);jQuery(function($){$(function(){$('.fl-node-9rd08tn4vxgp .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){})(jQuery);(function($){})(jQuery);(function($){})(jQuery);jQuery(function($){$(function(){$('.fl-node-noh5usjm6d0e .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-gmqix93apnuf .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-3tghsljf02nv .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){})(jQuery);jQuery(function($){$(function(){$('.fl-node-bz710ehuil4y .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-5cb592327b6e5 .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){})(jQuery);
(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);
jQuery(function($){$(function(){$('.fl-node-5c376f372e888 .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-5cd93d546cefd .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});(function($){FLThemeBuilderHeaderLayout={win:null,body:null,header:null,overlay:false,hasAdminBar:false,stickyOn:'',breakpointWidth:0,init:function(){var editing=$('html.fl-builder-edit').length,header=$('.fl-builder-content[data-type=header]'),menuModule=header.find('.fl-module-menu'),breakpoint=null;if(!editing&&header.length){header.imagesLoaded($.proxy(function(){this.win=$(window);this.body=$('body');this.header=header.eq(0);this.overlay=!!Number(header.attr('data-overlay'));this.hasAdminBar=!!$('body.admin-bar').length;this.stickyOn=this.header.data('sticky-on');breakpoint=this.header.data('sticky-breakpoint');if(''==this.stickyOn){if(typeof FLBuilderLayoutConfig.breakpoints[breakpoint]!==undefined){this.breakpointWidth=FLBuilderLayoutConfig.breakpoints[breakpoint];}else{this.breakpointWidth=FLBuilderLayoutConfig.breakpoints.medium;}}
if(Number(header.attr('data-sticky'))){this.header.data('original-top',this.header.offset().top);this.win.on('resize',$.throttle(500,$.proxy(this._initSticky,this)));this._initSticky();}},this));}},_initSticky:function(e){var header=$('.fl-builder-content[data-type=header]'),windowSize=this.win.width(),makeSticky=false;makeSticky=this._makeWindowSticky(windowSize);if(makeSticky||(this.breakpointWidth>0&&windowSize>=this.breakpointWidth)){this.win.on('scroll.fl-theme-builder-header-sticky',$.proxy(this._doSticky,this));if(e&&'resize'===e.type){if(this.header.hasClass('fl-theme-builder-header-sticky')){this._doSticky(e);}
this._adjustStickyHeaderWidth();}
if(Number(header.attr('data-shrink'))){this.header.data('original-height',this.header.outerHeight());this.win.on('resize',$.throttle(500,$.proxy(this._initShrink,this)));this._initShrink();}
this._initFlyoutMenuFix(e);}else{this.win.off('scroll.fl-theme-builder-header-sticky');this.win.off('resize.fl-theme-builder-header-sticky');this.header.removeClass('fl-theme-builder-header-sticky');this.header.removeAttr('style');this.header.parent().css('padding-top','0');}},_makeWindowSticky:function(windowSize){var makeSticky=false;switch(this.stickyOn){case'xl':makeSticky=windowSize>FLBuilderLayoutConfig.breakpoints['large'];break;case'':case'desktop':makeSticky=windowSize>=FLBuilderLayoutConfig.breakpoints['medium'];break;case'desktop-medium':makeSticky=windowSize>FLBuilderLayoutConfig.breakpoints['small'];break;case'large':makeSticky=windowSize>FLBuilderLayoutConfig.breakpoints['medium']&&windowSize<=FLBuilderLayoutConfig.breakpoints['large'];break;case'large-medium':makeSticky=windowSize>FLBuilderLayoutConfig.breakpoints['small']&&windowSize<=FLBuilderLayoutConfig.breakpoints['large'];break;case'medium':makeSticky=(windowSize<=FLBuilderLayoutConfig.breakpoints['medium']&&windowSize>FLBuilderLayoutConfig.breakpoints['small']);break;case'medium-mobile':makeSticky=(windowSize<=FLBuilderLayoutConfig.breakpoints['medium']);break;case'mobile':makeSticky=(windowSize<=FLBuilderLayoutConfig.breakpoints['small']);break;case'all':makeSticky=true;break;}
return makeSticky;},_doSticky:function(e){var winTop=Math.floor(this.win.scrollTop()),headerTop=Math.floor(this.header.data('original-top')),hasStickyClass=this.header.hasClass('fl-theme-builder-header-sticky'),hasScrolledClass=this.header.hasClass('fl-theme-builder-header-scrolled'),beforeHeader=this.header.prevAll('.fl-builder-content'),bodyTopPadding=parseInt(jQuery('body').css('padding-top')),winBarHeight=$('#wpadminbar').length?$('#wpadminbar').outerHeight():0,headerHeight=0;if(isNaN(bodyTopPadding)){bodyTopPadding=0;}
if(this.hasAdminBar&&this.win.width()>600){winTop+=Math.floor(winBarHeight);}
if(winTop>headerTop){if(!hasStickyClass){if(e&&('scroll'===e.type||'smartscroll'===e.type)){this.header.addClass('fl-theme-builder-header-sticky');if(this.overlay&&beforeHeader.length){this.header.css('top',winBarHeight);}}
if(!this.overlay){this._adjustHeaderHeight();}}}
else if(hasStickyClass){this.header.removeClass('fl-theme-builder-header-sticky');this.header.removeAttr('style');this.header.parent().css('padding-top','0');}
this._adjustStickyHeaderWidth();if(winTop>headerTop){if(!hasScrolledClass){this.header.addClass('fl-theme-builder-header-scrolled');}}else if(hasScrolledClass){this.header.removeClass('fl-theme-builder-header-scrolled');}
this._flyoutMenuFix(e);},_initFlyoutMenuFix:function(e){var header=this.header,menuModule=header.closest('.fl-menu'),flyoutMenu=menuModule.find('.fl-menu-mobile-flyout'),isPushMenu=menuModule.hasClass('fl-menu-responsive-flyout-push')||menuModule.hasClass('fl-menu-responsive-flyout-push-opacity'),isOverlay=menuModule.hasClass('fl-menu-responsive-flyout-overlay'),flyoutPos=menuModule.hasClass('fl-flyout-right')?'right':'left',flyoutParent=header.parent().is('header')?header.parent().parent():header.parent();isFullWidth=this.win.width()===header.width(),flyoutLayout='',activePos=250,headerPos=0;if(!flyoutMenu.length){return;}
if(this.win.width()>header.parent().width()){headerPos=(this.win.width()-header.width())/ 2;}
if(isOverlay){activePos=headerPos;}
else if(isPushMenu){activePos=activePos+headerPos;}
flyoutMenu.data('activePos',activePos);if(isPushMenu){flyoutLayout='push-'+flyoutPos;}
else if(isOverlay){flyoutLayout='overlay-'+flyoutPos;}
if(isPushMenu&&!$('html').hasClass('fl-theme-builder-has-flyout-menu')){$('html').addClass('fl-theme-builder-has-flyout-menu');}
if(!flyoutParent.hasClass('fl-theme-builder-flyout-menu-'+flyoutLayout)){flyoutParent.addClass('fl-theme-builder-flyout-menu-'+flyoutLayout);}
if(!header.hasClass('fl-theme-builder-flyout-menu-overlay')&&isOverlay){header.addClass('fl-theme-builder-flyout-menu-overlay');}
if(!header.hasClass('fl-theme-builder-header-full-width')&&isFullWidth){header.addClass('fl-theme-builder-header-full-width');}
else if(!isFullWidth){header.removeClass('fl-theme-builder-header-full-width');}
menuModule.on('click','.fl-menu-mobile-toggle',$.proxy(function(event){if(menuModule.find('.fl-menu-mobile-toggle.fl-active').length){$('html').addClass('fl-theme-builder-flyout-menu-active');event.stopImmediatePropagation();}else{$('html').removeClass('fl-theme-builder-flyout-menu-active');}
this._flyoutMenuFix(event);},this));},_flyoutMenuFix:function(e){var header=this.header,menuModule=$(e.target).closest('.fl-menu'),flyoutMenu=menuModule.find('.fl-menu-mobile-flyout'),flyoutPos=menuModule.hasClass('fl-flyout-right')?'right':'left',menuOpacity=menuModule.find('.fl-menu-mobile-opacity'),isScroll='undefined'!==typeof e&&'scroll'===e.handleObj.type,activePos='undefined'!==typeof flyoutMenu.data('activePos')?flyoutMenu.data('activePos'):0,headerPos=(this.win.width()-header.width())/ 2,inactivePos=headerPos>0?activePos+4:254;if(!flyoutMenu.length){return;}
if(this.overlay){return;}
if($('.fl-theme-builder-flyout-menu-active').length){if(isScroll&&!flyoutMenu.hasClass('fl-menu-disable-transition')){flyoutMenu.addClass('fl-menu-disable-transition');}
if(header.hasClass('fl-theme-builder-header-sticky')){if(!isScroll){setTimeout($.proxy(function(){flyoutMenu.css(flyoutPos,'-'+activePos+'px');},this),1);}else{flyoutMenu.css(flyoutPos,'-'+activePos+'px');}}else{flyoutMenu.css(flyoutPos,'0px');}}else{if(flyoutMenu.hasClass('fl-menu-disable-transition')){flyoutMenu.removeClass('fl-menu-disable-transition');}
if(header.hasClass('fl-theme-builder-flyout-menu-overlay')&&headerPos>0&&headerPos<250){if(header.hasClass('fl-theme-builder-header-sticky')){inactivePos=headerPos+254;}else{inactivePos=254;}}
if(e&&e.type==='resize'){inactivePos=headerPos+254;}
flyoutMenu.css(flyoutPos,'-'+inactivePos+'px');}
if(e&&menuModule.is('.fl-menu-responsive-flyout-overlay')&&$.infinitescroll){e.stopImmediatePropagation();}
if(menuOpacity.length){if(header.hasClass('fl-theme-builder-header-sticky')){if('0px'===menuOpacity.css('left')){menuOpacity.css('left','-'+headerPos+'px');}}else{menuOpacity.css('left','');}}},_adjustStickyHeaderWidth:function(){if($('body').hasClass('fl-fixed-width')){var parentWidth=this.header.parent().width();if(this.win.width()>=992){this.header.css({'margin':'0 auto','max-width':parentWidth,});}else{this.header.css({'margin':'','max-width':'',});}}},_adjustHeaderHeight:function(){var beforeHeader=this.header.prevAll('.fl-builder-content'),beforeHeaderHeight=0,beforeHeaderFix=0,headerHeight=Math.floor(this.header.outerHeight()),bodyTopPadding=parseInt($('body').css('padding-top')),wpAdminBarHeight=0,totalHeaderHeight=0;if(isNaN(bodyTopPadding)){bodyTopPadding=0;}
if(beforeHeader.length){$.each(beforeHeader,function(){beforeHeaderHeight+=Math.floor($(this).outerHeight());});beforeHeaderFix=2;}
if(this.hasAdminBar&&this.win.width()<=600){wpAdminBarHeight=Math.floor($('#wpadminbar').outerHeight());}
totalHeaderHeight=Math.floor(beforeHeaderHeight+headerHeight);if(headerHeight>0){var headerParent=this.header.parent(),headerParentTopPadding=0;if($(headerParent).is('body')){headerParentTopPadding=Math.floor(headerHeight-wpAdminBarHeight);}else{headerParentTopPadding=Math.floor(headerHeight-bodyTopPadding-wpAdminBarHeight);}
$(headerParent).css('padding-top',(headerParentTopPadding-beforeHeaderFix)+'px');this.header.css({'-webkit-transform':'translate(0px, -'+totalHeaderHeight+'px)','-ms-transform':'translate(0px, -'+totalHeaderHeight+'px)','transform':'translate(0px, -'+totalHeaderHeight+'px)'});}},_initShrink:function(e){if(this.win.width()>=this.breakpointWidth){this.win.on('scroll.fl-theme-builder-header-shrink',$.proxy(this._doShrink,this));this._setImageMaxHeight();if(this.win.scrollTop()>0){this._doShrink();}}else{this.header.parent().css('padding-top','0');this.win.off('scroll.fl-theme-builder-header-shrink');this._removeShrink();this._removeImageMaxHeight();}},_doShrink:function(e){var winTop=this.win.scrollTop(),headerTop=this.header.data('original-top'),headerHeight=this.header.data('original-height'),shrinkImageHeight=this.header.data('shrink-image-height'),windowSize=this.win.width(),makeSticky=this._makeWindowSticky(windowSize),hasClass=this.header.hasClass('fl-theme-builder-header-shrink');if(this.hasAdminBar){winTop+=32;}
if(makeSticky&&(winTop>headerTop+headerHeight)){if(!hasClass){this.header.addClass('fl-theme-builder-header-shrink');this.header.find('img').each(function(i){var image=$(this),maxMegaMenu=image.closest('.max-mega-menu').length,imageInLightbox=image.closest('.fl-button-lightbox-content').length,imageInNavMenu=image.closest('li.menu-item').length;if(!(imageInLightbox||imageInNavMenu||maxMegaMenu)){image.css('max-height',shrinkImageHeight);}});this.header.find('.fl-row-content-wrap').each(function(){var row=$(this);if(parseInt(row.css('padding-bottom'))>5){row.addClass('fl-theme-builder-header-shrink-row-bottom');}
if(parseInt(row.css('padding-top'))>5){row.addClass('fl-theme-builder-header-shrink-row-top');}});this.header.find('.fl-module').each(function(){var module=$(this).find('.fl-module-content').length?$(this).find('.fl-module-content'):$(this);if(parseInt(module.css('margin-bottom'))>5){module.addClass('fl-theme-builder-header-shrink-module-bottom');}
if(parseInt(module.css('margin-top'))>5){module.addClass('fl-theme-builder-header-shrink-module-top');}});}}else if(hasClass){this.header.find('img').css('max-height','');this._removeShrink();}
if('undefined'===typeof(e)&&$('body').hasClass('fl-fixed-width')){if(!this.overlay){this._adjustHeaderHeight();}}},_removeShrink:function(){var rows=this.header.find('.fl-row-content-wrap'),modules=this.header.find('.fl-module, .fl-module-content');rows.removeClass('fl-theme-builder-header-shrink-row-bottom');rows.removeClass('fl-theme-builder-header-shrink-row-top');modules.removeClass('fl-theme-builder-header-shrink-module-bottom');modules.removeClass('fl-theme-builder-header-shrink-module-top');this.header.removeClass('fl-theme-builder-header-shrink');},_setImageMaxHeight:function(){var head=$('head'),stylesId='fl-header-styles-'+this.header.data('post-id'),styles='',images=this.header.find('.fl-module img');if($('#'+stylesId).length){return;}
images.each(function(i){var image=$(this),height=image.height(),node=image.closest('.fl-module').data('node'),className='fl-node-'+node+'-img-'+i,maxMegaMenu=image.closest('.max-mega-menu').length,imageInLightbox=image.closest('.fl-button-lightbox-content').length,imageInNavMenu=image.closest('li.menu-item').length;if(!(imageInLightbox||imageInNavMenu||maxMegaMenu)){image.addClass(className);styles+='.'+className+' { max-height: '+(height?height:image[0].height)+'px }';}});if(''!==styles){head.append('<style id="'+stylesId+'">'+styles+'</style>');}},_removeImageMaxHeight:function(){$('#fl-header-styles-'+this.header.data('post-id')).remove();},};$(function(){FLThemeBuilderHeaderLayout.init();});})(jQuery);(function($){if($('.fl-node-5c3cc5d597129 .pp-photo-rollover').length>0){$('body').on('mouseenter.pp-rollover','.fl-node-5c3cc5d597129 .pp-photo-rollover .pp-photo-content',function(){$(this).addClass('is-hover');}).on('mouseleave.pp-rollover','.fl-node-5c3cc5d597129 .pp-photo-rollover .pp-photo-content',function(){$(this).removeClass('is-hover');});}})(jQuery);(function($){if($('.fl-node-5ea7e612518d3 .pp-photo-rollover').length>0){$('body').on('mouseenter.pp-rollover','.fl-node-5ea7e612518d3 .pp-photo-rollover .pp-photo-content',function(){$(this).addClass('is-hover');}).on('mouseleave.pp-rollover','.fl-node-5ea7e612518d3 .pp-photo-rollover .pp-photo-content',function(){$(this).removeClass('is-hover');});}})(jQuery);jQuery(function($){$(function(){$('.fl-node-5cbf382b5af54 .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-5d010efc50d29 .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});jQuery(function($){$(function(){$('.fl-node-5d0109e9bde58 .fl-photo-img').on('mouseenter',function(e){$(this).data('title',$(this).attr('title')).removeAttr('title');}).on('mouseleave',function(e){$(this).attr('title',$(this).data('title')).data('title',null);});});window._fl_string_to_slug_regex='a-zA-Z0-9';});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(f){"use strict";function u(e){return"function"==typeof e}var i,r,v={interval:100,sensitivity:6,timeout:0},s=0,a=function(e){i=e.pageX,r=e.pageY},p=function(e,t,n,o){if(Math.sqrt((n.pX-i)*(n.pX-i)+(n.pY-r)*(n.pY-r))<o.sensitivity)return t.off(n.event,a),delete n.timeoutId,n.isActive=!0,e.pageX=i,e.pageY=r,delete n.pX,delete n.pY,o.over.apply(t[0],[e]);n.pX=i,n.pY=r,n.timeoutId=setTimeout(function(){p(e,t,n,o)},o.interval)};f.fn.hoverIntent=function(e,t,n){function o(e){var u=f.extend({},e),r=f(this),v=((t=r.data("hoverIntent"))||r.data("hoverIntent",t={}),t[i]),t=(v||(t[i]=v={id:i}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId)),v.event="mousemove.hoverIntent.hoverIntent"+i);"mouseenter"===e.type?v.isActive||(v.pX=u.pageX,v.pY=u.pageY,r.off(t,a).on(t,a),v.timeoutId=setTimeout(function(){p(u,r,v,d)},d.interval)):v.isActive&&(r.off(t,a),v.timeoutId=setTimeout(function(){var e,t,n,o,i;e=u,t=r,n=v,o=d.out,(i=t.data("hoverIntent"))&&delete i[n.id],o.apply(t[0],[e])},d.timeout))}var i=s++,d=f.extend({},v);f.isPlainObject(e)?(d=f.extend(d,e),u(d.out)||(d.out=d.over)):d=u(t)?f.extend(d,{over:e,out:t,selector:n}):f.extend(d,{over:e,out:e,selector:t});return this.on({"mouseenter.hoverIntent":o,"mouseleave.hoverIntent":o},d.selector)}});
(function($){
"use strict";
let instanceCounter=0;
$.maxmegamenu=function(menu, options){
const plugin=this;
const $menu=$(menu);
const $wrap=$menu.parent();
const $toggle_bar=$menu.siblings(".mega-menu-toggle");
const menuId=$menu.attr("id");
const instanceId=menuId + '-' + (++instanceCounter);
const docEventNamespace='.megamenu-' + instanceId;
const items_with_submenus=$([
"li.mega-menu-megamenu.mega-menu-item-has-children",
"li.mega-menu-flyout.mega-menu-item-has-children",
"li.mega-menu-tabbed > ul.mega-sub-menu > li.mega-menu-item-has-children",
"li.mega-menu-flyout li.mega-menu-item-has-children"
].join(","), $menu);
const collapse_children_parents=$("li.mega-menu-megamenu li.mega-menu-item-has-children.mega-collapse-children > a.mega-menu-link", $menu);
const focusable_selector="a.mega-menu-link, button.mega-menu-link, .mega-search span[role=button]";
const tab_key="Tab";
const escape_key="Escape";
const enter_key="Enter";
const space_key=" ";
const left_arrow_key="ArrowLeft";
const up_arrow_key="ArrowUp";
const right_arrow_key="ArrowRight";
const down_arrow_key="ArrowDown";
const defaults={
event:                $menu.attr("data-event"),
effect:               $menu.attr("data-effect"),
effect_speed:         parseInt($menu.attr("data-effect-speed")),
effect_mobile:        $menu.attr("data-effect-mobile"),
effect_speed_mobile:  parseInt($menu.attr("data-effect-speed-mobile")),
panel_width:          $menu.attr("data-panel-width"),
panel_inner_width:    $menu.attr("data-panel-inner-width"),
mobile_force_width:   $menu.attr("data-mobile-force-width"),
mobile_overlay:       $menu.attr("data-mobile-overlay"),
mobile_state:         $menu.attr("data-mobile-state"),
mobile_direction:     $menu.attr("data-mobile-direction"),
second_click:         $menu.attr("data-second-click"),
vertical_behaviour:   $menu.attr("data-vertical-behaviour"),
document_click:       $menu.attr("data-document-click"),
breakpoint:           $menu.attr("data-breakpoint"),
unbind_events:        $menu.attr("data-unbind"),
hover_intent_timeout: $menu.attr("data-hover-intent-timeout") ?? 300,
hover_intent_interval: $menu.attr("data-hover-intent-interval") ?? 100
};
plugin.settings={};
let html_body_class_timeout;
plugin.addAnimatingClass=function(element){
if(plugin.settings.effect==="disabled"){
return;
}
$(".mega-animating", $wrap).removeClass("mega-animating");
const timeout=plugin.settings.effect_speed + parseInt(plugin.settings.hover_intent_timeout, 10);
element.addClass("mega-animating");
setTimeout(function(){
element.removeClass("mega-animating");
}, timeout);
};
plugin.hideAllPanels=function(){
$(".mega-toggle-on > a.mega-menu-link", $menu).each(function(){
plugin.hidePanel($(this), false);
});
};
plugin.expandMobileSubMenus=function(){
if(plugin.settings.mobile_direction!=='vertical'){
return;
}
$(".mega-menu-item-has-children.mega-expand-on-mobile > a.mega-menu-link", $menu).each(function(){
plugin.showPanel($(this), true);
});
if(plugin.settings.mobile_state==='expand_all'){
$(".mega-menu-item-has-children:not(.mega-toggle-on) > a.mega-menu-link", $menu).each(function(){
plugin.showPanel($(this), true);
});
}
if(plugin.settings.mobile_state==='expand_active'){
const activeItemSelectors=[
"li.mega-current-menu-ancestor.mega-menu-item-has-children > a.mega-menu-link",
"li.mega-current-menu-item.mega-menu-item-has-children > a.mega-menu-link",
"li.mega-current-menu-parent.mega-menu-item-has-children > a.mega-menu-link",
"li.mega-current_page_ancestor.mega-menu-item-has-children > a.mega-menu-link",
"li.mega-current_page_item.mega-menu-item-has-children > a.mega-menu-link"
];
$menu.find(activeItemSelectors.join(', ')).each(function(){
plugin.showPanel($(this), true);
});
}};
plugin.hideSiblingPanels=function(anchor, immediate){
anchor.parent().parent().find(".mega-toggle-on").children("a.mega-menu-link").each(function(){
plugin.hidePanel($(this), immediate);
});
};
plugin.isDesktopView=function(){
const width=Math.max(document.documentElement.clientWidth||0, window.innerWidth||0);
return width > plugin.settings.breakpoint;
};
plugin.isMobileView=function(){
return !plugin.isDesktopView();
};
plugin.isHorizontalMobileSubmenuMode=function(){
return plugin.isMobileView()&&plugin.isMobileOffCanvas()&&plugin.settings.mobile_direction==="horizontal";
};
const getBackLink=function($submenu){
return $submenu.find("> li.mega-mobile-back:visible > button.mega-mobile-back-link").first();
};
const getDeepestOpenPanel=function(){
return $("li.mega-toggle-on:not(.mega-collapse-children) > ul.mega-sub-menu", $menu).last();
};
plugin.getFocusableItemsInSubmenu=function($submenu){
return $submenu
.find(focusable_selector)
.not(".mega-mobile-back-link")
.filter(function(){
return $(this).is(":visible")&&window.getComputedStyle(this).visibility!=='hidden';
});
};
plugin.focusFirstItemInOpenedSubmenu=function($item){
if(! plugin.isHorizontalMobileSubmenuMode()||! $wrap.hasClass("mega-keyboard-navigation")){
return;
}
const $submenu=$item.children("ul.mega-sub-menu");
if(!$submenu.length){
return;
}
const $firstFocusable=$submenu
.find(focusable_selector)
.not(".mega-mobile-back-link")
.filter(":visible")
.first();
if($firstFocusable.length){
$firstFocusable.trigger("focus");
}else{
getBackLink($submenu).trigger("focus");
}};
plugin.deferFocusFirstItemInOpenedSubmenu=function($item){
const delay=Math.min(120, parseInt(plugin.settings.effect_speed_mobile, 10)||0);
setTimeout(function(){
plugin.focusFirstItemInOpenedSubmenu($item);
setTimeout(function(){
const focusedInSubmenu=$item.find("ul.mega-sub-menu").has(document.activeElement).length!==0;
if(!focusedInSubmenu){
plugin.focusFirstItemInOpenedSubmenu($item);
}}, 40);
}, delay);
};
const resolveAnchor=function(anchor){
if(typeof anchor==='number'||(typeof anchor==='string'&&anchor.trim()!==''&&!isNaN(anchor)) ){
return $("li.mega-menu-item-" + anchor, $menu).find("a.mega-menu-link").first();
}
if(anchor.is("li.mega-menu-item")){
return anchor.find("a.mega-menu-link").first();
}
return anchor;
};
plugin.showPanel=function(anchor, immediate){
anchor=resolveAnchor(anchor);
const $item=anchor.parent();
const isDesktop=plugin.isDesktopView();
const isMobile = !isDesktop;
$item.triggerHandler("before_open_panel");
$item.find("[aria-expanded]").first().attr("aria-expanded", "true");
$(".mega-animating", $wrap).removeClass("mega-animating");
if(isMobile&&$item.hasClass("mega-hide-sub-menu-on-mobile")){
return;
}
if(isDesktop&&($menu.hasClass("mega-menu-horizontal")||$menu.hasClass("mega-menu-vertical"))&&!$item.hasClass("mega-collapse-children")){
plugin.hideSiblingPanels(anchor, true);
}
if((isMobile&&$wrap.hasClass("mega-keyboard-navigation"))||plugin.settings.vertical_behaviour==="accordion"){
plugin.hideSiblingPanels(anchor, false);
}
plugin.calculateDynamicSubmenuWidths(anchor);
if(plugin.shouldUseSlideAnimation(anchor, immediate)){
const speed=isMobile ? plugin.settings.effect_speed_mobile:plugin.settings.effect_speed;
anchor.siblings(".mega-sub-menu").css("display", "none").animate({"height":"show", "paddingTop":"show", "paddingBottom":"show", "minHeight":"show"}, speed, function(){
$(this).css("display", "");
});
}
$item.addClass("mega-toggle-on").triggerHandler("open_panel");
plugin.deferFocusFirstItemInOpenedSubmenu($item);
};
plugin.shouldUseSlideAnimation=function(anchor, immediate){
if(immediate===true){
return false;
}
if(anchor.parent().hasClass("mega-collapse-children")){
return true;
}
const isDesktop=plugin.isDesktopView();
if(isDesktop&&plugin.settings.effect==="slide"){
return true;
}
if(!isDesktop){
if(plugin.settings.effect_mobile==="slide"){
return true;
}
if(plugin.isMobileOffCanvas()){
return plugin.settings.mobile_direction!=="horizontal";
}}
return false;
};
plugin.hidePanel=function(anchor, immediate){
anchor=resolveAnchor(anchor);
const $item=anchor.parent();
const $submenu=anchor.siblings(".mega-sub-menu");
const isMobile=plugin.isMobileView();
$item.triggerHandler("before_close_panel");
$item.find("[aria-expanded]").first().attr("aria-expanded", "false");
if(plugin.shouldUseSlideAnimation(anchor)){
const speed=isMobile ? plugin.settings.effect_speed_mobile:plugin.settings.effect_speed;
$submenu.animate({"height":"hide", "paddingTop":"hide", "paddingBottom":"hide", "minHeight":"hide"}, speed, function(){
$submenu.css("display", "");
$item.removeClass("mega-toggle-on").triggerHandler("close_panel");
});
return;
}
if(immediate){
$submenu.css("display", "none").delay(plugin.settings.effect_speed).queue(function(){
$(this).css("display", "").dequeue();
});
}
$submenu.find(".widget_media_video video").each(function(){
if(this.player){
this.player.pause();
}});
$item.removeClass("mega-toggle-on").triggerHandler("close_panel");
plugin.addAnimatingClass($item);
};
const resolveWidthEl=function(val){
return val==='$menu' ? $menu:val==='$wrap' ? $wrap:$(val);
};
plugin.calculateDynamicSubmenuWidths=function(anchor){
const $item=anchor.parent();
const $submenu=anchor.siblings(".mega-sub-menu");
const isDesktop=plugin.isDesktopView();
const isTopLevelMegamenu=$item.hasClass("mega-menu-megamenu")&&$item.parent().hasClass("max-mega-menu");
if(isTopLevelMegamenu&&plugin.settings.panel_width){
if(isDesktop){
const submenu_offset=$menu.offset();
if(plugin.settings.panel_width==='100vw'){
const target_offset=$('body').offset();
$submenu.css({
left: (target_offset.left - submenu_offset.left) + "px"
});
}else{
const $panel_width_el=resolveWidthEl(plugin.settings.panel_width);
if($panel_width_el.length > 0){
$submenu.css({
width: $panel_width_el.outerWidth(),
left: ($panel_width_el.offset().left - submenu_offset.left) + "px"
});
}}
}else{
$submenu.css({
width: "",
left: ""
});
}}
if(isTopLevelMegamenu&&plugin.settings.panel_inner_width){
const $panel_inner_width_el=resolveWidthEl(plugin.settings.panel_inner_width);
if($panel_inner_width_el.length > 0){
const target_width=parseInt($panel_inner_width_el.width(), 10);
$submenu.css({
"paddingLeft": "",
"paddingRight": ""
});
const submenu_width=parseInt($submenu.innerWidth(), 10);
if(isDesktop&&target_width > 0&&target_width < submenu_width){
$submenu.css({
"paddingLeft": (submenu_width - target_width) / 2 + "px",
"paddingRight": (submenu_width - target_width) / 2 + "px"
});
}}
}};
const recalculateSubmenuWidths=function(){
plugin.calculateDynamicSubmenuWidths($("> li.mega-menu-megamenu > a.mega-menu-link", $menu));
};
plugin.bindClickEvents=function(){
plugin.unbindClickEvents();
let dragging=false;
$(document).on({
["touchmove" + docEventNamespace]: function(){ dragging=true; },
["touchstart" + docEventNamespace]: function(){ dragging=false; }});
$(document).on("click" + docEventNamespace + " touchend" + docEventNamespace, function(e){
if(!dragging&&plugin.settings.document_click==="collapse"&&! $(e.target).closest(".mega-menu-wrap").length){
plugin.hideAllPanels();
plugin.hideMobileMenu();
}
dragging=false;
});
collapse_children_parents.off("click.megamenu touchend.megamenu");
const clickable_parents=$("> a.mega-menu-link", items_with_submenus).add(collapse_children_parents);
clickable_parents.on("touchend.megamenu", function(e){
if(plugin.settings.event==="hover_intent"){
plugin.unbindHoverIntentEvents();
}
if(plugin.settings.event==="hover"){
plugin.unbindHoverEvents();
}});
clickable_parents.on("click.megamenu", function(e){
if($(e.target).hasClass('mega-indicator')){
return;
}
if(plugin.isDesktopView()&&$(this).parent().hasClass("mega-toggle-on")&&$(this).closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed")){
if(plugin.settings.second_click==="go"){
return;
}else{
e.preventDefault();
return;
}}
if(dragging){
return;
}
if(plugin.isMobileView()&&$(this).parent().hasClass("mega-hide-sub-menu-on-mobile")){
return;
}
if((plugin.settings.second_click==="go"||$(this).parent().hasClass("mega-click-click-go"))&&$(this).attr("href")!==undefined){
if(!$(this).parent().hasClass("mega-toggle-on")){
e.preventDefault();
plugin.showPanel($(this));
}}else{
e.preventDefault();
if($(this).parent().hasClass("mega-toggle-on")){
plugin.hidePanel($(this), false);
}else{
plugin.showPanel($(this));
}}
});
if(plugin.settings.second_click==="disabled"){
clickable_parents.off("click.megamenu");
}
$(".mega-close-after-click:not(.mega-menu-item-has-children) > a.mega-menu-link", $menu).on("click.megamenu", function(){
plugin.hideAllPanels();
plugin.hideMobileMenu();
});
$("button.mega-close", $wrap).on("click.megamenu", function(e){
plugin.hideMobileMenu();
});
};
plugin.bindHoverEvents=function(){
items_with_submenus.on({
"mouseenter.megamenu":function(){
plugin.unbindClickEvents();
if(! $(this).hasClass("mega-toggle-on")){
plugin.showPanel($(this).children("a.mega-menu-link"));
}},
"mouseleave.megamenu":function(){
if($(this).hasClass("mega-toggle-on")&&! $(this).hasClass("mega-disable-collapse")&&! $(this).parent().parent().hasClass("mega-menu-tabbed")){
plugin.hidePanel($(this).children("a.mega-menu-link"), false);
}}
});
};
plugin.bindHoverIntentEvents=function(){
items_with_submenus.hoverIntent({
over: function (){
plugin.unbindClickEvents();
if(! $(this).hasClass("mega-toggle-on")){
plugin.showPanel($(this).children("a.mega-menu-link"));
}},
out: function (){
if($(this).hasClass("mega-toggle-on")&&! $(this).hasClass("mega-disable-collapse")&&! $(this).parent().parent().hasClass("mega-menu-tabbed")){
plugin.hidePanel($(this).children("a.mega-menu-link"), false);
}},
timeout: plugin.settings.hover_intent_timeout,
interval: plugin.settings.hover_intent_interval
});
};
plugin.isMobileOffCanvas=function(){
return plugin.settings.effect_mobile==='slide_left'||plugin.settings.effect_mobile==='slide_right';
};
plugin.shouldGoToNextTopLevelItem=function(key){
return(( key===right_arrow_key&&plugin.isDesktopView())||(key===down_arrow_key&&plugin.isMobileView()) )&&$menu.hasClass("mega-menu-horizontal");
};
plugin.shouldGoToPreviousTopLevelItem=function(key){
return(( key===left_arrow_key&&plugin.isDesktopView())||(key===up_arrow_key&&plugin.isMobileView()) )&&$menu.hasClass("mega-menu-horizontal");
};
plugin.bindKeyboardEvents=function(){
const $firstFocusable=$menu.find("a.mega-menu-link").first();
const $lastFocusable=$wrap.find("button.mega-close").first();
const focusableLinkSelector=focusable_selector.split(", ").map(s=> "> " + s).join(", ");
const togglePanelForAnchor=function(anchor){
if(!anchor||!anchor.length) return;
if(anchor.parent().hasClass("mega-toggle-on")&&!anchor.closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed")){
plugin.hidePanel(anchor);
}else{
plugin.showPanel(anchor);
}};
const closeNearestOpenPanelAndRefocus=function(){
const $focused=$menu[0].contains(document.activeElement) ? $(document.activeElement):$();
const $parentAnchor=$("> a.mega-menu-link", $focused.closest(".mega-toggle-on"));
if($parentAnchor.length){
plugin.hidePanel($parentAnchor);
$parentAnchor.trigger("focus");
return true;
}
return false;
};
const handleTabKey=function(e, $active, isOffCanvasHorizontal, isMobileOffCanvas){
if($active.is($lastFocusable)&&isMobileOffCanvas){
if(!e.shiftKey){
e.preventDefault();
const $backLink=isOffCanvasHorizontal ? getBackLink(getDeepestOpenPanel()):$();
($backLink.length ? $backLink:$firstFocusable).trigger('focus');
}else if(isOffCanvasHorizontal){
const $last=plugin.getFocusableItemsInSubmenu(getDeepestOpenPanel()).last();
if($last.length){ e.preventDefault(); $last.trigger('focus'); }}
return;
}
if(isMobileOffCanvas&&e.shiftKey&&$active.is($firstFocusable)){
e.preventDefault();
$lastFocusable.trigger('focus');
return;
}
if(isOffCanvasHorizontal){
const $deepestPanel=getDeepestOpenPanel();
if($deepestPanel.length&&!$deepestPanel.has($active).length){
e.preventDefault();
if(!e.shiftKey){
const $backLink=getBackLink($deepestPanel);
($backLink.length ? $backLink:plugin.getFocusableItemsInSubmenu($deepestPanel).first()).trigger('focus');
}else{
$lastFocusable.trigger('focus');
}
return;
}
const $submenu=$active.parentsUntil($menu, "ul.mega-sub-menu")
.filter(function(){
const $p=$(this).parent();
return $p.hasClass("mega-toggle-on")&&!$p.hasClass("mega-collapse-children");
})
.first();
if($submenu.length){
if(!e.shiftKey){
const $items=plugin.getFocusableItemsInSubmenu($submenu);
if($items.length&&$active.is($items.last())){
e.preventDefault();
$lastFocusable.trigger('focus');
}}else if($active.hasClass("mega-mobile-back-link")){
e.preventDefault();
$lastFocusable.trigger('focus');
}else{
const $items=plugin.getFocusableItemsInSubmenu($submenu);
const $backLink=getBackLink($submenu);
if($items.length&&$backLink.length&&$active.is($items.first())){
e.preventDefault();
$backLink.trigger('focus');
}}
}}
};
const handleToggleBarTrigger=function(e){
e.preventDefault();
if($toggle_bar.hasClass("mega-menu-open")){
plugin.hideMobileMenu();
}else{
plugin.showMobileMenu();
html_body_class_timeout=setTimeout(function(){
$menu.find("a.mega-menu-link").first().trigger('focus');
}, plugin.settings.effect_speed_mobile);
}};
const handleSpaceKey=function(e, $active){
if($active.is("a.mega-menu-link")){
e.preventDefault();
if($active.parent().is(items_with_submenus)) togglePanelForAnchor($active);
}else if($active.is(".mega-indicator")){
e.preventDefault();
togglePanelForAnchor($active.parent());
}};
const handleEscapeKey=function(){
const submenu_open=$(".mega-toggle-on", $menu).length!==0;
if(submenu_open&&closeNearestOpenPanelAndRefocus()) return;
if(plugin.isMobileView()&&!submenu_open) plugin.hideMobileMenu();
};
const handleEnterKey=function(e, $active){
if($active.is(".mega-indicator")){
togglePanelForAnchor($active.parent());
return;
}
if($active.parent().is(items_with_submenus)){
if(plugin.isMobileView()&&$active.parent().is(".mega-hide-sub-menu-on-mobile")) return;
if(!$active.is("[href]")){ togglePanelForAnchor($active); return; }
if($active.parent().hasClass("mega-toggle-on")&&!$active.closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed")) return;
e.preventDefault();
plugin.showPanel($active);
}};
const handleArrowUpDown=function(e, goingDown){
e.preventDefault();
const $activeSubmenu=getDeepestOpenPanel();
if($activeSubmenu.length){
const $backLink=getBackLink($activeSubmenu);
const $items=plugin.getFocusableItemsInSubmenu($activeSubmenu);
const focusOrder=[];
if($backLink.length) focusOrder.push($backLink[0]);
$items.each(function(){ focusOrder.push(this); });
if($lastFocusable.length) focusOrder.push($lastFocusable[0]);
const idx=focusOrder.indexOf(document.activeElement);
const nextIdx=(idx < 0)
? (goingDown ? 0:focusOrder.length - 1)
: (idx + (goingDown ? 1:-1) + focusOrder.length) % focusOrder.length;
$(focusOrder[nextIdx]).trigger('focus');
}else{
const $topLinks=$menu.children("li.mega-menu-item:visible").find(focusableLinkSelector);
const idx=$topLinks.index(document.activeElement);
if(idx >=0){
const nextIdx=(idx + (goingDown ? 1:-1) + $topLinks.length) % $topLinks.length;
$topLinks.eq(nextIdx).trigger('focus');
}}
};
const handleArrowLeftRight=function(e, goingToNext){
e.preventDefault();
const $topLinks=$menu.children("li.mega-menu-item:visible").find(focusableLinkSelector);
const $topLink=$(document.activeElement)
.closest($menu.children("li.mega-menu-item"))
.find(focusableLinkSelector).first();
const idx=$topLinks.index($topLink);
const nextIdx=goingToNext ? idx + 1:idx - 1;
if(idx >=0&&nextIdx >=0){
plugin.hideAllPanels();
$topLinks.eq(nextIdx).trigger('focus');
}};
$wrap.on("keyup.megamenu", ".max-mega-menu, .mega-menu-toggle", function(e){
if(e.key!==tab_key) return;
$wrap.addClass("mega-keyboard-navigation");
plugin.bindClickEvents();
const $target=$(e.target);
if(plugin.isDesktopView()&&$target.is(".mega-menu-link")&&$target.parent().parent().hasClass('max-mega-menu')){
plugin.hideAllPanels();
}});
$wrap.on("keydown.megamenu", "a.mega-menu-link, button.mega-menu-link, button.mega-mobile-back-link, .mega-indicator, .mega-menu-toggle-block, .mega-menu-toggle-animated-block button, button.mega-close", function(e){
if(!$wrap.hasClass("mega-keyboard-navigation")) return;
const key=e.key;
const $active=$(e.target);
const isOffCanvasHorizontal=plugin.isHorizontalMobileSubmenuMode();
const isMobileOffCanvas=plugin.isMobileView()&&plugin.isMobileOffCanvas();
switch (key){
case tab_key:
handleTabKey(e, $active, isOffCanvasHorizontal, isMobileOffCanvas);
break;
case space_key:
if($active.is(".mega-menu-toggle-block button, .mega-menu-toggle-animated-block button")){
handleToggleBarTrigger(e);
}else{
handleSpaceKey(e, $active);
}
break;
case enter_key:
if($active.is(".mega-menu-toggle-block button, .mega-menu-toggle-animated-block button")){
handleToggleBarTrigger(e);
}else{
handleEnterKey(e, $active);
}
break;
case escape_key:
handleEscapeKey();
break;
case up_arrow_key:
case down_arrow_key:
if(isOffCanvasHorizontal){
handleArrowUpDown(e, key===down_arrow_key);
}
break;
case left_arrow_key:
case right_arrow_key:
const goingToNext=plugin.shouldGoToNextTopLevelItem(key);
const goingToPrev=plugin.shouldGoToPreviousTopLevelItem(key);
if(goingToNext||goingToPrev){
handleArrowLeftRight(e, goingToNext);
}
break;
}});
$wrap.on("focusout.megamenu", function(e){
if($wrap.hasClass("mega-keyboard-navigation")){
setTimeout(function(){
if(!$wrap[0].contains(document.activeElement)){
$wrap.removeClass("mega-keyboard-navigation");
plugin.hideAllPanels();
plugin.hideMobileMenu();
}}, 10);
}});
};
plugin.unbindAllEvents=function(){
$(document).off(docEventNamespace);
$("ul.mega-sub-menu, li.mega-menu-item, li.mega-menu-row, li.mega-menu-column, a.mega-menu-link, .mega-indicator", $menu).off();
};
plugin.unbindClickEvents=function(){
if($wrap.hasClass('mega-keyboard-navigation')){
return;
}
$(document).off(docEventNamespace);
$("> a.mega-menu-link", items_with_submenus).not(collapse_children_parents).off("click.megamenu touchend.megamenu");
};
plugin.unbindHoverEvents=function(){
items_with_submenus.off("mouseenter.megamenu mouseleave.megamenu");
};
plugin.unbindHoverIntentEvents=function(){
items_with_submenus.off("mouseenter mouseleave").removeProp("hoverIntent_t").removeProp("hoverIntent_s");
};
plugin.unbindKeyboardEvents=function(){
$wrap.off("keyup.megamenu keydown.megamenu focusout.megamenu");
};
plugin.unbindMegaMenuEvents=function(){
if(plugin.settings.event==="hover_intent"){
plugin.unbindHoverIntentEvents();
}
if(plugin.settings.event==="hover"){
plugin.unbindHoverEvents();
}
plugin.unbindClickEvents();
plugin.unbindKeyboardEvents();
};
plugin.bindMegaMenuEvents=function(){
plugin.unbindMegaMenuEvents();
const isDesktop=plugin.isDesktopView();
if(isDesktop&&plugin.settings.event==="hover_intent"){
plugin.bindHoverIntentEvents();
}
if(isDesktop&&plugin.settings.event==="hover"){
plugin.bindHoverEvents();
}
plugin.bindClickEvents();
plugin.bindKeyboardEvents();
};
plugin.checkWidth=function(){
if(plugin.isMobileView()&&$menu.data("view")==="desktop"){
plugin.switchToMobile();
}
if(plugin.isDesktopView()&&$menu.data("view")==="mobile"){
plugin.switchToDesktop();
}
recalculateSubmenuWidths();
};
plugin.reverseRightAlignedItems=function(){
if(! $("body").hasClass("rtl")&&$menu.hasClass("mega-menu-horizontal")&&$menu.css("display")!=='flex'){
$menu.append($menu.children("li.mega-item-align-right").get().reverse());
}};
plugin.addClearClassesToMobileItems=function(){
$(".mega-menu-row", $menu).each(function(){
$("> .mega-sub-menu > .mega-menu-column:not(.mega-hide-on-mobile)", $(this)).filter(":even").addClass("mega-menu-clear");
});
};
plugin.initDesktop=function(){
$menu.data("view", "desktop");
plugin.bindMegaMenuEvents();
plugin.initIndicators();
$menu.trigger("mmm:switchToDesktop");
};
plugin.initMobile=function(){
plugin.switchToMobile();
};
plugin.switchToDesktop=function(){
$menu.data("view", "desktop");
plugin.bindMegaMenuEvents();
plugin.reverseRightAlignedItems();
plugin.hideAllPanels();
plugin.hideMobileMenu(true);
$menu.removeAttr('role');
$menu.removeAttr('aria-modal');
$menu.removeAttr('aria-hidden');
$menu.trigger("mmm:switchToDesktop");
};
plugin.switchToMobile=function(){
$menu.data("view", "mobile");
if(plugin.isMobileOffCanvas()&&$toggle_bar.is(":visible")){
$menu.attr('role', 'dialog');
$menu.attr('aria-modal', 'true');
$menu.attr('aria-hidden', 'true');
}
plugin.bindMegaMenuEvents();
plugin.initIndicators();
plugin.reverseRightAlignedItems();
plugin.addClearClassesToMobileItems();
plugin.hideAllPanels();
plugin.expandMobileSubMenus();
$menu.trigger("mmm:switchToMobile");
};
plugin.initToggleBar=function(){
$toggle_bar.on("click", function(e){
const isToggleTrigger=$(e.target).closest(".mega-menu-toggle-block, button.mega-toggle-animated, .mega-menu-toggle-custom-block", this).length;
if(isToggleTrigger){
e.preventDefault();
if($(this).hasClass("mega-menu-open")){
plugin.hideMobileMenu();
}else{
plugin.showMobileMenu();
}}else if(e.target===this&&plugin.isMobileOffCanvas()){
plugin.hideMobileMenu();
}});
};
plugin.initIndicators=function(){
$menu.off('click.megamenu', '.mega-indicator');
$menu.on('click.megamenu', '.mega-indicator', function(e){
e.preventDefault();
e.stopPropagation();
if($(this).closest(".mega-menu-item").hasClass("mega-toggle-on")){
if(! $(this).closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed")||plugin.isMobileView()){
plugin.hidePanel($(this).parent(), false);
}}else{
plugin.showPanel($(this).parent(), false);
}});
};
plugin.hideMobileMenu=function(force=false){
if(! $toggle_bar.is(":visible")&&! force){
return;
}
$menu.attr("aria-hidden", "true");
clearTimeout(html_body_class_timeout);
html_body_class_timeout=setTimeout(function(){
$("body").removeClass(menuId + "-mobile-open");
$("html").removeClass(menuId + "-off-canvas-open");
}, plugin.settings.effect_speed_mobile);
if($wrap.hasClass("mega-keyboard-navigation")){
$(".mega-menu-toggle-block button, button.mega-toggle-animated", $toggle_bar).first().trigger('focus');
}
$(".mega-toggle-label, .mega-toggle-animated", $toggle_bar).attr("aria-expanded", "false");
const resetMenuStyles=function(){
$menu.css({
width: "",
left: "",
display: ""
});
$toggle_bar.removeClass("mega-menu-open");
};
if(plugin.settings.effect_mobile==="slide"&&! force){
$menu.animate({"height":"hide"}, plugin.settings.effect_speed_mobile, resetMenuStyles);
}else{
resetMenuStyles();
}
$menu.triggerHandler("mmm:hideMobileMenu");
};
plugin.showMobileMenu=function(){
if(! $toggle_bar.is(":visible")){
return;
}
clearTimeout(html_body_class_timeout);
$("body").addClass(menuId + "-mobile-open");
plugin.expandMobileSubMenus();
if(plugin.isMobileOffCanvas()){
$("html").addClass(menuId + "-off-canvas-open");
}
if(plugin.settings.effect_mobile==="slide"){
$menu.animate({"height":"show"}, plugin.settings.effect_speed_mobile, function(){
$(this).css("display", "");
});
}
$(".mega-toggle-label, .mega-toggle-animated", $toggle_bar).attr("aria-expanded", "true");
$toggle_bar.addClass("mega-menu-open");
plugin.toggleBarForceWidth();
$menu.attr("aria-hidden", "false");
$menu.triggerHandler("mmm:showMobileMenu");
};
plugin.toggleBarForceWidth=function(){
const $force_width_el=$(plugin.settings.mobile_force_width);
if($force_width_el.length&&(plugin.settings.effect_mobile==="slide"||plugin.settings.effect_mobile==="disabled") ){
const submenu_offset=$toggle_bar.offset();
const target_offset=$force_width_el.offset();
$menu.css({
width: $force_width_el.outerWidth(),
left: (target_offset.left - submenu_offset.left) + "px"
});
}};
plugin.doConsoleChecks=function(){
if(plugin.settings.mobile_force_width!=="false"&&! $(plugin.settings.mobile_force_width).length&&(plugin.settings.effect_mobile==="slide"||plugin.settings.effect_mobile==="disabled") ){
console.warn('Max Mega Menu #' + $wrap.attr('id') + ': Mobile Force Width element (' + plugin.settings.mobile_force_width + ') not found');
}
const cssWidthRegex=/^((\d+(\.\d+)?(px|%|em|rem|vw|vh|ch|ex|cm|mm|in|pt|pc))|auto)$/i;
if(plugin.settings.panel_width!==undefined&&! cssWidthRegex.test(plugin.settings.panel_width)&&! resolveWidthEl(plugin.settings.panel_width).length){
console.warn('Max Mega Menu #' + $wrap.attr('id') + ': Panel Width (Outer) element (' + plugin.settings.panel_width + ') not found');
}
if(plugin.settings.panel_inner_width!==undefined&&! cssWidthRegex.test(plugin.settings.panel_inner_width)&&! resolveWidthEl(plugin.settings.panel_inner_width).length){
console.warn('Max Mega Menu #' + $wrap.attr('id') + ': Panel Width (Inner) element (' + plugin.settings.panel_inner_width + ') not found');
}};
plugin.init=function(){
$menu.triggerHandler("before_mega_menu_init");
plugin.settings=$.extend({}, defaults, options);
if(window.console){
plugin.doConsoleChecks();
}
$menu.removeClass("mega-no-js");
plugin.initToggleBar();
if(plugin.settings.unbind_events==="true"){
plugin.unbindAllEvents();
}
if(document.readyState==='complete'){
recalculateSubmenuWidths();
}else{
$(window).on("load", recalculateSubmenuWidths);
}
if(plugin.isDesktopView()){
plugin.initDesktop();
}else{
plugin.initMobile();
}
$(window).on("resize", function(){
plugin.checkWidth();
});
$menu.triggerHandler("after_mega_menu_init");
};
plugin.init();
};
$.fn.maxmegamenu=function(options){
return this.each(function(){
if(undefined===$(this).data("maxmegamenu")){
const plugin=new $.maxmegamenu(this, options);
$(this).data("maxmegamenu", plugin);
}});
};
$(function(){
$(".max-mega-menu").maxmegamenu();
});
}(jQuery));
(r=>{FLTheme={init:function(){this._bind()},_bind:function(){var a=this;r(".navbar-toggle").on("click",this.navbarToggleClick),0!=r(".fl-page-bar-nav ul.sub-menu").length&&(this._setupDropDowns(),this._enableTopNavDropDowns()),0!=r(".fl-page-nav ul.sub-menu").length&&(r(window).on("resize.fl-page-nav-sub-menu",r.throttle(500,this._enablePageNavDropDowns)),this._setupDropDowns(),this._enablePageNavDropDowns()),0!=r(".fl-page-nav ul.menu").length&&(r(".fl-page-nav ul.menu").find(".menu-item").on("click",'> a[href*="#"]:not([href="#"])',this._setupCurrentNavItem),this._setupCurrentNavItem()),0!=r(".fl-page-nav-search").length&&r(".fl-page-nav-search a.fa-search").on("click",this._toggleNavSearch),0!=r(".fl-nav-vertical").length&&(r(window).on("resize",r.throttle(500,this._navVertical)),this._navVertical()),0!=r(".fl-fixed-width.fl-nav-vertical-right").length&&(r(window).on("resize",r.throttle(500,this._updateVerticalRightPos)),this._updateVerticalRightPos()),0!=r(".fl-page-nav-centered-inline-logo").length&&(r(window).on("resize",r.throttle(500,this._centeredInlineLogo)),this._centeredInlineLogo()),0!=r("body.fl-nav-left").length&&(r(window).on("resize",r.throttle(500,this._navLeft)),this._navLeft()),0!=r("body.fl-shrink").length&&0==r("html.fl-builder-edit").length&&(r(window).on("resize",r.throttle(500,this._shrinkHeaderEnable)),this._shrinkHeaderInit(),this._shrinkHeaderEnable()),0!=r(".fl-page-header-fixed").length&&(r(window).on("resize.fl-page-header-fixed",r.throttle(500,this._enableFixedHeader)),this._enableFixedHeader()),0!=r("body.fl-fixed-header").length&&0==r("html.fl-builder-edit").length&&(r(window).on("resize",r.throttle(500,this._fixedHeader)),this._fixedHeader()),0!=r("body.fl-scroll-header").length&&0==r("html.fl-builder-edit").length&&(r(window).on("resize",r.throttle(500,this._scrollHeader)),this._scrollHeader()),0!=r(".fl-page-header-primary").find("li.mega-menu").length&&(r(window).on("resize",r.throttle(500,this._megaMenu)),this._megaMenu()),0!=r(".fl-page-header-fixed").length&&(r(window).on("scroll.fl-mega-menu-on-scroll",r.throttle(500,this._megaMenuOnScroll)),r(window).on("resize.fl-mega-menu-on-scroll",r.throttle(500,this._megaMenuOnScroll))),0!=r("html.fl-builder-edit").length&&this._fixedHeadersWhenBuilderActive(),0!=r("body.fl-nav-mobile-offcanvas").length&&0!=!r("html.fl-builder-edit").length&&(r(window).on("resize",r.throttle(500,this._setupMobileNavLayout)),this._setupMobileNavLayout(),this._toggleMobileNavLayout()),r("body").on("click",this.closeMenu),r(".fl-theme-menu > li:last-child").on("focusout",function(e){void 0!==r(e.relatedTarget)[0]&&"nav-link"===r(e.relatedTarget)[0].className||a.closeMenu(e)}),0!=r(".fl-full-width.fl-footer-effect").length&&(r(window).on("resize",r.throttle(500,this._footerEffect)),this._footerEffect()),0!=r("body.fl-scroll-to-top").length&&this._toTop(),void 0!==r("body").magnificPopup&&this._enableLightbox(),void 0===r.fn.fitVids||r("body").hasClass("fl-builder")||this._enableFitVids(),FLTheme._navBackiosFix(),this._initSmoothScroll()},_isMobile:function(){return"ontouchstart"in window||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||/Mobile|Android|Silk\/|Kindle|BlackBerry|Opera Mini|Opera Mobi|webOS/i.test(navigator.userAgent)},_initRetinaImages:function(){1<(window.devicePixelRatio||1)&&r("img[data-retina]").each(FLTheme._convertImageToRetina)},_convertImageToRetina:function(){var a=r(this),l=new Image,e=a.attr("src"),n=a.data("retina");if(void 0===(e=void 0===e?a.data("cfsrc"):e))return!1;var t=e.split(".").pop();""!=n&&(l.onload=function(){var e=l.width;l.height;"svg"==t&&(e=a.width(),a.height()),a.width(e),a.attr("src",n)},l.src=e)},_initMobileHeaderLogo:function(){this._enableMobileLogo(),r(window).on("resize",r.proxy(this._enableMobileLogo,this))},_enableMobileLogo:function(){var e,a=r(window),l=r(".fl-page-header-logo").find("img[data-mobile]"),n=null,t=null;0!==l.length&&r(l).each(function(){t=new Image,n=r(this),src=n.attr("src"),width=n.data("width"),height=n.data("height"),e=n.data("mobile"),mobileWidth=n.data("mobile-width"),mobileHeight=n.data("mobile-height"),n.attr("src",""),n.attr("data-src",src),a.width()<window.themeopts.mobile_breakpoint?""!=e&&(t.onload=function(){n.attr("src",e),n.attr("width",mobileWidth),n.attr("height",mobileHeight),n.css("width","")},t.src=src,n.show()):void 0!==n.data("src")&&(n.attr("src",n.data("src")),n.attr("width",width),n.attr("height",height),n.css("width",width))})},navbarToggleClick:function(e){var a,l=r("body").hasClass("fl-nav-mobile-offcanvas")?"flyout":"dropdown";"dropdown"==l?((a=r(e.target).closest(".fl-page-nav").find(".fl-page-nav-collapse")).toggleClass("collapse"),a.toggleClass("in")):"flyout"==l&&r(".fl-page").toggleClass("fl-nav-offcanvas-active"),e.stopPropagation()},closeMenu:function(e){var a=r("body").hasClass("fl-nav-mobile-offcanvas")?"flyout":"dropdown",l=r(".fl-page-nav-collapse").hasClass("in"),n=r(".fl-page").hasClass("fl-nav-offcanvas-active"),t=r(e.target).is(".mega-toggle-animated-inner, .mega-menu-toggle-animated-block, .mega-toggle-animated-box, .mega-toggle-blocks-right");void 0===e||void 0===e.target||t||("dropdown"==a&&l?r(".navbar-collapse.in").closest(".fl-page-nav").find(".navbar-toggle").trigger("click"):"flyout"==a&&n&&r(".fl-offcanvas-close").trigger("click"))},_setupDropDowns:function(){r("ul.sub-menu").each(function(){r(this).closest("li").find("a").first().attr("aria-haspopup","true")})},_enableTopNavDropDowns:function(){var e=r(".fl-page-bar-nav"),a=e.find(" > li"),e=e.find("> li").has("> ul.sub-menu").find(".fl-submenu-toggle-icon");!FLTheme._isMobile()||!1!==/iPhone|iPad/i.test(navigator.userAgent)?a.hover(FLTheme._navItemMouseover,FLTheme._navItemMouseout):(a.hover(function(){},FLTheme._navItemMouseout),e.on("click",FLTheme._navSubMenuToggleClick))},_navBackiosFix:function(){!1!==(ipad=null!==navigator.userAgent.match("iPhone|iPad")&&0<r(".menu-item-has-children").length)&&(window.onpageshow=function(e){e.persisted&&window.location.reload()})},_initSmoothScroll:function(){var e;"undefined"==typeof FLBuilderLayout||void 0!==window.themeopts.smooth&&"disabled"===window.themeopts.smooth||(e=(e=location.hash).replace(/(:|\!|\.|\[|\]|,|=|@|\/)/g,"\\$1"))&&r(e).length&&setTimeout(function(){window.scrollTo(0,0),FLBuilderLayout._scrollToElement(r(e))},1)},_enablePageNavDropDowns:function(){r(".fl-page-header").each(FLTheme._enablePageNavDropDown)},_enablePageNavDropDown:function(){var e=r(this).find(".fl-page-nav .fl-page-nav-collapse"),a=e.find("ul li"),l=e.find("li").has("> ul.sub-menu").find("> a"),n=(e.find("li").has("> ul.sub-menu").find(".fl-submenu-toggle-icon"),e.find("> ul > li").has("ul.sub-menu"));r(".fl-page-nav .navbar-toggle").is(":visible")?(a.off("mouseenter mouseleave"),(n=r("body").hasClass("fl-submenu-toggle")?e.find("> ul li").has("ul.sub-menu"):n).find("> a").off().on("click",FLTheme._navItemClickMobile),n.find(".fl-submenu-toggle-icon").off().on("click",FLTheme._navItemClickMobile),e.find(".menu").on("click",'.menu-item > a[href*="#"]',FLTheme._toggleForMobile),l.off("click",FLTheme._navSubMenuToggleClick)):(e.find("a").off("click",FLTheme._navItemClickMobile),e.find("a").off("click",FLTheme._toggleForMobile),e.find(".fl-submenu-toggle-icon").off("click",FLTheme._navItemClickMobile),e.removeClass("in").addClass("collapse"),a.removeClass("fl-mobile-sub-menu-open"),a.find("a").width(0).width("auto"),FLTheme._isMobile()?(a.hover(function(){},FLTheme._navItemMouseout),l.on("click",FLTheme._navSubMenuToggleClick)):(a.keydown(function(e){9===e.keyCode&&(el=r(this),(focused=el.find(":focus")).parent().is(":last-child")&&(sub=focused.parent().find("ul.sub-menu").first(),mega=focused.parent().parent().parent().parent().parent().hasClass("mega-menu"),mega_last=focused.parent().parent().parent().is(":last-child"),0<sub.length?sub.trigger("mouseenter"):mega&&!mega_last||el.trigger("mouseleave")),(parent=focused.closest("ul.sub-menu").parent()).hasClass("fl-sub-menu-open")||focused.trigger("mouseenter"))}),a.hover(FLTheme._navItemMouseover,FLTheme._navItemMouseout)))},_navItemClickMobile:function(e){var a,l=r(this).closest(".fl-page-nav-collapse"),n=r(this).closest("li"),t=r(this).attr("href"),i=n.find("ul.sub-menu"),o=r(e.target).hasClass("fl-submenu-toggle-icon"),s=null;t&&"#"!==t&&(a=t.split("#")[1],0<r("body").find("#"+a).length)&&n.hasClass("fl-mobile-sub-menu-open")&&((el=r(this).parent().closest("nav").find(".navbar-toggle")).trigger("click"),"undefined"!=typeof FLBuilderLayout)&&void 0===window.themeopts.smooth&&"disabled"!==window.themeopts.smooth&&setTimeout(function(){window.scrollTo(0,0),FLBuilderLayout._scrollToElement(r("#"+a))},1),("#"==t||o)&&n.hasClass("fl-mobile-sub-menu-open")?(e.preventDefault(),n.removeClass("fl-mobile-sub-menu-open"),i.hide()):n.hasClass("fl-mobile-sub-menu-open")||(e.preventDefault(),n.addClass("fl-mobile-sub-menu-open"),o&&0===r(".fl-submenu-toggle").length&&(s=i.find("li.menu-item-has-children")).addClass("fl-mobile-sub-menu-open"),i.fadeIn(200)),0!=r(".fl-nav-collapse-menu").length&&l.find("li.fl-mobile-sub-menu-open").not(r(this).parents(".fl-mobile-sub-menu-open")).not(s).removeClass("fl-mobile-sub-menu-open").find("ul.sub-menu").hide(),e.stopPropagation()},_setupCurrentNavItem:function(e){var a=r(".fl-page-nav .navbar-nav"),e=void 0!==e?r(e.target).prop("hash"):window.location.hash,l=(e=e.replace(/(:|\!|\.|\[|\]|,|=|@|\/)/g,"\\$1")).length?a.find("a[href*=\\"+e+"]:not([href=\\#])"):null,a=a.closest(".fl-page-nav").find(".fl-offcanvas-close");null!=l&&0<r("body").find(e).length&&(r(".current-menu-item").removeClass("current-menu-item"),l.parent().addClass("current-menu-item"),a)&&a.trigger("click")},_navItemMouseover:function(){var e,a,l,n,t,i,o;0===r(this).find("ul.sub-menu").length||(a=(e=r(this)).parent(),n=(l=e.find("ul.sub-menu")).width(),t=r(window).width(),(o=i=0)!==e.closest(".fl-sub-menu-right").length?e.addClass("fl-sub-menu-right"):r("body").hasClass("rtl")?(a.is("ul.sub-menu")?a.offset().left-n:e.offset().left-n)<=0&&e.addClass("fl-sub-menu-right"):t<(a.is("ul.sub-menu")?a.offset().left+2*n:e.offset().left+n)&&e.addClass("fl-sub-menu-right"),e.addClass("fl-sub-menu-open"),e.hasClass("hide-heading")||(l.hide(),l.stop().fadeIn(200)),FLTheme._hideNavSearch(),0===e.closest(".fl-page-nav-collapse").length)||!e.hasClass("mega-menu")||0<e.find(".mega-menu-spacer").length||(l.first().before('<div class="mega-menu-spacer"></div>'),i=e.find(".mega-menu-spacer").offset().top,o=l.first().offset().top,e.find(".mega-menu-spacer").css("padding-top",Math.floor(parseInt(o-i))+"px"))},_navItemMouseout:function(){var e=r(this),a=e.find("ul.sub-menu");e.hasClass("hide-heading")?FLTheme._navItemMouseoutComplete():a.stop().fadeOut({duration:200,done:FLTheme._navItemMouseoutComplete})},_navItemMouseoutComplete:function(){var e=r(this).parent();e.removeClass("fl-sub-menu-open"),e.removeClass("fl-sub-menu-right"),0<e.find(".mega-menu-spacer").length&&e.find(".mega-menu-spacer").remove(),r(this).show()},_navSubMenuToggleClick:function(e){var a=r(this).closest("li").eq(0);a.hasClass("fl-sub-menu-open")||(FLTheme._navItemMouseover.apply(a[0]),e.preventDefault())},_toggleForMobile:function(e){var a=r(".fl-page-nav .fl-page-nav-collapse"),l=r(this).attr("href"),n=r(this).closest("li").hasClass("menu-item-has-children");"#"!==l&&(l=l.split("#")[1],0<r("body").find("#"+l).length)&&!n&&(r.isFunction(a.collapse)?a.collapse("hide"):(el=r(this).parent().closest("nav").find(".navbar-toggle")).trigger("click"))},_toggleNavSearch:function(e){var a=r(".fl-page-nav-search form");e.preventDefault(),a.is(":visible")?a.stop().fadeOut(200):(a.stop().fadeIn(200),r("body").on("click.fl-page-nav-search",FLTheme._hideNavSearch),r(".fl-page-nav-search .fl-search-input").focus())},_hideNavSearch:function(e){var a=r(".fl-page-nav-search form");void 0!==e&&0<r(e.target).closest(".fl-page-nav-search").length||(a.stop().fadeOut(200),r("body").off("click.fl-page-nav-search"))},_navVertical:function(){r(window).width()>=window.themeopts.medium_breakpoint&&r(".fl-page-header-primary").hasClass("fl-page-nav-toggle-visible-always")&&(r("body").toggleClass("fl-nav-vertical"),r("body").hasClass("fl-nav-vertical-left")&&r("body").toggleClass("fl-nav-vertical-left"),r("body").hasClass("fl-nav-vertical-right"))&&r("body").toggleClass("fl-nav-vertical-right")},_updateVerticalRightPos:function(){var e=(r(window).width()-r(".fl-page").width())/2;r(".fl-page-header-vertical").css("right",e)},_navLeft:function(){var e=r(window);(e.width()<window.themeopts.medium_breakpoint||r(".fl-page-header-primary").hasClass("fl-page-nav-toggle-visible-always"))&&r(".fl-page-header-primary .fl-page-logo-wrap").insertBefore(".fl-page-header-primary .fl-page-nav-col"),e.width()>=window.themeopts.medium_breakpoint&&!r(".fl-page-header-primary").hasClass("fl-page-nav-toggle-visible-always")&&r(".fl-page-header-primary .fl-page-nav-col").insertBefore(".fl-page-header-primary .fl-page-logo-wrap"),0==r(".fl-page-header-fixed").length||r(".fl-page-header-fixed").hasClass("fl-page-nav-toggle-visible-always")||r(".fl-page-header-fixed .fl-page-fixed-nav-wrap").insertBefore(".fl-page-header-fixed .fl-page-logo-wrap")},_shrinkHeaderInit:function(){var n=r(window).scrollTop(),t=r(".fl-page-header");r("body").addClass("fl-shrink-header-enabled"),"scrollRestoration"in history&&(history.scrollRestoration="manual"),r(".fl-page-header-logo").imagesLoaded(function(){var e=r(".fl-logo-img"),a=r(".fl-page-header-logo:visible .fl-logo-img").first(),l=(a=a.length?a:e.first()).length?a.height():0;!(l=void 0!==a.data("origHeight")?parseInt(a.data("origHeight")):l)&&e.length&&(l=parseInt(e.first().data("origHeight"))||46),e.css("max-height",l),setTimeout(function(){r(".fl-page-header").addClass("fl-shrink-header-transition"),250<n?t.addClass("fl-shrink-header"):t.removeClass("fl-shrink-header")},100)})},_shrinkHeaderEnable:function(){var e,a,l,n,t,i=r(window);i.width()>=window.themeopts.medium_breakpoint?(a=(e=r(".fl-page-header")).outerHeight(),(t=n=0)!=(l=r(".fl-page-bar")).length?(t=(n+=l.outerHeight())+a,0!=r("body.admin-bar").length&&(n+=32),e.css("top",n)):t=a,0<e.prevAll(".fl-builder-content").length&&(FLTheme._initThemerLayoutFix(),t=l.outerHeight()),0===r(".fl-header-padding-top-custom").length&&r(".fl-page").css("padding-top",t),r(i).on("scroll.fl-shrink-header",FLTheme._shrinkHeader)):(r(".fl-page-header").css("top",0),r(".fl-page").css("padding-top",0),r(i).off("scroll.fl-shrink-header"))},_shrinkHeader:function(){var l=r(this).scrollTop(),n=r(".fl-page-header"),t=null;r(".fl-page-header-logo").imagesLoaded(function(){t=r(".fl-logo-img");var e=r(".fl-page-header-logo:visible .fl-logo-img").first(),a=(e=e.length?e:t.first()).length?e.height():t.first().data("origHeight")||46;void 0===t.data("origHeight")&&(t.data("origHeight",a),e.length)&&!e.is(t.first())&&e.data("origHeight",a),250<l?n.addClass("fl-shrink-header"):n.removeClass("fl-shrink-header"),void 0!==n.data("original-top")&&FLTheme._fixThemerLayoutOnScroll()})},_fixedHeader:function(){var e=r(window),a=r(".fl-page-header"),l=0,n=0,t=r(".fl-page-bar"),i=0;e.width()>=window.themeopts.medium_breakpoint?(l=a.outerHeight(),0!=t.length?(n=(i=t.outerHeight())+l,0!=r("body.admin-bar").length&&(i+=32),r("html.fl-builder-edit").length,a.css("top",i)):n=l,0<a.prevAll(".fl-builder-content").length&&(FLTheme._initThemerLayoutFix(),n=t.outerHeight(),r(e).on("scroll.fl-fixed-header",FLTheme._fixThemerLayoutOnScroll)),0===r("body.fl-scroll-header").length&&0===r(".fl-header-padding-top-custom").length&&r(".fl-page").css("padding-top",n),r(e).trigger("scroll")):(r(".fl-page-header").css("top",0),r(".fl-page").css("padding-top",0),r(e).off("scroll.fl-fixed-header"))},_enableFixedHeader:function(){var e=r(window);e.width()<window.themeopts.medium_breakpoint?(e.off("scroll.fl-page-header-fixed"),r(".fl-page-header-fixed").hide()):e.on("scroll.fl-page-header-fixed",FLTheme._toggleFixedHeader)},_initThemerLayoutFix:function(){var e=r(".fl-page-header"),a=e.prevAll(".fl-builder-content"),l=0;a.length&&(e.css("position","initial"),r.each(a,function(){l+=r(this).outerHeight()}),e.data("original-top",l))},_fixThemerLayoutOnScroll:function(){var e=r(window).scrollTop(),a=r(".fl-page-header"),l=a.data("original-top");void 0!==l&&(l<=e?a.css("position","fixed"):a.css("position","initial"),"undefined"!=typeof Waypoint)&&Waypoint.refreshAll()},_toggleFixedHeader:function(){var e=r(window),a=r(".fl-page-header-fixed"),l=a.is(":visible"),n=r(".fl-page-header-primary"),t=!1;(t=0===n.length?200<e.scrollTop():e.scrollTop()>n.height()+n.offset().top)&&!l?a.stop().fadeIn(200):!t&&l&&a.stop().hide()},_centeredInlineLogo:function(){var e=r(window),a=r(".fl-page-nav-centered-inline-logo .fl-page-header-logo").eq(0),l=r(".fl-logo-centered-inline .fl-page-header-logo"),n=r(".fl-page-nav-centered-inline-logo .fl-page-nav .navbar-nav"),t=n.children("li").length,i=Math.round(t/2)-1,o=r(".fl-page-nav-centered-inline-logo .fl-page-header-row");e.width()>=window.themeopts.medium_breakpoint&&l.length<1&&!r(".fl-page-header-primary").hasClass("fl-page-nav-toggle-visible-always")&&(a.hasClass("fl-inline-logo-left")&&t%2!=0?n.children("li:nth("+i+")").before('<li class="fl-logo-centered-inline"></li>'):n.children("li:nth("+i+")").after('<li class="fl-logo-centered-inline"></li>'),n.children(".fl-logo-centered-inline").append(a)),e.width()<window.themeopts.medium_breakpoint&&(r(".fl-logo-centered-inline").remove(),o.children(".fl-page-header-logo").length<1)&&o.prepend(l)},_scrollHeader:function(){var e=r(window),a=null,l=r(".fl-page-header-primary").data("fl-distance"),n=0,a=0!=r(".fl-page-bar").length?r(".fl-page-header-primary, .fl-page-bar"):r(".fl-page-header-primary");e.width()>=window.themeopts.medium_breakpoint?e.on("scroll.fl-show-header-on-scroll",function(){r(this).scrollTop()>l?a.addClass("fl-show"):(a.removeClass("fl-show"),r(".fl-responsive-nav-enabled").length&&(n=2*r(".fl-page-header-primary").height(),0!=r(".fl-page-bar").length&&(n+=r(".fl-page-bar").height()),void 0!==r(".fl-nav-offcanvas-collapse").css("top"))&&(n+=parseInt(r(".fl-nav-offcanvas-collapse").css("top"))),r(".fl-nav-offcanvas-active").length&&0<n&&r(".fl-nav-offcanvas-collapse").css({transform:"translateY("+n+"px)","-ms-transform":"translateY("+n+"px)","-webkit-transform":"translateY("+n+"px)"}))}):(e.off("scroll.fl-show-header-on-scroll"),r(".fl-nav-offcanvas-collapse").css("transform",""))},_megaMenu:function(){r(window);var e=r(".fl-page-header"),a=e.find(".fl-page-header-container").outerWidth(),l=null,n=0;e.find("li.mega-menu, li.mega-menu-disabled").each(function(){l=r(this),n=l.find("> ul.sub-menu").outerWidth(),void 0!==l.data("megamenu-width")&&(n=l.data("megamenu-width")),l.hasClass("mega-menu")&&a<n||FLTheme._isResponsiveNavEnabled()?(l.data("megamenu-width",n),FLTheme._isResponsiveNavEnabled()&&l.find("> ul.sub-menu").css("display","block"),l.removeClass("mega-menu"),l.hasClass("mega-menu-disabled")||l.addClass("mega-menu-disabled")):l.hasClass("mega-menu-disabled")&&n<=a&&(l.find("> ul.sub-menu").css("display",""),l.removeClass("mega-menu-disabled"),l.hasClass("mega-menu")||l.addClass("mega-menu"),l.addClass("mega-menu-items-"+l.children("ul").children("li").length))})},_megaMenuOnScroll:function(){var e=r(window),a=r(".fl-page-header-fixed"),l=a.find(".fl-page-header-container"),n=a.is(":visible"),t=null,i=null;n&&(a.find("li.mega-menu").each(function(){t=r(this),i=t.find("> ul.sub-menu"),l.outerWidth()<i.outerWidth()?(t.removeClass("mega-menu"),t.hasClass("mega-menu-disabled")||t.addClass("mega-menu-disabled")):(t.removeClass("mega-menu-disabled"),t.hasClass("mega-menu")||t.addClass("mega-menu"),t.addClass("mega-menu-items-"+t.children("ul").children("li").length))}),e.off("scroll.fl-mega-menu-on-scroll"),e.off("resize.fl-mega-menu-on-scroll"))},_fixedHeadersWhenBuilderActive:function(){0!=r("body.fl-shrink").length&&r("body").removeClass("fl-shrink"),0!=r("body.fl-fixed-header").length&&r("body").removeClass("fl-fixed-header"),0!=r("body.fl-scroll-header").length&&r("body").removeClass("fl-scroll-header")},_setupMobileNavLayout:function(){var e=r(window),a=r("button.navbar-toggle"),l=r(".fl-page-header:not(.fl-page-header-fixed)"),n=l.find(".fl-page-nav-collapse"),t=r(".fl-page"),i=0,o=(e.height(),r("body").hasClass("fl-offcanvas-push-opacity-left")||r("body").hasClass("fl-offcanvas-push-opacity-right"));l.find(".fl-page-header-logo").offset();FLTheme._isResponsiveNavEnabled()&&a.is(":visible")?(r("body").addClass("fl-responsive-nav-enabled"),a.attr("data-toggle","offcanvas"),n.addClass("fl-nav-offcanvas-collapse"),0===n.find(".fl-button-close").length&&n.prepend('<div class="fl-button-close"><button class="fl-offcanvas-close" aria-label="Close Menu"><i class="fas fa-times"></i></button></div>'),o&&0===r(".fl-offcanvas-opacity").length&&t.append('<div class="fl-offcanvas-opacity"></div>'),t.height()>e.height()&&(r(document).height(),0!=r("body.fl-shrink").length)&&l.height(),0!=r("body.admin-bar").length&&(i=r("#wpadminbar").height()),0==r(".fl-page-bar").length||r(".fl-page-header").hasClass("fl-page-nav-toggle-button")||(i+=r(".fl-page-bar").height()+1),r(".fl-scroll-header").length&&e.width()>=window.themeopts.medium_breakpoint?n.css("top",t.offset().top-i+"px"):n.css("top","")):(a.attr("data-toggle","collapse"),n.removeClass("fl-nav-offcanvas-collapse"),n.find(".fl-button-close").remove(),n.css("height",""),n.css("top",""),t.removeClass("fl-nav-offcanvas-active"),r("body").find(".fl-offcanvas-opacity").remove(),r("body").removeClass("fl-responsive-nav-enabled"))},_toggleMobileNavLayout:function(){r(".fl-page-nav").on("click",".fl-offcanvas-close",function(e){r(".fl-page").toggleClass("fl-nav-offcanvas-active"),e.stopPropagation()})},_footerEffect:function(){r(window).width()>=window.themeopts.mobile_breakpoint?r(".fl-page").css("margin-bottom",r(".fl-page-footer-wrap").height()):r(".fl-page").css("margin-bottom",0)},_toTop:function(){var e=r("#fl-to-top");e.each(function(){r(this).click(function(){return r("html,body").animate({scrollTop:0},"linear"),!1})}),r(window).scroll(function(){r(this).scrollTop()>window.themeopts.scrollTopPosition?e.fadeIn():e.fadeOut()})},_enableLightbox:function(){var e=r("body");"disabled"!==window.themeopts.lightbox&&(e.hasClass("fl-builder")||e.hasClass("woocommerce")||r(".fl-content a").filter(function(){return/\.(png|jpg|jpeg|gif|webp)(\?.*)?$/i.test(this.href)}).magnificPopup({closeBtnInside:!1,type:"image",gallery:{enabled:!0}}),e.hasClass("fl-builder")||e.hasClass("fl-theme-builder-singular"))&&!e.hasClass("woocommerce")&&r(".fl-rich-text a, .fl-module-fl-post-content a").filter(function(){return/\.(png|jpg|jpeg|gif|webp)(\?.*)?$/i.test(this.href)}).magnificPopup({closeBtnInside:!1,type:"image",gallery:{enabled:!0}})},_enableFitVids:function(){r(".fl-post-content").fitVids()},_isResponsiveNavEnabled:function(){var e=r(window);return enabled=!1,enabled=0<r(".fl-page-nav-toggle-visible-always").length||0<r(".fl-page-nav-toggle-visible-medium-mobile").length&&e.width()<window.themeopts.medium_breakpoint||0<r(".fl-page-nav-toggle-visible-mobile").length&&e.width()<window.themeopts.mobile_breakpoint?!0:enabled}},r(function(){FLTheme.init()}),0===r("html.fl-builder-edit").length&&FLTheme._initMobileHeaderLogo(),FLTheme._initRetinaImages()})(jQuery);
let cmplz_cookie_data=[],cmplzCleanCookieInterval;function cmplz_create_element(e,t){e=document.createElement(e);return e.innerHtml=t,e}function cmplz_add_event(e,t,c){document.addEventListener(e,e=>{e.target.closest(t)&&c(e)})}function cmplz_is_hidden(e){return null===e.offsetParent}function cmplz_html_decode(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}function cmplz_sanitize_placeholder_html(e){var t=document.createElement("template");return t.innerHTML=String(e||""),t.content.querySelectorAll("script, iframe, object, embed, link, style, base, meta").forEach(e=>{e.remove()}),t.content.querySelectorAll("*").forEach(n=>{Array.from(n.attributes).forEach(e=>{var t=e.name.toLowerCase(),c=e.value.trim();0!==t.indexOf("on")&&("href"!==t&&"src"!==t&&"xlink:href"!==t||!/^\s*(javascript:|data:)/i.test(c))||n.removeAttribute(e.name)})}),t.innerHTML}function cmplz_is_safe_script_src(e){if("string"!=typeof e)return!1;e=e.trim();if(!e)return!1;try{var t=new URL(e,window.location.href);return"http:"===t.protocol||"https:"===t.protocol}catch(e){return!1}}function cmplz_trap_focus(){var e;cmplz_banner&&complianz.soft_cookiewall&&(cmplz_original_active_element=document.activeElement,document.body.classList.add("cmplz-banner-active"),cmplz_banner.addEventListener("keydown",cmplz_handle_tab_navigation),0<(e=cmplz_banner.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).length)&&e[0].focus()}function cmplz_handle_tab_navigation(e){var t,c;"Tab"===e.key&&0!==(c=cmplz_banner.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).length&&(t=c[0],c=c[c.length-1],e.shiftKey?document.activeElement===t&&(e.preventDefault(),c.focus()):document.activeElement===c&&(e.preventDefault(),t.focus()))}function cmplz_release_focus_trap(){if(cmplz_banner&&cmplz_banner.removeEventListener("keydown",cmplz_handle_tab_navigation),document.body.classList.remove("cmplz-banner-active"),cmplz_original_active_element&&cmplz_original_active_element.focus)try{cmplz_original_active_element.focus()}catch(e){document.body.focus()}}function cmplzLoadConsentAreaContent(e,r){document.querySelectorAll(".cmplz-consent-area.cmplz-placeholder").forEach(t=>{let c=t.getAttribute("data-category"),n=t.getAttribute("data-service");var o=t.getAttribute("data-post_id"),a=t.getAttribute("data-block_id");if(e===c||r===n){let e=new XMLHttpRequest;e.open("GET",complianz.url+"consent-area/"+o+"/"+a,!0),e.setRequestHeader("Content-type","application/json"),e.send(),t.classList.remove("cmplz-placeholder"),e.onload=function(){t.innerHTML=JSON.parse(e.response),t.querySelectorAll("script").forEach(e=>{cmplz_run_script(e.innerHTML,c,n,"inline",e)})}}})}document.querySelectorAll(".cmplz-consent-area.cmplz-placeholder").forEach(e=>{e.addEventListener("click",e=>{let t=e.target;(t=t.classList.contains("cmplz-consent-area")?t:e.target.closest(".cmplz-consent-area.cmplz-placeholder"))&&(cmplz_set_service_consent(e=t.getAttribute("data-service"),!0),cmplzLoadConsentAreaContent(!1,e),cmplz_enable_category(null,e),cmplz_set_banner_status("dismissed"))}),document.addEventListener("cmplz_enable_category",function(e){cmplzLoadConsentAreaContent(e.detail.category,e.detail.service)})}),document.addEventListener("cmplz_manage_consent_container_loaded",function(){var e,t=window.location.href;-1!=t.indexOf("#")&&(e=-1!=t.lastIndexOf("?")?t.lastIndexOf("?"):void 0,t=t.substring(t.indexOf("#")+1,e),e=document.getElementById(t))&&(t=e.getBoundingClientRect().top+window.pageYOffset-200,window.scrollTo({top:t,behavior:"smooth"}))}),complianz.locale=complianz.locale+"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),(()=>{function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var c=document.createEvent("CustomEvent");return c.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),c}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)})();let cmplz_banner,cmplz_banner_container=document.getElementById("cmplz-cookiebanner-container"),cmplz_manage_consent_button,cmplz_waiting_inline_scripts=[],cmplz_waiting_scripts=[],cmplz_fired_scripts=[],cmplz_placeholder_class_index=0,cmplz_all_scripts_hook_fired=!1,cmplz_consent_stored_once=!1,cmplz_fired_category_events=["functional"],cmplz_fired_service_events=[],cmplz_categories=["functional","preferences","statistics","marketing"];var cmplz_original_active_element=null;window.cmplz_get_cookie=function(t){if("undefined"!=typeof document){t=complianz.prefix+t;var c=document.cookie.split(";");for(let e=0;e<c.length;e++){var n=c[e].trim();if(n.startsWith(t+"="))return n.substring(t.length+1)}}return""},window.cmplz_set_cookie=function(e,t,c){var n,o,a,r;"undefined"!=typeof document&&(c=void 0===c||c,n="https:"===window.location.protocol?";secure":"",(o=new Date).setTime(o.getTime()+24*complianz.cookie_expiry*60*60*1e3),o=";expires="+o.toGMTString(),a=0<(a=cmplz_get_cookie_domain()).length?";domain="+a:"",c=c?complianz.prefix:"",r=cmplz_get_cookie_path(),document.cookie=""+c+e+`=${t};SameSite=Lax${n}${o}${a};path=`+r)},window.cmplz_in_array=function(e,t){return t.includes(e)},window.cmplz_highest_accepted_category=function(){var t=cmplz_accepted_categories(),c=["marketing","statistics","preferences"];for(let e=0;e<c.length;e++)if(cmplz_in_array(c[e],t))return c[e];return"functional"};let cmplz_set_category_as_body_class=()=>{let c=document.body.classList;for(let e=c.length-1;0<=e;e--)c[e].startsWith("cmplz-")&&"cmplz-document"!==c[e]&&c.remove(c[e]);var e=cmplz_accepted_categories(),e=(Object.values(e).forEach(e=>{"string"==typeof e&&c.add("cmplz-"+e)}),cmplz_get_all_service_consents()),e=(Object.entries(e).forEach(([e,t])=>{t&&c.add("cmplz-"+e)}),c.add("cmplz-"+complianz.region,"cmplz-"+complianz.consenttype),new CustomEvent("cmplz_set_category_as_bodyclass"));document.dispatchEvent(e)},cmplz_append_css=e=>{var t=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.setAttribute("type","text/css"),c.appendChild(document.createTextNode(e)),t.appendChild(c)},cmplz_load_css=e=>{var t=document.head||document.getElementsByTagName("head")[0],c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.href=e,t.appendChild(c)};function cmplz_run_script(t,c,n,e,o){var a=document.createElement("script");if("inline"!==e&&cmplz_is_safe_script_src(t)?a.src=t:("string"!=typeof t&&(t=t.innerHTML),a.textContent=[t,"cmplzScriptLoaded();"].join("\n")),!cmplz_in_array(t,cmplz_fired_scripts)){cmplzCopyAttributes(o,a);try{"inline"!==e?a.onload=function(){cmplz_run_after_all_scripts(c,n),cmplz_maybe_run_waiting_scripts(t,c,n,o)}:window.cmplzScriptLoaded=function(){cmplz_run_after_all_scripts(c,n),cmplz_maybe_run_waiting_scripts(t,c,n,o)},document.head.appendChild(a)}catch(e){throw cmplz_run_after_all_scripts(c,n),"Something went wrong "+e+" while loading "+t}}}function cmplz_maybe_run_waiting_scripts(e,t,c,n){var o=cmplz_get_waiting_script(cmplz_waiting_scripts,e),o=(o&&cmplz_run_script(o,t,c,"src",n),cmplz_get_waiting_script(cmplz_waiting_inline_scripts,e));o&&cmplz_run_script(o,t,c,"inline",n)}let cmplzLazyLoader=()=>{var e=document.querySelectorAll(".cmplz-blocked-content-container");let t=new IntersectionObserver((e,n)=>{e.forEach(e=>{var t,c;e.isIntersecting&&((t=(e=e.target).getAttribute("data-placeholder-image"))&&(c=e.getAttribute("data-placeholder_class_index"),cmplz_append_css(".cmplz-placeholder-"+c+" {background-image: url("+t+") !important;}"),cmplz_set_blocked_content_container_aspect_ratio(e,t,c)),n.unobserve(e))})});e.forEach(e=>{t.observe(e)})};function cmplz_set_blocked_content_container(){document.querySelectorAll(".cmplz-image").forEach(e=>{var t,c,n,o;e.classList.contains("cmplz-processed")||(e.classList.add("cmplz-processed"),t=e.getAttribute("data-service"),c=e.getAttribute("data-category"),(n=e.parentElement).classList.add("cmplz-blocked-content-container"),o=n.getAttribute("data-placeholder_class_index"),"lazy"===e.getAttribute("loading")&&(e.removeAttribute("loading"),e.setAttribute("data-deferlazy",1)),null==o&&(cmplz_placeholder_class_index++,n.classList.add("cmplz-placeholder-"+cmplz_placeholder_class_index,"cmplz-blocked-content-container"),n.setAttribute("data-placeholder_class_index",cmplz_placeholder_class_index),cmplz_insert_placeholder_text(n,c,t)))}),document.querySelectorAll(".cmplz-placeholder-element").forEach(t=>{if(!t.classList.contains("cmplz-processed")){t.classList.add("cmplz-processed");var c=t.getAttribute("data-service"),n=t.getAttribute("data-category");let e;null===(e=t.classList.contains("cmplz-iframe")?("lazy"===t.getAttribute("loading")&&(t.removeAttribute("loading"),t.setAttribute("data-deferlazy",1)),t.parentElement):t).getAttribute("data-placeholder_class_index")&&(cmplz_placeholder_class_index++,e.classList.add("cmplz-placeholder-"+cmplz_placeholder_class_index,"cmplz-blocked-content-container"),e.setAttribute("data-placeholder_class_index",cmplz_placeholder_class_index),cmplz_insert_placeholder_text(e,n,c),n=t.getAttribute("data-placeholder-image"))&&void 0!==n&&n.length&&e.setAttribute("data-placeholder-image",n)}}),cmplzLazyLoader(),cmplz_has_consent("statistics")&&cmplz_enable_category("statistics"),cmplz_has_consent("marketing")&&cmplz_enable_category("marketing")}function cmplz_insert_placeholder_text(e,n,o){if(!e.querySelector(".cmplz-blocked-content-notice")){let t=complianz.placeholdertext;n=n||"marketing";let c;if(void 0!==t){if(1==complianz.clean_cookies){let e=o?o.replace("-"," "):"";e=e.charAt(0).toUpperCase()+e.slice(1),t=t.replace("{service}",e),(c=cmplz_create_element("div",t)).innerHTML=cmplz_sanitize_placeholder_html(t),c.classList.add("cmplz-blocked-content-notice");var a=c.querySelector("button"),a=(a.setAttribute("data-service",o),a.setAttribute("data-category",n),a.setAttribute("aria-label",complianz.aria_label.replace("{service}",e)),complianz.page_links[complianz.region]),r=c.querySelector(".cmplz-links a");a&&a.hasOwnProperty("cookie-statement")?(r.setAttribute("href",a["cookie-statement"].url),"{title}"===r.innerText&&(r.innerText=a["cookie-statement"].title)):r&&(r.parentElement.style.display="none")}else{a=cmplz_create_element("button",""),r=complianz.categories.hasOwnProperty(n)?complianz.categories[n]:"marketing";a.innerText=t.replace("{category}",r),a.classList.add("cmplz-blocked-content-notice","cmplz-accept-category","cmplz-accept-"+n),a.setAttribute("data-service",o),a.setAttribute("data-category",n),a.setAttribute("aria-label",complianz.aria_label.replace("{category}",n)),c=a}("VIDEO"!==e.tagName?e:e.parentElement).appendChild(c)}}}function cmplz_set_blocked_content_container_aspect_ratio(t,c,n){var e;null!=t&&((e=new Image).addEventListener("load",function(){var e=this.naturalWidth||1,e=this.naturalHeight*(t.clientWidth/e),e=-1===c.indexOf("placeholder.jpg")?"height:"+e+"px;":"";cmplz_append_css(".cmplz-placeholder-"+n+" {"+e+"}")}),e.src=c)}let cmplzResizeTimer;function cmplz_has_blocked_scripts(){return 0<document.querySelectorAll("script[data-category], script[data-service]").length}function cmplz_enable_category(o,a){1==complianz.tm_categories&&""!==o&&cmplz_run_tm_event(o);var t={},t=(t.category=o,t.categories=cmplz_accepted_categories(),t.region=complianz.region,new CustomEvent("cmplz_before_category",{detail:t}));if(document.dispatchEvent(t),a=void 0!==a?a:"do_not_match","functional"!==(o=""===o?"do_not_match":o)){"marketing"===o&&cmplz_set_integrations_cookies();let e;e="do_not_match"!==a?'.cmplz-blocked-content-notice [data-service="'+a+'"]':1!=complianz.clean_cookies?".cmplz-blocked-content-notice.cmplz-accept-"+o:'.cmplz-blocked-content-notice [data-category="'+o+'"]',document.querySelectorAll(e).forEach(e=>{var t=e.getAttribute("data-service");e.parentNode.classList.contains("cmplz-blocked-content-notice")&&(e=e.parentNode),cmplz_is_service_denied(t)||e.parentNode.removeChild(e)}),document.querySelectorAll('[data-category="'+o+'"], [data-service="'+a+'"]').forEach(t=>{var e=t.getAttribute("data-service");if(!cmplz_is_service_denied(e)&&"functional"!==t.getAttribute("data-category")&&!t.classList.contains("cmplz-activated")){var e=t.tagName;if("LINK"===e){t.classList.add("cmplz-activated");var c=t.getAttribute("data-href");cmplz_load_css(c,o)}else if("IMG"===e){t.classList.add("cmplz-activated");c=t.getAttribute("data-src-cmplz");t.setAttribute("src",c),t.getAttribute("data-deferlazy")&&t.setAttribute("loading","lazy"),cmplz_remove_placeholder(t)}else if("IFRAME"===e){t.classList.add("cmplz-activated");let e=t.getAttribute("data-src-cmplz");c=t.getAttribute("data-cmplz-target")?t.getAttribute("data-cmplz-target"):"src";"1"===cmplz_get_url_parameter(t.getAttribute(c),"autoplay")&&(e+="&autoplay=1"),t.getAttribute("data-deferlazy")&&t.setAttribute("loading","lazy"),t.addEventListener("load",()=>{cmplz_remove_placeholder(t)}),t.setAttribute(c,e)}else t.classList.contains("cmplz-placeholder-element")&&(t.classList.add("cmplz-activated"),e=t.getAttribute("data-placeholder_class_index"),t.classList.remove("cmplz-blocked-content-container","cmplz-placeholder-"+e))}});t=document.querySelectorAll('script[data-category="'+o+'"], script[data-service="'+a+'"]');t.forEach(e=>{var t=e.getAttribute("data-waitfor"),c=e.getAttribute("data-cmplz-src");t&&(c?cmplz_waiting_scripts[t]=c:0<e.innerText.length&&(cmplz_waiting_inline_scripts[t]=e)),e.parentElement&&e.parentElement.removeChild(e)}),t.forEach(e=>{var t,c,n=e.getAttribute("type");!e.classList.contains("cmplz-activated")&&n&&"text/javascript"!==n&&(e.classList.add("cmplz-activated"),(n=e.getAttribute("data-cmplz-src"))?(e.removeAttribute("type"),cmplz_is_waiting_script(cmplz_waiting_scripts,n)||(e.getAttribute("data-post_scribe_id")?(t="#"+e.getAttribute("data-post_scribe_id"),(c=document.querySelector(t))&&(c.innerHtml(""),postscribe(t,"<script src="+n+"><\/script>"))):cmplz_run_script(n,o,a,"src",e))):0<e.innerText.length&&(cmplz_is_waiting_script(cmplz_waiting_inline_scripts,e.innerText)||cmplz_run_script(e.innerText,o,a,"inline",e)))}),cmplz_run_after_all_scripts(o,a)}}function cmplz_remove_placeholder(e){var t,c=e.closest(".cmplz-blocked-content-container");c&&(t=c.getAttribute("data-placeholder_class_index"),c.classList.remove("cmplz-blocked-content-container","cmplz-placeholder-"+t)),e.classList.remove("cmplz-iframe-styles","cmplz-iframe","video-wrap")}function cmplz_get_waiting_script(e,t){for(var c in e){var n;if(e.hasOwnProperty(c))if(-1!==t.indexOf(c))return n=e[c],delete e[c],n}return!1}function cmplz_array_is_empty(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function cmplz_is_waiting_script(t,c){for(var n in t)if(t.hasOwnProperty(n)){let e=t[n];if("string"!=typeof e&&(e=e.innerText),-1!==c.indexOf(e)||-1!==e.indexOf(c))return!0}return!1}function cmplz_run_after_all_scripts(e,t){var c="do_not_match"!==t&&!cmplz_in_array(t,cmplz_fired_service_events),n="do_not_match"!==e&&!cmplz_in_array(e,cmplz_fired_category_events);(n||c)&&(n&&cmplz_fired_category_events.push(e),c&&cmplz_fired_service_events.push(t),(n={}).category=e,n.service=t,n.categories=cmplz_accepted_categories(),n.services=cmplz_get_all_service_consents(),n.region=complianz.region,c=new CustomEvent("cmplz_enable_category",{detail:n}),document.dispatchEvent(c)),!cmplz_all_scripts_hook_fired&&cmplz_array_is_empty(cmplz_waiting_inline_scripts)&&cmplz_array_is_empty(cmplz_waiting_scripts)&&(n=new CustomEvent("cmplz_run_after_all_scripts",{detail:e,service:t}),document.dispatchEvent(n),cmplz_all_scripts_hook_fired=!0)}window.addEventListener("resize",function(){clearTimeout(cmplzResizeTimer),cmplzResizeTimer=setTimeout(cmplz_set_blocked_content_container,500)},!0),1==complianz.block_ajax_content&&setInterval(function(){cmplz_set_blocked_content_container()},2e3);let cmplz_fired_events=[];function cmplz_run_tm_event(e){-1===cmplz_fired_events.indexOf(e)&&(cmplz_fired_events.push(e),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"cmplz_event_"+e}),e=new CustomEvent("cmplz_tag_manager_event",{detail:e}),document.dispatchEvent(e))}function cmplz_fire_before_categories_consent(e){var t={},e=(t.categories=e,t.region=complianz.region,new CustomEvent("cmplz_before_categories_consent",{detail:t}));document.dispatchEvent(e)}function cmplz_check_cookie_policy_id(){var e=cmplz_get_cookie("policy_id");e&&parseInt(complianz.current_policy_id)!==parseInt(e)&&(cmplz_deny_all(),cmplz_set_banner_status("show"),cmplz_clear_cookies("cmplz"))}function cmplz_do_not_track(){var e="doNotTrack"in navigator&&"1"===navigator.doNotTrack,t="globalPrivacyControl"in navigator&&navigator.globalPrivacyControl;return!(!complianz.do_not_track_enabled||!t&&!e)}function cmplz_get_services_on_page(){let c=[];return document.querySelectorAll("[data-service]").forEach(e=>{var t=e.getAttribute("data-service"),e=e.getAttribute("data-category");-1==c.indexOf(t)&&c.push({category:e,service:t})}),c}function cmplz_is_bot(){var e=new RegExp("(googlebot/|Googlebot-Mobile|Google-InspectionTool|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)","i"),t=navigator.userAgent;return e.test(t)}function cmplz_is_speedbot(){var e=navigator.userAgent;return new RegExp("(GTmetrix|pingdom|pingbot|Lighthouse)","i").test(e)}function cmplz_exists_service_consent(){var e,t=cmplz_get_cookie("consented_services");try{for(var c in e=JSON.parse(t))if(e.hasOwnProperty(c)&&1==e[c])return!0}catch(e){}return!1}function cmplz_set_service_consent(e,t){var c=cmplz_get_cookie("consented_services");let n;try{n=JSON.parse(c)}catch(e){n={}}n[e]=t,cmplz_set_cookie("consented_services",JSON.stringify(n));c={},c.service=e,c.value=t,c.region=complianz.region,cmplz_all_scripts_hook_fired=!1,e=new CustomEvent("cmplz_status_change_service",{detail:c});document.dispatchEvent(e)}function cmplz_clear_all_service_consents(){cmplz_set_cookie("consented_services","")}function cmplz_get_all_service_consents(){var e=cmplz_get_cookie("consented_services");let t;try{t=JSON.parse(e)}catch(e){t={}}return t}function cmplz_get_cookie_path(){return void 0!==complianz.cookie_path&&""!==complianz.cookie_path?complianz.cookie_path:"/"}function cmplz_get_cookie_domain(){return 1==complianz.set_cookies_on_root&&3<complianz.cookie_domain.length&&!complianz.cookie_domain.includes("localhost")?complianz.cookie_domain:""}function cmplz_reload_browser_compatible(){var e;-1<navigator.userAgent.toLowerCase().indexOf("firefox")?((e=new URL(window.location.href)).searchParams.set("cmplz-force-reload",Date.now().toString()),window.location.href=e.toString()):window.location.reload()}window.cmplz_accept_all=function(){for(var e in cmplz_clear_all_service_consents(),cmplz_fire_before_categories_consent(cmplz_categories),cmplz_categories)cmplz_categories.hasOwnProperty(e)&&cmplz_set_consent(cmplz_categories[e],"allow");cmplz_sync_category_checkboxes()},window.cmplz_deny_all=function(){for(var e in cmplz_categories)cmplz_categories.hasOwnProperty(e)&&cmplz_set_consent(cmplz_categories[e],"deny");let t=!1;"functional"===cmplz_highest_accepted_category()&&!cmplz_exists_service_consent()||(t=!0),cmplz_clear_cookies("cmplz_service")&&(t=!0),cmplz_clear_all_service_consents(),cmplz_integrations_revoke(),cmplz_fire_categories_event(),cmplz_track_status();var c=new CustomEvent("cmplz_revoke",{detail:t});document.dispatchEvent(c),!complianz.tcf_active&&t&&cmplz_reload_browser_compatible()},window.conditionally_show_banner=function(){complianz=cmplz_merge_object(complianz,cmplz_user_data),cmplz_maybe_auto_redirect(),cmplz_set_blocked_content_container(),window.wp_consent_type=complianz.consenttype;var e,t,c,n=new CustomEvent("wp_consent_type_defined"),o=(document.dispatchEvent(n),n=new CustomEvent("cmplz_before_cookiebanner"),document.dispatchEvent(n),1==complianz.forceEnableStats&&"optin"===complianz.consenttype&&cmplz_set_consent("statistics","allow"),cmplz_categories.reverse()),a=[];for(e in o)o.hasOwnProperty(e)&&(t=cmplz_categories[e],cmplz_has_consent(t))&&a.push(t);for(c in cmplz_fire_before_categories_consent(a),a)o.hasOwnProperty(c)&&cmplz_enable_category(a[c]);if(cmplz_exists_service_consent()){cmplz_enable_category("","general");var r,l,i,s=cmplz_get_services_on_page();for(r in s)s.hasOwnProperty(r)&&(l=s[r].service,i=s[r].category,cmplz_has_service_consent(l,i))&&(document.querySelectorAll('.cmplz-accept-service[data-service="'+l+'"]').forEach(e=>{e.checked=!0}),cmplz_enable_category("",l))}cmplz_sync_category_checkboxes(),cmplz_integrations_init(),cmplz_check_cookie_policy_id(),cmplz_set_up_auto_dismiss(),cmplz_load_manage_consent_container(),n=new CustomEvent("cmplz_cookie_banner_data",{detail:complianz}),document.dispatchEvent(n),""===cmplz_get_cookie("saved_categories")&&("optin"!==complianz.consenttype&&"optout"!==complianz.consenttype?cmplz_track_status():cmplz_do_not_track()&&cmplz_track_status("do_not_track")),cmplz_set_category_as_body_class(),cmplz_fire_categories_event(),cmplz_do_not_track()?(console.log("global privacy control or do not track detected: no banner."),cmplz_track_status("do_not_track")):("optin"===complianz.consenttype?(complianz.forceEnableStats&&cmplz_enable_category("statistics"),console.log("opt-in"),show_cookie_banner):"optout"===complianz.consenttype?(console.log("opt-out"),show_cookie_banner):(console.log("other consent type, no cookie warning"),cmplz_accept_all))()},window.show_cookie_banner=function(){let t=complianz.disable_cookiebanner||cmplz_is_speedbot(),e=!1;(document.querySelector("#cmplz-manage-consent-container")||document.querySelector(".cmplz-dropdown-cookiepolicy"))&&(e=!0);var c=document.getElementById("cmplz-cookiebanner-container"),c=(c&&document.body.prepend(c),document.createElement("link"));let n=complianz.page_links[complianz.region];(cmplz_banner=document.querySelector(".cmplz-cookiebanner.banner-"+complianz.user_banner_id+"."+complianz.consenttype))||(t=!0),cmplz_manage_consent_button=document.querySelector("#cmplz-manage-consent .cmplz-manage-consent.manage-consent-"+complianz.user_banner_id);var o=complianz.css_file.replace("{type}",complianz.consenttype).replace("{banner_id}",complianz.user_banner_id),o=(-1!==complianz.css_file.indexOf("cookiebanner/css/defaults/banner")&&console.log("Fallback default css file used. Please re-save banner settings, or check file writing permissions in uploads directory"),c.href=o,c.type="text/css",c.rel="stylesheet",c.onload=function(){var e;t||(cmplz_banner.classList.remove("cmplz-hidden"),cmplz_manage_consent_button.classList.remove("cmplz-hidden"),"show"===cmplz_get_banner_status()&&(cmplz_trap_focus(),e=cmplz_banner.querySelector(".cmplz-close"))&&e.focus())},document.getElementsByTagName("head")[0].appendChild(c),cmplz_banner&&!t&&(cmplz_banner.querySelectorAll(".cmplz-links a:not(.cmplz-external), .cmplz-buttons a:not(.cmplz-external)").forEach(e=>{var t,c=e;for(t in c.classList.add("cmplz-hidden"),n)n.hasOwnProperty(t)&&c.classList.contains(t)&&(c.setAttribute("href",n[t].url+c.getAttribute("data-relative_url")),"{title}"===c.innerText&&(c.innerText=cmplz_html_decode(n[t].title)),c.classList.remove("cmplz-hidden"))}),cmplz_set_banner_status(),e)&&(cmplz_banner.classList.remove("cmplz-show"),cmplz_banner.classList.add("cmplz-dismissed"),cmplz_manage_consent_button.classList.remove("cmplz-dismissed"),cmplz_manage_consent_button.classList.add("cmplz-show")),new CustomEvent("cmplz_cookie_warning_loaded",{detail:complianz.region}));document.dispatchEvent(o)},window.cmplz_get_banner_status=function(){return cmplz_get_cookie("banner-status")},window.cmplz_set_banner_status=function(e){let t=cmplz_get_cookie("banner-status");(e=void 0!==e?e:t)!==t&&cmplz_set_cookie("banner-status",e),0===e.length&&(e="show"),t="show"===e?"dismissed":"show",cmplz_banner&&0<e.length&&(cmplz_banner.classList.remove("cmplz-"+t),cmplz_banner.classList.add("cmplz-"+e),cmplz_manage_consent_button)&&(cmplz_manage_consent_button.classList.add("cmplz-"+t),cmplz_manage_consent_button.classList.remove("cmplz-"+e)),cmplz_banner_container&&complianz.soft_cookiewall&&(cmplz_banner_container.classList.remove("cmplz-"+t),cmplz_banner_container.classList.add("cmplz-"+e,"cmplz-soft-cookiewall"));var c=new CustomEvent("cmplz_banner_status",{detail:e});document.dispatchEvent(c),cmplz_start_clean(),"show"===e?(cmplz_trap_focus(),(c=cmplz_banner.querySelector(".cmplz-close"))&&c.focus()):cmplz_release_focus_trap()},window.cmplz_has_consent=function(e){if(cmplz_is_bot())return!0;if("functional"===e)return!0;let t,c;return t=cmplz_do_not_track()?(c=cmplz_get_cookie(e),"allow"===c):(c=cmplz_get_cookie(e),("optout"===complianz.consenttype||"other"===complianz.consenttype)&&""===c||"allow"===c)},window.cmplz_is_service_denied=function(e){var t=cmplz_get_cookie("consented_services");let c;try{c=JSON.parse(t)}catch(e){c={}}return!!c.hasOwnProperty(e)&&!c[e]},window.cmplz_has_service_consent=function(e,t){var c=cmplz_get_cookie("consented_services");let n;try{n=JSON.parse(c)}catch(e){n={}}return n.hasOwnProperty(e)?n[e]:cmplz_has_consent(t)},window.cmplz_set_consent=function(e,t){cmplz_set_accepted_cookie_policy_id(),t="functional"===e?"allow":t;var c,n=cmplz_get_cookie(e);let o="allow"===t;document.querySelectorAll("input.cmplz-"+e).forEach(e=>{e.checked=o}),n!==t&&(cmplz_set_cookie(e,t),"allow"===t&&cmplz_enable_category(e),cmplz_wp_set_consent(e,t),"statistics"===e&&cmplz_wp_set_consent("statistics-anonymous","allow"),(c=new Object).category=e,c.value=t,c.region=complianz.region,c.categories=cmplz_accepted_categories(),cmplz_all_scripts_hook_fired=!1,c=new CustomEvent("cmplz_status_change",{detail:c}),document.dispatchEvent(c),"marketing"===e)&&"deny"===t&&"allow"===n&&(cmplz_integrations_revoke(),setTimeout(function(){cmplz_reload_browser_compatible()},500))};let cmplz_user_data=[];if("undefined"!=typeof Storage&&sessionStorage.cmplz_user_data&&(cmplz_user_data=JSON.parse(sessionStorage.cmplz_user_data)),1!=complianz.geoip||0!=cmplz_user_data.length&&cmplz_user_data.version===complianz.version&&cmplz_user_data.banner_version===complianz.banner_version)conditionally_show_banner();else{let e=new XMLHttpRequest,t=cmplz_get_url_parameter(window.location.href,"cmplz_user_region");t=t?"&cmplz_user_region="+t:"",e.open("GET",complianz.url+"banner?"+complianz.locale+t,!0),e.setRequestHeader("Content-type","application/json"),e.send(),e.onload=function(){cmplz_user_data=JSON.parse(e.response),sessionStorage.cmplz_user_data=JSON.stringify(cmplz_user_data),conditionally_show_banner()}}if(1==complianz.store_consent){let e=cmplz_get_cookie("id"),t="",c="";"undefined"!=typeof Storage&&sessionStorage.cmplz_id&&(t=JSON.parse(sessionStorage.cmplz_id)),0==e.length&&0<t.length&&(c=t,cmplz_set_cookie("id",c)),0<e.length&&0==t.length&&(c=e),"undefined"!=typeof Storage&&(sessionStorage.cmplz_id=JSON.stringify(c))}function cmplz_track_status_end(){cmplz_consent_stored_once||cmplz_track_status()}function cmplz_set_up_auto_dismiss(){if("dismissed"!==cmplz_get_banner_status()){if("optout"===complianz.consenttype&&1==complianz.dismiss_on_scroll){let e=function(){window.pageYOffset>Math.floor(400)&&(window.removeEventListener("scroll",e),this.onWindowScroll=null,"dismissed"!==cmplz_get_banner_status())&&(cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status())};window.addEventListener("scroll",e)}var e=parseInt(complianz.dismiss_timeout);"optout"===complianz.consenttype&&0<e&&window.setTimeout(function(){"dismissed"!==cmplz_get_banner_status()&&(cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status())},Math.floor(e))}}function cmplz_fire_categories_event(){var e=new Object,e=(e.category=cmplz_highest_accepted_category(),e.categories=cmplz_accepted_categories(),e.region=complianz.region,new CustomEvent("cmplz_fire_categories",{detail:e}));document.dispatchEvent(e)}function cmplz_track_status(e){let t=[];e=void 0!==e&&e;var c=new CustomEvent("cmplz_track_status",{detail:e});document.dispatchEvent(c),t=e?[e]:cmplz_accepted_categories(),cmplz_set_category_as_body_class();let n,o;try{n=JSON.parse(cmplz_get_cookie("saved_categories"))}catch(e){n={}}try{o=JSON.parse(cmplz_get_cookie("saved_services"))}catch(e){o={}}var c=cmplz_get_all_service_consents();cmplz_equals(n,t)&&cmplz_equals(o,c)||1!=complianz.store_consent||cmplz_is_bot()||cmplz_is_speedbot()||(cmplz_set_cookie("saved_categories",JSON.stringify(t)),cmplz_set_cookie("saved_services",JSON.stringify(c)),cmplz_consent_stored_once=!0,e={consented_categories:t,consented_services:c,consenttype:window.wp_consent_type},(c=new XMLHttpRequest).open("POST",complianz.url+"track",!0),c.setRequestHeader("Content-type","application/json"),c.send(JSON.stringify(e)))}function cmplz_accepted_categories(){let e=cmplz_categories,t=[];for(var c in e)e.hasOwnProperty(c)&&(c=e[c],cmplz_has_consent(c))&&t.push(c);return e=e.filter(function(e){return cmplz_in_array(e,t)})}function cmplz_sync_category_checkboxes(){for(var e in cmplz_categories)cmplz_categories.hasOwnProperty(e)&&(e=cmplz_categories[e],cmplz_has_consent(e)||"functional"===e?document.querySelectorAll("input.cmplz-"+e).forEach(e=>{e.checked=!0}):document.querySelectorAll("input.cmplz-"+e).forEach(e=>{e.checked=!1})),document.querySelectorAll(".cmplz-accept-service").forEach(e=>{var t=e.getAttribute("data-service"),c=e.getAttribute("data-category");cmplz_has_service_consent(t,c)?e.checked=!0:cmplz_is_service_denied(t)?e.checked=!1:e.checked=!!cmplz_has_consent(c)})}function cmplz_merge_object(e,t){var c,n,o={};for(c in t)t.hasOwnProperty(c)&&(o[c]=t[c]);for(n in e)t.hasOwnProperty(n)&&void 0!==t[n]||e.hasOwnProperty(n)&&(o[n]=e[n]);return o}function cmplz_clear_cookies(t){if("undefined"==typeof document)return!1;let a=!1,r="https:"===window.location.protocol?";secure":"",l="expires="+(new Date).toGMTString(),i=location.pathname.replace(/^\/|\/$/g,"").split("/");return document.cookie.split("; ").forEach(function(e){let n=e.split(";")[0].split("=")[0];if(-1!==n.indexOf(t)){a=!0;let c=window.location.hostname.split(".");var o=1<c.length;for(i.forEach(function(e){e="/"+e;document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+r+";"+l+";domain=."+c.join(".")+";path="+e,document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+r+";"+l+";domain=."+c.join(".")+";path="+e+"/"});0<c.length;){let t="."+c.join(".");c.shift(),o&&1===c.length&&c.shift(),i.forEach(function(e){e="/"+e;document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+r+";"+l+";domain="+t+";path="+e,document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+r+";"+l+";domain="+t+";path="+e+"/"})}}}),cmplz_set_accepted_cookie_policy_id(),a}function cmplz_set_accepted_cookie_policy_id(){cmplz_set_cookie("policy_id",complianz.current_policy_id)}function cmplz_integrations_init(){var e,t=complianz.set_cookies;for(e in t)t.hasOwnProperty(e)&&"1"===t[e][1]&&cmplz_set_cookie(e,t[e][1],!1)}function cmplz_integrations_revoke(){var e,t=complianz.set_cookies;for(e in t)t.hasOwnProperty(e)&&(cmplz_set_cookie(e,t[e][1],!1),0==t[e][1])&&cmplz_clear_cookies(e)}function cmplz_set_integrations_cookies(){var e,t=complianz.set_cookies;for(e in t)t.hasOwnProperty(e)&&cmplz_set_cookie(e,t[e][0],!1)}function cmplz_get_url_parameter(e,t){if(e&&void 0!==e&&-1!==e.indexOf("?")){e=e.split("?")[1];if(e){var c=e.split("&");for(let e=0;e<c.length;e++){var n=c[e].split("=");if(n[0]===t)return void 0===n[1]||decodeURIComponent(n[1])}}}return!1}function cmplz_maybe_auto_redirect(){var e=cmplz_get_url_parameter(window.location.href,"cmplz_region_redirect"),t=cmplz_get_url_parameter(window.location.href,"cmplz-region");e&&!t&&(e=window.location.href.split("#")[0]+"&cmplz-region="+complianz.region,t=window.location.hash,window.location.href=e+t)}function cmplz_wp_set_consent(e,t){"function"==typeof wp_set_consent&&wp_set_consent(e,t)}function cmplz_start_clean(){if(1==complianz.clean_cookies)if((cmplz_cookie_data="undefined"!=typeof Storage?JSON.parse(sessionStorage.getItem("cmplz_cookie_data")):cmplz_cookie_data)&&0!==cmplz_cookie_data.length)cmplz_setup_clean_interval();else{let e=new XMLHttpRequest;e.open("GET",complianz.url+"cookie_data",!0),e.setRequestHeader("Content-type","application/json"),e.send(),e.onload=function(){cmplz_cookie_data=JSON.parse(e.response),sessionStorage.setItem("cmplz_cookie_data",JSON.stringify(cmplz_cookie_data)),cmplz_setup_clean_interval()}}}function cmplz_do_cleanup(){var e;for(e of["preferences","statistics","marketing"])if(!cmplz_has_consent(e)&&cmplz_cookie_data.hasOwnProperty(e)){var t,c,n=cmplz_cookie_data[e];for(t in n)if(!cmplz_has_service_consent(t,e))for(c of n[t])cmplz_clear_cookies(c),cmplz_clear_storage(c)}}function cmplz_setup_clean_interval(){!cmplz_cookie_data||cmplzCleanCookieInterval||(cmplz_do_cleanup(),cmplzCleanCookieInterval=setInterval(cmplz_do_cleanup,1e3))}function cmplz_clear_storage(e){"undefined"!=typeof Storage&&(localStorage.getItem(e)&&localStorage.removeItem(e),sessionStorage.getItem(e))&&sessionStorage.removeItem(e)}function cmplz_load_manage_consent_container(){let c=document.querySelector(".cmplz-manage-consent-container");if(c){let t=new XMLHttpRequest;t.open("GET",complianz.url+"manage_consent_html?"+complianz.locale,!0),t.setRequestHeader("Content-type","application/json"),t.send(),t.onload=function(){var e=JSON.parse(t.response);c.insertAdjacentHTML("beforeend",e),cmplz_sync_category_checkboxes();document.querySelector("#cmplz-manage-consent-container-nojavascript").style.display="none",c.style.display="block";e=new CustomEvent("cmplz_manage_consent_container_loaded");document.dispatchEvent(e)}}}function cmplz_equals(c,n){if("object"!=typeof c||null===c||Array.isArray(c)||"object"!=typeof n||null===n||Array.isArray(n)){if(Array.isArray(c)||(c=Object.keys(c),n=Object.keys(n)),!c||!n)return!1;if(c.length!==n.length)return!1;for(let e=0,t=c.length;e<t;e++)if(c[e]instanceof Array&&n[e]instanceof Array){if(!cmplz_equals(c[e],n[e]))return!1}else if(c[e]!==n[e])return!1}else{var e;for(e of[...new Set([...Object.keys(c),...Object.keys(n)])])if(c[e]!==n[e])return!1}return!0}function cmplzCopyAttributes(e,t){let c=["type","data-service","data-category","async"];Array.from(e.attributes).forEach(e=>{"data-script-type"===e.nodeName&&"module"===e.nodeValue?(t.setAttribute("type","module"),t.removeAttribute("data-script-type")):c.includes(e.nodeName)||t.setAttribute(e.nodeName,e.nodeValue)})}document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&cmplz_track_status_end()}),window.addEventListener("pagehide",cmplz_track_status_end,!1),window.addEventListener("beforeunload",cmplz_track_status_end,!1),document.addEventListener("cmplz_consent_action",function(e){cmplz_set_consent(e.detail.category,"allow"),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-accept",function(e){e.preventDefault(),setTimeout(()=>{cmplz_accept_all(),cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()},0)}),cmplz_add_event("click",".cmplz-accept-category, .cmplz-accept-marketing",function(e){e.preventDefault();var e=e.target,t=e.getAttribute("data-service"),e=e.getAttribute("data-category")||"marketing";1==complianz.clean_cookies&&void 0!==t&&t?(cmplz_set_service_consent(t,!0),cmplz_enable_category("","general"),cmplz_enable_category("",t)):cmplz_set_consent(e,"allow"),cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-accept-service",function(e){var e=e.target;"INPUT"!==e.tagName&&(void 0!==(e=e.getAttribute("data-service"))&&(cmplz_set_service_consent(e,!0),cmplz_enable_category("","general"),cmplz_enable_category("",e)),cmplz_fire_categories_event(),cmplz_track_status())}),cmplz_add_event("change",".cmplz-accept-service",function(e){var t=e.target,c=t.tagName,n=t.getAttribute("data-service");void 0!==n&&("INPUT"===c?(cmplz_set_banner_status("dismissed"),t.checked?(cmplz_set_service_consent(n,!0),cmplz_enable_category("",n)):(cmplz_set_service_consent(n,!1),setTimeout(function(){cmplz_reload_browser_compatible()},500))):(e.preventDefault(),cmplz_set_service_consent(n,!0),cmplz_enable_category("","general"),cmplz_enable_category("",n),setTimeout(function(){cmplz_reload_browser_compatible()},500))),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-save-preferences",function(e){var t,c,n,o,a,e=e.target,r=(cmplz_banner=e.closest(".cmplz-cookiebanner"),[]);for(t in cmplz_categories)cmplz_categories.hasOwnProperty(t)&&(c=cmplz_categories[t],n=cmplz_banner.querySelector("input.cmplz-"+c))&&n.checked&&r.push(c);for(o in cmplz_fire_before_categories_consent(r),cmplz_categories)cmplz_categories.hasOwnProperty(o)&&(a=cmplz_categories[o],r.includes(a)?cmplz_set_consent(a,"allow"):cmplz_set_consent(a,"deny"));cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-close",function(){cmplz_set_banner_status("dismissed")}),cmplz_add_event("click",".cmplz-view-preferences",function(e){var e=e.target;(cmplz_banner=e.closest(".cmplz-cookiebanner")).querySelector(".cmplz-categories").classList.contains("cmplz-fade-in")?(cmplz_banner.classList.remove("cmplz-categories-visible"),cmplz_banner.querySelector(".cmplz-categories").classList.remove("cmplz-fade-in"),cmplz_banner.querySelector(".cmplz-view-preferences").style.display="block",cmplz_banner.querySelector(".cmplz-save-preferences").style.display="none"):(cmplz_banner.classList.add("cmplz-categories-visible"),cmplz_banner.querySelector(".cmplz-categories").classList.add("cmplz-fade-in"),cmplz_banner.querySelector(".cmplz-view-preferences").style.display="none",cmplz_banner.querySelector(".cmplz-save-preferences").style.display="block",(e=cmplz_banner.querySelector(".cmplz-categories .cmplz-category"))&&(e=e.querySelector(".cmplz-category-toggle"))&&e.focus())}),cmplz_add_event("click",".cmplz-category-toggle",function(e){var t,e=e.target.closest(".cmplz-category-toggle");e&&(t="true"===e.getAttribute("aria-expanded"),e.setAttribute("aria-expanded",String(!t)),e=e.closest(".cmplz-category"))&&(e=e.querySelector(".cmplz-description"))&&(e.hidden=t)}),cmplz_add_event("change",".cmplz-manage-consent-container .cmplz-category",function(){for(var e in cmplz_categories){var t;cmplz_categories.hasOwnProperty(e)&&(e=cmplz_categories[e],t=document.querySelector(".cmplz-manage-consent-container input.cmplz-"+e))&&(t.checked?cmplz_set_consent(e,"allow"):cmplz_set_consent(e,"deny"),cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status())}}),cmplz_add_event("click",".cmplz-deny",function(e){e.preventDefault(),cmplz_set_banner_status("dismissed"),cmplz_deny_all()}),cmplz_add_event("click","button.cmplz-manage-settings",function(e){e.preventDefault();var e=document.querySelector(".cmplz-cookiebanner .cmplz-categories"),t=document.querySelector(".cmplz-save-settings"),c=document.querySelector("button.cmplz-manage-settings");cmplz_is_hidden(e)?(t.style.display="block",c.style.display="none",e.style.display="block"):(t.style.display="none",c.style.display="block",e.style.display="none")}),cmplz_add_event("click","button.cmplz-manage-consent",function(e){e.preventDefault(),cmplz_set_banner_status("show")}),cmplz_add_event("keypress",".cmplz-banner-slider label",function(e){32==(e.keyCode||e.which)&&document.activeElement.click()}),cmplz_add_event("keypress",".cmplz-cookiebanner .cmplz-header .cmplz-close",function(e){13==(e.keyCode||e.which)&&document.activeElement.click()});let cmplz_has_wp_video=document.querySelector(".cmplz-wp-video-shortcode"),cmplz_times_checked=0;void 0!==window.jQuery&&jQuery(document).ready(function(i){if(cmplz_has_wp_video){document.addEventListener("cmplz_enable_category",function(){t()});let e=setInterval(function(){cmplz_times_checked+=1,document.querySelector(".cmplz-wp-video-shortcode")&&cmplz_times_checked<100?t():clearInterval(e)},500)}function t(){if(document.querySelector(".cmplz-wp-video-shortcode")){var e,t,n,o=cmplz_accepted_categories(),a=cmplz_get_all_service_consents(),r=[];for(e in o)if(o.hasOwnProperty(e)){var l=o[e];if("functional"===l)break;r.push('.cmplz-wp-video-shortcode[data-category="'+l+'"]')}for(t in a)a.hasOwnProperty(t)&&r.push('.cmplz-wp-video-shortcode[data-service="'+t+'"]');n=r.join(",");let c=!1;0<n.length&&document.querySelectorAll(n).forEach(e=>{c=!0,e.setAttribute("controls","controls"),e.classList.add("wp-video-shortcode","cmplz-processed"),e.classList.remove("cmplz-wp-video-shortcode"),e.closest(".cmplz-wp-video").classList.remove("cmplz-wp-video");var t=e.closest(".wp-video").querySelector(".cmplz-blocked-content-notice");t&&t.parentElement.removeChild(t),e.classList.remove("cmplz-blocked-content-container")}),c&&(window.wp.mediaelement?window.wp.mediaelement.initialize():(n={videoWidth:"100%",videoHeight:"100%",enableAutosize:!0},i(".wp-video-shortcode").mediaelementplayer(n)))}}function c(e){e=i(e);"function"==typeof e.parent().fitVids&&e.parent().fitVids()}document.querySelectorAll(".cmplz-video.cmplz-activated").forEach(e=>{c(e)}),document.addEventListener("cmplz_enable_category",function(){document.querySelectorAll(".cmplz-video.cmplz-activated").forEach(e=>{c(e)})})});