/* @license MIT https://raw.githubusercontent.com/jquery/jquery/3.7.0/LICENSE.txt */ /*! jQuery v3.7.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.0",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},R=function(){V()},M=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&z(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function X(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&M(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function U(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function z(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",R),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Me(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="
",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return R(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return R(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0 script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');window.drupalSettings={};if(settingsElement!==null)window.drupalSettings=JSON.parse(settingsElement.textContent);})();; window.Drupal={behaviors:{},locale:{}};(function(Drupal,drupalSettings,drupalTranslations,console,Proxy,Reflect){Drupal.throwError=function(error){setTimeout(()=>{throw error;},0);};Drupal.attachBehaviors=function(context,settings){context=context||document;settings=settings||drupalSettings;const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].attach==='function')try{behaviors[i].attach(context,settings);}catch(e){Drupal.throwError(e);}});};Drupal.detachBehaviors=function(context,settings,trigger){context=context||document;settings=settings||drupalSettings;trigger=trigger||'unload';const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].detach==='function')try{behaviors[i].detach(context,settings,trigger);}catch(e){Drupal.throwError(e);}});};Drupal.checkPlain=function(str){str=str.toString().replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"').replace(/'/g,''');return str;};Drupal.formatString=function(str,args){const processedArgs={};Object.keys(args||{}).forEach((key)=>{switch(key.charAt(0)){case '@':processedArgs[key]=Drupal.checkPlain(args[key]);break;case '!':processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal.theme('placeholder',args[key]);break;}});return Drupal.stringReplace(str,processedArgs,null);};Drupal.stringReplace=function(str,args,keys){if(str.length===0)return str;if(!Array.isArray(keys)){keys=Object.keys(args||{});keys.sort((a,b)=>a.length-b.length);}if(keys.length===0)return str;const key=keys.pop();const fragments=str.split(key);if(keys.length){for(let i=0;i{if(drupalSettings.suppressDeprecationErrors===false&&typeof console!=='undefined'&&console.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(func in Drupal.theme)return Drupal.theme[func](...args);};Drupal.theme.placeholder=function(str){return `${Drupal.checkPlain(str)}`;};})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);; if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){const domReady=(callback)=>{const listener=()=>{callback();document.removeEventListener('DOMContentLoaded',listener);};if(document.readyState!=='loading')setTimeout(callback,0);else document.addEventListener('DOMContentLoaded',listener);};domReady(()=>{Drupal.attachBehaviors(document,drupalSettings);});})(Drupal,window.drupalSettings);; (function($,Drupal,drupalSettings,once){'use strict';Drupal.behaviors.initColorbox={attach:function(context,settings){if(!$.isFunction($.colorbox)||typeof settings.colorbox==='undefined')return;if(settings.colorbox.mobiledetect&&window.matchMedia){var mq=window.matchMedia('(max-device-width: '+settings.colorbox.mobiledevicewidth+')');if(mq.matches){$.colorbox.remove();return;}}settings.colorbox.rel=function(){return $(this).data('colorbox-gallery');};$(once('init-colorbox','.colorbox',context)).each(function(){var extendParams={photo:true};var title=$(this).attr('title');if(title)extendParams.title=Drupal.colorbox.sanitizeMarkup(title);$(this).colorbox($.extend({},settings.colorbox,extendParams));});$('.colorbox',context).colorbox({onComplete:function(e){var focus=$('#cboxContent').find('#cboxPrevious').css('display')!=='none'?$('#cboxContent').find('#cboxPrevious'):$('#cboxContent').find('#cboxClose');focus.focus();$('#cboxContent').on('keydown',function(e){var keyCode=e.keyCode||e.which;var firstElement=$('#cboxContent').find('#cboxPrevious').last().is(':focus');var lastElement=$('#cboxContent').find('#cboxClose').first().is(':focus');if(keyCode===9&&!e.shiftKey&&lastElement){e.preventDefault();$('#cboxContent').find('#cboxPrevious').first().focus();}else{if(keyCode===9&&e.shiftKey&&firstElement){e.preventDefault();$('#cboxContent').find('#cboxClose').first().focus();}}});}});}};if(!Drupal.hasOwnProperty('colorbox'))Drupal.colorbox={};Drupal.colorbox.sanitizeMarkup=function(markup){if(typeof DOMPurify!=='undefined'){var purifyConfig={ALLOWED_TAGS:['a','b','strong','i','em','u','cite','code','br'],ALLOWED_ATTR:['href','hreflang','title','target']};if(drupalSettings.hasOwnProperty('dompurify_custom_config'))purifyConfig=drupalSettings.dompurify_custom_config;return DOMPurify.sanitize(markup,purifyConfig);}else return Drupal.checkPlain(markup);};})(jQuery,Drupal,drupalSettings,once);; (function($){Drupal.behaviors.initColorboxDefaultStyle={attach:function(context,settings){$(context).bind('cbox_complete',function(){if($('#cboxTitle:empty',context).length==false){$('#cboxLoadedContent img',context).bind('mouseover',function(){$('#cboxTitle',context).slideDown();});$('#cboxOverlay',context).bind('mouseover',function(){$('#cboxTitle',context).slideUp();});}else $('#cboxTitle',context).hide();});}};})(jQuery);; /* @license MIT https://github.com/jackmoore/colorbox/blob/master/LICENSE.md */ /*! Colorbox 1.6.4 license: MIT http://www.jacklmoore.com/colorbox */ (function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!U){U=$=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("
"),w()}}function p(){x||(V=!1,E=t(i),x=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),L=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),y=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),R=n(se,"Current"),P=t('
');var r=e("#foundationClearingHolder"),i=this.get_data(n),s=n.detach(),o={grid:'",viewing:i.templates.viewing},u='
'+o.viewing+o.grid+"
";return r.after(u).remove();},open:function(e,t,n){var r=n.closest(".clearing-assembled"),i=r.find("div").first(),s=i.find(".visible-img"),o=s.find("img").not(e);this.locked()||(o.attr("src",this.load(e)).css("visibility","hidden"),this.loaded(o,function(){o.css("visibility","visible"),r.addClass("clearing-blackout"),i.addClass("clearing-container"),s.show(),this.fix_height(n).caption(s.find(".clearing-caption"),e).center(o).shift(t,n,function(){n.siblings().removeClass("visible"),n.addClass("visible");});}.bind(this)));},close:function(t,n){t.preventDefault();var r=function(e){return /blackout/.test(e.selector)?e:e.closest(".clearing-blackout");}(e(n)),i,s;return n===t.target&&r&&(i=r.find("div").first(),s=i.find(".visible-img"),this.settings.prev_index=0,r.find("ul[data-clearing]").attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),i.removeClass("clearing-container"),s.hide()),!1;},is_open:function(e){return e.parent().prop("style").length>0;},keydown:function(t){var n=e(".clearing-blackout").find("ul[data-clearing]");t.which===39&&this.go(n,"next"),t.which===37&&this.go(n,"prev"),t.which===27&&e("a.clearing-close").trigger("click");},nav:function(t,n){var r=e(".clearing-blackout").find("ul[data-clearing]");t.preventDefault(),this.go(r,n);},resize:function(){var t=e(".clearing-blackout .visible-img").find("img");t.length&&this.center(t);},fix_height:function(t){var n=t.parent().children(),r=this;return n.each(function(){var t=e(this),n=t.find("img");t.height()>r.outerHeight(n)&&t.addClass("fix-height");}).closest("ul").width(n.length*100+"%"),this;},update_paddles:function(e){var t=e.closest(".carousel").siblings(".visible-img");e.next().length>0?t.find(".clearing-main-next").removeClass("disabled"):t.find(".clearing-main-next").addClass("disabled"),e.prev().length>0?t.find(".clearing-main-prev").removeClass("disabled"):t.find(".clearing-main-prev").addClass("disabled");},center:function(e){return this.rtl?e.css({marginRight:-(this.outerWidth(e)/2),marginTop:-(this.outerHeight(e)/2)}):e.css({marginLeft:-(this.outerWidth(e)/2),marginTop:-(this.outerHeight(e)/2)}),this;},load:function(e){if(e[0].nodeName==="A")var t=e.attr("href");else var t=e.parent().attr("href");return this.preload(e),t?t:e.attr("src");},preload:function(e){this.img(e.closest("li").next()).img(e.closest("li").prev());},loaded:function(e,t){function n(){t();}function r(){this.one("load",n);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var e=this.attr("src"),t=e.match(/\?/)?"&":"?";t+="random="+(new Date()).getTime(),this.attr("src",e+t);}}if(!e.attr("src")){n();return;}e[0].complete||e[0].readyState===4?n():r.call(e);},img:function(e){if(e.length){var t=new Image(),n=e.find("a");n.length?t.src=n.attr("href"):t.src=e.find("img").attr("src");}return this;},caption:function(e,t){var n=t.data("caption");return n?e.html(n).show():e.text("").hide(),this;},go:function(e,t){var n=e.find(".visible"),r=n[t]();r.length&&r.find("img").trigger("click",[n,r]);},shift:function(e,t,n){var r=t.parent(),i=this.settings.prev_index||t.index(),s=this.direction(r,e,t),o=parseInt(r.css("left"),10),u=this.outerWidth(t),a;t.index()!==i&&!/skip/.test(s)?/left/.test(s)?(this.lock(),r.animate({left:o+u},300,this.unlock())):/right/.test(s)&&(this.lock(),r.animate({left:o-u},300,this.unlock())):/skip/.test(s)&&(a=t.index()-this.settings.up_count,this.lock(),a>0?r.animate({left:-(a*u)},300,this.unlock()):r.animate({left:0},300,this.unlock())),n();},direction:function(t,n,r){var i=t.find("li"),s=this.outerWidth(i)+this.outerWidth(i)/4,o=Math.floor(this.outerWidth(e(".clearing-container"))/s)-1,u=i.index(r),a;return this.settings.up_count=o,this.adjacent(this.settings.prev_index,u)?u>o&&u>this.settings.prev_index?a="right":u>o-1&&u<=this.settings.prev_index?a="left":a=!1:a="skip",this.settings.prev_index=u,a;},adjacent:function(e,t){for(var n=t+1;n>=t-1;n--)if(n===e)return !0;return !1;},lock:function(){this.settings.locked=!0;},unlock:function(){this.settings.locked=!1;},locked:function(){return this.settings.locked;},outerHTML:function(e){return e.outerHTML||(new XMLSerializer()).serializeToString(e);},off:function(){e(this.scope).off(".fndtn.clearing"),e(t).off(".fndtn.clearing"),this.remove_data(),this.settings.init=!1;},reflow:function(){this.init();}};}(Foundation.zj,this,this.document),function(e,t,n){function i(e){return e;}function s(e){return decodeURIComponent(e.replace(r," "));}var r=/\+/g,o=e.cookie=function(r,u,a){if(u!==n){a=e.extend({},o.defaults,a),u===null&&(a.expires=-1);if(typeof a.expires=="number"){var f=a.expires,l=a.expires=new Date();l.setDate(l.getDate()+f);}return u=o.json?JSON.stringify(u):String(u),t.cookie=[encodeURIComponent(r),"=",o.raw?u:encodeURIComponent(u),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("");}var c=o.raw?i:s,h=t.cookie.split("; ");for(var p=0,d=h.length;p0&&(e(t.target).is("[data-dropdown-content]")||e.contains(n.first()[0],t.target))){t.stopPropagation();return;}r.close.call(r,e("[data-dropdown-content]"));}),e(t).on("resize.fndtn.dropdown",r.throttle(function(){r.resize.call(r);},50)).trigger("resize"),this.settings.init=!0;},close:function(t){var n=this;t.each(function(){e(this).hasClass(n.settings.activeClass)&&(e(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(n.settings.activeClass),e(this).trigger("closed"));});},open:function(e,t){this.css(e.addClass(this.settings.activeClass),t),e.trigger("opened");},toggle:function(t){var n=e("#"+t.data("dropdown"));if(n.length===0)return;this.close.call(this,e("[data-dropdown-content]").not(n)),n.hasClass(this.settings.activeClass)?this.close.call(this,n):(this.close.call(this,e("[data-dropdown-content]")),this.open.call(this,n,t));},resize:function(){var t=e("[data-dropdown-content].open"),n=e("[data-dropdown='"+t.attr("id")+"']");t.length&&n.length&&this.css(t,n);},css:function(n,r){var i=n.offsetParent(),s=r.offset();s.top-=i.offset().top,s.left-=i.offset().left;if(this.small())n.css({position:"absolute",width:"95%","max-width":"none",top:s.top+this.outerHeight(r)}),n.css(Foundation.rtl?"right":"left","2.5%");else{if(!Foundation.rtl&&e(t).width()>this.outerWidth(n)+r.offset().left&&!this.data_options(r).align_right){var o=s.left;n.hasClass("right")&&n.removeClass("right");}else{n.hasClass("right")||n.addClass("right");var o=s.left-(this.outerWidth(n)-this.outerWidth(r));}n.attr("style","").css({position:"absolute",top:s.top+this.outerHeight(r),left:o});}return n;},small:function(){return e(t).width()<768||e("html").hasClass("lt-ie9");},off:function(){e(this.scope).off(".fndtn.dropdown"),e("html, body").off(".fndtn.dropdown"),e(t).off(".fndtn.dropdown"),e("[data-dropdown-content]").off(".fndtn.dropdown"),this.settings.init=!1;},reflow:function(){}};}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.forms={name:"forms",version:"4.3.2",cache:{},settings:{disable_class:"no-custom",last_combo:null},init:function(t,n,r){return typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||this.events(),this.assemble(),this.settings.init):this[n].call(this,r);},assemble:function(){var t=this;e('form.custom input[type="radio"],[type="checkbox"]',e(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).each(function(e,n){t.set_custom_markup(n);}).change(function(){t.set_custom_markup(this);}),e("form.custom select",e(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).not("[multiple=multiple]").each(this.append_custom_select);},events:function(){var r=this;e(this.scope).on("click.fndtn.forms","form.custom span.custom.checkbox",function(t){t.preventDefault(),t.stopPropagation(),r.toggle_checkbox(e(this));}).on("click.fndtn.forms","form.custom span.custom.radio",function(t){t.preventDefault(),t.stopPropagation(),r.toggle_radio(e(this));}).on("change.fndtn.forms","form.custom select",function(t,n){if(e(this).is('[data-customforms="disabled"]'))return;r.refresh_custom_select(e(this),n);}).on("click.fndtn.forms","form.custom label",function(t){if(e(t.target).is("label")){var n=e("#"+r.escape(e(this).attr("for"))).not('[data-customforms="disabled"]'),i,s;n.length!==0&&(n.attr("type")==="checkbox"?(t.preventDefault(),i=e(this).find("span.custom.checkbox"),i.length===0&&(i=n.add(this).siblings("span.custom.checkbox").first()),r.toggle_checkbox(i)):n.attr("type")==="radio"&&(t.preventDefault(),s=e(this).find("span.custom.radio"),s.length===0&&(s=n.add(this).siblings("span.custom.radio").first()),r.toggle_radio(s)));}}).on("mousedown.fndtn.forms","form.custom div.custom.dropdown",function(){return !1;}).on("click.fndtn.forms","form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector",function(t){var n=e(this),s=n.closest("div.custom.dropdown"),o=i(s,"select");s.hasClass("open")||e(r.scope).trigger("click"),t.preventDefault();if(!1===o.is(":disabled"))return s.toggleClass("open"),s.hasClass("open")?e(r.scope).on("click.fndtn.forms.customdropdown",function(){s.removeClass("open"),e(r.scope).off(".fndtn.forms.customdropdown");}):e(r.scope).on(".fndtn.forms.customdropdown"),!1;}).on("click.fndtn.forms touchend.fndtn.forms","form.custom div.custom.dropdown li",function(t){var r=e(this),s=r.closest("div.custom.dropdown"),o=i(s,"select"),u=0;t.preventDefault(),t.stopPropagation();if(!e(this).hasClass("disabled")){e("div.dropdown").not(s).removeClass("open");var a=r.closest("ul").find("li.selected");a.removeClass("selected"),r.addClass("selected"),s.removeClass("open").find("a.current").text(r.text()),r.closest("ul").find("li").each(function(e){r[0]===this&&(u=e);}),o[0].selectedIndex=u,o.data("prevalue",a.html());if(typeof n.createEvent!="undefined"){var f=n.createEvent("HTMLEvents");f.initEvent("change",!0,!0),o[0].dispatchEvent(f);}else o[0].fireEvent("onchange");}}),e(t).on("keydown",function(t){var r=n.activeElement,s=Foundation.libs.forms,o=e(".custom.dropdown"),u=i(o,"select"),a=e("input,select,textarea,button");if(o.length>0&&o.hasClass("open")){t.preventDefault(),t.which===9&&(e(a[e(a).index(u)+1]).focus(),o.removeClass("open")),t.which===13&&o.find("li.selected").trigger("click"),t.which===27&&o.removeClass("open");if(t.which>=65&&t.which<=90){var f=s.go_to(o,t.which),l=o.find("li.selected");f&&(l.removeClass("selected"),s.scrollTo(f.addClass("selected"),300));}if(t.which===38){var l=o.find("li.selected"),c=l.prev(":not(.disabled)");c.length>0&&(c.parent()[0].scrollTop=c.parent().scrollTop()-s.outerHeight(c),l.removeClass("selected"),c.addClass("selected"));}else{if(t.which===40){var l=o.find("li.selected"),f=l.next(":not(.disabled)");f.length>0&&(f.parent()[0].scrollTop=f.parent().scrollTop()+s.outerHeight(f),l.removeClass("selected"),f.addClass("selected"));}}}}),e(t).on("keyup",function(t){var r=n.activeElement,i=e(".custom.dropdown");r===i.find(".current")[0]&&i.find(".selector").focus().click();}),this.settings.init=!0;},go_to:function(e,t){var n=e.find("li"),r=n.length;if(r>0)for(var i=0;i').insertAfter(n)),i.toggleClass("checked",n.is(":checked")),i.toggleClass("disabled",n.is(":disabled"));},append_custom_select:function(t,n){var r=Foundation.libs.forms,i=e(n),s=i.next("div.custom.dropdown"),o=s.find("ul"),u=s.find(".current"),a=s.find(".selector"),f=i.find("option"),l=f.filter(":selected"),c=i.attr("class")?i.attr("class").split(" "):[],h=0,p="",d,v=!1;if(s.length===0){var m=i.hasClass("small")?"small":i.hasClass("medium")?"medium":i.hasClass("large")?"large":i.hasClass("expand")?"expand":"";s=e('
    '),a=s.find(".selector"),o=s.find("ul"),p=f.map(function(){var t=e(this).attr("class")?e(this).attr("class"):"";return "
  • "+e(this).html()+"
  • ";}).get().join(""),o.append(p),v=s.prepend(''+(l.html()||"")+"").find(".current"),i.after(s).addClass("hidden-field");}else p=f.map(function(){return "
  • "+e(this).html()+"
  • ";}).get().join(""),o.html("").append(p);r.assign_id(i,s),s.toggleClass("disabled",i.is(":disabled")),d=o.find("li"),r.cache[s.data("id")]=d.length,f.each(function(t){this.selected&&(d.eq(t).addClass("selected"),v&&v.html(e(this).html())),e(this).is(":disabled")&&d.eq(t).addClass("disabled");});if(!s.is(".small, .medium, .large, .expand")){s.addClass("open");var r=Foundation.libs.forms;r.hidden_fix.adjust(o),h=r.outerWidth(d)>h?r.outerWidth(d):h,Foundation.libs.forms.hidden_fix.reset(),s.removeClass("open");}},assign_id:function(e,t){var n=[+(new Date()),Foundation.random_str(5)].join("-");e.attr("data-id",n),t.attr("data-id",n);},refresh_custom_select:function(t,n){var r=this,i=0,s=t.next(),o=t.find("option"),u=s.find("ul"),a=s.find("li");if(o.length!==this.cache[s.data("id")]||n){u.html("");var f="";o.each(function(){var t=e(this),n=t.html(),r=this.selected;f+='
  • '+n+"
  • ",r&&s.find(".current").html(n);}),u.html(f),s.removeAttr("style"),u.removeAttr("style"),s.find("li").each(function(){s.addClass("open"),r.outerWidth(e(this))>i&&(i=r.outerWidth(e(this))),s.removeClass("open");}),a=s.find("li"),this.cache[s.data("id")]=a.length;}},refresh_custom_selection:function(t){var n=e("option:selected",t).text();e("a.current",t.next()).text(n);},toggle_checkbox:function(e){var t=e.prev(),n=t[0];!1===t.is(":disabled")&&(n.checked=n.checked?!1:!0,e.toggleClass("checked"),t.trigger("change"));},toggle_radio:function(e){var t=e.prev(),n=t.closest("form.custom"),r=t[0];!1===t.is(":disabled")&&(n.find('input[type="radio"][name="'+this.escape(t.attr("name"))+'"]').next().not(e).removeClass("checked"),e.hasClass("checked")||e.toggleClass("checked"),r.checked=e.hasClass("checked"),t.trigger("change"));},escape:function(e){return e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):"";},hidden_fix:{tmp:[],hidden:null,adjust:function(t){var n=this;n.hidden=t.parents(),n.hidden=n.hidden.add(t).filter(":hidden"),n.hidden.each(function(){var t=e(this);n.tmp.push(t.attr("style")),t.css({visibility:"hidden",display:"block"});});},reset:function(){var t=this;t.hidden.each(function(n){var i=e(this),s=t.tmp[n];s===r?i.removeAttr("style"):i.attr("style",s);}),t.tmp=[],t.hidden=null;}},off:function(){e(this.scope).off(".fndtn.forms");},reflow:function(){}};var i=function(t,n){var t=t.prev();while(t.length){if(t.is(n))return t;t=t.prev();}return e();};}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";var i=i||!1;Foundation.libs.joyride={name:"joyride",version:"4.3.2",defaults:{expose:!1,modal:!1,tipLocation:"bottom",nubPosition:"auto",scrollSpeed:300,timer:0,startTimerOnClick:!0,startOffset:0,nextButton:!0,tipAnimation:"fade",pauseAfter:[],exposed:[],tipAnimationFadeSpeed:300,cookieMonster:!1,cookieName:"joyride",cookieDomain:!1,cookieExpires:365,tipContainer:"body",postRideCallback:function(){},postStepCallback:function(){},preStepCallback:function(){},preRideCallback:function(){},postExposeCallback:function(){},template:{link:'×',timer:'
    ',tip:'
    ',wrapper:'
    ',button:'',modal:'
    ',expose:'
    ',exposeCover:'
    '},exposeAddClass:""},settings:{},init:function(t,n,r){return this.scope=t||this.scope,Foundation.inherit(this,"throttle data_options scrollTo scrollLeft delay"),typeof n=="object"?e.extend(!0,this.settings,this.defaults,n):e.extend(!0,this.settings,this.defaults,r),typeof n!="string"?(this.settings.init||this.events(),this.settings.init):this[n].call(this,r);},events:function(){var n=this;e(this.scope).on("click.joyride",".joyride-next-tip, .joyride-modal-bg",function(e){e.preventDefault(),this.settings.$li.next().length<1?this.end():this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show());}.bind(this)).on("click.joyride",".joyride-close-tip",function(e){e.preventDefault(),this.end();}.bind(this)),e(t).on("resize.fndtn.joyride",n.throttle(function(){if(e("[data-joyride]").length>0&&n.settings.$next_tip){if(n.settings.exposed.length>0){var t=e(n.settings.exposed);t.each(function(){var t=e(this);n.un_expose(t),n.expose(t);});}n.is_phone()?n.pos_phone():n.pos_default(!1,!0);}},100)),this.settings.init=!0;},start:function(){var t=this,n=e(this.scope).find("[data-joyride]"),r=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],i=r.length;this.settings.init||this.events(),this.settings.$content_el=n,this.settings.$body=e(this.settings.tipContainer),this.settings.body_offset=e(this.settings.tipContainer).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,this.settings.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},typeof e.cookie!="function"&&(this.settings.cookieMonster=!1);if(!this.settings.cookieMonster||this.settings.cookieMonster&&e.cookie(this.settings.cookieName)===null)this.settings.$tip_content.each(function(n){var s=e(this);e.extend(!0,t.settings,t.data_options(s));for(var o=i-1;o>=0;o--)t.settings[r[o]]=parseInt(t.settings[r[o]],10);t.create({$li:s,index:n});}),!this.settings.startTimerOnClick&&this.settings.timer>0?(this.show("init"),this.startTimer()):this.show("init");},resume:function(){this.set_li(),this.show();},tip_template:function(t){var n,r;return t.tip_class=t.tip_class||"",n=e(this.settings.template.tip).addClass(t.tip_class),r=e.trim(e(t.li).html())+this.button_text(t.button_text)+this.settings.template.link+this.timer_instance(t.index),n.append(e(this.settings.template.wrapper)),n.first().attr("data-index",t.index),e(".joyride-content-wrapper",n).append(r),n[0];},timer_instance:function(t){var n;return t===0&&this.settings.startTimerOnClick&&this.settings.timer>0||this.settings.timer===0?n="":n=this.outerHTML(e(this.settings.template.timer)[0]),n;},button_text:function(t){return this.settings.nextButton?(t=e.trim(t)||"Next",t=this.outerHTML(e(this.settings.template.button).append(t)[0])):t="",t;},create:function(t){var n=t.$li.attr("data-button")||t.$li.attr("data-text"),r=t.$li.attr("class"),i=e(this.tip_template({tip_class:r,index:t.index,button_text:n,li:t.$li}));e(this.settings.tipContainer).append(i);},show:function(t){var n=null;this.settings.$li===r||e.inArray(this.settings.$li.index(),this.settings.pauseAfter)===-1?(this.settings.paused?this.settings.paused=!1:this.set_li(t),this.settings.attempts=0,this.settings.$li.length&&this.settings.$target.length>0?(t&&(this.settings.preRideCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.preStepCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tipSettings=e.extend(this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tipSettings.tipLocationPattern=this.settings.tipLocationPatterns[this.settings.tipSettings.tipLocation],/body/i.test(this.settings.$target.selector)||this.scroll_to(),this.is_phone()?this.pos_phone(!0):this.pos_default(!0),n=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tipAnimation)?(n.width(0),this.settings.timer>0?(this.settings.$next_tip.show(),this.delay(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear");}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tipAnimation)&&(n.width(0),this.settings.timer>0?(this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed).show(),this.delay(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear");}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed)),this.settings.$current_tip=this.settings.$next_tip):this.settings.$li&&this.settings.$target.length<1?this.show():this.end()):this.settings.paused=!0;},is_phone:function(){return i?i.mq("only screen and (max-width: 767px)")||e(".lt-ie9").length>0:e(t).width()<767;},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.modal||e(".joyride-modal-bg").hide(),this.settings.$current_tip.css("visibility","hidden"),setTimeout(e.proxy(function(){this.hide(),this.css("visibility","visible");},this.settings.$current_tip),0),this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip);},set_li:function(e){e?(this.settings.$li=this.settings.$tip_content.eq(this.settings.startOffset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(this.settings.$li=this.settings.$li.next(),this.set_next_tip()),this.set_target();},set_next_tip:function(){this.settings.$next_tip=e(".joyride-tip-guide[data-index='"+this.settings.$li.index()+"']"),this.settings.$next_tip.data("closed","");},set_target:function(){var t=this.settings.$li.attr("data-class"),r=this.settings.$li.attr("data-id"),i=function(){return r?e(n.getElementById(r)):t?e("."+t).first():e("body");};this.settings.$target=i();},scroll_to:function(){var n,r;n=e(t).height()/2,r=Math.ceil(this.settings.$target.offset().top-n+this.outerHeight(this.settings.$next_tip)),r>0&&this.scrollTo(e("html, body"),r,this.settings.scrollSpeed);},paused:function(){return e.inArray(this.settings.$li.index()+1,this.settings.pauseAfter)===-1;},restart:function(){this.hide(),this.settings.$li=r,this.show("init");},pos_default:function(n,r){var i=Math.ceil(e(t).height()/2),s=this.settings.$next_tip.offset(),o=this.settings.$next_tip.find(".joyride-nub"),u=Math.ceil(this.outerWidth(o)/2),a=Math.ceil(this.outerHeight(o)/2),f=n||!1;f&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),typeof r=="undefined"&&(r=!1);if(!/body/i.test(this.settings.$target.selector)){if(this.bottom()){var l=this.settings.$target.offset().left;Foundation.rtl&&(l=this.settings.$target.offset().width-this.settings.$next_tip.width()+l),this.settings.$next_tip.css({top:this.settings.$target.offset().top+a+this.outerHeight(this.settings.$target),left:l}),this.nub_position(o,this.settings.tipSettings.nubPosition,"top");}else if(this.top()){var l=this.settings.$target.offset().left;Foundation.rtl&&(l=this.settings.$target.offset().width-this.settings.$next_tip.width()+l),this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.outerHeight(this.settings.$next_tip)-a,left:l}),this.nub_position(o,this.settings.tipSettings.nubPosition,"bottom");}else this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.outerWidth(this.settings.$target)+this.settings.$target.offset().left+u}),this.nub_position(o,this.settings.tipSettings.nubPosition,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.settings.$target.offset().left-this.outerWidth(this.settings.$next_tip)-u}),this.nub_position(o,this.settings.tipSettings.nubPosition,"right"));!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts0&&arguments[0] instanceof e)i=arguments[0];else{if(!this.settings.$target||!!/body/i.test(this.settings.$target.selector))return !1;i=this.settings.$target;}if(i.length<1)return t.console&&console.error("element not valid",i),!1;n=e(this.settings.template.expose),this.settings.$body.append(n),n.css({top:i.offset().top,left:i.offset().left,width:this.outerWidth(i,!0),height:this.outerHeight(i,!0)}),r=e(this.settings.template.exposeCover),s={zIndex:i.css("z-index"),position:i.css("position")},o=i.attr("class")==null?"":i.attr("class"),i.css("z-index",parseInt(n.css("z-index"))+1),s.position=="static"&&i.css("position","relative"),i.data("expose-css",s),i.data("orig-class",o),i.attr("class",o+" "+this.settings.exposeAddClass),r.css({top:i.offset().top,left:i.offset().left,width:this.outerWidth(i,!0),height:this.outerHeight(i,!0)}),this.settings.$body.append(r),n.addClass(u),r.addClass(u),i.data("expose",u),this.settings.postExposeCallback(this.settings.$li.index(),this.settings.$next_tip,i),this.add_exposed(i);},un_expose:function(){var n,r,i,s,o,u=!1;if(arguments.length>0&&arguments[0] instanceof e)r=arguments[0];else{if(!this.settings.$target||!!/body/i.test(this.settings.$target.selector))return !1;r=this.settings.$target;}if(r.length<1)return t.console&&console.error("element not valid",r),!1;n=r.data("expose"),i=e("."+n),arguments.length>1&&(u=arguments[1]),u===!0?e(".joyride-expose-wrapper,.joyride-expose-cover").remove():i.remove(),s=r.data("expose-css"),s.zIndex=="auto"?r.css("z-index",""):r.css("z-index",s.zIndex),s.position!=r.css("position")&&(s.position=="static"?r.css("position",""):r.css("position",s.position)),o=r.data("orig-class"),r.attr("class",o),r.removeData("orig-classes"),r.removeData("expose"),r.removeData("expose-z-index"),this.remove_exposed(r);},add_exposed:function(t){this.settings.exposed=this.settings.exposed||[],t instanceof e||typeof t=="object"?this.settings.exposed.push(t[0]):typeof t=="string"&&this.settings.exposed.push(t);},remove_exposed:function(t){var n,r;t instanceof e?n=t[0]:typeof t=="string"&&(n=t),this.settings.exposed=this.settings.exposed||[],r=this.settings.exposed.length;for(var i=0;ia&&(a=u),[n.offset().topn.offset().left];},visible:function(e){var t=e.length;while(t--)if(e[t])return !1;return !0;},nub_position:function(e,t,n){t==="auto"?e.addClass(n):e.addClass(t);},startTimer:function(){this.settings.$li.length?this.settings.automate=setTimeout(function(){this.hide(),this.show(),this.startTimer();}.bind(this),this.settings.timer):clearTimeout(this.settings.automate);},end:function(){this.settings.cookieMonster&&e.cookie(this.settings.cookieName,"ridden",{expires:this.settings.cookieExpires,domain:this.settings.cookieDomain}),this.settings.timer>0&&clearTimeout(this.settings.automate),this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.$next_tip.data("closed",!0),e(".joyride-modal-bg").hide(),this.settings.$current_tip.hide(),this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip),this.settings.postRideCallback(this.settings.$li.index(),this.settings.$current_tip),e(".joyride-tip-guide").remove();},outerHTML:function(e){return e.outerHTML||(new XMLSerializer()).serializeToString(e);},off:function(){e(this.scope).off(".joyride"),e(t).off(".joyride"),e(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),e(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(this.settings.automate),this.settings={};},reflow:function(){}};}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.magellan={name:"magellan",version:"4.3.2",settings:{activeClass:"active",threshold:0},init:function(t,n,r){return this.scope=t||this.scope,Foundation.inherit(this,"data_options"),typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||(this.fixed_magellan=e("[data-magellan-expedition]"),this.set_threshold(),this.last_destination=e("[data-magellan-destination]").last(),this.events()),this.settings.init):this[n].call(this,r);},events:function(){var n=this;e(this.scope).on("arrival.fndtn.magellan","[data-magellan-arrival]",function(t){var r=e(this),i=r.closest("[data-magellan-expedition]"),s=i.attr("data-magellan-active-class")||n.settings.activeClass;r.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(r).removeClass(s),r.addClass(s);}),this.fixed_magellan.on("update-position.fndtn.magellan",function(){var t=e(this);}).trigger("update-position"),e(t).on("resize.fndtn.magellan",function(){this.fixed_magellan.trigger("update-position");}.bind(this)).on("scroll.fndtn.magellan",function(){var r=e(t).scrollTop();n.fixed_magellan.each(function(){var t=e(this);typeof t.data("magellan-top-offset")=="undefined"&&t.data("magellan-top-offset",t.offset().top),typeof t.data("magellan-fixed-position")=="undefined"&&t.data("magellan-fixed-position",!1);var i=r+n.settings.threshold>t.data("magellan-top-offset"),s=t.attr("data-magellan-top-offset");t.data("magellan-fixed-position")!=i&&(t.data("magellan-fixed-position",i),i?(t.addClass("fixed"),t.css({position:"fixed",top:0})):(t.removeClass("fixed"),t.css({position:"",top:""})),i&&typeof s!="undefined"&&s!=0&&t.css({position:"fixed",top:s+"px"}));});}),this.last_destination.length>0&&e(t).on("scroll.fndtn.magellan",function(r){var i=e(t).scrollTop(),s=i+e(t).height(),o=Math.ceil(n.last_destination.offset().top);e("[data-magellan-destination]").each(function(){var t=e(this),r=t.attr("data-magellan-destination"),u=t.offset().top-i;u<=n.settings.threshold&&e("[data-magellan-arrival='"+r+"']").trigger("arrival"),s>=e(n.scope).height()&&o>i&&o0?this.outerHeight(this.fixed_magellan,!0):0);},off:function(){e(this.scope).off(".fndtn.magellan"),e(t).off(".fndtn.magellan");},reflow:function(){}};}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";var i=function(){},s=function(i,s){if(i.hasClass(s.slides_container_class))return this;var f=this,l,c=i,h,p,d,v=0,m,g,y=!1,b=!1;c.children().first().addClass(s.active_slide_class),f.update_slide_number=function(t){s.slide_number&&(h.find("span:first").text(parseInt(t)+1),h.find("span:last").text(c.children().length)),s.bullets&&(p.children().removeClass(s.bullets_active_class),e(p.children().get(t)).addClass(s.bullets_active_class));},f.update_active_link=function(t){var n=e('a[data-orbit-link="'+c.children().eq(t).attr("data-orbit-slide")+'"]');n.parents("ul").find("[data-orbit-link]").removeClass(s.bullets_active_class),n.addClass(s.bullets_active_class);},f.build_markup=function(){c.wrap('
    '),l=c.parent(),c.addClass(s.slides_container_class),s.navigation_arrows&&(l.append(e('').addClass(s.prev_class)),l.append(e('').addClass(s.next_class))),s.timer&&(d=e("
    ").addClass(s.timer_container_class),d.append(""),d.append(e("
    ").addClass(s.timer_progress_class)),d.addClass(s.timer_paused_class),l.append(d)),s.slide_number&&(h=e("
    ").addClass(s.slide_number_class),h.append(" "+s.slide_number_text+" "),l.append(h)),s.bullets&&(p=e("
      ").addClass(s.bullets_container_class),l.append(p),c.children().each(function(t,n){var r=e("
    1. ").attr("data-orbit-slide",t);p.append(r);})),s.stack_on_small&&l.addClass(s.stack_on_small_class),f.update_slide_number(0),f.update_active_link(0);},f._goto=function(t,n){if(t===v)return !1;typeof g=="object"&&g.restart();var r=c.children(),i="next";y=!0,t=r.length?t=0:t<0&&(t=r.length-1);var o=e(r.get(v)),u=e(r.get(t));o.css("zIndex",2),o.removeClass(s.active_slide_class),u.css("zIndex",4).addClass(s.active_slide_class),c.trigger("orbit:before-slide-change"),s.before_slide_change(),f.update_active_link(t);var a=function(){var e=function(){v=t,y=!1,n===!0&&(g=f.create_timer(),g.start()),f.update_slide_number(v),c.trigger("orbit:after-slide-change",[{slide_number:v,total_slides:r.length}]),s.after_slide_change(v,r.length);};c.height()!=u.height()&&s.variable_height?c.animate({height:u.height()},250,"linear",e):e();};if(r.length===1)return a(),!1;var l=function(){i==="next"&&m.next(o,u,a),i==="prev"&&m.prev(o,u,a);};u.height()>c.height()&&s.variable_height?c.animate({height:u.height()},250,"linear",l):l();},f.next=function(e){e.stopImmediatePropagation(),e.preventDefault(),f._goto(v+1);},f.prev=function(e){e.stopImmediatePropagation(),e.preventDefault(),f._goto(v-1);},f.link_custom=function(t){t.preventDefault();var n=e(this).attr("data-orbit-link");if(typeof n=="string"&&(n=e.trim(n))!=""){var r=l.find("[data-orbit-slide="+n+"]");r.index()!=-1&&f._goto(r.index());}},f.link_bullet=function(t){var n=e(this).attr("data-orbit-slide");typeof n=="string"&&(n=e.trim(n))!=""&&f._goto(parseInt(n));},f.timer_callback=function(){f._goto(v+1,!0);},f.compute_dimensions=function(){var t=e(c.children().get(v)),n=t.height();s.variable_height||c.children().each(function(){e(this).height()>n&&(n=e(this).height());}),c.height(n);},f.create_timer=function(){var e=new o(l.find("."+s.timer_container_class),s,f.timer_callback);return e;},f.stop_timer=function(){typeof g=="object"&&g.stop();},f.toggle_timer=function(){var e=l.find("."+s.timer_container_class);e.hasClass(s.timer_paused_class)?(typeof g=="undefined"&&(g=f.create_timer()),g.start()):typeof g=="object"&&g.stop();},f.init=function(){f.build_markup(),s.timer&&(g=f.create_timer(),g.start()),m=new a(s,c),s.animation==="slide"&&(m=new u(s,c)),l.on("click","."+s.next_class,f.next),l.on("click","."+s.prev_class,f.prev),l.on("click","[data-orbit-slide]",f.link_bullet),l.on("click",f.toggle_timer),s.swipe&&l.on("touchstart.fndtn.orbit",function(e){e.touches||(e=e.originalEvent);var t={start_page_x:e.touches[0].pageX,start_page_y:e.touches[0].pageY,start_time:(new Date()).getTime(),delta_x:0,is_scrolling:r};l.data("swipe-transition",t),e.stopPropagation();}).on("touchmove.fndtn.orbit",function(e){e.touches||(e=e.originalEvent);if(e.touches.length>1||e.scale&&e.scale!==1)return;var t=l.data("swipe-transition");typeof t=="undefined"&&(t={}),t.delta_x=e.touches[0].pageX-t.start_page_x,typeof t.is_scrolling=="undefined"&&(t.is_scrolling=!!(t.is_scrolling||Math.abs(t.delta_x)0&&(this.locked=!0,t.trigger("close"),this.toggle_bg(),this.hide(n,this.settings.css.close));},close_targets:function(){var e="."+this.settings.dismissModalClass;return this.settings.closeOnBackgroundClick?e+", ."+this.settings.bgClass:e;},toggle_bg:function(){e("."+this.settings.bgClass).length===0&&(this.settings.bg=e("
      ",{"class":this.settings.bgClass}).appendTo("body")),this.settings.bg.filter(":visible").length>0?this.hide(this.settings.bg):this.show(this.settings.bg);},show:function(n,r){if(r){if(n.parent("body").length===0){var i=n.wrap('
      ').parent();n.on("closed.fndtn.reveal.wrapped",function(){n.detach().appendTo(i),n.unwrap().unbind("closed.fndtn.reveal.wrapped");}),n.detach().appendTo("body");}if(/pop/i.test(this.settings.animation)){r.top=e(t).scrollTop()-n.data("offset")+"px";var s={top:e(t).scrollTop()+n.data("css-top")+"px",opacity:1};return this.delay(function(){return n.css(r).animate(s,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.trigger("opened");}.bind(this)).addClass("open");}.bind(this),this.settings.animationSpeed/2);}if(/fade/i.test(this.settings.animation)){var s={opacity:1};return this.delay(function(){return n.css(r).animate(s,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.trigger("opened");}.bind(this)).addClass("open");}.bind(this),this.settings.animationSpeed/2);}return n.css(r).show().css({opacity:1}).addClass("open").trigger("opened");}return /fade/i.test(this.settings.animation)?n.fadeIn(this.settings.animationSpeed/2):n.show();},hide:function(n,r){if(r){if(/pop/i.test(this.settings.animation)){var i={top:-e(t).scrollTop()-n.data("offset")+"px",opacity:0};return this.delay(function(){return n.animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.css(r).trigger("closed");}.bind(this)).removeClass("open");}.bind(this),this.settings.animationSpeed/2);}if(/fade/i.test(this.settings.animation)){var i={opacity:0};return this.delay(function(){return n.animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.css(r).trigger("closed");}.bind(this)).removeClass("open");}.bind(this),this.settings.animationSpeed/2);}return n.hide().css(r).removeClass("open").trigger("closed");}return /fade/i.test(this.settings.animation)?n.fadeOut(this.settings.animationSpeed/2):n.hide();},close_video:function(t){var n=e(this).find(".flex-video"),r=n.find("iframe");r.length>0&&(r.attr("data-src",r[0].src),r.attr("src","about:blank"),n.hide());},open_video:function(t){var n=e(this).find(".flex-video"),i=n.find("iframe");if(i.length>0){var s=i.attr("data-src");if(typeof s=="string")i[0].src=i.attr("data-src");else{var o=i[0].src;i[0].src=r,i[0].src=o;}n.show();}},cache_offset:function(e){var t=e.show().height()+parseInt(e.css("top"),10);return e.hide(),t;},off:function(){e(this.scope).off(".fndtn.reveal");},reflow:function(){}};}(Foundation.zj,this,this.document),function(e,t,n){"use strict";Foundation.libs.section={name:"section",version:"4.3.2",settings:{deep_linking:!1,small_breakpoint:768,one_up:!0,multi_expand:!1,section_selector:"[data-section]",region_selector:"section, .section, [data-section-region]",title_selector:".title, [data-section-title]",resized_data_attr:"data-section-resized",small_style_data_attr:"data-section-small-style",content_selector:".content, [data-section-content]",nav_selector:'[data-section="vertical-nav"], [data-section="horizontal-nav"]',active_class:"active",callback:function(){}},init:function(t,n,r){var i=this;return Foundation.inherit(this,"throttle data_options position_right offset_right"),typeof n=="object"&&e.extend(!0,i.settings,n),typeof n!="string"?(this.events(),!0):this[n].call(this,r);},events:function(){var r=this,i=[],s=r.settings.section_selector,o=r.settings.region_selector.split(","),u=r.settings.title_selector.split(",");for(var a=0,f=o.length;a"+l+">"+u[c];i.push(p+" a"),i.push(p);}}e(r.scope).on("click.fndtn.section",i.join(","),function(t){var n=e(this).closest(r.settings.title_selector);r.close_navs(n),n.siblings(r.settings.content_selector).length>0&&r.toggle_active.call(n[0],t);}),e(t).on("resize.fndtn.section",r.throttle(function(){r.resize();},30)).on("hashchange.fndtn.section",r.set_active_from_hash),e(n).on("click.fndtn.section",function(t){if(t.isPropagationStopped&&t.isPropagationStopped())return;if(t.target===n)return;r.close_navs(e(t.target).closest(r.settings.title_selector));}),e(t).triggerHandler("resize.fndtn.section"),e(t).triggerHandler("hashchange.fndtn.section");},close_navs:function(t){var n=Foundation.libs.section,r=e(n.settings.nav_selector).filter(function(){return !e.extend({},n.settings,n.data_options(e(this))).one_up;});if(t.length>0){var i=t.parent().parent();if(n.is_horizontal_nav(i)||n.is_vertical_nav(i))r=r.filter(function(){return this!==i[0];});}r.children(n.settings.region_selector).removeClass(n.settings.active_class);},toggle_active:function(t){var n=e(this),r=Foundation.libs.section,i=n.parent(),s=n.siblings(r.settings.content_selector),o=i.parent(),u=e.extend({},r.settings,r.data_options(o)),a=o.children(r.settings.region_selector).filter("."+r.settings.active_class);!u.deep_linking&&s.length>0&&t.preventDefault(),t.stopPropagation();if(!i.hasClass(r.settings.active_class)){if(!r.is_accordion(o)||r.is_accordion(o)&&!r.settings.multi_expand)a.removeClass(r.settings.active_class),a.trigger("closed.fndtn.section");i.addClass(r.settings.active_class),r.resize(i.find(r.settings.section_selector).not("["+r.settings.resized_data_attr+"]"),!0),i.trigger("opened.fndtn.section");}else{if(i.hasClass(r.settings.active_class)&&r.is_accordion(o)||!u.one_up&&(r.small(o)||r.is_vertical_nav(o)||r.is_horizontal_nav(o)||r.is_accordion(o)))i.removeClass(r.settings.active_class),i.trigger("closed.fndtn.section");}u.callback(o);},check_resize_timer:null,resize:function(t,n){var r=Foundation.libs.section,i=e(r.settings.section_selector),s=r.small(i),o=function(e,t){return !r.is_accordion(e)&&!e.is("["+r.settings.resized_data_attr+"]")&&(!s||r.is_horizontal_tabs(e))&&t===(e.css("display")==="none"||!e.parent().is(":visible"));};t=t||e(r.settings.section_selector),clearTimeout(r.check_resize_timer),s||t.removeAttr(r.settings.small_style_data_attr),t.filter(function(){return o(e(this),!1);}).each(function(){var t=e(this),i=t.children(r.settings.region_selector),s=i.children(r.settings.title_selector),o=i.children(r.settings.content_selector),u=0;if(n&&t.children(r.settings.region_selector).filter("."+r.settings.active_class).length==0){var a=e.extend({},r.settings,r.data_options(t));!a.deep_linking&&(a.one_up||!r.is_horizontal_nav(t)&&!r.is_vertical_nav(t)&&!r.is_accordion(t))&&i.filter(":visible").first().addClass(r.settings.active_class);}if(r.is_horizontal_tabs(t)||r.is_auto(t)){var f=0;s.each(function(){var t=e(this);if(t.is(":visible")){t.css(r.rtl?"right":"left",f);var n=parseInt(t.css("border-"+(r.rtl?"left":"right")+"-width"),10);n.toString()==="Nan"&&(n=0),f+=r.outerWidth(t)-n,u=Math.max(u,r.outerHeight(t));}}),s.css("height",u),i.each(function(){var t=e(this),n=t.children(r.settings.content_selector),i=parseInt(n.css("border-top-width"),10);i.toString()==="Nan"&&(i=0),t.css("padding-top",u-i);}),t.css("min-height",u);}else if(r.is_horizontal_nav(t)){var l=!0;s.each(function(){u=Math.max(u,r.outerHeight(e(this)));}),i.each(function(){var n=e(this);n.css("margin-left","-"+(l?t:n.children(r.settings.title_selector)).css("border-left-width")),l=!1;}),i.css("margin-top","-"+t.css("border-top-width")),s.css("height",u),o.css("top",u),t.css("min-height",u);}else if(r.is_vertical_tabs(t)){var c=0;s.each(function(){var t=e(this);if(t.is(":visible")){t.css("top",c);var n=parseInt(t.css("border-top-width"),10);n.toString()==="Nan"&&(n=0),c+=r.outerHeight(t)-n;}}),o.css("min-height",c+1);}else{if(r.is_vertical_nav(t)){var h=0,p=!0;s.each(function(){h=Math.max(h,r.outerWidth(e(this)));}),i.each(function(){var n=e(this);n.css("margin-top","-"+(p?t:n.children(r.settings.title_selector)).css("border-top-width")),p=!1;}),s.css("width",h),o.css(r.rtl?"right":"left",h),t.css("width",h);}}t.attr(r.settings.resized_data_attr,!0);}),e(r.settings.section_selector).filter(function(){return o(e(this),!0);}).length>0&&(r.check_resize_timer=setTimeout(function(){r.resize(t.filter(function(){return o(e(this),!1);}),!0);},700)),s&&t.attr(r.settings.small_style_data_attr,!0);},is_vertical_nav:function(e){return /vertical-nav/i.test(e.data("section"));},is_horizontal_nav:function(e){return /horizontal-nav/i.test(e.data("section"));},is_accordion:function(e){return /accordion/i.test(e.data("section"));},is_horizontal_tabs:function(e){return /^tabs$/i.test(e.data("section"));},is_vertical_tabs:function(e){return /vertical-tabs/i.test(e.data("section"));},is_auto:function(e){var t=e.data("section");return t===""||/auto/i.test(t);},set_active_from_hash:function(){var n=Foundation.libs.section,r=t.location.hash.substring(1),i=e(n.settings.section_selector),s;i.each(function(){var t=e(this),i=t.children(n.settings.region_selector);i.each(function(){var i=e(this),o=i.children(n.settings.content_selector).data("slug");if((new RegExp(o,"i")).test(r))return s=t,!1;});if(s!=null)return !1;}),s!=null&&i.each(function(){if(s==e(this)){var t=e(this),i=e.extend({},n.settings,n.data_options(t)),o=t.children(n.settings.region_selector),u=i.deep_linking&&r.length>0,a=!1;o.each(function(){var t=e(this);if(a)t.removeClass(n.settings.active_class);else if(u){var i=t.children(n.settings.content_selector).data("slug");i&&(new RegExp(i,"i")).test(r)?(t.hasClass(n.settings.active_class)||t.addClass(n.settings.active_class),a=!0):t.removeClass(n.settings.active_class);}else t.hasClass(n.settings.active_class)&&(a=!0);}),!a&&(i.one_up||!n.is_horizontal_nav(t)&&!n.is_vertical_nav(t)&&!n.is_accordion(t))&&o.filter(":visible").first().addClass(n.settings.active_class);}});},reflow:function(){var t=Foundation.libs.section;e(t.settings.section_selector).removeAttr(t.settings.resized_data_attr),t.throttle(function(){t.resize();},30)();},small:function(t){var n=e.extend({},this.settings,this.data_options(t));return this.is_horizontal_tabs(t)?!1:t&&this.is_accordion(t)?!0:e("html").hasClass("lt-ie9")?!0:e("html").hasClass("ie8compat")?!0:e(this.scope).width()'+t+'';}},cache:{},init:function(t,n,r){Foundation.inherit(this,"data_options");var i=this;typeof n=="object"?e.extend(!0,this.settings,n):typeof r!="undefined"&&e.extend(!0,this.settings,r);if(typeof n=="string")return this[n].call(this,r);Modernizr.touch?e(this.scope).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip","[data-tooltip]",function(t){var n=e.extend({},i.settings,i.data_options(e(this)));n["disable-for-touch"]||(t.preventDefault(),e(n.tooltipClass).hide(),i.showOrCreateTip(e(this)));}).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip",this.settings.tooltipClass,function(t){t.preventDefault(),e(this).fadeOut(150);}):e(this.scope).on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip","[data-tooltip]",function(t){var n=e(this);/enter|over/i.test(t.type)?i.showOrCreateTip(n):(t.type==="mouseout"||t.type==="mouseleave")&&i.hide(n);});},showOrCreateTip:function(e){var t=this.getTip(e);return t&&t.length>0?this.show(e):this.create(e);},getTip:function(t){var n=this.selector(t),r=null;return n&&(r=e('span[data-selector="'+n+'"]'+this.settings.tooltipClass)),typeof r=="object"?r:!1;},selector:function(e){var t=e.attr("id"),n=e.attr("data-tooltip")||e.attr("data-selector");return (t&&t.length<1||!t)&&typeof n!="string"&&(n="tooltip"+Math.random().toString(36).substring(7),e.attr("data-selector",n)),t&&t.length>0?t:n;},create:function(t){var n=e(this.settings.tipTemplate(this.selector(t),e("
      ").html(t.attr("title")).html())),r=this.inheritable_classes(t);n.addClass(r).appendTo(this.settings.appendTo),Modernizr.touch&&n.append(''+this.settings.touchCloseText+""),t.removeAttr("title").attr("title",""),this.show(t);},reposition:function(n,r,i){var s,o,u,a,f,l;r.css("visibility","hidden").show(),s=n.data("width"),o=r.children(".nub"),u=this.outerHeight(o),a=this.outerHeight(o),l=function(e,t,n,r,i,s){return e.css({top:t?t:"auto",bottom:r?r:"auto",left:i?i:"auto",right:n?n:"auto",width:s?s:"auto"}).end();},l(r,n.offset().top+this.outerHeight(n)+10,"auto","auto",n.offset().left,s);if(e(t).width()<767)l(r,n.offset().top+this.outerHeight(n)+10,"auto","auto",12.5,e(this.scope).width()),r.addClass("tip-override"),l(o,-u,"auto","auto",n.offset().left);else{var c=n.offset().left;Foundation.rtl&&(c=n.offset().left+n.offset().width-this.outerWidth(r)),l(r,n.offset().top+this.outerHeight(n)+10,"auto","auto",c,s),r.removeClass("tip-override"),i&&i.indexOf("tip-top")>-1?l(r,n.offset().top-this.outerHeight(r),"auto","auto",c,s).removeClass("tip-override"):i&&i.indexOf("tip-left")>-1?l(r,n.offset().top+this.outerHeight(n)/2-u*2.5,"auto","auto",n.offset().left-this.outerWidth(r)-u,s).removeClass("tip-override"):i&&i.indexOf("tip-right")>-1&&l(r,n.offset().top+this.outerHeight(n)/2-u*2.5,"auto","auto",n.offset().left+this.outerWidth(n)+u,s).removeClass("tip-override");}r.css("visibility","visible").hide();},inheritable_classes:function(t){var n=["tip-top","tip-left","tip-bottom","tip-right","noradius"].concat(this.settings.additionalInheritableClasses),r=t.attr("class"),i=r?e.map(r.split(" "),function(t,r){if(e.inArray(t,n)!==-1)return t;}).join(" "):"";return e.trim(i);},show:function(e){var t=this.getTip(e);this.reposition(e,t,e.attr("class")),t.fadeIn(150);},hide:function(e){var t=this.getTip(e);t.fadeOut(150);},reload:function(){var t=e(this);return t.data("fndtn-tooltips")?t.foundationTooltips("destroy").foundationTooltips("init"):t.foundationTooltips("init");},off:function(){e(this.scope).off(".fndtn.tooltip"),e(this.settings.tooltipClass).each(function(t){e("[data-tooltip]").get(t).attr("title",e(this).text());}).remove();},reflow:function(){}};}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.topbar={name:"topbar",version:"4.3.2",settings:{index:0,stickyClass:"sticky",custom_back_text:!0,back_text:"Back",is_hover:!0,mobile_show_parent_link:!1,scrolltop:!0,init:!1},init:function(n,r,i){Foundation.inherit(this,"data_options addCustomRule");var s=this;return typeof r=="object"?e.extend(!0,this.settings,r):typeof i!="undefined"&&e.extend(!0,this.settings,i),typeof r!="string"?(e(".top-bar, [data-topbar]").each(function(){e.extend(!0,s.settings,s.data_options(e(this))),s.settings.$w=e(t),s.settings.$topbar=e(this),s.settings.$section=s.settings.$topbar.find("section"),s.settings.$titlebar=s.settings.$topbar.children("ul").first(),s.settings.$topbar.data("index",0);var n=s.settings.$topbar.parent();n.hasClass("fixed")||n.hasClass(s.settings.stickyClass)?(s.settings.$topbar.data("height",s.outerHeight(n)),s.settings.$topbar.data("stickyoffset",n.offset().top)):s.settings.$topbar.data("height",s.outerHeight(s.settings.$topbar));var r=e("
      ").insertAfter(s.settings.$topbar);s.settings.breakPoint=r.width(),r.remove(),s.assemble(),s.settings.is_hover&&s.settings.$topbar.find(".has-dropdown").addClass("not-click"),s.addCustomRule(".f-topbar-fixed { padding-top: "+s.settings.$topbar.data("height")+"px }"),s.settings.$topbar.parent().hasClass("fixed")&&e("body").addClass("f-topbar-fixed");}),s.settings.init||this.events(),this.settings.init):this[r].call(this,i);},toggle:function(){var n=this,r=e(".top-bar, [data-topbar]"),i=r.find("section, .section");n.breakpoint()&&(n.rtl?(i.css({right:"0%"}),i.find(">.name").css({right:"100%"})):(i.css({left:"0%"}),i.find(">.name").css({left:"100%"})),i.find("li.moved").removeClass("moved"),r.data("index",0),r.toggleClass("expanded").css("height","")),n.settings.scrolltop?r.hasClass("expanded")?r.parent().hasClass("fixed")&&(n.settings.scrolltop?(r.parent().removeClass("fixed"),r.addClass("fixed"),e("body").removeClass("f-topbar-fixed"),t.scrollTo(0,0)):r.parent().removeClass("expanded")):r.hasClass("fixed")&&(r.parent().addClass("fixed"),r.removeClass("fixed"),e("body").addClass("f-topbar-fixed")):(r.parent().hasClass(n.settings.stickyClass)&&r.parent().addClass("fixed"),r.parent().hasClass("fixed")&&(r.hasClass("expanded")?(r.addClass("fixed"),r.parent().addClass("expanded")):(r.removeClass("fixed"),r.parent().removeClass("expanded"),n.updateStickyPositioning())));},timer:null,events:function(){var r=this;e(this.scope).off(".fndtn.topbar").on("click.fndtn.topbar",".top-bar .toggle-topbar, [data-topbar] .toggle-topbar",function(e){e.preventDefault(),r.toggle();}).on("click.fndtn.topbar",".top-bar li.has-dropdown",function(t){var n=e(this),i=e(t.target),s=n.closest("[data-topbar], .top-bar"),o=s.data("topbar");if(i.data("revealId")){r.toggle();return;}if(r.breakpoint())return;if(r.settings.is_hover&&!Modernizr.touch)return;t.stopImmediatePropagation(),i[0].nodeName==="A"&&i.parent().hasClass("has-dropdown")&&t.preventDefault(),n.hasClass("hover")?(n.removeClass("hover").find("li").removeClass("hover"),n.parents("li.hover").removeClass("hover")):n.addClass("hover");}).on("click.fndtn.topbar",".top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a",function(n){if(r.breakpoint()&&e(t).width()!=r.settings.breakPoint){n.preventDefault();var i=e(this),s=i.closest(".top-bar, [data-topbar]"),o=s.find("section, .section"),u=i.next(".dropdown").outerHeight(),a=i.closest("li");s.data("index",s.data("index")+1),a.addClass("moved"),r.rtl?(o.css({right:-(100*s.data("index"))+"%"}),o.find(">.name").css({right:100*s.data("index")+"%"})):(o.css({left:-(100*s.data("index"))+"%"}),o.find(">.name").css({left:100*s.data("index")+"%"})),s.css("height",r.outerHeight(i.siblings("ul"),!0)+r.settings.$topbar.data("height"));}}),e(t).on("resize.fndtn.topbar",function(){if(typeof r.settings.$topbar=="undefined")return;var t=r.settings.$topbar.parent("."+this.settings.stickyClass),i;if(!r.breakpoint()){var s=r.settings.$topbar.hasClass("expanded");e(".top-bar, [data-topbar]").css("height","").removeClass("expanded").find("li").removeClass("hover"),s&&r.toggle();}t.length>0&&(t.hasClass("fixed")?(t.removeClass("fixed"),i=t.offset().top,e(n.body).hasClass("f-topbar-fixed")&&(i-=r.settings.$topbar.data("height")),r.settings.$topbar.data("stickyoffset",i),t.addClass("fixed")):(i=t.offset().top,r.settings.$topbar.data("stickyoffset",i)));}.bind(this)),e("body").on("click.fndtn.topbar",function(t){var n=e(t.target).closest("li").closest("li.hover");if(n.length>0)return;e(".top-bar li, [data-topbar] li").removeClass("hover");}),e(this.scope).on("click.fndtn",".top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back",function(t){t.preventDefault();var n=e(this),i=n.closest(".top-bar, [data-topbar]"),s=i.find("section, .section"),o=n.closest("li.moved"),u=o.parent();i.data("index",i.data("index")-1),r.rtl?(s.css({right:-(100*i.data("index"))+"%"}),s.find(">.name").css({right:100*i.data("index")+"%"})):(s.css({left:-(100*i.data("index"))+"%"}),s.find(">.name").css({left:100*i.data("index")+"%"})),i.data("index")===0?i.css("height",""):i.css("height",r.outerHeight(u,!0)+r.settings.$topbar.data("height")),setTimeout(function(){o.removeClass("moved");},300);});},breakpoint:function(){return e(n).width()<=this.settings.breakPoint||e("html").hasClass("lt-ie9");},assemble:function(){var t=this;this.settings.$section.detach(),this.settings.$section.find(".has-dropdown>a").each(function(){var n=e(this),r=n.siblings(".dropdown"),i=n.attr("href");if(t.settings.mobile_show_parent_link&&i&&i.length>1)var s=e('
    2. '+n.text()+"
    3. ");else var s=e('
    4. ');t.settings.custom_back_text==1?s.find("h5>a").html(t.settings.back_text):s.find("h5>a").html("« "+n.html()),r.prepend(s);}),this.settings.$section.appendTo(this.settings.$topbar),this.sticky();},height:function(t){var n=0,r=this;return t.find("> li").each(function(){n+=r.outerHeight(e(this),!0);}),n;},sticky:function(){var n=e(t),r=this;n.scroll(function(){r.updateStickyPositioning();});},updateStickyPositioning:function(){var n="."+this.settings.stickyClass,r=e(t);if(e(n).length>0){var i=this.settings.$topbar.data("stickyoffset");e(n).hasClass("expanded")||(r.scrollTop()>i?e(n).hasClass("fixed")||(e(n).addClass("fixed"),e("body").addClass("f-topbar-fixed")):r.scrollTop()<=i&&e(n).hasClass("fixed")&&(e(n).removeClass("fixed"),e("body").removeClass("f-topbar-fixed")));}},off:function(){e(this.scope).off(".fndtn.topbar"),e(t).off(".fndtn.topbar");},reflow:function(){}};}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.interchange={name:"interchange",version:"4.2.4",cache:{},images_loaded:!1,settings:{load_attr:"interchange",named_queries:{"default":"only screen and (min-width: 1px)",small:"only screen and (min-width: 768px)",medium:"only screen and (min-width: 1280px)",large:"only screen and (min-width: 1440px)",landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(e,t){if(/IMG/.test(e[0].nodeName)){var n=e[0].src;if((new RegExp(t,"i")).test(n))return;return e[0].src=t,e.trigger("replace",[e[0].src,n]);}}}},init:function(t,n,r){return Foundation.inherit(this,"throttle"),typeof n=="object"&&e.extend(!0,this.settings,n),this.events(),this.images(),typeof n!="string"?this.settings.init:this[n].call(this,r);},events:function(){var n=this;e(t).on("resize.fndtn.interchange",n.throttle(function(){n.resize.call(n);},50));},resize:function(){var t=this.cache;if(!this.images_loaded){setTimeout(e.proxy(this.resize,this),50);return;}for(var n in t)if(t.hasOwnProperty(n)){var r=this.results(n,t[n]);r&&this.settings.directives[r.scenario[1]](r.el,r.scenario[0]);}},results:function(t,n){var r=n.length;if(r>0){var i=e('[data-uuid="'+t+'"]');for(var s=r-1;s>=0;s--){var o,u=n[s][2];this.settings.named_queries.hasOwnProperty(u)?o=matchMedia(this.settings.named_queries[u]):o=matchMedia(u);if(o.matches)return {el:i,scenario:n[s]};}}return !1;},images:function(e){return typeof this.cached_images=="undefined"||e?this.update_images():this.cached_images;},update_images:function(){var t=n.getElementsByTagName("img"),r=t.length,i=0,s="data-"+this.settings.load_attr;this.cached_images=[],this.images_loaded=!1;for(var o=r-1;o>=0;o--)this.loaded(e(t[o]),function(e){i++;if(e){var t=e.getAttribute(s)||"";t.length>0&&this.cached_images.push(e);}i===r&&(this.images_loaded=!0,this.enhance());}.bind(this));return "deferred";},loaded:function(e,t){function n(){t(e[0]);}function r(){this.one("load",n);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var e=this.attr("src"),t=e.match(/\?/)?"&":"?";t+="random="+(new Date()).getTime(),this.attr("src",e+t);}}if(!e.attr("src")){n();return;}e[0].complete||e[0].readyState===4?n():r.call(e);},enhance:function(){var n=this.images().length;for(var r=n-1;r>=0;r--)this._object(e(this.images()[r]));return e(t).trigger("resize");},parse_params:function(e,t,n){return [this.trim(e),this.convert_directive(t),this.trim(n)];},convert_directive:function(e){var t=this.trim(e);return t.length>0?t:"replace";},_object:function(e){var t=this.parse_data_attr(e),n=[],r=t.length;if(r>0)for(var i=r-1;i>=0;i--){var s=t[i].split(/\((.*?)(\))$/);if(s.length>1){var o=s[0].split(","),u=this.parse_params(o[0],o[1],s[1]);n.push(u);}}return this.store(e,n);},uuid:function(e){function n(){return ((1+Math.random())*65536|0).toString(16).substring(1);}var t=e||"-";return n()+n()+t+n()+t+n()+t+n()+t+n()+n()+n();},store:function(e,t){var n=this.uuid(),r=e.data("uuid");return r?this.cache[r]:(e.attr("data-uuid",n),this.cache[n]=t);},trim:function(t){return typeof t=="string"?e.trim(t):t;},parse_data_attr:function(e){var t=e.data(this.settings.load_attr).split(/\[(.*?)\]/),n=t.length,r=[];for(var i=n-1;i>=0;i--)t[i].replace(/[\W\d]+/,"").length>4&&r.push(t[i]);return r;},reflow:function(){this.images(!0);}};}(Foundation.zj,this,this.document),function(e){"use strict";function t(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1);if(e.attachEvent)return e.attachEvent("on"+t,n);}function n(e,t){var n,r;for(n=0,r=e.length;n=0;r--)n.push(this.pattern(e[r]));return this.check_validation_and_apply_styles(n);},pattern:function(e){var t=e.getAttribute("type"),n=typeof e.getAttribute("required")=="string";if(this.settings.patterns.hasOwnProperty(t))return [e,this.settings.patterns[t],n];var r=e.getAttribute("pattern")||"";return this.settings.patterns.hasOwnProperty(r)&&r.length>0?[e,this.settings.patterns[r],n]:r.length>0?[e,new RegExp(r),n]:(r=/.*/,[e,r,n]);},check_validation_and_apply_styles:function(t){var n=t.length,r=[];for(var i=n-1;i>=0;i--){var s=t[i][0],o=t[i][2],u=s.value,a=s.type==="radio",f=o?s.value.length>0:!0;a&&o?r.push(this.valid_radio(s,o)):t[i][1].test(u)&&f||!o&&s.value.length<1?(e(s).removeAttr("data-invalid").parent().removeClass("error"),r.push(!0)):(e(s).attr("data-invalid","").parent().addClass("error"),r.push(!1));}return r;},valid_radio:function(t,r){var i=t.getAttribute("name"),s=n.getElementsByName(i),o=s.length,u=!1;for(var a=0;a .overlay");var searchcontainer=jQuery(".search-container");var scrollDownBtn=jQuery(".scrolldownbttn");var menubar=jQuery(".standard-menubar");var hamburger=jQuery(".hamburger");var globalclick=jQuery(".menu-global");var bodylimit=jQuery("body.not-front");var mobileMenubar=jQuery(".stacked-menubar");var topmenucontainer=jQuery(".topmenu_container");var scrollDownBtnWidth=scrollDownBtn.width();var minHeaderHeight=85;var adminMenuHeight=jQuery('#admin-menu').outerHeight(true);var isSlideUp=false;var globalmenuopen=false;var languageoptionsopen=false;var mainmenuopen=false;var ncmodalopen=false;var searchopen=false;var videoFirst=false;var menustuck=false;var openStick=false;window.initMenus=function(){logger("[initMenus]");searchcontainer.css("top",minHeaderHeight-searchcontainer.outerHeight(true));globalcontainer.css("top",minHeaderHeight-globalcontainer.outerHeight(true));mainmenucontainer.css("top",minHeaderHeight-mainmenucontainer.outerHeight(true));searchcontainer.css("display","block");globalcontainer.css("display","none");mainmenucontainer.css("display","block");};window.adjustMenus=function(){logger("[adjustMenus]");if(!mainmenuopen){mainmenucontainer.css("top",minHeaderHeight-mainmenucontainer.outerHeight(true));if(isMobileView){jQuery(".line1",jQuery(menubar)).css("top",20);jQuery(".line2",jQuery(menubar)).css("top",29);jQuery(".line3",jQuery(menubar)).css("top",38);jQuery(".topmenu_container").css('top',-900);}else{jQuery(".line1",jQuery(menubar)).css("top",31);jQuery(".line2",jQuery(menubar)).css("top",40);jQuery(".line3",jQuery(menubar)).css("top",49);jQuery(".topmenu_container").css('top',92);}}else{mainmenucontainer.css("top",menubarheight);if(isMobileView){jQuery(".line1",jQuery(menubar)).css("top",20);jQuery(".line2",jQuery(menubar)).css("top",29);jQuery(".line3",jQuery(menubar)).css("top",38);jQuery(".topmenu_container").css('top',-900);if(mainmenucontainer.height()>jQuery(window).height()-menubarheight)mainmenucontainer.height(jQuery(window).height()-menubarheight).css("overflow","auto");else mainmenucontainer.height("auto").css("overflow","visible");}else{jQuery(".line1",jQuery(menubar)).css("top",31);jQuery(".line2",jQuery(menubar)).css("top",40);jQuery(".line3",jQuery(menubar)).css("top",49);jQuery(".topmenu_container").css('top',92);}jQuery(".line1",jQuery(menubar)).css("transform","rotate(45deg)");jQuery(".line3",jQuery(menubar)).css("transform","rotate(-45deg)");}if(!globalmenuopen)globalcontainer.css("top",minHeaderHeight-globalcontainer.outerHeight(true));else{globalcontainer.css("top",menubarheight);if(isMobileView&&globalcontainer.height()>jQuery(window).height()-menubarheight)globalcontainer.height(jQuery(window).height()-menubarheight).css("overflow","auto");else globalcontainer.height("auto").css("overflow","visible");}if(!searchopen)searchcontainer.css("top",minHeaderHeight-searchcontainer.outerHeight(true));else searchcontainer.css("top",menubarheight);};window.changeToCloseButton=function(){logger("[changeToCloseButton()]");var line1=jQuery(".line1");var line2=jQuery(".line2");var line3=jQuery(".line3");var tl=new TimelineLite();var top=(isMobileView)?29:40;tl.to([line1,line3],0.3,{top,ease:Cubic.easeIn},"intro").to(line2,0.3,{opacity:0},"intro").to(line1,0.3,{transform:"rotate(45deg)",ease:Cubic.easeOut},"rotate+=0.3").to(line3,0.3,{transform:"rotate(-45deg)",ease:Cubic.easeOut},"rotate+=0.3");tl.play();};window.changeToMenuButton=function(){logger("[changeToMenuButton()]");var line1=jQuery(".line1");var line2=jQuery(".line2");var line3=jQuery(".line3");var tl=new TimelineLite();var top1,top3;if(isMobileView){top1=20;top3=38;}else{top1=31;top3=49;}tl.to([line1,line3],0.3,{transform:"rotate(0deg)",ease:Cubic.easeIn}).set(line2,{opacity:1}).to(line1,0.3,{top:top1,ease:Cubic.easeOut},"final+=0.3").to(line3,0.3,{top:top3,ease:Cubic.easeOut},"final+=0.3");tl.play();};window.openMainMenu=function(){logger("[openMainMenu]");var searchtop=minHeaderHeight-searchcontainer.outerHeight(true);var globaltop=minHeaderHeight-globalcontainer.outerHeight(true);var tl=new TimelineLite();changeToCloseButton();setOverlay();animating=true;tl.to(searchcontainer,animationspeed,{top:searchtop,ease:regularEase},"start").to(globalcontainer,animationspeed,{top:globaltop,ease:regularEase},"start").to(overlay,animationspeed,{opacity:0.5,ease:linearEase},"start").to(mainmenucontainer,animationspeed,{top:menubarheight,ease:regularEase,onComplete:function(){if(mainmenucontainer.height()>jQuery(window).height()-menubarheight){mainmenucontainer.height(jQuery(window).height()-menubarheight).css("overflow","auto");overlay.height(jQuery(window).height()).hide();bodycontainer.height(jQuery(window).height()).css("overflow","hidden");jQuery(".transparent-bg").hide();}else mainmenucontainer.height("auto").css("overflow","visible");animating=false;searchopen=false;globalmenuopen=false;mainmenuopen=true;}},"start");tl.play();};window.closeMainMenu=function(){logger("[closeMainMenu]");changeToMenuButton();hideOverlay();animating=true;mainmenucontainer.height("auto").css("overflow","visible");TweenLite.to(mainmenucontainer,animationspeed,{top:menubarheight-mainmenucontainer.outerHeight(true),ease:regularEase,onComplete:function(){bodycontainer.height("auto").css("overflow","visible");jQuery(".transparent-bg").show();animating=false;mainmenuopen=false;}});};jQuery(globalclick).click(function(){logger(".menu-global-wrapper p:click");if(!globalmenuopen&&!animating&&!needhack)openGlobalMenu();if(globalmenuopen&&!animating&&!needhack)closeGlobalMenu();});jQuery(".globalmenu .close").click(function(){closeGlobalMenu();});window.openGlobalMenu=function(){logger("[openGlobalMenu]");var searchtop=minHeaderHeight-searchcontainer.outerHeight(true);var mainmenutop=minHeaderHeight-mainmenucontainer.outerHeight(true);var tl=new TimelineLite();changeToMenuButton();setOverlay();animating=true;globalcontainer.css('display','block');tl.to(searchcontainer,animationspeed,{top:searchtop,ease:regularEase},"start").to(mainmenucontainer,animationspeed,{top:mainmenutop,ease:regularEase},"start").to(overlay,animationspeed,{opacity:0.5,ease:linearEase},"start").to(globalcontainer,animationspeed,{top:menubarheight,ease:regularEase,onComplete:function(){if(globalcontainer.height()>jQuery(window).height()-menubarheight){globalcontainer.height(jQuery(window).height()-menubarheight).css("overflow","auto");overlay.height(jQuery(window).height());bodycontainer.height(jQuery(window).height()).css("overflow","hidden");}animating=false;searchopen=false;mainmenuopen=false;globalmenuopen=true;}},"start");tl.play();};window.closeGlobalMenu=function(){logger("[closeGlobalMenu]");animating=true;hideOverlay();globalcontainer.height("auto").css("overflow","visible");TweenLite.to(globalcontainer,animationspeed,{top:minHeaderHeight-globalcontainer.outerHeight(true),ease:regularEase,onComplete:function(){bodycontainer.height("auto").css("overflow","visible");globalcontainer.css('display','none');animating=false;globalmenuopen=false;}});};jQuery(".menu-search").click(function(){logger(".menu-search:click");if(!searchopen&&!animating&&!needhack)openSearch();if(searchopen&&!animating&&!needhack)closeSearch();});window.openSearch=function(){logger("[openSearch()]");var searchtop=menubarheight;var mainmenutop=minHeaderHeight-mainmenucontainer.outerHeight(true);var globaltop=minHeaderHeight-globalcontainer.outerHeight(true);var tl=new TimelineLite();changeToMenuButton();hideOverlay();animating=true;tl.to(mainmenucontainer,animationspeed,{top:mainmenutop,ease:regularEase},"start").to(globalcontainer,animationspeed,{top:globaltop,ease:regularEase},"start").to(searchcontainer,fastanimationspeed,{top:searchtop,ease:regularEase,onComplete:function(){mainmenuopen=false;globalmenuopen=false;animating=false;searchopen=true;}});tl.play();};window.closeSearch=function(){logger("[closeSearch()]");animating=true;var searchtop=minHeaderHeight-searchcontainer.outerHeight(true);TweenLite.to(searchcontainer,animationspeed,{top:searchtop,ease:regularEase,onComplete:function(){animating=false;searchopen=false;}});};jQuery(".scrolldownbttn").click(function(){logger(".barker2:click");var obj={y:jQuery(window).scrollTop()};TweenLite.to(obj,animationspeed,{y:obj.y+300,ease:regularEase,onUpdate:function(){jQuery(window).scrollTop(obj.y);}});});var inputFlag=false;var contactWebformItem=jQuery('.section-contact-us .webform-client-form .form-item');function initContactForm(){var selectValue=jQuery('.section-contact-us .webform-client-form #edit-submitted-type option:selected').val();if(selectValue=='')disContactForm();else enContactForm();}jQuery('.section-contact-us .webform-client-form').on('click','.custom-select-menu li',function(){if(jQuery(this).attr('data-option-value')==undefined&&inputFlag){inputFlag=false;disContactForm();}else{if(jQuery(this).attr('data-option-value')!=undefined&&!inputFlag){inputFlag=true;enContactForm();}}});function disContactForm(){contactWebformItem.siblings().children('input').attr('disabled',true);contactWebformItem.find('textarea').attr('disabled',true);}function enContactForm(){contactWebformItem.siblings().children('input').attr('disabled',false);contactWebformItem.find('textarea').attr('disabled',false);}function adjustScrollBtn(){var leftpos=((jQuery(window).width()/2)-(scrollDownBtnWidth/2));jQuery(".scrolldownbttn").css("left",leftpos);}function fadeScrollBtn(){var scrollPos=0;if(navigator.userAgent.indexOf("Safari")>0||navigator.userAgent.indexOf("Chrome")>-1)scrollPos=jQuery("body").scrollTop();else scrollPos=document.documentElement.scrollTop;if(jQuery(".front").length&&scrollPos>=jQuery(document).height()-jQuery(window).height())jQuery(".cover-video-block").show();if(jQuery(window).width()>800)if(scrollPos>2500)scrollDownBtn.css("opacity","0");else if(jQuery(".transparent-bg").length&&scrollPos>=(jQuery(".transparent-bg").offset().top-80)){if(scrollDownBtn.css("display")!="none"){var scrollBtnOpacity=1-(scrollPos-(jQuery(".transparent-bg").offset().top-80))/(jQuery("footer.footer").offset().top-614-(jQuery(".transparent-bg").offset().top-80));scrollDownBtn.css("opacity",scrollBtnOpacity).removeClass("pointer");}}else if(scrollPos===0){scrollDownBtn.show().addClass("pointer");setTimeout(function(){scrollDownBtn.css("opacity","1");},100);}else{if(scrollDownBtn.css("display")!="none")scrollDownBtn.css("opacity","1").addClass("pointer");}else{if(scrollPos>=0&&scrollPos<=154)window.adjustMenus();}}jQuery(window).scroll(function(){clearTimeout(jQuery.data(this,'scrollTimer'));jQuery.data(this,'scrollTimer',setTimeout(function(){fadeScrollBtn();},100));});function loadVideo(){if(jQuery(window).width()<1025){var videoBg=jQuery(".content-top .videostill").attr("data-src");jQuery(".content-top .videostill").css("background-image","url('"+videoBg+"')");jQuery(".content-top .videostill").addClass("bg-cover");}else{var videoSrc=jQuery(".videobg-container video source").attr("data-src");jQuery(".videobg-container video source").attr("src",videoSrc);jQuery(".content-top .videostill").removeClass("bg-cover");jQuery(".videobg-container video").on('load',function(){});if(!videoFirst)jQuery(".videobg-container video").on('canplaythrough',function(){jQuery(".home-video-block").show();videoFirst=true;});}}var topicmenuopen=false;jQuery(".front .topic-menu").click(function(){if(!isMobileView){logger("[.topic-menu:click]");var fullmenuheight;if(!topicmenuopen&&!animating){fullmenuheight=jQuery(".topic-cta").height()+jQuery(".topic-menu .topics").height();var obj={y:jQuery(window).scrollTop()};var distance=jQuery(".topic-menu").offset().top-menubarheight;TweenLite.to(".topic-menu",fastanimationspeed,{height:fullmenuheight,ease:regularEase,onComplete:function(){jQuery(".topic-menu").css({height:"auto",overflow:"visible"});jQuery(".topic-cta p").addClass("active");topicmenuopen=true;animating=false;}});}if(topicmenuopen&&!animating){fullmenuheight=jQuery(".topic-cta").height()+jQuery(".topic-menu .topics").height();jQuery(".topic-menu").css({height:fullmenuheight,overflow:"hidden"});TweenLite.to(".topic-menu",fastanimationspeed,{height:jQuery(".topic-cta").height(),ease:regularEase,onComplete:function(){jQuery(".topic-cta p").removeClass("active");topicmenuopen=false;animating=false;}});}}});jQuery(".main-menu-button").click(function(){logger("[.menubar .menu-topics:click]");if(!topicmenuopen&&!animating){animating=true;TweenLite.to(".topmenu_container",fastanimationspeed,{top:menubarheight,ease:simpleEase,onComplete:function(){topicmenuopen=true;animating=false;}});}if(topicmenuopen&&!animating){animating=true;TweenLite.to(".topmenu_container",fastanimationspeed,{top:0-jQuery(".topmenu_container").height(),ease:simpleEase,onComplete:function(){topicmenuopen=false;animating=false;}});}});var vw,vh;function initVideoBackground(){logger("[initVideoBackground()]");var ww=jQuery(window).width();var hh=jQuery(window).height();var videoarea=hh-menubarheight;var newwidth,newheight;jQuery(".hero.fullscreen").height(hh);jQuery("video").bind("loadedmetadata",function(){vw=this.videoWidth;vh=this.videoHeight;var ratio=Math.max(ww/vw,hh/vh);newwidth=vw*ratio;newheight=vh*ratio;newtop=(videoarea-newheight)/2+menubarheight;newleft=(ww-newwidth)/2;jQuery(".videobg-container").css({top:newtop,left:newleft}).width(newwidth).height(newheight);jQuery(".videobg-container video").width(newwidth).height(newheight);});}window.adjustVideoBackground=function(){logger("[adjustVideoBackground]");var ww=jQuery(window).width();var hh=jQuery(window).height();var videoarea=hh-menubarheight;var newwidth,newheight;var ratio=Math.max(ww/vw,hh/vh);jQuery(".hero.fullscreen").height(hh);newwidth=vw*ratio;newheight=vh*ratio;newtop=(videoarea-newheight)/2+menubarheight;newleft=(ww-newwidth)/2;jQuery(".videobg-container").css({top:newtop,left:newleft}).width(newwidth).height(newheight);jQuery(".videobg-container video").width(newwidth).height(newheight);};window.setOverlay=function(){logger("[setOverlay()]");overlay.height(jQuery(document).height()).show();};window.showOverlay=function(){logger("[showOverlay()]");setOverlay();TweenLite.to(overlay,animationspeed,{opacity:globalalpha,ease:linearEase});};window.hideOverlay=function(){logger("[hideOverlay()]");TweenLite.to(overlay,animationspeed,{opacity:0,ease:linearEase,onComplete:function(){overlay.hide();}});};overlay.click(function(){logger("[overlay:click]");if(mainmenuopen&&!animating){changeToMenuButton();closeMainMenu();}if(globalmenuopen&&!animating)closeGlobalMenu();if(ncmodalopen&&!animating)closeNewsCenterModal();});window.initCarousel=function(){logger("[initCarousel()]");var ww=jQuery(window).width();var desktopcarsousel=jQuery(".carousel.artwork .desktop-carousel ul");var slides=desktopcarsousel.find("li");var mobilecarousel=jQuery(".carousel.artwork .mobile-carousel ul");var dt_slidewidth=desktopcarsousel.find("li:first-child").width();var mb_slidewidth=mobilecarousel.find("li:first-child").width();var leftcover=jQuery(".carousel.artwork .cover-left");var rightcover=jQuery(".carousel.artwork .cover-right");var dt_xpos=(ww-dt_slidewidth)/2;var mb_xpos=(ww-mb_slidewidth)/2;jQuery(".desktop-carousel li:first-child, .mobile-carousel li:first-child, .pagination-container span:first-child").addClass("current");if(slides.length==1)jQuery(".desktop-carousel .prevbttn, .desktop-carousel .nextbttn").hide();desktopcarsousel.css("left",dt_xpos);leftcover.width(dt_xpos);rightcover.width(dt_xpos);mobilecarousel.css("left",mb_xpos);};window.adjustCarousel=function(){logger("[adjustCarousel()]");var ww=jQuery(window).width();var d_carousel=jQuery(".desktop-carousel ul");var currentdesktopslide=d_carousel.find("li.current");var currentdesktopindex=currentdesktopslide.index();var leftcover=jQuery(".desktop-carousel .cover-left");var rightcover=jQuery(".desktop-carousel .cover-right");var d_centerxpos=(ww-currentdesktopslide.width())/2;var d_previouswidth=0;var d_xpos;jQuery.each(jQuery(".desktop-carousel li"),function(i,val){if(i==currentdesktopindex)return false;d_previouswidth+=jQuery(this).width();});d_xpos=0-d_previouswidth+d_centerxpos;d_carousel.css("left",d_xpos);leftcover.width(d_centerxpos);rightcover.width(d_centerxpos);var m_carousel=jQuery(".mobile-carousel ul");var currentmobileslide=m_carousel.find("li.current");var currentmobileindex=currentmobileslide.index();var m_centerxpos=(ww-currentmobileslide.width())/2;var m_previouswidth=0;var m_xpos;jQuery.each(jQuery(".mobile-carousel li"),function(i,val){if(i==currentmobileindex)return false;m_previouswidth+=jQuery(this).width();});m_xpos=0-m_previouswidth+m_centerxpos;};var t;var autoplay=false;var byautoplay=true;window.autoPlayCarousel=function(){logger("[autoPlayCarousel]");t=setInterval(function(){if(autoplay)jQuery(".carousel.basic .nextbttn").trigger("click");else clearInterval(t);},8000);};jQuery(".carousel .prevbttn").click(function(e){logger("[.carousel .prevbttn:click]");if(e.originalEvent===undefined){}else autoplay=false;var ww=jQuery(window).width();var basiccarousel=jQuery(this).parents(".carousel").hasClass("basic");var carousel=jQuery(this).siblings("ul");var slideindex=carousel.find("li.current").index();var previousindex=slideindex-1;var nextindex=slideindex+1;var currentpos=carousel.position().left;var carouselwidth=carousel.width();var slides=carousel.find("li");var currentslide=carousel.find("li.current");var prevslide=carousel.find("li").eq(previousindex);var slidewidth=currentslide.width();var numslides=slides.length;if(basiccarousel&&slideindex>0&&!animating){animating=true;TweenLite.to(carousel,animationspeed,{left:currentpos+slidewidth,ease:regularEase,onComplete:function(){slides.removeClass("current").eq(slideindex-1).addClass("current");animating=false;}});}if(basiccarousel&&slideindex===0&&!animating){animating=true;var lastslide=carousel.find("li:last-child").insertBefore(".desktop-carousel li:first-child");carousel.css("left",0-slidewidth);TweenLite.to(carousel,animationspeed,{left:0,ease:regularEase,onComplete:function(){slides.removeClass("current");carousel.find("li:first-child").addClass("current");animating=false;}});}if(!basiccarousel&&slideindex>0&&!animating){animating=true;var xpos;var centerxpos=(ww-prevslide.width())/2;var prevslidewidths=0;var leftcover=jQuery(this).siblings(".cover-left");var rightcover=jQuery(this).siblings(".cover-right");jQuery.each(jQuery(".carousel.artwork .desktop-carousel li"),function(i,val){if(i==previousindex)return false;prevslidewidths+=jQuery(val).width();});xpos=0-prevslidewidths+centerxpos;TweenLite.to(leftcover,animationspeed,{width:centerxpos,ease:regularEase});TweenLite.to(rightcover,animationspeed,{width:centerxpos,ease:regularEase});TweenLite.to(carousel,animationspeed,{left:xpos,ease:regularEase,onComplete:function(){slides.removeClass("current").eq(previousindex).addClass("current");animating=false;}});}});jQuery(".carousel .nextbttn").click(function(e){logger("[.carousel .nextbttn:click]");if(e.originalEvent===undefined){}else autoplay=false;e.stopPropagation();var ww=jQuery(window).width();var basiccarousel=jQuery(this).parents(".carousel").hasClass("basic");var carousel=jQuery(this).siblings("ul");var slideindex=carousel.find("li.current").index();var previousindex=slideindex-1;var nextindex=slideindex+1;var currentpos=carousel.position().left;var currentslide=carousel.find("li.current");var nextslide=carousel.find("li").eq(nextindex);var slidewidth=carousel.width();var slides=carousel.find("li");var numslides=slides.length;if(basiccarousel&&slideindex-1){target=val.slice(val.indexOf("-")+1);return false;}});if(jQuery(".hidden-container").length)if(!jQuery("div").hasClass("reveal-care4today")){var targetclasses=jQuery(".hidden-container.target-"+target).attr("class").split(" ");jQuery.each(targetclasses,function(i,val){if(val.indexOf("-box")>-1){containertype=val.slice(0,val.indexOf("-"));return false;}});}if(jQuery(this).find(".bg").length)backgroundimg=jQuery(this).find(".bg").css("background-image").replace('url(','').replace(')','');if(containertype=="image")jQuery(".hidden-container.target-"+target+" img").attr("src",backgroundimg).width(500).height(500);else{if(containertype=="bio")jQuery(".hidden-container.target-"+target+" img").attr("src",backgroundimg).width("100%").height(345);}jQuery(".reveal").removeClass("active");jQuery(this).addClass("active");var targetheight=0;if(!isMobileView)jQuery(".hidden-container.target-"+target).children().each(function(i,val){targetheight+=jQuery(val).outerHeight(true);});else{var maintarget=jQuery(".hidden-container.target-"+target);maintarget.find(".info").children().each(function(i,val){targetheight+=jQuery(val).outerHeight(true);});targetheight+=415;jQuery(".hidden-container.target-"+target+" .bio-info-container").height(targetheight);}if(!jQuery("div").hasClass("reveal-care4today")&&jQuery(".hidden-container.target-"+target).length){TweenLite.to(obj,animationspeed,{y:jQuery(".hidden-container.target-"+target).offset().top-250,ease:simpleEase,onUpdate:function(){jQuery(window).scrollTop(obj.y);}});TweenLite.to(".hidden-container.target-"+target,animationspeed,{height:targetheight,ease:regularEase,onComplete:function(){animating=false;}});}}});jQuery(".hidden-container .close").click(function(){logger("[.hidden-container .close:click]");if(!animating){animating=true;var container=jQuery(this).parents(".hidden-container");TweenLite.to(container,animationspeed,{height:0,ease:regularEase,onComplete:function(){jQuery(".reveal").removeClass("active");animating=false;}});}});var storiesopen=false;jQuery(".trigger-related-stories").click(function(){logger("[.trigger-related-stories]");if(!storiesopen&&!animating){animating=true;var contentheight=0;var obj={y:jQuery(window).scrollTop()};var scrollto=jQuery(".hidden-container.target-related-stories").offset().top-(menubarheight+20);jQuery(".hidden-container.target-related-stories").children().each(function(){contentheight+=jQuery(this).outerHeight(true);});TweenLite.to(obj,animationspeed,{y:scrollto,ease:regularEase,onUpdate:function(){jQuery(window).scrollTop(obj.y);}});TweenLite.to(".hidden-container.target-related-stories",animationspeed,{height:contentheight,ease:regularEase,onComplete:function(){jQuery(".trigger-related-stories").html("View Less Stories").removeClass("expand").addClass("collapse");storiesopen=true;animating=false;}});}if(storiesopen&&!animating){animating=true;var obj={y:jQuery(window).scrollTop()};var scrollto=jQuery(".hidden-container.target-related-stories").prev().offset().top-(menubarheight+20);TweenLite.to(obj,animationspeed,{y:scrollto,ease:regularEase,onUpdate:function(){jQuery(window).scrollTop(obj.y);}});TweenLite.to(".hidden-container.target-related-stories",animationspeed,{height:0,ease:regularEase,onComplete:function(){jQuery(".trigger-related-stories").html("View More Stories").removeClass("collapse").addClass("expand");storiesopen=false;animating=false;}});}});jQuery(window).resize(function(){setMenubarHeight();adjustMenus();adjustCarousel();adjustScrollBtn();initLeadership();if(mainmenuopen)changeToCloseButton();else changeToMenuButton();});window.setMenubarHeight=function(){logger("[setMenubarHeight()]");isMobileView=(jQuery(window).width()<801);menubarheight=(isMobileView)?154:92;if(menustuck||isSlideUp)menubarheight=62;if(jQuery(window).width()<801)menubarheight=104;jQuery(".body-container > .placeholder").height(menubarheight);if(jQuery('body.logged-in').length)menubarheight=menubarheight+20;};jQuery(".select-canada a.button").click(function(){if(jQuery(".select-canada input").attr("value")=="CA"){jQuery(".contact-copy").addClass("hide");jQuery(".contact-form").removeClass("hide");}});function initProductList(){var categories=new Array();jQuery(".product-group-item .category").each(function(index,item){categories.push(jQuery(item).attr("name"));});jQuery("nav.alphabet-filter-list a").each(function(index,item){if(jQuery.inArray(jQuery(item).attr('value'),categories)>=0)jQuery(item).removeClass("disable").show();else jQuery(item).removeAttr("href").addClass("disable").show();});var productlist=jQuery(".product-group-item .views-row");productlist.click(function(index,item){if(jQuery(this).hasClass("active"))jQuery(this).removeClass("active");else jQuery(this).addClass("active");});}function addPlaceholder(){if(jQuery('.not-front').length){jQuery(bodycontainer,jQuery(bodylimit)).prepend('
      ');jQuery(".body-container > .placeholder").height(jQuery(".standard-menubar").outerHeight(true));}}function initLeadership(){var sectionContainerW=jQuery(".leadership-section").outerWidth(true);var sectionContainerH=jQuery(".leadership-section").outerHeight(true);var sectionImgW=jQuery(".leadership-img").outerWidth(true);var sectionImgH=jQuery(".leadership-img").outerHeight(true)<50?250:jQuery(".leadership-img").outerHeight(true);var sectionImgTop=(sectionContainerH-sectionImgH)/2;var sectionImgLeft=(sectionContainerW-sectionImgW)/2;jQuery(".leadership-img").css({"top":sectionImgTop,"left":sectionImgLeft});}function slideMobileMenu(){var tl=new TimelineLite();if(jQuery(window).width()<801&&!(isSlideUp)){tl.to(menubar,1,{top:0-92,ease:regularEase},"+=1").to(jQuery(".body-container .placeholder"),1,{height:62,ease:regularEase},"-=1").to(mobileMenubar,1,{height:62,ease:regularEase},"-=1");tl.play();isSlideUp=true;menubarheight=62;}else{if(isSlideUp&&jQuery(window).width()>=801){tl.to(menubar,1,{top:0,ease:regularEase},"+=1").to(jQuery(".body-container .placeholder"),1,{height:154,ease:regularEase},"-=1").to(mobileMenubar,1,{height:154,ease:regularEase},"-=1");tl.play();isSlideUp=false;menubarheight=92;}}}window.init=function(){logger("[init()]");addPlaceholder();setMenubarHeight();initMenus();initCarousel();adjustScrollBtn();showRepresentSearchResult();loadVideo();initLeadership();initProductList();initContactForm();jQuery("select").customSelectMenu();showRepresentSearchResult();};init();function logger(_log,turnoff){if(typeof turnoff===undefined)turnoff=false;if(tracelog&&!turnoff)console.log(_log);}jQuery('#lang-dropdown-select-language li').click(function(){var lang=jQuery(this).attr('data-option-value');var href=jQuery(this).parents('form').find('input[name="'+lang+'"]').val();window.location.href=href;});jQuery(".mainmenu-container .menu > .expanded > a").attr('href','javascript:void(0)');if(jQuery(".view-campaign-list-page").length)jQuery(".view-campaign-list-page").parents('.content-middle').siblings('.content-top').css("padding-bottom","0");if(jQuery("#search-form").length)jQuery("#search-form").parents('.content-middle').siblings('.content-top').css("padding-bottom","0");if(jQuery(".social-career-container").length)jQuery(".social-career-container").parents('.content-middle').siblings('.content-top').css("padding-bottom","0");if(jQuery(".social-school-container").length)jQuery(".social-school-container").parents('.content-middle').siblings('.content-top').css("padding-bottom","0");if(jQuery(".news-type-list").length)jQuery(".news-type-list").parents('.content-middle').siblings('.content-top').css("padding-bottom","0");if(jQuery(".product-description-block").length)jQuery(".product-description-block").parents('.content-top').css("padding-bottom","0");jQuery(".view-campaign-list-page .view-header li a.active").each(function(){if(!jQuery(this).siblings('a').length){jQuery(this).parent().css('background-color','#019CDC');jQuery(this).css('color','#fff');}});var campaignContainer=jQuery(".view-campaign-list-page .custom-select-menu");jQuery(campaignContainer).next().click(function(){var url=jQuery('input',jQuery(campaignContainer)).val();window.location.href=url;});jQuery(".product-dropdown-block .custom-select-menu li").click(function(){var url=jQuery(this).attr("data-option-value");window.location.href=url;});if(jQuery(".node-type-news").length||jQuery(".node-type-career-news").length||jQuery(".node-type-school-news").length||jQuery(".node-type-education-news").length){var type=jQuery("ul.breadcrumb li a").last().attr("href");jQuery(".side-menu-block ul.menu li a").each(function(){if(jQuery(this).attr("href")==type)if(!(jQuery(this).parent().hasClass("active")))jQuery(this).parent().addClass("active");});}jQuery(window).on('load',function(){jQuery(".skin-default").each(function(index,item){var controlBtnHeight=jQuery(item).outerHeight();jQuery(".views-slideshow-controls-text-next",jQuery(item)).css("height",controlBtnHeight);jQuery(".views-slideshow-controls-text-previous",jQuery(item)).css("height",controlBtnHeight);});});jQuery(window).on('orientationchange',function(event){window.setMenubarHeight();window.adjustMenus();jQuery(".body-container > .placeholder").height(menubarheight);if(mainmenuopen)changeToCloseButton();else changeToMenuButton();jQuery(".maintenance-page .content").height((jQuery(window).height()-92)*0.8);jQuery(".maintenance-page .content").width(jQuery(window).width());});if(jQuery(".videobg-container").length){if(isMobileView)jQuery(".videobg-container").hide();if(jQuery(window).width()<1025)jQuery(".videobg-container").hide();if(jQuery(".lt-ie9").length<1)jQuery("
      ").insertAfter(".videobg-container");}jQuery(".maintenance-page .content").height((jQuery(window).height()-92)*0.8);jQuery(".maintenance-page .content").width(jQuery(window).width());if(drupalSettings.isTouchDevice()){var $body=jQuery('body');jQuery(document).on('focus','.webform-client-form input,.webform-client-form textarea',function(){$body.addClass('fixfixed');}).on('blur','.webform-client-form input,.webform-client-form textarea',function(){$body.removeClass('fixfixed');});}});; (function($){Drupal.theme.prototype.xianJanssenExampleButton=function(path,title){};Drupal.behaviors.xianJanssenExampleBehavior={attach:function(context,settings){}};Drupal.behaviors.xianJanssenSurveyPopup={attach:function(context,settings){if(drupalSettings.xian_janssen_survey!=undefined){var delay=parseInt(drupalSettings.xian_janssen_survey.delay);var acceptTime=parseInt(drupalSettings.xian_janssen_survey.accept);var refuseTime=parseInt(drupalSettings.xian_janssen_survey.refuse);var seconds=delay*1000;var surveyContainer=$(".last-survey-block");var surveyHeight=surveyContainer.outerHeight(true);var bottom=0-surveyHeight-50;surveyContainer.css("bottom",bottom);surveyContainer.css("display","block");var tl=new TimelineLite();var interval=3000;var surveyTime;function popup(){var curTime=new Date().getTime();if(!$.cookie('userLoadTime'))$.cookie('userLoadTime',curTime,{path:'/'});if(curTime-$.cookie('userLoadTime')>=seconds)surveyShow();}function surveyShow(){clearInterval(surveyTime);tl.to(surveyContainer,0.6,{bottom:0,ease:Cubic.easeOut});tl.play();}function surveyHide(){clearInterval(surveyTime);if($(window).width()<801)$(surveyContainer).hide();else{tl.to(surveyContainer,0.6,{bottom,ease:Cubic.easeOut});tl.play();}$.cookie('serveyInProcess',null);}if($($(surveyContainer),context).length)if(!($.cookie("surveyAgree")||$.cookie("surveyRefuse")))surveyTime=setInterval(popup,interval);else $(surveyContainer).hide();if($(".survey-finished").length&&$.cookie("surveyInProcess")){$.cookie('surveyAgree',1,{expires:acceptTime,path:'/'});$.cookie('userLoadTime',null);$.cookie("surveyInProcess",null);}$(".agree-survey").click(function(){surveyHide();$.cookie('surveyInProcess',1,{path:'/'});var url=$(this).attr("link");window.open(url);});$(".refuse-survey").click(function(){surveyHide();$.cookie('userLoadTime',null);$.cookie('surveyRefuse',1,{expires:refuseTime,path:'/'});});$(".close-survey").click(function(){surveyHide();$.cookie('userLoadTime',null);$.cookie('surveyRefuse',1,{expires:refuseTime,path:'/'});});$(".title-lenght-limit").each(function(i){var divH=$(this).parent().height();var divW=$(this).parent().parent().width();$(this).css('width',divW+'px');while($(this).outerHeight()>divH)$(this).text($(this).text().replace(/(\s)*([a-zA-Z0-9]+|\W)(\.\.\.)?$/,"..."));$(this).prev().text($(this).text());});$(".list-title-lenght-limit").each(function(i){$(this).parent().attr('title',$(this).text());var flag=false;var divH=50;var divW=$(this).closest('.overview-announcement-block').find('.list-title-lenght-limit').eq(0).prev().width();$('.body-container').append('

      '+$(this).text()+'

      ');while($('.list-title-lenght-limit-1:last-child').height()>divH)$('.list-title-lenght-limit-1:last-child').text($('.list-title-lenght-limit-1:last-child').text().replace(/(\s)*([a-zA-Z0-9]+|\W)(\.\.\.)?$/,"..."));$(this).prev().text($('.list-title-lenght-limit-1:last-child').text());});}}};drupalSettings.isTouchDevice=function(){return "ontouchstart" in window;};if(drupalSettings.isTouchDevice())Drupal.behaviors.jQueryMobileSlideShowTouchAdvance={attach:function(context,settings){self=Drupal.behaviors.jQueryMobileSlideShowTouchAdvance;jQuery.each(jQuery(".views_slideshow_cycle_main.viewsSlideshowCycle-processed img"),function(idx,value){value.addEventListener("touchstart",self.handleTouchStart);jQuery(value).parents(".views_slideshow_cycle_main.viewsSlideshowCycle-processed").addClass("views-slideshow-mobile-processed");});jQuery(self).bind("swipe",self.handleSwipe);},detach:function(){},original:{x:0,y:0},changed:{x:0,y:0},direction:{x:"",y:""},fired:false,handleTouchStart:function(evt){self=Drupal.behaviors.jQueryMobileSlideShowTouchAdvance;if(evt.touches){if(evt.targetTouches.length!=1)return false;if(evt.touches.length==1)evt.stopPropagation();self.original={x:evt.touches[0].clientX,y:evt.touches[0].clientY};self.target=jQuery(this).parents(".views_slideshow_cycle_main.viewsSlideshowCycle-processed").attr("id").replace("views_slideshow_cycle_main_","");Drupal.viewsSlideshow.action({"action":"pause","slideshowID":self.target});evt.target.addEventListener("touchmove",self.handleTouchMove);evt.target.addEventListener("touchend",self.handleTouchEnd);}},handleTouchMove:function(evt){self=Drupal.behaviors.jQueryMobileSlideShowTouchAdvance;self.changed={x:(evt.touches.length)?evt.touches[0].clientX:evt.changedTouches[0].clientX,y:(evt.touches.length)?evt.touches[0].clientY:evt.changedTouches[0].clientY};h=parseInt(self.original.x-self.changed.x),v=parseInt(self.original.y-self.changed.y);if(Math.abs(h)>Math.abs(v)){if(h!==0){self.direction.x=(h<0)?"right":"left";self.direction.y="";}}else{if(v!==0){self.direction.y=(v<0)?"up":"down";self.direction.x="";}}if(self.direction.x!=""&&self.direction.y=="")jQuery(self).trigger("swipe");},handleTouchEnd:function(evt){self=Drupal.behaviors.jQueryMobileSlideShowTouchAdvance;evt.target.removeEventListener("touchmove",self.handleTouchMove);evt.target.removeEventListener("touchend",self.handleTouchEnd);self.fired=false;},handleSwipe:function(evt){self=Drupal.behaviors.jQueryMobileSlideShowTouchAdvance;if(evt!=undefined&&self.fired==false&&self.direction.y==""){Drupal.viewsSlideshow.action({"action":(self.direction.x=="left")?"nextSlide":"previousSlide","slideshowID":self.target});self.fired=true;}}};if(drupalSettings.isTouchDevice())Drupal.behaviors.jQueryMobileNewsBanner={attach:function(context,settings){self=Drupal.behaviors.jQueryMobileNewsBanner;jQuery.each(jQuery(".news-banner li img"),function(idx,value){value.addEventListener("touchstart",self.handleTouchStart);jQuery(value).parents("li").addClass("news-banner-mobile-processed");});jQuery(self).bind("swipe",self.handleSwipe);},detach:function(){},original:{x:0,y:0},changed:{x:0,y:0},direction:{x:"",y:""},fired:false,handleTouchStart:function(evt){self=Drupal.behaviors.jQueryMobileNewsBanner;if(evt.touches){if(evt.targetTouches.length!=1)return false;if(evt.touches.length==1)evt.stopPropagation();self.original={x:evt.touches[0].clientX,y:evt.touches[0].clientY};self.target=jQuery(this).parents("li");evt.target.addEventListener("touchmove",self.handleTouchMove);evt.target.addEventListener("touchend",self.handleTouchEnd);}},handleTouchMove:function(evt){self=Drupal.behaviors.jQueryMobileNewsBanner;self.changed={x:(evt.touches.length)?evt.touches[0].clientX:evt.changedTouches[0].clientX,y:(evt.touches.length)?evt.touches[0].clientY:evt.changedTouches[0].clientY};h=parseInt(self.original.x-self.changed.x),v=parseInt(self.original.y-self.changed.y);if(Math.abs(h)>Math.abs(v)){if(h!==0){self.direction.x=(h<0)?"right":"left";self.direction.y="";}}else{if(v!==0){self.direction.y=(v<0)?"up":"down";self.direction.x="";}}if(self.direction.x!=""&&self.direction.y=="")jQuery(self).trigger("swipe");},handleTouchEnd:function(evt){self=Drupal.behaviors.jQueryMobileNewsBanner;evt.target.removeEventListener("touchmove",self.handleTouchMove);evt.target.removeEventListener("touchend",self.handleTouchEnd);self.fired=false;},handleSwipe:function(evt){self=Drupal.behaviors.jQueryMobileNewsBanner;if(evt!=undefined&&self.fired==false&&self.direction.y==""){var num=$("li",self.target.parent('ul')).length;if(self.direction.x=="left"){var item_num=(self.target.index()+1)%num;$("span",".pagination-container").eq(item_num).trigger("click");}else{var i=self.target.index()-1;var item_num=i<0?i+num:i;$("span",".pagination-container").eq(item_num).trigger("click");}self.fired=true;}}};})(jQuery);; (function($){var msie=document.documentMode,pathname=window.location.pathname;unsupportPath="/unsupported-browser";if(pathname.match('^/en$')||pathname.match('^/en/.*$'))unsupportPath='/en'+unsupportPath;if(pathname.indexOf("unsupported-browser")<0&&msie<9)window.location.href=unsupportPath;})(jQuery);; (function($,Drupal,drupalSettings){'use strict';Drupal.extlink=Drupal.extlink||{};Drupal.extlink.attach=function(context,drupalSettings){if(typeof drupalSettings.data==='undefined'||!drupalSettings.data.hasOwnProperty('extlink'))return;var extIconPlacement='append';if(drupalSettings.data.extlink.extIconPlacement&&drupalSettings.data.extlink.extIconPlacement!='0')extIconPlacement=drupalSettings.data.extlink.extIconPlacement;var pattern=/^(([^\/:]+?\.)*)([^\.:]{1,})((\.[a-z0-9]{1,253})*)(:[0-9]{1,5})?$/;var host=window.location.host.replace(pattern,'$2$3$6');var subdomain=window.location.host.replace(host,'');var subdomains;if(drupalSettings.data.extlink.extSubdomains)subdomains='([^/]*\\.)?';else if(subdomain==='www.'||subdomain==='')subdomains='(www\\.)?';else subdomains=subdomain.replace('.','\\.');var whitelistedDomains=false;if(drupalSettings.data.extlink.whitelistedDomains){whitelistedDomains=[];for(var i=0;i0)&&!(extCssExplicit&&$(this).parents(extCssExplicit).length<1)){var match=false;if(whitelistedDomains)for(var i=0;i0)&&!(extCssExplicit&&$(this).parents(extCssExplicit).length<1))mailto_links.push(this);}}catch(error){return false;}});if(drupalSettings.data.extlink.extClass!=='0'&&drupalSettings.data.extlink.extClass!=='')Drupal.extlink.applyClassAndSpan(external_links,drupalSettings.data.extlink.extClass,extIconPlacement);if(drupalSettings.data.extlink.mailtoClass!=='0'&&drupalSettings.data.extlink.mailtoClass!=='')Drupal.extlink.applyClassAndSpan(mailto_links,drupalSettings.data.extlink.mailtoClass,extIconPlacement);if(drupalSettings.data.extlink.extTarget){$(external_links).filter(function(){return !(drupalSettings.data.extlink.extTargetNoOverride&&$(this).is('a[target]'));}).attr({target:'_blank'});$(external_links).attr('rel',function(i,val){if(val===null||typeof val==='undefined')return 'noopener';if(val.indexOf('noopener')>-1)if(val.indexOf('noopener')===-1)return val+' noopener';else return val;else return val+' noopener';});}if(drupalSettings.data.extlink.extNofollow)$(external_links).attr('rel',function(i,val){if(val===null||typeof val==='undefined')return 'nofollow';var target='nofollow';if(drupalSettings.data.extlink.extFollowNoOverride)target='follow';if(val.indexOf(target)===-1)return val+' nofollow';return val;});if(drupalSettings.data.extlink.extNoreferrer)$(external_links).attr('rel',function(i,val){if(val===null||typeof val==='undefined')return 'noreferrer';if(val.indexOf('noreferrer')===-1)return val+' noreferrer';return val;});Drupal.extlink=Drupal.extlink||{};Drupal.extlink.popupClickHandler=Drupal.extlink.popupClickHandler||function(){if(drupalSettings.data.extlink.extAlert)return confirm(drupalSettings.data.extlink.extAlertText);};$(external_links).off("click.extlink");$(external_links).on("click.extlink",function(e){return Drupal.extlink.popupClickHandler(e,this);});};Drupal.extlink.applyClassAndSpan=function(links,class_name,icon_placement){var $links_to_process;if(drupalSettings.data.extlink.extImgClass)$links_to_process=$(links);else{var links_with_images=$(links).find('img, svg').parents('a');$links_to_process=$(links).not(links_with_images);}if(class_name!=='0')$links_to_process.addClass(class_name);$links_to_process.attr('data-extlink','');var i;var length=$links_to_process.length;for(i=0;i');else $link[icon_placement]('');else if(class_name===drupalSettings.data.extlink.mailtoClass)$link[icon_placement]('太阳集团电子游戏(香港)有限公司-baidu百科');}};Drupal.behaviors.extlink=Drupal.behaviors.extlink||{};Drupal.behaviors.extlink.attach=function(context,drupalSettings){if(typeof extlinkAttach==='function')extlinkAttach(context);else Drupal.extlink.attach(context,drupalSettings);};})(jQuery,Drupal,drupalSettings);;