!function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(a,o,function(t){return e[t]}.bind(null,o));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=26)}([function(e,t,n){
/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */
e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:a,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:s,create:r}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),s||(s=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const d=w(Array.prototype.forEach),u=w(Array.prototype.pop),m=w(Array.prototype.push),f=w(String.prototype.toLowerCase),h=w(String.prototype.toString),p=w(String.prototype.match),g=w(String.prototype.replace),v=w(String.prototype.indexOf),_=w(String.prototype.trim),$=w(Object.prototype.hasOwnProperty),y=w(RegExp.prototype.test),b=(C=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(C,t)});var C;function w(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return l(e,t,a)}}function k(e,a){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;t&&t(e,null);let i=a.length;for(;i--;){let t=a[i];if("string"==typeof t){const e=o(t);e!==t&&(n(a)||(a[i]=e),t=e)}e[t]=!0}return e}function I(e){for(let t=0;t<e.length;t++)$(e,t)||(e[t]=null);return e}function S(t){const n=r(null);for(const[a,o]of e(t))$(t,a)&&(Array.isArray(o)?n[a]=I(o):o&&"object"==typeof o&&o.constructor===Object?n[a]=S(o):n[a]=o);return n}function A(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}e=a(e)}return function(){return null}}const T=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),x=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),E=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),L=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),N=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=i(["#text"]),O=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),R=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),P=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),F=s(/<%[\w\W]*|[\w\W]*%>/gm),j=s(/\${[\w\W]*}/gm),z=s(/^data-[\-\w.\u00B7-\uFFFF]/),q=s(/^aria-[\-\w]+$/),U=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=s(/^(?:\w+script|data):/i),Y=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=s(/^html$/i),Z=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,MUSTACHE_EXPR:B,ERB_EXPR:F,TMPLIT_EXPR:j,DATA_ATTR:z,ARIA_ATTR:q,IS_ALLOWED_URI:U,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:Y,DOCTYPE_NAME:G,CUSTOM_ELEMENT:Z});const V=1,X=3,K=7,Q=8,ee=9,te=function(){return"undefined"==typeof window?null:window},ne=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;t&&t.hasAttribute("data-tt-policy-suffix")&&(n=t.getAttribute("data-tt-policy-suffix"));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const a=e=>t(e);if(a.version="3.1.7",a.removed=[],!n||!n.document||n.document.nodeType!==ee)return a.isSupported=!1,a;let{document:o}=n;const s=o,l=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:C,Node:w,Element:I,NodeFilter:B,NamedNodeMap:F=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:j,DOMParser:z,trustedTypes:q}=n,W=I.prototype,Y=A(W,"cloneNode"),Z=A(W,"remove"),ae=A(W,"nextSibling"),oe=A(W,"childNodes"),ie=A(W,"parentNode");if("function"==typeof C){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let se,re="";const{implementation:le,createNodeIterator:ce,createDocumentFragment:de,getElementsByTagName:ue}=o,{importNode:me}=s;let fe={};a.isSupported="function"==typeof e&&"function"==typeof ie&&le&&void 0!==le.createHTMLDocument;const{MUSTACHE_EXPR:he,ERB_EXPR:pe,TMPLIT_EXPR:ge,DATA_ATTR:ve,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:$e,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:be}=J;let{IS_ALLOWED_URI:Ce}=J,we=null;const ke=k({},[...T,...x,...D,...L,...M]);let Ie=null;const Se=k({},[...O,...H,...R,...P]);let Ae=Object.seal(r(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,xe=null,De=!0,Ee=!0,Le=!1,Ne=!0,Me=!1,Oe=!0,He=!1,Re=!1,Pe=!1,Be=!1,Fe=!1,je=!1,ze=!0,qe=!1;const Ue="user-content-";let We=!0,Ye=!1,Ge={},Ze=null;const Je=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ve=null;const Xe=k({},["audio","video","img","source","image","track"]);let Ke=null;const Qe=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let at=nt,ot=!1,it=null;const st=k({},[et,tt,nt],h);let rt=null;const lt=["application/xhtml+xml","text/html"],ct="text/html";let dt=null,ut=null;const mt=o.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},ht=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ut||ut!==e){if(e&&"object"==typeof e||(e={}),e=S(e),rt=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?ct:e.PARSER_MEDIA_TYPE,dt="application/xhtml+xml"===rt?h:f,we=$(e,"ALLOWED_TAGS")?k({},e.ALLOWED_TAGS,dt):ke,Ie=$(e,"ALLOWED_ATTR")?k({},e.ALLOWED_ATTR,dt):Se,it=$(e,"ALLOWED_NAMESPACES")?k({},e.ALLOWED_NAMESPACES,h):st,Ke=$(e,"ADD_URI_SAFE_ATTR")?k(S(Qe),e.ADD_URI_SAFE_ATTR,dt):Qe,Ve=$(e,"ADD_DATA_URI_TAGS")?k(S(Xe),e.ADD_DATA_URI_TAGS,dt):Xe,Ze=$(e,"FORBID_CONTENTS")?k({},e.FORBID_CONTENTS,dt):Je,Te=$(e,"FORBID_TAGS")?k({},e.FORBID_TAGS,dt):{},xe=$(e,"FORBID_ATTR")?k({},e.FORBID_ATTR,dt):{},Ge=!!$(e,"USE_PROFILES")&&e.USE_PROFILES,De=!1!==e.ALLOW_ARIA_ATTR,Ee=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Me=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,He=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,Fe=e.RETURN_DOM_FRAGMENT||!1,je=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,ze=!1!==e.SANITIZE_DOM,qe=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,Ce=e.ALLOWED_URI_REGEXP||U,at=e.NAMESPACE||nt,Ae=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ft(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ft(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(Ee=!1),Fe&&(Be=!0),Ge&&(we=k({},M),Ie=[],!0===Ge.html&&(k(we,T),k(Ie,O)),!0===Ge.svg&&(k(we,x),k(Ie,H),k(Ie,P)),!0===Ge.svgFilters&&(k(we,D),k(Ie,H),k(Ie,P)),!0===Ge.mathMl&&(k(we,L),k(Ie,R),k(Ie,P))),e.ADD_TAGS&&(we===ke&&(we=S(we)),k(we,e.ADD_TAGS,dt)),e.ADD_ATTR&&(Ie===Se&&(Ie=S(Ie)),k(Ie,e.ADD_ATTR,dt)),e.ADD_URI_SAFE_ATTR&&k(Ke,e.ADD_URI_SAFE_ATTR,dt),e.FORBID_CONTENTS&&(Ze===Je&&(Ze=S(Ze)),k(Ze,e.FORBID_CONTENTS,dt)),We&&(we["#text"]=!0),He&&k(we,["html","head","body"]),we.table&&(k(we,["tbody"]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');se=e.TRUSTED_TYPES_POLICY,re=se.createHTML("")}else void 0===se&&(se=ne(q,l)),null!==se&&"string"==typeof re&&(re=se.createHTML(""));i&&i(e),ut=e}},pt=k({},["mi","mo","mn","ms","mtext"]),gt=k({},["annotation-xml"]),vt=k({},["title","style","font","a","script"]),_t=k({},[...x,...D,...E]),$t=k({},[...L,...N]),yt=function(e){let t=ie(e);t&&t.tagName||(t={namespaceURI:at,tagName:"template"});const n=f(e.tagName),a=f(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===a||pt[a]):Boolean(_t[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&gt[a]:Boolean($t[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!gt[a])&&!(t.namespaceURI===et&&!pt[a])&&!$t[n]&&(vt[n]||!_t[n]):!("application/xhtml+xml"!==rt||!it[e.namespaceURI]))},bt=function(e){m(a.removed,{element:e});try{ie(e).removeChild(e)}catch(t){Z(e)}},Ct=function(e,t){try{m(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ie[e])if(Be||Fe)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},wt=function(e){let t=null,n=null;if(Pe)e="<remove></remove>"+e;else{const t=p(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===rt&&at===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const a=se?se.createHTML(e):e;if(at===nt)try{t=(new z).parseFromString(a,rt)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(at,"template",null);try{t.documentElement.innerHTML=ot?re:a}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),at===nt?ue.call(t,He?"html":"body")[0]:He?t.documentElement:i},kt=function(e){return ce.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},It=function(e){return e instanceof j&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof F)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},St=function(e){return"function"==typeof w&&e instanceof w},At=function(e,t,n){fe[e]&&d(fe[e],e=>{e.call(a,t,n,ut)})},Tt=function(e){let t=null;if(At("beforeSanitizeElements",e,null),It(e))return bt(e),!0;const n=dt(e.nodeName);if(At("uponSanitizeElement",e,{tagName:n,allowedTags:we}),e.hasChildNodes()&&!St(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return bt(e),!0;if(e.nodeType===K)return bt(e),!0;if(Oe&&e.nodeType===Q&&y(/<[/\w]/g,e.data))return bt(e),!0;if(!we[n]||Te[n]){if(!Te[n]&&Dt(n)){if(Ae.tagNameCheck instanceof RegExp&&y(Ae.tagNameCheck,n))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))return!1}if(We&&!Ze[n]){const t=ie(e)||e.parentNode,n=oe(e)||e.childNodes;if(n&&t)for(let a=n.length-1;a>=0;--a){const o=Y(n[a],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ae(e))}}return bt(e),!0}return e instanceof I&&!yt(e)?(bt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(Me&&e.nodeType===X&&(t=e.textContent,d([he,pe,ge],e=>{t=g(t,e," ")}),e.textContent!==t&&(m(a.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(bt(e),!0)},xt=function(e,t,n){if(ze&&("id"===t||"name"===t)&&(n in o||n in mt))return!1;if(Ee&&!xe[t]&&y(ve,t));else if(De&&y(_e,t));else if(!Ie[t]||xe[t]){if(!(Dt(e)&&(Ae.tagNameCheck instanceof RegExp&&y(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&y(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&y(Ae.tagNameCheck,n)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))))return!1}else if(Ke[t]);else if(y(Ce,g(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!Ve[e])if(Le&&!y($e,g(n,ye,"")));else if(n)return!1;return!0},Dt=function(e){return"annotation-xml"!==e&&p(e,be)},Et=function(e){At("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie};let o=t.length;for(;o--;){const i=t[o],{name:s,namespaceURI:r,value:l}=i,c=dt(s);let m="value"===s?l:_(l);if(n.attrName=c,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,At("uponSanitizeAttribute",e,n),m=n.attrValue,n.forceKeepAttr)continue;if(Ct(s,e),!n.keepAttr)continue;if(!Ne&&y(/\/>/i,m)){Ct(s,e);continue}Me&&d([he,pe,ge],e=>{m=g(m,e," ")});const f=dt(e.nodeName);if(xt(f,c,m))if(!qe||"id"!==c&&"name"!==c||(Ct(s,e),m=Ue+m),Oe&&y(/((--!?|])>)|<\/(style|title)/i,m))Ct(s,e);else{if(se&&"object"==typeof q&&"function"==typeof q.getAttributeType)if(r);else switch(q.getAttributeType(f,c)){case"TrustedHTML":m=se.createHTML(m);break;case"TrustedScriptURL":m=se.createScriptURL(m)}try{r?e.setAttributeNS(r,s,m):e.setAttribute(s,m),It(e)?bt(e):u(a.removed)}catch(e){}}}At("afterSanitizeAttributes",e,null)},Lt=function e(t){let n=null;const a=kt(t);for(At("beforeSanitizeShadowDOM",t,null);n=a.nextNode();)At("uponSanitizeShadowNode",n,null),Tt(n)||(n.content instanceof c&&e(n.content),Et(n));At("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,r=null;if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!=typeof e&&!St(e)){if("function"!=typeof e.toString)throw b("toString is not a function");if("string"!=typeof(e=e.toString()))throw b("dirty is not a string, aborting")}if(!a.isSupported)return e;if(Re||ht(t),a.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=dt(e.nodeName);if(!we[t]||Te[t])throw b("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof w)n=wt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===V&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Be&&!Me&&!He&&-1===e.indexOf("<"))return se&&je?se.createHTML(e):e;if(n=wt(e),!n)return Be?null:je?re:""}n&&Pe&&bt(n.firstChild);const l=kt(Ye?e:n);for(;i=l.nextNode();)Tt(i)||(i.content instanceof c&&Lt(i.content),Et(i));if(Ye)return e;if(Be){if(Fe)for(r=de.call(n.ownerDocument);n.firstChild;)r.appendChild(n.firstChild);else r=n;return(Ie.shadowroot||Ie.shadowrootmode)&&(r=me.call(s,r,!0)),r}let u=He?n.outerHTML:n.innerHTML;return He&&we["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&y(G,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),Me&&d([he,pe,ge],e=>{u=g(u,e," ")}),se&&je?se.createHTML(u):u},a.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ht(e),Re=!0},a.clearConfig=function(){ut=null,Re=!1},a.isValidAttribute=function(e,t,n){ut||ht({});const a=dt(e),o=dt(t);return xt(a,o,n)},a.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],m(fe[e],t))},a.removeHook=function(e){if(fe[e])return u(fe[e])},a.removeHooks=function(e){fe[e]&&(fe[e]=[])},a.removeAllHooks=function(){fe={}},a}()}()},function(e,t,n){"use strict";
/*! npm.im/object-fit-images 3.2.4 */var a="bfred-it:object-fit-images",o=/(object-fit|object-position)\s*:\s*([-.\w\s%]+)/g,i="undefined"==typeof Image?{style:{"object-position":1}}:new Image,s="object-fit"in i.style,r="object-position"in i.style,l="background-size"in i.style,c="string"==typeof i.currentSrc,d=i.getAttribute,u=i.setAttribute,m=!1;function f(e,t,n){var a="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='"+(t||1)+"' height='"+(n||0)+"'%3E%3C/svg%3E";d.call(e,"src")!==a&&u.call(e,"src",a)}function h(e,t){e.naturalWidth?t(e):setTimeout(h,100,e,t)}function p(e){var t=function(e){for(var t,n=getComputedStyle(e).fontFamily,a={};null!==(t=o.exec(n));)a[t[1]]=t[2];return a}(e),n=e[a];if(t["object-fit"]=t["object-fit"]||"fill",!n.img){if("fill"===t["object-fit"])return;if(!n.skipTest&&s&&!t["object-position"])return}if(!n.img){n.img=new Image(e.width,e.height),n.img.srcset=d.call(e,"data-ofi-srcset")||e.srcset,n.img.src=d.call(e,"data-ofi-src")||e.src,u.call(e,"data-ofi-src",e.src),e.srcset&&u.call(e,"data-ofi-srcset",e.srcset),f(e,e.naturalWidth||e.width,e.naturalHeight||e.height),e.srcset&&(e.srcset="");try{!function(e){var t={get:function(t){return e[a].img[t||"src"]},set:function(t,n){return e[a].img[n||"src"]=t,u.call(e,"data-ofi-"+n,t),p(e),t}};Object.defineProperty(e,"src",t),Object.defineProperty(e,"currentSrc",{get:function(){return t.get("currentSrc")}}),Object.defineProperty(e,"srcset",{get:function(){return t.get("srcset")},set:function(e){return t.set(e,"srcset")}})}(e)}catch(e){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}!function(e){if(e.srcset&&!c&&window.picturefill){var t=window.picturefill._;e[t.ns]&&e[t.ns].evaled||t.fillImg(e,{reselect:!0}),e[t.ns].curSrc||(e[t.ns].supported=!1,t.fillImg(e,{reselect:!0})),e.currentSrc=e[t.ns].curSrc||e.src}}(n.img),e.style.backgroundImage='url("'+(n.img.currentSrc||n.img.src).replace(/"/g,'\\"')+'")',e.style.backgroundPosition=t["object-position"]||"center",e.style.backgroundRepeat="no-repeat",e.style.backgroundOrigin="content-box",/scale-down/.test(t["object-fit"])?h(n.img,(function(){n.img.naturalWidth>e.width||n.img.naturalHeight>e.height?e.style.backgroundSize="contain":e.style.backgroundSize="auto"})):e.style.backgroundSize=t["object-fit"].replace("none","auto").replace("fill","100% 100%"),h(n.img,(function(t){f(e,t.naturalWidth,t.naturalHeight)}))}function g(e,t){var n=!m&&!e;if(t=t||{},e=e||"img",r&&!t.skipTest||!l)return!1;"img"===e?e=document.getElementsByTagName("img"):"string"==typeof e?e=document.querySelectorAll(e):"length"in e||(e=[e]);for(var o=0;o<e.length;o++)e[o][a]=e[o][a]||{skipTest:t.skipTest},p(e[o]);n&&(document.body.addEventListener("load",(function(e){"IMG"===e.target.tagName&&g(e.target,{skipTest:t.skipTest})}),!0),m=!0,e="img"),t.watchMQ&&window.addEventListener("resize",g.bind(null,e,{skipTest:t.skipTest}))}g.supportsObjectFit=s,g.supportsObjectPosition=r,function(){function e(e,t){return e[a]&&e[a].img&&("src"===t||"srcset"===t)?e[a].img:e}r||(HTMLImageElement.prototype.getAttribute=function(t){return d.call(e(this,t),t)},HTMLImageElement.prototype.setAttribute=function(t,n){return u.call(e(this,t),t,String(n))})}(),e.exports=g},function(e,t){"classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var e=this;return{contains:function(t){return-1!==e.className.baseVal.split(" ").indexOf(t)},add:function(t){var n=(e.getAttribute("class")+" "+t).trim();return e.setAttribute("class",n)},remove:function(t){var n=e.getAttribute("class")||"",a=new RegExp("(?:^|\\s)"+t+"(?!\\S)","g");n=n.replace(a,"").trim(),e.setAttribute("class",n)},toggle:function(e){this.contains(e)?this.remove(e):this.add(e)}}}})},function(e,t,n){},function(e,t){},function(e,t){!function(){"use strict";var e='[data-js="skip-nav-link"]',t=".root h1",n=".root .aem-Grid .container";function a(e){e&&e.element&&function(e){e.element.removeAttribute("data-js"),function(e){const a=e.element.getAttribute("href").substring(1),o=null!==document.querySelector(t)?document.querySelector(t):document.querySelector(n);o&&(o.setAttribute("id",a),o.setAttribute("tabindex",-1))}(e)}(e)}function o(){for(var t=document.querySelectorAll(e),n=0;n<t.length;n++)new a({element:t[n]})}"loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)}()},function(e,t){!function(){"use strict";var e,t,n,a,o,i;function s(){if($(".filter__nav-desktop")[0]){var e=window.location.hash.substr(1);""!==e?$(".filter__nav-desktop").find("[data-target='"+e+"']").click():$(".filter__nav-desktop").find("[data-target='all']").click()}}$(".filter__nav-desktop a").click((function(t){t.preventDefault(),$(this).hasClass("checked")||($(".filter__nav-desktop").find("a").each((function(){$(this).removeClass("checked"),$(this).parent("li").removeClass("checked"),$(this).attr("aria-selected","false")})),$(".filter__nav-mobile").find("a").each((function(){$(this).removeClass("checked")})),$(this).addClass("checked"),$(this).parent("li").addClass("checked"),e=$(this).attr("data-target"),n=$(".filter__nav-mobile").find("[data-target='"+e+"']").addClass("checked"),a=$(n).attr("data-target"),o=$(n).text(),i=$(".filter__nav-mobile--first > a"),$(i).attr("data-target")!==$(n).attr("data-target")&&$(i).attr("data-target",a).text(o).addClass("checked"),$(".category").find(".cardItem__wrapper").removeClass("cardItem-hide"),$(".category").find(".cardItem").removeClass("cardItem-hide"),"all"!==e&&($(".category").find('.cardItem:not([data-target*="'+e+'"])').addClass("cardItem-hide"),$(".category").find('.cardItem:not([data-target*="'+e+'"])').parent().addClass("cardItem-hide"))),$(this).attr("aria-selected","true")})),$("#filter__mobile a").click((function(n){n.preventDefault(),$(this).hasClass("checked")?$(this).hasClass("checked")&&$(this).nextAll(".dropdown").toggleClass("show-menu"):($(".filter__nav-desktop").find("a").each((function(){$(this).removeClass("checked"),$(this).parent("li").removeClass("checked")})),$(".filter__nav-mobile ").find("a").each((function(){$(this).removeClass("checked")})),$(this).addClass("checked"),e=$(this).attr("data-target"),t=$(this).text(),$(".filter__nav-mobile--first > a").attr("data-target",e).text(t).addClass("checked"),$(this).parent(".dropdown").toggleClass("show-menu"),$(".filter__nav-desktop").find("[data-target='"+e+"']").addClass("checked"),$(".filter__nav-desktop").find("[data-target='"+e+"']").parent("li").addClass("checked"),$(".category").find(".cardItem__wrapper").removeClass("cardItem-hide"),$(".category").find(".cardItem").removeClass("cardItem-hide"),"all"!==e&&($(".category").find('.cardItem:not([data-target*="'+e+'"])').addClass("cardItem-hide"),$(".category").find('.cardItem:not([data-target*="'+e+'"])').parent().addClass("cardItem-hide")))})),"loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s)}()},function(e,t){!function(){"use strict";function e(){if($(".form__dynamic__fields__container")[0]){var e=0,t=$(".form__dynamic__fields__container").data("repeat");$(document).on("click",".add__dynamic_fields",(function(n){if(n.preventDefault(),e<t){if(++e==t&&$(".add__dynamic_fields").addClass("is-hidden"),e>1&&e<=t)for(var a=1;a<e;a++)$(".dynamic__generated__fields .container_"+a).find(".remove__dynamic__fields").addClass("is-hidden");$(".main__form__fields").contents().clone().appendTo(".dynamic__generated__fields .container_"+e),$(".dynamic__generated__fields .container_"+e).find("input[type='text']").val(""),$(".dynamic__generated__fields .container_"+e).find("textarea").val(""),$(".dynamic__generated__fields .container_"+e).find("input:checkbox").removeAttr("checked"),$(".dynamic__generated__fields .container_"+e).removeClass("is-hidden"),$(".dynamic__generated__fields .container_"+e).find(".remove__dynamic__fields").removeClass("is-hidden"),$(".dynamic__generated__fields .container_"+e+" input").each((function(){var t=$(this).attr("name");$(this).attr("name",t+"_"+e)})),$(".dynamic__generated__fields .container_"+e+" textarea").each((function(){var t=$(this).attr("name");$(this).attr("name",t+"_"+e)})),$(".dynamic__generated__fields .container_"+e+" select").each((function(){var t=$(this).attr("name");$(this).attr("name",t+"_"+e)}))}})),$(document).on("click",".remove__dynamic__fields",(function(t){$(this).parent(".removable").empty(),$(".dynamic__generated__fields .container_"+e).addClass("is-hidden"),e--,$(".add__dynamic_fields").removeClass("is-hidden"),$(".dynamic__generated__fields .container_"+e).find(".remove__dynamic__fields").removeClass("is-hidden"),t.preventDefault()}))}}"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}()},function(e,t){!function(){"use strict";function e(){}"loading"!==document.readyState||document.addEventListener("DOMContentLoaded",e)}()},function(e,t){!function(){"use strict";function e(){$("[id*=navisTFNAnchor]").each((function(){const e=window.location.search.toLowerCase(),t=new URLSearchParams(e).get("nck");let n;if(null==t){const e="NavisNum=",t=decodeURIComponent(document.cookie).split(";");for(let a=0;a<t.length;a++){let o=t[a];for(;" "==o.charAt(0);)o=o.substring(1);0==o.indexOf(e)&&(n=o.substring(e.length,o.length))}isNaN(parseInt(n))||NavisConvertTagToPhoneNumberBasic(n)!==n?(ProcessNavisNCKeyword(),SetElementToNavisNCPhoneNumberFormat("navisTFNAnchor","###-###-####"),$(this).text(FormatPhone(NavisConvertTagToPhoneNumberBasic(ReadNavisTagCookie()),"###-###-####")),$(this).attr("href","tel:"+FormatPhone(NavisConvertTagToPhoneNumberBasic(ReadNavisTagCookie()),"###-###-####"))):($(this).text(FormatPhone(n,"###-###-####")),$(this).attr("href","tel:"+FormatPhone(n,"###-###-####")))}else isNaN(parseInt(t))||NavisConvertTagToPhoneNumberBasic(t)!==t?($(this).text(FormatPhone(NavisConvertTagToPhoneNumberBasic(ReadNavisTagCookie()),"###-###-####")),$(this).attr("href","tel:"+FormatPhone(NavisConvertTagToPhoneNumberBasic(ReadNavisTagCookie()),"###-###-####"))):($(this).text(FormatPhone(t,"###-###-####")),$(this).attr("href","tel:"+FormatPhone(t,"+1-###-###-####")))}))}"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}()},function(e,t){!function(){"use strict";var e,t,n,a={renderVideoPlayButton:function(){t.contains(n)&&(this.formatVideoPlayButton(),n.classList.add("has-media-controls-hidden"),(e=document.getElementsByClassName("pillar__video-overlay-play-button")[0]).addEventListener("click",this.hideVideoPlayButton),e.addEventListener("click",this.hideTextContent),e.addEventListener("click",this.hideDarkenLayer))},formatVideoPlayButton:function(){t.insertAdjacentHTML("beforeend",'                <svg class="pillar__video-overlay-play-button" viewBox="0 0 200 200" alt="Play video">                    <circle cx="100" cy="100" r="90" fill="none" stroke-width="3" stroke="#fff"/>                    <polygon points="70, 55 70, 145 145, 100" fill="#fff"/>                </svg>            ')},hideVideoPlayButton:function(){$("body video").each((function(){!$(this).get(0).paused&&$(this).get(0).controls&&$(this).get(0).pause()})),n.play(),n.addEventListener("play",e=>{var t;t=n.id,$("body video").each((function(){!$(this).get(0).paused&&$(this).get(0).controls&&this.id!==t&&$(this).get(0).pause()}))}),$('div[id^="pillar-off-"]').removeClass("is-hidden"),e.classList.add("is-hidden"),n.classList.remove("has-media-controls-hidden"),n.setAttribute("controls","controls")},hideTextContent:function(){var e=document.getElementsByClassName("pillar__text-container");e.length>0&&(e[0].style.display="none")},hideDarkenLayer:function(e){const t=e.target.parentNode.parentNode.parentNode.querySelector(".darken-overlay");t&&t.classList.add("is-hidden")}};function o(){t=document.getElementsByClassName("pillar__video-wrapper")[0],n=document.getElementsByClassName("pillar__video")[0],void 0!==t&&void 0!==n&&a.renderVideoPlayButton()}$('div[id^="pillar-off-"]').each((function(e){$(this).click((function(){t=document.getElementsByClassName("pillar__video-wrapper")[0],n=document.getElementsByClassName("pillar__video")[0],$(this).addClass("is-hidden");var e=document.getElementsByClassName("pillar__text-container");e.length>0&&(e[0].style.display=""),$(".pillar__background > .darken-overlay").removeClass("is-hidden"),void 0!==t&&void 0!==n&&($(".pillar__video").get(0).load(),n.classList.add("has-media-controls-hidden"),$(".pillar__video-overlay-play-button").removeClass("is-hidden"))}))})),"loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)}()},function(e,t){!function(){"use strict";var e,t,n;const a='[class*="pressroom"]',o='[data-js="press-room-main-container"]',i='[class*="footer"]',s='[data-js="press-room-sidebar"]',r='[data-js="press-room-container-shim"]',l="is-sticky",c="is-sticky-btm";function d(){const e=document.querySelector(a),t=null!==e?e.offsetHeight:0,n=$(window).height();if(e&&t>n){const e="block"!=(null!==document.querySelector(r)?getComputedStyle(document.querySelector(r)):"").display,t=null!==document.querySelector(o)?document.querySelector(o).offsetTop:0,a=document.querySelector(i);let d=!1;a&&(d=function(e){const t=e.getBoundingClientRect(),n=$(window).height();return t.top<=n}(a));const u=document.querySelector(s),m=null!==u?u.offsetHeight:0;if(u&&!e)if(pageYOffset>t)if(d){const e=a.getBoundingClientRect();e&&e.top<m&&(u.classList.add(c),u.classList.remove(l),u.style.bottom=n-e.top+"px")}else u.classList.add(l),u.classList.remove(c),u.style.bottom="auto";else u.classList.remove(l),u.classList.remove(c),u.style.bottom="auto"}}function u(){if($(window).scroll((function(){d()})),$(".press-room__filter__nav-desktop")[0]){var e=window.location.hash.substr(1);""!==e?$(".press-room__filter__nav-desktop").find("[data-target='"+e+"']").click():$(".press-room__filter__nav-desktop").find("[data-target='all']").click()}}$(".press-room__filter__nav-desktop a").click((function(a){a.preventDefault(),$(this).hasClass("checked")||($(".press-room__filter__nav-desktop").find("a").each((function(){$(this).removeClass("checked"),$(this).parent("li").removeClass("checked"),$(this).attr("aria-selected","false");const e="div[data-target='"+a.currentTarget.innerText+"'";$(e)[0]?$(e)[0].focus():$("div.press-room__cardItem")[0].focus(),window.scrollTo(0,0)})),$(".press-room__filter__nav-mobile").find("a").each((function(){$(this).removeClass("checked")})),$(this).addClass("checked"),$(this).parent("li").addClass("checked"),e=$(this).attr("data-target"),t=$(".press-room__filter__nav-mobile").find("[data-target='"+e+"']").addClass("checked"),n=$(".press-room__filter__nav-mobile--first > a"),$(n).attr("data-target")!==$(t).attr("data-target")&&($(".press-room__filter__nav-mobile--first").prepend(t),$(".press-room__filter__nav-mobile--dropdown").prepend(n)),$(".press-room").find(".press-room__cardItem").removeClass("press-room__cardItem-hide"),"all"!==e&&$(".press-room").find('.press-room__cardItem:not([data-target*="'+e+'"])').addClass("press-room__cardItem-hide")),$(this).attr("aria-selected","true")})),$("#press-room__filter__mobile a").click((function(t){if(t.preventDefault(),$(this).hasClass("checked"))$(this).hasClass("checked")&&$(this).parent().nextAll(".press-room__filter__nav-mobile--dropdown").addClass("show-menu");else{$(".press-room__filter__nav-desktop").find("a").each((function(){$(this).removeClass("checked")})),$(".press-room__filter__nav-mobile").find("a").each((function(){$(this).removeClass("checked")})),$(this).addClass("checked"),e=$(this).attr("data-target");var n=$(".press-room__filter__nav-mobile--first > a");$(".press-room__filter__nav-mobile--dropdown").prepend(n),$(".press-room__filter__nav-mobile--first").prepend(this),$(this).parent().nextAll(".press-room__filter__nav-mobile--dropdown").removeClass("show-menu"),$(".press-room__filter__nav-desktop").find("[data-target='"+e+"']").addClass("checked"),$(".press-room").find(".press-room__cardItem").removeClass("press-room__cardItem-hide"),"all"!==e&&$(".press-room").find('.press-room__cardItem:not([data-target*="'+e+'"])').addClass("press-room__cardItem-hide")}})),"loading"!==document.readyState?u():document.addEventListener("DOMContentLoaded",u)}()},function(e,t){!function(){"use strict";var e='[data-js="select"]';function t(e){e&&e.element&&function(e){new Choices(e.element,{searchEnabled:!1,placeholder:!1,itemSelectText:"",shouldSort:!1}),e.element.removeAttribute("data-js")}(e)}function n(){for(var n=document.querySelectorAll(e),a=0;a<n.length;a++)new t({element:n[a]})}"loading"!==document.readyState?n():document.addEventListener("DOMContentLoaded",n)}()},function(e,t){$(window).on("load",(function(){setTimeout((function(){$(".fccard__image").css("visibility","visible")}),500)})),$(document).ready((function(){if($(".alert-banner").length>0){var e=$(".alertBanner__container div").hide(),t=0;e.eq(0).show();var n,a=e.eq(t).innerHeight()+"px";function o(){if($(".landinghero-main").length>0){var n=e.eq(t).innerHeight();const i=document.querySelector('[id="global-nav"]');let s=window.innerHeight;const r=null!==i?i.offsetHeight:0;s=parseInt(s)-parseInt(r);var a=Number(s)-Number(n);if($(".landinghero-main").height(a),i.setAttribute("style",`margin-top: ${n}px`),$(".landinghero-main .darken-overlay").length>0){var o=$(".landinghero-main").height()+$(".global-nav").height();$(".landinghero-main .landingpage-hero").height(o)}else $(".landinghero-main .landingpage-hero").css("min-height","100vh")}}function i(){a=e.eq(t).innerHeight()+"px";$(".alert-banner").offset().top;var n=$(window).scrollTop();$(".alert-banner").hasClass("sticky-disable")&&(0==n?($(".alert-banner").css({position:"absolute"}),"block"==$(".is-mobile-nav-only").css("display")?($(".global-nav__mt").css("top",a),$(".global-nav__subnav").css("top",a),$(".global-nav__subnav-container").css("top",a),$(".global-nav__nav").css("margin-top",a)):($(".global-nav__container").css("top",a),$(".global-nav__mt").css("top",0),$(".global-nav__nav").css("margin-top",0),$(".global-nav__subnav-container").css("top",0))):($(".alert-banner").css({position:"absolute"}),"block"==$(".is-mobile-nav-only").css("display")?($(".global-nav__mt").css("top",0),$(".global-nav__subnav").css("top",0),$(".global-nav__subnav-container").css("top",0),$(".global-nav__nav").css("margin-top",0)):($(".global-nav__container").css("top",0),$(".global-nav__mt").css("top",0),$(".global-nav__nav").css("margin-top",0),$(".global-nav__subnav-container").css("top",0))))}function s(){$(".alert-banner").hasClass("sticky-enable")&&("block"==$(".is-mobile-nav-only").css("display")&&$(".alert-banner").hasClass("sticky-enable")?($(".global-nav__mt").css("top",a),$(".global-nav__subnav").css("top",a),$(".global-nav__subnav-container").css("top",a),$(".global-nav__nav").css("margin-top",a)):($(".global-nav__mt").css("top",0),$(".global-nav__container").css("top",a),$(".global-nav__subnav-container").css("top",0),$(".global-nav__nav").css("margin-top",0)))}function r(){i()}function l(){$(".alert-banner").removeAttr("style"),i(),s(),r()}$(window).scroll((function(){i()})),$(document.body).on("touchmove",(function(){i()})),$(window).resize((function(){clearTimeout(n),n=setTimeout(l,4),o()})),s(),r(),function n(){t<e.length-1&&$(".banner--item").length>1&&e.eq(t).delay(6e3).fadeOut("fast",(function(){t++,e.eq(t).fadeIn("fast"),n(),t===e.length-1&&(e.length=e.length,t=-1,n())}))}(),setTimeout((function(){o()}),1e3)}else{function c(){if($(".landinghero-main").length>0){var e=$(".alert-banner").innerHeight();const a=document.querySelector('[id="global-nav"]');let o=window.innerHeight;const i=null!==a?a.offsetHeight:0;o=parseInt(o)-parseInt(i);var t=Number(o)-Number(e);if($(".landinghero-main").height(t),a.setAttribute("style",`margin-top: ${e}px`),$(".landinghero-main .darken-overlay").length>0){var n=$(".landinghero-main").height()+$(".global-nav").height();$(".landinghero-main .landingpage-hero").height(n)}else $(".landinghero-main .landingpage-hero").css("min-height","100vh")}}c(),$(window).resize((function(){c()}))}$("#global-nav__logo--black").removeAttr("style")}))},function(e,t){!function(){"use strict";var e=".booknow",t='[data-js="booknow-clone"]',n=".booknow",a='[class*="footer"]',o='[data-js="booknow-shim"]',i='[data-js="global-nav-shim"]',s='[id="global-nav"]';const r="booknow-clone",l="is-top-sticky",c="is-sticky--offset",d="is-bottom-sticky",u=document.querySelector(n),m=$(u),f=document.querySelector(a),h=$(f),p=document.querySelector(s),g=$(p);let v=!1,_=window.innerHeight,y=_,b=0,C=0;function w(){if(u){C=m.outerHeight(!0);let e=window.pageYOffset||document.documentElement.scrollTop;const n=g.outerHeight(!0);_=window.innerHeight,v||(y=_,v=!0),b=parseInt(y)-parseInt(e)+parseInt(C);let a=h.offset().top;a=parseInt(a)-parseInt(e);let i="";const s=document.querySelector(o);s&&(i=getComputedStyle(s));const p="block"!=i.display;if(-1!=u.className.indexOf(c)&&(e=parseInt(e)+parseInt(n),a=parseInt(a)+parseInt(n),b=parseInt(b)+parseInt(n)),p)if(b<=_)if(parseInt(a)<=parseInt(_)-parseInt(C)){const e=document.querySelector(t),n=$(document.querySelector(t));if(e)m.fadeOut("fast"),n.fadeIn("fast");else{const e=u.cloneNode(!0);e.classList.remove(d),e.classList.add(r),e.setAttribute("data-js",r);const t=f.firstChild;f.insertBefore(e,t),m.fadeOut("fast")}}else{m.addClass(d),m.fadeIn("fast");const e=$(document.querySelector(t));e&&e.fadeOut("fast")}else m.hasClass(d)&&m.fadeOut("fast",(function(){m.removeClass(d)}));else m.fadeIn("fast"),e>=parseInt(y)?m.hasClass(l)||u.classList.add(l):m.hasClass(l)&&(u.classList.remove(l),u.classList.remove(c))}}u&&(y=_,C=m.outerHeight(!0));let k=window.innerWidth;function I(){const e="block"!=getComputedStyle(document.querySelector(i)).display,t=window.innerWidth,n=parseInt(k)-parseInt(t);if(u){if(e&&-1!=navigator.platform.indexOf("iPhone")&&m.hasClass(d)&&0==n)return!1;m.hasClass(l)&&(u.classList.remove(l),u.classList.remove(c)),m.hasClass(d)&&u.classList.remove(d),v=!1,_=window.innerHeight,y=_,k=window.innerWidth,w()}}function S(e){$(window).resize(I),e&&e.element&&$(window).scroll((function(){w()}))}function A(){for(var t=document.querySelectorAll(e),n=0;n<t.length;n++)new S({element:t[n]})}"loading"!==document.readyState?A():document.addEventListener("DOMContentLoaded",A)}()},function(e,t){!function(){"use strict";function e(){function e(){$('div[class^="cardcarousel-"]').each((function(){$(this).not(".slick-initialized").slick({arrows:!0,useTransform:!0,slidesToShow:parseInt($(this).attr("layout"),10),slidesToScroll:1,initialSlide:0,swipeToSlide:!0,infinite:!1,mobileFirst:!1,prevArrow:"<img alt='Previous' aira-label='Previous' class='a-left cardcarousel__arrow-prev slick-prev' src='/etc.clientlibs/kohler-destinations/clientlibs/clientlib-site/resources/images/icons/previous.png'>",nextArrow:"<img alt='Next' aira-label='Next' class='a-right cardcarousel__arrow-next slick-next' src='/etc.clientlibs/kohler-destinations/clientlibs/clientlib-site/resources/images/icons/next.png'>",responsive:[{breakpoint:"767",settings:"unslick"}]})}))}e(),$(window).resize((function(){$(window).width()>767&&e()}))}"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}()},function(e,t){!function(){"use strict";var e='[data-js="enhancedpage-hero"]',t=".darken-overlay",n='svg[id^="enhancedvideo-hero__video-play--"]',a=".enhancedvideo-hero__video",o="body video",i="show-cta";function s(e){e&&e.element&&function(e){e.element.removeAttribute("data-js"),$(a).each((function(e){const t=$(this).get(0);t.controls&&(t.load(),t.pause())})),$(n).each((function(e){$(this).on("click",e=>{var n;e.preventDefault(),$(o).each((function(){!$(this).get(0).paused&&$(this).get(0).control&&$(this).get(0).pause()})),n=$(e.currentTarget).hasClass("is-mobile-only")?$($(e.currentTarget).parent().find(a)[1]):$(e.currentTarget).parent().find(a),$(n).get(0).controls="controls",$(n).get(0).play(),$(n).get(0).addEventListener("play",e=>{var t;t=n.get(0).id,$(o).each((function(){!$(this).get(0).paused&&$(this).get(0).control&&this.id!==t&&$(this).get(0).pause()}))}),$(e.currentTarget).removeClass(i),$(e.currentTarget).parent().closest(`:has(${t})`).find(t).hide()})}))}(e)}function r(){for(var t=document.querySelectorAll(e),n=0;n<t.length;n++)new s({element:t[n]})}"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r),document.getElementsByClassName("play-icon is-mobile-only").length>0&&document.getElementsByClassName("play-icon is-mobile-only")[0].addEventListener("click",e=>{setTimeout((function(){document.getElementsByClassName("play-icon is-mobile-only")[0].classList.remove("show-cta"),document.getElementsByClassName("enhancedpage-hero__video is-mobile-only")[0].play(),document.getElementsByClassName("enhancedpage-hero__video is-desktop-only")[0].pause()}),500)}),document.getElementsByClassName("play-icon is-desktop-only").length>0&&document.getElementsByClassName("play-icon is-desktop-only")[0].addEventListener("click",e=>{document.getElementsByClassName("play-icon is-desktop-only")[0].classList.remove("show-cta"),document.getElementsByClassName("enhancedpage-hero__video is-desktop-only")[0].play(),document.getElementsByClassName("enhancedpage-hero__video is-mobile-only")[0].pause()}),setTimeout((function(){document.getElementsByClassName("enhancedpage-hero__video is-mobile-only").length>0?document.getElementsByClassName("enhancedpage-hero__video is-mobile-only")[0].onplay=function(){document.getElementsByClassName("play-icon is-mobile-only")[0].classList.remove("show-cta")}:document.getElementsByClassName("enhancedpage-hero__video is-desktop-only").length>0&&(document.getElementsByClassName("enhancedpage-hero__video is-desktop-only")[0].onplay=function(){document.getElementsByClassName("play-icon is-desktop-only")[0].classList.remove("show-cta")})}),3e3)}()},function(e,t){!function(){"use strict";function e(){$('div[class^="featuredcontent-"]').each((function(){let e="",t=[];t=this.classList,Array.prototype.forEach.call(t,(function(t){if(t.match(/\d+$/)){const n=t.match(/\d+$/);e=n.input.split("responsiveImage_").length>0?n.input.split("responsiveImage_")[1]:""}})),$(this).slick({loop:!1,infinite:!1,slidesToShow:$(this).attr("layout"),slidesToScroll:1,arrows:!0,fade:!0,cssEase:"linear",prevArrow:$(".featuredcontent-responsiveImage_"+e+"__arrow-prev"),nextArrow:$(".featuredcontent-responsiveImage_"+e+"__arrow-next"),responsive:[{breakpoint:"767",settings:{slidesToShow:$(this).attr("layout"),slidesToScroll:1}}]}).on("setPosition",(function(e,t){var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;n>850?t.$slides.height("558px"):n>769&&n<850?t.$slides.height("600px"):n>600&&n<769?t.$slides.height("475px"):n>500&&n<600?t.$slides.height("415px"):t.$slides.height("383px")})).on("afterChange",(function(e,t,n){const a=$(e.target).siblings(".featuredcontent__arrow-next");a.hasClass("slick-disabled")?a.prev().addClass("last"):a.prev().removeClass("last")}))})),$('div[class^="fc__video-"]').each((function(e){var t=$(this)[0],n=$(this).find("video")[0];t&&n&&t.contains(n)&&($(".featuredcontent__video").addClass("has-media-controls-hidden"),$(".featuredcontent__video-overlay-play-button").on("click",(function(){var e=$(this).prev().find(".featuredcontent__video:visible");$(this).prev().find(".darken-overlay").hide(),$(this).addClass("is-hidden"),$("body video").each((function(){!$(this).get(0).paused&&$(this).get(0).controls&&$(this).get(0).pause()})),e.trigger("play"),$(e).get(0).addEventListener("play",t=>{var n;n=e.get(0).id,$("body video").each((function(){!$(this).get(0).paused&&$(this).get(0).controls&&this.id!==n&&$(this).get(0).pause()}))}),e.removeClass("has-media-controls-hidden"),e.attr("controls","controls")})))}))}"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}()},function(e,t){!function(){"use strict";(new Date).setHours(0,0,0,0);function e(e){var t=e.match(/(0\d{1}|1[0-2])\/([0-2]\d{1}|3[0-1])\/(19|20)(\d{2})/),n="Invalid Date"!=new Date(e).toString(),a=flatpickr.parseDate(e,"m/d/Y"),o=new Date(a),i=flatpickr.parseDate(e,"M d, Y"),s=new Date(i);return t&&o&&n?o:t&&s&&n?s:""}function t(){var t=$(".form__flatpickr");for(let a=0;a<t.length;a++){var n=t[a].id;n&&(n="#"+n,flatpickr(n,{allowInput:!0,altInput:!0,altFormat:"M d, Y",dateFormat:"m/d/Y",parseDate:e}))}}"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t),$(window).on("resize",t)}()},function(e,t){!function(){"use strict";var e='[data-js="homepage-hero"]',t=".homepage-hero__backgrounds",n=".homepage-hero__title",a=".darken-overlay",o='[data-js="homepage-hero-prev-btn"]',i='[data-js="homepage-hero-next-btn"]',s='svg[id^="homepage-hero__video-play--"]',r=".homepage-hero__video",l="body video",c="is-active",d="is-current",u="is-first",m="slide-left",f="slide-right",h="show-cta";let p=!1;function g(e){if(!p){const s=$(t).children(),r=$(o),l=$(i),h=window.innerWidth;let g=s.filter(".is-current");g=g.length?g:s.first();let v=g.find("img");const _=g.find(n),y=g.find(a);let b=null;h>=768&&(v=g.find("video").length>0?g.find("video"):g.find("img"),b=g.find("video").length>0?g.find("svg"):null);let C=g.index()+e;if(0==C&&_.show(),C!=s.length){C=C<0?0:C>s.length?s.length:C;const t=s.eq(C);t.addClass(d);let o=t.find("img"),i=null;if(h>=768&&(o=t.find("video").length>0?t.find("video"):t.find("img"),i=t.find("video").length>0?t.find("svg"):null),g.find("video").length&&!g.find("video").get(0).paused&&g.find("video").get(0).controls&&g.find("video").get(0).pause(),-1==e){v.removeClass(d),b&&b.removeClass(d),y.removeClass(d),_.fadeOut(300),o.addClass(d),o.addClass(f),i&&i.addClass(d),i&&i.addClass(f);const e=t.find(a);e.addClass(d),e.addClass(f);const s=t.find(n);p=s.length>0,s.fadeIn(750,(function(){p=!1})),g.removeClass(d),v.removeClass(u),b&&b.removeClass(u),y.removeClass(u),o.removeClass(m),o.removeClass(f),e.removeClass(m),e.removeClass(f),i&&i.removeClass(m),i&&i.removeClass(f)}else if(1==e){v.addClass(m),b&&b.addClass(m),y.addClass(m),_.fadeOut(300),o.addClass(d),i&&i.addClass(d);const e=t.find(a);e.addClass(d);const s=t.find(n);p=s.length>0,s.fadeIn(750,(function(){p=!1})),g.removeClass(d),v.removeClass(u),v.removeClass(d),v.removeClass(f),b&&b.removeClass(u),b&&b.removeClass(d),b&&b.removeClass(f),y.removeClass(u),y.removeClass(d),y.removeClass(f),o.removeClass(m),i&&i.removeClass(m),e.removeClass(m)}t.is(s.first())?(r.removeClass(c),r.attr("aria-disabled","true")):(r.addClass(c),r.removeAttr("aria-disabled")),t.is(s.last())?(l.removeClass(c),l.attr("aria-disabled","true")):(l.addClass(c),l.removeAttr("aria-disabled"))}}}function v(e){e&&e.element&&function(e){e.element.removeAttribute("data-js"),g(0),$(i).click((function(e){$(e.currentTarget).hasClass(c)&&$(e.currentTarget).attr("disabled","disabled"),g(1),setTimeout(()=>{$(e.currentTarget).removeAttr("disabled")},750)})),$(o).click((function(e){$(e.currentTarget).hasClass(c)&&$(e.currentTarget).attr("disabled","disabled"),g(-1),setTimeout(()=>{$(e.currentTarget).removeAttr("disabled")},750)})),$(r).each((function(e){const t=$(this).get(0);t.controls&&(t.load(),t.pause())})),$(s).each((function(e){$(this).on("click",e=>{e.preventDefault(),$(l).each((function(){!$(this).get(0).paused&&$(this).get(0).controls&&$(this).get(0).pause()}));const t=$(e.currentTarget).parent().find(r);$(t).get(0).controls="controls",$(t).get(0).play(),$(t).get(0).addEventListener("play",e=>{var n;n=t.get(0).id,$(l).each((function(){!$(this).get(0).paused&&$(this).get(0).controls&&this.id!==n&&$(this).get(0).pause()}))}),$(e.currentTarget).removeClass(h),$(e.currentTarget).parent().closest(`:has(${a})`).find(a).hide()})}))}(e)}function _(){for(var t=document.querySelectorAll(e),n=0;n<t.length;n++)new v({element:t[n]})}"loading"!==document.readyState?_():document.addEventListener("DOMContentLoaded",_)}()},function(e,t){!function(){"use strict";var e='[data-js="landingpage-hero"]',t=".darken-overlay",n='svg[id^="landingpage-hero__video-play--"]',a=".landingpage-hero__video",o="body video",i="show-cta";function s(e){e&&e.element&&function(e){e.element.removeAttribute("data-js"),$(a).each((function(e){const t=$(this).get(0);t.controls&&(t.load(),t.pause())})),$(n).each((function(e){$(this).on("click",e=>{e.preventDefault(),$(o).each((function(){!$(this).get(0).paused&&$(this).get(0).control&&$(this).get(0).pause()}));const n=$(e.currentTarget).parent().find(a);$(n).get(0).controls="controls",$(n).get(0).play(),$(n).get(0).addEventListener("play",e=>{var t;t=n.get(0).id,$(o).each((function(){!$(this).get(0).paused&&$(this).get(0).control&&this.id!==t&&$(this).get(0).pause()}))}),$(e.currentTarget).removeClass(i),$(e.currentTarget).parent().closest(`:has(${t})`).find(t).hide()})}))}(e)}function r(){for(var t=document.querySelectorAll(e),n=0;n<t.length;n++)new s({element:t[n]})}"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)}()},function(e,t){!function(){"use strict";var e='[data-js="lodging"]',t=".lodging",n="#datein",a="#dateout",o="#availabilityForm",i="#location",s='[class*="footer"]',r='[data-js="lodging-book-now"]',l=".choices__inner .choices__item[aria-selected='true']",c=".choices__list--dropdown .choices__list",d=".choices__item",u='[data-js="lodging-shim"]',m='[data-js="global-nav-shim"]',f='[id="global-nav"]',h=".lodging__close-button-container";const p={isSticky:"is-sticky",isStickyOffset:"is-sticky--offset",isBottomSticky:"is-bottom-sticky",isScrollDown:"is-scroll-down",lodging:"lodging",lodgingClone:"lodging-clone",inputError:"input__error",isShown:"is-shown",isHidden:"is-hidden",isOpened:"is-opened",isHighlighted:"is-highlighted",fadeIn:"fade-in",fadeInUp:"fade-in-up",fadeOut:"fade-out"};var g,v;function _(e,t,n){document.querySelector(".lodging__flatpickr.active")&&(new Date(n._initialDate).getDate()==new Date(t).getDate()?n.setDate(new Date(n._initialDate)):n.setDate(new Date(t)))}function y(e){var t=e.match(/(0\d{1}|1[0-2])\/([0-2]\d{1}|3[0-1])\/(19|20)(\d{2})/),n="Invalid Date"!=new Date(e).toString(),a=flatpickr.parseDate(e,"m/d/Y"),o=new Date(a),i=flatpickr.parseDate(e,"F j, Y"),s=new Date(i);return t&&o&&n?o:t&&s&&n?s:""}function b(){const e=(new Date).setHours(0,0,0,0),t=$("#dateInContainer").data("default-checkin")?new Date($("#dateInContainer").data("default-checkin")):e,o=$("#dateOutContainer").data("default-checkout")?new Date($("#dateOutContainer").data("default-checkout")):(new Date).setDate((new Date).getDate()+2);g=flatpickr(n,{allowInput:!0,altInput:!0,altFormat:"F j, Y",dateFormat:"m/d/Y",disableMobile:"true",minDate:e,plugins:[new labelPlugin({})],monthSelectorType:"static",defaultDate:t,parseDate:y,onClose:_,onValueUpdate:function(e,t,n){!function(e,t){var n=$("#"+t.input.parentElement.id);if(0===e.length&&n.addClass(p.inputError).focus(),t&&e){const t=new Date;var o=new Date(e).setHours(0,0,0,0);if(o>=t.setHours(0,0,0,0)){n.removeClass(p.inputError).focus();var i=$(a)[0],s=i.value,r=new Date(s),l=$("#"+i.parentElement.id);o<r&&l.removeClass(p.inputError)}else n.addClass(p.inputError).focus()}}(t,n)}}),v=flatpickr(a,{allowInput:!0,altInput:!0,altFormat:"F j, Y",dateFormat:"m/d/Y",disableMobile:"true",minDate:e,plugins:[new labelPlugin({})],monthSelectorType:"static",defaultDate:o,parseDate:y,onClose:_,onValueUpdate:function(e,t,a){var o=document.querySelector(n),i=new Date(o.value),s=new Date(a.input.value),r=$("#"+a.input.parentElement.id);i<s&&r.removeClass(p.inputError).focus()}}),$(".numInputWrapper").find(".arrowUp").remove(),$(".numInputWrapper").find(".arrowDown").remove()}function C(e){e.preventDefault(),e.target.classList.add(p.isHidden),e.target.closest(t).classList.add(p.isOpened),$(e.target.closest(t)).find(h).addClass("show")}function w(e){e.preventDefault(),$(t).removeClass(p.isOpened),$(h).removeClass("show"),$(r).removeClass(p.isHidden)}function k(e){e.preventDefault();var t=$(e.target).closest(o);if(new Date($(t).find("#datein").val()).setHours(0,0,0,0)>new Date($(t).find("#dateout").val()).setHours(0,0,0,0))return $(t).find("#dateOutContainer .lodging__item-inner").addClass(p.inputError).focus(),void $(t).find(".lodging__cta").blur();var n=$(t).attr("action");const a=n.lastIndexOf("/");n.slice(a+1).match(/[0-9]/g)&&(n=n.slice(0,a+1));var s=n+$(t).find(i).val()+"?datein="+$(t).find("#datein").prev().attr("value").replaceAll("/","%2F")+"&dateout="+$(t).find("#dateout").prev().attr("value").replaceAll("/","%2F")+"&adults="+$(t).find("#adultGuests").val()+"&children="+$(t).find("#childrenGuests").val();window.open(s,"_blank")}const I=document.querySelector(t),S=$(I),A=document.querySelector(s),T=$(A),x=document.querySelector(f),D=$(x);let E=!1,L=window.innerHeight,N=L,M=0,O=0;function H(){if(I){O=S.outerHeight(!0);let e=window.pageYOffset||document.documentElement.scrollTop;const t=D.outerHeight(!0);L=window.innerHeight,E||(N=L,E=!0),M=parseInt(N)-parseInt(e)+parseInt(O);let n=T.offset().top;n=parseInt(n)-parseInt(e);let a="";const o=document.querySelector(u);o&&(a=getComputedStyle(o));const i="block"!=a.display;-1!=I.className.indexOf(p.isStickyOffset)&&(e=parseInt(e)+parseInt(t),n=parseInt(n)+parseInt(t),M=parseInt(M)+parseInt(t));const s=window.pageYOffset;i?s>90?(S.addClass(p.isBottomSticky),S.css("top","unset"),S.fadeIn("fast")):S.hasClass(p.isBottomSticky)&&S.fadeOut("fast",(function(){S.removeClass(p.isBottomSticky)})):(S.fadeIn("fast"),e>=parseInt(N)?S.hasClass(p.isSticky)||I.classList.add(p.isSticky):S.hasClass(p.isSticky)&&(I.classList.remove(p.isSticky),I.classList.remove(p.isStickyOffset)))}let e=!1;-1!=$(".lodging__container").css("flex-flow").indexOf("column")&&(e=!0),e||($(".flatpickr-calendar.open").removeClass("open"),_(0,$("#datein").val(),g),_(0,$("#dateout").val(),v),$(".choices__list--dropdown.is-active").removeClass("is-active"),$(".choices.is-focused.is-open").removeClass("is-open"),$(".choices__list--dropdown").attr("aria-expanded","false"),$(".choices").attr("aria-expanded","false"))}I&&(N=L,O=S.outerHeight(!0));let R=window.innerWidth;function P(){const e="block"!=getComputedStyle(document.querySelector(m)).display,t=window.innerWidth,n=parseInt(R)-parseInt(t);if(I){if(e&&-1!=navigator.platform.indexOf("iPhone")&&S.hasClass(p.isBottomSticky)&&0==n)return!1;S.hasClass(p.isTopSticky)&&(I.classList.remove(p.isTopSticky),I.classList.remove(p.isStickyOffset)),S.hasClass(p.isBottomSticky)&&I.classList.remove(p.isBottomSticky),E=!1,L=window.innerHeight,N=L,R=window.innerWidth,H()}}function B(e){e&&e.element&&function(e){$(window).scroll((function(){H()})),b(),$(r).on("click",C),$(".lodging__close").on("click",w),$(".lodging__flatpickr").on("click",(function(){$(this).val("")}));const t=$(l);for(var n=0;n<t.length;n++){const e=t[n].dataset.value,o=$(c),i=$(o[n]).find(d);for(var a=0;a<i.length;a++)i[a].dataset.value===e?($(i[a]).attr("aria-selected","true"),$(i[a]).addClass(p.isHighlighted)):($(i[a]).attr("aria-selected","false"),$(i[a]).removeClass(p.isHighlighted))}e.element.removeAttribute("data-js"),$(e.element).find(".lodging__cta-wrapper button").on("click",k),$(window).resize(P)}(e)}function F(){for(var t=document.querySelectorAll(e),n=0;n<t.length;n++)new B({element:t[n]})}"loading"!==document.readyState?F():document.addEventListener("DOMContentLoaded",F)}()},function(e,t){!function(){"use strict";var e,t,n;const a=document.querySelector(".article__team"),o=a?a.querySelectorAll(".media__description"):null,i=a?a.querySelectorAll(".media__caret"):null;var s,r;function l(){if($(".meet-the-team__filter__nav-desktop")[0]){var e=window.location.hash.substr(1);""!==e?$(".meet-the-team__filter__nav-desktop").find("[data-target='"+e+"']").click():$(".meet-the-team__filter__nav-desktop").find("[data-target='all']").click()}}s=function(){const e=this.previousElementSibling,t=e.nextElementSibling;Array.prototype.forEach.call(o,(function(n){if(e==n)return $(e).toggleClass("toggleHidden"),void $(t).toggleClass("up");$(n).removeClass("toggleHidden"),$(n).next().removeClass("up")}))},i&&Array.prototype.forEach.call(i,(function(e){e.addEventListener("click",s)})),r=function(){Array.prototype.forEach.call(o,(function(e){e.classList.contains("toggleHidden")&&($(e).removeClass("toggleHidden"),$(e).next().removeClass("up"))}))},$(".meet-the-team__filter__nav-desktop a").click((function(a){a.preventDefault(),$(this).hasClass("checked")||($(".meet-the-team__filter__nav-desktop").find("a").each((function(){r(),$(this).removeClass("checked"),$(this).parent("li").removeClass("checked"),$(this).attr("aria-selected","false")})),$(".meet-the-team__filter__nav-mobile").find("a").each((function(){r(),$(this).removeClass("checked")})),$(this).addClass("checked"),$(this).parent("li").addClass("checked"),e=$(this).attr("data-target"),t=$(".meet-the-team__filter__nav-mobile").find("[data-target='"+e+"']").addClass("checked"),n=$(".meet-the-team__filter__nav-mobile--first > a"),$(n).attr("data-target")!==$(t).attr("data-target")&&($(".meet-the-team__filter__nav-mobile--first").prepend(t),$(".meet-the-team__filter__nav-mobile--dropdown").prepend(n)),$(".meet-the-team").find(".meet-the-team__media").removeClass("meet-the-team__media-hide"),"all"!==e&&$(".meet-the-team").find('.meet-the-team__media:not([data-target*="'+e+'"])').addClass("meet-the-team__media-hide")),$(this).attr("aria-selected","true")})),$("#meet-the-team__filter__mobile a").click((function(t){if(t.preventDefault(),r(),$(this).hasClass("checked"))$(this).hasClass("checked")&&$(this).parent().nextAll(".meet-the-team__filter__nav-mobile--dropdown").addClass("show-menu");else{$(".meet-the-team__filter__nav-desktop").find("a").each((function(){$(this).removeClass("checked")})),$(".meet-the-team__filter__nav-mobile").find("a").each((function(){$(this).removeClass("checked")})),$(this).addClass("checked"),e=$(this).attr("data-target");var n=$(".meet-the-team__filter__nav-mobile--first > a");$(".meet-the-team__filter__nav-mobile--dropdown").prepend(n),$(".meet-the-team__filter__nav-mobile--first").prepend(this),$(this).parent().nextAll(".meet-the-team__filter__nav-mobile--dropdown").removeClass("show-menu"),$(".meet-the-team__filter__nav-desktop").find("[data-target='"+e+"']").addClass("checked"),$(".meet-the-team").find(".meet-the-team__media").removeClass("meet-the-team__media-hide"),"all"!==e&&$(".meet-the-team").find('.meet-the-team__media:not([data-target*="'+e+'"])').addClass("meet-the-team__media-hide")}})),"loading"!==document.readyState?l():document.addEventListener("DOMContentLoaded",l)}()},function(e,t){!function(){"use strict";function e(){document.documentElement.clientWidth;$('div[class^="nestedcarousel-outer-"]').each((function(e){$(this).not(".slick-initialized").slick({arrows:!0,useTransform:!0,slidesToShow:1,slidesToScroll:1,initialSlide:0,swipeToSlide:!0,infinite:!1,prevArrow:$(".nestedcarousel__arrow-prev")[e],nextArrow:$(".nestedcarousel__arrow-next")[e],responsive:[{breakpoint:"767",settings:{arrows:!0,useTransform:!1,prevArrow:$(".nestedcarousel__mobile__arrow-prev")[e],nextArrow:$(".nestedcarousel__mobile__arrow-next")[e]}},{breakpoint:"768",settings:{variableWidth:!0}}]}),$(this).on("setPosition",(function(e,t){t.$slides.height("auto")})),$(this).on("beforeChange",(function(e,t,n,a){var o=a+1;"singleMultiple"==$(this).attr("type")?($(this).parent().parent().next().find("img").each((function(){$(this).removeClass("revealItem__show")})),$(this).parent().parent().next().find('[data-reveal-index="'+o+'"]').addClass("revealItem__show")):($(this).parent().find("img").each((function(){$(this).removeClass("revealItem__show")})),$(this).parent().find('[data-reveal-index="'+o+'"]').addClass("revealItem__show"))})),$(this).on("afterChange",(function(e,t,n){const a=$(e.target).siblings(".nestedcarousel__arrow-next");a.hasClass("slick-disabled")?a.prev().addClass("last"):a.prev().removeClass("last");const o=$(e.target).siblings(".nestedcarousel__mobile__arrow-next");o.hasClass("slick-disabled")?o.prev().addClass("last"):o.prev().removeClass("last")}))})),$('div[class^="nestedcarousel-video-"]').each((function(){var e=$(this)[0],t=$(this).find("video")[0];e&&t&&e.contains(t)&&$('svg[id^="video-play--"]').on("click",(function(e){var t=$(this).attr("videoUniqueId"),n=$(this).prev(),a={};$.each($(n)[0].attributes,(function(e,t){a[t.name]=t.value}));var o=$("<video />",{class:a.class,id:a.id,alt:a.alt,src:a["data-video"],controls:a.controls,poster:a.poster,loop:!0,autoplay:!0,muted:!0,controlslist:a.controlslist,"aria-label":a.arialabel,disablepictureinpicture:"disablepictureinpicture"});$("body video").each((function(){!$(this).get(0).paused&&$(this).get(0).controls&&$(this).get(0).pause()}));$(".nestedcarousel__video__overlay-"+t+".nestedcarousel__modal").children("div#close");$(".nestedcarousel__video__overlay-"+t+".nestedcarousel__modal").children("video").remove(),$(".nestedcarousel__video__overlay-"+t+".nestedcarousel__modal").append(o),o[0].muted=!0,$(".nestedcarousel__video__overlay-"+t+".nestedcarousel__modal").css("display","block"),$(".nestedcarousel__video__overlay-"+t+".nestedcarousel__modal").css("pointer-events","all"),$("body").addClass("video__bodybgcolor")}))})),$('div[class^="video__overlay_close--"]').each((function(){$(this).click((function(){var e=$(this).attr("videoUniqueId");let t=$(this).next();t=t[0],t.muted=!0,$(t).trigger("pause"),$(".nestedcarousel__video__overlay-"+e+".nestedcarousel__modal").css("display","none"),$("body").removeClass("video__bodybgcolor"),$("body").hasClass("video__body-events")&&$("body").removeClass("video__body-events"),$(".nestedcarousel__video-overlay-play-button").removeClass("is-hidden")}))}))}"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}()},function(e,t){$(document).ready((function(){$('img[id^="responsiveImage_"]').each((function(){s7responsiveImage(document.getElementById($(this).attr("id")))}))}))},function(e,t){!function(){"use strict";function e(){}$('a[id^="openOverlay-"]').each((function(e){$(this).click((function(e){e.preventDefault();var t=$(this).attr("uniqueId");$(".video__overlay-min")&&$(".video__overlay-min").addClass("video__overlay").removeClass("video__overlay-min"),$("#video__overlay_container-"+t).css("display","block"),$("#video__overlay_container-"+t).css("pointer-events","all"),$("body").addClass("video__bodybgcolor video__body-events")}))})),$('div[id^="off-"]').each((function(e){$(this).click((function(){var e=$(this).attr("uniqueId"),t=$(this).siblings("video");t=t[0],$(t).trigger("pause"),$("#video__overlay_container-"+e).css("display","none"),$("body").removeClass("video__bodybgcolor"),$("body").removeClass("video__body-events")}))})),"loading"!==document.readyState||document.addEventListener("DOMContentLoaded",e)}()},function(e,t,n){"use strict";n.r(t);n(3);var a=n(1),o=n.n(a);!function(){const e={body:"body"},t="is-scroll-up",n="is-scroll-down",a="is-scroll-top";let i=0;function s(){$(window).scroll((function(){!function(){const o=document.querySelector(e.body),s=window.pageYOffset||document.documentElement.scrollTop;s>i?(o.classList.remove(t),o.classList.remove(a),o.classList.add(n)):0===s?(o.classList.remove(t),o.classList.remove(n),o.classList.add(a)):(o.classList.remove(n),o.classList.remove(a),o.classList.add(t)),i=s<=0?0:s}()})),$(window).on("resize",(function(){const t=document.querySelectorAll(e.slickSlider);if(t)for(let e=0;e<t.length;e++){$(t[e]).slick("resize")}})),o()("img.homepage-hero__image"),o()("img.landingpage-hero__image"),o()("img.global-subnav__imageright"),o()("img.search-results__image"),o()(".roomlist img"),o()(".featuredpackages__right__packages-container__package__image__img")}function r(){s()}"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)}();n(4),n(5),n(6),n(2);!function(){const e='[class*="lodging"]',t='[class*="locations"]',n='[data-js="form-main-container"]',a='[class="form__container"]',o='[class*="cmp-form-text__text"]',i="[required]",s='[id="submitBtn"]',r='[data-js="form-sidebar"]',l='[class*="footer"]',c='[data-js="form-container-shim"]',d="is-sticky",u="is-sticky-btm",m="is-shown",f="field--drop-down",h="input__error",p="form__container";function g(){const e=document.querySelector(a),t=null!==e?e.offsetHeight:0,o=$(window).height();if(e&&t>o){const e="block"!=(null!==document.querySelector(c)?getComputedStyle(document.querySelector(c)):"").display,t=null!==document.querySelector(n)?document.querySelector(n).offsetTop:0,a=document.querySelector(l);let i=!1;a&&(i=function(e){const t=e.getBoundingClientRect(),n=$(window).height();return t.top<=n}(a));const s=document.querySelector(r),m=null!==s?s.offsetHeight:0;if(s&&!e)if(pageYOffset>t)if(i){const e=a.getBoundingClientRect();e&&e.top<m&&(s.classList.add(u),s.classList.remove(d),s.style.bottom=o-e.top+"px")}else s.classList.add(d),s.classList.remove(u),s.style.bottom="auto";else s.classList.remove(d),s.classList.remove(u),s.style.bottom="auto"}}function v(){const e=[],t=document.querySelectorAll(o);for(var n=0;n<t.length;n++){const a=t[n].getAttribute("type");if(a&&"text"===a||"email"===a){const o=t[n].value;if(""!=o){let i=/^[\w \\.\\$-]+$/;if("email"===a&&(i=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,!i.test(o))){t[n].nextElementSibling.classList.add(m),t[n].classList.add(h),e.push(t[n])}if("text"===a&&(i=/^[\w \\.\\$-]+$/,!i.test(o))){t[n].nextElementSibling.classList.add(m),t[n].classList.add(h),e.push(t[n])}}}}return e}function _(e){if(0==$("#g-recaptcha-response").attr("value").trim().length)return!1;{e.preventDefault();let t=!0,n=[];const a=function(e){let t=e.target;for(;t&&t!==document;t=t.parentNode){if(-1!=t.className.indexOf(p))return t}}(e);if(a){!function(e){const t=e.querySelectorAll(i);if(t)for(let e=0;e<t.length;e++){const n=t[e].tagName.toLowerCase();let a="";"hidden"!=t[e].getAttribute("type")&&("select"===n?(a=t[e].parentNode.parentNode.nextElementSibling,t[e].parentNode.classList.remove(h)):(a=t[e].nextElementSibling.nextElementSibling,t[e].classList.remove(h)),a.classList.remove(m))}const n=document.querySelectorAll(o);for(var a=0;a<n.length;a++){const e=n[a].getAttribute("type");if(e&&"text"===e||"email"===e){n[a].nextElementSibling.classList.remove(m),n[a].classList.remove(h)}}}(a);const e=function(e){const t=[],n=e.querySelectorAll(i);if(n)for(let e=0;e<n.length;e++){const a=n[e].tagName.toLowerCase();let o="";"hidden"!=n[e].getAttribute("type")&&(o="select"===a?n[e].parentNode.parentNode.nextElementSibling:n[e].nextElementSibling.nextElementSibling,""!==n[e].value&&"hide"!==n[e].value||("select"===a?n[e].parentNode.classList.add(h):n[e].classList.add(h),o.classList.add(m),t.push(n[e])))}return t}(a),t=function(){const e=[];return $('div[id^="radio_"]').each((function(){var t=$(this).find("input[type='radio']:checked");if($(this).find("#error_message").empty(),$(this).find("#error_message").hide(),0==t.length){var n=$(this).find("#error_message").attr("errorMessage");$(this).find("#error_message").append(n),$(this).find("#error_message").show(),e.push($(this))}else{if("other"==$(this).find("input[type='radio']:checked").val().toLowerCase())if(0==$(this).find("[id^=rother_]").val().trim().length){n=$(this).find("#error_message").attr("radioOtherErrorMessage");$(this).find("#error_message").append(n),$(this).find("#error_message").show(),e.push($(this))}else $(this).find("#error_message").hide()}})),e}(),s=v();n=e.concat(t,s)}if(n.length>0&&(t=!1),t)a.submit();else if(n&&n.length>0){const e=n[0].className;e&&-1!=e.indexOf(f)?n[0].parentNode.parentNode.focus():n[0].focus()}}}function y(){var e,t,n,a,o,i,s,r,l;const c=document.getElementsByTagName("select");function d(e){if("BUTTON"==e.tagName){i=e.parentNode.getElementsByTagName("ul");for(let e=0;e<i.length;e++)i[0].classList.toggle("active")}else if("LI"==e.tagName){const t=e.parentNode.parentNode.getElementsByTagName("select")[0];(l=$(e).siblings(".currentOpt")).length&&$(l).removeClass("currentOpt"),function(e,t){const n=document.getElementById(e);n.value=t,n.setAttribute("selected","selected")}(t.id,e.getAttribute("data-value")),s=e.parentNode.parentNode.getElementsByTagName("span"),e.classList.toggle("currentOpt"),e.parentNode.classList.toggle("active"),s[0].textContent=e.textContent,s[0].parentNode.setAttribute("data-value",e.getAttribute("data-value"))}}function u(e,n,o){e.parentNode.insertBefore(n,e),n.appendChild(e);var i=document.createElement("button"),s=document.createElement("span"),r=document.createTextNode("Please select");a=document.createElement("i"),t=document.createElement("ul"),n.className="select-dropdown select-dropdown--"+o,i.className="select-dropdown__button select-dropdown__button--"+o,i.setAttribute("data-value",""),s.className="select-dropdown select-dropdown--"+o,a.id="caretSelect",t.className="cmp-form-options-select-dropdown__list select-dropdown__list--"+o,t.id="cmp-form-options-select-dropdown__list-"+o,n.appendChild(i),s.appendChild(r),i.appendChild(s),i.appendChild(a),n.appendChild(t)}for(let a=0;a<c.length;a++){c[a].style.display="none",u(document.getElementById(c[a].id),document.createElement("div"),a);for(let i=0;i<c[a].options.length;i++)e=document.createElement("li"),n=c[a].options[i].value,o=document.createTextNode(c[a].options[i].text),e.className="cmp-form-options-select-dropdown__list-item",e.setAttribute("data-value",n),e.appendChild(o),t.appendChild(e),e.addEventListener("click",(function(){d(this)}),!1)}r=document.getElementsByClassName("select-dropdown__button");for(let e=0;e<r.length;e++)r[e].addEventListener("click",(function(e){e.preventDefault(),d(this)}),!1)}function b(){$(window).scroll((function(){g()}));const n=document.querySelectorAll(a);if(n){for(let e=0;e<n.length;e++){const t=n[e].querySelector(s);t&&t.addEventListener("click",v,_)}$(".cmp-form-text__textarea").on("keyup",(function(){var e=$(this).val().length;e>1e3&&$(this).addClass("error-state");$(this).parent().find(".cmp-form-text__character-count").text(e+"/1000")})),$('div[id^="radio_"]').on("input",(function(){$(this).find("input[type='radio']:checked").length>0&&$(this).find("#error_message").hide()})),$('input[type="checkbox"]').click((function(){"other"==$(this).attr("value").toLowerCase()&&1==$(this).prop("checked")?$(this).closest("div").find("#checkboxOther").fadeIn():"other"==$(this).attr("value").toLowerCase()&&0==$(this).prop("checked")&&$(this).closest("div").find("#checkboxOther").fadeOut()})),$('textarea[id^="cbother_"]').on("input",(function(){$(this).val().trim().length>0?$(this).closest("div").find("#error_message").hide():$(this).closest("div").find("#error_message").show()})),$('input[type="radio"]').change((function(){"other"==$(this).attr("value").toLowerCase()?$(this).closest("div").find("#radioOther").show():$(this).closest("div").find("#radioOther").hide()})),$('input[id^="rother_"]').on("input",(function(){$(this).val().length>0?$(this).find("#error_message").hide():$(this).find("#error_message").show()}));const a=document.querySelector(e),o=document.querySelector(t);a||o||y()}}"loading"!==document.readyState?b():document.addEventListener("DOMContentLoaded",b)}();n(7);!function(){let e=window.pageYOffset;const t='[data-js="global-nav"]',n=".global-nav",a=".global-nav__container",o=".global-nav__hamburger",i=".global-nav__nav",s=".global-subnav__content",r=".global-subnav__main",l='[data-js="global-subnav-back"]',c=".global-subnav__close",d=".global-nav__mb",u=".global-nav__mt",m=".global-nav__subnav-container",f=".global-nav__subnav-container--getaway",h=".global-nav__subnav-container--chat",p=".global-nav__subnav-container--info",g=".global-nav__subnav-container--events",v=".global-nav__subnav-container--search",_=".global-nav__getaway",y=".global-nav__chat",b=".global-nav__info",C=".global-nav__calendar",w=".global-nav__search",k=".homepage-hero",I=".landingpage-hero",S=".homepageherocontainer-main",A=".global-subnav__close-btn",T=".global-subnav__close-dt",x=".lodging.sticky-enable",D=".alert-banner",E=".global-events__weekday",L=".global-events__day",N=".global-subnav__secondary",M=".global-subnav__item-img",O='[class*="homepage-hero__image"]',H='[class*="landingpage-hero__image"]',R='[class*="homepage-hero__video"]',P='[class*="landingpage-hero__video"]',B='[class*="enhancedpage-hero__video"]',F='[class*="enhancedpage-hero__image"]',j=".global-nav__mb-cta",z="show-subnav",q="is-shown",U="is-sticky",W="global-subnav--active",Y="global-nav--white-nav",G="global-nav--hover",Z="is-active",J="show-sub-menu",V="is-smaller";function X(){let e=!1;const t=document.querySelector(O),n=document.querySelector(H),a=document.querySelector(R),o=document.querySelector(P),i=document.querySelector(B),s=document.querySelector(F);return(t||n||a||o||i||s)&&(e=!0),e}function K(){const e=window.pageYOffset;$(u).addClass(U),e>window.innerHeight-80?$(n).addClass(Y):X()?$(n).removeClass(Y):$(n).addClass(Y)}function Q(e){if(this.classList.contains("global-subnav__main--nosubNav"))this.classList.contains("global-subnav__main--nosubNav")&&"block"!=$(o).css("display")&&($(s).removeClass(q),$(n).removeClass(G),$(M).removeClass(q),$(r).removeClass(W),0==$(`${m}.${q}`).length&&K());else if("block"!=$(o).css("display")){e.preventDefault();const t=$(e.currentTarget).parent().find(s);$(s).removeClass(q),$(m).removeClass(q),$(j).removeClass(Z),$(M).removeClass(q),$(t).addClass(q),$(n).addClass(G),$(j).attr("aria-expanded","false")}}function ee(){"block"!=$(o).css("display")&&($(s).removeClass(q),$(n).removeClass(G),$(M).removeClass(q),$(r).removeClass(W),0==$(`${m}.${q}`).length&&K())}function te(){$(s).removeClass(q),$(i).removeClass(J),$(n).removeClass(G),$(M).removeClass(q),$(j).removeClass(Z),$(r).removeClass(W),$(j).attr("aria-expanded","false"),$(o).attr("aria-expanded","false")}function ne(e){if(!this.classList.contains("global-subnav__main--nosubNav")){e.preventDefault();$(e.currentTarget).parent().find(s).addClass(q),$(i).addClass(J),$(e.currentTarget).addClass(W),$(d).removeClass(U)}}function ae(){$(r).removeClass(W),$(s).removeClass(q),$(i).removeClass(J),$(d).addClass(U),$(o).attr("aria-expanded","false")}function oe(){$(i).addClass(z),$(d).addClass(U),$(r).on("click",ne),$(l).on("click",ae),$("html").addClass("no-scroll");window.innerHeight<585&&"block"==$(o).css("display")?($(r).addClass(V),$(N).addClass(V)):($(r).removeClass(V),$(N).removeClass(V)),$(o).attr("aria-expanded","true")}function ie(){$(i).removeClass(z),$(i).removeClass(J),$(d).removeClass(U),$(s).removeClass(q),$(r).removeClass(W),$("html").removeClass("no-scroll"),$(n).removeClass(G),$(j).attr("aria-expanded","false"),$(o).attr("aria-expanded","false")}function se(e,t,a){e.preventDefault(),te(),ie(),$(j).removeClass(Z),$(j).attr("aria-expanded","false"),$(a).addClass(Z),$(a).attr("aria-expanded","true"),$(m).removeClass(q),$(t).addClass(q),$("html").addClass("no-scroll"),t!=v?$(n).addClass(Y):$(n).removeClass(Y),$(t).find(c).on("click",()=>{$(t).removeClass(q),$("html").removeClass("no-scroll"),K()}),$(t).find(T).on("click",()=>{$(t).removeClass(q),$(j).removeClass(Z),$("html").removeClass("no-scroll"),K(),$(j).attr("aria-expanded","false")})}function re(t){t.preventDefault();const i=window.pageYOffset;if(0==$(`${m}.${q}`).length&&(i>window.innerHeight-170?$(n).addClass(Y):X()?$(n).removeClass(Y):$(n).addClass(Y)),"block"==$(o).css("display"))if(i>$(D).find(".banner--item").innerHeight())$(s).height(window.innerHeight);else{const e=$(D).find(".banner--item").innerHeight(),t=window.innerHeight-e;$(s).height(t)}else $(s).css("height","");let r=0;$(D).hasClass("sticky-enable")&&(r=$(D).find(".banner--item").innerHeight());const l=$(u).outerHeight();if(e>i||0==i){if($(u).addClass(U),$(a).addClass(U),$(x).hasClass(U)){const e=l+r;$(x).css("top",e)}}else $(n).hasClass(G)||0!=$(`${m}.${q}`).length||($(u).removeClass(U),$(a).removeClass(U),$(x).css("top",r));e=i}function le(e){$(M).removeClass(q);$(e.currentTarget).parent().find(M).addClass(q)}function ce(){const e=$(D).find(".banner--item").innerHeight(),t=window.innerHeight-e;"block"==$(o).css("display")?$(s).height(t):($(s).css("height",""),$(r).removeClass(V),$(N).removeClass(V))}function de(t){e=window.pageYOffset,$(window).scroll(re),function(){const e=$(D).find(".banner--item").innerHeight(),t=$(n).height(),a=window.innerHeight,o=a-e,i=a-t-e;$(k).height(o),$(k).css("margin-top",e),$(I).css("margin-top",e),$(S).height(i),$(n).css("margin-top",e),$(g).css("max-height",o)}(),K(),function(){const e=document.querySelector(E),t=document.querySelector(L),n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["January","February","March","April","May","June","July","August","September","October","November","December"],o=new Date,i=o.getDay(),s=o.getMonth(),r=o.getDate();e&&(e.innerHTML=n[i]),t&&(t.innerHTML=a[s]+", "+r)}(),$(M).each((function(e){const t=$(this).find("img")[0];let n="";if(t){n=t.src;const e=$(t).data("breakpoints");if(e){let t=0,a=1440,o=0;-1!==e.indexOf(":")?(t=e.split(":")[0],o=e.split(":")[1],-1!==t.indexOf(",")&&(a=t.split(",")[1]),n=n.concat("?wid=",a,"&",o)):-1!==e.indexOf(",")&&(a=e.split(",")[1],n=n.concat("?wid=",a))}$(t).prop("src",n)}})),ce();const a=$(t.element).find(o);a&&a.on("click",oe),$(i).find(c).on("click",ie);const l=$(_).attr("href");$(_).length&&"#"==l&&$(_).on("click",e=>se(e,f)),$(y).on("click",e=>{$(y).attr("aria-expanded","true"),se(e,h,y)}),$(b).on("click",e=>{$(b).attr("aria-expanded","true"),se(e,p,b)}),$(C).on("click",e=>{$(C).attr("aria-expanded","true"),se(e,g,C)}),$(w).on("click",e=>{$(w).attr("aria-expanded","true"),se(e,v,w)}),$(r).on("mouseenter",Q),$(r).on("click",Q),$(n).on("mouseleave",ee),$(A).on("click",te),$(`${s} ${N}`).on("mouseenter",le)}function ue(e){e&&e.element&&(de(e),window.addEventListener("resize",ce))}function me(){for(var e=$(t),n=0;n<e.length;n++)new ue({element:e[n]})}"loading"!==document.readyState?me():document.addEventListener("DOMContentLoaded",me)}();n(8),n(9),n(10),n(11),n(12),n(13),n(14),n(15),n(16),n(17),n(18),n(19),n(20);var i=n(0),s=n.n(i);!function(){var e,t,n='[data-js="locations"]';function a(n){function a(e,n,a,o){var i="https://spatial.virtualearth.net/REST/v1/data/86721a4c958b4b049af6efdcd62ff577/DestinationKohler/DestinationKohler?spatialFilter=nearby("+e+","+n+","+a+")&$top=100&$format=json&key=AmGGzLVy9Kh088YxnZa9Fwv9FJIZBt0KhlMKgD31KavmGWcWJxxuRAddg8ntdKg-";$.ajax({method:"GET",url:i,complete:function(e,n){if(200===e.status&&e.responseText){var a=JSON.parse(e.responseText);if(a&&a.d&&a.d.results){var i=a.d.results;$("div.locations__links").empty(),i.sort((function(e,t){return parseInt(e.SortOrder)-parseInt(t.SortOrder)}));for(let e=0;e<i.length;e++){var r=i[e],l=new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(r.Latitude,r.Longitude),{icon:"/etc.clientlibs/kohler-destinations/clientlibs/clientlib-site/resources/images/icons/pin-gold.svg"});l.metadata={title:r.LocationName,url:r.PropertyURL,id:r.EntityID},Microsoft.Maps.Events.addHandler(l,"mouseover",(function(e){e.target.setOptions({icon:"/etc.clientlibs/kohler-destinations/clientlibs/clientlib-site/resources/images/icons/pin-black.svg"})})),Microsoft.Maps.Events.addHandler(l,"mouseout",(function(e){e.target.setOptions({icon:"/etc.clientlibs/kohler-destinations/clientlibs/clientlib-site/resources/images/icons/pin-gold.svg"})})),Microsoft.Maps.Events.addHandler(l,"click",(function(e){var n="<div class='customInfobox'><div class='title'><a class='infobox-close' href='#'><img class='infobox-close-img' src='data:image/svg+xml;base64,PHN2ZyBpZD0iY2xvc2UtYnV0dG9uIiB2aWV3Qm94PSIwIDAgMjYgMjYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICAgICAgICA8ZyBpZD0iRF9OYXZpZ2F0aW9uIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiPgogICAgICAgICAgICA8ZyBpZD0iRCwtREtfTmF2aWdhdGlvbiwtTDEtT3Blbi0xLjIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNDE4LjAwMDAwMCwgLTY2NS4wMDAwMDApIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIj4KICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTM1OC4wMDAwMDAsIDY2Ni4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cC0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg2MS4wMDAwMDAsIDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgIDxsaW5lIHgxPSIxMS43MTY3NDA4IiB5MT0iLTMuNjA5NzU2MSIgeDI9IjExLjcxNjc0MDgiIHkyPSIyNy42MDk3NTYxIiBpZD0iTGluZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTEuNzE2NzQxLCAxMi4wMDAwMDApIHJvdGF0ZSgtMzE1LjAwMDAwMCkgdHJhbnNsYXRlKC0xMS43MTY3NDEsIC0xMi4wMDAwMDApICI+PC9saW5lPgogICAgICAgICAgICAgICAgICA8bGluZSB4MT0iLTQiIHkxPSIxMi4wNzM3MjU2IiB4Mj0iMjcuOTk3MTU1OSIgeTI9IjEyLjQ4OTk0ODgiIGlkPSJMaW5lIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMS45OTg1NzgsIDEyLjI4MTgzNykgc2NhbGUoMSwgLTEpIHJvdGF0ZSgzMTUuMDAwMDAwKSB0cmFuc2xhdGUoLTExLjk5ODU3OCwgLTEyLjI4MTgzNykgIj48L2xpbmU+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgICA8L2c+CiAgICAgICAgPC9zdmc+' alt='close infobox'></a><a href='"+e.target.metadata.url+"' target='_blank'>"+e.target.metadata.title+"</a></div></div>";t.setOptions({location:e.target.getLocation(),htmlContent:n,visible:!0,showCloseButton:!0,showPointer:!1})})),o.entities.push(l),Microsoft.Maps.Events.addHandler(t,"click",(function(e){"infobox-close-img"==e.originalEvent.target.className&&(e.originalEvent.preventDefault(),t.setOptions({visible:!1}))})),$(s.a.sanitize("div.locations__links-heading:contains('"+s.a.sanitize(r.PropertyType)+"')")).next().append(s.a.sanitize("<li class='locations__link'><a data-entity='"+s.a.sanitize(r.EntityID)+"' href='#locationsMapContainer'>"+s.a.sanitize(r.LocationName)+"</a></li>")),$(".locations__link a").on("click",(function(){for(var e,n,a=$(this).data("entity"),i=0;i<o.entities.getLength();i++)(n=o.entities.get(i)).metadata.id&&n.metadata.id==a&&(e=n);if(e){var s="<div class='customInfobox'><div class='title'><a class='infobox-close' href='#'><img class='infobox-close-img' src='data:image/svg+xml;base64,PHN2ZyBpZD0iY2xvc2UtYnV0dG9uIiB2aWV3Qm94PSIwIDAgMjYgMjYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICAgICAgICA8ZyBpZD0iRF9OYXZpZ2F0aW9uIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiPgogICAgICAgICAgICA8ZyBpZD0iRCwtREtfTmF2aWdhdGlvbiwtTDEtT3Blbi0xLjIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNDE4LjAwMDAwMCwgLTY2NS4wMDAwMDApIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIj4KICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTM1OC4wMDAwMDAsIDY2Ni4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cC0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg2MS4wMDAwMDAsIDAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgIDxsaW5lIHgxPSIxMS43MTY3NDA4IiB5MT0iLTMuNjA5NzU2MSIgeDI9IjExLjcxNjc0MDgiIHkyPSIyNy42MDk3NTYxIiBpZD0iTGluZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTEuNzE2NzQxLCAxMi4wMDAwMDApIHJvdGF0ZSgtMzE1LjAwMDAwMCkgdHJhbnNsYXRlKC0xMS43MTY3NDEsIC0xMi4wMDAwMDApICI+PC9saW5lPgogICAgICAgICAgICAgICAgICA8bGluZSB4MT0iLTQiIHkxPSIxMi4wNzM3MjU2IiB4Mj0iMjcuOTk3MTU1OSIgeTI9IjEyLjQ4OTk0ODgiIGlkPSJMaW5lIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMS45OTg1NzgsIDEyLjI4MTgzNykgc2NhbGUoMSwgLTEpIHJvdGF0ZSgzMTUuMDAwMDAwKSB0cmFuc2xhdGUoLTExLjk5ODU3OCwgLTEyLjI4MTgzNykgIj48L2xpbmU+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgICA8L2c+CiAgICAgICAgPC9zdmc+' alt='close infobox'></a><a href='"+e.metadata.url+"' target='_blank'>"+e.metadata.title+"</a></div></div>";t.setOptions({location:e.getLocation(),htmlContent:s,showCloseButton:!0,showPointer:!1,visible:!0}),o.getBounds().contains(e.getLocation())||o.setView({center:e.getLocation()})}}))}}}}})}n&&n.element&&function(n){n.element.removeAttribute("data-js");const o=$(".locations__filter").find("a.active"),i=o.data("latitude"),s=o.data("longitude"),r=o.data("distance"),l=o.data("zoom");o&&o.length>0&&$(o[0]).attr("aria-selected","true");var c={elements:{mapElement:{labelColor:"#484848",labelOutlineColor:"#DDDDDD"},water:{fillColor:"#D8D8D8"},road:{fillColor:"#FFFFFF",strokeColor:"#DDDDDD"},highway:{fillColor:"#FFFFFF",strokeColor:"#DDDDDD"},majorRoad:{fillColor:"#FFFFFF",strokeColor:"#DDDDDD"},tollRoad:{fillColor:"#FFFFFF",strokeColor:"#DDDDDD"},arterialRoad:{fillColor:"#FFFFFF",strokeColor:"#DDDDDD"},street:{fillColor:"#FFFFFF",strokeColor:"#DDDDDD"},railway:{strokeColor:"#757575"},structure:{fillColor:"#EEEEEE"},area:{fillColor:"#DBDBDB"},landColor:{fillColor:"#757575"}},version:"1.0"};window.addEventListener("load",(function(){e=new Microsoft.Maps.Map(document.getElementById("locationsMapContainer"),{center:new Microsoft.Maps.Location(i,s),customMapStyle:c,disableBirdseye:!0,disableScrollWheelZoom:!0,disableStreetside:!0,disableStreetsideAutoCoverage:!0,showMapTypeSelector:!1,showScalebar:!1,showLocateMeButton:!1,zoom:l}),(t=new Microsoft.Maps.Infobox(e.getCenter(),{visible:!1})).setMap(e),a(i,s,r,e)})),document.getElementById("location").addEventListener("choice",(function(n){var o=n.detail.choice.value,i=$("a.locations__button:contains("+o+")");const s=i.data("latitude"),r=i.data("longitude"),l=i.data("distance"),c=i.data("zoom");e.setView({center:new Microsoft.Maps.Location(s,r),zoom:c}),(t=new Microsoft.Maps.Infobox(e.getCenter(),{visible:!1})).setMap(e),a(s,r,l,e)})),$(".locations__button").click((function(){$(".locations__button").removeClass("active"),$(".locations__button").attr("aria-selected","false"),$(".locations__links-wrapper h2").removeClass("show"),$(".locations__links-list-wrapper").removeClass("show"),$("#ZoomInButton").focus(),$(this).addClass("active"),$("div.locations__links-wrapper").find("[data-filter='"+$(this).text().trim()+"']").addClass("show"),$("div.locations__links-wrapper").find("[data-filter='"+$(this).text().trim()+"']").next().addClass("show"),$(this).attr("aria-selected","true"),setTimeout((function(){$(".locations__links-list-wrapper.show").find("a")[0].focus()}),200);const n=$(this).data("latitude"),o=$(this).data("longitude"),i=$(this).data("distance"),s=$(this).data("zoom");e.setView({center:new Microsoft.Maps.Location(n,o),zoom:s}),(t=new Microsoft.Maps.Infobox(e.getCenter(),{visible:!1})).setMap(e),a(n,o,i,e)}))}(n)}function o(){for(var e=document.querySelectorAll(n),t=0;t<e.length;t++)new a({element:e[t]})}"loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)}();n(21),n(22),n(23);!function(){const e="body",t='[class*="roomlist"]',n='[id="global-nav"]',a='[data-js="global-nav-mt"]',o='[class*="lodging"]',i='[data-js="roomlist-shim"]',s='[class*="roomlist__breadcrumb"]',r="is-sticky",l="is-scroll-down",c="is-scroll-up",d="roomlist_last";function u(){$(window).scroll((function(){!function(){let d="";const u=document.querySelector(i);u&&(d=getComputedStyle(u));const m="block"!=d.display;let f=null!==document.querySelector(t)?document.querySelector(t).offsetTop:0;const h=document.querySelector(s),p=null!==document.querySelector(s)?document.querySelector(s).offsetHeight:0;let g=null!==document.querySelector(n)?document.querySelector(n).offsetHeight:0;const v=document.querySelector(a),_=null!==document.querySelector(o)?document.querySelector(o).offsetHeight:0;let $=0,y=0;f&&(m?(v&&(g=v.offsetHeight),y=f,$=f-g):(y=f-(_+p),$=f-(g+_)));const b=document.querySelector(e).className;let C="top";-1!=b.indexOf(l)?(C="down",f=y):-1!=b.indexOf(c)&&(C="up",f=$),window.pageYOffset>f?h&&("up"==C?m?(v&&(g=v.offsetHeight),h.style.top=g+"px"):h.style.top=g+_-12+"px":"down"==C&&(h.style.top=m?0:_+"px"),h.classList.add(r)):h&&(h.classList.remove(r),h.style.top="unset")}()})),$(".roomlist__room-detail-col").off("mouseenter").on("mouseenter",(function(e){var t,n,a,o;if(0==$(".slick-active").length){$('div[class^="roomlist-"]').hide(),$(this).find(".roomlist__room-subtitle").addClass("roomlist__border-hover"),$(".roomlist__room-description").removeClass("active"),$(".roomlist__arrows").removeClass("show"),$(this).addClass("show"),$(this).parent().addClass("active-room");var i=$(this).closest(".roomlist__container-inner");a=i.children(".roomlist__room"),o=$(a).filter(".active-room").index(),t=i.outerHeight(),i.position().top+t;var s=$(this).closest(".roomlist__room");n=s.find(".roomlist__hover-image").outerHeight(),s.find(".roomlist__hover-image").position().top+n,5*o+(t-n)/$(a).length*o,s.find(".roomlist__hover-image").addClass("show")}})),$(".roomlist__room-detail-col").off("mouseleave").on("mouseleave",(function(e){0==$(".slick-active").length&&($(".roomlist__hover-image").removeClass("show"),$(".roomlist__room-subtitle").removeClass("roomlist__border-hover"),$(this).removeClass("show"),$(this).parent().removeClass("active-room"),$(this).closest(".roomlist__room").find(".roomlist__hover-image").removeClass("show"))})),$('div[class^="roomlist__container-inner"] div[class^="roomlist__room-detail-col"]').off("click").on("click",(function(e){const t=$(e.target.parentNode.parentNode);let n=!1;t&&t.hasClass(d)&&(n=!0),$(".expand").hasClass("show")&&($(".expand").removeClass("show"),$(".roomlist").hasClass("no-padding")&&$(".roomlist").removeClass("no-padding"));var a=$(this).closest(".roomlist__room");if(a.find('div[class^="roomlist-"]').hasClass("slick-initialized"))$(this).find(".roomlist__room-subtitle").removeClass("roomlist__border"),$(this).find(".roomlist__room-description").removeClass("active"),$(this).siblings(".roomlist__image-column").removeClass("active"),$(this).next().find(".roomlist__arrows").removeClass("show"),a.find(".roomlist__room-description").removeClass("active"),a.find(".slick-initialized").slick("unslick"),a.find('div[class^="roomlist-"]').hide();else{$('div[class^="roomlist-"]').hasClass("slick-initialized")&&$(".slick-initialized").slick("unslick"),$('div[class^="roomlist-"]').hide(),$(".roomlist__arrows").removeClass("show"),$(".roomlist__room-detail-col").removeClass("show"),$(".roomlist__room-description").removeClass("active"),$(".roomlist__image-column").removeClass("active"),$(".roomlist__room-subtitle").removeClass("roomlist__border roomlist__border-hover"),$(".roomlist__hover-image").removeClass("show"),$(this).find(".roomlist__room-subtitle").addClass("roomlist__border"),$(this).find(".roomlist__room-description").addClass("active"),$(this).siblings(".roomlist__image-column").addClass("active"),a.find(".roomlist__room-description").addClass("active"),n&&$(".roomlist").addClass("no-padding"),a.find('div[class^="roomlist-"]').show();var o=$(this).next().find(".roomlist__arrows");$(this).next().find(".roomlist__arrows").addClass("show");var i=$(o).find(".roomlist__arrow-prev");i&&i.length>0&&i[0].className;var s=$(o).find(".roomlist__arrow-next");s&&s.length>0&&s[0].className,$(this).closest(".roomlist__room").find('div[class^="roomlist-"]').not(".slick-initialized").slick({arrows:!0,useTransform:!0,infinite:!1,slidesToScroll:1,slidesToShow:1,initialSlide:0,swipeToSlide:!0,prevArrow:$(i),nextArrow:$(s),responsive:[{breakpoint:"767",settings:{slidesToScroll:1}}]}).on("afterChange",(function(e,t,n){const a=$(e.target).next().children(".roomlist__arrow-next");if(a.hasClass("slick-disabled")){a.prev().addClass("last")}else a.prev().removeClass("last")})),$(this).siblings(".roomlist__image-column").children(".expand").addClass("show")}})),$('div[class^="roomlist-"]').on("click",(function(e){$(this).find(".slick-active");var t=$(this).find(".slick-active").attr("data-slick-index"),n=Number(t)+Number(1);$(".placeholder-images div").removeAttr("is-selected"),$(this).find(".placeholder-images div:nth-child("+n+")").attr("is-selected","true")})),$(".thumbnail").on("click",(function(){var e=$(this),t=e.data("big"),n=e.attr("caption");e.parent().parent().find(".primary-caption").empty(),e.parent().parent().find(".primary-caption").append(n),e.parent().find(".thumbnail").removeClass("selected"),e.addClass("selected");var a=e.parent().siblings(".primary");$(a).stop().animate({opacity:0},1e3,(function(){$(a).css("background-image","url("+t+")").animate({opacity:1},{duration:1e3})}))})),$(".clickHere").on("click",(function(e){var t=$(this).attr("carouselUniqueId"),n=$(".roomlist-"+t).find(".slick-active").find("img").attr("src"),a=$(".carousel-image-gallery-"+t);a.find(".primary").attr("src",n),n='url("'+n+'")';var o=a.find(".primary").css("background-image",n);a.find(".thumbnail-image").each((function(){o.attr("src").split("?")[0]===$(this).attr("src")?$(this).parent().addClass("selected"):$(this).parent().removeClass("selected")})),a.css({display:"block",opacity:"1"}),a.css("pointer-events","all"),$("#roomlist__overlay_container").css("pointer-events","all"),$("body").addClass("overlay_bodybgcolor")})),$('div[class^="off-"]').on("click",(function(e){var t=$(this).attr("carouselUniqueId");$(".carousel-image-gallery-"+t).css("display","none"),$("body").removeClass("overlay_bodybgcolor")}))}"loading"!==document.readyState?(u(),window.addEventListener("resize",adjustSlickSliders)):document.addEventListener("DOMContentLoaded",u)}();n(24);!function(){const e='[id="search-results"]',t="/bin/kohlerdestinations/searchservlet",n='[data-js="search-results-wrapper"]',a='[data-js="search-results-list"]',o='[data-js="no-results-wrapper"]',i='[data-js="no-results"]',r='[data-js="search-results-template"]',l="search-results__result",c='[data-js="search-button"]',d='[id="searchText"]',u='[id="searchPath"]',m='[class="search-results__searchterm"]',f='[class="search-results__result"]',h=".search-results__result",p='[class="search-results__link"]',g='[class="search-results__image"]',v='[class="search-results__title"]',_='[class="search-results__subtitle"]',y='[class="search-results__description"]',b='[class="num-results"]',C="data-img-path",w="data-js",k="is-white-bg",I="is-hidden";function S(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var a=t[n].split("=");if(a[0]===e)return a[1]}}function A(e,t){const n=s.a.sanitize(e),a=t.replace(new RegExp(s.a.sanitize(e),"gi"),n);return s.a.sanitize(a)}function T(){document.querySelector(i).classList.remove(I),document.querySelector(o).classList.remove(I),document.querySelector(n).classList.add(I)}function x(o){if(o&&o.length>0){const c=document.querySelector(u),d=s.a.sanitize(c)?s.a.sanitize(c.value):"/";var i=!1;let k=s.a.sanitize(o);k=k.replace(/\+/g," ");const S=document.querySelectorAll(m);if(S)for(const e of S)e.textContent=s.a.sanitize(k);$(s.a.sanitize('div[id^="searchLi-"]')).each((function(){k==$(this).attr("searchTerm").toLowerCase()&&(window.location=$(this).attr("pagePath"),i=!0)})),0==i&&$.ajax({url:t,type:"GET",data:{q:k,searchPath:d.normalize()},dataType:"json",success:function(t){if(t.length>0){const o=document.querySelector(r),i=document.querySelector(a),c=document.querySelector(e),d=c.getAttribute("data-numItems")>0?c.getAttribute("data-numItems"):30;let u=!1;const m=document.querySelectorAll(b);for(let e=0;e<m.length;e++)m[e].innerHTML=t.length;if(jQuery.each(t,(function(e,t){const n=o.cloneNode(!0);if(n.classList.add(l),n){if(t.path){const e=t.path;n.querySelector(p).setAttribute("href",e)}if(t.scene7Id){const e=n.querySelector(g).getAttribute(C)+"/"+t.scene7Id;n.querySelector(g).setAttribute("src",e)}if(s.a.sanitize(t.title)&&s.a.sanitize(t.title.length)>0){const e=A(k,s.a.sanitize(t.title));n.querySelector(v).textContent=e,n.classList.remove(I),n.removeAttribute(w),u=!0}if(s.a.sanitize(t.subTitle)&&s.a.sanitize(t.subTitle.length)>0){const e=A(k,s.a.sanitize(t.subTitle));n.querySelector(_).textContent=e}if(t.description&&t.description.length>0){A(k,t.description);n.querySelector(y).innerHTML=t.description}u&&i.appendChild(n)}})),u){document.querySelector(n).classList.remove(I),$(".pagination-results-wrapper").focus();const e=d,t=document.querySelectorAll(f).length;$(h).slice(e).hide(),setTimeout((function(){$(document.querySelectorAll(h)[0]).find(".search-results__link").focus()}),1e3),$(".num-pages-top, .num-pages").pagination({items:t,itemsOnPage:e,displayedPages:4,edges:0,cssStyle:"",prevText:"<svg class='num-pages__back-icon'><use xlink:href='#btn-back'></use></svg>",nextText:"<svg class='num-pages__next-icon'><use xlink:href='#btn-next'></use></svg>",onPageClick:function(t){var n=e*(t-1),a=Number(n)+Number(e);$(h).hide().slice(n,a).show(),$(document.querySelectorAll(f)[n]).find(".search-results__link").focus()}})}else T()}else T()},error:function(e){T()}})}}function D(e){const t=document.querySelector(d),n=s.a.sanitize(t)?s.a.sanitize(t.value):"";if(void 0!==n&&""!==n){let e=!1;e=function(e){const t=document.querySelector(d);return!!/^[\w \\.\\$-]+$/.test(e)||(t.focus(),!1)}(n),e&&x(n)}e.preventDefault()}function E(){document.body.classList.add(k);const e=document.querySelector(c);e&&e.addEventListener("click",D),function(){const e=S("dq")||S("mq")||S("q");void 0!==e&&""!==e&&x(e)}()}"loading"!==document.readyState?E():document.addEventListener("DOMContentLoaded",E)}();n(25)}]);
function calenderClicked(){
					var query=$(".global-events__weather").data("z");
					var unit=$(".global-events__weather").data("m");
					var cloudsAndSun = [116];
					var cloudy = [119, 122];
					var fog = [248, 260];
					var ice = [185, 266, 281, 284, 311, 314, 350, 374, 377];
					var heavyRain = [299, 302, 305, 308, 356, 359];
					var lightRain = [143, 176, 263, 293, 296, 353];
					var rainThunderLightning = [200, 386, 389];
					var heavySnow = [227, 230, 329, 332, 335, 338, 365, 371, 395];
					var sleet = [182, 317, 320, 362];
					var lightSnow = [179, 323, 326, 368, 392];
					var sunny = [113];
					
				 $.ajax({
						url: '/bin/kohlerdestinations/weatherApiServlet?query='+query+'&units='+unit,
						success: function(response) {

                     var result=JSON.parse(response);

							
                    $('.global-events__temp span').text(result.current.temperature+"°");
                    var valmap = new Map();

                    valmap.set(cloudsAndSun,'#cloudsAndSun');
                    valmap.set(cloudy,'#cloudy');
                    valmap.set(fog,'#fog');
                    valmap.set(ice,'#ice');
                    valmap.set(heavyRain,'#heavyRain');
                    valmap.set(lightRain,'#lightRain');
                    valmap.set(rainThunderLightning,'#rainThunderLightning');
                    valmap.set(heavySnow,'#heavySnow');
                    valmap.set(sleet,'#sleet');
                    valmap.set(lightSnow,'#lightSnow');
                    valmap.set(sunny,'#sunny');
					
                    for(var i=0;i<valmap.size;i++){
                     if((Array.from(valmap.keys())[i]).indexOf(result.current.weather_code) != -1){
						 $('.global-events__clouds use').attr('href',Array.from(valmap.values())[i]);
						 $('.global-events__clouds').attr('aria-label', result.current.temperature + '°C' + ' with ' +Array.from(valmap.values())[i].replace('#','') + ' weather');
                           }
                         }
						}
					})
}
