function CalendarEvent(n){var i,t;if(CalendarEvent.hasByElementID($(n).attr("id"))==!0)return CalendarEvent.getByElementID($(n).attr("id"),!1);i=$(n)[0];this._element=i;$(this._element).attr("id")==undefined&&$(this._element).attr("id",CalendarEvent.__getUniqueID());this.CalendarTypes={0:"Device Calendar",1:"Google",2:"Outlook",3:"ExternalLink"};t=this;$(i).find(".js-CalendarEventSettings>var").each(function(n,i){var u=$(i).attr("name"),r=$(i).html();if(u!==undefined&&r!==undefined)switch(u){case"ExternalLinkUrl":case"DateStart":case"DateEnd":case"TimeZone":case"Title":case"Description":case"Location":case"ButtonText":case"OrganizerEmail":case"OrganizerName":t[u]=r;break;case"OptionText_Default":t.CalendarTypes[0]=r;break;case"OptionText_Google":t.CalendarTypes[1]=r;break;case"OptionText_Outlook":t.CalendarTypes[2]=r;break;case"OptionText_ExternalLink":t.CalendarTypes[3]=r}});(typeof t.ExternalLinkUrl=="undefined"||t.ExternalLinkUrl==null)&&delete t.CalendarTypes[3];this._isRendered=!1;CalendarEvent.instances[$(i).attr("id")]=this}var MWF,mwfAutoInit,Accessibility;!function(n){var t=navigator.userAgent;n.HTMLPictureElement&&/ecko/.test(t)&&t.match(/rv\:(\d+)/)&&RegExp.$1<41&&addEventListener("resize",function(){var r,u=document.createElement("source"),e=function(n){var i,r,t=n.parentNode;"PICTURE"===t.nodeName.toUpperCase()?(i=u.cloneNode(),t.insertBefore(i,t.firstElementChild),setTimeout(function(){t.removeChild(i)})):(!n._pfLastSize||n.offsetWidth>n._pfLastSize)&&(n._pfLastSize=n.offsetWidth,r=n.sizes,n.sizes+=",100vw",setTimeout(function(){n.sizes=r}))},o=function(){for(var t=document.querySelectorAll("picture > img, img[srcset][sizes]"),n=0;n<t.length;n++)e(t[n])},t=function(){clearTimeout(r);r=setTimeout(o,99)},i=n.matchMedia&&matchMedia("(orientation: landscape)"),f=function(){t();i&&i.addListener&&i.addListener(t)};return u.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?f():document.addEventListener("DOMContentLoaded",f),t}())}(window),function(n,t,i){"use strict";function v(n){return" "===n||"\t"===n||"\n"===n||"\f"===n||"\r"===n}function pt(t,i){var r=new n.Image;return r.onerror=function(){e[t]=!1;o()},r.onload=function(){e[t]=1===r.width;o()},r.src=i,"pending"}function wt(){w=!1;a=n.devicePixelRatio;h={};b={};r.DPR=a||1;u.width=Math.max(n.innerWidth||0,f.clientWidth);u.height=Math.max(n.innerHeight||0,f.clientHeight);u.vw=u.width/100;u.vh=u.height/100;y=[u.height,u.width,a].join("-");u.em=r.getEmValue();u.rem=u.em}function bt(n,t,i,r){var f,o,e,u;return"saveData"===p.algorithm?n>2.7?u=i+1:(o=t-i,f=Math.pow(n-.6,1.5),e=o*f,r&&(e+=.1*f),u=n+e):u=i>1?Math.sqrt(n*t):n,u>i}function kt(n){var i,t=r.getSet(n),u=!1;"pending"!==t&&(u=y,t&&(i=r.setRes(t),r.applySetCandidate(i,n)));n[r.ns].evaled=u}function dt(n,t){return n.res-t.res}function gt(n,t,i){var u;return!i&&t&&(i=n[r.ns].sets,i=i&&i[i.length-1]),u=et(t,i),u&&(t=r.makeUrl(t),n[r.ns].curSrc=t,n[r.ns].curCan=u,u.res||ft(u,u.set.sizes)),u}function et(n,t){var i,f,u;if(n&&t)for(u=r.parseSet(t),n=r.makeUrl(n),i=0;i<u.length;i++)if(n===r.makeUrl(u[i].url)){f=u[i];break}return f}function ni(n,t){for(var i,f,o=n.getElementsByTagName("source"),u=0,e=o.length;e>u;u++)i=o[u],i[r.ns]=!0,f=i.getAttribute("srcset"),f&&t.push({srcset:f,media:i.getAttribute("media"),type:i.getAttribute("type"),sizes:i.getAttribute("sizes")})}function ti(n,t){function h(t){var i,r=t.exec(n.substring(e));if(r)return(i=r[0],e+=i.length,i)}function o(){for(var u,r,e,h,v,o,l,y,n=!1,i={},a=0;a<f.length;a++)h=f[a],v=h[h.length-1],o=h.substring(0,h.length-1),l=parseInt(o,10),y=parseFloat(o),at.test(o)&&"w"===v?((u||r)&&(n=!0),0===l?n=!0:u=l):ai.test(o)&&"x"===v?((u||r||e)&&(n=!0),0>y?n=!0:r=y):at.test(o)&&"h"===v?((e||r)&&(n=!0),0===l?n=!0:e=l):n=!0;n||(i.url=s,u&&(i.w=u),r&&(i.d=r),e&&(i.h=e),e||r||u||(i.d=1),1===i.d&&(t.has1x=!0),i.set=t,c.push(i))}function l(){for(h(si),i="",u="in descriptor";;){if(r=n.charAt(e),"in descriptor"===u)if(v(r))i&&(f.push(i),i="",u="after descriptor");else{if(","===r)return e+=1,i&&f.push(i),void o();if("("===r)i+=r,u="in parens";else{if(""===r)return i&&f.push(i),void o();i+=r}}else if("in parens"===u)if(")"===r)i+=r,u="in descriptor";else{if(""===r)return f.push(i),void o();i+=r}else if("after descriptor"===u&&!v(r)){if(""===r)return void o();u="in descriptor";e-=1}e+=1}}for(var s,f,i,u,r,a=n.length,e=0,c=[];;){if(h(hi),e>=a)return c;s=h(ci);f=[];","===s.slice(-1)?(s=s.replace(li,""),o()):l()}}function ii(n){function s(n){function u(){r&&(f.push(r),r="")}function s(){f[0]&&(h.push(f),f=[])}for(var i,r="",f=[],h=[],e=0,t=0,o=!1;;){if(i=n.charAt(t),""===i)return u(),s(),h;if(o){if("*"===i&&"/"===n[t+1]){o=!1;t+=2;u();continue}t+=1}else{if(v(i)){if(n.charAt(t-1)&&v(n.charAt(t-1))||!r){t+=1;continue}if(0===e){u();t+=1;continue}i=" "}else if("("===i)e+=1;else if(")"===i)e-=1;else{if(","===i){u();s();t+=1;continue}if("/"===i&&"*"===n.charAt(t+1)){o=!0;t+=2;continue}}r+=i;t+=1}}}function h(n){return c.test(n)&&parseFloat(n)>=0?!0:l.test(n)?!0:"0"===n||"-0"===n||"+0"===n?!0:!1}var i,u,e,t,f,o,c=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,l=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(u=s(n),e=u.length,i=0;e>i;i++)if((t=u[i],f=t[t.length-1],h(f))&&((o=f,t.pop(),0===t.length)||(t=t.join(" "),r.matchesMedia(t))))return o;return"100vw"}t.createElement("picture");var ri,c,ot,y,r={},l=function(){},s=t.createElement("img"),k=s.getAttribute,st=s.setAttribute,ht=s.removeAttribute,f=t.documentElement,e={},p={algorithm:""},d="data-pfsrc",g=d+"set",nt=navigator.userAgent,ui=/rident/.test(nt)||/ecko/.test(nt)&&nt.match(/rv\:(\d+)/)&&RegExp.$1>35,tt="currentSrc",fi=/\s+\+?\d+(e\d+)?w/,ei=/(\([^)]+\))?\s*(.+)/,it=n.picturefillCFG,oi="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",ct="font-size:100%!important;",w=!0,h={},b={},a=n.devicePixelRatio,u={px:1,"in":96},lt=t.createElement("a"),rt=!1,si=/^[ \t\n\r\u000c]+/,hi=/^[, \t\n\r\u000c]+/,ci=/^[^ \t\n\r\u000c]+/,li=/[,]+$/,at=/^\d+$/,ai=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,vt=function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent&&n.attachEvent("on"+t,i)},ut=function(n){var t={};return function(i){return i in t||(t[i]=n(i)),t[i]}},yt=function(){var n=/^([\d\.]+)(em|vw|px)$/,t=function(){for(var n=arguments,t=0,i=n[0];++t in n;)i=i.replace(n[t],n[++t]);return i},i=ut(function(n){return"return "+t((n||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"});return function(t,r){var f;if(!(t in h))if(h[t]=!1,r&&(f=t.match(n)))h[t]=f[1]*u[f[2]];else try{h[t]=new Function("e",i(t))(u)}catch(e){}return h[t]}}(),ft=function(n,t){return n.w?(n.cWidth=r.calcListLength(t||"100vw"),n.res=n.w/n.cWidth):n.res=n.d,n},o=function(n){var f,u,e,i=n||{};if(i.elements&&1===i.elements.nodeType&&("IMG"===i.elements.nodeName.toUpperCase()?i.elements=[i.elements]:(i.context=i.elements,i.elements=null)),f=i.elements||r.qsa(i.context||t,i.reevaluate||i.reselect?r.sel:r.selShort),e=f.length){for(r.setupRun(i),rt=!0,u=0;e>u;u++)r.fillImg(f[u],i);r.teardownRun(i)}};for(ri=n.console&&console.warn?function(n){console.warn(n)}:l,(tt in s)||(tt="src"),e["image/jpeg"]=!0,e["image/gif"]=!0,e["image/png"]=!0,e["image/svg+xml"]=t.implementation.hasFeature("http://wwwindow.w3.org/TR/SVG11/feature#Image","1.1"),r.ns=("pf"+(new Date).getTime()).substr(0,9),r.supSrcset=("srcset"in s),r.supSizes=("sizes"in s),r.supPicture=!!n.HTMLPictureElement,r.supSrcset&&r.supPicture&&!r.supSizes&&!function(n){s.srcset="data:,a";n.src="data:,a";r.supSrcset=s.complete===n.complete;r.supPicture=r.supSrcset&&r.supPicture}(t.createElement("img")),r.selShort="picture>img,img[srcset]",r.sel=r.selShort,r.cfg=p,r.supSrcset&&(r.sel+=",img["+g+"]"),r.DPR=a||1,r.u=u,r.types=e,ot=r.supSrcset&&!r.supSizes,r.setSize=l,r.makeUrl=ut(function(n){return lt.href=n,lt.href}),r.qsa=function(n,t){return n.querySelectorAll(t)},r.matchesMedia=function(){return r.matchesMedia=n.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?function(n){return!n||matchMedia(n).matches}:r.mMQ,r.matchesMedia.apply(this,arguments)},r.mMQ=function(n){return n?yt(n):!0},r.calcLength=function(n){var t=yt(n,!0)||!1;return 0>t&&(t=!1),t},r.supportsType=function(n){return n?e[n]:!0},r.parseSize=ut(function(n){var t=(n||"").match(ei);return{media:t&&t[1],length:t&&t[2]}}),r.parseSet=function(n){return n.cands||(n.cands=ti(n.srcset,n)),n.cands},r.getEmValue=function(){var n;if(!c&&(n=t.body)){var i=t.createElement("div"),r=f.style.cssText,u=n.style.cssText;i.style.cssText=oi;f.style.cssText=ct;n.style.cssText=ct;n.appendChild(i);c=i.offsetWidth;n.removeChild(i);c=parseFloat(c,10);f.style.cssText=r;n.style.cssText=u}return c||16},r.calcListLength=function(n){if(!(n in b)||p.uT){var t=r.calcLength(ii(n));b[n]=t?t:u.width}return b[n]},r.setRes=function(n){var t,i,u;if(n)for(t=r.parseSet(n),i=0,u=t.length;u>i;i++)ft(t[i],n.sizes);return t},r.setRes.res=ft,r.applySetCandidate=function(n,t){if(n.length){var f,e,o,l,i,s,u,a,v,h=t[r.ns],c=r.DPR;if(s=h.curSrc||t[tt],u=h.curCan||gt(t,s,n[0].set),u&&u.set===n[0].set&&(v=ui&&!t.complete&&u.res-.1>c,v||(u.cached=!0,u.res>=c&&(i=u))),!i)for(n.sort(dt),l=n.length,i=n[l-1],e=0;l>e;e++)if(f=n[e],f.res>=c){o=e-1;i=n[o]&&(v||s!==r.makeUrl(f.url))&&bt(n[o].res,f.res,c,n[o].cached)?n[o]:f;break}i&&(a=r.makeUrl(i.url),h.curSrc=a,h.curCan=i,a!==s&&r.setSrc(t,i),r.setSize(t))}},r.setSrc=function(n,t){var i;n.src=t.url;"image/svg+xml"===t.set.type&&(i=n.style.width,n.style.width=n.offsetWidth+1+"px",n.offsetWidth+1&&(n.style.width=i))},r.getSet=function(n){for(var t,u,f=!1,e=n[r.ns].sets,i=0;i<e.length&&!f;i++)if(t=e[i],t.srcset&&r.matchesMedia(t.media)&&(u=r.supportsType(t.type))){"pending"===u&&(t=u);f=t;break}return f},r.parseSets=function(n,t,u){var o,e,s,h,c=t&&"PICTURE"===t.nodeName.toUpperCase(),f=n[r.ns];(f.src===i||u.src)&&(f.src=k.call(n,"src"),f.src?st.call(n,d,f.src):ht.call(n,d));(f.srcset===i||u.srcset||!r.supSrcset||n.srcset)&&(o=k.call(n,"srcset"),f.srcset=o,h=!0);f.sets=[];c&&(f.pic=!0,ni(t,f.sets));f.srcset?(e={srcset:f.srcset,sizes:k.call(n,"sizes")},f.sets.push(e),s=(ot||f.src)&&fi.test(f.srcset||""),s||!f.src||et(f.src,e)||e.has1x||(e.srcset+=", "+f.src,e.cands.push({url:f.src,d:1,set:e}))):f.src&&f.sets.push({srcset:f.src,sizes:null});f.curCan=null;f.curSrc=i;f.supported=!(c||e&&!r.supSrcset||s);h&&r.supSrcset&&!f.supported&&(o?(st.call(n,g,o),n.srcset=""):ht.call(n,g));f.supported&&!f.srcset&&(!f.src&&n.src||n.src!==r.makeUrl(f.src))&&(null===f.src?n.removeAttribute("src"):n.src=f.src);f.parsed=!0},r.fillImg=function(n,t){var i,u=t.reselect||t.reevaluate;n[r.ns]||(n[r.ns]={});i=n[r.ns];(u||i.evaled!==y)&&((!i.parsed||t.reevaluate)&&r.parseSets(n,n.parentNode,t),i.supported?i.evaled=y:kt(n))},r.setupRun=function(){(!rt||w||a!==n.devicePixelRatio)&&wt()},r.supPicture?(o=l,r.fillImg=l):!function(){var i,h=n.attachEvent?/d$|^c/:/d$|^c|^i/,e=function(){var n=t.readyState||"";o=setTimeout(e,"loading"===n?200:999);t.body&&(r.fillImgs(),i=i||h.test(n),i&&clearTimeout(o))},o=setTimeout(e,t.body?9:99),c=function(n,t){var i,r,u=function(){var f=new Date-r;t>f?i=setTimeout(u,t-f):(i=null,n())};return function(){r=new Date;i||(i=setTimeout(u,t))}},s=f.clientHeight,l=function(){w=Math.max(n.innerWidth||0,f.clientWidth)!==u.width||f.clientHeight!==s;s=f.clientHeight;w&&r.fillImgs()};vt(n,"resize",c(l,99));vt(t,"readystatechange",e)}(),r.picturefill=o,r.fillImgs=o,r.teardownRun=l,o._=r,n.picturefillCFG={pf:r,push:function(n){var t=n.shift();"function"==typeof r[t]?r[t].apply(r,n):(p[t]=n[0],rt&&r.fillImgs({reselect:!0}))}};it&&it.length;)n.picturefillCFG.push(it.shift());n.picturefill=o;"object"==typeof module&&"object"==typeof module.exports?module.exports=o:"function"==typeof define&&define.amd&&define("picturefill",function(){return o});r.supPicture||(e["image/webp"]=pt("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="))}(window,document);!function(n,t,i){function o(n,t){return typeof n===t}function nt(){var i,n,u,f,e,s,t,h;for(h in l){if(i=[],n=l[h],n.name&&(i.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(u=0;u<n.options.aliases.length;u++)i.push(n.options.aliases[u].toLowerCase());for(f=o(n.fn,"function")?n.fn():n.fn,e=0;e<i.length;e++)s=i[e],t=s.split("."),1===t.length?r[t[0]]=f:(!r[t[0]]||r[t[0]]instanceof Boolean||(r[t[0]]=new Boolean(r[t[0]])),r[t[0]][t[1]]=f),g.push((f?"":"no-")+t.join("-"))}}function tt(n){var t=e.className,i=r._config.classPrefix||"",u;(h&&(t=t.baseVal),r._config.enableJSClass)&&(u=new RegExp("(^|\\s)"+i+"no-js(\\s|$)"),t=t.replace(u,"$1"+i+"js$2"));r._config.enableClasses&&(t+=" "+i+n.join(" "+i),h?e.className.baseVal=t:e.className=t)}function s(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):h?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function it(n,t){return!!~(""+n).indexOf(t)}function rt(n){return n.replace(/([a-z])-([a-z])/g,function(n,t,i){return t+i.toUpperCase()}).replace(/^-/,"")}function ut(n,t){return function(){return n.apply(t,arguments)}}function ft(n,t,i){var r,u;for(u in n)if(n[u]in t)return i===!1?n[u]:(r=t[n[u]],o(r,"function")?ut(r,i||t):r);return!1}function k(n){return n.replace(/([A-Z])/g,function(n,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function et(){var n=t.body;return n||(n=s(h?"svg":"body"),n.fake=!0),n}function ot(n,i,r,u){var o,a,c,v,l="modernizr",h=s("div"),f=et();if(parseInt(r,10))for(;r--;)c=s("div"),c.id=u?u[r]:l+(r+1),h.appendChild(c);return o=s("style"),o.type="text/css",o.id="s"+l,(f.fake?f:h).appendChild(o),f.appendChild(h),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),h.id=l,f.fake&&(f.style.background="",f.style.overflow="hidden",v=e.style.overflow,e.style.overflow="hidden",e.appendChild(f)),a=i(h,n),f.fake?(f.parentNode.removeChild(f),e.style.overflow=v,e.offsetHeight):h.parentNode.removeChild(h),!!a}function st(t,r){var f=t.length,u;if("CSS"in n&&"supports"in n.CSS){for(;f--;)if(n.CSS.supports(k(t[f]),r))return!0;return!1}if("CSSSupportsRule"in n){for(u=[];f--;)u.push("("+k(t[f])+":"+r+")");return u=u.join(" or "),ot("@supports ("+u+") { #modernizr { position: absolute; } }",function(n){return"absolute"==getComputedStyle(n,null).position})}return i}function ht(n,t,r,f){function c(){a&&(delete u.style,delete u.modElem)}var l,a,h,v,e,y,p;if((f=o(f,"undefined")?!1:f,!o(r,"undefined"))&&(l=st(n,r),!o(l,"undefined")))return l;for(p=["modernizr","tspan"];!u.style;)a=!0,u.modElem=s(p.shift()),u.style=u.modElem.style;for(v=n.length,h=0;v>h;h++)if(e=n[h],y=u.style[e],it(e,"-")&&(e=rt(e)),u.style[e]!==i){if(f||o(r,"undefined"))return c(),"pfx"==t?e:!0;try{u.style[e]=r}catch(w){}if(u.style[e]!=y)return c(),"pfx"==t?e:!0}return c(),!1}function d(n,t,i,r,u){var f=n.charAt(0).toUpperCase()+n.slice(1),e=(n+" "+p.join(f+" ")+f).split(" ");return o(t,"string")||o(t,"undefined")?ht(e,t,r,u):(e=(n+" "+w.join(f+" ")+f).split(" "),ft(e,t,i))}function c(n,t,r){return d(n,i,i,t,r)}var g=[],l=[],f={_version:"3.1.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(n,t){var i=this;setTimeout(function(){t(i[n])},0)},addTest:function(n,t,i){l.push({name:n,fn:t,options:i})},addAsyncTest:function(n){l.push({name:null,fn:n})}},r=function(){},e,h,v,y,p,w,b,u,a;for(r.prototype=f,r=new r,r.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),r.addTest("ie8compat",!n.addEventListener&&!!t.documentMode&&7===t.documentMode),e=t.documentElement,h="svg"===e.nodeName.toLowerCase(),h||!function(n,t){function v(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function h(){var n=i.elements;return"string"==typeof n?n.split(" "):n}function y(n,t){var r=i.elements;"string"!=typeof r&&(r=r.join(" "));"string"!=typeof n&&(n=n.join(" "));i.elements=r+" "+n;f(t)}function u(n){var t=a[n[l]];return t||(t={},s++,n[l]=s,a[s]=t),t}function c(n,i,f){if(i||(i=t),r)return i.createElement(n);f||(f=u(i));var e;return e=f.cache[n]?f.cache[n].cloneNode():k.test(n)?(f.cache[n]=f.createElem(n)).cloneNode():f.createElem(n),!e.canHaveChildren||b.test(n)||e.tagUrn?e:f.frag.appendChild(e)}function p(n,i){if(n||(n=t),r)return n.createDocumentFragment();i=i||u(n);for(var e=i.frag.cloneNode(),f=0,o=h(),s=o.length;s>f;f++)e.createElement(o[f]);return e}function w(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(r){return i.shivMethods?c(r,n,t):t.createElem(r)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/[\w\-:]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(i,t.frag)}function f(n){n||(n=t);var f=u(n);return!i.shivCSS||e||f.hasCSS||(f.hasCSS=!!v(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),r||w(n,f),n}var e,r,o=n.html5||{},b=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,k=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,l="_html5shiv",s=0,a={},i;!function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";e="hidden"in n;r=1==n.childNodes.length||function(){t.createElement("a");var n=t.createDocumentFragment();return"undefined"==typeof n.cloneNode||"undefined"==typeof n.createDocumentFragment||"undefined"==typeof n.createElement}()}catch(i){e=!0;r=!0}}();i={elements:o.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:o.shivCSS!==!1,supportsUnknownElements:r,shivMethods:o.shivMethods!==!1,type:"default",shivDocument:f,createElement:c,createDocumentFragment:p,addElements:y};n.html5=i;f(t);"object"==typeof module&&module.exports&&(module.exports=i)}("undefined"!=typeof n?n:this,t),v=f._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):[],f._prefixes=v,r.addTest("cssgradients",function(){var n="background-image:",i=n+v.join("linear-gradient(left top,#9f9, white);"+n).slice(0,-n.length),u,t;return r._config.usePrefixes&&(i+=n+"-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));"),u=s("a"),t=u.style,t.cssText=i,(""+t.backgroundImage).indexOf("gradient")>-1}),r.addTest("cssremunit",function(){var n=s("a").style;try{n.fontSize="3rem"}catch(t){}return/rem/.test(n.fontSize)}),y="Moz O ms Webkit",p=f._config.usePrefixes?y.split(" "):[],f._cssomPrefixes=p,w=f._config.usePrefixes?y.toLowerCase().split(" "):[],f._domPrefixes=w,b={elem:s("modernizr")},r._q.push(function(){delete b.elem}),u={style:b.elem.style},r._q.unshift(function(){delete u.style}),f.testAllProps=d,f.testAllProps=c,r.addTest("flexbox",c("flexBasis","1px",!0)),r.addTest("boxsizing",c("boxSizing","border-box",!0)&&(t.documentMode===i||t.documentMode>7)),r.addTest("flexboxlegacy",c("boxDirection","reverse",!0)),nt(),tt(g),delete f.addTest,delete f.addAsyncTest,a=0;a<r._q.length;a++)r._q[a]();n.Modernizr=r}(window,document);!function(n,t,i,r){"use strict";function si(n,t,i){return setTimeout(hi(n,i),t)}function it(n,t,i){return Array.isArray(n)?(v(n,i[t],i),!0):!1}function v(n,t,i){var u;if(n)if(n.forEach)n.forEach(t,i);else if(n.length!==r)for(u=0;u<n.length;)t.call(i,n[u],u,n),u++;else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u,n)}function rr(t,i,r){var u="DEPRECATED METHOD: "+i+"\n"+r+" AT \n";return function(){var i=new Error("get-stack-trace"),f=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=n.console&&(n.console.warn||n.console.log);return r&&r.call(n.console,u,f),t.apply(this,arguments)}}function o(n,t,i){var r,u=t.prototype;r=n.prototype=Object.create(u);r.constructor=n;r._super=u;i&&w(r,i)}function hi(n,t){return function(){return n.apply(t,arguments)}}function ci(n,t){return typeof n==rf?n.apply(t?t[0]||r:r,t):n}function ur(n,t){return n===r?t:n}function vt(n,t,i){v(pt(t),function(t){n.addEventListener(t,i,!1)})}function yt(n,t,i){v(pt(t),function(t){n.removeEventListener(t,i,!1)})}function fr(n,t){for(;n;){if(n==t)return!0;n=n.parentNode}return!1}function d(n,t){return n.indexOf(t)>-1}function pt(n){return n.trim().split(/\s+/g)}function rt(n,t,i){if(n.indexOf&&!i)return n.indexOf(t);for(var r=0;r<n.length;){if(i&&n[r][i]==t||!i&&n[r]===t)return r;r++}return-1}function wt(n){return Array.prototype.slice.call(n,0)}function er(n,t,i){for(var f,u=[],e=[],r=0;r<n.length;)f=t?n[r][t]:n[r],rt(e,f)<0&&u.push(n[r]),e[r]=f,r++;return i&&(u=t?u.sort(function(n,i){return n[t]>i[t]}):u.sort()),u}function bt(n,t){for(var i,u,e=t[0].toUpperCase()+t.slice(1),f=0;f<wr.length;){if(i=wr[f],u=i?i+e:t,u in n)return u;f++}return r}function cu(){return ff++}function or(t){var i=t.ownerDocument||t;return i.defaultView||i.parentWindow||n}function s(n,t){var i=this;this.manager=n;this.callback=t;this.element=n.element;this.target=n.options.inputTarget;this.domHandler=function(t){ci(n.options.enable,[n])&&i.handler(t)};this.init()}function lu(n){var i,t=n.options.inputClass;return new(i=t?t:ef?ai:of?gt:kr?vi:dt)(n,au)}function au(n,t,i){var r=i.pointers.length,o=i.changedPointers.length,s=t&f&&r-o==0,h=t&(u|e)&&r-o==0;i.isFirst=!!s;i.isFinal=!!h;s&&(n.session={});i.eventType=t;vu(n,i);n.emit("hammer.input",i);n.recognize(i);n.session.prevInput=i}function vu(n,t){var i=n.session,f=t.pointers,o=f.length,r,e;i.firstInput||(i.firstInput=sr(t));o>1&&!i.firstMultiple?i.firstMultiple=sr(t):1===o&&(i.firstMultiple=!1);var s=i.firstInput,u=i.firstMultiple,h=u?u.center:s.center,c=t.center=hr(f);t.timeStamp=gi();t.deltaTime=t.timeStamp-s.timeStamp;t.angle=li(h,c);t.distance=kt(h,c);yu(i,t);t.offsetDirection=lr(t.deltaX,t.deltaY);r=cr(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=r.x;t.overallVelocityY=r.y;t.overallVelocity=g(r.x)>g(r.y)?r.x:r.y;t.scale=u?bu(u.pointers,f):1;t.rotation=u?wu(u.pointers,f):0;t.maxPointers=i.prevInput?t.pointers.length>i.prevInput.maxPointers?t.pointers.length:i.prevInput.maxPointers:t.pointers.length;pu(i,t);e=n.element;fr(t.srcEvent.target,e)&&(e=t.srcEvent.target);t.target=e}function yu(n,t){var i=t.center,r=n.offsetDelta||{},e=n.prevDelta||{},o=n.prevInput||{};(t.eventType===f||o.eventType===u)&&(e=n.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=n.offsetDelta={x:i.x,y:i.y});t.deltaX=e.x+(i.x-r.x);t.deltaY=e.y+(i.y-r.y)}function pu(n,t){var f,o,s,h,i=n.lastInterval||t,c=t.timeStamp-i.timeStamp;if(t.eventType!=e&&(c>sf||i.velocity===r)){var l=t.deltaX-i.deltaX,a=t.deltaY-i.deltaY,u=cr(c,l,a);o=u.x;s=u.y;f=g(u.x)>g(u.y)?u.x:u.y;h=lr(l,a);n.lastInterval=t}else f=i.velocity,o=i.velocityX,s=i.velocityY,h=i.direction;t.velocity=f;t.velocityX=o;t.velocityY=s;t.direction=h}function sr(n){for(var i=[],t=0;t<n.pointers.length;)i[t]={clientX:ut(n.pointers[t].clientX),clientY:ut(n.pointers[t].clientY)},t++;return{timeStamp:gi(),pointers:i,center:hr(i),deltaX:n.deltaX,deltaY:n.deltaY}}function hr(n){var t=n.length;if(1===t)return{x:ut(n[0].clientX),y:ut(n[0].clientY)};for(var r=0,u=0,i=0;t>i;)r+=n[i].clientX,u+=n[i].clientY,i++;return{x:ut(r/t),y:ut(u/t)}}function cr(n,t,i){return{x:t/n||0,y:i/n||0}}function lr(n,t){return n===t?ri:g(n)>=g(t)?0>n?st:ht:0>t?ct:lt}function kt(n,t,i){i||(i=gr);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return Math.sqrt(r*r+u*u)}function li(n,t,i){i||(i=gr);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return 180*Math.atan2(u,r)/Math.PI}function wu(n,t){return li(t[1],t[0],ui)+li(n[1],n[0],ui)}function bu(n,t){return kt(t[0],t[1],ui)/kt(n[0],n[1],ui)}function dt(){this.evEl=cf;this.evWin=lf;this.allow=!0;this.pressed=!1;s.apply(this,arguments)}function ai(){this.evEl=nu;this.evWin=tu;s.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}function ar(){this.evTarget=pf;this.evWin=wf;this.started=!1;s.apply(this,arguments)}function ku(n,t){var i=wt(n.touches),r=wt(n.changedTouches);return t&(u|e)&&(i=er(i.concat(r),"identifier",!0)),[i,r]}function gt(){this.evTarget=ru;this.targetIds={};s.apply(this,arguments)}function du(n,t){var r=wt(n.touches),o=this.targetIds;if(t&(f|nt)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var i,s,h=wt(n.changedTouches),c=[],l=this.target;if(s=r.filter(function(n){return fr(n.target,l)}),t===f)for(i=0;i<s.length;)o[s[i].identifier]=!0,i++;for(i=0;i<h.length;)o[h[i].identifier]&&c.push(h[i]),t&(u|e)&&delete o[h[i].identifier],i++;if(c.length)return[er(s.concat(c),"identifier",!0),c]}function vi(){s.apply(this,arguments);var n=hi(this.handler,this);this.touch=new gt(this.manager,n);this.mouse=new dt(this.manager,n)}function yi(n,t){this.manager=n;this.set(t)}function gu(n){if(d(n,ft))return ft;var t=d(n,fi),i=d(n,ei);return t&&i?ft:t||i?t?fi:ei:d(n,tr)?tr:ou}function y(n){this.options=w({},this.defaults,n||{});this.id=cu();this.manager=null;this.options.enable=ur(this.options.enable,!0);this.state=oi;this.simultaneous={};this.requireFail=[]}function vr(n){return n&at?"cancel":n&k?"end":n&et?"move":n&h?"start":""}function yr(n){return n==lt?"down":n==ct?"up":n==st?"left":n==ht?"right":""}function ni(n,t){var i=t.manager;return i?i.get(n):n}function c(){y.apply(this,arguments)}function ti(){c.apply(this,arguments);this.pX=null;this.pY=null}function pi(){c.apply(this,arguments)}function wi(){y.apply(this,arguments);this._timer=null;this._input=null}function bi(){c.apply(this,arguments)}function ki(){c.apply(this,arguments)}function ii(){y.apply(this,arguments);this.pTime=!1;this.pCenter=!1;this._timer=null;this._input=null;this.count=0}function p(n,t){return t=t||{},t.recognizers=ur(t.recognizers,p.defaults.preset),new di(n,t)}function di(n,t){this.options=w({},p.defaults,t||{});this.options.inputTarget=this.options.inputTarget||n;this.handlers={};this.session={};this.recognizers=[];this.element=n;this.input=lu(this);this.touchAction=new yi(this,this.options.touchAction);pr(this,!0);v(this.options.recognizers,function(n){var t=this.add(new n[0](n[1]));n[2]&&t.recognizeWith(n[2]);n[3]&&t.requireFailure(n[3])},this)}function pr(n,t){var i=n.element;i.style&&v(n.options.cssProps,function(n,r){i.style[bt(i.style,r)]=t?n:""})}function nf(n,i){var r=t.createEvent("Event");r.initEvent(n,!0,!0);r.gesture=i;i.target.dispatchEvent(r)}var w,wr=["","webkit","Moz","MS","ms","o"],tf=t.createElement("div"),rf="function",ut=Math.round,g=Math.abs,gi=Date.now,iu,ru,su,ir,hu;w="function"!=typeof Object.assign?function(n){var f,i,t,u;if(n===r||null===n)throw new TypeError("Cannot convert undefined or null to object");for(f=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],t!==r&&null!==t)for(u in t)t.hasOwnProperty(u)&&(f[u]=t[u]);return f}:Object.assign;var br=rr(function(n,t,i){for(var f=Object.keys(t),u=0;u<f.length;)(!i||i&&n[f[u]]===r)&&(n[f[u]]=t[f[u]]),u++;return n},"extend","Use `assign`."),uf=rr(function(n,t){return br(n,t,!0)},"merge","Use `assign`."),ff=1,kr="ontouchstart"in n,ef=bt(n,"PointerEvent")!==r,of=kr&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ot="touch",nr="mouse",sf=25,f=1,nt=2,u=4,e=8,ri=1,st=2,ht=4,ct=8,lt=16,l=st|ht,tt=ct|lt,dr=l|tt,gr=["x","y"],ui=["clientX","clientY"];s.prototype={handler:function(){},init:function(){this.evEl&&vt(this.element,this.evEl,this.domHandler);this.evTarget&&vt(this.target,this.evTarget,this.domHandler);this.evWin&&vt(or(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&yt(this.element,this.evEl,this.domHandler);this.evTarget&&yt(this.target,this.evTarget,this.domHandler);this.evWin&&yt(or(this.element),this.evWin,this.domHandler)}};var hf={mousedown:f,mousemove:nt,mouseup:u},cf="mousedown",lf="mousemove mouseup";o(dt,s,{handler:function(n){var t=hf[n.type];t&f&&0===n.button&&(this.pressed=!0);t&nt&&1!==n.which&&(t=u);this.pressed&&this.allow&&(t&u&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[n],changedPointers:[n],pointerType:nr,srcEvent:n}))}});var af={pointerdown:f,pointermove:nt,pointerup:u,pointercancel:e,pointerout:e},vf={2:ot,3:"pen",4:nr,5:"kinect"},nu="pointerdown",tu="pointermove pointerup pointercancel";n.MSPointerEvent&&!n.PointerEvent&&(nu="MSPointerDown",tu="MSPointerMove MSPointerUp MSPointerCancel");o(ai,s,{handler:function(n){var t=this.store,o=!1,h=n.type.toLowerCase().replace("ms",""),r=af[h],s=vf[n.pointerType]||n.pointerType,c=s==ot,i=rt(t,n.pointerId,"pointerId");r&f&&(0===n.button||c)?0>i&&(t.push(n),i=t.length-1):r&(u|e)&&(o=!0);0>i||(t[i]=n,this.callback(this.manager,r,{pointers:t,changedPointers:[n],pointerType:s,srcEvent:n}),o&&t.splice(i,1))}});var yf={touchstart:f,touchmove:nt,touchend:u,touchcancel:e},pf="touchstart",wf="touchstart touchmove touchend touchcancel";o(ar,s,{handler:function(n){var i=yf[n.type],t;(i===f&&(this.started=!0),this.started)&&(t=ku.call(this,n,i),i&(u|e)&&t[0].length-t[1].length==0&&(this.started=!1),this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:ot,srcEvent:n}))}});iu={touchstart:f,touchmove:nt,touchend:u,touchcancel:e};ru="touchstart touchmove touchend touchcancel";o(gt,s,{handler:function(n){var i=iu[n.type],t=du.call(this,n,i);t&&this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:ot,srcEvent:n})}});o(vi,s,{handler:function(n,t,i){var r=i.pointerType==ot,f=i.pointerType==nr;if(r)this.mouse.allow=!1;else if(f&&!this.mouse.allow)return;t&(u|e)&&(this.mouse.allow=!0);this.callback(n,t,i)},destroy:function(){this.touch.destroy();this.mouse.destroy()}});var uu=bt(tf.style,"touchAction"),fu=uu!==r,eu="compute",ou="auto",tr="manipulation",ft="none",fi="pan-x",ei="pan-y";yi.prototype={set:function(n){n==eu&&(n=this.compute());fu&&this.manager.element.style&&(this.manager.element.style[uu]=n);this.actions=n.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var n=[];return v(this.manager.recognizers,function(t){ci(t.options.enable,[t])&&(n=n.concat(t.getTouchAction()))}),gu(n.join(" "))},preventDefaults:function(n){var t,i;if(!fu){if(t=n.srcEvent,i=n.offsetDirection,this.manager.session.prevented)return void t.preventDefault();var r=this.actions,u=d(r,ft),f=d(r,ei),e=d(r,fi);if(u){var o=1===n.pointers.length,s=n.distance<2,h=n.deltaTime<250;if(o&&s&&h)return}if(!e||!f)return u||f&&i&l||e&&i&tt?this.preventSrc(t):void 0}},preventSrc:function(n){this.manager.session.prevented=!0;n.preventDefault()}};var oi=1,h=2,et=4,k=8,b=k,at=16,a=32;y.prototype={defaults:{},set:function(n){return w(this.options,n),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(n){if(it(n,"recognizeWith",this))return this;var t=this.simultaneous;return n=ni(n,this),t[n.id]||(t[n.id]=n,n.recognizeWith(this)),this},dropRecognizeWith:function(n){return it(n,"dropRecognizeWith",this)?this:(n=ni(n,this),delete this.simultaneous[n.id],this)},requireFailure:function(n){if(it(n,"requireFailure",this))return this;var t=this.requireFail;return n=ni(n,this),-1===rt(t,n)&&(t.push(n),n.requireFailure(this)),this},dropRequireFailure:function(n){if(it(n,"dropRequireFailure",this))return this;n=ni(n,this);var t=rt(this.requireFail,n);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(n){return!!this.simultaneous[n.id]},emit:function(n){function t(t){i.manager.emit(t,n)}var i=this,r=this.state;k>r&&t(i.options.event+vr(r));t(i.options.event);n.additionalEvent&&t(n.additionalEvent);r>=k&&t(i.options.event+vr(r))},tryEmit:function(n){return this.canEmit()?this.emit(n):void(this.state=a)},canEmit:function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(a|oi)))return!1;n++}return!0},recognize:function(n){var t=w({},n);return ci(this.options.enable,[this,t])?(this.state&(b|at|a)&&(this.state=oi),this.state=this.process(t),void(this.state&(h|et|k|at)&&this.tryEmit(t))):(this.reset(),void(this.state=a))},process:function(){},getTouchAction:function(){},reset:function(){}};o(c,y,{defaults:{pointers:1},attrTest:function(n){var t=this.options.pointers;return 0===t||n.pointers.length===t},process:function(n){var t=this.state,i=n.eventType,r=t&(h|et),f=this.attrTest(n);return r&&(i&e||!f)?t|at:r||f?i&u?t|k:t&h?t|et:h:a}});o(ti,c,{defaults:{event:"pan",threshold:10,pointers:1,direction:dr},getTouchAction:function(){var t=this.options.direction,n=[];return t&l&&n.push(ei),t&tt&&n.push(fi),n},directionTest:function(n){var i=this.options,r=!0,u=n.distance,t=n.direction,f=n.deltaX,e=n.deltaY;return t&i.direction||(i.direction&l?(t=0===f?ri:0>f?st:ht,r=f!=this.pX,u=Math.abs(n.deltaX)):(t=0===e?ri:0>e?ct:lt,r=e!=this.pY,u=Math.abs(n.deltaY))),n.direction=t,r&&u>i.threshold&&t&i.direction},attrTest:function(n){return c.prototype.attrTest.call(this,n)&&(this.state&h||!(this.state&h)&&this.directionTest(n))},emit:function(n){this.pX=n.deltaX;this.pY=n.deltaY;var t=yr(n.direction);t&&(n.additionalEvent=this.options.event+t);this._super.emit.call(this,n)}});o(pi,c,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ft]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&h)},emit:function(n){if(1!==n.scale){var t=n.scale<1?"in":"out";n.additionalEvent=this.options.event+t}this._super.emit.call(this,n)}});o(wi,y,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ou]},process:function(n){var t=this.options,i=n.pointers.length===t.pointers,r=n.distance<t.threshold,o=n.deltaTime>t.time;if(this._input=n,!r||!i||n.eventType&(u|e)&&!o)this.reset();else if(n.eventType&f)this.reset(),this._timer=si(function(){this.state=b;this.tryEmit()},t.time,this);else if(n.eventType&u)return b;return a},reset:function(){clearTimeout(this._timer)},emit:function(n){this.state===b&&(n&&n.eventType&u?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=gi(),this.manager.emit(this.options.event,this._input)))}});o(bi,c,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ft]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&h)}});o(ki,c,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:l|tt,pointers:1},getTouchAction:function(){return ti.prototype.getTouchAction.call(this)},attrTest:function(n){var t,i=this.options.direction;return i&(l|tt)?t=n.overallVelocity:i&l?t=n.overallVelocityX:i&tt&&(t=n.overallVelocityY),this._super.attrTest.call(this,n)&&i&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers==this.options.pointers&&g(t)>this.options.velocity&&n.eventType&u},emit:function(n){var t=yr(n.offsetDirection);t&&this.manager.emit(this.options.event+t,n);this.manager.emit(this.options.event,n)}});o(ii,y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[tr]},process:function(n){var t=this.options,o=n.pointers.length===t.pointers,s=n.distance<t.threshold,c=n.deltaTime<t.time,i,r,e;if(this.reset(),n.eventType&f&&0===this.count)return this.failTimeout();if(s&&c&&o){if(n.eventType!=u)return this.failTimeout();if(i=this.pTime?n.timeStamp-this.pTime<t.interval:!0,r=!this.pCenter||kt(this.pCenter,n.center)<t.posThreshold,this.pTime=n.timeStamp,this.pCenter=n.center,r&&i?this.count+=1:this.count=1,this._input=n,e=this.count%t.taps,0===e)return this.hasRequireFailures()?(this._timer=si(function(){this.state=b;this.tryEmit()},t.interval,this),h):b}return a},failTimeout:function(){return this._timer=si(function(){this.state=a},this.options.interval,this),a},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==b&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});p.VERSION="2.0.6";p.defaults={domEvents:!1,touchAction:eu,enable:!0,inputTarget:null,inputClass:null,preset:[[bi,{enable:!1}],[pi,{enable:!1},["rotate"]],[ki,{direction:l}],[ti,{direction:l},["swipe"]],[ii],[ii,{event:"doubletap",taps:2},["tap"]],[wi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};su=1;ir=2;di.prototype={set:function(n){return w(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},stop:function(n){this.session.stopped=n?ir:su},recognize:function(n){var r=this.session,i,f,t,u;if(!r.stopped)for(this.touchAction.preventDefaults(n),f=this.recognizers,t=r.curRecognizer,(!t||t&&t.state&b)&&(t=r.curRecognizer=null),u=0;u<f.length;)i=f[u],r.stopped===ir||t&&i!=t&&!i.canRecognizeWith(t)?i.reset():i.recognize(n),!t&&i.state&(h|et|k)&&(t=r.curRecognizer=i),u++},get:function(n){if(n instanceof y)return n;for(var i=this.recognizers,t=0;t<i.length;t++)if(i[t].options.event==n)return i[t];return null},add:function(n){if(it(n,"add",this))return this;var t=this.get(n.options.event);return t&&this.remove(t),this.recognizers.push(n),n.manager=this,this.touchAction.update(),n},remove:function(n){if(it(n,"remove",this))return this;if(n=this.get(n)){var t=this.recognizers,i=rt(t,n);-1!==i&&(t.splice(i,1),this.touchAction.update())}return this},on:function(n,t){var i=this.handlers;return v(pt(n),function(n){i[n]=i[n]||[];i[n].push(t)}),this},off:function(n,t){var i=this.handlers;return v(pt(n),function(n){t?i[n]&&i[n].splice(rt(i[n],t),1):delete i[n]}),this},emit:function(n,t){var i,r;if(this.options.domEvents&&nf(n,t),i=this.handlers[n]&&this.handlers[n].slice(),i&&i.length)for(t.type=n,t.preventDefault=function(){t.srcEvent.preventDefault()},r=0;r<i.length;)i[r](t),r++},destroy:function(){this.element&&pr(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};w(p,{INPUT_START:f,INPUT_MOVE:nt,INPUT_END:u,INPUT_CANCEL:e,STATE_POSSIBLE:oi,STATE_BEGAN:h,STATE_CHANGED:et,STATE_ENDED:k,STATE_RECOGNIZED:b,STATE_CANCELLED:at,STATE_FAILED:a,DIRECTION_NONE:ri,DIRECTION_LEFT:st,DIRECTION_RIGHT:ht,DIRECTION_UP:ct,DIRECTION_DOWN:lt,DIRECTION_HORIZONTAL:l,DIRECTION_VERTICAL:tt,DIRECTION_ALL:dr,Manager:di,Input:s,TouchAction:yi,TouchInput:gt,MouseInput:dt,PointerEventInput:ai,TouchMouseInput:vi,SingleTouchInput:ar,Recognizer:y,AttrRecognizer:c,Tap:ii,Pan:ti,Swipe:ki,Pinch:pi,Rotate:bi,Press:wi,on:vt,off:yt,each:v,merge:uf,extend:br,assign:w,inherit:o,bindFn:hi,prefixed:bt});hu="undefined"!=typeof n?n:"undefined"!=typeof self?self:{};hu.Hammer=p;"function"==typeof define&&define.amd?define(function(){return p}):"undefined"!=typeof module&&module.exports?module.exports=p:n[i]=p}(window,document,"Hammer");Function.prototype.bind||(Function.prototype.bind=function(n){if(typeof this!="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var r=Array.prototype.slice.call(arguments,1),u=this,t=function(){},i=function(){return u.apply(this instanceof t&&n?this:n,r.concat(Array.prototype.slice.call(arguments)))};return t.prototype=this.prototype,i.prototype=new t,i});Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){var r,f,u,i;if(this===null)throw new TypeError('"this" is null or not defined');if((f=Object(this),u=f.length>>>0,u===0)||(i=+t||0,Math.abs(i)===Infinity&&(i=0),i>=u))return-1;for(r=Math.max(i>=0?i:u-Math.abs(i),0);r<u;){if(r in f&&f[r]===n)return r;r++}return-1});MWF=MWF||{};mwfAutoInit=function(n){function t(r){var u,f;if(i[r])return i[r].exports;u=i[r]={exports:{},id:r,loaded:!1};n[r].call(u.exports,u,u.exports,t);u.loaded=!0;try{for(f in u.exports)MWF[f]=u.exports[f]}catch(e){console.error(e)}return u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){var u,r;!(u=[i,t,i(64)],r=function(n,t,i){"use strict";function r(n){for(var i in n)t.hasOwnProperty(i)||(t[i]=n[i])}r(i)}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(2),i(4)],r=function(n,t,i,r){"use strict";var u=function(n){function t(t,i){var r=this;i===void 0&&(i=null);n.call(this,t,i);this.immersiveHeroItemElement=t;this.handleWindowEvent=function(){r.resizeImage();r.windowWidth!==window.innerWidth&&(r.windowWidth=window.innerWidth)}}return f(t,n),t.prototype.update=function(){if(!n.prototype.update.call(this))return!1;this.image=r.selectFirstElement(t.imageSelector,this.immersiveHeroItemElement);this.title=r.selectFirstElement(t.titleSelector,this.immersiveHeroItemElement);this.isTopAligned=r.hasClass(this.immersiveHeroItemElement,"f-align-top");this.windowWidth=window.innerWidth;this.image?(this.resizeImage(),this.resizeThrottledEvent=r.addThrottledEvent(window,r.eventTypes.resize,this.handleWindowEvent,50)):this.handleTextOnly()},t.prototype.teardown=function(){n.prototype.teardown.call(this);r.removeEvent(window,r.eventTypes.resize,this.resizeThrottledEvent);this.image=null;this.sectionHeight=null;this.title=null;this.titleHeight=null;this.isTopAligned=null},t.prototype.handleTextOnly=function(){if(!this.isTopAligned&&this.title.parentElement){var n=this.title.parentElement;r.css(n,"top","auto");r.css(n,"bottom","0px")}},t.prototype.resizeImage=function(){var i;if(this.immersiveHeroItemElement&&this.title&&this.image){var n=r.getClientRect(this.immersiveHeroItemElement),t=r.getClientRect(this.title),u=this.isTopAligned?t.top-n.top:r.getClientRect(this.image).top-n.top;this.titleHeight=t.height+u;this.sectionHeight=n.height;i=this.sectionHeight-this.titleHeight+"px";r.css(this.image,"height",i)}},t.prototype.onCollectionItemHidden=function(){},t.prototype.onCollectionItemShown=function(){this.resizeImage()},t.selector=".m-immersive-hero-item",t.titleSelector="div > div",t.imageSelector="div > .c-image > img",t}(i.HeroItemBase);t.ImmersiveHeroItem=u}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(6),i(4),i(5)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(r,f){var e=this;(n.call(this,r,f),this.heroItemBaseElement=r,this.initialized=!1,this.handleValidUserInteraction=function(n,i){if(i&&e.callsToAction.indexOf(i)===-1&&e.callsToAction.indexOf(i.parentElement)===-1){if(!e.verifyCallToAction()){e.heroItemBaseElement.removeAttribute(t.dataJsHref);return}e.heroItemBaseElement.hasAttribute(t.dataJsHref)||e.heroItemBaseElement.setAttribute(t.dataJsHref,e.callsToAction[0].href);var r={preventDefault:!1,event:n,targetElement:i,targetUri:e.callsToAction[0].href};e.preventDefaultClickAction=!1;e.initiatePublish(r);e.preventDefaultClickAction?e.preventDefaultClickAction=!1:(u.stopPropagation(n),e.navigateToUrl(e.callsToAction[0].href))}},this.handleMouseAndTouchStart=function(n){e.startCoordinates=u.getCoordinates(n)},this.handleMouseAndTouchEnd=function(n){e.determineIfValidUserInteraction(n,e.heroItemBaseElement)},i.ObservableComponent.shouldInitializeAsClass(r,f))&&u.SafeBrowserApis.requestAnimationFrame.call(window,function(){return e.update()})}return f(t,n),t.prototype.update=function(){return this.heroItemBaseElement?(this.callsToAction=u.selectElementsT(this.constructor.callToActionSelector,this.heroItemBaseElement),this.addEventListeners(),this.initialized=!0,!0):!1},t.prototype.teardown=function(){this.removeEventListeners();this.initialized=!1},t.prototype.publish=function(n,t){if(n.onHeroItemClicked){n.onHeroItemClicked(t);this.preventDefaultClickAction=this.preventDefaultClickAction||t.preventDefault}},t.prototype.addEventListeners=function(){this.verifyCallToAction()&&(this.heroItemBaseElement.setAttribute(t.dataJsHref,this.callsToAction[0].href),u.addEvent(this.heroItemBaseElement,u.eventTypes.mousedown,this.handleMouseAndTouchStart),u.addEvent(this.heroItemBaseElement,u.eventTypes.mouseup,this.handleMouseAndTouchEnd))},t.prototype.removeEventListeners=function(){u.addEvent(this.heroItemBaseElement,u.eventTypes.mousedown,this.handleMouseAndTouchStart);u.addEvent(this.heroItemBaseElement,u.eventTypes.mouseup,this.handleMouseAndTouchEnd)},t.prototype.determineIfValidUserInteraction=function(n,t){var i=this.startCoordinates,r=u.getCoordinates(n),f=n.which||n.button;f===1&&i&&r&&!this.isSwipe(i,r)&&this.handleValidUserInteraction(n,t)},t.prototype.isSwipe=function(n,i){if(!n||!i)return!1;var r=Math.abs(i.y-n.y),u=Math.abs(i.x-n.x);return u>t.minimumSwipeDistance||r>t.minimumSwipeDistance},t.prototype.navigateToUrl=function(n){e.isNullOrWhiteSpace(n)||(n.indexOf("imagine")!==-1?location.href=n:window.open(n,"_blank"))},t.prototype.verifyCallToAction=function(){return this.callsToAction&&this.callsToAction.length&&!e.isNullOrWhiteSpace(this.callsToAction[0].href)},t.dataJsHref="data-js-href",t.minimumSwipeDistance=30,t.callToActionSelector="a.c-call-to-action",t}(r.Publisher);t.HeroItemBase=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(4)],r=function(n,t,i){"use strict";var r=function(){function n(t,i){i===void 0&&(i=null);this.element=t;this.ignoreNextDOMChange=!1;n.shouldInitializeAsClass(t,i)&&this.setObserver()}return n.prototype.unObserve=function(){this.modernObserver&&this.modernObserver.disconnect();i.removeEvent(this.element,i.eventTypes.DOMNodeInserted,this.obsoleteNodeInsertedEventHander);i.removeEvent(this.element,i.eventTypes.DOMNodeRemoved,this.obsoleteNodeRemovedEventHandler)},n.prototype.setObserver=function(){typeof n.mutationObserver!="undefined"?this.observeModern():"MutationEvent"in window&&this.observeObsolete()},n.prototype.observeModern=function(){var n=this;this.modernObserver=new MutationObserver(function(t){n.onModernMutations(t)});this.modernObserver.observe(this.element,{childList:!0,subtree:!0})},n.prototype.onModernMutations=function(n){var r,u,f,e,i,o,t,s;if(this.ignoreNextDOMChange){this.ignoreNextDOMChange=!1;return}for(r=!1,u=!1,f=0,e=n;f<e.length;f++){for(i=e[f],t=0,o=i.addedNodes.length;t<o;t++)i.addedNodes[t].nodeType===1&&(r=!0,u=!0);for(t=0,s=i.removedNodes.length;t<s;t++)i.removedNodes[t].nodeType===1&&(r=!0,i.removedNodes[t]!==this.element&&(u=!0))}r&&this.teardown();u&&this.update()},n.prototype.observeObsolete=function(){var n=this;this.obsoleteNodeInsertedEventHander=i.addDebouncedEvent(this.element,i.eventTypes.DOMNodeInserted,function(){n.onObsoleteNodeInserted()});this.obsoleteNodeRemovedEventHandler=i.addDebouncedEvent(this.element,i.eventTypes.DOMNodeRemoved,function(t){n.onObsoleteNodeRemoved(t)})},n.prototype.onObsoleteNodeInserted=function(){this.ignoreNextDOMChange||(this.teardown(),this.update())},n.prototype.onObsoleteNodeRemoved=function(n){this.ignoreNextDOMChange||(this.teardown(),i.getEventTargetOrSrcElement(n)!==this.element&&this.update())},n.shouldInitializeAsClass=function(t,i){var r=t?t.getAttribute(n.mwfClassAttribute):null,u=t?t.getAttribute(n.initializeAttribute):null;return u==="false"?!1:!!t&&(!r||!!i&&r===i.mwfClass)},n.mwfClassAttribute="data-mwf-class",n.initializeAttribute="data-js-initialize",n.mutationObserver=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,n}();t.ObservableComponent=r}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(5)],r=function(n,t,i){"use strict";function o(n,t,i,f){var e,o,s;for(f===void 0&&(f=!1),e=0,o=u(n);e<o.length;e++)s=o[e],c(s,i,f,r[t])}function d(n,t,r,f){var e,s,a,o,h,l;if(f===void 0&&(f=!1),!i.isNullOrWhiteSpace(t))for(e=0,s=u(n);e<s.length;e++)for(a=s[e],o=0,h=t.split(/\s+/);o<h.length;o++)l=h[o],i.isNullOrWhiteSpace(l)||c(a,r,f,l)}function g(n,t,r,f){var e,s,l,o,h,c;for(f===void 0&&(f=!1),e=0,s=u(n);e<s.length;e++)for(l=s[e],o=0,h=u(t);o<h.length;o++)c=h[o],i.isNullOrWhiteSpace(c)||k(l,r,f,c)}function nt(n){n=h(n);n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}function tt(n,t,i,r){r===void 0&&(r=150);var f,u=0,e=function(n){var t=Date.now();clearTimeout(f);!!u&&t<u+r?f=setTimeout(function(){u=t;i(n)},r-(t-u)):(u=t,i(n))};return o(n,t,e),e}function it(n,t,r,f,e){function p(n){var i,t=0;return function(r){var u=Date.now();clearTimeout(i);!!t&&u<t+e?i=setTimeout(function(){t=u;n(r)},e-(u-t)):(t=u,n(r))}}var o,h,v,s,l,a,y;if(f===void 0&&(f=!1),e===void 0&&(e=150),!i.isNullOrWhiteSpace(t))for(o=0,h=u(n);o<h.length;o++)for(v=h[o],s=0,l=t.split(/\s+/);s<l.length;s++)a=l[s],i.isNullOrWhiteSpace(a)||(y=p(r),c(v,y,f,a))}function rt(n,t,i,r){r===void 0&&(r=150);var u,f=function(n){window.clearTimeout(u);u=setTimeout(function(){i(n)},r)};return o(n,t,f),f}function ut(n){document.readyState!=="loading"?n.call(null):document.addEventListener?document.addEventListener(r[r.DOMContentLoaded],n,!1):document.attachEvent&&document.attachEvent(r[r.onreadystatechange],function(){document.readyState!=="loading"&&n.call(null)})}function ft(n,t){var i,u=setTimeout(function(){clearTimeout(u);w(window,r.load,i);n.call(null)},t);i=function(){clearTimeout(u);l.requestAnimationFrame.call(window,n)};document.readyState==="complete"?(clearTimeout(u),n.call(null)):o(window,r.load,i)}function a(n,t){!n||i.isNullOrWhiteSpace(t)||y(n,t)||(n.classList?n.classList.add(t):n.className=(n.className+" "+t).trim())}function v(n,t){var r,e,f;if(!!n&&!i.isNullOrWhiteSpace(t))for(r=0,e=u(n);r<e.length;r++)f=e[r],f.className&&(f.className=(" "+f.className+" ").replace(" "+t.trim()+" "," ").trim())}function et(n,t){var i,r,u;if(t)for(i=0,r=t;i<r.length;i++)u=r[i],v(n,u)}function ot(n,t){var i,r,u;if(t)for(i=0,r=t;i<r.length;i++)u=r[i],a(n,u)}function y(n,t){return!n||i.isNullOrWhiteSpace(t)||i.isNullOrWhiteSpace(n.className)?!1:(" "+n.className+" ").indexOf(" "+t.trim()+" ")>-1}function st(n){return n?n.parentElement.removeChild(n):n}function ht(n,t){return s(n,t)}function ct(n,t){var i=s(n,t);return!i||!i.length?null:i[0]}function s(n,t){var r,u;if(i.isNullOrWhiteSpace(n))return[];if(r=t||document,/^[\#.]?[\w-]+$/.test(n)){switch(n[0]){case".":return r.getElementsByClassName?f(r.getElementsByClassName(n.slice(1))):f(r.querySelectorAll(n));case"#":return u=r.querySelector(n),u?[u]:[]}return f(r.getElementsByTagName(n))}return f(r.querySelectorAll(n))}function lt(n,t){var i=s(n,t);return!i||!i.length?null:i[0]}function at(n,t){var o=t||document,u,f,i,r,e;for(u=n.split(","),i=0,r=u;i<r.length;i++)e=r[i],f+=this.selectElements(e,o);return f}function f(n){var i,t;if(!n)return[];for(i=[],t=0;t<n.length;t++)i.push(n[t]);return i}function vt(n){for(n===void 0&&(n=document.documentElement);n!==null;){var t=n.getAttribute("dir");if(!t)n=n.parentElement;else return t==="rtl"?e.right:e.left}return e.left}function yt(n){var i,t,r;if(n){i=n.getBoundingClientRect();t={};for(r in i)t[r]=i[r];return typeof t.width=="undefined"&&(t.width=n.offsetWidth),typeof t.height=="undefined"&&(t.height=n.offsetHeight),t}}function p(n,t,r){if(!n)return null;if(!r&&r!=="")return r=n.style[t],i.isNullOrWhiteSpace(r)&&(r=getComputedStyle(n),r=r[t]),r;n.style[t]=r}function w(n,t,i,f){var e,o,s;if(n&&t&&i)for(e=0,o=u(n);e<o.length;e++)s=o[e],k(s,i,f,r[t])}function b(n){return Array.isArray?Array.isArray(n):{}.toString.call(n)==="[object Array]"}function u(n){return b(n)?n:[n]}function pt(n,t){if(n==null||t==null)return null;for(var i=t.parentNode;i!=null;){if(i===n)return!0;i=i.parentNode}return!1}function wt(n){return!n?"":n.innerText||n.textContent||""}function bt(n,t){!n||t===null||(n.textContent?n.textContent=t:n.innerHTML=t)}function kt(n){n&&(n.innerHTML="")}function dt(n){return n=h(n),n.target||n.srcElement}function h(n){return n||window.event}function c(n,t,i,r){i===void 0&&(i=!1);!n||(window.addEventListener?n.addEventListener(r,t,i):n.attachEvent("on"+r,t))}function k(n,t,i,r){i===void 0&&(i=!1);!n||(window.removeEventListener?n.removeEventListener(r,t,i):n.detachEvent("on"+r,t))}function gt(n,t,i){if(i===void 0&&(i={}),!n||!t)return null;var f=typeof t=="string"?t:r[t],u=null;return i.bubbles=typeof i.bubbles=="undefined"?!0:i.bubbles,i.cancelable=typeof i.cancelable=="undefined"?!0:i.cancelable,window.CustomEvent&&typeof window.CustomEvent=="function"?u=new CustomEvent(f,i):document.createEvent?(u=document.createEvent("CustomEvent"),u.initCustomEvent(f,i.bubbles,i.cancelable,i.detail)):(u=document.createEventObject(),n.fireEvent("on"+f,u)),n.dispatchEvent(u),u}function ni(n){n.stopPropagation?n.stopPropagation():n.returnValue=!1}function ti(n){return n===void 0&&(n=window),n.scrollY||n.pageYOffset||(n.document.compatMode==="CSS1Compat"?n.document.documentElement.scrollTop:n.document.body.scrollTop)}function ii(n){if(!n)return window.document.documentElement;for(var i=n.ownerDocument.documentElement,t=n.offsetParent;t&&p(t,"position")=="static";)t=t.offsetParent;return t||i}function ri(n,t){if(n&&t){var i=t.clientHeight,r=t.scrollHeight;r>i&&(t.scrollTop=Math.min(n.offsetTop-t.firstElementChild.offsetTop,r-i))}}function ui(n){return typeof n.complete!="undefined"&&typeof n.naturalHeight!="undefined"?n&&n.complete&&n.naturalHeight>0:!0}function fi(n){var i=n.touches&&n.touches.length?n.touches:[n],t=n.changedTouches&&n.changedTouches[0]||i[0];return{x:t.clientX,y:t.clientY}}function ei(n,t){for(var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;n;){if(i.call(n,t))break;n=n.parentElement}return n}var l,e,r;(function(n){n.requestAnimationFrame=window.requestAnimationFrame||function(n){typeof n=="function"&&window.setTimeout(n,16.7)}})(l=t.SafeBrowserApis||(t.SafeBrowserApis={})),function(n){n[n.right=0]="right";n[n.left=1]="left"}(t.Direction||(t.Direction={}));e=t.Direction,function(n){n[n.animationend=0]="animationend";n[n.blur=1]="blur";n[n.change=2]="change";n[n.click=3]="click";n[n.DOMContentLoaded=4]="DOMContentLoaded";n[n.DOMNodeInserted=5]="DOMNodeInserted";n[n.DOMNodeRemoved=6]="DOMNodeRemoved";n[n.ended=7]="ended";n[n.error=8]="error";n[n.focus=9]="focus";n[n.focusin=10]="focusin";n[n.load=11]="load";n[n.keydown=12]="keydown";n[n.keypress=13]="keypress";n[n.keyup=14]="keyup";n[n.loadedmetadata=15]="loadedmetadata";n[n.mousedown=16]="mousedown";n[n.mousemove=17]="mousemove";n[n.mouseout=18]="mouseout";n[n.mouseover=19]="mouseover";n[n.mouseup=20]="mouseup";n[n.onreadystatechange=21]="onreadystatechange";n[n.resize=22]="resize";n[n.scroll=23]="scroll";n[n.submit=24]="submit";n[n.timeupdate=25]="timeupdate";n[n.touchstart=26]="touchstart";n[n.touchend=27]="touchend";n[n.wheel=28]="wheel"}(t.eventTypes||(t.eventTypes={}));r=t.eventTypes;t.addEvent=o;t.addEvents=d;t.removeEvents=g;t.preventDefault=nt;t.addThrottledEvent=tt;t.addThrottledEvents=it;t.addDebouncedEvent=rt;t.documentReady=ut;t.onDeferred=ft;t.addClass=a;t.removeClass=v;t.removeClasses=et;t.addClasses=ot;t.hasClass=y;t.removeElement=st;t.selectElements=ht;t.selectFirstElement=ct;t.selectElementsT=s;t.selectFirstElementT=lt;t.selectElementsFromSelectors=at;t.nodeListToArray=f;t.getDirection=vt;t.getClientRect=yt;t.css=p;t.removeEvent=w;t.isArray=b;t.toArray=u;t.isDescendent=pt;t.getText=wt;t.setText=bt;t.removeInnerHtml=kt;t.getEventTargetOrSrcElement=dt;t.getEvent=h;t.customEvent=gt;t.stopPropagation=ni;t.getScrollY=ti;t.getOffsetParent=ii;t.scrollElementIntoView=ri;t.isImageLoadedSuccessfully=ui;t.getCoordinates=fi;t.getParent=ei}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t],r=function(n,t){"use strict";function r(n){return!n||!i(n)}function i(n){return n?n.trim?n.trim():n.replace(/^\s+|\s+$/g,""):null}function u(n,t,i){return(i===void 0&&(i=!0),!n||!t)?!1:(i&&(n=n.toLocaleLowerCase(),t=t.toLocaleLowerCase()),n.startsWith)?n.startsWith(t):n.indexOf(t)===0}function f(n,t,i){return(i===void 0&&(i=!0),!n||!t)?!1:(i&&(n=n.toLocaleLowerCase(),t=t.toLocaleLowerCase()),n.endsWith)?n.endsWith(t):n.lastIndexOf(t)===n.length-t.length}function e(n,t,i){if(i===void 0&&(i=!0),!n||!t)return 0;var r=0;for(i&&(n=n.toLocaleLowerCase(),t=t.toLocaleLowerCase());n.charCodeAt(r)===t.charCodeAt(r);)r++;return r}function o(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return n.replace(/{(\d+)}/g,function(n,t){if(t>=i.length)return n;var r=i[t];return typeof r!="number"&&!r?"":typeof r=="string"?r:r.toString()})}t.isNullOrWhiteSpace=r;t.trim=i;t.startsWith=u;t.endsWith=f;t.getMatchLength=e;t.format=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3)],r=function(n,t,i){"use strict";var r=function(n){function t(t,i){i===void 0&&(i=null);n.call(this,t,i);this.element=t}return f(t,n),t.prototype.subscribe=function(n){if(!n)return!1;if(this.subscribers){if(this.subscribers.indexOf(n)!==-1)return!1}else this.subscribers=[];return this.subscribers.push(n),!0},t.prototype.unsubscribe=function(n){if(!n||!this.subscribers||!this.subscribers.length)return!1;var t=this.subscribers.indexOf(n);return t===-1?!1:(this.subscribers.splice(t,1),!0)},t.prototype.hasSubscribers=function(){return!!this.subscribers&&this.subscribers.length>0},t.prototype.initiatePublish=function(n){var t,i,r;if(this.hasSubscribers())for(t=0,i=this.subscribers;t<i.length;t++)r=i[t],this.publish(r,n)},t.prototype.update=function(){},t.prototype.teardown=function(){},t}(i.ObservableComponent);t.Publisher=r}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(4)],r=function(n,t,i,r){"use strict";var u=function(n){function t(i){var r=this;(n.call(this,i),this.toggleOverflow=function(){r.showOverflow?(r.overflow.setAttribute(t.ariaHiddenAttribute,"true"),r.overflowToggle.setAttribute(t.ariaExpandedAttribute,"false"),r.showOverflow=!1):(r.overflow.setAttribute(t.ariaHiddenAttribute,"false"),r.overflowToggle.setAttribute(t.ariaExpandedAttribute,"true"),r.showOverflow=!0)},this.handleWindowResize=function(){r.updateWidth();r.linksClipped()},i)&&this.update()}return f(t,n),t.prototype.update=function(){this.overflow=r.selectFirstElement(t.overflowSelector,this.element);this.overflowToggle=r.selectFirstElement(t.overflowToggleSelector,this.element);this.barLinks=this.getBarLinks();this.staticOverflowLinks=this.getStaticOverflowLinks();this.linksWidth=this.getLinksWidth();this.totalLinksWidth=this.getTotalLinksWidth();this.overflowToggleWidth=r.getClientRect(this.overflowToggle).width;this.showOverflow=this.overflowToggle.hasAttribute(t.ariaHiddenAttribute)&&this.overflowToggle.getAttribute(t.ariaHiddenAttribute)?!0:!1;this.duplicateLinksToOverflow();this.handleWindowResize();r.addEvent(this.overflowToggle,r.eventTypes.click,this.toggleOverflow);this.resizeThrottledEventHandler=r.addThrottledEvent(window,r.eventTypes.resize,this.handleWindowResize)},t.prototype.teardown=function(){r.removeEvent(this.overflowToggle,r.eventTypes.click,this.toggleOverflow);r.removeEvent(window,r.eventTypes.resize,this.resizeThrottledEventHandler)},t.prototype.duplicateLinksToOverflow=function(){var r=document.createElement("li"),u=document.createElement("ul"),n,t,f,i;for(this.overflowLinks=[],this.setDataAttributes(),n=0,t=this.barLinks;n<t.length;n++)f=t[n],i=f.cloneNode(!0),this.overflowLinks.push(i),u.appendChild(i);r.appendChild(u);this.ignoreNextDOMChange=!0;this.overflow.insertBefore(r,this.staticOverflowLinks[0])},t.prototype.getStaticOverflowLinks=function(){for(var e=r.selectElements(t.overflowLinkSelector,this.element),f=[],u,n=0,i=e;n<i.length;n++)u=i[n],r.hasClass(u,t.overflowClass)||f.push(u);return f},t.prototype.updateWidth=function(){this.width=r.getClientRect(this.overflowToggle).right-r.getClientRect(this.barLinks[0]).left},t.prototype.getBarLinks=function(){for(var e=r.selectElements(t.barLinkSelector,this.element),f=[],u,n=0,i=e;n<i.length;n++)u=i[n],r.hasClass(u,t.overflowClass)||f.push(u);return f},t.prototype.getLinksWidth=function(){for(var f=[],u,n=0,i=this.barLinks;n<i.length;n++)u=i[n],r.hasClass(u,t.overflowClass)||f.push(r.getClientRect(u).width);return f},t.prototype.getTotalLinksWidth=function(){for(var i=0,r,n=0,t=this.linksWidth;n<t.length;n++)r=t[n],i+=r;return i},t.prototype.linksClipped=function(){var n,i;this.barLinkIds=[];this.overflowLinkIds=[];var r=0,u=this.width-this.overflowToggleWidth,t=0;for(n=0,i=this.barLinks.length;n<i;n++)t+=this.linksWidth[n],t<u?(this.barLinkIds.push(n),r++):this.overflowLinkIds.push(n);this.toggleLinks()},t.prototype.setDataAttributes=function(){for(var n=0,i=this.barLinks.length;n<i;n++)this.barLinks[n].setAttribute(t.overflowIdAttribute,String(n)),this.barLinks[n].setAttribute(t.overflowAttribute,"false")},t.prototype.showOverflowLink=function(n){this.barLinks[n].setAttribute(t.overflowAttribute,"true");this.overflowLinks[n].setAttribute(t.overflowAttribute,"true")},t.prototype.hideOverflowLink=function(n){this.barLinks[n].setAttribute(t.overflowAttribute,"false");this.overflowLinks[n].setAttribute(t.overflowAttribute,"false")},t.prototype.toggleLinks=function(){for(var i,u,n,t=0,r=this.overflowLinkIds;t<r.length;t++)n=r[t],this.showOverflowLink(n);for(i=0,u=this.barLinkIds;i<u.length;i++)n=u[i],this.hideOverflowLink(n)},t.selector=".m-action-bar",t.overflowClass="f-overflow",t.ariaHiddenAttribute="aria-hidden",t.ariaExpandedAttribute="aria-expanded",t.overflowSelector=t.selector+" > .f-overflow > ul",t.overflowLinkSelector=t.overflowSelector+" > li",t.overflowToggleSelector=t.selector+" > .f-overflow > button",t.barLinkSelector=t.selector+" > li",t.overflowAttribute="data-overflow",t.overflowIdAttribute="data-overflow-id",t}(i.ObservableComponent);t.ActionBar=u}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(6),i(9),i(11),i(4),i(10)],r=function(n,t,i,r,u,e,o){"use strict";var s=function(n){function t(i){var r=this;n.call(this,i);this.element=i;this.updateActionToggleState=function(n){n!==r.isToggled()&&(n?(e.addClass(r.element,t.initializeToggledClassName),!r.initialGlyph||e.removeClass(r.element,r.initialGlyph),!r.toggledGlyph||e.addClass(r.element,r.toggledGlyph),r.element.getAttribute(t.ariaLabelAttribute)?r.element.setAttribute(t.ariaLabelAttribute,r.localizedToggledLabelValue):e.setText(r.element,r.localizedToggledLabelValue),!r.tooltip||r.tooltip.setContent(r.localizedToggledLabelValue)):(e.removeClass(r.element,t.initializeToggledClassName),!r.toggledGlyph||e.removeClass(r.element,r.toggledGlyph),!r.initialGlyph||e.addClass(r.element,r.initialGlyph),r.element.getAttribute(t.ariaLabelAttribute)?r.element.setAttribute(t.ariaLabelAttribute,r.localizedInitialLabelValue):e.setText(r.element,r.localizedInitialLabelValue),!r.tooltip||r.tooltip.setContent(r.localizedInitialLabelValue)),r.initiatePublish({toggled:n}))};this.onActionToggleChange=function(){r.updateActionToggleState(!r.isToggled())};this.handleKeydownEvent=function(n){switch(o.getKeyCode(n)){case 13:case 32:e.preventDefault(n);r.updateActionToggleState(!r.isToggled());break;case 27:e.preventDefault(n);r.updateActionToggleState(!1)}};this.update()}return f(t,n),t.prototype.update=function(){var n=this,i,f;this.element&&(this.initializeLocalization(),i=e.hasClass(this.element,t.initializeToggledClassName),f=this.element.getAttribute(u.Tooltip.dataDescribedByAttribute),!f||r.ComponentFactory.create([{component:u.Tooltip,eventToBind:"DOMContentLoaded",elements:[document.getElementById(f)],callback:function(t){!t&&!t.length||(n.tooltip=t[0],n.tooltip.setContent(i?n.localizedToggledLabelValue:n.localizedInitialLabelValue))}}]),i&&e.removeClass(this.element,t.initializeToggledClassName),this.updateActionToggleState(i),e.addEvent(this.element,e.eventTypes.click,this.onActionToggleChange),e.addEvent(this.element,e.eventTypes.keydown,this.handleKeydownEvent))},t.prototype.teardown=function(){e.removeEvent(this.element,e.eventTypes.click,this.onActionToggleChange);e.removeEvent(this.element,e.eventTypes.keydown,this.handleKeydownEvent)},t.prototype.publish=function(n,t){if(n.onActionToggled)n.onActionToggled(t)},t.prototype.isToggled=function(){return e.hasClass(this.element,t.initializeToggledClassName)},t.prototype.initializeLocalization=function(){var n,i,r;for(this.element.getAttribute(t.ariaLabelAttribute)?this.localizedInitialLabelValue=this.element.getAttribute(t.ariaLabelAttribute):!e.getText(this.element)||(this.localizedInitialLabelValue=e.getText(this.element)),this.localizedToggledLabelValue=this.element.getAttribute(t.localizedToggledLabelAttribute),n=0,i=this.element.className.split(" ");n<i.length;n++)if(r=i[n],r.indexOf("glyph-")>=0){this.initialGlyph=r;break}this.toggledGlyph=this.element.getAttribute(t.toggledGlyphAttribute)},t.selector=".c-action-toggle",t.ariaLabelAttribute="aria-label",t.initializeToggledClassName="f-toggle",t.toggledGlyphAttribute="data-toggled-glyph",t.localizedToggledLabelAttribute="data-toggled-label",t}(i.Publisher);t.ActionToggle=s}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(4),i(10)],r=function(n,t,i,r){"use strict";var u=function(){function n(){}return n.create=function(t){for(var i,r=0,u=t;r<u.length;r++){if(i=u[r],!i.c&&!i.component)throw"factoryInput should has either component or c to tell the factory what component to create.Eg.ComponentFactory.create([{ c: Carousel] or ComponentFactory.create([component: Carousel]))";n.createComponent(i.component||i.c,i)}},n.createComponent=function(t,r){if(t){var o=r&&r.eventToBind?r.eventToBind:"",f=r&&r.selector?r.selector:t.selector,s=r&&r.context?r.context:null,u=[],e=function(n,f,e){for(var a=r.elements?r.elements:f?i.selectElementsT(f,s):[document.body],o,l,h=0,c=a;h<c.length;h++)o=c[h],o.mwfInstances||(o.mwfInstances=[]),o.mwfInstances[n]?u.push(o.mwfInstances[n]):(l=new t(o,e),o.mwfInstances[n]=l,u.push(l))};switch(o){case"DOMContentLoaded":i.documentReady(function(){n.callBindFunction(t,f,e,r,u)});break;case"load":default:if(n.onDeferredHappened)n.callBindFunction(t,f,e,r,u);else{n.deferredFunctions.push(function(){return n.callBindFunction(t,f,e,r,u)});break}}}},n.callBindFunction=function(t,i,u,f,e){f===void 0&&(f=null);var o=n.getTypeName(t),s=o||i||"";r.createPerfMarker(s+"_Begin");u(o,i,{mwfClass:o});r.createPerfMarker(s+"_End");f&&f.callback&&f.callback(e)},n.getTypeName=function(t){if(t.typeName)return t.typeName;if(t.name)return t.name;var i=n.typeNameRegEx.exec(t.toString());if(i&&i.length>1)return i[1]},n.enumerateComponents=function(n,t){var i,r,u;if(n&&t){i=n.mwfInstances;for(r in i)if(i.hasOwnProperty(r)&&(u=i[r],u&&!t(r,u)))break}},n.typeNameRegEx=/function\s+(\S+)\s*\(/,n.onLoadTimeoutMs=6e3,n.onDeferredHappened=!1,n.deferredFunctions=[],n}();t.ComponentFactory=u,function(){i.onDeferred(function(){var t=u.deferredFunctions,n,r,f;if(!t||t.length>0)for(n=0,r=t;n<r.length;n++)f=r[n],typeof f=="function"&&i.SafeBrowserApis.requestAnimationFrame.call(window,f);u.onDeferredHappened=!0},u.onLoadTimeoutMs)}()}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(5)],r=function(n,t,i){"use strict";function r(n){return!isNaN(n)&&typeof n=="number"}function u(){return window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth}function o(){return window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight}function s(n){if(n!=null)return{width:n.clientWidth,height:n.clientHeight}}function h(n){var t;if((n=n||window.event,!n)||(t=n.key||n.keyIdentifier,!t))return t;switch(t){case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Up":return"ArrowUp";case"Down":return"ArrowDown";case"Esc":return"Escape";default:return t}}function c(n){return n=n||window.event,n==null?null:n.which||n.keyCode||n.charCode}function l(n,t,i,r){var f="",u;r&&(u=new Date,u.setTime(u.getTime()+r*864e5),f="; expires="+u.toUTCString());window.document.cookie=n+"="+encodeURIComponent(t)+f+("; path="+i+";")}function a(n){var t,i;if(!!n)for(t=0,i=document.cookie.split("; ");t<i.length;t++){var r=i[t],e=r.indexOf("="),u=f(r.substring(0,e));if(u===n)return f(r.substring(u.length+1))}return null}function f(n){return n=decodeURIComponent(n.replace("/+/g"," ")),n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),n}function v(n){var u;if(!!n&&n.length===6){var t=parseInt(n.substring(0,2),16),i=parseInt(n.substring(2,4),16),r=parseInt(n.substring(4,6),16);if(!isNaN(t)&&!isNaN(i)&&!isNaN(r))return u=(t*299+i*587+r*114)/255e3,u>=.5?2:1}return null}function y(n,t,i){return!i||!r(n)||!r(t)||!r(i.left)||!r(i.right)||!r(i.top)||!r(i.bottom)?!1:n>=i.left&&n<=i.right&&t>=i.top&&t<=i.bottom}function p(n){console&&console.warn?console.warn(n):console&&console.error&&console.error(n)}function w(n){if(!i.isNullOrWhiteSpace(n)&&window.performance&&window.performance.mark){var t=n.split(" ").join("_");window.performance.mark(t);window.console&&window.console.timeStamp&&window.console.timeStamp(t)}}function b(n){if(!r(n)||n<=0)return"00:00";var t=Math.floor(n/3600),i=n%3600,u=Math.floor(i/60),f=t>0?t+":":"";return n=Math.floor(i%60),f+=(u<10?"0":"")+u,f+(":"+(n===0?"00":(n<10?"0":"")+n))}function k(n){if(!JSON||!JSON.parse)throw new Error("JSON.parse unsupported.");if(!n)throw new Error("Invalid json.");return JSON.parse(n)}function e(){for(var n=[],t,i,r=0;r<arguments.length;r++)n[+r]=arguments[r];for(t=1;t<n.length;t++)for(i in n[t])n[t].hasOwnProperty(i)&&(n[0][i]=typeof n[t][i]=="object"?e(n[0][i]||{},n[t][i]):n[t][i]);return arguments[0]}function d(n,t,i,r,u){var f;f=!i||i<0?Number(new Date("9999-12-31")):Number(new Date)+i;t=t||100,function e(){var i=n();if(i&&r)r();else{if(i)return;if(Number(new Date)<f)setTimeout(e,t);else if(u)u();else return}}()}function g(n){n=n.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[\\?&]"+n.toLowerCase()+"=([^&#]*)"),t=i.exec(location.search.toLowerCase());return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))}t.isNumber=r;t.getWindowWidth=u;t.getWindowHeight=o;t.getDimensions=s;t.getVirtualKey=h;t.getKeyCode=c;t.setCookie=l;t.getCookie=a;t.detectContrast=v;t.pointInRect=y;t.apiDeprecated=p;t.createPerfMarker=w;t.toElapsedTimeString=b;t.parseJson=k;t.extend=e;t.poll=d;t.getQSPValue=g;var nt;(function(n){function t(){var t;if(window.matchMedia){for(t=0;t<n.allWidths.length;++t)if(!window.matchMedia("(min-width:"+n.allWidths[t]+"px)").matches)return t}else for(t=0;t<n.allWidths.length;++t)if(!(u()>=n.allWidths[t]))return t;return n.allWidths.length}n.allWidths=[320,540,768,1084,1400,1779];n.vpMin=n.allWidths[0];n.vpMax=2048;n.getViewport=t})(nt=t.Viewports||(t.Viewports={}))}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var i=this;n.call(this,t);this.isVisible=!1;this.timer=0;this.exposeToScreenReaders=!0;this.onFocus=function(n){n=u.getEvent(n);n&&n.type!=="mouseover"&&i.actOnFocus()};this.handleKeydownWhenFocused=function(n){if(i.isVisible){n=u.getEvent(n);var t=e.getKeyCode(n);switch(t){case 27:i.hide();break;case 38:case 40:u.preventDefault(n)}}};this.onBlur=function(){i.hide();u.addEvent(i.controller,u.eventTypes.focus,i.onFocus);u.removeEvent(i.controller,u.eventTypes.blur,i.onBlur);u.removeEvent(i.controller,u.eventTypes.keydown,i.handleKeydownWhenFocused)};this.onMouseOver=function(n){i.isVisible||(n=u.getEvent(n),i.tooltipXPosition=n.clientX,i.tooltipYPosition=n.clientY,i.actOnMouseOver())};this.onMouseOut=function(){i.timer>0&&(window.clearTimeout(i.timer),i.timer=0);i.hide();u.removeEvent(i.controller,u.eventTypes.mouseout,i.onMouseOut);u.addEvent(i.controller,u.eventTypes.mouseover,i.onMouseOver)};this.showForMouse=function(){i.show();u.removeEvent(i.controller,u.eventTypes.mouseover,i.onMouseOver)};this.onScroll=function(){i.isVisible&&!i.animationFrameRequested&&(i.animationFrameRequested=!0,u.SafeBrowserApis.requestAnimationFrame.call(window,function(){return i.handleScroll()}))};this.update()}return f(t,n),t.prototype.update=function(){if(this.element){var n=this.element.getAttribute("id");this.controller=u.selectFirstElement("["+t.ariaDescribedByAttribute+'="'+n+'"]');this.controller||(this.controller=u.selectFirstElement("["+t.dataDescribedByAttribute+'="'+n+'"]'),this.exposeToScreenReaders=!this.controller?!0:!1);this.element.setAttribute(t.ariaHidden,"true");this.exposeToScreenReaders||(u.addClass(this.element,t.hiddenClass),u.addClass(this.element,t.hiddenFromScreenReadersClass));!this.controller||(u.addEvent(this.controller,u.eventTypes.mouseover,this.onMouseOver),u.addEvent(this.controller,u.eventTypes.focus,this.onFocus),u.addEvent(window,u.eventTypes.scroll,this.onScroll))}},t.prototype.teardown=function(){u.removeEvent(this.controller,u.eventTypes.mouseover,this.onMouseOver);u.removeEvent(this.controller,u.eventTypes.mouseout,this.onMouseOut);u.removeEvent(this.controller,u.eventTypes.focus,this.onFocus);u.removeEvent(this.controller,u.eventTypes.blur,this.onBlur);u.removeEvent(window,u.eventTypes.scroll,this.onScroll);this.controller=null;this.isVisible=!1;this.tooltipXPosition=0;this.tooltipYPosition=0;this.timer>0&&(window.clearTimeout(this.timer),this.timer=0)},t.prototype.actOnFocus=function(){u.removeClass(this.element,t.hookHover);u.addClass(this.element,t.hookFocus);var n=u.getClientRect(this.controller);this.tooltipXPosition=n.left;this.tooltipYPosition=n.bottom;this.show();u.addEvent(this.controller,u.eventTypes.blur,this.onBlur);u.addEvent(this.controller,u.eventTypes.keydown,this.handleKeydownWhenFocused);u.removeEvent(this.controller,u.eventTypes.focus,this.onFocus)},t.prototype.actOnMouseOver=function(){u.removeClass(this.element,t.hookFocus);u.addClass(this.element,t.hookHover);this.timer=window.setTimeout(this.showForMouse,t.timerDelay);u.addEvent(this.controller,u.eventTypes.mouseout,this.onMouseOut)},t.prototype.handleScroll=function(){this.animationFrameRequested=!1;var n=u.getScrollY(),t=this.scrollYOnShow-n;this.setPosition({top:this.tooltipYPosition+t})},t.prototype.show=function(){this.isVisible=!0;this.scrollYOnShow=u.getScrollY();this.exposeToScreenReaders?this.element.setAttribute(t.ariaHidden,"false"):u.removeClass(this.element,t.hiddenClass);this.setPosition({left:this.tooltipXPosition,top:this.tooltipYPosition})},t.prototype.hide=function(){!!this.element&&this.isVisible&&(this.isVisible=!1,this.exposeToScreenReaders?this.element.setAttribute(t.ariaHidden,"true"):u.addClass(this.element,t.hiddenClass),u.removeClass(this.element,t.hookHover),u.removeClass(this.element,t.hookFocus))},t.prototype.setContent=function(n){!this.element||u.setText(this.element,n)},t.prototype.setPosition=function(n){n&&(!n.left||u.css(this.element,"left",n.left+"px"),!n.top||u.css(this.element,"top",n.top+"px"))},t.init=function(n){e.apiDeprecated("Tooltip.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-tooltip",t.ariaHidden="aria-hidden",t.hiddenClass="x-hidden",t.timerDelay=800,t.hookFocus="hook-focus",t.hookHover="hook-hover",t.ariaDescribedByAttribute="aria-describedby",t.dataDescribedByAttribute="data-f-describedby",t.hiddenFromScreenReadersClass="f-hidden-from-screen-readers",t}(i.ObservableComponent);t.Tooltip=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(9),i(6),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var i=this;n.call(this,t);this.closeAlertAndRemoveEvent=function(){u.removeEvent(i.closeButton,u.eventTypes.click,i.closeAlertAndRemoveEvent);u.removeElement(i.element);i.initiatePublish()};this.update()}return f(t,n),t.prototype.update=function(){this.element&&(this.closeButton=u.selectFirstElement("button.c-action-trigger.glyph-cancel",this.element),!this.closeButton||u.addEvent(this.closeButton,u.eventTypes.click,this.closeAlertAndRemoveEvent,!1))},t.prototype.teardown=function(){u.removeEvent(this.closeButton,u.eventTypes.click,this.closeAlertAndRemoveEvent,!1)},t.prototype.publish=function(n){n.onAlertClosed()},t.init=function(n){e.apiDeprecated("Alert.init() is deprecated, please use ComponentFactory.create() instead.");i.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".m-alert",t}(r.Publisher);t.Alert=o}.apply(t,u),r!==undefined&&(n.exports=r))},,function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(4),i(10),i(3),i(9)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var i=this;(n.call(this,t),this.toggleBackToTop=function(){var n=window.pageYOffset||document.body.scrollTop,t=r.getWindowHeight(),u=n>=2*t?"false":"true";i.element.setAttribute("aria-disabled",u)},t)&&this.update()}return f(t,n),t.prototype.update=function(){this.scrollThrottledEventHandler=i.addThrottledEvent(window,i.eventTypes.scroll,this.toggleBackToTop)},t.prototype.teardown=function(){i.removeEvent(window,i.eventTypes.scroll,this.scrollThrottledEventHandler)},t.init=function(n){r.apiDeprecated("BackToTop.init() is deprecated, please use ComponentFactory.create() instead.");e.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".m-back-to-top",t}(u.ObservableComponent);t.BackToTop=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(4),i(10)],r=function(n,t,i,r,u){"use strict";var e=function(n){function t(t){var i=this;n.call(this,t);this.handleKeydown=function(n){var t=u.getKeyCode(n);switch(t){case 32:r.preventDefault(n);i.emitClickEvent()}};this.update()}return f(t,n),t.prototype.update=function(){this.element&&this.element.nodeName==="A"&&(this.element.getAttribute("role")||"").toLowerCase()==="button"&&r.addEvent(this.element,r.eventTypes.keydown,this.handleKeydown)},t.prototype.teardown=function(){r.removeEvent(this.element,r.eventTypes.keydown,this.handleKeydown)},t.prototype.emitClickEvent=function(){r.customEvent(this.element,r.eventTypes.click)},t.selector=".c-button",t}(i.ObservableComponent);t.Button=e}.apply(t,u),r!==undefined&&(n.exports=r))},,function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(18),i(9),i(20),i(8),i(4),i(10)],r=function(n,t,i,r,u,e,o,s){"use strict";var h=function(n){function t(t,i){var r=this;i===void 0&&(i=null);n.call(this,t,i);this.carouselElement=t;this.isAutoPlayPaused=!0;this.autoPlayTimer=-1;this.hasContentFocus=!1;this.onActionToggled=function(n){!n||(n.toggled?r.startAutoPlay():r.pauseAutoPlay())};this.suspendAutoPlay=function(){r.clearAutoPlayTimers()};this.resumeAutoPlay=function(){r.isAutoPlayPaused||r.setAutoPlayInterval()};this.onContentFocus=function(){r.hasContentFocus=!0;r.suspendAutoPlay()};this.onContentBlur=function(){r.hasContentFocus=!1;r.resumeAutoPlay()}}return f(t,n),t.prototype.update=function(){var i=this,u;return n.prototype.update.call(this)?(u=o.selectFirstElement(e.ActionToggle.selector,this.carouselElement),!u||(u.setAttribute("aria-hidden",this.slides.length>1?"false":"true"),r.ComponentFactory.create([{component:e.ActionToggle,elements:[u],callback:function(n){n.length>0&&(i.autoPlayActionToggle=n[0],!i.autoPlayActionToggle||(i.autoPlayActionToggle.subscribe(i),o.addEvent(i.carouselElement,o.eventTypes.mouseover,i.suspendAutoPlay),o.addEvent(i.carouselElement,o.eventTypes.mouseout,i.resumeAutoPlay),i.focusContentElements=o.selectElements(t.focusContentSelector,i.carouselElement),i.focusContentElements&&(i.hasContentFocus=i.focusContentElements.indexOf(document.activeElement)!==-1,o.addEvent(i.focusContentElements,o.eventTypes.focus,i.onContentFocus),o.addEvent(i.focusContentElements,o.eventTypes.blur,i.onContentBlur)),i.autoPlayIntervalDuration=Math.max(t.autoPlayMinimumInterval,parseInt(i.carouselElement.getAttribute(t.autoPlayIntervalAttribute),10)||t.autoPlayDefaultInterval),o.hasClass(i.carouselElement,t.autoPlayClass)&&i.slides.length>1&&i.autoPlayActionToggle.isToggled()&&!i.hasContentFocus&&s.getQSPValue("mwfrun").toLowerCase()!=="formwfvdiff"&&i.startAutoPlay()))},eventToBind:"DOMContentLoaded"}])),this.loadMultiSlideController(),!0):!1},t.prototype.teardown=function(){n.prototype.teardown.call(this);!this.autoPlayActionToggle||(this.autoPlayActionToggle.unsubscribe(this),o.removeEvent(this.carouselElement,o.eventTypes.mouseover,this.suspendAutoPlay),o.removeEvent(this.carouselElement,o.eventTypes.mouseout,this.resumeAutoPlay),this.focusContentElements&&(o.removeEvent(this.focusContentElements,o.eventTypes.focus,this.onContentFocus),o.removeEvent(this.focusContentElements,o.eventTypes.blur,this.onContentBlur)),this.clearAutoPlayTimers(),this.isAutoPlayPaused=!0,this.autoPlayActionToggle=null);this.hasContentFocus=!1;!this.sequenceIndicator||this.sequenceIndicator.unsubscribe(this)},t.prototype.getSlides=function(){return o.selectElements(i.CarouselBase.allChildSelectors,this.carouselElement)},t.prototype.getFirstActiveIndex=function(){for(var n=0;n<this.slides.length;n++)if(o.hasClass(this.slides[n],i.CarouselBase.activeClass))return n;return 0},t.prototype.isScrollablePrevious=function(){return!!this.slides&&this.slides.length>1},t.prototype.isScrollableNext=function(){return!!this.slides&&this.slides.length>1},t.prototype.previousSlide=function(){this.setActiveSlide(this.activeIndex===0?this.slides.length-1:this.activeIndex-1)},t.prototype.nextSlide=function(){this.setActiveSlide(this.activeIndex===this.slides.length-1?0:this.activeIndex+1)},t.prototype.setActiveSlide=function(r,u){var f,e,s;(u===void 0&&(u=!0),f=this.activeIndex,n.prototype.setActiveSlide.call(this,r,u))&&(f!==-1&&(o.removeClasses(this.slides[f],[i.CarouselBase.activeClass,t.animateNextClass,t.animatePreviousClass]),o.addClass(this.slides[this.activeIndex],f<r?t.animateNextClass:t.animatePreviousClass)),this.resumeAutoPlay(),this.sequenceIndicator&&this.sequenceIndicator.setControllerIndex(r,!1),e=f===-1?null:n.prototype.getCollectionItem.call(this,this.slides[f]),s=n.prototype.getCollectionItem.call(this,this.slides[this.activeIndex]),e&&e.onCollectionItemHidden(),s&&s.onCollectionItemShown(),n.prototype.initiatePublish.call(this,{fullyVisibleItemRange:[r,r],partiallyVisibleItemRange:[r,r],userInitiated:u}))},t.prototype.startAutoPlay=function(){this.setAutoPlayInterval();this.isAutoPlayPaused=!1},t.prototype.pauseAutoPlay=function(){this.isAutoPlayPaused=!0;this.clearAutoPlayTimers()},t.prototype.setAutoPlayInterval=function(){var n=this;this.clearAutoPlayTimers();this.autoPlayTimer=setTimeout(function(){n.setActiveSlide(n.activeIndex===n.slides.length-1?0:n.activeIndex+1,!1)},this.autoPlayIntervalDuration)},t.prototype.clearAutoPlayTimers=function(){this.autoPlayTimer!==-1&&(clearTimeout(this.autoPlayTimer),this.autoPlayTimer=-1)},t.prototype.loadMultiSlideController=function(){var n=this,t=o.selectFirstElement(u.SequenceIndicator.selector,this.carouselElement);!t||r.ComponentFactory.create([{component:u.SequenceIndicator,elements:[t],callback:function(i){i&&i.length&&(n.sequenceIndicator=i[0],!n.sequenceIndicator||(t.setAttribute("aria-hidden",n.slides.length>1?"false":"true"),n.sequenceIndicator.subscribe(n)))},eventToBind:"DOMContentLoaded"}])},t.prototype.onControllerIndexChanged=function(n){!n||this.setActiveSlide(n.currentIndex)},t.selector=".c-carousel[class*=f-multi-slide]",t.animateNextClass="f-animate-next",t.animatePreviousClass="f-animate-previous",t.focusContentSelector=".c-call-to-action",t.autoPlayClass="f-auto-play",t.autoPlayIntervalAttribute="data-js-interval",t.autoPlayDefaultInterval=6e3,t.autoPlayMinimumInterval=5e3,t}(i.CarouselBase);t.MultiSlideCarousel=h}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(6),i(19),i(5),i(4)],r=function(n,t,i,r,u,e,o,s){"use strict";var h=function(n){function t(t,r){var u=this;(n.call(this,t,r),this.carouselElement=t,this.activeIndex=-1,this.onFlipperClicked=function(n){s.getEventTargetOrSrcElement(n)===u.previousButton?u.previousSlide():u.nextSlide()},this.swipeHandler=function(n){var t=n===e.SwipeDirection.Right?u.direction===s.Direction.left:u.direction!==s.Direction.left;t&&u.isScrollableNext()?u.nextSlide():!t&&u.isScrollablePrevious()&&u.previousSlide()},i.ObservableComponent.shouldInitializeAsClass(t,r))&&(this.direction=s.getDirection(),this.directionValue=s.Direction[this.direction],this.requestAnimationFrame=s.SafeBrowserApis.requestAnimationFrame,window.navigator.pointerEnabled&&s.css(this.carouselElement,"touchAction","pan-y"),this.requestAnimationFrame.call(window,function(){return u.update()}))}return f(t,n),t.prototype.update=function(){var n=this;return!this.carouselElement||!this.hasSlides()?!1:(this.requestAnimationFrame.call(window,function(){return n.setActiveSlide(n.getFirstActiveIndex(),!1)}),this.previousButton=s.selectFirstElement(t.previousButtonSelector,this.carouselElement),this.nextButton=s.selectFirstElement(t.nextButtonSelector,this.carouselElement),!this.previousButton||!this.nextButton||(s.addEvent(this.previousButton,s.eventTypes.click,this.onFlipperClicked),s.addEvent(this.nextButton,s.eventTypes.click,this.onFlipperClicked)),this.swipe=new e.Swipe(this.carouselElement,{end:this.swipeHandler}),!0)},t.prototype.teardown=function(){!this.previousButton||!this.nextButton||(s.removeEvent(this.previousButton,s.eventTypes.click,this.onFlipperClicked),s.removeEvent(this.nextButton,s.eventTypes.click,this.onFlipperClicked));this.swipe&&this.swipe.tearDown();this.activeIndex=-1;this.slides=null;this.previousButton=null;this.nextButton=null},t.prototype.hasSlides=function(){return this.slides=this.getSlides(),!!this.slides&&!!this.slides.length},t.prototype.getCollectionItem=function(n){var t;return!n||!n.firstElementChild||r.ComponentFactory.enumerateComponents(n.firstElementChild,function(n,i){return i.onCollectionItemHidden&&i.onCollectionItemShown&&(t=i),!t}),t},t.prototype.setActiveSlide=function(n,i){return(i===void 0&&(i=!0),n<0||n>=this.slides.length||n===this.activeIndex)?!1:(this.activeIndex>=0&&this.activeIndex<this.slides.length&&s.removeClass(this.slides[this.activeIndex],t.activeClass),this.activeIndex=n,s.addClass(this.slides[n],t.activeClass),this.updateTheme(),this.updateFlippers(),!0)},t.prototype.updateTheme=function(){s.removeClasses(this.carouselElement,[t.themeDarkClass,t.themeLightClass]);var n=this.slides[this.activeIndex].getAttribute(t.slideThemeAttribute);o.isNullOrWhiteSpace(n)||s.addClass(this.carouselElement,t.themePrefix+n)},t.prototype.updateFlippers=function(){this.isScrollableNext()?s.addClass(this.carouselElement,t.nextFlipperClass):s.removeClass(this.carouselElement,t.nextFlipperClass);this.isScrollablePrevious()?s.addClass(this.carouselElement,t.previousFlipperClass):s.removeClass(this.carouselElement,t.previousFlipperClass)},t.prototype.publish=function(n,t){n.onSlideRangeChanged(t)},t.selector=".c-carousel",t.activeClass="f-active",t.allChildSelectors=t.selector+" > * > ul > li",t.slideThemeAttribute="data-f-theme",t.themePrefix="theme-",t.previousFlipperClass="f-scrollable-previous",t.nextFlipperClass="f-scrollable-next",t.themeLightClass="theme-light",t.themeDarkClass="theme-dark",t.previousButtonSelector=".c-flipper.f-previous, .c-flipper.f-left",t.nextButtonSelector=".c-flipper.f-next, .c-flipper.f-right",t}(u.Publisher);t.CarouselBase=h}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(4)],r=function(n,t,i){"use strict";var u=function(){function n(n,t,u){var f=this;(this.element=n,this.swipeEventHandlers=t,this.active=!1,this.swipeDistanceMarker=10,this.pointerEvents={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},pointer:{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}},this.maximumVerticalDistance=200,this.maximumVerticalRatio=.85,this.minimumHorizontalDistance=30,this.endHandler=function(n){var t,u;f.active&&(f.active=!1,t=i.getCoordinates(n),f.validSwipe(t,f.startCoordinate)&&(u=t.x-f.startCoordinate.x>0?r.Left:r.Right,f.swipeEventHandlers.end&&f.swipeEventHandlers.end(u)))},this.startHandler=function(n){f.startCoordinate=i.getCoordinates(n);f.active=!0;f.totalX=0;f.totalY=0;f.endCoordinate=f.startCoordinate;f.swipeEventHandlers.start&&f.swipeEventHandlers.start(f.startCoordinate,n)},this.cancelHandler=function(n){f.active=!1;f.swipeEventHandlers.cancel&&f.swipeEventHandlers.cancel(n)},this.moveHandler=function(n){if(f.active&&f.startCoordinate){var t=i.getCoordinates(n);if(f.totalX+=Math.abs(t.x-f.endCoordinate.x),f.totalY+=Math.abs(t.y-f.endCoordinate.y),f.endCoordinate=t,!(f.totalX<f.swipeDistanceMarker)||!(f.totalY<f.swipeDistanceMarker)){if(f.totalY>f.totalX){f.active=!1;f.swipeEventHandlers.cancel&&f.swipeEventHandlers.cancel(n);return}i.preventDefault(n);f.swipeEventHandlers.move&&f.swipeEventHandlers.move(t,n)}}},this.element&&t)&&(this.pointerTypes=u||["touch","pointer","mouse"],i.addEvents(this.element,this.getEvents(this.pointerTypes,"start"),this.startHandler),i.addEvents(this.element,this.getEvents(this.pointerTypes,"move"),this.moveHandler),i.addEvents(this.element,this.getEvents(this.pointerTypes,"end"),this.endHandler),i.addEvents(this.element,this.getEvents(this.pointerTypes,"cancel"),this.cancelHandler))}return n.prototype.getEvents=function(n,t){for(var f=[],e,u,i=0,r=n;i<r.length;i++)e=r[i],u=this.pointerEvents[e][t],u&&f.push(u);return f.join(" ")},n.prototype.tearDown=function(){i.removeEvents(this.element,this.getEvents(this.pointerTypes,"start"),this.startHandler);i.removeEvents(this.element,this.getEvents(this.pointerTypes,"move"),this.moveHandler);i.removeEvents(this.element,this.getEvents(this.pointerTypes,"end"),this.endHandler);i.removeEvents(this.element,this.getEvents(this.pointerTypes,"cancel"),this.cancelHandler)},n.prototype.validSwipe=function(n,t){if(!t)return!1;var i=Math.abs(n.y-t.y),r=Math.abs(n.x-t.x);return i<this.maximumVerticalDistance&&r>this.minimumHorizontalDistance&&i/r<this.maximumVerticalRatio},n}(),r;t.Swipe=u,function(n){n[n.Left=0]="Left";n[n.Right=1]="Right"}(t.SwipeDirection||(t.SwipeDirection={}));r=t.SwipeDirection}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(6),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(r,f){var o=this;f===void 0&&(f=null);n.call(this,r,f);this.sequenceIndicatorElement=r;this.selectedAttribute=t.ariaSelected;this.setActiveIndex=function(n){return e.apiDeprecated("SequenceIndicator.setActiveIndex() is deprecated, please use SequenceIndicator.setControllerIndex() instead."),o.setControllerIndex(n)};this.setControllerIndex=function(n,t){if(t===void 0&&(t=!1),n<0||n>o.items.length-1||n===o.activeIndex)return!1;var u=o.activeIndex,i=o.items[o.activeIndex],r=o.items[n],f=document.activeElement===i;return o.deselectItem(i),o.selectItem(r),o.activeIndex=n,(t||f)&&r.focus(),o.initiatePublish({previousIindex:u,currentIndex:n,index:n}),!0};this.handleClickEvent=function(n){var t,i;u.preventDefault(n);t=u.getEventTargetOrSrcElement(n);t&&(i=t.getAttribute("role"),!i&&t.parentElement&&(t=t.parentElement.getAttribute("role")==="tab"?t.parentElement:null),o.setControllerIndex(o.items.indexOf(t)))};this.onKeydown=function(n){switch(e.getKeyCode(n)){case 39:case 40:o.next();break;case 37:case 38:o.previous();break;default:switch(e.getVirtualKey(n)){case"ArrowRight":case"ArrowDown":o.next();break;case"ArrowLeft":case"ArrowUp":o.previous()}}};i.ObservableComponent.shouldInitializeAsClass(r,f)&&this.update()}return f(t,n),t.prototype.update=function(){var f,n,r,i;if(!this.sequenceIndicatorElement||(this.sequenceIndicatorElement.getAttribute("role")==="radiogroup"&&(this.selectedAttribute=t.ariaChecked),this.items=u.selectElements(this.constructor.itemSelector,this.sequenceIndicatorElement),!this.items.length))return!1;for(n=0,r=this.items;n<r.length;n++)i=r[n],i.getAttribute(this.selectedAttribute)===t.selectedValue&&(f=this.items.indexOf(i)),this.deselectItem(i);return this.setControllerIndex(f||0),u.addEvent(this.sequenceIndicatorElement,u.eventTypes.click,this.handleClickEvent),u.addEvent(this.sequenceIndicatorElement,u.eventTypes.keydown,this.onKeydown,!0),!0},t.prototype.teardown=function(){u.removeEvent(this.sequenceIndicatorElement,u.eventTypes.click,this.handleClickEvent);u.removeEvent(this.sequenceIndicatorElement,u.eventTypes.keydown,this.onKeydown)},t.prototype.publish=function(n,t){var i=n,r=n;if(i.onIndexChanged)i.onIndexChanged(t);if(r.onControllerIndexChanged)r.onControllerIndexChanged(t)},t.prototype.selectItem=function(n){!n||(n.setAttribute(this.selectedAttribute,t.selectedValue),n.setAttribute("tabindex","0"),u.addClass(n,t.activeItemClass))},t.prototype.deselectItem=function(n){!n||(n.setAttribute(this.selectedAttribute,t.deselectedValue),n.setAttribute("tabindex","-1"),u.removeClass(n,t.activeItemClass))},t.prototype.next=function(){var n;n=this.activeIndex===this.items.length-1?0:this.activeIndex+1;this.setControllerIndex(n)},t.prototype.previous=function(){var n;n=this.activeIndex===0?this.items.length-1:this.activeIndex-1;this.setControllerIndex(n)},t.selector=".c-sequence-indicator",t.itemSelector="button",t.selectedValue="true",t.deselectedValue="false",t.ariaSelected="aria-selected",t.ariaChecked="aria-checked",t.activeItemClass="f-active",t}(r.Publisher);t.SequenceIndicator=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(18),i(4),i(10)],r=function(n,t,i,r,u){"use strict";var e=function(n){function t(t,i){var u=this;i===void 0&&(i=null);n.call(this,t,i);this.carouselElement=t;this.onItemFocus=function(n){var t=r.getEventTargetOrSrcElement(n);if(t){while(t.tagName!=="LI")if(!t.parentElement||t.parentElement===t)break;else t=t.parentElement;t.tagName==="LI"&&u.scrollItemIntoView(t)}};this.onResized=function(){u.onCarouselResized()}}return f(t,n),t.prototype.update=function(){if(!n.prototype.update.call(this))return!1;this.resizeThrottledEventHandler=r.addThrottledEvent(window,r.eventTypes.resize,this.onResized);var i=r.hasClass(this.slides[0],"f-gallery")?t.focusGalleryItemSelector:t.focusItemSelector;return this.focusElements=r.selectElements(i,this.carouselElement),r.addEvent(this.focusElements,r.eventTypes.focus,this.onItemFocus),!0},t.prototype.teardown=function(){n.prototype.teardown.call(this);r.removeEvent(window,r.eventTypes.resize,this.resizeThrottledEventHandler);r.removeEvent(this.focusElements,r.eventTypes.focus,this.onItemFocus)},t.prototype.getSlides=function(){var n=r.selectElements(t.singleSlideSelector,this.carouselElement);return n&&n.length&&r.selectFirstElement("li",n[0])?(this.singleSlideWidth=u.getDimensions(n[0]).width,n):null},t.prototype.getFirstActiveIndex=function(){return 0},t.prototype.isScrollablePrevious=function(){var n=parseInt(r.css(this.slides[this.activeIndex],this.directionValue),10);return!isNaN(n)&&n!==0},t.prototype.isScrollableNext=function(){var n=parseInt(r.css(this.slides[this.activeIndex],this.directionValue),10),t=u.getDimensions(this.carouselElement).width,i=this.getCurrentSlideSize();return(u.isNumber(n)||(n=0),t+Math.abs(n)+i.gutter>=this.singleSlideWidth)?!1:!0},t.prototype.previousSlide=function(){this.changeSingleSlide(!1)},t.prototype.nextSlide=function(){this.changeSingleSlide(!0)},t.prototype.changeSingleSlide=function(t){var l=this.slides[this.activeIndex],e=parseInt(r.css(l,this.directionValue),10),i=this.getCurrentSlideSize(),o=u.getDimensions(this.carouselElement).width,f=Math.floor(o/(i.width+i.gutter)),s,a=t?-1:1,v=t?i.gutter:0,h,c;u.isNumber(e)||(e=0);f===0&&(f=1);f=o%(i.width+i.gutter)==0?f-1:f;f=Math.max(f,1);s=f*(i.width+i.gutter);h=t?this.singleSlideWidth-o+e:Math.abs(e);c=s<=h?s*a+e:h*a+e+v;r.css(l,this.directionValue,c+"px");n.prototype.updateFlippers.call(this);this.fireSingleSlideChangedNotification(c,o,i)},t.prototype.fireSingleSlideChangedNotification=function(t,u,f){for(var v=r.selectElements(i.CarouselBase.allChildSelectors,this.carouselElement),y=f.width,p=f.width+f.gutter,l=-1,o=-1,s=-1,a=-1,h,c,e=0;e<v.length;e++)if((h=e*p+t,c=h+y,!(c<0))&&(h<0&&c>0&&(l=e),s===-1&&h>=0&&(s=e,l===-1&&(l=s)),s!==-1&&c<=u&&(a=e),a!==-1&&o===-1&&h<u&&c>u)){o=e;break}o===-1&&(o=a);n.prototype.initiatePublish.call(this,{fullyVisibleItemRange:[s,a],partiallyVisibleItemRange:[l,o],userInitiated:!0})},t.prototype.getCurrentSlideSize=function(){var n=r.selectFirstElement(i.CarouselBase.allChildSelectors,this.carouselElement),t;return!n?{width:0,gutter:0}:(t=this.direction===r.Direction.left?parseInt(r.css(n,"marginRight"),10):parseInt(r.css(n,"marginLeft"),10),{width:n.offsetWidth,gutter:isNaN(t)?0:t})},t.prototype.onCarouselResized=function(){var i=this.slides[0],t=parseInt(r.css(i,this.directionValue),10),f=u.getDimensions(this.carouselElement).width;this.singleSlideWidth=u.getDimensions(this.slides[0]).width;!isNaN(t)&&t<0&&this.singleSlideWidth+t<f&&r.css(i,this.directionValue,Math.min(0,f-this.singleSlideWidth)+"px");n.prototype.updateFlippers.call(this)},t.prototype.scrollItemIntoView=function(t){var l=this,o=u.getDimensions(this.carouselElement).width,e=this.slides[0],i=t.offsetLeft,f=this.getCurrentSlideSize(),s=!1,h,c;this.direction===r.Direction.left?(h=parseInt(r.css(e,"left"),10)||0,h<0&&-h>i?(i=-i+1,s=!0):h+i>o-f.width&&(i=o-f.width-i-1,s=!0)):(c=u.getDimensions(e).width,i+f.width+f.gutter+e.offsetLeft>o?(i=-(c-i-f.width-f.gutter)+1,s=!0):i+e.offsetLeft<0&&(i=o-(c-i-f.gutter)-1,s=!0));s&&(r.css(e,this.directionValue,i+"px"),n.prototype.updateFlippers.call(this),setTimeout(function(){e.parentElement.scrollLeft=0;l.fireSingleSlideChangedNotification(i,o,f)},0))},t.selector=".c-carousel[class*=f-single-slide]",t.singleSlideSelector=i.CarouselBase.selector+" > * > ul",t.focusItemSelector=i.CarouselBase.selector+" > * > ul > li > section a",t.focusGalleryItemSelector=i.CarouselBase.selector+" > * > ul > li a",t}(i.CarouselBase);t.SingleSlideCarousel=e}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(9),i(6),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(i){var r=this;n.call(this,i);this.updateCheckbox=function(){var n=r.input.checked;n!==r.checked&&(r.checked=n,r.input.setAttribute(t.ariaCheckedAttribute,r.checked.toString()),r.initiatePublish({checked:r.checked}))};this.update()}return f(t,n),t.prototype.update=function(){(this.input=u.selectFirstElement(t.inputSelector,this.element),this.input)&&(this.input.getAttribute(t.indeterminateAttribute)===t.indeterminateValue&&(this.input.indeterminate=!0),this.checked=this.input.checked,this.input.setAttribute(t.ariaCheckedAttribute,this.checked.toString()),u.addEvent(this.input,u.eventTypes.click,this.updateCheckbox))},t.prototype.teardown=function(){u.removeEvent(this.input,u.eventTypes.click,this.updateCheckbox)},t.prototype.publish=function(n,t){n.onValueChanged(t)},Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this.input?this.input.indeterminate:!1},set:function(n){this.input&&(this.input.indeterminate=n)},enumerable:!0,configurable:!0}),t.init=function(n){e.apiDeprecated("Checkbox.init() is deprecated, please use ComponentFactory.create() instead.");i.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-checkbox",t.inputSelector='input[type="checkbox"]',t.indeterminateAttribute="data-js-checkbox",t.indeterminateValue="indeterminate",t.ariaCheckedAttribute="aria-checked",t}(r.Publisher);t.Checkbox=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(4)],r=function(n,t,i,r){"use strict";var u=function(n){function t(i){var u=this;n.call(this,i);this.onDropdownClicked=function(n){r.preventDefault(n);u.toggleVisibility()};this.onNonDropdownClick=function(n){var t=r.getEventTargetOrSrcElement(n);u.isVisible||u.element.contains(t)||u.toggleVisibility()};this.replaceText=function(n){var i,f;u.checkedChoiceOption=n.target;i=u.checkedChoiceOption.parentNode;u.label=r.selectFirstElement(t.spanSelector,i);f=u.labelText+u.separator+" "+r.getText(u.label);r.setText(u.dropdownText,f)};this.toggleVisibility=function(){u.isVisible=!u.isVisible;u.element.setAttribute(t.ariaExpanded,(!u.isVisible).toString());u.dropdownMenu.setAttribute(t.ariaHidden,u.isVisible.toString())};this.update()}return f(t,n),t.prototype.update=function(){var n,i,u;if(this.dropdownButton=r.selectFirstElement(t.dropdownButtonSelector,this.element),this.dropdownMenu=r.selectFirstElement(t.dropdownMenuSelector,this.element),this.dropdownText=r.selectFirstElement(t.separatorSpanSelector,this.element),this.separator=this.dropdownText.getAttribute(t.separatorSelector),this.labelText=r.getText(this.dropdownText),this.dropdownButton&&this.separator&&this.dropdownMenu&&this.dropdownText&&this.labelText)for(this.choiceOptions=r.selectElementsT(t.choiceOptionSelector,this.element),this.isVisible=this.dropdownMenu.getAttribute(t.ariaHidden)==="true",r.addEvent(this.dropdownButton,r.eventTypes.click,this.onDropdownClicked),r.addEvent(document,r.eventTypes.click,this.onNonDropdownClick),r.addEvent(this.choiceOptions,r.eventTypes.click,this.replaceText),n=0,i=this.choiceOptions;n<i.length;n++)if(u=i[n],u.checked){this.checkedChoiceOption=u;break}},t.prototype.teardown=function(){r.removeEvent(this.dropdownButton,r.eventTypes.click,this.onDropdownClicked);r.removeEvent(document,r.eventTypes.click,this.onNonDropdownClick);r.removeEvent(this.choiceOptions,r.eventTypes.click,this.replaceText)},t.selector=".c-choice-summary",t.dropdownButtonSelector=".c-action-trigger.glyph-chevron-down",t.dropdownMenuSelector="ul",t.ariaHidden="aria-hidden",t.ariaExpanded="aria-expanded",t.separatorSpanSelector=".c-choice-summary > span",t.spanSelector="span",t.separatorSelector="data-js-separator",t.labelSelector="label",t.choiceOptionSelector='input[type="radio"]',t}(i.ObservableComponent);t.ChoiceSummary=u}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(6),i(9),i(4),i(10),i(5)],r=function(n,t,i,r,u,e,o){"use strict";var s=function(n){function t(i){var r=this;n.call(this,i);this.isCombobox=!1;this.maxDisplayedItems=t.defaultMaxDisplayedItems;this.handleInputKeydownEvent=function(n){var t=e.getKeyCode(n);(t===13||t===40)&&u.preventDefault(n);r.handleInputKeydown(t)};this.handleInputKeyupEvent=function(n){r.handleInputKeyup(e.getKeyCode(n))};this.handleInputOrButtonClickEvent=function(n){u.preventDefault(n);r.handleInputOrButtonClick()};this.handleButtonKeydownEvent=function(n){var t=e.getKeyCode(n);t!==9&&u.preventDefault(n);r.handleButtonKeydown(t)};this.handleMenuKeydownEvent=function(n){var t=e.getKeyCode(n);t!==9&&u.preventDefault(n);r.handleMenuKeydown(u.getEventTargetOrSrcElement(n),t)};this.handleMenuClickEvent=function(n){r.handleMenuClick(u.getEventTargetOrSrcElement(n))};this.handleOffMenuClick=function(n){r.element.contains(u.getEventTargetOrSrcElement(n))||r.hideMenu()};this.update()}return f(t,n),t.prototype.update=function(){this.element&&(this.input=u.selectFirstElementT("input",this.element),this.button=u.selectFirstElement("button",this.element),this.menu=u.selectFirstElement("ul",this.element),this.listItems=u.selectElements("span, a",this.menu),this.input.getAttribute(t.role)==="combobox"&&(this.isCombobox=!0),this.input&&this.button&&this.menu&&!(this.listItems.length<1))&&(this.activeValue=this.input.value,this.activeItem=u.selectFirstElement("span[class='"+t.activeClassName+"']",this.menu),u.addEvent(this.input,u.eventTypes.keydown,this.handleInputKeydownEvent,!0),u.addEvent(this.input,u.eventTypes.keyup,this.handleInputKeyupEvent,!0),u.addEvent(this.input,u.eventTypes.click,this.handleInputOrButtonClickEvent,!0),u.addEvent(this.button,u.eventTypes.click,this.handleInputOrButtonClickEvent,!0),u.addEvent(this.button,u.eventTypes.keydown,this.handleButtonKeydownEvent,!0),u.addEvent(this.listItems,u.eventTypes.keydown,this.handleMenuKeydownEvent,!0),u.addEvent(this.listItems,u.eventTypes.click,this.handleMenuClickEvent,!0),this.activeItem&&this.setActiveItemAndHideMenu(this.activeItem,!1))},t.prototype.teardown=function(){u.removeEvent(this.input,u.eventTypes.keydown,this.handleInputKeydownEvent,!0);u.removeEvent(this.input,u.eventTypes.keyup,this.handleInputKeyupEvent,!0);u.removeEvent(this.input,u.eventTypes.click,this.handleInputOrButtonClickEvent,!0);u.removeEvent(this.button,u.eventTypes.click,this.handleInputOrButtonClickEvent,!0);u.removeEvent(this.button,u.eventTypes.keydown,this.handleButtonKeydownEvent,!0);u.removeEvent(this.listItems,u.eventTypes.keydown,this.handleMenuKeydownEvent,!0);u.removeEvent(this.listItems,u.eventTypes.click,this.handleMenuClickEvent,!0);this.input=null;this.button=null;this.menu=null;this.listItems=null;this.activeItem=null},t.prototype.publish=function(n,t){n.onSelectionChanged(t)},t.prototype.onSelectionChanged=function(n,t){n===void 0&&(n=!0);t===void 0&&(t=!0);this.initiatePublish({id:!!this.activeItem&&!!this.activeItem.parentElement?this.activeItem.parentElement.id:"",value:this.input.value,internal:n,userInitiated:t})},t.prototype.getValue=function(){return{id:!!this.activeItem&&!!this.activeItem.parentElement?this.activeItem.parentElement.id:"",value:this.input.value,internal:!1,userInitiated:!1}},t.prototype.showMenu=function(n,t){var f,e,r,i;if((n===void 0&&(n=!1),t===void 0&&(t=!0),!this.isMenuVisible())&&(f=this.input.value,n||!o.isNullOrWhiteSpace(f))){if(this.setMenuAriaAttributes(!0),e=this.listItems.length,e>this.maxDisplayedItems){for(r=0,i=0;i<this.maxDisplayedItems;i++)r+=this.listItems[i].offsetHeight;this.menu.style.maxHeight=r+"px"}u.addEvent(document.body,u.eventTypes.click,this.handleOffMenuClick);this.matchItem(t)}},t.prototype.hideMenu=function(){this.isMenuVisible()&&(this.setMenuAriaAttributes(!1),u.removeEvent(document.body,u.eventTypes.click,this.handleOffMenuClick))},t.prototype.setMenuAriaAttributes=function(n){this.isCombobox?this.menu.setAttribute(t.ariaExpanded,n.toString()):this.menu.setAttribute(t.ariaHidden,(!n).toString())},t.prototype.isMenuVisible=function(){return this.isCombobox?this.menu.getAttribute(t.ariaExpanded)==="true":this.menu.getAttribute(t.ariaHidden)==="false"},t.prototype.setActiveItemAndHideMenu=function(n,t){t===void 0&&(t=!0);!n||(this.setActiveItem(n),this.input.value=this.activeValue=this.getActiveText(),this.hideMenu(),t&&this.input.focus(),this.onSelectionChanged())},t.prototype.setActiveItem=function(n,i){i===void 0&&(i=!0);this.activeItem&&u.removeClass(this.activeItem,t.activeClassName);this.activeItem=n;i&&u.addClass(this.activeItem,t.activeClassName)},t.prototype.getActiveText=function(){return this.activeItem?u.getText(this.activeItem):""},t.prototype.matchItem=function(n){var i,t,r,f,h,e,c,s;if(n===void 0&&(n=!1),i=this.input.value,r=0,!o.isNullOrWhiteSpace(i))for(i=o.trim(i).toLocaleLowerCase(),f=0,h=this.listItems;f<h.length;f++)if(e=h[f],c=u.getText(e).toLocaleLowerCase(),i===c){t=e;r=-1;break}else s=o.getMatchLength(c,i,!1),s>0&&(r===0||s>r)&&(t=e,r=s);t||(t=this.listItems[0]);this.setActiveItem(t,n||r===-1);u.scrollElementIntoView(t,this.menu);n&&t.focus()},t.prototype.handleInputKeydown=function(n){this.activeValue=this.input.value;switch(n){case 9:case 13:this.hideMenu();var i=this.getActiveText();this.activeValue!==i&&(u.hasClass(this.activeItem,t.activeClassName)&&(this.activeValue=this.input.value=i),this.onSelectionChanged());break;case 40:this.isMenuVisible()?this.activeItem&&(this.setActiveItem(this.activeItem),this.activeItem.focus()):this.showMenu(!0);break;case 27:this.hideMenu()}},t.prototype.handleInputKeyup=function(n){o.isNullOrWhiteSpace(this.input.value)&&n!==40?this.hideMenu():this.input.value!==this.activeValue&&(this.isMenuVisible()?this.matchItem():this.showMenu(!0,!1))},t.prototype.handleInputOrButtonClick=function(){this.isMenuVisible()?(this.hideMenu(),this.input.focus()):this.showMenu(!0,!1)},t.prototype.handleButtonKeydown=function(n){switch(n){case 40:case 32:case 13:this.showMenu(!0);break;case 38:case 27:this.hideMenu()}},t.prototype.handleMenuKeydown=function(n,t){switch(t){case 32:case 9:case 13:this.setActiveItemAndHideMenu(this.activeItem,t!==9);break;case 27:this.input.focus();this.hideMenu();this.matchItem();break;case 38:this.handleMenuArrowKey(!0,n);break;case 40:this.handleMenuArrowKey(!1,n)}},t.prototype.handleMenuArrowKey=function(n,t){var i=this.listItems.indexOf(t),r;i!==-1&&(i+=n?-1:1,i<0?i=this.listItems.length-1:i>=this.listItems.length&&(i=0),r=this.listItems[i],this.setActiveItem(r),r.focus())},t.prototype.handleMenuClick=function(n){this.setActiveItemAndHideMenu(n)},t.init=function(n){e.apiDeprecated("Combo.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-combo",t.ariaHidden="aria-hidden",t.ariaExpanded="aria-expanded",t.role="role",t.activeClassName="active",t.defaultMaxDisplayedItems=5,t}(i.Publisher);t.Combo=s}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var i=this;(n.call(this,t),this.needToPoll=!1,this.checkPollingCriteria=function(){return i.needToPoll=!1,i.checkForDeferredContent(),i.setRowHeightsAcrossAllColumns(),!i.needToPoll},this.getMaxRowsFromAllColumns=function(){for(var r=0,e,t,n=0,f=i.columns;n<f.length;n++)e=f[n],t=u.selectElements(".f-row",e),t.length>r&&(r=t.length),i.columnRows.push(t);return r},this.recalculate=function(){i.needToPoll=!1;i.checkForDeferredContent();i.setRowHeightsAcrossAllColumns();i.needToPoll&&e.poll(i.checkPollingCriteria,250,-1)},this.setRowHeightsAcrossAllColumns=function(){var f,n,t,r;for(i.columns=u.selectElements(".f-column",i.element),i.columnRows=[],f=i.getMaxRowsFromAllColumns(),n=0;n<f;n++){t=i.getMaxRowHeight(n);t!==0||i.needToPoll||(i.needToPoll=!0);for(r in i.columns)i.columnRows[r][n]!==undefined&&(i.columnRows[r][n].style.height=t.toString()+"px")}},this.getMaxRowHeight=function(n){var r=0,t,u;for(t in i.columns)i.columnRows[t][n]!==undefined&&(i.columnRows[t][n].style.height="auto",u=e.getDimensions(i.columnRows[t][n]).height,u>r&&(r=u));return r},this.checkForDeferredContent=function(){for(var r=!1,e=u.selectElements("img",i.element),f,n=0,t=e;n<t.length;n++)if(f=t[n],f.height<2){r=!0;break}i.needToPoll=r},t)&&this.update()}return f(t,n),t.prototype.update=function(){this.recalculate();this.resizeDebouncedEventHandler=u.addDebouncedEvent(window,u.eventTypes.resize,this.recalculate)},t.prototype.teardown=function(){u.removeEvent(window,u.eventTypes.resize,this.resizeDebouncedEventHandler)},t.init=function(n){e.apiDeprecated("CompareChart.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-compare-chart, .m-compare-chart",t}(i.ObservableComponent);t.CompareChart=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(i){var r=this;n.call(this,i);this.clickHandler=function(){r.toggleContent()};this.onResized=function(){if(r.noToggle()){u.css(r.trigger,"display","none");return}u.css(r.trigger,"display",r.triggerDisplayStyle);r.toggleContent(r.target.getAttribute(t.dataExpanded)==="true")};this.update()}return f(t,n),t.prototype.update=function(){if(this.element&&(this.target=u.selectFirstElement(t.targetSelector,this.element),this.target||(this.target=u.selectFirstElement("p",this.element)),this.trigger=u.selectFirstElement("button",this.element),this.target&&this.trigger)){this.lineHeight=this.calculateLineHeight();var n=parseInt(this.trigger.getAttribute(t.dataShowAttribute),10);this.show=isNaN(n)||n<0?t.defaultShow:n;t.moreString=this.trigger.getAttribute(t.dataMoreAttributeValue);t.lessString=this.trigger.getAttribute(t.dataLessAttributeValue);this.triggerDisplayStyle=u.css(this.trigger,"display");this.onResized();u.addEvent(this.trigger,u.eventTypes.click,this.clickHandler);this.resizeThrottledEventHandler=u.addThrottledEvent(window,u.eventTypes.resize,this.onResized)}},t.prototype.teardown=function(){u.removeEvent(this.trigger,u.eventTypes.click,this.clickHandler);u.removeEvent(window,u.eventTypes.resize,this.resizeThrottledEventHandler);this.target=null;this.trigger=null;this.show=null;this.lineHeight=null},t.prototype.toggleContent=function(n){n===void 0&&(n=!(this.target.getAttribute(t.dataExpanded)==="true"));this.target.setAttribute(t.dataExpanded,n.toString());this.trigger.innerText=n?t.lessString:t.moreString;n?u.css(this.target,"max-height",""):u.css(this.target,"max-height",this.lineHeight*this.show+"px")},t.prototype.noToggle=function(){u.css(this.target,"max-height","");var n=u.getClientRect(this.target),t=(parseInt(u.css(this.target,"padding-top"),10)||0)+(parseInt(u.css(this.target,"padding-bottom"),10)||0);return n.height-t<=this.lineHeight*this.show},t.prototype.calculateLineHeight=function(){var n=this.target.cloneNode(),t,i;return n.innerHTML="<br>",this.target.appendChild(n),t=n.offsetHeight,n.innerHTML="<br><br>",i=n.offsetHeight,this.target.removeChild(n),this.ignoreNextDOMChange=!0,i-t},t.init=function(n){e.apiDeprecated("ContentToggle.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-content-toggle",t.dataExpanded="data-f-expanded",t.targetSelector="[data-f-expanded]",t.dataMoreAttributeValue="data-f-more",t.dataLessAttributeValue="data-f-less",t.dataShowAttribute="data-f-show",t.defaultShow=3,t}(i.ObservableComponent);t.ContentToggle=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(4),i(5),i(10),i(6),i(9)],r=function(n,t,i,r,u,e,o){"use strict";var s=function(n){function t(f){var e=this;n.call(this,f);this.days=[0,31,28,31,30,31,30,31,31,30,31,30,31];this.ariaSelected="aria-selected";this.ariaLabel="aria-label";this.ariaHidden="aria-hidden";this.dateTimePickerDataAttribute="data-date-time-picker";this.amPmSelection=["AM","PM"];this.numberOfElementsThatAppearInColumn=5;this.pickerIsOpen=!1;this.handleKeyDown=function(n){e.ignoreNextDOMChange=!0;n=i.getEvent(n);var s=u.getKeyCode(n),h=i.getEventTargetOrSrcElement(n),r,o,f;switch(s){case 13:e.pickerIsOpen?(e.updatePicker(),e.closePicker()):e.openPicker(h,!1);break;case 27:e.closePicker();break;case 37:if(!e.activeColumn)break;if(o=e.activeColumn.previousElementSibling,!o)break;f=i.selectFirstElement("["+e.ariaSelected+'="true"]',o);f&&(e.activeColumn=o,f.focus());return;case 39:if(!e.activeColumn)break;if(r=e.activeColumn.nextElementSibling,!r)break;e.activeColumn.nextElementSibling!==null&&(f=i.selectFirstElement("["+e.ariaSelected+'="true"]',r),f&&(e.activeColumn=r,f.focus()));return;case 38:i.preventDefault(n);e.scrollColumn(e.activeColumn,t.scrollUpValue);return;case 40:i.preventDefault(n);e.scrollColumn(e.activeColumn,t.scrollDownValue);return;case 9:if(!e.pickerIsOpen)break;if(r=n.shiftKey?e.activeColumn.previousElementSibling:e.activeColumn.nextElementSibling,!r)break;e.activeColumn=r}};this.handleMouseClick=function(n){var t,r,u,f,o;if(e.ignoreNextDOMChange=!0,t=i.getEventTargetOrSrcElement(n),e.lastClickedElement=t,!e.pickerIsOpen){e.columnTriggerButtons.indexOf(t)===-1&&(t=e.columnTriggerButtons[0]);e.openPicker(t,!0);return}if(t.nodeName==="LI"){if(!t.parentElement||!t.parentElement.parentElement)return;r=t.parentElement.parentElement.getAttribute(e.dateTimePickerDataAttribute);u=t.getAttribute(e.ariaLabel);r==="ampm"?e.selectAmPm(u):(f=t.parentElement,i.removeInnerHtml(f),o=e.getDateTimePickerElement(r,"ul"),e.buildSelector(o,r,u),e.recalculateDaysInMonth(f))}};this.handleOutsideClick=function(n){var t=i.getEventTargetOrSrcElement(n);i.isDescendent(e.element,t)||e.lastClickedElement===t||(e.updatePicker(),e.closePicker())};this.handleApplyClicked=function(n){n=i.getEvent(n);i.stopPropagation(n);e.updatePicker();e.closePicker()};this.handleCancelClicked=function(n){n=i.getEvent(n);i.stopPropagation(n);e.closePicker()};this.handleScrollButtons=function(n){e.ignoreNextDOMChange=!0;n=i.getEvent(n);i.stopPropagation(n);var t=i.getEventTargetOrSrcElement(n),u=t.parentElement,r=t.getAttribute(e.dateTimePickerDataAttribute);if(n.type==="mouseenter"){e.scrollDelay=setTimeout(function(){e.scrollInterval=null;clearTimeout(e.scrollDelay);e.scrollDelay=null;e.scrollInterval=setInterval(function(){e.scrollColumn(u,r)},300)},150);return}if(n.type==="mouseleave"){clearTimeout(e.scrollDelay);clearInterval(e.scrollInterval);e.scrollInterval=null;e.recalculateDaysInMonth(t);return}r!==null&&e.scrollColumn(u,r)};this.handleMouseScroll=function(n){n=i.getEvent(n);i.preventDefault(n);var r=n.deltaY||n.wheelDelta||-n.detail,u=r<0?t.scrollDownValue:t.scrollUpValue;e.scrollColumn(n.currentTarget,u)};this.scrollColumn=function(n,r){if(n!==null){e.ignoreNextDOMChange=!0;var o=i.selectFirstElement("ul li",n),f=i.selectFirstElement("ul",n),u,s=n.getAttribute(e.dateTimePickerDataAttribute);if(s==="ampm"){r===t.scrollUpValue?e.selectAmPm("AM"):r===t.scrollDownValue&&e.selectAmPm("PM");return}r===t.scrollUpValue?(u=e.newContent(n,"up"),e.prependChildren(o,u[2]),e.isLastInList(f,u[0],"up",u[1]),e.removeChildren(n,"bottom")):r===t.scrollDownValue&&(e.removeChildren(n,"top"),u=e.newContent(n,"down"),e.appendChildren(f,u[2]),e.isLastInList(f,u[0],"down",u[1]))}};this.buildSelector=function(n,t,r){var u=r===null?e.getDateTimePickerElement(t).getAttribute(e.activeValueStorage):r,f,c;switch(t){case"month":f=e.months.indexOf(u);e.buildNodes(f,n,12,!0,!1);e.setFocus(n);break;case"day":var o=i.selectFirstElement("["+e.ariaSelected+'="true"]',e.element).getAttribute(e.ariaLabel),s=e.months.indexOf(o),h=e.monthInfo[s].days;e.buildNodes(parseInt(u,0),n,h,!1,!1);e.setFocus(n);break;case"year":e.buildNodes(parseInt(u,0),n,null,!1,!0);e.setFocus(n);break;case"hour":e.buildNodes(parseInt(u,0),n,12,!1,!1);e.setFocus(n);break;case"minute":case"minute24":e.buildNodes(parseInt(u,0),n,60,!1,!0);e.setFocus(n);break;case"ampm":c=e.amPmSelection.indexOf(u);e.buildAmPm(n);break;case"hour24":e.buildNodes(parseInt(u,0),n,24,!1,!0);e.setFocus(n)}};this.buildNodes=function(n,t,r,u,f){for(var l=f?r-1:r,s,h,c,o=n-e.numberOfElementsThatAppearInColumn;o<n+e.numberOfElementsThatAppearInColumn+1;o++)s=void 0,o===0&&f||o===r&&f?s=0:(h=o<1?1:o>r?-1:0,s=o+r*h),c=u?e.monthInfo[s].name:s.toString(),e.appendChildren(t,c),o===n?(t.lastElementChild.setAttribute(e.ariaSelected,"true"),t.lastElementChild.setAttribute("tabindex","0")):t.lastElementChild.setAttribute(e.ariaSelected,"false"),t.lastElementChild.setAttribute("role","option"),l===s&&i.addClass(t.lastElementChild,"f-js-last")};this.appendChildren=function(n,t){e.insertChildren(n,t,!0)};this.prependChildren=function(n,t){e.insertChildren(n,t,!1)};this.insertChildren=function(n,t,i){var r=document.createElement("li");r.appendChild(document.createTextNode(t));r.setAttribute(e.ariaLabel,t);i?n.appendChild(r):n.parentElement.insertBefore(r,n)};this.buildAmPm=function(n){e.appendChildren(n,"AM");n.lastElementChild.setAttribute(e.ariaSelected,"true");n.lastElementChild.setAttribute("tabindex","0");e.appendChildren(n,"PM")};this.selectAmPm=function(n){var r,u,t;n||(n=e.getDateTimePickerElement("ampm").getAttribute(e.activeValueStorage).toUpperCase());r=i.selectFirstElement("["+e.ariaSelected+'="true"]',e.amPmColumn);r&&(r.removeAttribute("tabindex"),r.removeAttribute(e.ariaSelected));u=n==="AM"?i.removeClass:i.addClass;u.call(e,e.amPmColumn,"f-js-pm");t=i.selectFirstElement('[aria-label="'+n+'"]',e.amPmColumn);t&&(t.setAttribute(e.ariaSelected,"true"),t.setAttribute("tabindex","0"),t.focus())};this.newContent=function(n,t){var o=i.selectFirstElement("["+e.ariaSelected+'="true"]',n).getAttribute(e.ariaLabel),v=n.getAttribute(e.dateTimePickerDataAttribute),r=[],u=null,f=null,y,c,l,p,h,s,a;switch(v){case"month":return e.removeAriaSelected(e.monthColumn),y=e.months.indexOf(o),u=e.nextCurrent(y,t,e.totalMonths,!1),e.setAriaSelected(e.monthColumn,e.months[u]),f=e.stagedElement(e.monthColumn,u,t,e.totalMonths,!1),r[0]=f[1],r[1]=e.totalMonths,r[2]=e.months[f[0]],r;case"day":return(c=i.selectFirstElement("["+e.ariaSelected+'="true"]',e.monthColumn),!c)?void 0:(l=c.getAttribute(e.ariaLabel),!l)?void 0:(p=e.months.indexOf(l),h=e.monthInfo[p].days,e.removeAriaSelected(e.dayColumn),u=e.nextCurrent(parseInt(o,0),t,h,!1),e.setAriaSelected(e.dayColumn,u.toString()),f=e.stagedElement(e.dayColumn,u,t,h,!1),r[0]=f[1],r[1]=h,r[2]=f[0],r);case"year":return e.removeAriaSelected(e.yearColumn),u=e.nextCurrent(parseInt(o,0),t,9999,!0),e.setAriaSelected(e.yearColumn,u.toString()),f=e.stagedElement(e.yearColumn,u,t,9999,!0),r[0]=f[1],r[1]=9999,r[2]=f[0],r;case"hour":case"hour24":return s=v.indexOf("24")>-1,a=s?24:12,e.removeAriaSelected(e.hourColumn),u=e.nextCurrent(parseInt(o,0),t,a,s),e.setAriaSelected(e.hourColumn,u.toString()),f=e.stagedElement(e.hourColumn,u,t,a,s),r[0]=f[1],r[1]=s?23:12,r[2]=f[0],r;case"minute":case"minute24":return e.removeAriaSelected(e.minuteColumn),u=e.nextCurrent(parseInt(o,0),t,60,!0),e.setAriaSelected(e.minuteColumn,u.toString()),f=e.stagedElement(e.minuteColumn,u,t,60,!0),r[0]=f[1],r[1]=59,r[2]=f[0],r}};this.removeAriaSelected=function(n){var t=i.selectFirstElement("["+e.ariaSelected+'="true"]',n);t&&(t.removeAttribute("tabindex"),t.removeAttribute(e.ariaSelected))};this.setAriaSelected=function(n,t){var r=i.selectFirstElement('[aria-label="'+t+'"]',n);r&&(r.setAttribute(e.ariaSelected,"true"),r.setAttribute("tabindex","0"),r.focus())};this.setFocus=function(n){if(!!n&&n.style.display!==""){var t=i.selectFirstElement("["+e.ariaSelected+'="true"]',n);t&&t.focus()}};this.nextCurrent=function(n,t,i,r){switch(t){case"up":return r&&n-1==0?0:n-1<=0?r?i-1:i:n-1;case"down":return r&&n+1===i?0:n+1>i?1:n+1}return null};this.stagedElement=function(n,t,i,r,u){var f=[],o;return i==="down"?t=t+e.numberOfElementsThatAppearInColumn:i==="up"&&(t=t-e.numberOfElementsThatAppearInColumn),u&&(t===0||t===r)?(f[0]=0,f[1]=r):(o=t<1?1:t>r?-1:0,f[0]=f[1]=t+r*o),f};this.isLastInList=function(n,t,r,u){t===u&&(r==="down"?i.addClass(n.lastElementChild,"f-js-last"):r==="up"&&i.addClass(n.firstElementChild,"f-js-last"))};this.removeChildren=function(n,t){var r=i.selectElements("li",n),u;r&&r.length!==0&&(t==="top"?r[0].parentNode.removeChild(r[0]):t==="bottom"&&(u=r.length-1,r[0].parentNode.removeChild(r[u])))};this.updatePicker=function(){switch(e.pickerType){case 0:e.updateButton(e.monthColumn,"month");e.updateButton(e.dayColumn,"day");e.updateButton(e.yearColumn,"year");break;case 1:e.updateButton(e.hourColumn,"hour");e.updateButton(e.minuteColumn,"minute");e.updateButton(e.amPmColumn,"ampm");break;case 2:e.updateButton(e.hourColumn,"hour24");e.updateButton(e.minuteColumn,"minute24")}var n=e.currentDateTime;e.updateCurrentDateTime();e.areDatesCloseEnough(e.currentDateTime,n)||e.initiatePublish({oldDateTime:n,newDateTime:e.currentDateTime})};this.updateButton=function(n,u){var f,s,o,h;n&&u&&(f=e.getDateTimePickerElement(u),f)&&(s=i.selectFirstElement("["+e.ariaSelected+'="true"]',n),s)&&(o=s.getAttribute(e.ariaLabel),o)&&(i.setText(f,o),f.setAttribute(e.activeValueStorage,o),h=f.getAttribute(t.buttonFormatterAttribute),e.activeValueStorage!==t.activeValueStorageAttribute||!h||f.setAttribute(e.ariaLabel,r.format(h,o)))};this.recalculateDaysInMonth=function(n){var c=n.parentElement.getAttribute(e.dateTimePickerDataAttribute),u,f,r,o,s,h,t,l;c&&c==="month"&&(u=i.selectFirstElement("["+e.ariaSelected+'="true"]',e.dayColumn),u)&&(f=u.getAttribute(e.ariaLabel),f)&&(r=parseInt(f,0),r)&&(o=i.selectFirstElement("["+e.ariaSelected+'="true"]',n.parentElement),o)&&(s=o.getAttribute(e.ariaLabel),s)&&(h=e.months.indexOf(s),e.monthInfo[h])&&(t=e.monthInfo[h].days,t)&&(i.removeInnerHtml(e.dayColumn),l=r===31&&t<31?t:r,e.buildNodes(l,e.dayColumn,t,null,!1))};this.update()}return f(t,n),t.prototype.update=function(){var s,h,c,n,d,u,v,y,p,w,f,g,e,o,b,nt,r;if(this.element){s=this.element.getAttribute(this.dateTimePickerDataAttribute);this.picker=this.getDateTimePickerElement("date-selector")||this.getDateTimePickerElement("time-selector12")||this.getDateTimePickerElement("time-selector24");this.activeValueStorage=i.selectElements("button["+t.activeValueStorageAttribute+"]",this.element).length?t.activeValueStorageAttribute:this.ariaLabel;switch(s){case"date":if(this.pickerType=0,this.monthColumn=this.getDateTimePickerElement("month","ul"),this.dayColumn=this.getDateTimePickerElement("day","ul"),this.yearColumn=this.getDateTimePickerElement("year","ul"),h=this.monthColumn.getAttribute("data-months"),!h)return;if(c=this.days.length,this.months=h.split(","),this.months.splice(0,0,""),this.months.length!==c)return;for(this.totalMonths=this.months.length-1,this.monthInfo=new Array(c),n=0;n<=this.totalMonths;n++)this.monthInfo[n]={name:this.months[n],days:this.days[n]};i.removeInnerHtml(this.monthColumn);i.removeInnerHtml(this.dayColumn);i.removeInnerHtml(this.yearColumn);this.buildSelector(this.monthColumn,"month",null);this.buildSelector(this.dayColumn,"day",null);this.buildSelector(this.yearColumn,"year",null);break;case"time":case"time24":this.pickerType=s.indexOf("24")<0?1:2;var k="time-selector",l="hour",a="minute";this.pickerType===2?(k+="24",l+="24",a+="24"):(k+="12",this.amPmColumn=this.getDateTimePickerElement("ampm","ul"));this.hourColumn=this.getDateTimePickerElement(l,"ul");this.minuteColumn=this.getDateTimePickerElement(a,"ul");i.removeInnerHtml(this.hourColumn);i.removeInnerHtml(this.minuteColumn);this.buildSelector(this.hourColumn,l,null);this.buildSelector(this.minuteColumn,a,null);this.pickerType===1&&this.buildAmPm(this.amPmColumn)}if(this.activeValueStorage===t.activeValueStorageAttribute)for(d=i.selectElements("li",this.picker),u=0,v=d;u<v.length;u++)y=v[u],p=y.getAttribute(this.ariaLabel),!p||y.setAttribute(t.activeValueStorageAttribute,p);for(this.cancelButton=this.getDateTimePickerElement("cancel"),this.applyButton=this.getDateTimePickerElement("apply"),this.scrollButtons=[],this.columnTriggerButtons=[],w=this.element.children,f=0,g=w.length-1;f<g;f++)e=w.item(f),e.nodeType===1&&e.nodeName==="BUTTON"&&this.columnTriggerButtons.push(e);for(this.columns=i.selectElements("div["+this.dateTimePickerDataAttribute+"]",this.picker),o=0,b=this.columns;o<b.length;o++)nt=b[o],r=i.selectElements("button",nt),r.length===2&&(r[0].setAttribute(this.dateTimePickerDataAttribute,t.scrollUpValue),r[1].setAttribute(this.dateTimePickerDataAttribute,t.scrollDownValue),this.scrollButtons.push(r[0],r[1]));this.updateCurrentDateTime();i.addEvents(this.applyButton,"keydown click",this.handleApplyClicked);i.addEvents(this.cancelButton,"keydown click",this.handleCancelClicked);i.addEvents(this.scrollButtons,"mouseenter mouseleave",this.handleScrollButtons);i.addEvent(this.element,i.eventTypes.keydown,this.handleKeyDown);i.addEvent(this.element,i.eventTypes.click,this.handleMouseClick);this.ignoreNextDOMChange=!0}},t.prototype.teardown=function(){i.removeEvents(this.applyButton,"keydown click",this.handleApplyClicked);i.removeEvents(this.cancelButton,"keydown click",this.handleCancelClicked);i.removeEvents(this.scrollButtons,"mouseenter mouseleave",this.handleScrollButtons);i.removeEvent(this.element,i.eventTypes.keydown,this.handleKeyDown);i.removeEvent(this.element,i.eventTypes.click,this.handleMouseClick);i.removeEvents(this.columns,"mousewheel DOMMouseScroll",this.handleMouseScroll)},t.prototype.openPicker=function(n,r){var f,u;r===void 0&&(r=!1);this.pickerIsOpen=!0;this.ignoreNextDOMChange=!0;f=i.selectFirstElement("["+this.dateTimePickerDataAttribute+'="'+n.getAttribute(this.dateTimePickerDataAttribute)+'"]',this.picker);this.activeColumn=f;this.pickerType===0?(i.removeInnerHtml(this.monthColumn),i.removeInnerHtml(this.dayColumn),i.removeInnerHtml(this.yearColumn),this.buildSelector(this.monthColumn,"month",null),this.buildSelector(this.dayColumn,"day",null),this.buildSelector(this.yearColumn,"year",null)):this.pickerType===1?(i.removeInnerHtml(this.hourColumn),i.removeInnerHtml(this.minuteColumn),this.buildSelector(this.hourColumn,"hour",null),this.buildSelector(this.minuteColumn,"minute",null),this.selectAmPm(null)):this.pickerType===2&&(this.buildSelector(this.hourColumn,"hour24",null),this.buildSelector(this.minuteColumn,"minute24",null));this.picker.setAttribute(this.ariaHidden,"false");u=i.selectFirstElement("["+this.ariaSelected+'="true"]',f);!u||(u.focus(),r&&i.addClass(u,t.hiddenFocusClass));i.addEvent(window,i.eventTypes.mousedown,this.handleOutsideClick);i.addEvents(this.columns,"mousewheel DOMMouseScroll",this.handleMouseScroll)},t.prototype.closePicker=function(){this.pickerIsOpen=!1;this.picker.setAttribute(this.ariaHidden,"true");i.removeEvent(window,i.eventTypes.scroll,this.handleMouseScroll);i.removeEvent(window,i.eventTypes.mousedown,this.handleOutsideClick);i.removeEvents(this.columns,"mousewheel DOMMouseScroll",this.handleMouseScroll);var n=this.columns.indexOf(this.activeColumn);n>=0&&n<this.columnTriggerButtons.length&&this.columnTriggerButtons[n].focus();return},t.prototype.getDateTimePickerElement=function(n,t){var u=r.isNullOrWhiteSpace(t)?"":" "+t;return r.isNullOrWhiteSpace(n)?null:i.selectFirstElement('[data-date-time-picker="'+n+'"] '+u,this.element)},t.prototype.areDatesCloseEnough=function(n,i){return Math.abs(n.getTime()-i.getTime())<=t.changeThreshold},t.prototype.updateCurrentDateTime=function(){var t="["+this.ariaSelected+'="true"]';switch(this.pickerType){case 0:var n=i.selectFirstElement('[data-date-time-picker="date-selector"]',this.element),u=n?i.selectFirstElement('[data-date-time-picker="month"]',n):null,f=n?i.selectFirstElement('[data-date-time-picker="day"]',n):null,e=n?i.selectFirstElement('[data-date-time-picker="year"]',n):null,y=u?i.selectFirstElement(t,u):null,p=f?i.selectFirstElement(t,f):null,w=e?i.selectFirstElement(t,e):null,o=parseInt(i.getText(w),10)||-1,s=this.months.indexOf(i.getText(y))||-1,h=parseInt(i.getText(p),10)||-1;o!==-1&&s>0&&h!==-1&&(this.currentDateTime=new Date(o,s-1,h));break;case 1:case 2:var n=i.selectFirstElement('[data-date-time-picker^="time-selector"]',this.element),c=n?i.selectFirstElement('[data-date-time-picker^="hour"]',n):null,l=n?i.selectFirstElement('[data-date-time-picker^="minute"]',n):null,a=n?i.selectFirstElement('[data-date-time-picker="ampm"]',n):null,b=c?i.selectFirstElement(t,c):null,k=l?i.selectFirstElement(t,l):null,d=a?i.selectFirstElement(t,a):null,r=parseInt(i.getText(b),10)||-1,v=parseInt(i.getText(k),10)||-1;r!==-1&&v!==-1&&(this.currentDateTime=new Date,this.currentDateTime.setSeconds(0),this.currentDateTime.setMinutes(v),this.currentDateTime.setHours(i.getText(d)===this.amPmSelection[1]?r+12:r))}},t.prototype.publish=function(n,t){if(n&&n.onDateTimeChanged)n.onDateTimeChanged(t)},t.init=function(n){u.apiDeprecated("DateTimePicker.init() is deprecated, please use ComponentFactory.create() instead.");o.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-date-time-picker",t.changeThreshold=1e3,t.scrollUpValue="scrollUp",t.scrollDownValue="scrollDown",t.buttonFormatterAttribute="data-formatter-aria-label",t.activeValueStorageAttribute="data-active-value",t.hiddenFocusClass="x-hidden-focus",t}(e.Publisher);t.DateTimePicker=s}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(4),i(10),i(29)],r=function(n,t,i,r,u,e,o){"use strict";var s=function(n){function t(t){n.call(this,t);this.update()}return f(t,n),t.prototype.update=function(){var f=this,n,i,r;if(this.element&&(this.buttons=u.selectElements(t.buttonsSelector,this.element),this.buttonContainers=u.selectElements(t.buttonsContainerSelector,this.element),this.buttons&&this.buttonContainers&&!(this.buttons.length<1)&&!(this.buttonContainers.length<1))){for(this.buttonsLength=this.buttons.length,n=0;n<this.buttonsLength;n++)i=u.getClientRect(this.buttonContainers[n]).width,(!this.resizedContainerWidth||i>this.resizedContainerWidth)&&(this.resizedContainerWidth=i),r=u.getClientRect(this.buttons[n]).width,(!this.resizedButtonWidth||r>this.resizedButtonWidth)&&(this.resizedButtonWidth=r);this.updateWidths();o.BreakpointTracker.getBreakpointTracker().subscribe({onBreakpointChanged:function(n){f.onBreakpointChanged(n)}})}},t.prototype.updateWidths=function(){for(var n=0;n<this.buttonsLength;n++)this.buttons[n].style.width=this.resizedButtonWidth+"px",this.buttonContainers[n].style.width=this.resizedContainerWidth+"px"},t.prototype.onBreakpointChanged=function(n){if(n.breakpoint>1)this.updateWidths();else for(var t=0;t<this.buttonsLength;t++)u.css(this.buttons[t],"width",""),u.css(this.buttonContainers[t],"width","");this.ignoreNextDOMChange=!0},t.prototype.teardown=function(){this.resizedButtonWidth=null;this.resizedContainerWidth=null},t.init=function(n){e.apiDeprecated("DeviceActions.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".m-device-actions",t.buttonsSelector=".c-button",t.buttonsContainerSelector=".f-button",t}(i.ObservableComponent);t.DeviceActions=s}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(6),i(4),i(10)],r=function(n,t,i,r,u){"use strict";var e=function(n){function t(){var i=this;n.call(this,null);this.onWindowResized=function(){var r=u.getWindowWidth(),n=t.identifyBreakpoint(r);i.breakpoint!==n&&(i.breakpoint=n,i.initiatePublish({breakpoint:n,width:r}))};this.windowWidth=u.getWindowWidth();this.breakpoint=t.identifyBreakpoint(this.windowWidth);r.addDebouncedEvent(window,r.eventTypes.resize,this.onWindowResized)}return f(t,n),t.getBreakpointTracker=function(){return document.body.breakpointTracker||(document.body.breakpointTracker=new t),document.body.breakpointTracker},t.prototype.getBreakpoint=function(){return this.breakpoint},t.identifyBreakpoint=function(n){u.isNumber(n)||(n=u.getWindowWidth());for(var i=t.breakpoints.length-1;i>=0;i--)if(n>=t.breakpoints[i])return i},t.prototype.publish=function(n,t){if(n.onBreakpointChanged)n.onBreakpointChanged(t)},t.breakpoints=[0,540,768,1084,1400,1779],t}(i.Publisher);t.BreakpointTracker=e}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(6),i(9),i(29),i(4),i(10)],r=function(n,t,i,r,u,e,o){"use strict";var s=function(n){function t(i){var r=this;n.call(this,i);this.shouldCloseOnEscape=!1;this.isFlowDialog=!1;this.isLightboxDialog=!1;this.breakpointTracker=u.BreakpointTracker.getBreakpointTracker();this.handleTriggerClick=function(n){r.activeButton=e.getEventTargetOrSrcElement(n);r.show()};this.show=function(){var o=e.selectElements(t.pageContentContainerSelector),n,u,i,f;for(r.pageContentContainers=[],r.element.setAttribute(t.ariaHidden,"false"),r.dialogWrapper.focus(),r.onResized(),r.bodyOverflow=e.css(document.body,"overflow"),e.css(document.body,"overflow","hidden"),r.container.setAttribute(t.ariaHidden,"true"),r.checkOverflow(),n=0,u=o;n<u.length;n++)i=u[n],f=!!(i.getAttribute(t.ariaHidden)==="true"),r.pageContentContainers.push({element:i,hidden:f}),f||i.setAttribute(t.ariaHidden,"true");r.dialogWrapper.scrollTop=0;r.initiatePublish({notification:1})};this.hide=function(){var n,i,u;for(r.element.setAttribute(t.ariaHidden,"true"),e.css(r.dialogWrapper,"height","auto"),e.css(document.body,"overflow",r.bodyOverflow),r.container.setAttribute(t.ariaHidden,"false"),n=0,i=r.pageContentContainers;n<i.length;n++)u=i[n],u.hidden||u.element.removeAttribute(t.ariaHidden);r.activeButton&&r.activeButton.focus();r.activeButton=null;r.pageContentContainers=[];r.initiatePublish({notification:2})};this.triggerClickPublish=function(n){r.initiatePublish({notification:0,button:e.getEventTargetOrSrcElement(n)})};this.onKeydown=function(n){var i=o.getKeyCode(n),t;switch(i){case 13:case 32:r.closeButtons.indexOf(e.getEventTargetOrSrcElement(n))!==-1?(e.preventDefault(n),r.hide()):r.customButtons.indexOf(e.getEventTargetOrSrcElement(n))!==-1&&r.initiatePublish({notification:0,button:e.getEventTargetOrSrcElement(n)});break;case 27:e.preventDefault(n);r.shouldCloseOnEscape&&r.hide();break;case 9:t=e.getEventTargetOrSrcElement(n);t!==r.lastInput||n.shiftKey?t===r.firstInput&&n.shiftKey?(e.preventDefault(n),r.lastInput.focus()):r.dialogInputs.length===1&&(e.preventDefault(n),r.dialogInputs[0].focus()):(e.preventDefault(n),r.firstInput.focus())}};this.onResized=function(){r.element.getAttribute(t.ariaHidden)==="false"&&(r.breakpointTracker.getBreakpoint()<1?r.handleMobile():r.checkOverflow())};this.checkOverflow=function(){var n=e.getClientRect(r.dialogWrapper),t=e.getClientRect(r.dialogInnerContent);n.height<r.dialogWrapper.scrollHeight?r.isScroll||e.css(r.dialogWrapper,"overflow-y","auto"):e.css(r.dialogWrapper,"overflow-y","hidden")};this.handleMobile=function(){if(r.element.getAttribute(t.ariaHidden)==="false")if(r.isFlowDialog&&!r.isScroll){var n=e.getClientRect(r.dialogWrapper),i=e.getClientRect(r.dialogInnerContent);n.height<r.dialogWrapper.scrollHeight?(e.css(r.dialogWrapper,"max-height",t.heightCalculationString),e.css(r.dialogWrapper,"height","100%")):e.css(r.dialogWrapper,"max-height","100%")}else r.isScroll&&(e.css(r.dialogWrapper,"height",t.heightCalculationString),e.css(r.dialogInnerContent,"height","inherit"))};this.appendDialog=function(){r.ignoreNextDOMChange=!0;document.body.appendChild(r.element)};this.update()}return f(t,n),t.prototype.update=function(){var n,i;if(this.element&&this.element.id&&(this.dialogId=this.element.id,this.dialogWrapper=e.selectFirstElement("div[role=dialog]",this.element),this.dialogInnerContent=e.selectFirstElement('[role="document"]',this.element),this.openButtons=e.selectElements("[data-js-dialog-show="+this.dialogId+"]"),this.closeButtons=e.selectElements(t.closeSelector,this.element),this.dialogInputs=e.selectElements(t.dialogInputSelectors,this.element),this.customButtons=e.selectElements(t.customButtonSelector,this.element),this.appendDialog(),this.container=e.selectFirstElement('[data-grid*="container"]'),this.overlay=e.selectFirstElement('[role="presentation"]',this.element),this.isScroll=e.selectFirstElement(t.scrollSelector,this.element),e.hasClass(this.element,"f-flow")&&(this.isFlowDialog=!0),e.hasClass(this.element,"f-lightbox")&&(this.isLightboxDialog=!0),this.dialogWrapper&&this.openButtons&&this.openButtons.length&&this.closeButtons&&this.closeButtons.length&&this.dialogInputs&&this.dialogInputs.length&&this.container&&this.overlay)){if(this.isLightboxDialog)this.closeButtons.indexOf(this.overlay)===-1&&this.closeButtons.push(this.overlay),this.shouldCloseOnEscape=!0;else if(this.isFlowDialog)for(n=0;n<this.closeButtons.length;n++)if(i=this.closeButtons[n],e.hasClass(i,"c-glyph")&&e.hasClass(i,"glyph-cancel")){this.closeButtons.push(this.overlay);this.shouldCloseOnEscape=!0;break}this.firstInput=this.dialogInputs[0];this.lastInput=this.dialogInputs[this.dialogInputs.length-1];e.addEvent(this.openButtons,e.eventTypes.click,this.handleTriggerClick);e.addEvent(this.closeButtons,e.eventTypes.click,this.hide);e.addEvent(this.customButtons,e.eventTypes.click,this.triggerClickPublish);e.addEvent(this.element,e.eventTypes.keydown,this.onKeydown);this.resizeThrottledEventHandler=e.addThrottledEvent(window,e.eventTypes.resize,this.onResized)}},t.prototype.teardown=function(){e.removeEvent(this.openButtons,e.eventTypes.click,this.handleTriggerClick);e.removeEvent(this.closeButtons,e.eventTypes.click,this.hide);e.removeEvent(this.customButtons,e.eventTypes.click,this.triggerClickPublish);e.removeEvent(this.element,e.eventTypes.keydown,this.onKeydown);e.removeEvent(window,e.eventTypes.resize,this.resizeThrottledEventHandler)},t.prototype.publish=function(n,t){switch(t.notification){case 0:if(n&&n.onButtonClicked)n.onButtonClicked(t);break;case 1:n&&n.onShown&&n.onShown();break;case 2:n&&n.onHidden&&n.onHidden()}},t.init=function(n){o.apiDeprecated("Dialog.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-dialog",t.dialogInputSelectors="select, input, textarea, button, a, .c-glyph[data-js-dialog-hide]",t.closeSelector="[data-js-dialog-hide]",t.customButtonSelector='button[type="button"]',t.ariaHidden="aria-hidden",t.scrollSelector=".f-dialog-scroll",t.heightCalculationString="calc(100% - 24px)",t.pageContentContainerSelector='[data-js-controlledby="dialog"]',t}(i.Publisher);t.Dialog=s}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(29),i(4),i(10)],r=function(n,t,i,r,u,e,o){"use strict";var s=function(n){function t(i){var r=this;n.call(this,i);this.getCollapseBreakpoint=function(){var n=r.element.getAttribute(t.dataCollapseAttribute).toLowerCase();switch(n){case"vp3":r.collapseBreakpoint=2;break;case"vp2":r.collapseBreakpoint=1;break;case"vp1":r.collapseBreakpoint=0}};this.toggleDrawer=function(){r.isExpanded()?r.collapseDrawer():r.expandDrawer()};this.update()}return f(t,n),t.prototype.update=function(){var r=this,i,n;if(this.element&&(this.drawerToggleButton=e.selectFirstElement("button[aria-controls]",this.element),this.drawerToggleButton)&&(i=this.drawerToggleButton.getAttribute("aria-controls"),this.drawerContainer=e.selectFirstElement("#"+i,this.element),this.drawerContainer)){e.hasClass(this.element,t.deprecatedResponsiveString)&&(this.element.setAttribute(t.dataCollapseAttribute,"vp1"),e.removeClass(this.element,t.deprecatedResponsiveString),e.hasClass(this.element,"f-remove-divider")||e.addClass(this.element,"f-divider"));e.hasClass(this.element,"m-amc-placement")&&this.element.setAttribute(t.dataCollapseAttribute,"vp1");this.isExpanded()||(this.drawerContainer.setAttribute("aria-hidden",t.trueString),this.changeDrawerState("collapsed"));n=u.BreakpointTracker.getBreakpointTracker();!this.element.getAttribute(t.dataCollapseAttribute)||(this.getCollapseBreakpoint(),n.subscribe({onBreakpointChanged:function(n){r.onBreakpointChanged(n)}}));e.addEvent(this.drawerToggleButton,e.eventTypes.click,this.toggleDrawer);this.onBreakpointChanged({breakpoint:n.getBreakpoint(),width:0})}},t.prototype.teardown=function(){e.removeEvent(this.drawerToggleButton,e.eventTypes.click,this.toggleDrawer)},t.prototype.onBreakpointChanged=function(n){this.element.getAttribute(t.dataCollapseAttribute)&&this.updateResponsiveDrawer(n.breakpoint)},t.prototype.changeDrawerState=function(n){var i=n==="open";this.drawerToggleButton.setAttribute(t.ariaExpanded,i?t.trueString:"false");this.drawerContainer.style.height=i?"auto":"0";this.drawerContainer.style.overflow=i?"visible":t.hiddenString;this.drawerContainer.setAttribute("aria-hidden",i?"false":t.trueString)},t.prototype.collapseDrawer=function(){this.drawerContainer.setAttribute(t.hiddenString,"");this.changeDrawerState("")},t.prototype.expandDrawer=function(){this.drawerContainer.removeAttribute(t.hiddenString);this.changeDrawerState("open")},t.prototype.isExpanded=function(){return this.drawerToggleButton.getAttribute(t.ariaExpanded)===t.trueString},t.prototype.updateResponsiveDrawer=function(n){n>this.collapseBreakpoint?(this.drawerToggleButton.setAttribute(t.disabledString,t.disabledString),e.addClass(this.element,"f-show"),this.expandDrawer()):(this.drawerToggleButton.removeAttribute(t.disabledString),e.removeClass(this.element,"f-show"),this.collapseDrawer())},t.init=function(n){o.apiDeprecated("Drawer.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-drawer",t.ariaExpanded="aria-expanded",t.disabledString="disabled",t.hiddenString="hidden",t.trueString="true",t.deprecatedResponsiveString="f-responsive",t.dataCollapseAttribute="data-js-collapse",t}(i.ObservableComponent);t.Drawer=s}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(9),i(3),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var i=this;n.call(this,t);this.showFileDialogMenu=function(n){u.preventDefault(n);i.fileInputElement.click()};this.handleFileSelection=function(){i.textInputElement.value=i.fileInputElement.value.replace("C:\\fakepath\\","")};this.update()}return f(t,n),t.prototype.update=function(){this.element&&(this.fileInputElement=u.selectFirstElement('input[type="file"]',this.element),this.submitButton=u.selectFirstElement("button",this.element),this.textInputElement=u.selectFirstElement('input[type="text"]',this.element),this.fileInputElement&&this.submitButton&&this.textInputElement)&&(u.addEvent(this.fileInputElement,u.eventTypes.change,this.handleFileSelection),u.addEvent(this.submitButton,u.eventTypes.click,this.showFileDialogMenu),u.addEvent(this.textInputElement,u.eventTypes.click,this.showFileDialogMenu))},t.prototype.teardown=function(){u.removeEvent(this.fileInputElement,u.eventTypes.change,this.handleFileSelection);u.removeEvent(this.submitButton,u.eventTypes.click,this.showFileDialogMenu);u.removeEvent(this.textInputElement,u.eventTypes.click,this.showFileDialogMenu);this.fileInputElement=null;this.submitButton=null;this.textInputElement=null},t.init=function(n){e.apiDeprecated("File.init() is deprecated, please use ComponentFactory.create() instead.");i.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-file",t}(r.ObservableComponent);t.File=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(4),i(34),i(10)],r=function(n,t,i,r,u,e,o){"use strict";var s=8,h=function(n){function t(i){var r=this;(n.call(this,i),this.element=i,this.toggleFlyout=function(){r.shown?r.hide(!0):r.show(!0)},this.handleKeydownWhenFlyoutIsOpen=function(n){var t=o.getKeyCode(n);if(r.shown)switch(t){case 27:r.hide(!0)}},this.handleClickWhenFlyoutIsOpen=function(n){var t=n.target||n.srcElement;r.performActionsWhenFlyoutIsOpen(t)},this.performActionsWhenFlyoutIsOpen=function(n){var t=n.parentNode;r.element.contains(n)===!1&&n!==r.openButton&&t!==r.openButton&&r.hide(!0)},this.hide=function(n){n===void 0&&(n=!1);r.shown=!1;r.element.setAttribute(t.AriaHidden,"true");r.dismissalMode===0&&u.removeEvent(r.bodyElement,u.eventTypes.click,r.handleClickWhenFlyoutIsOpen);n&&r.openButton.focus()},this.show=function(n){n===void 0&&(n=!1);r.shown=!0;r.element.setAttribute(t.AriaHidden,"false");r.offsetParent=u.getOffsetParent(r.element);r.placement===3?r.placeRight():r.placement===1?r.placeTop():r.placement===2?r.placeLeft():r.placement===0&&r.placeBottom();e.collidesWith(r.element)!==!1&&(r.placeLeft(),e.collidesWith(r.element)!==!1&&(r.placeRight(),e.collidesWith(r.element)!==!1&&(r.placeBottom(),e.collidesWith(r.element)!==!1&&(r.placeTop(),e.collidesWith(r.element)!==!1&&(r.placeBottomFinal(),e.collidesWith(r.element)!==!1&&r.placeTopFinal())))));r.dismissalMode===0&&u.addEvent(r.bodyElement,u.eventTypes.click,r.handleClickWhenFlyoutIsOpen);n&&r.element.focus()},this.placeTopFinal=function(){var n=u.getClientRect(r.offsetParent),i=u.getClientRect(r.element),t=u.getClientRect(r.openButton),f=t.left-n.left,e=t.top-n.top-i.height-s;u.css(r.element,"left",f+"px");u.css(r.element,"top",e+"px")},this.placeBottomFinal=function(){var t=u.getClientRect(r.offsetParent),e=u.getClientRect(r.element),n=u.getClientRect(r.openButton),i=n.left-t.left,f=n.top-t.top+n.height+s;u.css(r.element,"left",i+"px");u.css(r.element,"top",f+"px")},this.placeBottom=function(){var t=u.getClientRect(r.offsetParent),i=u.getClientRect(r.element),n=u.getClientRect(r.openButton),f=function(){var f=r.calculateHorizontalCenter(t,n,i),e=n.top-t.top+n.height+s;u.css(r.element,"left",f+"px");u.css(r.element,"top",e+"px")};f();i=u.getClientRect(r.element);f()},this.placeLeft=function(){var t=u.getClientRect(r.offsetParent),n=u.getClientRect(r.element),i=u.getClientRect(r.openButton),f=function(){var f=i.left-t.left-n.width-s,e=r.calculateVerticalCenter(t,i,n);u.css(r.element,"left",f+"px");u.css(r.element,"top",e+"px")};f();n=u.getClientRect(r.element);f()},this.placeTop=function(){var t=u.getClientRect(r.offsetParent),n=u.getClientRect(r.element),i=u.getClientRect(r.openButton),f=function(){var f=r.calculateHorizontalCenter(t,i,n),e=i.top-t.top-n.height-s;u.css(r.element,"left",f+"px");u.css(r.element,"top",e+"px")};f();n=u.getClientRect(r.element);f()},this.placeRight=function(){var t=u.getClientRect(r.offsetParent),i=u.getClientRect(r.element),n=u.getClientRect(r.openButton),f=function(){var f=n.left-t.left+n.width+s,e=r.calculateVerticalCenter(t,n,i);u.css(r.element,"left",f+"px");u.css(r.element,"top",e+"px")};f();i=u.getClientRect(r.element);f()},i)&&(this.bodyElement=u.selectFirstElement("body"),this.update())}return f(t,n),t.prototype.update=function(){var i=this,r,f,n,t,e;if((this.flyoutId=this.element.getAttribute("id"),this.flyoutId)&&(this.openButton=u.selectFirstElement('[data-js-flyout="'+this.flyoutId+'"]'),this.openButton)){this.shown=!1;r=this.element.getAttribute("data-js-flyout-dismissible");this.dismissalMode=r==="false"?1:0;f=this.element.getAttribute("data-js-flyout-placement");switch(f){case"bottom":this.placement=0;break;case"top":this.placement=1;break;case"left":this.placement=2;break;default:this.placement=3}if(u.addEvent(this.openButton,u.eventTypes.click,this.toggleFlyout),u.addEvent(window,u.eventTypes.keydown,this.handleKeydownWhenFlyoutIsOpen),this.resizeThrottledEventHandler=u.addThrottledEvent(window,u.eventTypes.resize,function(){i.hide()}),this.dismissalMode===1&&(this.flyoutButtons=u.selectElementsT("button",this.element),this.flyoutButtons.length>0))for(n=0,t=this.flyoutButtons;n<t.length;n++)e=t[n],u.addEvent(e,u.eventTypes.click,function(){i.hide(!0)})}},t.prototype.teardown=function(){var r=this,n,t,i;if(u.removeEvent(this.openButton,u.eventTypes.click,this.toggleFlyout),u.removeEvent(window,u.eventTypes.keydown,this.handleKeydownWhenFlyoutIsOpen),u.removeEvent(window,u.eventTypes.resize,this.resizeThrottledEventHandler),this.dismissalMode===1&&this.flyoutButtons.length>0)for(n=0,t=this.flyoutButtons;n<t.length;n++)i=t[n],u.removeEvent(i,u.eventTypes.click,function(){r.hide()})},t.prototype.calculateHorizontalCenter=function(n,t,i){return t.left-n.left+t.width/2-i.width/2},t.prototype.calculateVerticalCenter=function(n,t,i){return t.top-n.top+t.height/2-i.height/2},t.init=function(n){o.apiDeprecated("Flyout.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-flyout",t.AriaHidden="aria-hidden",t}(i.ObservableComponent);t.Flyout=h}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(4)],r=function(n,t,i){"use strict";function r(n){var t=i.getClientRect(n),r={top:!1,bottom:!1,left:!1,right:!1},u;t.width!==0&&(t.top<=0&&(r.top=!0),(window.innerHeight<=t.bottom||document.documentElement.clientHeight<=t.bottom)&&(r.bottom=!0),t.left<=0&&(r.left=!0),(window.innerWidth<=t.right||document.documentElement.clientWidth<=t.right)&&(r.right=!0));for(u in r)if(r[u]===!0)return r;return!1}t.collidesWith=r}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(9),i(2),i(10)],r=function(n,t,i,r,u){"use strict";var e=function(n){function t(t,i){i===void 0&&(i=null);n.call(this,t,i);this.heroItemElement=t}return f(t,n),t.init=function(n){u.apiDeprecated("HeroItem.init() is deprecated, please use ComponentFactory.create() instead.");i.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-hero, .m-hero-item",t}(r.HeroItemBase);t.HeroItem=e}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(10),i(5),i(4),i(3)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var i=this;(n.call(this,t),this.resizeHandler=function(){i.checkCollapse(i.element);i.setWidth(i.element,!0);i.setStickyClass();i.anchorPositions=i.setAnchorPositions(i.element)},this.scrollHandler=function(){var n=u.selectFirstElement("ul",i.element),t=n.getAttribute("aria-hidden");i.updateNavLinks(i.element);!t||n.setAttribute("aria-hidden","true");i.setWidth(i.element)},this.clickHandler=function(n){var t=n.target||n.srcElement,r=t.getAttribute("href"),o="aria-hidden";if(r&&!(r.indexOf("#")<0)){u.hasClass(t,"f-dropdown-link")&&u.preventDefault(n);i.updateNavLinks(i.element);var f=u.selectFirstElement("ul",i.element),c=f.getAttribute("aria-hidden")!=="true",s=u.getClientRect(i.element).height+10,e=r.split("#")[1],h=u.selectElements("[data-js-in-page-navigation-wrapper]").length>0?!0:!1;u.hasClass(t,"f-dropdown-link")?c?f.setAttribute(o,"true"):f.setAttribute(o,"false"):(u.hasClass(i.element,"f-vertical")?h?window.scrollTo(0,i.anchorPositions[e]-(u.hasClass(i.element,"f-dropdown")?s:0)):window.scrollTo(0,i.anchorPositions[e]):window.scrollTo(0,i.anchorPositions[e]-(h?s:0)),i.updateLinks(t))}},t)&&this.update()}return f(t,n),t.prototype.update=function(){if(this.navLinks=u.selectElements("ul a",this.element),this.navLinks&&this.navLinks.length){if(this.anchorElements=this.getAnchorElements(),this.checkCollapse(this.element),this.setStickyClass(),this.anchorPositions=this.setAnchorPositions(this.element),u.addEvent(window,u.eventTypes.resize,this.resizeHandler),u.addEvent(window,u.eventTypes.scroll,this.scrollHandler),u.hasClass(this.element,"f-dropdown")){var n=u.selectFirstElement("a",this.element);u.addEvent(n,u.eventTypes.click,this.clickHandler,!0)}this.setNavLinkHandler(this.navLinks)}},t.prototype.teardown=function(){var i,n,t,r;for(u.removeEvent(window,u.eventTypes.resize,this.resizeHandler),u.removeEvent(window,u.eventTypes.scroll,this.scrollHandler),u.hasClass(this.element,"f-dropdown")&&(i=u.selectFirstElement("a",this.element),u.removeEvent(i,u.eventTypes.click,this.clickHandler,!0)),n=0,t=this.navLinks;n<t.length;n++)r=t[n],u.removeEvent(r,u.eventTypes.click,this.clickHandler,!0)},t.prototype.setNavLinkHandler=function(n){var t,i,r;if(n!==null)for(t=0,i=n;t<i.length;t++)r=i[t],u.addEvent(r,u.eventTypes.click,this.clickHandler,!0)},t.prototype.setAnchorPositions=function(){var f,i,n,r,t;if(this.anchorElements){for(f=u.getClientRect(document.body).top,i={},n=0,r=this.anchorElements;n<r.length;n++)t=r[n],t&&(i[t.id]=u.getClientRect(t).top-f);return i}},t.prototype.getAnchorElements=function(){for(var f=[],o=u.selectElements("a",this.element),e,t,n=0,i=o;n<i.length;n++)e=i[n],t=r.trim(e.getAttribute("href")),t!=null&&t.indexOf("#")===0&&f.push(u.selectFirstElement(t));return f},t.prototype.setStickyClass=function(){var n=u.getClientRect(this.element).top+this.getScrollY();return n<0&&(u.addClass(this.element,"f-sticky"),u.css(this.element,"marginLeft",this.stickyOffsetLeft)),this.element},t.prototype.checkCollapse=function(n){var f,r,l;if(n&&(f=n.parentElement,f)){var e=f.children,t=u.selectElements("li",n),o=u.getClientRect(f).width,s=0,h="f-dropdown",c="f-vertical";if(u.hasClass(n,h)||u.hasClass(n,c)){if(u.hasClass(n,h)&&!u.hasClass(n,c))for(r=0,l=e.length;r<l-1;r++)t=u.selectElements("li",e[r]),t&&t.length>0&&!u.hasClass(e[r],h)&&(s=u.getClientRect(t[t.length-1]).right)}else s=u.getClientRect(t[t.length-1]).right;return u.hasClass(n,"f-vertical")?i.getWindowWidth()<100+o?this.convertMenu(n,"dropdown"):this.convertMenu(n):s>o||o===0?this.convertMenu(n,"dropdown"):this.convertMenu(n)}},t.prototype.convertMenu=function(n,t){t===void 0&&(t=null);var r="f-dropdown",i="f-hide";return t==="dropdown"?u.hasClass(n,r)?u.hasClass(n,i)&&u.removeClass(n,i):u.hasClass(n,i)||u.addClass(n,i):u.hasClass(n,r)?u.hasClass(n,i)||u.addClass(n,i):u.hasClass(n,i)&&u.removeClass(n,i),n},t.prototype.setWidth=function(n,t){var o;t===void 0&&(t=!1);var f=n.parentElement,r="f-sticky",i=u.selectFirstElement("ul",n),s=u.hasClass(n,r),e=this.getScrollY(),h=u.getClientRect(f).top+e;return this.stickyOffsetLeft=u.getClientRect(f).left,this.elementWidth=u.getClientRect(f).width,o=u.selectElements("[data-js-in-page-navigation-wrapper]"),t===!0&&u.hasClass(n,r)&&(i.style.width=this.elementWidth+"px",i.style.marginLeft=this.stickyOffsetLeft+"px"),o.length>0&&(h<e?u.hasClass(n,r)||(u.addClass(n,r),i.style.width=this.elementWidth+"px",i.style.marginLeft=this.stickyOffsetLeft+"px"):s!==!1&&(u.removeClass(n,r),u.css(i,"margin-left",""),u.css(i,"width",""))),n},t.prototype.updateLinks=function(n){var t,i,r,f;if(this.element&&this.navLinks&&this.navLinks.length!==0){for(t=0,i=this.navLinks;t<i.length;t++)r=i[t],r.blur(),u.removeClass(r,"f-active");return u.addClass(n,"f-active"),u.hasClass(this.element,"f-dropdown")&&(f=u.selectFirstElement("a",this.element),f.setAttribute("href",n.getAttribute("href")),f.innerHTML=n.innerHTML),this.element}},t.prototype.updateNavLinks=function(n){var t,r,i;if(n&&(t=this.getAnchorElements(),r=u.selectFirstElement("[data-js-in-page-navigation-wrapper]"),r&&t&&t.length))for(r.style.top=n.offsetHeight+"px",i=t.length-1;i>=0;i--)if(t[i].getBoundingClientRect().top<=50){this.updateLinks(u.selectElements("a",n)[i]);break}},t.prototype.getScrollY=function(){return window.scrollY||window.pageYOffset||document.documentElement.scrollTop},t.selector=".c-in-page-navigation",t}(e.ObservableComponent);t.InPageNavigation=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(9),i(3),i(29),i(10),i(4)],r=function(n,t,i,r,u,e,o){"use strict";var s=function(n){function t(t){var i=this;n.call(this,t);this.cssClassNames={width:{large:"f-width-large",small:"f-width-small"},height:{large:"f-height-large",medium:"f-height-medium",small:"f-height-small"}};this.mappings=[[[300,0],[150,320],[0,160]],[[300,540],[150,270],[0,135]],[[400,768],[200,384],[0,0]],[[400,542],[200,271],[0,135]],[[400,542],[200,271],[0,135]],[[400,542],[200,271],[0,135]]];this.update();u.BreakpointTracker.getBreakpointTracker().subscribe({onBreakpointChanged:function(n){i.onBreakpointChanged(n)}})}return f(t,n),t.prototype.update=function(){this.onBreakpointChanged({breakpoint:u.BreakpointTracker.getBreakpointTracker().getBreakpoint(),width:0})},t.prototype.teardown=function(){},t.prototype.removeClasses=function(n){n!=null&&o.removeClasses(n,this.concatenateCssClasses(this.cssClassNames))},t.prototype.applySizeClasses=function(n,t){var i=e.getDimensions(n),r,u;i!=null&&e.isNumber(i.height)&&e.isNumber(i.width)&&(r=[],i.height>=this.mappings[t][0][0]?(r.push(this.cssClassNames.height.large),u=i.width>=this.mappings[t][0][1]?this.cssClassNames.width.large:this.cssClassNames.width.small,r.push(u)):i.height>=this.mappings[t][1][0]?(r.push(this.cssClassNames.height.medium),u=i.width>=this.mappings[t][1][1]?this.cssClassNames.width.large:this.cssClassNames.width.small,r.push(u)):(r.push(this.cssClassNames.height.small),u=i.width>=this.mappings[t][2][1]?this.cssClassNames.width.large:this.cssClassNames.width.small,r.push(u)),o.addClasses(this.element,r))},t.prototype.onBreakpointChanged=function(n){this.removeClasses(this.element);this.applySizeClasses(this.element,n.breakpoint)},t.prototype.concatenateCssClasses=function(n){var i,r,f,t,u;if(n!=null){i=[];for(r in n)if(n.hasOwnProperty(r)&&(f=n,t=f[r],typeof t=="object"))for(u in t)t.hasOwnProperty(u)&&i.push(t[u]);return i}},t.init=function(n){e.apiDeprecated("MosaicPlacement.init() is deprecated, please use ComponentFactory.create() instead.");i.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-mosaic-placement",t}(r.ObservableComponent);t.MosaicPlacement=s}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(39),i(17),i(40),i(20),i(4),i(10)],r=function(n,t,i,r,u,e,o,s,h,c){"use strict";var l=function(n){function t(i,r){r===void 0&&(r=null);n.call(this,t.selectMultiSlideCarousel(i,r),r);this.multiFeatureElement=i}return f(t,n),t.selectMultiSlideCarousel=function(n,t){var r=h.selectFirstElement(e.MultiSlideCarousel.selector,n);return r&&(r.setAttribute(i.ObservableComponent.mwfClassAttribute,!!t&&!!t.mwfClass?t.mwfClass:"MultiFeature"),r.removeAttribute(i.ObservableComponent.initializeAttribute)),r},t.prototype.update=function(){return n.prototype.update.call(this)?(n.prototype.subscribe.call(this,this),!0):!1},t.prototype.teardown=function(){n.prototype.teardown.call(this);n.prototype.unsubscribe.call(this,this);this.controller&&this.controller.unsubscribe(this)},t.prototype.loadMultiSlideController=function(){var f=this,n=h.selectFirstElement(t.controllerSelector,this.multiFeatureElement),e,c,a,l,v,y;if(n&&h.hasClass(n,"c-sequence-indicator"))this.loadContentElements(n),e=s.SequenceIndicator;else if(n&&n.parentElement&&h.hasClass(n.parentElement,"c-pivot")){for(n=n.parentElement,e=o.Pivot,c=0,a=h.selectElements(t.controllerItemsSelector,n);c<a.length;c++){var p=a[c],w=p.getAttribute(t.ariaControls),b=w?w.split(/\s+/):[];for(l=0,v=b;l<v.length;l++)if(y=v[l],h.selectFirstElement("#"+y,n)){p.setAttribute(t.ariaControls,y);break}}n.removeAttribute(i.ObservableComponent.initializeAttribute)}else n&&n.firstElementChild&&n.firstElementChild.firstElementChild&&h.hasClass(n.firstElementChild.firstElementChild,"c-logo")&&(this.loadContentElements(n),e=u.LogoController,n.setAttribute(i.ObservableComponent.mwfClassAttribute,"LogoController"),h.addClass(n,s.SequenceIndicator.selector));r.ComponentFactory.create([{elements:[n],component:e,callback:function(n){n&&n.length&&(f.controller=n[0],!f.controller||f.controller.subscribe(f))},eventToBind:"DOMContentLoaded"}])},t.prototype.onSlideRangeChanged=function(n){!n||!n.fullyVisibleItemRange||!n.fullyVisibleItemRange.length||(this.controller.setControllerIndex(n.fullyVisibleItemRange[0],n.userInitiated),this.updateMultiFeatureContentIndex(n.fullyVisibleItemRange[0]))},t.prototype.updateMultiFeatureContentIndex=function(n){!this.contentElements||n<0||n>=this.contentElements.length&&this.contentElements.length!==1||(n=Math.min(n,this.contentElements.length-1),c.isNumber(this.activeContentIndex)&&this.activeContentIndex>=0&&this.activeContentIndex<this.contentElements.length&&h.removeClass(this.contentElements[this.activeContentIndex],t.activeItemClass),h.addClass(this.contentElements[n],t.activeItemClass),this.activeContentIndex=n)},t.prototype.loadContentElements=function(){this.contentElements=h.selectElements(t.contentSelector,this.multiFeatureElement)},t.prototype.onControllerIndexChanged=function(t){!t||n.prototype.setActiveSlide.call(this,t.currentIndex)},t.selector=".m-multi-feature",t.controllerSelector='[role="tablist"]',t.controllerItemsSelector='[role="tab"]',t.contentSelector='section > ul > li[role="tabpanel"], section > div > ul > li[role="tabpanel"]',t.activeItemClass="f-active",t.ariaControls="aria-controls",t}(e.MultiSlideCarousel);t.MultiFeature=l}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(20)],r=function(n,t,i){"use strict";var r=function(n){function t(t,i){i===void 0&&(i=null);n.call(this,t,i);this.logoControllerElement=t}return f(t,n),t.selector=".c-logo-controller",t.typeName="LogoController",t.itemSelector='[role="tab"]',t}(i.SequenceIndicator);t.LogoController=r}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(6),i(4),i(10)],r=function(n,t,i,r,u,e,o){"use strict";var s=function(n){function t(t,r){var u=this;r===void 0&&(r=null);n.call(this,t,r);this.pivotElement=t;this.setControllerIndex=function(n,t){if(t===void 0&&(t=!1),!u.pivotTabs||n<0||n>=u.pivotTabs.length)return!1;u.onPivotChanged(u.pivotTabs[n],t);return!0};this.onPivotClicked=function(n){e.preventDefault(n);u.onPivotChanged(e.getEventTargetOrSrcElement(n))};this.onKeydown=function(n){var i,f=o.getKeyCode(n),s=o.getVirtualKey(n),h,r,t;if(f===13||f===32||s==="Enter"||s===" "?e.preventDefault(n):f===37||s==="ArrowLeft"?i=-1:(f===39||s==="ArrowRight")&&(i=1),i){for(e.preventDefault(n),i*=u.isLtr?1:-1,h=void 0,r=0;r<u.pivotTabs.length;r++)if(u.pivotTabs[r]===u.activePivotHeader){t=r+i;t>=u.pivotTabs.length?t=0:t<0&&(t=u.pivotTabs.length-1);h=u.pivotTabs[t];break}if(h)u.onPivotChanged(h)}};i.ObservableComponent.shouldInitializeAsClass(t,r)&&this.update()}return f(t,n),t.prototype.update=function(){var h,r,f,o,i,u,s,n;if(!this.pivotElement)return!1;for(this.pivots=[],h=e.selectElements(".c-pivot > section",this.element),r=0,f=h;r<f.length;r++)o=f[r],o.parentElement===this.element&&this.pivots.push(o);if(this.pivotHeader=e.selectFirstElement("header",this.element),this.pivots&&this.pivots.length&&!!this.pivotHeader&&(i=void 0,this.pivotTabs=e.selectElements("header > a",this.pivotHeader),this.pivotTabs&&this.pivotTabs.length>1)){for(u=0,s=this.pivotTabs;u<s.length;u++)n=s[u],e.hasClass(n,t.activePivotSelector)&&(i?e.removeClass(n,t.activePivotSelector):i=n),n.setAttribute(t.tabIndexAttribute,"-1"),n.setAttribute("href","#"),n.setAttribute(t.ariaSelected,"false");i||(i=this.pivotTabs[0]);this.isLtr=e.getDirection(this.pivotHeader)===e.Direction.left;this.onPivotChanged(i,!1);e.addEvent(this.pivotHeader,e.eventTypes.click,this.onPivotClicked);e.addEvent(this.pivotHeader,e.eventTypes.keydown,this.onKeydown)}return!0},t.prototype.teardown=function(){this.pivotTabs&&this.pivotTabs.length>1&&(e.removeEvent(this.pivotHeader,e.eventTypes.click,this.onPivotClicked),e.removeEvent(this.pivotHeader,e.eventTypes.click,this.onKeydown));this.pivotHeader=null;this.activePivotHeader=null;this.pivots=null;this.activePivot=null},t.prototype.onPivotChanged=function(n,t){t===void 0&&(t=!0);this.isDisabled()||!n||n===this.activePivotHeader||this.updatePivot(n,t)},t.prototype.publish=function(n,t){var i=n,r=n;if(i.onPivotChanged)i.onPivotChanged(t);if(r.onControllerIndexChanged)r.onControllerIndexChanged(t)},t.prototype.updatePivot=function(n,i){var p=!1,r=this.activePivotHeader,u,v,f,s,y,h;if(this.activePivotHeader=n,!!this.activePivotHeader){var w=r?r.getAttribute("aria-controls"):null,c=this.activePivotHeader?this.activePivotHeader.getAttribute("aria-controls"):null,l=void 0,a=void 0;for(u=0;u<this.pivotTabs.length;u++)if(v=this.pivotTabs[u],v===r){if(l=u,o.isNumber(a))break}else if(v===n&&(a=u,o.isNumber(l)))break;if(r&&(e.removeClass(r,t.activePivotSelector),r.setAttribute(t.ariaSelected,"false"),r.setAttribute(t.tabIndexAttribute,"-1"),p=document.activeElement===r),e.addClass(this.activePivotHeader,t.activePivotSelector),this.activePivotHeader.setAttribute(t.ariaSelected,"true"),this.activePivotHeader.removeAttribute(t.tabIndexAttribute),(i||p)&&this.activePivotHeader.focus(),!!c&&(f=document.getElementById(c),!!f&&(!this.activePivot||this.activePivot!==f)))for(s=0,y=this.pivots;s<y.length;s++)h=y[s],h===f?(this.showPivot(h),this.activePivot=f):this.hidePivot(h);this.initiatePublish({previousIndex:l,currentIndex:a,activePivotId:c,previousPivotId:w})}},t.prototype.showPivot=function(n){!n||n.setAttribute(t.ariaHidden,"false")},t.prototype.hidePivot=function(n){!n||n.setAttribute(t.ariaHidden,"true")},t.prototype.isDisabled=function(){return this.pivotElement.getAttribute(t.state)===t.disabled},t.init=function(n){o.apiDeprecated("Pivot.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-pivot",t.tabIndexAttribute="tabIndex",t.state="data-f-state",t.disabled="disabled",t.activePivotSelector="f-active",t.ariaHidden="aria-hidden",t.ariaSelected="aria-selected",t}(u.Publisher);t.Pivot=s}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var i=this;n.call(this,t);this.element=t;this.showClass="f-show";this.scrollDistanceWithoutTarget=800;this.togglePageBar=function(){var n;n=i.scrollTarget?u.getClientRect(i.scrollTarget).bottom:u.getClientRect(document.body).top+i.scrollDistanceWithoutTarget;n<=0?u.addClass(i.pageBar,i.showClass):u.removeClass(i.pageBar,i.showClass)};this.update()}return f(t,n),t.prototype.update=function(){this.element&&this.element.id&&(this.pageBar=this.element.cloneNode(!0),this.pageBar&&this.pageBar.id)&&(this.scrollTarget=u.selectFirstElement('[data-js-page-bar-target="'+this.pageBar.id+'"]'),this.element.removeAttribute("id"),u.addClass(this.pageBar,"f-sticky"),u.removeClass(this.pageBar,"f-hidden"),document.body.appendChild(this.pageBar),this.scrollThrottledEventHandler=u.addThrottledEvent(window,u.eventTypes.scroll,this.togglePageBar))},t.prototype.teardown=function(){u.removeEvent(window,u.eventTypes.scroll,this.scrollThrottledEventHandler)},t.init=function(n){e.apiDeprecated("PageBar.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".m-page-bar",t}(i.ObservableComponent);t.PageBar=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(4),i(43)],r=function(n,t,i,r){"use strict";var u=function(){function n(){var n=this;this.executeCommonForAddedElementsFromEvent=function(t){var r=i.getEventTargetOrSrcElement(t);r&&n.executeCommonForAddedElements(r)};this.executeCommonForAddedElements=function(n){n&&r.removeFocus(n)};i.removeClass(document.documentElement,"no-js");i.addClass(document.documentElement,"js");this.executeCommonForAddedElements(document);this.watchForDomChangesToExecuteCommon()}return n.prototype.watchForDomChangesToExecuteCommon=function(){var t=this,n;typeof MutationObserver!="undefined"?(n=new MutationObserver(function(n){for(var r,f,i=0,u=n;i<u.length;i++){r=u[i];for(f in r.addedNodes)r.addedNodes[f].nodeType===1&&t.executeCommonForAddedElements(r.addedNodes[f])}}),n.observe(document,{childList:!0,subtree:!0})):document.addEventListener&&document.addEventListener("DOMNodeInserted",this.executeCommonForAddedElementsFromEvent,!1)},n}();t.PageBehaviors=u}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(4)],r=function(n,t,i){"use strict";function h(n){var t,e,o,s,h;if(u.length<1)for(t=0;t<r.length;t++)u+=r[t].classSelector,t!==r.length-1&&(u+=",");if(e=!n||n===document?document.querySelectorAll(f):n.querySelectorAll&&n.parentElement?n.parentElement.querySelectorAll(f):null,e&&e.length)for(o=0,s=i.nodeListToArray(e);o<s.length;o++)h=s[o],c(h)}function c(n){var c,d,g,ft,v,nt,et,ot,y,tt,st,ht,p,it,ct,w,rt,k,ut,b;if(n.type!=="text",n.type!=="textarea",n.type!=="password"){var e,h=[n],t=[n],f=n.parentElement||null;if(f&&i.selectElements(u,f).length){if(f===o)return;for(c=0,d=r;c<d.length;c++)if(g=d[c],i.selectElements(g.classSelector,f).length){for(e=g,h.splice(0),t.splice(0),ft=i.selectElements(e.clickSelector,f),v=0,nt=ft;v<nt.length;v++)et=nt[v],h.push(et);for(ot=i.selectElements(e.focusSelector,f),y=0,tt=ot;y<tt.length;y++)st=tt[y],t.push(st);o=f;break}}for(ht=function(n){i.addEvent(h[n],i.eventTypes.mousedown,function(i){l(i,t[n],e)})},p=0,it=h.length;p<it;p++)ht(p,it);if(e&&e.elementDoesNotGetFocus)for(ct=function(n){i.addEvents(t,"mousedown keydown",function(){a(event,n)})},w=0,rt=t;w<rt.length;w++)b=rt[w],ct(b);else for(k=0,ut=t;k<ut.length;k++)b=ut[k],i.addEvents(t,"blur keydown",function(){s(n)})}}function l(n,t,r){i.addClass(t,e);r&&r.preventDefault&&n.preventDefault();r&&r.elementDoesNotGetFocus&&t.focus()}function s(n){i.removeClass(n,e)}function a(n,t){var r=i.getEventTargetOrSrcElement(n);r!==t&&s(t)}var f=[".c-action-toggle",".c-action-trigger",".m-back-to-top",".c-button",".c-button > span",".c-call-to-action",".c-content-toggle button",".c-checkbox [type=checkbox]",".c-date-time-picker button","div[data-date-time-picker] li",".c-drawer > button",".c-drawer > header > button",".c-dialog .c-glyph.glyph-cancel",".c-flipper",".c-hyperlink",".c-hyperlink > span",".c-in-page-navigation a",".c-link-navigation a.c-hyperlink",".c-menu-item",".c-menu-item > a",".c-menu-item > button",".c-navigation-menu button",".c-pagination li > a",".m-pagination li > a",".c-pivot a",".c-product-placement > a",".m-product-placement-item > a",".c-progress",".c-radio [type=radio]",".c-range-slider [role=slider]",".c-rating button.c-glyph",".c-refine-item","button.c-refine-item",".c-select-button",".c-select-menu > a",".c-select-menu > button",".c-sequence-indicator button[role=tab]",".c-social li > a",".c-social button",".m-social li > a",".m-social button",".c-slider button",".c-supplemental-nav button",".c-supplemental-nav a",".m-supplemental-nav button",".m-supplemental-nav a",".c-table th > button",".c-toggle button",".c-video",".c-universal-header a",".c-universal-header button",".f-video-controls > button"].toString(),r=[{clickSelector:".c-radio [type=radio] + span",focusSelector:".c-radio [type=radio]",classSelector:".c-radio [type=radio]",preventDefault:!0,elementDoesNotGetFocus:!1},{clickSelector:".c-checkbox [type=checkbox] + span",focusSelector:".c-checkbox [type=checkbox]",classSelector:".c-checkbox [type=checkbox]",preventDefault:!0,elementDoesNotGetFocus:!1},{clickSelector:".c-rating button.c-glyph",focusSelector:".c-rating button.c-glyph",classSelector:".c-rating button.c-glyph",preventDefault:!0,elementDoesNotGetFocus:!0}],e="x-hidden-focus",u="",o;t.removeFocus=h}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(6),i(9),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var i=this;n.call(this,t);this.page=-1;this.handleClickEvent=function(n){var t=u.getEventTargetOrSrcElement(n);u.hasClass(t,"c-glyph")?i.handleButtonClick(t.parentElement):i.setActivePage(i.getPageFromElement(t.parentElement),!0,!0)};this.update()}return f(t,n),t.prototype.update=function(){var i,n;this.element&&((this.pages=u.selectElements(t.pageClassSelector,this.element),this.pages.length<2)||(i=u.selectElements(t.buttonsClassSelector,this.element),i.length===2)&&(this.previousButton=i[0].parentElement,this.nextButton=i[1].parentElement,u.addEvent(this.element,u.eventTypes.click,this.handleClickEvent),n=u.selectElements(t.activeClassSelector,this.element),n&&n.length!==0||(n=this.pages),this.setActivePage(this.getPageFromElement(n[0]),!0,!1)))},t.prototype.teardown=function(){u.removeEvent(this.element,u.eventTypes.click,this.handleClickEvent);this.page=-1;this.pages=null;this.activeItem=null;this.previousButton=null;this.nextButton=null},t.prototype.publish=function(n,t){if(n.onPageChanged)n.onPageChanged(t)},t.prototype.getPage=function(){return this.page},t.prototype.setPage=function(n){return this.setActivePage(n,!1,!1)},t.prototype.handleButtonClick=function(n){var i=n===this.nextButton,r=n===this.previousButton,t=this.getPage();(i||r)&&this.setActivePage(t===-1?0:i?t+1:t-1,!0,!0)},t.prototype.setActivePage=function(n,i,r){var h=this.getPage();if(!e.isNumber(n)||!this.pages||!(n>=0)||!(n<this.pages.length)||n===h)return!1;if(!!this.activeItem){var f=this.activeItem.firstElementChild,a=this.activeItem.getAttribute(t.dataLabel),c=f.getAttribute(t.dataHref);this.activeItem.setAttribute(t.dataLabel,f.getAttribute(t.ariaLabel));f.setAttribute(t.dataLabel,a);!c||(f.setAttribute(t.href,c),f.removeAttribute(t.dataHref));u.removeClass(this.activeItem,t.activeClass)}var o=this.pages[n],s=o.firstElementChild,v=o.getAttribute(t.dataLabel),l=s.getAttribute(t.href);return o.setAttribute(t.dataLabel,s.getAttribute(t.ariaLabel)),s.setAttribute(t.dataLabel,v),!l||(s.setAttribute(t.dataHref,l),setTimeout(function(){s.removeAttribute(t.href)},0)),u.addClass(o,t.activeClass),this.activeItem=o,this.page=n,this.updateButtons(),this.initiatePublish({page:n,priorPage:h,internal:i,userinitiated:r}),!0},t.prototype.updateButtons=function(){var n=this.getPage();n!==-1&&(n===0?u.addClass(this.previousButton,t.hideClass):u.removeClass(this.previousButton,t.hideClass),n===this.pages.length-1?u.addClass(this.nextButton,t.hideClass):u.removeClass(this.nextButton,t.hideClass))},t.prototype.getPageFromElement=function(n){return!this.pages||!n?-1:this.pages.indexOf(n)},t.init=function(n){e.apiDeprecated("Pagination.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".m-pagination",t.pageClassSelector="li[data-label]",t.buttonsClassSelector=".c-glyph",t.activeClass="f-active",t.activeClassSelector="."+t.activeClass,t.hideClass="f-hide",t.ariaLabel="aria-label",t.dataLabel="data-label",t.dataHref="data-href",t.href="href",t}(i.Publisher);t.Pagination=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(9),i(3),i(4),i(10),i(46)],r=function(n,t,i,r,u,e,o){"use strict";var s=function(n){function t(t){var i=this;n.call(this,t);this.onWindowResize=function(){i.onResize()};this.update()}return f(t,n),t.prototype.update=function(){var n,i,r;if(this.element){this.carousel=u.selectFirstElement(".c-carousel",this.element);this.products=u.selectFirstElement("ul",this.element);this.seeAll=u.selectFirstElement('[class^="c-heading"] .c-hyperlink[aria-label]',this.element);var f=this.seeAll?this.seeAll.parentElement:null,e=u.selectElements(".f-default-image img",this.element),s=function(n){var i,t,r,f;if(!u.isImageLoadedSuccessfully(n)){for(i=!1,t=n;!i;){if(!t.parentElement)break;t=t.parentElement;u.hasClass(t,"m-product-placement-item")&&(i=!0)}i&&(r=u.hasClass(t,"context-app")?1:u.hasClass(t,"context-person")?2:u.hasClass(t,"context-video")?3:0,f=u.hasClass(t,"f-size-small")?1:0,n.complete?o.handleImageError(n,f,r):n.onerror=function(){o.handleImageError(n,f,r)})}};for(n=0,i=e;n<i.length;n++)r=i[n],s(r);!this.carousel||!this.products||!this.seeAll||u.hasClass(f,t.showAllAlwaysClass)||(this.onResize(),this.resizeListener=u.addThrottledEvent(window,u.eventTypes.resize,this.onWindowResize))}},t.prototype.teardown=function(){u.removeEvent(window,u.eventTypes.resize,this.resizeListener);this.carousel=null;this.products=null;this.seeAll=null;this.resizeListener=null},t.prototype.onResize=function(){if(!!this.carousel&&!!this.products&&!!this.seeAll){var n=e.getDimensions(this.carousel).width,i=e.getDimensions(this.products).width;i<n?this.seeAll.setAttribute(t.ariaHidden,"true"):this.seeAll.removeAttribute(t.ariaHidden)}},t.init=function(n){e.apiDeprecated("ProductPlacement.init() is deprecated, please use ComponentFactory.create() instead.");i.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".m-product-placement",t.ariaHidden="aria-hidden",t.showAllAlwaysClass="js-product-placement-persist-show-all",t}(r.ObservableComponent);t.ProductPlacement=s}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(4)],r=function(n,t,i){"use strict";function c(n,t,i){t===void 0&&(t=0);var f;switch(t){case 1:f=h;break;case 0:default:f=r}u(n,f,i)}function u(n,t,u){var o,f,e,s;if(t===void 0&&(t=r),u===void 0&&(u=0),n){if(t=t&&t>0?t:r,n.parentElement)for(o=i.selectElements("source",n.parentElement),f=0,e=o;f<e.length;f++)s=e[f],s.srcset="";n.srcset="";n.src=l(u);n.src.length&&(i.css(n,"height",t+"px"),i.css(n,"width",t+"px"))}}function l(n){switch(n){case 1:return f;case 2:return o;case 3:return s;case 0:default:return e}}var f="data:image/svg+xml;charset=utf-8,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 60 60' style='enable-background:new 0 0 60 60%3B' xml:space='preserve'%3E%3Cstyle %3E.st0%7Bfill:%23FFF%3B%7D%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M0 0 h60 v32 H32 v28 H0 V0 z M28 28 V4 H4 v24 H28 z M28 56 V32 H4 v24 H28 z M56 28 V4 H32 v24 H56 z'/%3E%3C/g%3E%3C/svg%3E",e="data:image/svg+xml;charset=utf-8,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 64 64' style='enable-background:new 0 0 64 64%3B' xml:space='preserve'%3E%3Cstyle %3E.st0%7Bfill:%23FFF%3B%7D%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M64,8v48H0V8H64z M4,12v21.2l14-14l20,20l8-8l14,14V12H4z M4,52h41.2L18,24.8l-14,14V52z M60,52v-1.2l-14-14 L40.8,42l10,10H60z M50,24c-0.5,0-1-0.2-1.4-0.6C48.2,23,48,22.5,48,22s0.2-1,0.6-1.4C49,20.2,49.5,20,50,20s1,0.2,1.4,0.6 C51.8,21,52,21.5,52,22s-0.2,1-0.6,1.4C51,23.8,50.5,24,50,24z'/%3E%3C/g%3E%3C/svg%3E",o="data:image/svg+xml;charset=utf-8,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 64 64' style='enable-background:new 0 0 64 64%3B' xml:space='preserve'%3E%3Cstyle %3E.st0%7Bfill:%23FFF%3B%7D%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M41.7,37.9c2.8,1,5.3,2.3,7.6,4.1c2.3,1.8,4.2,3.8,5.7,6c1.6,2.3,2.8,4.7,3.7,7.5c0.8,2.8,1.2,5.5,1.2,8.5h-4 c0-3.4-0.6-6.5-1.8-9.4c-1.2-2.9-2.9-5.4-4.9-7.5s-4.6-3.8-7.5-4.9c-3-1.3-6.1-1.9-9.5-1.9c-2.2,0-4.4,0.3-6.3,0.8 c-2,0.5-4,1.4-5.7,2.4c-1.8,1-3.4,2.3-4.7,3.8c-1.4,1.4-2.7,3.1-3.7,4.7c-1,1.7-1.8,3.7-2.4,5.7S8.5,61.8,8.5,64h-4%09c0-3,0.4-5.8,1.3-8.5c0.9-2.7,2.1-5.2,3.7-7.4c1.6-2.3,3.5-4.3,5.7-6s4.7-3.1,7.5-4.2c-1.6-0.9-3.1-1.9-4.4-3.2%09c-1.3-1.3-2.4-2.6-3.3-4.2c-0.9-1.6-1.6-3.2-2.1-4.8c-0.4-1.7-0.6-3.5-0.6-5.2c0-2.8,0.5-5.3,1.6-7.7c1-2.4,2.5-4.4,4.3-6.3%09c1.8-1.9,3.9-3.2,6.3-4.3c2.4-1,4.9-1.6,7.7-1.6c2.8,0,5.3,0.5,7.7,1.6c2.4,1,4.4,2.5,6.3,4.3s3.2,3.9,4.3,6.3 c1,2.4,1.6,4.9,1.6,7.7c0,1.8-0.2,3.6-0.7,5.2c-0.5,1.7-1.2,3.4-2.1,4.8c-0.9,1.5-2,2.9-3.3,4.2C44.6,36,43.3,37,41.7,37.9z M16.4,20.5c0,2.2,0.4,4.3,1.3,6.1s2,3.6,3.4,5c1.4,1.4,3.1,2.6,5,3.4c2,0.8,4,1.3,6.1,1.3c2.2,0,4.3-0.4,6.1-1.3 c1.9-0.9,3.6-2,5-3.4c1.4-1.4,2.6-3.1,3.4-5s1.3-4,1.3-6.1s-0.4-4.3-1.3-6.1s-2-3.6-3.4-5c-1.4-1.4-3.1-2.6-5-3.4 c-2-0.8-4-1.3-6.1-1.3c-2.2,0-4.3,0.4-6.1,1.3s-3.6,2-5,3.4c-1.4,1.4-2.6,3.1-3.4,5S16.4,18.3,16.4,20.5z'/%3E%3C/g%3E%3C/svg%3E",s="data:image/svg+xml;charset=utf-8,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 64 64' style='enable-background:new 0 0 64 64%3B' xml:space='preserve'%3E%3Cstyle %3E.st0%7Bfill:%23FFF%3B%7D%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M0,10h64v44H0V10z M60,50V14h-4v4h-4v-4H12v4H8v-4H4v36h4v-4h4v4h40v-4h4v4H60z M8,26v-4h4v4H8z M8,34v-4h4v4 H8z M8,42v-4h4v4H8z M52,26v-4h4v4H52z M52,34v-4h4v4H52z M52,42v-4h4v4H52z'/%3E%3C/g%3E%3C/svg%3E",h=24,r=57;t.handleImageError=c;t.handleImageErrorCustomDimensions=u}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(48),i(29),i(4),i(10)],r=function(n,t,i,r,u,e,o,s){"use strict";var h=function(n){function t(t){var i=this;n.call(this,t);this.onBreakpointChanged=function(n){n.breakpoint<2?i.expandMenu(!1):i.expandMenu(!0)};this.handleMenuClick=function(n){var t=o.getEventTargetOrSrcElement(n);switch(t){case i.collapseButton:i.expandMenu(!1);break;case i.expandButton:i.expandMenu(!0);break;default:i.manageRadioGroupClick(t)}};this.update()}return f(t,n),t.prototype.update=function(){if(this.element&&(this.collapseButton=o.selectFirstElement(".c-heading + button.c-action-trigger",this.element),this.expandButton=o.selectFirstElement("[data-mobile-target] + button.c-action-trigger",this.element),this.mobileTarget=o.selectFirstElement("[data-mobile-target]",this.element),this.collapseButton&&this.expandButton&&this.mobileTarget)){this.getRefineMenuItems();e.BreakpointTracker.getBreakpointTracker().subscribe({onBreakpointChanged:this.onBreakpointChanged});o.addEvent(this.element,o.eventTypes.click,this.handleMenuClick);this.onBreakpointChanged({breakpoint:e.BreakpointTracker.getBreakpointTracker().getBreakpoint(),width:0})}},t.prototype.teardown=function(){var n,t,i;for(o.removeEvent(this.element,o.eventTypes.click,this.handleMenuClick),this.collapseButton=null,this.expandButton=null,this.mobileTarget=null,n=0,t=this.refineItems;n<t.length;n++)i=t[n],i.teardown();this.refineItems=[]},t.prototype.manageRadioGroupClick=function(n){var c=n.nodeName==="SPAN",r=c?n.parentNode:n,i=r!=null?r.parentNode.parentNode:null,f,u,e,s,h;if(r==null||i==null)return null;if(f=i.getAttribute(t.selectTypeProperty)===t.singleSelectValue,i.hasAttribute(t.selectTypeProperty)||(i=i.parentNode,f=i.getAttribute("role")==="radiogroup"),f)for(u=0,e=this.refineItems;u<e.length;u++)s=e[u],h=s.element,h!==r&&o.isDescendent(i,h)&&s.unselectItem()},t.prototype.getRefineMenuItems=function(){var n,t,i;for(this.refineItems=[],n=0,t=o.selectElements(u.RefineItem.selector,this.element);n<t.length;n++)i=t[n],this.refineItems.push(new u.RefineItem(i))},t.prototype.expandMenu=function(n){this.mobileTarget.setAttribute("aria-hidden",(!n).toString());this.expandButton.setAttribute("aria-expanded",n.toString());this.collapseButton.setAttribute("aria-expanded",n.toString());o.css(this.expandButton,"display",n?"none":"block")},t.init=function(n){s.apiDeprecated("RefineMenu.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-refine-menu",t.selectTypeProperty="data-js-select-type",t.singleSelectValue="single-select",t}(i.ObservableComponent);t.RefineMenu=h}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(4),i(5)],r=function(n,t,i,r){"use strict";var u=function(){function n(n){var t=this;(this.element=n,this.toggleRefineItem=function(){t.changeItemState(!t.isSelected())},this.element)&&(this.element.hasAttribute("role")?(this.isRadioItem=this.element.getAttribute("role")==="radio",this.ariaAttribute=this.isRadioItem?"aria-checked":"aria-selected"):(this.isUpdatedShape=!0,this.label=i.getText(i.selectFirstElement("span",this.element))),this.changeItemState(this.isSelected()),i.addEvent(this.element,i.eventTypes.click,this.toggleRefineItem))}return n.prototype.isSelected=function(){return this.isUpdatedShape?i.hasClass(this.element,n.selectedClass):this.element.getAttribute(this.ariaAttribute)==="true"},n.prototype.changeItemState=function(t){this.isUpdatedShape?t?(i.addClass(this.element,n.selectedClass),this.element.setAttribute(n.ariaLabel,r.format(n.selectedLabel,this.label))):(i.removeClass(this.element,n.selectedClass),this.element.setAttribute(n.ariaLabel,r.format(n.unSelectedLabel,this.label))):this.element.setAttribute(this.ariaAttribute,t.toString())},n.prototype.unselectItem=function(){this.changeItemState(!1)},n.prototype.teardown=function(){i.removeEvent(this.element,i.eventTypes.click,this.toggleRefineItem)},n.selector=".c-refine-item",n.selectedClass="f-selected",n.selectedLabel="Active refinement: {0}",n.unSelectedLabel="Refine by {0}",n.ariaLabel="aria-label",n}();t.RefineItem=u}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(9),i(6),i(50),i(4)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){n.call(this,t);this.update()}return f(t,n),t.prototype.update=function(){var l=this,n,r,c,a;if(this.element&&(this.select=e.selectFirstElementT("select",this.element),this.options=e.selectElementsT("option",this.select),this.select&&this.options)){for(!this.select.id&&this.element.id&&(this.select.id=this.element.id+"-select"),this.selectMenuDiv?this.selectMenuDiv.innerHTML="":this.selectMenuDiv=document.createElement("div"),n=document.createElement("button"),r=document.createElement("ul"),e.addClass(this.selectMenuDiv,"c-select-menu"),e.addClass(this.selectMenuDiv,"f-persist"),e.hasClass(this.element,"f-border")&&e.addClass(this.selectMenuDiv,"f-border"),e.hasClass(this.element,"f-accent")&&e.addClass(this.selectMenuDiv,"f-accent"),n.innerHTML=this.select.getAttribute(t.ariaLabel),n.setAttribute(t.ariaHaspopup,"true"),n.setAttribute(t.ariaExpanded,"false"),n.setAttribute("type","button"),n.setAttribute("tabindex","0"),e.addClass(r,"c-menu"),e.addClass(r,"f-scroll"),r.setAttribute(t.ariaHidden,"true"),r.setAttribute("role","listbox"),r.setAttribute("tabindex","0"),e.hasClass(this.element,"f-flex")&&e.addClass(this.selectMenuDiv,"f-flex"),this.select.hasAttribute("disabled")&&this.selectMenuDiv.setAttribute("aria-disabled","true"),this.select.hasAttribute("required")?this.selectMenuDiv.setAttribute("aria-required","true"):this.select.hasAttribute("aria-required")&&this.selectMenuDiv.setAttribute("aria-required",this.select.getAttribute("aria-required")),this.select.hasAttribute("aria-label")&&this.selectMenuDiv.setAttribute("aria-label",this.select.getAttribute("aria-label")),c=0,a=this.options;c<a.length;c++){var o=a[c],v=o.getAttribute("selected")==="selected",f=o.getAttribute("value"),s=document.createElement("li"),h=document.createElement("span");e.addClass(s,"c-menu-item");s.setAttribute("role","presentation");h.setAttribute("tabindex","0");h.setAttribute("role","option");v&&(h.setAttribute(t.ariaSelected,"true"),f!==null&&f!==undefined&&f.trim()!=""&&(n.innerHTML=e.getText(o)));f||(o.setAttribute("value",""),f=o.getAttribute("value"));!f||(s.id=this.select.id+"-"+f);h.appendChild(document.createTextNode(e.getText(o)));s.appendChild(h);r.appendChild(s)}this.selectMenuDiv.appendChild(n);this.selectMenuDiv.appendChild(r);this.element.appendChild(this.selectMenuDiv);this.ignoreNextDOMChange=!0;i.ComponentFactory.create([{component:u.SelectMenu,eventToBind:"DOMContentLoaded",elements:[this.selectMenuDiv],callback:function(n){!n&&!n.length||(l.selectMenu=n[0],l.selectMenu.subscribe(l))}}])}},t.prototype.teardown=function(){this.select=null;this.options=null;this.selectMenu=null},t.prototype.publish=function(n,t){n.onSelectionChanged(t)},t.prototype.onSelectionChanged=function(n){var t,r,i,u,f;if(!!n&&!!n.id){for(n.id=n.id.substr(this.select.id.length+1),this.select.value=n.id,t=0,r=this.options;t<r.length;t++)i=r[t],i.getAttribute("value")===n.id?i.setAttribute("selected","selected"):i.removeAttribute("selected");try{$(this.select).trigger("change")}catch(e){}!this.select.onchange||this.select.onchange();this.select.id=="verify-selector"&&(u=$(".verify-group"),f=$("#"+this.select.value).show(),u.not(f).hide());this.initiatePublish(n)}},t.selector=".c-select",t.ariaExpanded="aria-expanded",t.ariaHidden="aria-hidden",t.ariaHaspopup="aria-haspopup",t.ariaSelected="aria-selected",t.ariaLabel="aria-label",t}(r.Publisher);t.Select=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(9),i(6),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(i){var r=this;if(n.call(this,i),this.onTriggerClick=function(n){n=u.getEvent(n);u.preventDefault(n);r.disabled||r.onTriggerToggled()},this.onItemClick=function(n){n=u.getEvent(n);r.onItemSelected(u.getEventTargetOrSrcElement(n),!1,!0)},this.onNonSelectMenuClick=function(n){if(n=u.getEvent(n),!!r.element&&!!r.menu){var t=u.getEventTargetOrSrcElement(n);r.element.contains(t)||t!==r.menu&&t.parentElement!==r.menu&&r.collapse()}},this.onNonSelectMenuTab=function(n){n=u.getEvent(n);var t=e.getKeyCode(n);t===9&&r.collapse()},this.onTriggerKeyPress=function(n){n=u.getEvent(n);var t=e.getKeyCode(n);switch(t){case 13:case 32:u.preventDefault(n);r.disabled||r.onTriggerToggled()}},this.handleMenuKeydownEvent=function(n){n=u.getEvent(n);var t=e.getKeyCode(n);(t!==9||r.isExpanded())&&u.preventDefault(n);r.handleMenuKeydown(u.getEventTargetOrSrcElement(n),t)},i&&u.hasClass(i,t.universalHeaderMenuSelector)){n.prototype.unObserve.call(this);return}this.update()}f(t,n);t.prototype.update=function(){var r,t,i,f,n,e;if(this.element&&(this.persist=u.hasClass(this.element,"f-persist"),this.trigger=u.selectFirstElementT('[role="button"]',this.element),this.trigger||(this.trigger=u.selectFirstElementT("button",this.element)),this.menu=u.selectFirstElement(".c-menu",this.element),r=u.selectElementsT(".c-menu-item a",this.element),this.items=r.length>0?r:u.selectElementsT(".c-menu-item span",this.element),this.disabled=this.element.getAttribute("aria-disabled")==="true"?!0:!1,!!this.trigger&&!!this.menu&&!!this.items&&!!this.items.length)){for(t=null,i=0,f=this.items;i<f.length;i++)n=f[i],this.itemIsSelected(n)&&t===null?(t=n,n.setAttribute(this.getSelectedAttribute(n),"true")):n.setAttribute(this.getSelectedAttribute(n),"false"),n.setAttribute("tabindex","-1"),this.cleanSelectedAttributes(n),n.hasAttribute("role")||n.setAttribute("role","menuitem");e=this.isExpanded();this.onItemSelected(t,!0,!1);this.addEventListeners();e&&this.expand()}};t.prototype.teardown=function(){var n,t,i;for(u.removeEvent(this.trigger,u.eventTypes.click,this.onTriggerClick),u.removeEvent(this.trigger,u.eventTypes.keydown,this.onTriggerKeyPress),u.removeEvent(this.menu,u.eventTypes.keydown,this.handleMenuKeydownEvent,!0),n=0,t=this.items;n<t.length;n++)i=t[n],u.removeEvent(i,u.eventTypes.click,this.onItemClick);u.removeEvent(document,u.eventTypes.click,this.onNonSelectMenuClick);u.removeEvent(this.items[this.items.length-1],u.eventTypes.keydown,this.onNonSelectMenuTab);this.persist=!1;this.trigger=null;this.menu=null;this.items=null;this.selectedItem=null};t.prototype.setSelectedItem=function(n){return!n||!this.element?!1:this.onItemSelected(u.selectFirstElementT("li[id='"+n+"'] > a",this.element),!1,!1)};t.prototype.isExpanded=function(){return!!this.trigger&&!!this.menu&&this.trigger.getAttribute(t.ariaExpanded)==="true"&&this.menu.getAttribute(t.ariaHidden)==="false"};t.prototype.itemIsSelected=function(n){return n.getAttribute(t.ariaSelected)==="true"||n.getAttribute(t.ariaChecked)==="true"};t.prototype.getSelectedAttribute=function(n){return n.getAttribute("role")==="menuitemradio"?t.ariaChecked:t.ariaSelected};t.prototype.cleanSelectedAttributes=function(n){var i=this.getSelectedAttribute(n)===t.ariaSelected?t.ariaChecked:t.ariaSelected;n.removeAttribute(i)};t.prototype.expand=function(){if(!!this.trigger&&!!this.menu&&(this.trigger.setAttribute(t.ariaExpanded,"true"),this.menu.setAttribute(t.ariaHidden,"false"),!!this.items)){var n=this.items.indexOf(this.selectedItem),i=n===-1?0:n;this.items[i].focus()}};t.prototype.collapse=function(){!this.trigger||!this.menu||(this.trigger.setAttribute(t.ariaExpanded,"false"),this.menu.setAttribute(t.ariaHidden,"true"))};t.prototype.addEventListeners=function(){var n,t,i;if(!!this.trigger&&!!this.items){for(u.addEvent(this.trigger,u.eventTypes.click,this.onTriggerClick),u.addEvent(this.trigger,u.eventTypes.keydown,this.onTriggerKeyPress),u.addEvent(this.menu,u.eventTypes.keydown,this.handleMenuKeydownEvent,!0),n=0,t=this.items;n<t.length;n++)i=t[n],u.addEvent(i,u.eventTypes.click,this.onItemClick);u.addEvent(this.items[this.items.length-1],u.eventTypes.keydown,this.onNonSelectMenuTab);u.addEvent(document,u.eventTypes.click,this.onNonSelectMenuClick)}};t.prototype.onTriggerToggled=function(){this.isExpanded()?this.collapse():this.expand()};t.prototype.onItemSelected=function(n,t,i){return!n||n===this.selectedItem?(this.collapse(),!1):(this.persist&&this.trigger&&(this.trigger.innerHTML=u.getText(n)),this.selectedItem&&this.selectedItem.setAttribute(this.getSelectedAttribute(this.selectedItem),"false"),this.selectedItem=n,this.selectedItem.setAttribute(this.getSelectedAttribute(this.selectedItem),"true"),this.collapse(),this.initiatePublish({id:this.selectedItem.parentElement.id,href:this.selectedItem.getAttribute("href"),internal:t,userInitiated:i}),!0)};t.prototype.publish=function(n,t){if(!!this.selectedItem)n.onSelectionChanged(t)};t.prototype.handleMenuKeydown=function(n,t){function i(n,t){var f=(new Date).getTime(),i,u;if(f>o+1e3&&(r=""),r+=String.fromCharCode(t).toLowerCase(),o=(new Date).getTime(),r.length>1)for(i=0;i<n.length;i++)if(u=n[i],u.textContent.toLowerCase().indexOf(r)==0){u.focus();break}}switch(t){case 32:if(r.length>1&&(new Date).getTime()<o+1e3){i(this.items,t);break}else{this.handleMenuEnterKey(n);this.trigger.focus();break}case 13:this.handleMenuEnterKey(n);this.trigger.focus();break;case 27:this.trigger.focus();this.collapse();break;case 38:this.handleMenuArrowKey(!0,n);break;case 40:this.handleMenuArrowKey(!1,n);break;case 9:this.isExpanded()&&(this.handleMenuEnterKey(n),this.trigger.focus());break;default:i(this.items,t)}};var r="",o=0;return t.prototype.handleMenuArrowKey=function(n,t){var i=this.items.indexOf(t);i!==-1&&(i+=n?-1:1,i<0?i=this.items.length-1:i>=this.items.length&&(i=0),this.items[i].focus())},t.prototype.handleMenuEnterKey=function(n){this.onItemSelected(n,!1,!0)},t.init=function(n){e.apiDeprecated("SelectMenu.init() is deprecated, please use ComponentFactory.create() instead.");i.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-select-menu",t.ariaExpanded="aria-expanded",t.ariaHidden="aria-hidden",t.ariaSelected="aria-selected",t.ariaChecked="aria-checked",t.universalHeaderMenuSelector="js-nav-menu",t}(r.Publisher);t.SelectMenu=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var i=this;(n.call(this,t),this.onClick=function(){i.togglePressedState()},t)&&this.update()}return f(t,n),t.prototype.update=function(){if(this.buttonContainer=this.element.parentNode,this.buttonContainer){var n=this.buttonContainer.getAttribute(t.ariaLabelledBySelector);this.ariaLabelledByElement=document.getElementById(n);this.nameSelector='.c-select-button[name="'+this.element.getAttribute("name")+'"]';this.selectedText=this.element.getAttribute(t.selectedTextSelector);this.unselectedText=this.element.getAttribute(t.unselectedTextSelector);this.prepareSwatches();u.addEvent(this.element,u.eventTypes.click,this.onClick)}},t.prototype.teardown=function(){u.removeEvent(this.element,u.eventTypes.click,this.onClick)},t.prototype.prepareSwatches=function(){var n=this.element.getAttribute("data-select-button-swatch"),t=e.detectContrast(n);!t||(this.element.style.backgroundColor="#"+n,this.element.disabled&&(u.addClass(this.element,"f-swatch-disabled"),t===1&&u.addClass(this.element,"f-swatch-disabled-dark")))},t.prototype.togglePressedState=function(){var f=this.selectedText,n,i,r;if(this.element.getAttribute(t.multiSelectAttributeName))this.element.setAttribute(t.pressedAttributeName,this.isPressed()?"false":"true"),this.isPressed()||(f=this.unselectedText);else for(n=0,i=u.selectElements(this.nameSelector);n<i.length;n++)r=i[n],r.setAttribute(t.pressedAttributeName,r===this.element?"true":"false");u.setText(this.ariaLabelledByElement,f)},t.prototype.isPressed=function(){return this.element.getAttribute(t.pressedAttributeName)==="true"},t.init=function(n){e.apiDeprecated("SelectButton.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-select-button",t.pressedAttributeName="aria-pressed",t.multiSelectAttributeName="data-select-button-multiselect",t.selectedTextSelector="data-js-selected-text",t.unselectedTextSelector="data-js-unselected-text",t.ariaLabelledBySelector="aria-labelledby",t}(i.ObservableComponent);t.SelectButton=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(9),i(6),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var i=this;n.call(this,t);this.onKeyPressed=function(n){var t,r,f,e;switch(n){case 37:case 39:i.isVerticalSlider||(t=i.primaryDirection===u.Direction.left?i.stepOffset:-i.stepOffset,t=n===37?-t:t,i.updateThumbOffset(i.thumbOffset+t,!0,!0));break;case 38:case 40:i.isVerticalSlider&&(t=n===38?i.stepOffset:-i.stepOffset,i.updateThumbOffset(i.thumbOffset+t,!0,!0),u.getEvent(event).preventDefault());break;case 33:t=2*i.stepOffset;i.updateThumbOffset(i.thumbOffset+t,!0,!0);break;case 34:t=-(2*i.stepOffset);i.updateThumbOffset(i.thumbOffset+t,!0,!0);break;case 36:r=parseInt(i.input.getAttribute("min"),10)||0;i.updateThumbOffset(r,!0,!0);break;case 35:f=parseInt(i.input.getAttribute("step"),10);e=i.thumbRange+f;i.updateThumbOffset(e,!0,!0)}};this.onKeyDown=function(n){i.onKeyPressed(e.getKeyCode(u.getEvent(n)))};this.onMouseDown=function(n){if(n=u.getEvent(n),i.setupDimensions(),u.getEventTargetOrSrcElement(n)===i.thumb){u.addEvent(document,u.eventTypes.mousemove,i.onMouseMove);u.addEvent(document,u.eventTypes.mouseup,i.onMouseUp);return}i.moveThumbTo(n.clientX,n.clientY)};this.onMouseMove=function(n){n=u.getEvent(n);i.moveThumbTo(n.clientX,n.clientY)};this.onMouseUp=function(){u.removeEvent(document,u.eventTypes.mousemove,i.onMouseMove);u.removeEvent(document,u.eventTypes.mouseup,i.onMouseUp)};this.onWindowResized=function(){i.setupDimensions()};this.update()}return f(t,n),t.prototype.update=function(){if(this.element){this.input=u.selectFirstElement("input",this.element);this.primaryDirection=u.getDirection(this.element);this.isVerticalSlider=u.hasClass(this.input,"f-vertical");u.addClass(this.input,"x-screen-reader");var n=parseInt(this.input.getAttribute("min"),10)||0,t=parseInt(this.input.getAttribute("max"),10)||100,i=parseInt(this.input.getAttribute("value"),10),r=parseInt(this.input.getAttribute("step"),10);this.element.children[this.element.children.length-1]===this.input?(this.mockSlider=document.createElement("div"),this.thumb=document.createElement("button"),this.thumb.setAttribute("role","slider"),this.thumb.setAttribute("aria-valuemin",n.toString()),this.thumb.setAttribute("aria-valuemax",t.toString()),this.thumb.setAttribute("aria-valuenow",i.toString()),this.valueTooltip=document.createElement("span"),this.track=document.createElement("span"),this.thumb.appendChild(this.valueTooltip),this.mockSlider.appendChild(this.thumb),this.mockSlider.appendChild(this.track),this.element.appendChild(this.mockSlider),this.ignoreNextDOMChange=!0):(this.mockSlider=this.element.children[this.element.children.length-1],this.thumb=this.mockSlider.firstElementChild,this.valueTooltip=this.thumb.firstElementChild,this.track=this.mockSlider.children[this.mockSlider.children.length-1]);this.halfThumbOffset=this.thumb.clientWidth/2;this.resetSliderInternal(n,t,i,r,!0)&&(u.addEvent(this.element,u.eventTypes.mousedown,this.onMouseDown),u.addEvent(this.thumb,u.eventTypes.keydown,this.onKeyDown),this.resizeListener=u.addDebouncedEvent(window,u.eventTypes.resize,this.onWindowResized))}},t.prototype.teardown=function(){u.removeEvent(this.element,u.eventTypes.mousedown,this.onMouseDown);u.removeEvent(this.thumb,u.eventTypes.keydown,this.onKeyDown);u.removeEvent(window,u.eventTypes.resize,this.resizeListener);this.input=null;this.mockSlider=null;this.thumb=null;this.valueTooltip=null;this.track=null;this.resizeListener=null},t.prototype.resetSlider=function(n,t,i,r){return this.resetSliderInternal(n,t,i,r,!1)},t.prototype.resetSliderInternal=function(n,t,i,r,u){return!e.isNumber(n)||!e.isNumber(t)?!1:Math.max(n,t)-Math.min(n,t)<=0?!1:(this.min=Math.min(n,t),this.max=Math.max(n,t),this.range=this.max-this.min,this.step=isNaN(r)?this.range/10:r,this.value=Math.min(Math.max(isNaN(i)?isNaN(this.value)?this.min:this.value:i,this.min),this.max),this.setupDimensions(),this.updateThumbOffset(this.thumbOffset,u,!1),!0)},t.prototype.setValue=function(n){return!e.isNumber(n)||n<this.min||n>this.max?!1:(n!==this.value&&(this.thumbOffset=(n-this.min)*this.thumbRange/this.range+this.halfThumbOffset,this.updateThumbOffset(this.thumbOffset,!1,!1)),!0)},t.prototype.setupDimensions=function(){this.dimensions=u.getClientRect(this.mockSlider);this.isVerticalSlider?(this.dimensions.left-=t.hitPadding,this.dimensions.right+=t.hitPadding,this.thumbRange=this.dimensions.height-this.thumb.clientWidth,this.maxThumbOffset=this.dimensions.height):(this.dimensions.top-=t.hitPadding,this.dimensions.bottom+=t.hitPadding,this.thumbRange=this.dimensions.width-this.thumb.clientWidth,this.maxThumbOffset=this.dimensions.width);this.thumbRange=Math.max(this.thumbRange,1);this.thumbOffset=(this.value-this.min)*this.thumbRange/this.range+this.halfThumbOffset;this.stepOffset=this.thumbRange/(this.range/this.step);this.setThumbPosition()},t.prototype.setThumbPosition=function(){var n=Math.max(0,this.thumbOffset-this.halfThumbOffset);u.css(this.thumb,u.Direction[this.primaryDirection],n+"px");u.css(this.track,"width",n+"px")},t.prototype.updateThumbOffset=function(n,t,i){e.isNumber(n)||(n=this.thumbOffset);this.thumbOffset=Math.min(Math.max(0,n),this.maxThumbOffset);var r=Math.max(0,this.thumbOffset-this.halfThumbOffset)*1e3*this.range/this.thumbRange;r=Math.round(r)/1e3+this.min;this.value=Math.min(Math.max(this.min,r),this.max);this.valueTooltipText=null;this.initiatePublish({value:this.value,internal:t,userInitiated:i});this.valueTooltipText||(this.valueTooltipText=Math.round(this.value).toString());isNaN(parseFloat(this.valueTooltipText))||this.valueTooltipText.match(":")?(this.input.setAttribute("value",r.toString()),this.thumb.setAttribute("aria-valuenow",r.toString()),this.thumb.setAttribute("aria-valuetext",this.valueTooltipText)):(this.input.setAttribute("value",this.valueTooltipText),this.thumb.setAttribute("aria-valuenow",this.valueTooltipText));this.valueTooltip.innerHTML=this.valueTooltipText;this.setThumbPosition()},t.prototype.publish=function(n,t){var i=n.onValueChanged(t);!i||this.valueTooltipText||(this.valueTooltipText=i)},t.prototype.moveThumbTo=function(n,t){if(e.pointInRect(n,t,this.dimensions)){var i=this.dimensions.bottom-t;this.isVerticalSlider||(i=this.primaryDirection===u.Direction.left?n-this.dimensions.left:this.dimensions.right-n);this.updateThumbOffset(i,!0,!0)}},t.init=function(n){e.apiDeprecated("Slider.init() is deprecated, please use ComponentFactory.create() instead.");i.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-slider",t.hitPadding=20,t}(r.Publisher);t.Slider=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var i=this;(n.call(this,t),this.element=t,this.ariaExpanded="aria-expanded",this.buttonToggle="data-js-toggle",this.ariaHidden="aria-hidden",this.hideClass="f-hide",this.isHidden=!0,this.iconOverflowThresholdLength=4,this.maxIconShowCount=this.iconOverflowThresholdLength-1,this.handleMouseUp=function(){i.handleToggle(!1)},this.handleKeydown=function(n){n=u.getEvent(n);var r=e.getKeyCode(n),t=u.getEventTargetOrSrcElement(n);switch(r){case 9:!i.isHidden&&t===i.icons[i.maxIconShowCount]&&n.shiftKey&&(u.preventDefault(n),i.handleToggle(!1),i.toggle.focus());break;case 13:t===i.toggle&&i.handleToggle(!0)}},this.handleToggle=function(n){i.isHidden?i.toggleIcons(!1,n):i.toggleIcons(!0,n);i.ariaExpanded&&i.toggle.setAttribute(i.ariaExpanded,(!i.isHidden).toString());i.toggle.setAttribute(i.buttonToggle,(!i.isHidden).toString())},this.toggleIcons=function(n,t){for(var r=0;r<i.maxIconShowCount;r++)n?u.removeClass(i.icons[r],i.hideClass):u.addClass(i.icons[r],i.hideClass);for(r=i.maxIconShowCount;r<i.icons.length;r++)n?u.addClass(i.icons[r],i.hideClass):u.removeClass(i.icons[r],i.hideClass);t&&(n?i.icons[0].focus():i.icons[i.maxIconShowCount].focus());i.isHidden=n},t)&&this.update()}return f(t,n),t.prototype.update=function(){(this.icons=u.selectElementsT('a[itemprop="sameAs"]',this.element),this.icons&&this.icons.length)&&(this.toggle=u.selectFirstElement("button",this.element),this.toggle&&(u.addEvent(this.toggle,u.eventTypes.mouseup,this.handleMouseUp),u.addEvent(this.element,u.eventTypes.keydown,this.handleKeydown),this.icons.length>this.iconOverflowThresholdLength&&(this.toggle.setAttribute(this.ariaHidden,"false"),this.ariaExpanded?this.toggle.setAttribute(this.ariaExpanded,"false"):this.toggle.setAttribute(this.buttonToggle,"false"),this.toggleIcons(!0,!1))))},t.prototype.teardown=function(){u.removeEvent(this.toggle,u.eventTypes.mouseup,this.handleMouseUp);u.removeEvent(this.element,u.eventTypes.keydown,this.handleKeydown)},t.init=function(n){e.apiDeprecated("Social.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".m-social",t}(i.ObservableComponent);t.Social=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(4),i(3),i(9),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var r=this;n.call(this,t);this.onExpandableItemClicked=function(n){r.setExpandedItem(i.getEventTargetOrSrcElement(n))};this.onActivatableItemClicked=function(n){r.setActiveItem(i.getEventTargetOrSrcElement(n))};this.keydownEventListener=function(n){r.itemKeydownHandler(i.getEventTargetOrSrcElement(n),e.getKeyCode(n))&&i.preventDefault(n)};this.update()}return f(t,n),t.prototype.update=function(){var r,u,e,f,o,n;if(!this.element)return null;for(this.items=i.selectElements(t.itemSelector,this.element),r=i.selectElements("."+t.activeSelector,this.element),this.activeItem=r?r.shift():null,u=0,e=r;u<e.length;u++)n=e[u],i.removeClass(n,t.activeSelector);if(this.syncExpandedItem(),this.items&&this.items.length){for(f=0,o=this.items;f<o.length;f++)n=o[f],this.isExpandable(n)?i.addEvent(n,i.eventTypes.click,this.onExpandableItemClicked):i.addEvent(n,i.eventTypes.click,this.onActivatableItemClicked);i.addEvent(this.items,i.eventTypes.keydown,this.keydownEventListener)}},t.prototype.teardown=function(){var n,r,t;if(this.items&&this.items.length){for(n=0,r=this.items;n<r.length;n++)t=r[n],this.isExpandable(t)?i.removeEvent(t,i.eventTypes.click,this.onExpandableItemClicked):i.removeEvent(t,i.eventTypes.click,this.onActivatableItemClicked);i.removeEvent(this.items,i.eventTypes.keydown,this.keydownEventListener)}this.items=null;this.activeItem=null;this.expandedItem=null},t.prototype.setExpandedItem=function(n){!n||n===this.expandedItem||(this.collapseItem(this.expandedItem),this.expandItem(n))},t.prototype.setActiveItem=function(n){!n||!n.parentElement||n.parentElement.getAttribute("aria-hidden")==="false"||(this.expandedItem=null);!n||n===this.activeItem||(i.removeClass(this.activeItem,t.activeSelector),this.activeItem=n,i.addClass(this.activeItem,t.activeSelector),this.syncExpandedItem())},t.prototype.expandItem=function(n){var r,f,u,e,o;if(!!n&&(r=this.getExpandableElementForExpandableItem(n),f=this.getExpandableElementForExpandableItem(this.expandedItem),!!r&&(!f||r!==f)))for(n.setAttribute("data-state",t.stateNames.expanded),r.setAttribute("aria-hidden","false"),r.style.height="auto",r.style.overflow="visible",this.collapseItem(this.expandedItem),this.expandedItem=n,u=0,e=i.selectElements(t.itemSelector,r);u<e.length;u++)o=e[u],o.removeAttribute(t.tabIndexAttribute)},t.prototype.collapseItem=function(n){var r,u,f,e;if(!!n&&(r=document.getElementById(n.getAttribute("aria-controls")),!!r))for(n.setAttribute("data-state",t.stateNames.collapsed),r.setAttribute("aria-hidden","true"),r.style.height="0",r.style.overflow="hidden",u=0,f=i.selectElements(t.itemSelector,r);u<f.length;u++)e=f[u],e.setAttribute(t.tabIndexAttribute,"-1")},t.prototype.isExpandable=function(n){return!!n&&n.hasAttribute("data-state")&&n.hasAttribute("aria-controls")?!0:!1},t.prototype.syncExpandedItem=function(){var t,r,i,u,n;if(this.items&&this.items.length&&this.activeItem&&(t=this.getExpandableElementForActiveItem(),r=this.getExpandableElementForExpandableItem(this.expandedItem),!r||r!==t))for(i=0,u=this.items;i<u.length;i++)n=u[i],this.isExpandable(n)&&(!t||this.getExpandableElementForExpandableItem(n)!==t?this.collapseItem(n):this.expandItem(n))},t.prototype.getExpandableElementForActiveItem=function(){return!!this.activeItem&&!!this.activeItem.parentElement&&this.activeItem.parentElement.hasAttribute("id")?this.activeItem.parentElement:null},t.prototype.getExpandableElementForExpandableItem=function(n){return this.isExpandable(n)&&!!n.nextElementSibling?n.nextElementSibling:null},t.prototype.itemKeydownHandler=function(n,t){if(!n||!t)return!1;switch(t){case 32:case 13:if(this.isExpandable(n))return this.setExpandedItem(n),!0}return!1},t.init=function(n){e.apiDeprecated("SupplementalNavigation.init() is deprecated, please use ComponentFactory.create() instead.");u.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".m-supplemental-nav",t.activeSelector="f-active",t.itemSelector="a, button",t.tabIndexAttribute="tabindex",t.dateState="data-state",t.stateNames={expanded:"expanded",collapsed:"collapsed"},t}(r.ObservableComponent);t.SupplementalNavigation=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(9),i(3),i(4),i(10),i(5)],r=function(n,t,i,r,u,e,o){"use strict";var s=function(n){function t(t){var i=this;n.call(this,t);this.onSortButtonClicked=function(n){for(var t=n.currentTarget||u.getEventTargetOrSrcElement(n),r;t!==i.element;){if(t.getAttribute("data-sort-index")){r=t;break}t=t.parentElement}r&&i.reSort(r)};this.onSortButtonKeydown=function(n){var o,h,s,c,t;if(e.getKeyCode(n)===9||e.getVirtualKey(n)==="Tab"){var l=n.currentTarget||u.getEventTargetOrSrcElement(n),r=void 0,f=void 0;if(n.shiftKey){for(o=0,h=i.columnInfos;o<h.length;o++)if(t=h[o],t&&t.button)if(t.button===l){r=t;break}else f=t}else for(s=0,c=i.columnInfos;s<c.length;s++)if(t=c[s],t&&t.button)if(t.button===l)r=t;else if(r){f=t;break}r&&f&&(u.preventDefault(n),f.button.focus())}};this.update()}return f(t,n),t.prototype.update=function(){this.element&&(this.sortableTable=u.selectFirstElementT('table[data-f-sort="true"]',this.element),!this.sortableTable||this.ariaLiveRegion||(this.ariaLiveRegion=document.createElement("p"),u.addClass(this.ariaLiveRegion,"x-screen-reader"),this.ariaLiveRegion.setAttribute("aria-live","polite"),this.element.appendChild(this.ariaLiveRegion),this.ascendingLocString=this.element.getAttribute("data-f-loc-ascending")||"Sorted by {0} - ascending",this.descendingLocString=this.element.getAttribute("data-f-loc-dascending")||"Sorted by {0} - descending"),this.reloadTable())},t.prototype.teardown=function(){for(var f,t,e,i,n=0,r=u.selectElementsT("thead > tr",this.sortableTable);n<r.length;n++)for(f=r[n],t=0,e=f.cells.length;t<e;t++)i=f.cells[t],u.hasClass(i,"f-sortable")&&(u.removeEvent(i.firstElementChild,u.eventTypes.click,this.onSortButtonClicked),u.removeEvent(i.firstElementChild,u.eventTypes.keydown,this.onSortButtonKeydown));this.sortableTable=null;this.tableBody=null;this.originalRows=null;this.columnInfos=null},t.prototype.alertUserToSorting=function(n,t){var i=this;this.ariaLiveRegion&&(u.setText(this.ariaLiveRegion,o.format(t,n)),setTimeout(function(){i.ignoreNextDOMChange=!0;u.removeInnerHtml(i.ariaLiveRegion)},3e3))},t.prototype.reloadTable=function(){this.sortableTable&&(this.tableBody||(this.tableBody=u.selectFirstElementT("tbody",this.sortableTable)),this.originalRows=null,!this.tableBody||(this.originalRows=u.selectElementsT("tr",this.tableBody),this.rebuildSortInfo()))},t.prototype.rebuildSortInfo=function(){var n,r,i,t,u,f,e;if(this.originalRows&&this.originalRows.length&&(this.columnInfos&&this.columnInfos.length||this.rebuildColumnInfo(),this.columnInfos&&this.columnInfos.length))for(n=0,r=this.columnInfos.length;n<r;n++)if(this.columnInfos[n]){for(i=[],t=0,u=this.originalRows.length;t<u;t++)f=this.originalRows[t],e=new h(t,this.getSortKey(f.cells[n])),i.push(e);this.columnInfos[n].sortOrder=i}},t.prototype.rebuildColumnInfo=function(){var h=u.selectElementsT("thead > tr",this.sortableTable),t,y,n,e,p,i,r,w,l,b,a,o,s,v,f;for(this.columnInfos=[],t=0,y=h.length;t<y;t++)for(n=this.findNextNull(this.columnInfos,0),e=0,p=h[t].cells.length;e<p;e++)if(i=h[t].cells[e],u.hasClass(i,"f-sortable"))r=i.firstElementChild,w=new c(i,r),i.setAttribute("aria-sort","none"),r.setAttribute("data-sort-index",n.toString()),u.addClass(r,"c-glyph"),u.addEvent(r,u.eventTypes.click,this.onSortButtonClicked),u.addEvent(r,u.eventTypes.keydown,this.onSortButtonKeydown),this.columnInfos[n]=w,n=this.findNextNull(this.columnInfos,n+1);else if(t===0)for(l=0,b=i.colSpan;l<b;l++)this.columnInfos.push(null),n++;else n++;if(this.columnInfos.length>2)for(a=void 0,o=void 0,s=0,v=this.columnInfos;s<v.length;s++)f=v[s],f&&f.button&&(a?(o&&o.button.setAttribute("tabIndex","-1"),o=f):a=f)},t.prototype.findNextNull=function(n,t){for(var i=t,r=n.length;i<r;i++)if(!n[i])return i;return n.length},t.prototype.reSort=function(n){var t=this.columnInfos[parseInt(n.getAttribute("data-sort-index"),10)],r=t.header.getAttribute("aria-sort"),i=r!=="ascending";this.clearSortIndicators();this.reorderTableRows(t,i);i?(t.header.setAttribute("aria-sort","ascending"),u.addClass(t.button,"f-ascending"),this.alertUserToSorting(u.getText(n),this.ascendingLocString)):(t.header.setAttribute("aria-sort","descending"),u.addClass(t.button,"f-descending"),this.alertUserToSorting(u.getText(n),this.descendingLocString))},t.prototype.clearSortIndicators=function(){for(var n,t=0,i=this.columnInfos;t<i.length;t++)(n=i[t],n)&&(n.header.setAttribute("aria-sort","none"),u.removeClass(n.button,"f-descending"),u.removeClass(n.button,"f-ascending"))},t.prototype.reorderTableRows=function(n,t){var r=this.tableBody.rows.length,i,u;for(n.ensureColumnInfoIsSorted(),this.ignoreNextDOMChange=!0,i=0;i<r;i++)u=t?n.sortOrder[i]:n.sortOrder[r-i-1],this.tableBody.appendChild(this.originalRows[u.originalRowIndex])},t.prototype.getSortKey=function(n){if(u.hasClass(n,"f-numerical")){if(u.selectElements('[content="0.00"]',n).length>0)return"";var r=n.textContent||n.innerText,i=r.match(t.floatRegEx);if(!!i)return i[0]}return(n.textContent||n.innerText).trim()},t.selector=".c-table",t.floatRegEx=/(\d+|\,|\.)+/g,t}(r.ObservableComponent),h,c;t.Table=s;h=function(){function n(n,t){this.originalRowIndex=n;this.key=t}return n}();c=function(){function n(n,t){this.header=n;this.button=t}return n.prototype.ensureColumnInfoIsSorted=function(){this.sortOrder&&!this.isSorted&&(this.sortOrder.sort(function(n,t){var i=n.key,r=t.key,u,f;return i===r?0:(u=parseFloat(i),f=parseFloat(r),isNaN(u)||isNaN(f))?i>r?1:-1:u>f?1:-1}),this.isSorted=!0)},n.init=function(n){e.apiDeprecated("Table.init() is deprecated, please use ComponentFactory.create() instead.");i.ComponentFactory.create([{component:s,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},n}()}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(9),i(4),i(10)],r=function(n,t,i,r,u,e){"use strict";var o=function(n){function t(t){var i=this;(n.call(this,t),this.ariaCheckedString="aria-checked",this.toggleCheckedState=function(){i.isChecked()?i.uncheckToggle():i.checkToggle()},t)&&this.update()}return f(t,n),t.prototype.update=function(){(this.toggleButton=u.selectFirstElementT("button",this.element),this.toggleIndicatorElement=u.selectFirstElement("button + span",this.element),this.toggleIndicatorElement&&this.toggleButton)&&(this.checkedString=this.toggleIndicatorElement.getAttribute("data-on-string"),this.uncheckedString=this.toggleIndicatorElement.getAttribute("data-off-string"),this.isDisabled()?this.disableToggle():this.enableToggle(),this.toggleIndicatorElement.innerHTML=this.isChecked()?this.checkedString:this.uncheckedString,u.addEvent(this.toggleButton,u.eventTypes.click,this.toggleCheckedState),u.addEvent(this.toggleIndicatorElement,u.eventTypes.click,this.toggleCheckedState))},t.prototype.teardown=function(){u.removeEvent(this.toggleButton,u.eventTypes.click,this.toggleCheckedState);u.removeEvent(this.toggleIndicatorElement,u.eventTypes.click,this.toggleCheckedState)},t.prototype.checkToggle=function(){this.setToggleCheckedState(!0)},t.prototype.disableToggle=function(){u.addClass(this.element,"f-disabled")},t.prototype.enableToggle=function(){u.removeClass(this.element,"f-disabled")},t.prototype.isChecked=function(){return this.toggleButton.getAttribute(this.ariaCheckedString)==="true"},t.prototype.isDisabled=function(){return this.toggleButton.hasAttribute("disabled")},t.prototype.setToggleCheckedState=function(n){this.toggleButton.setAttribute(this.ariaCheckedString,n.toString());this.toggleIndicatorElement.innerHTML=n?this.checkedString:this.uncheckedString},t.prototype.uncheckToggle=function(){this.setToggleCheckedState(!1)},t.init=function(n){e.apiDeprecated("Toggle.init() is deprecated, please use ComponentFactory.create() instead.");r.ComponentFactory.create([{component:t,selector:n?n.selector:null,eventToBind:n?n.eventToBind:null}])},t.selector=".c-toggle",t}(i.ObservableComponent);t.Toggle=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(58),i(59),i(10),i(4),i(5)],r=function(n,t,i,r,u,f,e){"use strict";var o=function(){function n(t){var r=this;if(this.videoComponent=t,this.canPlay=!1,this.errorMessageDisplayed=!1,this.onMouseEvent=function(n){if(n=f.getEvent(n),n.type==="mouseover")!r.controlPanelTimer||window.clearTimeout(r.controlPanelTimer),r.showControlPanel();else if(n.type==="mouseout"){for(var t=n.toElement||n.relatedTarget;t&&t.parentNode&&t.parentNode!==window;){if(t.parentNode===r||t===r){f.preventDefault(n);return}t=t.parentNode}r.startControlPanelTimeout()}},this.onVideoMetadataLoaded=function(){!r.videoControls||!r.videoPlayer||(r.canPlay=!1,r.videoControls.setDuration(r.videoPlayer.duration),r.videoPlayer.getAttribute("autoplay")!==null&&r.play())},this.onVideoTimeUpdate=function(){!r.videoControls||!r.videoPlayer||(r.videoControls.setPlayPosition(r.videoPlayer.currentTime),r.closedCaptions&&r.closedCaptions.updateCaptions(r.videoPlayer.currentTime))},this.onVideoPlayStateChanged=function(n){r.canPlay=r.canPlay||n.type==="canplay"||n.type==="canplaythrough";!r.videoControls||r.videoControls.updatePlayPauseState()},this.onVideoPlayerClicked=function(){r.isPlayable&&(r.isPaused()?r.play():r.pause())},this.onVideoEnded=function(){!r.videoControls||(r.videoControls.setPlayPosition(0),r.videoControls.updatePlayPauseState());r.closedCaptions&&r.closedCaptions.updateCaptions(0)},this.onResized=function(){!r.videoComponent||!r.triggerParagraph||(u.getDimensions(r.videoComponent).width<u.Viewports.allWidths[2]?r.triggerParagraph.setAttribute(n.ariaHidden,"true"):r.triggerParagraph.removeAttribute(n.ariaHidden))},t){if(this.videoPlayer=f.selectFirstElementT(".f-video-player",this.videoComponent),this.videoControlsContainer=f.selectFirstElement(".f-video-controls",this.videoComponent),this.videoControls=new i.VideoControls(this.videoControlsContainer,this),!this.videoPlayer||!this.videoPlayer.canPlayType)return null;this.initializeClosedCaptions();this.triggerContainer=f.selectFirstElement("section",this.videoComponent);!this.triggerContainer||(this.trigger=f.selectFirstElement(".c-action-trigger",this.triggerContainer),this.triggerParagraph=f.selectFirstElement("p",this.triggerContainer),this.triggerParagraph&&(this.resizeListener=f.addThrottledEvent(window,f.eventTypes.resize,this.onResized),this.onResized()));this.videoControlsContainer&&this.videoControls&&(this.videoControls.setMuted(this.videoPlayer.getAttribute("muted")!==null),this.videoControls.setVolume(parseInt(u.getCookie(n.cookieVolume)||"1",10)),f.addEvents(this.videoComponent,"mouseover mouseout",this.onMouseEvent),f.addEvents(this.videoPlayer,"canplay canplaythrough waiting",this.onVideoPlayStateChanged),f.addEvent(this.videoPlayer,f.eventTypes.loadedmetadata,this.onVideoMetadataLoaded),f.addEvent(this.videoPlayer,f.eventTypes.timeupdate,this.onVideoTimeUpdate),f.addEvent(this.videoPlayer,f.eventTypes.ended,this.onVideoEnded),f.addEvent(this.videoPlayer,f.eventTypes.click,this.onVideoPlayerClicked),this.startControlPanelTimeout())}}return n.prototype.startControlPanelTimeout=function(){var t=this;this.controlPanelTimer=window.setTimeout(function(){t.hideControlPanel()},n.controlPanelTimeout)},n.prototype.hideControlPanel=function(){!this.controlPanelTimer||window.clearTimeout(this.controlPanelTimer);!this.videoControlsContainer||f.hasClass(this.videoControlsContainer,n.showControlsClass)&&(f.removeClass(this.videoControlsContainer,n.showControlsClass),f.addClass(this.videoControlsContainer,n.hideControlsClass),!this.ccOverlay||(f.removeClass(this.ccOverlay,n.fitControlsClass),this.closedCaptions&&this.videoPlayer&&this.closedCaptions.updateCaptions(this.videoPlayer.currentTime)));!this.videoControls||this.videoControls.prepareToHide()},n.prototype.showControlPanel=function(){!this.videoControlsContainer||this.errorMessageDisplayed||f.hasClass(this.videoControlsContainer,n.hideControlsClass)&&(f.removeClass(this.videoControlsContainer,n.hideControlsClass),f.addClass(this.videoControlsContainer,n.showControlsClass),!this.ccOverlay||(f.addClass(this.ccOverlay,n.fitControlsClass),this.closedCaptions&&this.videoPlayer&&this.closedCaptions.updateCaptions(this.videoPlayer.currentTime)))},n.prototype.isPaused=function(){return!this.videoPlayer?!1:this.videoPlayer.paused},n.prototype.isPlayable=function(){return!this.videoPlayer?!1:this.canPlay},n.prototype.play=function(){!this.videoPlayer||this.videoPlayer.play();!this.videoControls||this.videoControls.updatePlayPauseState()},n.prototype.pause=function(){!this.videoPlayer||this.videoPlayer.pause();!this.videoControls||this.videoControls.updatePlayPauseState()},n.prototype.setPlayPosition=function(t){u.isNumber(t)&&!!this.videoPlayer&&(t=Math.max(0,Math.min(t,u.isNumber(this.videoPlayer.duration)?this.videoPlayer.duration:0)),Math.abs(t-this.videoPlayer.currentTime)>=n.positionUpdateThreshold&&(this.videoPlayer.currentTime=t))},n.prototype.getVolume=function(){return!!this.videoPlayer&&u.isNumber(this.videoPlayer.volume)?this.videoPlayer.volume:0},n.prototype.setVolume=function(t){u.isNumber(t)&&!!this.videoPlayer&&(t=Math.round(Math.max(0,Math.min(t,1))*100)/100,t!==this.videoPlayer.volume&&(this.videoPlayer.volume=t,u.setCookie(n.cookieVolume,t.toString(),"/",365),!this.videoControls||this.videoControls.setVolume(t)))},n.prototype.isMuted=function(){return!this.videoPlayer?!0:this.videoPlayer.muted},n.prototype.setMuted=function(n){!this.videoPlayer||n===this.videoPlayer.muted||(this.videoPlayer.muted=n,!this.videoControls||this.videoControls.setMuted(n))},n.prototype.setFullscreen=function(){if(!!this.videoPlayer&&(this.videoPlayer.requestFullscreen||this.videoPlayer.msRequestFullscreen||this.videoPlayer.mozRequestFullScreen||this.videoPlayer.webkitRequestFullscreen||this.videoPlayer.webkitSupportsFullscreen)){var n=document.fullScreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,t=document.cancelFullScreen||document.msExitFullscreen||document.mozCancelFullScreen||document.webkitCancelFullScreen||document.webkitCancelFullScreen,i=this.videoPlayer.requestFullscreen||this.videoPlayer.msRequestFullscreen||this.videoPlayer.mozRequestFullScreen||this.videoPlayer.webkitRequestFullscreen||this.videoPlayer.webkitEnterFullScreen;n&&t();i.call(this.videoPlayer)}},n.prototype.initializeClosedCaptions=function(){(this.ccOverlay=f.selectFirstElement(".f-video-cc-overlay",this.videoComponent),this.ccOverlay)&&(this.closedCaptions=new r.VideoClosedCaptions(this.ccOverlay),this.initializeClosedCaptionsMenu())},n.prototype.initializeClosedCaptionsMenu=function(t){var e,r,o,h,c,s,l,i;if(this.ccOverlay&&this.closedCaptions){if(!t&&(t=[],r=f.selectElementsT("ul[data-video-sub-options=f-video-captions] li a[data-video-selectable]",this.videoComponent),r))for(r=r.slice(1),o=0,h=r;o<h.length;o++){var i=h[o],a=this.removeIdPrefix(i.parentElement.id),v=i.parentElement.getAttribute("aria-selected")==="true";v&&(e=a);t.push({id:a,value:f.getText(i),selected:v,href:i.href})}if(!t||!t.length){this.ccOptions=null;return}for(c=u.getCookie(n.cookieCcPreference),c&&(e=c),s=0,l=t;s<l.length;s++)i=l[s],e&&(i.selected=e===i.id),i.id=this.addIdPrefix(i.id);this.ccOptions=t;this.videoControls.setOptions({category:"f-video-captions",options:t})}},n.prototype.onOptionChanged=function(n){switch(n.category){case"f-video-captions":this.setCC(n.id);break;case"f-video-quality":this.setQuality(n.id);break;case"f-video-share":this.shareVideo(n.id)}},n.prototype.setCC=function(t){var i,r,f,e;if(this.closedCaptions){if(i=null,t&&this.ccOptions)for(r=0,f=this.ccOptions;r<f.length;r++)if(e=f[r],e.id===t){i=e;break}t=this.removeIdPrefix(t);this.closedCaptions.setCcLanguage(t,i?i.href:null);u.setCookie(n.cookieCcPreference,t,"/",365)}},n.prototype.setQuality=function(){},n.prototype.shareVideo=function(){},n.prototype.addIdPrefix=function(n){var t=this.videoComponent&&this.videoComponent.id?this.videoComponent.id+"-":null;return t&&!e.startsWith(n,t,!1)?t+n:n},n.prototype.removeIdPrefix=function(n){var t=this.videoComponent&&this.videoComponent.id?this.videoComponent.id+"-":null;return t&&e.startsWith(n,t,!1)?n.substring(t.length):n},n.prototype.showTrigger=function(){!this.triggerContainer||this.triggerContainer.setAttribute(n.ariaHidden,"false")},n.prototype.hideTrigger=function(){!this.triggerContainer||this.triggerContainer.setAttribute(n.ariaHidden,"true")},n.prototype.displayErrorMessage=function(t){if(t&&(t.title||t.message)){if(this.errorMessageDisplayed=!0,!this.errorMessage){this.errorMessage={};this.errorMessage.container=document.createElement("div");var i=document.createElement("div");this.errorMessage.title=document.createElement("p");this.errorMessage.message=document.createElement("p");this.errorMessage.container.setAttribute("role","status");this.errorMessage.title.setAttribute("class","c-heading");this.errorMessage.message.setAttribute("class","c-paragraph");!t.title||f.setText(this.errorMessage.title,t.title);!t.message||f.setText(this.errorMessage.message,t.message);this.errorMessage.container.appendChild(i);i.appendChild(this.errorMessage.title);i.appendChild(this.errorMessage.message);this.videoComponent.appendChild(this.errorMessage.container)}else f.setText(this.errorMessage.title,t.title||""),f.setText(this.errorMessage.message,t.message||""),this.errorMessage.container.setAttribute(n.ariaHidden,"false");this.hideControlPanel();this.hideTrigger()}},n.prototype.hideErrorMessage=function(){!this.errorMessage||!this.errorMessage.container||(this.errorMessage.container.setAttribute(n.ariaHidden,"true"),this.errorMessageDisplayed=!1)},n.selector=".c-video",n.showControlsClass="f-slidein",n.hideControlsClass="f-slideout",n.fitControlsClass="f-overlay-slidein",n.ariaHidden="aria-hidden",n.cookieVolume="vidvol",n.cookieCcPreference="vidccpref",n.positionUpdateThreshold=.1,n.controlPanelTimeout=3500,n}();t.Video=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(9),i(52),i(10),i(4)],r=function(n,t,i,r,u,f){"use strict";var e=function(){function n(t,u){var e=this,o,s;if(this.videoControls=t,this.onPlayPauseEvents=function(t){t.type==="click"?!e.videoPlayer||(e.videoPlayer.isPaused()?e.play():e.pause()):t.type==="mouseover"?!e.playTooltip||f.removeClass(e.playTooltip,n.screenReaderOnlyClass):t.type==="mouseout"&&(!e.playTooltip||f.addClass(e.playTooltip,n.screenReaderOnlyClass))},this.onVolumeEvents=function(n){n.type==="click"?f.getEventTargetOrSrcElement(n)===e.volumeButton&&e.setMuted(!e.videoPlayer.isMuted()):n.type==="mouseover"||n.type==="focus"?e.showVolumeContainer():(n.type==="mouseout"||n.type==="blur")&&e.hideVolumeContainer()},this.onVolumeSliderEvents=function(n){n.type==="focus"?e.showVolumeContainer():n.type==="blur"&&e.hideVolumeContainer()},this.onFullScreenEvents=function(t){t.type==="click"?!e.videoPlayer||e.videoPlayer.setFullscreen():t.type==="mouseover"?!e.fullScreenTooltip||e.fullScreenTooltip.setAttribute(n.ariaHidden,"false"):t.type==="mouseout"&&(!e.fullScreenTooltip||e.fullScreenTooltip.setAttribute(n.ariaHidden,"true"))},this.toggleOptionsDialog=function(){!e.optionsContainer||(e.optionsContainer.getAttribute(n.ariaHidden)==="false"?e.hideOptionsContainer():e.showOptionsContainer())},this.hideOptionsContainer=function(){!e.optionsContainer||e.optionsContainer.setAttribute(n.ariaHidden,"true")},this.onOptionsDialogClick=function(n){var t,i,r,h,u,o,s,c;if(n=f.getEvent(n),t=f.getEventTargetOrSrcElement(n),i=t.getAttribute("data-video-options"),i==="back"){e.showOptionsContainer();f.preventDefault(n);return}if(i){!e.optionsContainer||!e.odParent||(r=f.selectFirstElement("ul[data-video-sub-options="+i+"]",e.optionsContainer),f.css(r,"display","block"),h=e.calcHeight(r),f.css(e.optionsContainer,"height",h+"px"),f.css(e.odParent,"left","-160px"),e.odSubActive=r);f.preventDefault(n);return}if(!!e.odSubActive&&(f.preventDefault(n),u=t.getAttribute("data-video-selectable"),!u&&t.firstElementChild&&(t=t.firstElementChild,u=t.getAttribute("data-video-selectable")),u)){for(o=0,s=f.selectElements("a",e.odSubActive);o<s.length;o++)c=s[o],f.removeClass(c,"glyph-check-mark");if(f.addClass(t,"glyph-check-mark"),!!e.videoPlayer)e.videoPlayer.onOptionChanged({category:e.odSubActive.getAttribute("data-video-sub-options"),id:t.parentElement.id,href:t.getAttribute("href")})}e.hideOptionsContainer()},t&&u){if(this.videoPlayer=u,this.playButton=f.selectFirstElementT(".f-play-pause",this.videoControls),this.playTooltip=f.selectFirstElement("span",this.playButton),this.fullScreenButton=f.selectFirstElementT(".f-full-screen",this.videoControls),this.fullScreenTooltip=f.selectFirstElement("span",this.fullScreenButton),this.volumeButton=f.selectFirstElementT(".f-volume-button",this.videoControls),this.volumeContainer=f.selectFirstElement(".f-volume-slider",this.videoControls),this.optionsButton=f.selectFirstElementT(".f-options",this.videoControls),this.optionsContainer=f.selectFirstElement(".f-options-dialog",this.videoControls),this.timeCurrent=f.selectFirstElement(".f-current-time",this.videoControls),this.timeDuration=f.selectFirstElement(".f-duration",this.videoControls),o=f.selectFirstElement(".c-slider.f-progress",this.videoControls),s=f.selectFirstElement(".c-slider",this.volumeContainer),!this.playButton||!this.playTooltip||!this.fullScreenButton||!this.fullScreenTooltip||!o||!this.volumeButton||!this.volumeContainer||!s||!this.timeCurrent||!this.timeDuration||!this.optionsButton||!this.optionsContainer)return null;this.playButton.removeAttribute("aria-label");this.playTooltip.removeAttribute("aria-hidden");f.addClass(this.playTooltip,n.screenReaderOnlyClass);this.initializeLocalization();this.updatePlayPauseState();this.optionsDialogInit();f.addEvents(window,"resize scroll",this.hideOptionsContainer);f.addEvents(this.playButton,"click mouseover mouseout",this.onPlayPauseEvents);f.addEvents(this.fullScreenButton,"click mouseover mouseout",this.onFullScreenEvents);f.addEvents([this.volumeButton,this.volumeContainer],"click mouseover mouseout focus blur",this.onVolumeEvents);f.addEvent(this.optionsButton,f.eventTypes.click,this.toggleOptionsDialog);i.ComponentFactory.create([{component:r.Slider,eventToBind:"DOMContentLoaded",elements:[o,s],callback:function(n){!n||!n.length||n.length!==2||(e.progressSlider=n[0],e.volumeSlider=n[1],e.progressSlider.subscribe({onValueChanged:function(n){return e.onProgressChanged(n)}}),e.volumeSlider.subscribe({onValueChanged:function(n){return e.onVolumeChanged(n)}}),f.addEvents(f.selectFirstElement("button",e.volumeSlider.element),"focus blur",e.onVolumeSliderEvents))}}])}}return n.prototype.initializeLocalization=function(){!this.playButton||(this.locPlay=this.playButton.getAttribute("data-locPlay")||"Play",this.locPause=this.playButton.getAttribute("data-locPause")||"Pause")},n.prototype.setDuration=function(n){u.isNumber(n)&&(!this.progressSlider||this.progressSlider.resetSlider(0,n),!this.timeDuration||(this.timeDuration.innerHTML=u.toElapsedTimeString(n)))},n.prototype.setPlayPosition=function(n){u.isNumber(n)&&!!this.progressSlider&&this.progressSlider.setValue(n)},n.prototype.setVolume=function(n){u.isNumber(n)&&!!this.videoPlayer&&(this.videoPlayer.setVolume(n),!this.volumeSlider||(this.volumeSlider.setValue(Math.round(n*100)),this.updateMuteGlyph()))},n.prototype.setMuted=function(n){!this.videoPlayer||(this.videoPlayer.setMuted(n),this.updateMuteGlyph())},n.prototype.updateMuteGlyph=function(){if(!!this.videoPlayer&&!!this.volumeButton){f.removeClasses(this.volumeButton,["glyph-volume","glyph-mute"]);var n=this.videoPlayer.isMuted()||this.videoPlayer.getVolume()===0;f.addClass(this.volumeButton,n?"glyph-mute":"glyph-volume")}},n.prototype.prepareToHide=function(){this.hideOptionsContainer();this.hideVolumeContainer()},n.prototype.onProgressChanged=function(n){if(!n)return null;!!this.videoPlayer&&n.userInitiated&&this.videoPlayer.setPlayPosition(n.value);var t=u.toElapsedTimeString(n.value);return!this.timeCurrent||(this.timeCurrent.innerHTML=t),t},n.prototype.onVolumeChanged=function(n){if(!n)return null;!!this.videoPlayer&&n.value>0&&this.videoPlayer.setMuted(!1);var t=Math.round(n.value);return this.setVolume(t/100),t.toString()},n.prototype.play=function(){!this.videoPlayer||this.videoPlayer.play()},n.prototype.pause=function(){!this.videoPlayer||this.videoPlayer.pause()},n.prototype.updatePlayPauseState=function(){!this.videoPlayer||!this.playButton||(this.videoPlayer.isPlayable()?(this.playButton.removeAttribute("disabled"),this.videoPlayer.isPaused()?(!this.playTooltip||(this.playTooltip.innerHTML=this.locPlay),f.removeClass(this.playButton,"glyph-pause"),f.addClass(this.playButton,"glyph-play")):(!this.playTooltip||(this.playTooltip.innerHTML=this.locPause),f.removeClass(this.playButton,"glyph-play"),f.addClass(this.playButton,"glyph-pause"),this.prepareToHide())):(!this.playTooltip||(this.playTooltip.innerHTML=this.locPlay),f.removeClass(this.playButton,"glyph-pause"),f.addClass(this.playButton,"glyph-play"),this.playButton.setAttribute("disabled","disabled")))},n.prototype.showVolumeContainer=function(){if(!!this.volumeContainer){this.volumeContainer.setAttribute(n.ariaHidden,"false");this.onlyOneDialog(this.volumeContainer)}},n.prototype.hideVolumeContainer=function(){!this.volumeContainer||this.volumeContainer.setAttribute(n.ariaHidden,"true")},n.prototype.optionsDialogInit=function(){!this.optionsContainer||(this.odParent=f.selectFirstElement("ul",this.optionsContainer),this.odDimensions=f.getClientRect(this.odParent),f.addEvent(this.odParent,f.eventTypes.click,this.onOptionsDialogClick))},n.prototype.showOptionsContainer=function(){if(!!this.optionsContainer&&!!this.odParent){this.optionsContainer.setAttribute(n.ariaHidden,"false");f.css(this.optionsContainer,"height",this.odDimensions.height+"px");f.css(this.optionsContainer,"overflowY","hidden");f.css(this.odParent,"left","0");this.odClearSubActive();this.onlyOneDialog(this.optionsContainer)}},n.prototype.onlyOneDialog=function(t){!this.optionsContainer||!this.volumeContainer||this.optionsContainer.getAttribute(n.ariaHidden)!=="false"||this.volumeContainer.getAttribute(n.ariaHidden)!=="false"||(t===this.optionsContainer?this.hideVolumeContainer():this.hideOptionsContainer())},n.prototype.calcHeight=function(n){if(!n||!this.videoControls)return 0;var t=f.getClientRect(n).height,r=f.getClientRect(this.videoControls.parentElement),u=f.getClientRect(this.videoControls),i=r.height-u.height;return t>i?(f.css(this.optionsContainer,"overflowY","scroll"),t=i):f.css(this.optionsContainer,"overflowY","hidden"),t},n.prototype.odClearSubActive=function(){!this.odSubActive||(f.css(this.odSubActive,"display","none"),this.odSubActive=null)},n.prototype.setOptions=function(n){var c,o,s,e,r,u,h,l,t,i,a;if(n&&n.options&&n.options.length&&n.category&&this.odParent){if(n.category==="info"){t=n.options[0];t&&t.href&&(c=f.selectFirstElementT("a",this.odParent),c&&c.setAttribute("href",t.href));return}if(o=n.category==="f-video-share"?1:2,s=f.selectFirstElement("ul[data-video-sub-options='"+n.category+"']",this.odParent),!!s&&(e=f.selectElements("li",s),!!e&&e.length>o)){while(e.length>o)f.removeElement(e.pop());for(r=e.pop(),o===1&&(r=r.cloneNode(!0),f.removeClasses(r.firstElementChild,["glyph-chevron-left","c-glyph"]),r.firstElementChild.removeAttribute("data-video-options")),f.removeClass(r.firstElementChild,"glyph-check-mark"),u=null,h=0,l=n.options;h<l.length;h++)t=l[h],i=s.appendChild(r.cloneNode(!0)),i.id=t.id,i.firstElementChild.innerHTML=t.value,t.selected&&(u=i.firstElementChild),t.href&&(i.firstElementChild.setAttribute("href",t.href),f.addClass(i.firstElementChild,t.glyph)),t.glyph&&(f.addClass(i.firstElementChild,"c-glyph"),f.addClass(i.firstElementChild,t.glyph)),t.image&&(a=i.firstElementChild.appendChild(document.createElement("img")),f.addClass(a,"c-image"),a.setAttribute("src",t.image));if(n.category!=="f-video-share"&&(u||(u=r.firstElementChild),f.addClass(u,"glyph-check-mark"),!!this.videoPlayer))this.videoPlayer.onOptionChanged({category:n.category,id:u.parentElement.id,href:u.getAttribute("href")})}}},n.selector=".f-video-controls",n.ariaHidden="aria-hidden",n.ariaLabel="aria-label",n.screenReaderOnlyClass="x-screen-reader",n}();t.VideoControls=e}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(60),i(4),i(10)],r=function(n,t,i,r,u){"use strict";var f=function(){function n(n){this.element=n;this.lastPlayPosition=0;this.ccLanguageId=null;this.resetCaptions()}return n.prototype.setCcLanguage=function(n,t){if(this.element&&n!==this.ccLanguageId){if(this.ttmlContext=null,this.resetCaptions(),!t){this.ccLanguageId=null;return}this.ccLanguageId=n;this.loadClosedCaptions(t)}},n.prototype.loadClosedCaptions=function(n){var i=this,t;n&&(t=new XMLHttpRequest,t.onreadystatechange=function(){if(t.readyState===4&&t.status===200)i.onClosedCaptionsLoaded(t.responseXML||t.responseText)},t.open("GET",n,!0),t.setRequestHeader("Accept","text/xml, application/xml"),t.send())},n.prototype.onClosedCaptionsLoaded=function(t){if(t){this.element.setAttribute(n.ariaHidden,"false");var r=this.element.id?this.element.id+"-":"",f={idPrefix:r,fontMap:{"default":"Segoe ui, Arial"},relatedMediaObjectRegion:u.getDimensions(this.element)};this.ttmlContext=i.TtmlParser.parse(t,f);this.ttmlContext&&(this.ttmlContext.setOwnerDocument(this.element.ownerDocument),this.ttmlContext.hasEvents()?this.updateCaptions(this.lastPlayPosition):this.element.setAttribute(n.ariaHidden,"true"))}},n.prototype.updateCaptions=function(t){var f,s,i,e,o;if(this.lastPlayPosition=t,this.ttmlContext&&this.ttmlContext.hasEvents()&&(f=Math.floor(t*1e3),this.element.setAttribute(n.ariaHidden,"false"),s=u.getDimensions(this.element),this.ttmlContext.updateRelatedMediaObjectRegion(s)&&this.resetCaptions(),this.ttmlContext.updateCurrentEvents(f))){for(this.element.setAttribute(n.ariaHidden,"true"),r.removeInnerHtml(this.element),i=0,e=this.ttmlContext.getCues(f);i<e.length;i++)o=e[i],this.applyUserPreferencesOverrides(o),this.element.appendChild(o);this.element.setAttribute(n.ariaHidden,"false")}},n.prototype.resetCaptions=function(){this.ttmlContext&&this.ttmlContext.resetCurrentEvents();this.element&&(this.element.setAttribute(n.ariaHidden,"true"),r.removeInnerHtml(this.element))},n.prototype.applyUserPreferencesOverrides=function(t){var f,o,e,s,u,i;if(n.userPreferences){if(n.userPreferences.text)for(f=0,o=r.selectElements("p, span, br",t);f<o.length;f++){u=o[f];for(i in n.userPreferences.text)n.userPreferences.text.hasOwnProperty(i)&&r.css(u,i,n.userPreferences.text[i])}if(n.userPreferences.window)for(e=0,s=r.toArray(t.children);e<s.length;e++){u=s[e];for(i in n.userPreferences.window)n.userPreferences.window.hasOwnProperty(i)&&r.css(u,i,n.userPreferences.window[i])}}},n.ariaHidden="aria-hidden",n}();t.VideoClosedCaptions=f}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(61),i(63),i(62),i(4),i(5)],r=function(n,t,i,r,u,f,e){"use strict";var o=function(){function n(){}return n.parse=function(t,f){var e,o,s,h;if(t=typeof t=="string"?n.parseXml(t):t,e=new i.TtmlContext,e.settings=new u.TtmlSettings(f),e.root=n.verifyRoot(t,e),e.body=n.getFirstElementByTagNameNS(e.root,"body",e.settings.ttmlNamespace),e.events=[],e.styleSetCache=[],e.body){try{n.parseTtAttrs(e);o=n.ensureRegions(e);s=n.getAttributeNS(e.root,"timeBase",e.settings.ttmlParameterNamespace)||"media";e.settings.supportedTimeBase.indexOf(s)!==-1&&(n.processAnonymousSpans(e,e.body),h=new r.TtmlTimeParser(e.settings.mediaFrameRate,e.settings.mediaTickRate),n.applyTiming(e,e.root,{start:n.mediaStart,end:n.mediaEnd},!0,h),n.applyStyling(e,o))}catch(c){}e.events.push({time:n.mediaEnd,element:null});e.events.sort(function(n,t){return n.time-t.time})}return e},n.parseXml=function(n){var i=null,t;try{window.DOMParser?(t=new DOMParser,i=t.parseFromString(n,"application/xml")):(t=new ActiveXObject("Microsoft.XMLDOM"),t.async=!1,t.loadXML(n),i=t)}catch(r){i=null}return i},n.verifyRoot=function(t,i){var u,r=t.documentElement;return n.getLocalTagName(r)==="tt"&&(r.namespaceURI!=="http://www.w3.org/ns/ttml"&&(i.settings.ttmlNamespace=r.namespaceURI,i.settings.ttmlStyleNamespace=i.settings.ttmlNamespace+"#styling",i.settings.ttmlParameterNamespace=i.settings.ttmlNamespace+"#parameter",i.settings.ttmlMetaNamespace=i.settings.ttmlNamespace+"#metadata"),u=r),u},n.parseTtAttrs=function(t){var h=n.getAttributeNS(t.root,"cellResolution",t.settings.ttmlParameterNamespace),u=n.getAttributeNS(t.root,"extent",t.settings.ttmlStyleNamespace),f=null,r,o,s,i,c,l;h&&(r=e.trim(h).split(/\s+/),r.length===2&&(o=Math.round(parseFloat(r[0])),s=Math.round(parseFloat(r[1])),s>0&&o>0&&(f={rows:s,columns:o})));f&&(t.settings.cellResolution=f);u&&u!=="auto"&&(i=u.split(/\s+/),i.length===2&&i[0].substr(i[0].length-2)==="px"&&i[1].substr(i[1].length-2)==="px"&&(c=parseFloat(i[0].substr(0,i[0].length-2)),l=parseFloat(i[1].substr(0,i[1].length-2)),t.settings.rootContainerRegionDimensions={width:Math.round(c),height:Math.round(l)}))},n.ensureRegions=function(t){var f,i,o,r;return t.rootContainerRegion=t.root.ownerDocument.createElementNS(t.settings.ttmlNamespace,"rootcontainerregion"),t.root.appendChild(t.rootContainerRegion),f=t.settings.rootContainerRegionDimensions?e.format("{0}px {1}px",t.settings.rootContainerRegionDimensions.width,t.settings.rootContainerRegionDimensions.height):"auto",t.rootContainerRegion.setAttributeNS(t.settings.ttmlStyleNamespace,"extent",f),i=n.getFirstElementByTagNameNS(t.root,"head",t.settings.ttmlNamespace),i||(i=t.root.ownerDocument.createElementNS(t.settings.ttmlNamespace,"head"),t.root.appendChild(i)),t.layout=n.getFirstElementByTagNameNS(i,"layout",t.settings.ttmlNamespace),t.layout||(t.layout=t.root.ownerDocument.createElementNS(t.settings.ttmlNamespace,"layout"),t.root.appendChild(t.layout)),o=t.layout.getElementsByTagNameNS(t.settings.ttmlNamespace,"region"),o.length||(r=t.root.ownerDocument.createElementNS(t.settings.ttmlNamespace,"region"),r.setAttributeNS(u.xmlNS,"id","anonymous"),r.setAttribute("data-isanonymous","1"),t.layout.appendChild(r),t.body.setAttributeNS(t.settings.ttmlNamespace,"region","anonymous")),i},n.processAnonymousSpans=function(t,i){var u,a,o,v,s,y,e,h,c,l,p,r;if(n.isTagNS(i,"p",t.settings.ttmlNamespace)){for(u=[],a=void 0,o=0,v=f.nodeListToArray(i.childNodes);o<v.length;o++)r=v[o],r.nodeType===Node.TEXT_NODE&&(a!==Node.TEXT_NODE&&u.push([]),u[u.length-1].push(r)),a=r.nodeType;for(s=0,y=u;s<y.length;s++)for(e=y[s],h=t.root.ownerDocument.createElementNS(t.settings.ttmlNamespace,"span"),h.appendChild(e[0].parentNode.replaceChild(h,e[0])),c=1;c<e.length;c++)h.appendChild(e[c])}for(l=0,p=f.nodeListToArray(i.childNodes);l<p.length;l++)r=p[l],this.processAnonymousSpans(t,r)},n.applyTiming=function(t,i,r,u,e){var b=n.getAttributeNS(i,"begin",t.settings.ttmlNamespace),o=b?e.parse(b):r.start,s=0,d=0,l=0,a=0,v=n.getAttributeNS(i,"dur",t.settings.ttmlNamespace),h=n.getAttributeNS(i,"end",t.settings.ttmlNamespace),k,p,y,w,c;for(v||h?v&&h?(l=e.parse(v),a=e.parse(h),k=Math.min(o+l,r.start+a),s=Math.min(k,r.end)):h?(a=e.parse(h),s=Math.min(r.start+a,r.end)):(l=e.parse(v),s=Math.min(o+l,r.end)):u&&(o<=r.end?(d=Math.max(0,r.end-o),s=r.end):s=0),s<o&&(s=o),o=Math.floor(o),s=Math.floor(s),i.setAttribute("data-time-start",o.toString()),i.setAttribute("data-time-end",s.toString()),o>=0&&t.events.filter(function(n){return n.time===o}).length<=0&&t.events.push({time:o,element:i}),p=o,y=0,w=f.nodeListToArray(i.childNodes);y<w.length;y++)c=w[y],c.nodeType===Node.ELEMENT_NODE&&(n.getAttributeNS(i,"timeContainer",t.settings.ttmlNamespace)!=="seq"?this.applyTiming(t,c,{start:o,end:s},!0,e):(this.applyTiming(t,c,{start:p,end:s},!1,e),p=parseInt(c.getAttribute("data-time-end"),10)))},n.applyStyling=function(t,i){for(var e=n.getFirstElementByTagNameNS(i,"styling",t.settings.ttmlNamespace),s=e?f.nodeListToArray(e.getElementsByTagNameNS(t.settings.ttmlNamespace,"style")):[],o,r=0,u=f.nodeListToArray(t.root.querySelectorAll("*"));r<u.length;r++)o=u[r],this.applyStyle(t,o,s)},n.applyStyle=function(t,i,r){var u={},f,e;this.applyStylesheet(t.settings,u,i,r);n.applyInlineStyles(t.settings,u,i);f=!0;for(e in u)if(u.hasOwnProperty(e)){f=!1;break}f||(i.setAttribute("data-styleSet",t.styleSetCache.length.toString()),t.styleSetCache.push(u))},n.applyStylesheet=function(t,i,r,e){for(var y=n.getAttributeNS(r,"style",t.ttmlNamespace),w=y?y.split(/\s+/):[],p,h,a,c,v,o,s=0,l=w;s<l.length;s++)for(p=l[s],h=0,a=e;h<a.length;h++)o=a[h],n.getAttributeNS(o,"id",u.xmlNS)===p&&(this.applyStylesheet(t,i,o,e),n.applyInlineStyles(t,i,o));if(n.isTagNS(r,"region",t.ttmlNamespace))for(c=0,v=f.nodeListToArray(r.getElementsByTagNameNS(t.ttmlNamespace,"style"));c<v.length;c++)o=v[c],n.applyInlineStyles(t,i,o)},n.applyInlineStyles=function(t,i,r){for(var o,u=0,s=f.nodeListToArray(r.attributes);u<s.length;u++)o=s[u],o.namespaceURI===t.ttmlStyleNamespace&&(i[n.getLocalTagName(o)]=e.trim(o.nodeValue))},n.getLocalTagName=function(n){return n.localName||n.baseName},n.isTagNS=function(n,t,i){return n.namespaceURI===i&&this.getLocalTagName(n)===t},n.getAttributeNS=function(n,t,i){var e=n.getAttributeNS(i,t),u,o,r;if(!e)for(u=0,o=f.nodeListToArray(n.attributes);u<o.length;u++)if(r=o[u],r.localName===t&&r.lookupNamespaceURI(r.prefix)===i){e=r.value;break}return e},n.getFirstElementByTagNameNS=function(n,t,i){if(n){var r=n.getElementsByTagNameNS(i,t);if(r&&r.length)return r[0]}return null},n.mediaStart=-1,n.mediaEnd=99999999,n}();t.TtmlParser=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(60),i(62),i(4),i(5),i(10)],r=function(n,t,i,r,u,f,e){"use strict";var o=function(){function n(){var t=this;this.translateToHtml=function(e,o,s){var c,h,v=t.getTagNameEquivalent(e),l="",y="",a,p,w,b;switch(v){case"ttml:region":y="cue ";case"ttml:rootcontainerregion":case"ttml:body":case"ttml:div":l="div";break;case"ttml:p":l="p";break;case"ttml:span":l="span";break;case"ttml:br":l="br"}return a=i.TtmlParser.getAttributeNS(e,"role",t.settings.ttmlMetaNamespace),a&&(y+=" "+a),p=i.TtmlParser.getAttributeNS(e,"agent",t.settings.ttmlMetaNamespace),p&&(y+=" "+p),a==="x-ruby"?l="ruby":a==="x-rubybase"?l="rb":a==="x-rubytext"&&(l="rt"),f.isNullOrWhiteSpace(l)||(c=n.defaultStyle(t.ownerDocument.createElement(l)),u.addClass(c,f.trim(y)),w=i.TtmlParser.getAttributeNS(e,"title",t.settings.ttmlMetaNamespace),w&&c.setAttribute("title",w),b=i.TtmlParser.getAttributeNS(e,"id",r.xmlNS),b&&t.settings.idPrefix&&c.setAttribute("id",t.settings.idPrefix+b),v==="ttml:region"&&(h=c.appendChild(n.defaultStyle(t.ownerDocument.createElement("div"))),u.css(h,"display","table"),u.css(h,"border-spacing","0"),u.css(h,"cell-spacing","0"),u.css(h,"cell-padding","0"),u.css(h,"width","100%"),u.css(h,"height","100%"),h=h.appendChild(n.defaultStyle(t.ownerDocument.createElement("div"))),u.css(h,"display","table-cell"),o.displayAlign&&(t.translateStyle(v,h,{displayAlign:o.displayAlign}),o.displayAlign=null)),s&&v==="ttml:span"&&(h=c.appendChild(n.defaultStyle(t.ownerDocument.createElement("span"))),u.css(h,"white-space","pre")),u.css(c,"position","static"),u.css(c,"width","100%"),t.translateStyle(v,c,o)),{outerNode:c,innerNode:h?h:c}}}return n.prototype.setOwnerDocument=function(n){this.ownerDocument=n},n.prototype.updateRelatedMediaObjectRegion=function(n){return!this.settings.relatedMediaObjectRegion||n.width!==this.settings.relatedMediaObjectRegion.width||n.height!==this.settings.relatedMediaObjectRegion.height?(this.settings.relatedMediaObjectRegion={width:n.width,height:n.height},!0):!1},n.prototype.hasEvents=function(){return this.events&&!!this.events.length},n.prototype.resetCurrentEvents=function(){this.currentEvents=[]},n.prototype.updateCurrentEvents=function(n){var t=this.getTemporallyActiveEvents(n),r=this.currentEvents?this.currentEvents.length:0,u=t?t.length:0,i;if(r!==u)return this.currentEventsTime=n,this.currentEvents=t,!0;if(this.currentEvents)for(i=0;i<r;i++)if(this.currentEvents[i].time!==t[i].time)return this.currentEventsTime=n,this.currentEvents=t,!0;return!1},n.prototype.getTemporallyActiveEvents=function(n){var t=this;return this.events.filter(function(i){return i.element?t.isTemporallyActive(i.element,n):!0})},n.prototype.isTemporallyActive=function(n,t){return(parseInt(n.getAttribute("data-time-start"),10)||0)<=t&&t<(parseInt(n.getAttribute("data-time-end"),10)||0)},n.prototype.getCues=function(n){var t=[],v,tt,s,y,o,w,h,c,b,l,k,e,d,g,a,nt,ut;for(this.currentEventsTime!==n&&this.updateCurrentEvents(n),v=i.TtmlParser.getAttributeNS(this.root,"space",r.xmlNS)==="preserve",tt=this.layout?this.layout.getElementsByTagNameNS(this.settings.ttmlNamespace,"region"):[],s=0,y=tt;s<y.length;s++){var p=y[s],it=i.TtmlParser.getAttributeNS(p,"id",r.xmlNS),rt=p.getAttribute("data-isanonymous");if((rt||it)&&(o=this.translate(p,this.settings.defaultRegionStyle,v,n,this.translateToHtml),o.outerNode)){for(w=o.innerNode,h=o.outerNode,c=0,b=this.events;c<b.length;c++)l=b[c],l.element&&this.isInRegion(l.element,rt?null:it)&&(k=this.prune(l.element,o.inheritableStyleSet,v,n,this.translateToHtml),e=k.prunedElement,k.hasPreservedContent||!e||f.trim(u.getText(e)).length||(e=null),e&&w.appendChild(e));d=h.getAttribute("data-showBackground")==="always";(d||w.children.length)&&(d&&h.removeAttribute("data-showBackground"),t.push(h))}}if(t.length){for(g=this.translate(this.rootContainerRegion,{overflow:"hidden",padding:"0"},!1,n,this.translateToHtml),a=0,nt=t;a<nt.length;a++)ut=nt[a],g.innerNode.appendChild(ut);t=[];t.push(g.outerNode)}return t},n.prototype.translate=function(n,t,i,r,u){var f,e,o,s;return(this.isTemporallyActive(n,r)&&(o=this.getTagNameEquivalent(n),e=this.getComputedStyleSet(n,t,o,r),e.display!=="none"&&(s=this.getApplicableStyleSet(e,o),f=u(n,s,i))),!f)?{outerNode:null,innerNode:null,inheritableStyleSet:null}:{outerNode:f.outerNode,innerNode:f.innerNode,inheritableStyleSet:this.getInheritableStyleSet(e)}},n.prototype.translateStyle=function(n,t,i){for(var r in i)i[r]&&this.applyStyle(t,n,r,i[r])},n.prototype.prune=function(n,t,f,e,o,s){var y,a,h,g,v,p,b,l,k,d,w,c;if(s===void 0&&(s=!1),a=!1,h=this.translate(n,t,f,e,o),h.outerNode!==null){for(g=this.getTagNameEquivalent(n),y=h.outerNode,v=h.innerNode,p=0,b=u.nodeListToArray(n.childNodes);p<b.length;p++)l=b[p],l.nodeType===Node.COMMENT_NODE||(l.nodeType===Node.TEXT_NODE?(v.appendChild(document.createTextNode(l.data)),f&&g==="ttml:span"&&(a=!0)):(k=f,d=i.TtmlParser.getAttributeNS(l,"space",r.xmlNS),d&&(k=d==="preserve"),w=this.prune(l,h.inheritableStyleSet,k,e,o,!0),a=a||w.hasPreservedContent,w.prunedElement&&v.appendChild(w.prunedElement)));if(!s)for(c=n.parentNode;c!==null&&c.nodeType===Node.ELEMENT_NODE&&c!==this.body;){if(h=this.translate(c,t,f,e,o),h.outerNode)v=h.innerNode,v.appendChild(y),y=h.outerNode;else break;c=c.parentNode}}return{prunedElement:y,hasPreservedContent:a}},n.prototype.getComputedStyleSet=function(n,t,r,f){var o=e.extend({},t),a,s,h,c,l;for(e.extend(o,this.styleSetCache[parseInt(n.getAttribute("data-styleSet"),10)]),a=n.getElementsByTagNameNS(this.settings.ttmlNamespace,"set"),s=0,h=u.nodeListToArray(a);s<h.length;s++)c=h[s],this.isTemporallyActive(c,f)&&i.TtmlParser.applyInlineStyles(this.settings,o,c);return r==="ttml:p"&&o.lineHeight==="normal"&&(l=this.appendSpanFontSizes(n,this.getInheritableStyleSet(o),f,""),l&&(o["computed-lineHeight"]=l)),o},n.prototype.getApplicableStyleSet=function(n,t){var i={},r;n.extent&&this.isStyleApplicable(t,"extent")&&(i.extent=n.extent);n.color&&this.isStyleApplicable(t,"color")&&(i.color=n.color);for(r in n)this.isStyleApplicable(t,r)&&(i[r]=n[r]);return i},n.prototype.isStyleApplicable=function(n,t){switch(t){case"backgroundColor":case"display":case"visibility":return"ttml:body ttml:div ttml:p ttml:region ttml:rootcontainerregion ttml:span ttml:br".indexOf(n)>=0;case"fontFamily":case"fontSize":case"fontStyle":case"fontWeight":return"ttml:p ttml:span ttml:br".indexOf(n)>=0;case"color":case"textDecoration":case"textOutline":case"wrapOption":return"ttml:span ttml:br".indexOf(n)>=0;case"direction":case"unicodeBidi":return"ttml:p ttml:span ttml:br".indexOf(n)>=0;case"displayAlign":case"opacity":case"origin":case"overflow":case"padding":case"showBackground":case"writingMode":case"zIndex":return"ttml:region ttml:rootcontainerregion".indexOf(n)>=0;case"extent":return"ttml:tt ttml:region ttml:rootcontainerregion".indexOf(n)>=0;case"computed-lineHeight":case"lineHeight":case"textAlign":return"ttml:p".indexOf(n)>=0;default:return!1}},n.prototype.getInheritableStyleSet=function(n){var i={},t;for(t in n)if(n.hasOwnProperty(t))switch(t){case"backgroundColor":case"computed-lineHeight":case"display":case"displayAlign":case"extent":case"opacity":case"origin":case"overflow":case"padding":case"showBackground":case"unicodeBidi":case"writingMode":case"zIndex":break;default:i[t]=n[t]}return i},n.prototype.appendSpanFontSizes=function(n,t,i,r){for(var f,c,s,h,e=0,o=u.nodeListToArray(n.childNodes);e<o.length;e++)f=o[e],f.nodeType===Node.ELEMENT_NODE&&(c=this.getTagNameEquivalent(f),c==="ttml:span"&&(s=this.getComputedStyleSet(f,t,"ttml:span",i),h=s.fontSize,h&&(r+=(r?",":"")+h),r=this.appendSpanFontSizes(f,this.getInheritableStyleSet(s),i,r)));return r},n.prototype.isInRegion=function(n,t){var e,r,o,f,s,h;if(!t||(e=i.TtmlParser.getAttributeNS(n,"region",this.settings.ttmlNamespace),e===t))return!0;if(!e){for(r=n.parentNode;r!==null&&r.nodeType===Node.ELEMENT_NODE;){if(o=this.getRegionId(r),o)return o===t;r=r.parentNode}for(f=0,s=u.nodeListToArray(n.getElementsByTagName("*"));f<s.length;f++)if(h=s[f],this.getRegionId(h)===t)return!0}return!1},n.prototype.getRegionId=function(n){var t;return n.nodeType===Node.ELEMENT_NODE&&n.namespaceURI===this.settings.ttmlNamespace&&(t=i.TtmlParser.getLocalTagName(n)==="region"?i.TtmlParser.getAttributeNS(n,"id",r.xmlNS):i.TtmlParser.getAttributeNS(n,"region",this.settings.ttmlNamespace)),t},n.prototype.getTagNameEquivalent=function(n){var t=i.TtmlParser.getLocalTagName(n),r=n.namespaceURI;return r===this.settings.ttmlNamespace?"ttml:"+t:r==="http://www.w3.org/1999/xhtml"?t:""},n.prototype.applyStyle=function(t,i,r,o){var s=o,p,h,g,nt,tt,w,b,d,it,c,a;switch(r){case"color":case"backgroundColor":s=n.ttmlToCssColor(o);u.css(t,r,s);return;case"direction":case"display":u.css(t,r,s);return;case"displayAlign":switch(o){case"before":s="top";break;case"center":s="middle";break;case"after":s="bottom"}u.css(t,"vertical-align",s);return;case"extent":p=void 0;c=void 0;o!=="auto"&&(a=o.split(/\s+/),a.length===2&&(p=this.ttmlToCssUnits(a[0],!0),c=this.ttmlToCssUnits(a[1],!1)));p||(p=(this.settings.rootContainerRegionDimensions?this.settings.rootContainerRegionDimensions.width:this.settings.relatedMediaObjectRegion.width).toString()+"px",c=(this.settings.rootContainerRegionDimensions?this.settings.rootContainerRegionDimensions.height:this.settings.relatedMediaObjectRegion.height).toString()+"px");u.css(t,"position","absolute");u.css(t,"width",p);u.css(t,"min-width",p);u.css(t,"max-width",p);u.css(t,"height",c);u.css(t,"min-height",c);u.css(t,"max-height",c);return;case"fontFamily":this.settings.fontMap&&this.settings.fontMap[o]&&(s=this.settings.fontMap[o]);o==="smallCaps"&&u.css(t,"fontVariant","small-caps");u.css(t,r,s);return;case"fontSize":h=o.split(/\s+/);g=h.length>1?h[1]:h[0];s=this.ttmlToCssFontSize(g,!1,.75,i==="ttml:region");u.css(t,r,s);return;case"fontStyle":case"fontWeight":u.css(t,r,s);return;case"lineHeight":nt=o==="normal"?o:this.ttmlToCssFontSize(o,!1);u.css(t,"line-height",nt);return;case"computed-lineHeight":for(tt=o.split(","),w=-1,b=0,d=tt;b<d.length;b++)it=d[b],s=this.ttmlToCssFontSize(it,!1),s&&s.indexOf("px")===s.length-2&&(c=parseFloat(s.substr(0,s.length-2)),!isNaN(c)&&c>w&&(w=c));w>=0&&u.css(t,"line-height",w+"px");return;case"origin":o!=="auto"&&(a=o.split(/\s+/),a.length===2&&(u.css(t,"position","absolute"),u.css(t,"left",this.ttmlToCssUnits(a[0],!0)),u.css(t,"top",this.ttmlToCssUnits(a[1],!1))));return;case"opacity":u.css(t,r,s);return;case"padding":var l=e.getDimensions(t),h=o.split(/\s+/),v=void 0,y=void 0,k=void 0,rt=void 0;switch(h.length){case 1:v=this.ttmlToCssUnits(h[0],!1,l);y=this.ttmlToCssUnits(h[0],!0,l);s=f.format("{0} {1} {0} {1}",v,y);break;case 2:v=this.ttmlToCssUnits(h[0],!1,l);y=this.ttmlToCssUnits(h[1],!0,l);s=f.format("{0} {1} {0} {1}",v,y);break;case 3:v=this.ttmlToCssUnits(h[0],!1,l);y=this.ttmlToCssUnits(h[1],!0,l);k=this.ttmlToCssUnits(h[2],!1,l);s=f.format("{0} {1} {2} {1}",v,y,k);break;case 4:v=this.ttmlToCssUnits(h[0],!1,l);y=this.ttmlToCssUnits(h[1],!0,l);k=this.ttmlToCssUnits(h[2],!1,l);rt=this.ttmlToCssUnits(h[3],!0,l);s=f.format("{0} {1} {2} {3}",v,y,k,rt)}u.css(t,"box-sizing","border-box");u.css(t,"border-style","solid");u.css(t,"border-color","transparent");u.css(t,"border-width",s);return;case"textAlign":switch(o){case"start":s="left";break;case"end":s="right"}u.css(t,"text-align",s);return;case"textDecoration":s=n.ttmlToCssTextDecoration(o);u.css(t,"text-decoration",s);return;case"textOutline":u.css(t,"text-shadow",this.ttmlToCssTextOutline(s));return;case"unicodeBidi":switch(o){case"bidiOverride":s="bidi-override"}u.css(t,"unicode-bidi",s);return;case"visibility":u.css(t,r,s);return;case"writingMode":switch(o){case"lr":case"lrtb":u.css(t,"writing-mode","horizontal-tb");u.css(t,"-webkit-writing-mode","horizontal-tb");u.css(t,"writing-mode","lr-tb");return;case"rl":case"rltb":u.css(t,"writing-mode","horizontal-tb");u.css(t,"-webkit-writing-mode","horizontal-tb");u.css(t,"writing-mode","rl-tb");return;case"tblr":u.css(t,"text-orientation","upright");u.css(t,"writing-mode","vertical-lr");u.css(t,"-webkit-text-orientation","upright");u.css(t,"-webkit-writing-mode","vertical-lr");u.css(t,"writing-mode","tb-lr");return;case"tb":case"tbrl":u.css(t,"text-orientation","upright");u.css(t,"writing-mode","vertical-rl");u.css(t,"-webkit-text-orientation","upright");u.css(t,"-webkit-writing-mode","vertical-rl");u.css(t,"writing-mode","tb-rl");return}return;case"wrapOption":u.css(t,"white-space",o==="noWrap"?"nowrap":o==="pre"?"pre":"normal");return;case"zIndex":u.css(t,r,s);return;default:u.css(t,r,s);return}},n.defaultStyle=function(t){return u.css(t,"background-color",n.TtmlNamedColorMap.transparent),u.css(t,"offset","0"),u.css(t,"margin","0"),u.css(t,"padding","0"),u.css(t,"border","0"),t},n.prototype.ttmlToCssUnits=function(n,t,i){var e=n,r,h;if(n&&(r=n.charAt(n.length-1),r==="c"||r==="%")){var o=this.settings.rootContainerRegionDimensions?this.settings.rootContainerRegionDimensions:this.settings.relatedMediaObjectRegion,s=parseFloat(n.substr(0,n.length-1)),f=t?o.width:o.height,u=void 0;r==="c"?(h=t?this.settings.cellResolution.columns:this.settings.cellResolution.rows,u=s*f/h):r==="%"&&(i&&(f=t?i.width:i.height),u=f*s/100);u=Math.round(u*10)/10;e=u+"px"}return e},n.prototype.ttmlToCssFontSize=function(n,t,i,r){var e,u;if(i===void 0&&(i=1),r===void 0&&(r=!1),e=n,n&&(u=n.charAt(n.length-1),u==="c"||r&&u==="%")){var o=this.settings.rootContainerRegionDimensions?this.settings.rootContainerRegionDimensions:this.settings.relatedMediaObjectRegion,s=parseFloat(n.substr(0,n.length-1)),h=t?o.width:o.height,c=t?this.settings.cellResolution.columns:this.settings.cellResolution.rows,f=s*h/c;u==="%"&&(f/=100);f=Math.floor(f*i*10)/10;e=f+"px"}return e},n.prototype.ttmlToCssTextOutline=function(t){var r="none",l,s,a,h,c;if(!f.isNullOrWhiteSpace(t)&&t!=="none"){var i=t.split(/\s+/),o=void 0,u=void 0,e;if(i.length===1?(o=$(this).css("color"),u=i[0],e=""):i.length===3?(o=i[0],u=i[1],e=i[2]):i.length===2&&(l=i[0].charAt(0),l>="0"&&l<="9"?(o=$(this).css("color"),u=i[0],e=i[1]):(o=i[0],u=i[1],e="")),e=this.ttmlToCssFontSize(e,!1,.75),u=this.ttmlToCssFontSize(u,!1,.75),i=n.lengthRegEx.exec(u),i&&i.length===3){for(s=Math.round(parseFloat(i[1])),a=i[2],r="",h=-s;h<=s;h++)for(c=-s;c<=s;c++)(h!==0||c!==0)&&(r+=f.format("{0}{4} {1}{4} {2} {3}, ",h,c,e,n.ttmlToCssColor(o),a));r&&(r=r.substr(0,r.length-2))}}return r},n.ttmlToCssTextDecoration=function(n){for(var i="",s=n.split(/\s+/),u,o,t,r=0,e=s;r<e.length;r++){t=e[r];switch(t){case"none":case"noUnderline":case"noLineThrough":case"noOverline":i="none"}}for(u=0,o=s;u<o.length;u++){t=o[u];switch(t){case"none":case"noUnderline":case"noLineThrough":case"noOverline":break;case"lineThrough":i+=" line-through";break;default:i+=" "+t}}return f.trim(i)},n.ttmlToCssColor=function(t){var r=t,i;if(t=t.toLowerCase(),t.indexOf("rgba")===0){if(i=n.rgbaRegEx.exec(t),i&&i.length===5){var u=i[1],e=i[2],o=i[3],s=parseInt(i[4],10);r=f.format("rgba({0},{1},{2},{3})",u,e,o,Math.round(s*100/255)/100)}}else if(t.charAt(0)==="#"&&t.length===9){var u=parseInt(t.substr(1,2),16),e=parseInt(t.substr(3,2),16),o=parseInt(t.substr(5,2),16),s=parseInt(t.substr(7,2),16);r=f.format("rgba({0},{1},{2},{3})",u,e,o,Math.round(s*100/255)/100)}else n.TtmlNamedColorMap[t]&&(r=n.TtmlNamedColorMap[t]);return r},n.lengthRegEx=/\s*(\d+\.*\d*)(.*)\s*/,n.rgbaRegEx=/\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)\s*/,n.TtmlNamedColorMap={transparent:"rgba(0,0,0,0)",black:"rgba(0,0,0,1)",silver:"rgba(192,192,192,1)",gray:"rgba(128,128,128,1)",white:"rgba(255,255,255,1)",maroon:"rgba(128,0,0,1)",red:"rgba(255,0,0,1)",purple:"rgba(128,0,128,1)",fuchsia:"rgba(255,0,255,1)",magenta:"rgba(255,0,255,1)",green:"rgba(0,128,0,1)",lime:"rgba(0,255,0,1)",olive:"rgba(128,128,0,1)",yellow:"rgba(255,255,0,1)",navy:"rgba(0,0,128,1)",blue:"rgba(0,0,255,1)",teal:"rgba(0,128,128,1)",aqua:"rgba(0,255,255,1)",cyan:"rgba(0,255,255,1)"},n}();t.TtmlContext=o}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(10)],r=function(n,t,i){"use strict";t.xmlNS="http://www.w3.org/XML/1998/namespace";var r=function(){function n(n){this.ttmlNamespace="http://www.w3.org/ns/ttml";this.ttmlStyleNamespace="http://www.w3.org/ns/ttml#styling";this.ttmlParameterNamespace="http://www.w3.org/ns/ttml#parameter";this.ttmlMetaNamespace="http://www.w3.org/ns/ttml#metadata";this.idPrefix="";this.mediaFrameRate=30;this.mediaFrameRateMultiplier=1;this.mediaSubFrameRate=1;this.mediaTickRate=1e3;this.supportedTimeBase="media";this.cellResolution={rows:15,columns:32};this.defaultRegionStyle={backgroundColor:"transparent",color:"#E8E9EA",direction:"ltr",display:"auto",displayAlign:"before",extent:"auto",fontFamily:"default",fontSize:"1c",fontStyle:"normal",fontWeight:"normal",lineHeight:"normal",opacity:"1",origin:"auto",overflow:"hidden",padding:"0",showBackground:"always",textAlign:"start",textDecoration:"none",textOutline:"none",unicodeBidi:"normal",visibility:"visible",wrapOption:"noWrap",writingMode:"lrtb",zIndex:"auto"};this.fontMap={};this.fontMap["default"]="Lucida sans typewriter, Lucida console, Consolas";this.fontMap.monospaceSerif="Courier";this.fontMap.proportionalSerif="Times New Roman, Serif";this.fontMap.monospaceSansSerif="Lucida sans typewriter, Lucida console, Consolas";this.fontMap.proportionalSansSerif="Arial, Sans-serif";this.fontMap.casual="Verdana";this.fontMap.cursive="Zapf-Chancery, Segoe script, Cursive";this.fontMap.smallCaps="Arial, Helvetica";this.fontMap.monospace="Lucida sans typewriter, Lucida console, Consolas";this.fontMap.sansSerif="Arial, Sans-serif";this.fontMap.serif="Times New Roman, Serif";n&&i.extend(this,n)}return n}();t.TtmlSettings=r}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t],r=function(n,t){"use strict";var i=function(){function n(n,t){this.mediaFrameRate=n;this.mediaTickRate=t}return n.prototype.parse=function(t){var i,r;if(!t)return 0;if(i=n.absoluteTimeRegex.exec(t),i&&i.length>3){var f=parseInt(i[1],10)*3600,e=parseInt(i[2],10)*60,o=parseInt(i[3],10),u=0;return i[5]&&(u=parseFloat(i[4])*1e3),i[6]&&(u=Math.round(parseFloat(i[6])*this.getTimeUnitMultiplier("f"))),1e3*(f+e+o)+u}return(r=n.relativeTimeRegex.exec(t),r&&r.length>3)?Math.round(parseFloat(r[1])*this.getTimeUnitMultiplier(r[3])):0},n.prototype.getTimeUnitMultiplier=function(n){switch(n){case"h":return 36e5;case"ms":return 1;case"m":return 6e4;case"s":return 1e3;case"f":return 1e3/this.mediaFrameRate;case"t":return 1e3/this.mediaTickRate;default:return 0}},n.absoluteTimeRegex=/^(\d{1,}):(\d{2}):(\d{2})((\.\d{1,})|:(\d{2,}(\.\d{1,})?))?$/,n.relativeTimeRegex=/^(\d+(\.\d+)?)(ms|[hmsft])$/,n}();t.TtmlTimeParser=i}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r;!(u=[i,t,i(9),i(7),i(65),i(8),i(12),i(15),i(14),i(22),i(23),i(24),i(25),i(26),i(27),i(28),i(30),i(31),i(66),i(32),i(33),i(35),i(1),i(36),i(37),i(38),i(67),i(17),i(68),i(41),i(42),i(44),i(40),i(45),i(69),i(70),i(47),i(49),i(51),i(50),i(20),i(21),i(52),i(53),i(54),i(55),i(56),i(11),i(57)],r=function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot,st,ht,ct,lt,at,vt,yt,pt,wt,bt,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei){"use strict";var oi=function(){function n(){}return n}();t.ComponentAutoInitializer=oi,function(){i.ComponentFactory.create([{c:r.ActionBar},{c:u.ActionMenu},{c:f.ActionToggle},{c:e.Alert,selector:".c-alert, .m-alert"},{c:s.BackToTop,selector:".c-back-to-top, .m-back-to-top"},{c:o.Button},{c:h.Checkbox},{c:c.ChoiceSummary},{c:l.Combo},{c:a.CompareChart,selector:".c-compare-chart, .m-compare-chart"},{c:v.ContentToggle},{c:y.DateTimePicker},{c:p.DeviceActions},{c:w.Dialog},{c:b.Drawer},{c:k.FeedHeroItem},{c:d.File},{c:g.Flyout},{c:nt.HeroItem,selector:".c-hero, .m-hero-item"},{c:tt.ImmersiveHeroItem},{c:it.InPageNavigation,selector:".c-in-page-navigation, .m-in-page-navigation"},{c:rt.MosaicPlacement},{c:ut.MultiFeature},{c:ft.MultiHeroItem},{c:et.MultiSlideCarousel},{c:ot.NavigationMenu},{c:st.PageBar},{c:ht.PageBehaviors},{c:ct.Pagination,selector:".c-pagination, .m-pagination"},{c:lt.Pivot},{c:at.ProductPlacement},{c:vt.RangeSlider},{c:yt.Rating},{c:pt.RefineMenu},{c:wt.Select},{c:bt.SelectButton},{c:kt.SelectMenu,selector:".c-select-menu, .c-select-menu .c-menu-item.f-sub-menu"},{c:dt.SequenceIndicator,selector:".context-sequence-indicator, .c-sequence-indicator"},{c:gt.SingleSlideCarousel},{c:ni.Slider},{c:ti.Social,selector:".c-social, .m-social"},{c:ii.SupplementalNavigation,selector:".c-supplemental-nav, .m-supplemental-nav"},{c:ri.Table},{c:ui.Toggle},{c:fi.Tooltip},{c:ei.Video,eventToBind:"DOMContentLoaded"}])}()}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(6),i(10),i(4)],r=function(n,t,i,r,u){"use strict";var e=function(n){function t(t){var i=this;n.call(this,t);this.onTriggerClick=function(n){n=u.getEvent(n);u.preventDefault(n);i.disabled||i.onTriggerToggled()};this.onItemClick=function(n){n=u.getEvent(n);var t=n.currentTarget;if(!t.hasAttribute("aria-disabled"))i.onItemSelected(t)};this.onNonActionMenuClick=function(n){if(n=u.getEvent(n),!!i.element&&!!i.menu){var t=u.getEventTargetOrSrcElement(n);i.element.contains(t)||t!==i.menu&&t.parentElement!==i.menu&&i.collapse()}};this.onTriggerKeyPress=function(n){var f,t;n=u.getEvent(n);f=r.getKeyCode(n);switch(f){case 13:case 32:u.preventDefault(n);i.disabled||(t=i.items[0],i.onTriggerToggled(),t.setAttribute("tabindex","0"),t.focus())}};this.handleMenuKeydownEvent=function(n){n=u.getEvent(n);var t=r.getKeyCode(n);(t!==9||i.isExpanded())&&u.preventDefault(n);i.handleMenuKeydown(u.getEventTargetOrSrcElement(n),t)};this.update()}return f(t,n),t.prototype.update=function(){if(this.trigger=u.selectFirstElement(t.triggerSelector,this.element),this.menu=u.selectFirstElement(t.menuSelector,this.element),this.items=u.selectElementsT('li[class^="f-context-"]',this.element),this.disabled=this.trigger.hasAttribute("disabled"),!!this.trigger&&!!this.menu&&!!this.items&&!!this.items.length){var n=this.isExpanded();this.addEventListeners();n&&this.expand()}},t.prototype.teardown=function(){!this.trigger||!this.menu||!this.items||!this.items.length||this.removeEventListeners();this.trigger=null;this.menu=null;this.items=null;this.selectedItem=null},t.prototype.isExpanded=function(){return this.trigger.getAttribute(t.ariaExpanded)==="true"},t.prototype.expand=function(){u.removeClass(this.trigger,"x-hidden-focus");u.addClass(this.trigger,"f-active");this.trigger.setAttribute(t.ariaExpanded,"true")},t.prototype.collapse=function(){u.removeClass(this.trigger,"f-active");this.trigger.setAttribute(t.ariaExpanded,"false")},t.prototype.addEventListeners=function(){var n,t,i;for(u.addEvent(this.trigger,u.eventTypes.click,this.onTriggerClick),u.addEvent(this.trigger,u.eventTypes.keydown,this.onTriggerKeyPress),u.addEvent(this.menu,u.eventTypes.keydown,this.handleMenuKeydownEvent,!0),n=0,t=this.items;n<t.length;n++)i=t[n],u.addEvent(i,u.eventTypes.click,this.onItemClick);u.addEvent(document,u.eventTypes.click,this.onNonActionMenuClick)},t.prototype.removeEventListeners=function(){var n,t,i;for(u.removeEvent(this.trigger,u.eventTypes.click,this.onTriggerClick),u.removeEvent(this.trigger,u.eventTypes.keydown,this.onTriggerKeyPress),u.removeEvent(this.menu,u.eventTypes.keydown,this.handleMenuKeydownEvent,!0),n=0,t=this.items;n<t.length;n++)i=t[n],u.removeEvent(i,u.eventTypes.click,this.onItemClick);u.removeEvent(document,u.eventTypes.click,this.onNonActionMenuClick)},t.prototype.onTriggerToggled=function(){this.isExpanded()?this.collapse():this.expand()},t.prototype.onItemSelected=function(n){this.selectedItem=n;this.collapse();this.initiatePublish({id:this.selectedItem.id})},t.prototype.publish=function(n,t){if(!!this.selectedItem)n.onSelection(t)},t.prototype.handleMenuKeydown=function(n,t){switch(t){case 32:case 13:n.hasAttribute("aria-disabled")||(this.handleMenuEnterKey(n),this.trigger.focus());break;case 27:this.trigger.focus();this.collapse();break;case 38:this.handleMenuArrowKey(!0,n);break;case 40:this.handleMenuArrowKey(!1,n);break;case 9:this.isExpanded()&&(this.trigger.focus(),this.collapse())}},t.prototype.handleMenuArrowKey=function(n,t){var r=this.items.indexOf(t),i;r!==-1&&(i=n?r-1:r+1,i<0?i=this.items.length-1:i>=this.items.length&&(i=0),this.items[r].removeAttribute("tabindex"),this.items[i].setAttribute("tabindex","0"),this.items[i].focus())},t.prototype.handleMenuEnterKey=function(n){this.onItemSelected(n)},t.selector=".c-action-menu",t.ariaExpanded="aria-expanded",t.triggerSelector=t.selector+" > button.c-action-trigger",t.menuSelector=t.triggerSelector+' + ul[role="menu"]',t}(i.Publisher);t.ActionMenu=e}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(2)],r=function(n,t,i){"use strict";var r=function(n){function t(t,i){i===void 0&&(i=null);n.call(this,t,i);this.feedHeroItemElement=t}return f(t,n),t.selector=".m-feed-hero-item",t.callToActionSelector="a",t}(i.HeroItemBase);t.FeedHeroItem=r}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(2)],r=function(n,t,i){"use strict";var r=function(n){function t(t,i){i===void 0&&(i=null);n.call(this,t,i);this.multiHeroItemElement=t}return f(t,n),t.selector=".m-multi-hero-item",t.callToActionSelector="a",t}(i.HeroItemBase);t.MultiHeroItem=r}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(4)],r=function(n,t,i,r){"use strict";var u=function(n){function t(i){var u=this;n.call(this,i);this.onTriggerClick=function(n){var i=r.getEventTargetOrSrcElement(n),e=i.getAttribute(t.ariaControlsAttribute),f=document.getElementById(e);f!==null&&u.toggleVisibility(f,i)};this.update()}return f(t,n),t.prototype.update=function(){var n=r.selectElements("button",this.element);n.length!==0&&(this.triggers=n,this.menus=r.selectElements("button + ul",this.element),r.addEvent(this.triggers,r.eventTypes.click,this.onTriggerClick))},t.prototype.teardown=function(){r.removeEvent(this.triggers,r.eventTypes.click,this.onTriggerClick)},t.prototype.toggleVisibility=function(n,i){n.getAttribute(t.ariaHidden)==="true"?this.showMenu(n,i):this.hideMenu(n,i)},t.prototype.showMenu=function(n,i){n.setAttribute(t.ariaHidden,"false");i.setAttribute(t.ariaExpanded,"true")},t.prototype.hideMenu=function(n,i){n.setAttribute(t.ariaHidden,"true");i.setAttribute(t.ariaExpanded,"false")},t.selector=".c-navigation-menu",t.ariaExpanded="aria-expanded",t.ariaHidden="aria-hidden",t.ariaControlsAttribute="aria-controls",t}(i.ObservableComponent);t.NavigationMenu=u}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(6),i(4),i(10)],r=function(n,t,i,r,u){"use strict";var e=function(n){function t(i){var f=this;n.call(this,i);this.element=i;this.handleNumberInputChange=function(n){var t=r.getEventTargetOrSrcElement(n),i=parseFloat(t.value);if(isNaN(i)){r.preventDefault(n);return}f.updateFromChangedElement(t,i)};this.updateFromChangedElement=function(n,t){var i,r;n===f.minimumInput||n===f.minimumSlider?(i=parseFloat(f.maximumInput.getAttribute("value")),r=f.minimum,isNaN(i)||t>i?f.syncInputAndSlider(f.minimumInput,f.minimumSlider,i):t<r?f.syncInputAndSlider(f.minimumInput,f.minimumSlider,r):f.syncInputAndSlider(f.minimumInput,f.minimumSlider,t)):(n===f.maximumInput||n===f.maximumSlider)&&(i=f.maximum,r=parseFloat(f.minimumInput.getAttribute("value")),isNaN(r)||t<r?f.syncInputAndSlider(f.maximumInput,f.maximumSlider,r):t>i?f.syncInputAndSlider(f.maximumInput,f.maximumSlider,i):f.syncInputAndSlider(f.maximumInput,f.maximumSlider,t));f.updateRangeUI()};this.handleSliderKeyboard=function(n){var t=r.getEventTargetOrSrcElement(n),i=u.getKeyCode(n),e=parseFloat(t.getAttribute("aria-valuenow")),o=n.shiftKey?10:1;i===(f.primaryDirection===r.Direction.left?39:37)?f.updateFromChangedElement(t,e+o):i===(f.primaryDirection===r.Direction.left?37:39)&&f.updateFromChangedElement(t,e-o)};this.handleSliderMouseDown=function(n){r.addEvent(window,r.eventTypes.mouseup,f.handleSliderMouseUp);r.addEvent(window,r.eventTypes.mousemove,f.handleSliderMouseMove);f.activelyAdjustedSlider=r.getEventTargetOrSrcElement(n);r.addClass(f.activelyAdjustedSlider===f.minimumSlider?f.minimumInput:f.maximumInput,t.activlyAdjustingClassName);f.mousedownReferenceLocation=n.pageX;f.mousedownReferenceOffset=f.activelyAdjustedSlider.style[f.offsetDirection]};this.handleSliderMouseUp=function(){r.removeEvent(window,r.eventTypes.mouseup,f.handleSliderMouseUp);r.removeEvent(window,r.eventTypes.mousemove,f.handleSliderMouseMove);r.removeClass(f.activelyAdjustedSlider===f.minimumSlider?f.minimumInput:f.maximumInput,t.activlyAdjustingClassName);f.activelyAdjustedSlider=null;f.mousedownReferenceLocation=null;f.mousedownReferenceOffset=null};this.handleSliderMouseMove=function(n){f.animationFrameRequestInProgress||f.requestAnimationFrame.call(window,function(){return f.requestSliderHandleUpdate(n.pageX)})};this.requestAnimationFrame=r.SafeBrowserApis.requestAnimationFrame;this.update()}return f(t,n),t.prototype.update=function(){if(this.element){var n=r.selectElements("input",this.element);n.length===2&&(this.minimumInput=n[0],this.maximumInput=n[1],this.minimum=parseInt(this.minimumInput.getAttribute("min"),10)||0,this.maximum=parseInt(this.maximumInput.getAttribute("max"),10)||100,this.createRangeSliderUI(),this.primaryDirection=r.getDirection(this.element),this.offsetDirection=this.primaryDirection===r.Direction.left?"left":"right",this.updateRangeUI(),r.addEvents([this.minimumInput,this.maximumInput],"keydown",this.handleNumberInputChange),r.addEvents([this.minimumSlider,this.maximumSlider],"keydown",this.handleSliderKeyboard),r.addEvents([this.minimumSlider,this.maximumSlider],"mousedown",this.handleSliderMouseDown))}},t.prototype.teardown=function(){r.removeEvents([this.minimumInput,this.maximumInput],"keydown",this.handleNumberInputChange);r.removeEvents([this.minimumSlider,this.maximumSlider],"keydown",this.handleSliderKeyboard);r.removeEvents([this.minimumSlider,this.maximumSlider],"mousedown",this.handleSliderMouseDown)},t.prototype.publish=function(n,t){if(n.onValueChanged)n.onValueChanged(t)},t.prototype.createSlider=function(n){var t=document.createElement("div");return t.setAttribute("role","slider"),t.setAttribute("aria-valuemin",this.minimum.toString()||"0"),t.setAttribute("aria-valuemax",this.maximum.toString()||"100"),t.setAttribute("aria-valuenow",n.getAttribute("value")||"0"),t.setAttribute("tabindex","0"),t},t.prototype.createRangeSliderUI=function(){if(!this.slider){this.slider=document.createElement("div");var n=document.createElement("div");this.minimumSlider=this.createSlider(this.minimumInput);this.maximumSlider=this.createSlider(this.maximumInput);this.selectedRangeIndicator=document.createElement("span");n.appendChild(this.minimumSlider);n.appendChild(this.maximumSlider);n.appendChild(this.selectedRangeIndicator);this.slider.setAttribute("aria-hidden","true");this.slider.appendChild(n);this.element.appendChild(this.slider);return}},t.prototype.updateRangeUI=function(){var t=parseInt(this.minimumSlider.getAttribute("aria-valuenow"),10),i=parseInt(this.maximumSlider.getAttribute("aria-valuenow"),10),n=this.calculateOffset(t,this.maximum),r=this.calculateOffset(i,this.maximum);this.minimumSlider.style[this.offsetDirection]=n.toString().concat("%");this.maximumSlider.style[this.offsetDirection]=r.toString().concat("%");this.selectedRangeIndicator.style[this.offsetDirection]=n.toString().concat("%");this.selectedRangeIndicator.style.width=(r-n).toString().concat("%");this.initiatePublish({minimum:t,maximum:i})},t.prototype.requestSliderHandleUpdate=function(n){this.animationFrameRequestInProgress=!1;var u=n-this.mousedownReferenceLocation,t=parseFloat(this.mousedownReferenceOffset),i=u/this.element.clientWidth*100,f=this.primaryDirection===r.Direction.left?t+i:t-i,e=Math.floor(f/100*this.maximum);this.updateFromChangedElement(this.activelyAdjustedSlider,e)},t.prototype.calculateOffset=function(n,t){if(isNaN(n)||isNaN(t))return 0;var i=n/t*100;return i<0?0:i>100?0:i},t.prototype.syncInputAndSlider=function(n,t,i){if(!isNaN(i)){var r=i.toString();n.setAttribute("value",r);n.value=r;t.setAttribute("aria-valuenow",r)}},t.selector=".c-range-slider",t.activlyAdjustingClassName="f-adjusting",t}(i.Publisher);t.RangeSlider=e}.apply(t,u),r!==undefined&&(n.exports=r))},function(n,t,i){var u,r,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)};!(u=[i,t,i(3),i(4)],r=function(n,t,i,r){"use strict";var u=function(n){function t(i){var u=this;n.call(this,i);this.onRatingFocus=function(n){var i=r.getEvent(n);r.addClass(u.element,t.userRatedSelector);r.addClass(u.element,t.communityRatedSelector);u.removeButtonClasses();u.setButtonStyle(i.target)};this.onRatingBlur=function(){u.communityRated===!1&&r.removeClass(u.element,t.communityRatedSelector);u.userRated===!1&&r.removeClass(u.element,t.userRatedSelector);u.resetButtonClasses()};this.update()}return f(t,n),t.prototype.update=function(){this.buttons=r.selectElements("button",this.element);this.buttonClasses=this.getButtonClasses();this.userRated=r.hasClass(this.element,t.userRatedSelector);this.communityRated=r.hasClass(this.element,t.communityRatedSelector);r.addEvent(this.buttons,r.eventTypes.focus,this.onRatingFocus);r.addEvent(this.buttons,r.eventTypes.blur,this.onRatingBlur)},t.prototype.teardown=function(){r.removeEvent(this.buttons,r.eventTypes.focus,this.onRatingFocus);r.removeEvent(this.buttons,r.eventTypes.blur,this.onRatingBlur)},t.prototype.getButtonClasses=function(){for(var i=[],n=0,u=this.buttons.length;n<u;n++)r.hasClass(this.buttons[n],t.fullClass)?i.push(t.fullClass):r.hasClass(this.buttons[n],t.halfClass)?i.push(t.halfClass):r.hasClass(this.buttons[n],t.noneClass)?i.push(t.noneClass):i.push("");return i},t.prototype.removeButtonClasses=function(){for(var n=0,t=this.buttons.length;n<t;n++)r.removeClass(this.buttons[n],this.buttonClasses[n])},t.prototype.resetButtonClasses=function(){for(var n=0,i=this.buttonClasses.length;n<i;n++)r.addClass(this.buttons[n],this.buttonClasses[n]),r.hasClass(this.buttons[n],t.fullClass)&&this.buttonClasses[n]!==t.fullClass&&r.removeClass(this.buttons[n],t.fullClass)},t.prototype.setButtonStyle=function(n){for(var u=!0,i=0,f=this.buttons.length;i<f;i++)u===!0?r.addClass(this.buttons[i],t.fullClass):r.removeClass(this.buttons[i],t.fullClass),this.buttons[i]===n&&(u=!1)},t.selector=".c-rating.f-interactive",t.userRatedSelector="f-user-rated",t.communityRatedSelector="f-community-rated",t.fullClass="f-full",t.halfClass="f-half",t.noneClass="f-none",t}(i.ObservableComponent);t.Rating=u}.apply(t,u),r!==undefined&&(n.exports=r))}]),function(n){var t=!1,r,i;typeof define=="function"&&define.amd&&(define(n),t=!0);typeof exports=="object"&&(module.exports=n(),t=!0);t||(r=window.Cookies,i=window.Cookies=n(),i.noConflict=function(){return window.Cookies=r,i})}(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(i){function r(t,u,f){var o,h,l,e,s;if(typeof document!="undefined"){if(arguments.length>1){f=n({path:"/"},r.defaults,f);typeof f.expires=="number"&&(h=new Date,h.setMilliseconds(h.getMilliseconds()+f.expires*864e5),f.expires=h);try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(y){}return u=i.write?i.write(u,t):encodeURIComponent(String(u)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",u,f.expires?"; expires="+f.expires.toUTCString():"",f.path?"; path="+f.path:"",f.domain?"; domain="+f.domain:"",f.secure?"; secure":""].join("")}t||(o={});for(var a=document.cookie?document.cookie.split("; "):[],v=/(%[0-9A-Z]{2})+/g,c=0;c<a.length;c++){l=a[c].split("=");e=l.slice(1).join("=");e.charAt(0)==='"'&&(e=e.slice(1,-1));try{if(s=l[0].replace(v,decodeURIComponent),e=i.read?i.read(e,s):i(e,s)||e.replace(v,decodeURIComponent),this.json)try{e=JSON.parse(e)}catch(y){}if(t===s){o=e;break}t||(o[s]=e)}catch(y){}}return o}}return r.set=r,r.get=function(n){return r.call(r,n)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,i){r(t,"",n(i,{expires:-1}))},r.withConverter=t,r}return t(function(){})});Accessibility=Accessibility||{};Accessibility.__bindListeners=function(){$(document).on("click",'a[href*="#"]',function(n){var t,i;$(this).attr("href").indexOf("#")==0&&(t=$(this).attr("href"),t=$(n.target).attr("href"),$(t).length>0&&(i=$(t).attr("tabindex"),i==undefined&&(i="none"),$(t).attr("tabindex","0"),$(t).focus(),$(t).attr("data-TabIndexBeforeForceFocus",i)))});$(document).on("blur","*[data-TabIndexBeforeForceFocus]",function(){var n=$(this).attr("data-TabIndexBeforeForceFocus");$(this).removeAttr("data-TabIndexBeforeForceFocus");n=="none"?$(this).removeAttr("tabindex"):$(this).attr("tabindex",n)});$(document).on("keyup",".js-clickOnSpaceOrEnter",function(n){switch(n.keyCode){case 32:case 13:Accessibility.simulateClick(n.target)}return!0});$(document).on("keydown",".js-clickOnSpaceOrEnter",function(n){if(n.keyCode==32)return n.preventDefault(),!1})};Accessibility.setFocus=function(n){if($(n).length<=0)return!1;var t=$(n).attr("tabindex");return t=t==undefined?"none":t,$(n).attr("data-TabIndexBeforeForceFocus",t),$(n).attr("tabindex","0"),$(n).focus(),!0};Accessibility.simulateClick=function(n){var t=$(n)[0],i;document.createEvent?(i=document.createEvent("MouseEvents"),i.initEvent("click",!0,!1),t.dispatchEvent(i)):document.createEventObject?t.fireEvent("onclick"):typeof t.onclick=="function"&&t.onclick()};Accessibility.alertAssertive=function(n){$("#divAriaAssertive").remove();$("body").append('<div id="divAriaAssertive" class="sr-only" aria-live="assertive" role="alert" aria-hidden="false">'+n+"<\/div>")};Accessibility.alertPolite=function(n){$("#divAriaPolite").remove();$("body").append('<div id="divAriaPolite" class="sr-only"  aria-live="polite" role="alert" aria-hidden="false">'+n+"<\/div>")};$(function(){Accessibility.__bindListeners()});CalendarEvent.instances={};CalendarEvent.getByElement=function(n){return CalendarEvent.getByElementID($(n).attr("id"),!0)};CalendarEvent.getByElementID=function(n,t){return CalendarEvent.hasByElementID(n)==!0?CalendarEvent.instances[n]:t==!0?(CalendarEvent.instances[n]=new CalendarEvent(n),CalendarEvent.instances[n]):undefined};CalendarEvent.hasByElementID=function(n){if(n==null||n==undefined)return!1;var t=CalendarEvent.instances[n];return t==null||t==undefined?!1:!0};CalendarEvent.prototype.getData=function(n){var t=this;return{CalendarType:n,DateStart:t.DateStart,DateEnd:t.DateEnd,TimeZone:t.TimeZone,Title:t.Title,Description:t.Description,Location:t.Location,OrganizerName:t.OrganizerName,OrganizerEmail:t.OrganizerEmail,ExternalLinkUrl:t.ExternalLinkUrl}};CalendarEvent.prototype.openEventOnCalendar=function(n){var t=this.getData(n),i=JSON.stringify(t);return window.open("/en-us/Resource/CalendarEvent?ceJson="+encodeURIComponent(i))};CalendarEvent.prototype.render=function(n){var i,r,u,t;if(this._isRendered!==!0){$(this._element).addClass("c-action-menu");$(this._element).find(".js-CalendarEventSettings").hide();$(this._element).prepend('<ul class="c-context-menu js-CalendarEventItems" role="menu"><\/ul>');$(this._element).prepend('<button class="c-action-trigger" aria-haspopup="true" aria-expanded="false">'+this.ButtonText+"<\/button>");for(i in this.CalendarTypes)r="ce-itm-"+$(this._element).attr("id")+"-"+i,u=this.CalendarTypes[i],$(this._element).find(".js-CalendarEventItems").append('            <li class="f-context-text-only" role="menuitem" tabindex="0" id="'+r+'">                <span>'+u+"<\/span>            <\/li>");t=this;MWF.ComponentFactory.create([{component:MWF.ActionMenu,selector:"#"+$(t._element).attr("id"),eventToBind:"",elements:[t._element],callback:function(i){var r,u;for(r in i)u=i[r],u.subscribe({onSelection:function(n){var r,i;if(!!n.id){r=$("#"+n.id).text().trim();for(i in t.CalendarTypes)r==t.CalendarTypes[i]&&t.openEventOnCalendar(i)}}});t._isRendered=!0;n!==undefined&&n!==null&&n(t)}}])}else t._isRendered=!0,n!==undefined&&n!==null&&n(t)};CalendarEvent.__getUniqueID=function(){var n=null;do n="ce-"+Math.random().toString(36).substr(2,10).toUpperCase();while($("#"+n).length>0);return n};$(document).ready(function(){$(".js-CalendarEvent:not(.js-ignore)").each(function(n,t){new CalendarEvent(t).render()})})