1const closeTooltip=tooltip=>{$('[data-toggle="tooltip"]').tooltip("hide")};$(document).ready(function(){function a(){var a2=$(this).scrollTop();Math.abs(n-a2)<=t||(a2>n&&a2>o?$("#sticky-header").removeClass("nav-down").addClass("nav-up"):a2+$(window).height()<$(document).height()&&$("#sticky-header").removeClass("nav-up").addClass("nav-down"),n=a2)}var e,n=0,t=5,o=$("#sticky-header").outerHeight();$(window).scroll(function(a2){e=!0}),setInterval(function(){e&&(a(),e=!1)},250),$('[data-toggle="tooltip"]').length&&($('[data-toggle="tooltip"]').tooltip(),$('[data-toggle="tooltip"]').on("click",function(e2){$('[data-toggle="tooltip"]').tooltip("hide"),$(this).tooltip("show")}))}),(function(e){e.fn.slabText=function(t){return e("body").addClass("slabtexted"),this.each(function(){t&&e.extend(a,t);var n=e(this),i=this,a=e.extend({},e.fn.slabText.defaults,t),r=e("span.slabtext",n).length,s=r?[]:String(e.trim(n.text())).replace(/\s{2,}/g," ").split(" "),o=null,l=null,h=null,d=e(window).width(),p=n.find("a:first").attr("href")||n.attr("href"),f=p?n.find("a:first").attr("title"):"";if(!(!r&&a.minCharsPerLine&&s.join(" ").length<a.minCharsPerLine)){var c=function(){var e2=jQuery('<div style="display:none;font-size:1em;margin:0;padding:0;height:auto;line-height:1;border:0;"> </div>').appendTo(n),t2=e2.height();return e2.remove(),t2},m=function(){var t2,h2=n.width();if(h2!=0){if(n.removeClass("slabtextdone slabtextinactive"),a.viewportBreakpoint&&a.viewportBreakpoint>d||a.headerBreakpoint&&a.headerBreakpoint>h2)return void n.addClass("slabtextinactive");if(t2=c(),r||!a.forceNewCharCount&&t2==o)o=t2;else{o=t2;var m2,w,g,u,x=Math.min(60,Math.floor(h2/(o*a.fontRatio))),v=0,b=[],C="",T="",z="";if(x!=0&&x!=l){for(l=x;v<s.length;){for(T="";T.length<l&&(C=T,T+=s[v]+" ",!(++v>=s.length)););a.minCharsPerLine&&(w=s.slice(v).join(" "),w.length<a.minCharsPerLine&&(T+=w,C=T,v=s.length+2)),g=l-C.length,u=T.length-l,u>g&&C.length>=(a.minCharsPerLine||2)?(z=C,v--):z=T,m2=e.trim(z).length,z=e("<div/>").text(z).html(),a.wrapAmpersand&&(z=z.replace(/&/g,'<span class="amp">&</span>')),z=e.trim(z),b.push('<span class="slabtext slabtext-linesize-'+Math.floor(m2/10)+" slabtext-linelength-"+m2+'">'+z+"</span>")}n.html(b.join(" ")),p&&n.wrapInner('<a href="'+p+'" '+(f?'title="'+f+'" ':"")+"/>")}}e("span.slabtext",n).each(function(){var t3,n2,i2,r2=e(this),s2=r2.text(),l2=s2.split(" ").length>1;a.postTweak&&r2.css({"word-spacing":0,"letter-spacing":7}),n2=h2/r2.width(),i2=parseFloat(this.style.fontSize)||o,r2.css("font-size",Math.min((i2*n2).toFixed(a.precision),a.maxFontSize)+"px"),t3=a.postTweak?h2-r2.width():!1,t3&&r2.css((l2?"word":"letter")+"-spacing",(t3/(l2?s2.split(" ").length-1:s2.length)).toFixed(a.precision)+"px")}),n.addClass("slabtextdone"),typeof a.onRender=="function"&&a.onRender.call(i)}};m(),a.noResizeEvent||e(window).resize(function(){e(window).width()!=d&&(d=e(window).width(),clearTimeout(h),h=setTimeout(m,a.resizeThrottleTime))})}})},e.fn.slabText.defaults={fontRatio:.78,forceNewCharCount:!0,wrapAmpersand:!0,headerBreakpoint:null,viewportBreakpoint:null,noResizeEvent:!1,resizeThrottleTime:100,maxFontSize:999,postTweak:!0,precision:3,minCharsPerLine:0,onRender:!0}})(jQuery),(function(){(function(){"use strict";function t(t2){var e2=getComputedStyle(t2,null)||{},i2=e2.fontFamily||"",r2=i2.match(n)||"",a2=r2&&i2.match(s)||"";return a2&&(a2=a2[1]),{fit:r2&&r2[1]||"",position:c[a2]||a2||"center"}}function e(t2,e2){var i2,r2=lazySizes.cfg,a2=t2.cloneNode(!1),n2=a2.style,s2=function(){var e3=t2.currentSrc||t2.src;e3&&(n2.backgroundImage="url("+(l.test(e3)?JSON.stringify(e3):e3)+")",i2||(i2=!0,lazySizes.rC(a2,r2.loadingClass),lazySizes.aC(a2,r2.loadedClass)))};t2._lazysizesParentFit=e2.fit,t2.addEventListener("load",function(){lazySizes.rAF(s2)},!0),a2.addEventListener("load",function(){var t3=a2.currentSrc||a2.src;t3&&t3!=o&&(a2.src=o,a2.srcset="")}),lazySizes.rAF(function(){var i3=t2,l2=t2.parentNode;l2.nodeName.toUpperCase()=="PICTURE"&&(i3=l2,l2=l2.parentNode),lazySizes.rC(a2,r2.loadedClass),lazySizes.rC(a2,r2.lazyClass),lazySizes.aC(a2,r2.loadingClass),lazySizes.aC(a2,r2.objectFitClass||"lazysizes-display-clone"),a2.getAttribute(r2.srcsetAttr)&&a2.setAttribute(r2.srcsetAttr,""),a2.getAttribute(r2.srcAttr)&&a2.setAttribute(r2.srcAttr,""),a2.src=o,a2.srcset="",n2.backgroundRepeat="no-repeat",n2.backgroundPosition=e2.position,n2.backgroundSize=e2.fit,i3.style.display="none",t2.setAttribute("data-parent-fit",e2.fit),t2.setAttribute("data-parent-container","prev"),l2.insertBefore(a2,i3),t2._lazysizesParentFit&&delete t2._lazysizesParentFit,t2.complete&&s2()})}var i=document.createElement("a").style,r="objectFit"in i,a=r&&"objectPosition"in i,n=/object-fit["']*\s*:\s*["']*(contain|cover)/,s=/object-position["']*\s*:\s*["']*(.+?)(?=($|,|'|"|;))/,o="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",l=/\(|\)|'/,c={center:"center","50% 50%":"center"};r&&a||addEventListener("lazyunveilread",function(i2){var a2=i2.target,n2=t(a2);!n2.fit||r&&n2.position=="center"||e(a2,n2)},!0)})(),(function(t,e){"use strict";if(t.addEventListener){var i=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,r=/parent-fit["']*\s*:\s*["']*(contain|cover|width)/,a=/parent-container["']*\s*:\s*["']*(.+?)(?=(\s|$|,|'|"|;))/,n=/^picture$/i,s=function(t2){return getComputedStyle(t2,null)||{}},o={getParent:function(e2,i2){var r2=e2,a2=e2.parentNode;return i2&&i2!="prev"||!a2||!n.test(a2.nodeName||"")||(a2=a2.parentNode),i2!="self"&&(r2=i2=="prev"?e2.previousElementSibling:i2&&(a2.closest||t.jQuery)&&(a2.closest?a2.closest(i2):jQuery(a2).closest(i2)[0])||a2),r2},getFit:function(t2){var e2,i2,n2=s(t2),l2=n2.content||n2.fontFamily,c={fit:t2._lazysizesParentFit||t2.getAttribute("data-parent-fit")};return!c.fit&&l2&&(e2=l2.match(r))&&(c.fit=e2[1]),c.fit?(i2=t2._lazysizesParentContainer||t2.getAttribute("data-parent-container"),!i2&&l2&&(e2=l2.match(a))&&(i2=e2[1]),c.parent=o.getParent(t2,i2)):c.fit=n2.objectFit,c},getImageRatio:function(e2){var r2,a2,s2,o2,l2=e2.parentNode,c=l2&&n.test(l2.nodeName||"")?l2.querySelectorAll("source, img"):[e2];for(r2=0;r2<c.length;r2++)if(e2=c[r2],a2=e2.getAttribute(lazySizesConfig.srcsetAttr)||e2.getAttribute("srcset")||e2.getAttribute("data-pfsrcset")||e2.getAttribute("data-risrcset")||"",s2=e2.getAttribute("media"),s2=lazySizesConfig.customMedia[e2.getAttribute("data-media")||s2]||s2,a2&&(!s2||(t.matchMedia&&matchMedia(s2)||{}).matches)){o2=parseFloat(e2.getAttribute("data-aspectratio")),!o2&&a2.match(i)&&(o2=RegExp.$2
1=="w"?RegExp.$1/RegExp.$3:RegExp.$3/RegExp.$1);break}return o2},calculateSize:function(t2,e2){var i2,r2,a2,n2,s2=this.getFit(t2),o2=s2.fit,l2=s2.parent;return o2=="width"||(o2=="contain"||o2=="cover")&&(a2=this.getImageRatio(t2))?(l2?e2=l2.clientWidth:l2=t2,n2=e2,o2=="width"?n2=e2:(r2=l2.clientHeight)>40&&(i2=e2/r2)&&(o2=="cover"&&i2<a2||o2=="contain"&&i2>a2)&&(n2=e2*(a2/i2)),n2):e2}},l=function(){t.lazySizes&&(lazySizes.parentFit||(lazySizes.parentFit=o),t.removeEventListener("lazyunveilread",l,!0))};t.addEventListener("lazyunveilread",l,!0),e.addEventListener("lazybeforesizes",function(t2){if(!t2.defaultPrevented){var e2=t2.target;t2.detail.width=o.calculateSize(e2,t2.detail.width)}}),setTimeout(l)}})(window,document),(function(t,e,i){"use strict";function r(e2,i2){var r2,a2,n2,s2,o2=t.getComputedStyle(e2);a2=e2.parentNode,s2={isPicture:!(!a2||!f.test(a2.nodeName||""))},n2=function(t2,i3){var r3=e2.getAttribute("data-"+t2);if(!r3){var a3=o2.getPropertyValue("--ls-"+t2);a3&&(r3=a3.trim())}if(r3){if(r3=="true")r3=!0;else if(r3=="false")r3=!1;else if(d.test(r3))r3=parseFloat(r3);else if(typeof c[t2]=="function")r3=c[t2](e2,r3);else if(y.test(r3))try{r3=JSON.parse(r3)}catch{}s2[t2]=r3}else t2 in c&&typeof c[t2]!="function"?s2[t2]=c[t2]:i3&&typeof c[t2]=="function"&&(s2[t2]=c[t2](e2,r3))};for(r2 in c)n2(r2);return i2.replace(p,function(t2,e3){e3 in s2||n2(e3,!0)}),s2}function a(t2,e2){var i2=[],r2=function(t3,i3){return u[typeof e2[i3]]?e2[i3]:t3};return i2.srcset=[],e2.absUrl&&(v.setAttribute("href",t2),t2=v.href),t2=((e2.prefix||"")+t2+(e2.postfix||"")).replace(p,r2),e2.widths.forEach(function(r3){var a2=e2.widthmap[r3]||r3,n2={u:t2.replace(z,a2).replace(g,e2.ratio?Math.round(r3*e2.ratio):""),w:r3};i2.push(n2),i2.srcset.push(n2.c=n2.u+" "+r3+"w")}),i2}function n(t2,i2,r2){var n2=0,s2=0,o2=r2;if(t2){if(i2.ratio==="container"){for(n2=o2.scrollWidth,s2=o2.scrollHeight;!(n2&&s2||o2===e);)o2=o2.parentNode,n2=o2.scrollWidth,s2=o2.scrollHeight;n2&&s2&&(i2.ratio=s2/n2)}t2=a(t2,i2),t2.isPicture=i2.isPicture,A&&r2.nodeName.toUpperCase()=="IMG"?r2.removeAttribute(l.srcsetAttr):r2.setAttribute(l.srcsetAttr,t2.srcset.join(", ")),Object.defineProperty(r2,"_lazyrias",{value:t2,writable:!0})}}function s(t2,e2){var i2=r(t2,e2);return c.modifyOptions.call(t2,{target:t2,details:i2,detail:i2}),lazySizes.fire(t2,"lazyriasmodifyoptions",i2),i2}function o(t2){return t2.getAttribute(t2.getAttribute("data-srcattr")||c.srcAttr)||t2.getAttribute(l.srcsetAttr)||t2.getAttribute(l.srcAttr)||t2.getAttribute("data-pfsrcset")||""}if(e.addEventListener){var l,c,u={string:1,number:1},d=/^\-*\+*\d+\.*\d*$/,f=/^picture$/i,z=/\s*\{\s*width\s*\}\s*/i,g=/\s*\{\s*height\s*\}\s*/i,p=/\s*\{\s*([a-z0-9]+)\s*\}\s*/gi,y=/^\[.*\]|\{.*\}$/,m=/^(?:auto|\d+(px)?)$/,v=e.createElement("a"),b=e.createElement("img"),A="srcset"in b&&!("sizes"in b),h=!!t.HTMLPictureElement&&!A;(function(){var e2,i2=function(){},r2={prefix:"",postfix:"",srcAttr:"data-src",absUrl:!1,modifyOptions:i2,widthmap:{},ratio:!1};l=t.lazySizes&&lazySizes.cfg||t.lazySizesConfig,l||(l={},t.lazySizesConfig=l),l.supportsType||(l.supportsType=function(t2){return!t2}),l.rias||(l.rias={}),"widths"in(c=l.rias)||(c.widths=[],(function(t2){for(var e3,i3=0;!e3||e3<3e3;)i3+=5,i3>30&&(i3+=1),e3=36*i3,t2.push(e3)})(c.widths));for(e2 in r2)e2 in c||(c[e2]=r2[e2])})(),addEventListener("lazybeforesizes",function(t2){var e2,i2,r2,a2,u2,d2,f2,g2,p2,y2,v2,b2,A2;if(e2=t2.target,t2.detail.dataAttr&&!t2.defaultPrevented&&!c.disabled&&(p2=e2.getAttribute(l.sizesAttr)||e2.getAttribute("sizes"))&&m.test(p2)){if(i2=o(e2),r2=s(e2,i2),v2=z.test(r2.prefix)||z.test(r2.postfix),r2.isPicture&&(a2=e2.parentNode))for(u2=a2.getElementsByTagName("source"),d2=0,f2=u2.length;d2<f2;d2++)(v2||z.test(g2=o(u2[d2])))&&(n(g2,r2,u2[d2]),b2=!0);v2||z.test(i2)?(n(i2,r2,e2),b2=!0):b2&&(A2=[],A2.srcset=[],A2.isPicture=!0,Object.defineProperty(e2,"_lazyrias",{value:A2,writable:!0})),b2&&(h?e2.removeAttribute(l.srcAttr):p2!="auto"&&(y2={width:parseInt(p2,10)},E({target:e2,detail:y2})))}},!0);var E=(function(){var i2=function(t2,e2){return t2.w-e2.w},r2=function(t2){var e2,i3,r3=t2.length,a3=t2[r3-1],n3=0;for(n3;n3<r3;n3++)if(a3=t2[n3],a3.d=a3.w/t2.w,a3.d>=t2.d){!a3.cached&&(e2=t2[n3-1])&&e2.d>t2.d-.13*Math.pow(t2.d,2.2)&&(i3=Math.pow(e2.d-.6,1.6),e2.cached&&(e2.d+=.15*i3),e2.d+(a3.d-t2.d)*i3>t2.d&&(a3=e2));break}return a3},a2=function(t2,e2){var i3;return!t2._lazyrias&&lazySizes.pWS&&(i3=lazySizes.pWS(t2.getAttribute(l.srcsetAttr||""))).length&&(Object.defineProperty(t2,"_lazyrias",{value:i3,writable:!0}),e2&&t2.parentNode&&(i3.isPicture=t2.parentNode.nodeName.toUpperCase()=="PICTURE")),t2._lazyrias},n2=function(e2){var i3=t.devicePixelRatio||1,r3=lazySizes.getX&&lazySizes.getX(e2);return Math.min(r3||i3,2.4,i3)},s2=function(e2,s3){var o3,l2,c2,u2,d2,f2;if(d2=e2._lazyrias,d2.isPicture&&t.matchMedia){for(l2=0,o3=e2.parentNode.getElementsByTagName("source"),c2=o3.length;l2<c2;l2++)if(a2(o3[l2])&&!o3[l2].getAttribute("type")&&(!(u2=o3[l2].getAttribute("media"))||(matchMedia(u2)||{}).matches)){d2=o3[l2]._lazyrias;break}}return(!d2.w||d2.w<s3)&&(d2.w=s3,d2.d=n2(e2),f2=r2(d2.sort(i2))),f2},o2=function(i3){var r3,n3=i3.target;if(!A&&(t.respimage||t.picturefill||lazySizesConfig.pf))return void e.removeEventListener("lazybeforesizes",o2);("_lazyrias"in n3||i3.detail.dataAttr&&a2(n3,!0))&&(r3=s2(n3,i3.detail.width))&&r3.u&&n3._lazyrias.cur!=r3.u&&(n3._lazyrias.cur=r3.u,r3.cached=!0,lazySizes.rAF(function(){n3.setAttribute(l.srcAttr,r3.u),n3.setAttribute("src",r3.u)}))};return h?o2=function(){}:addEventListener("lazybeforesizes",o2),o2})()}})(window,document),(function(){"use strict";if(window.addEventListener){var t=/\s+/g,e=/\s*\|\s+|\s+\|\s*/g,
1i=/^(.+?)(?:\s+\[\s*(.+?)\s*\])?$/,r=/\(|\)|'/,a={contain:1,cover:1},n=function(t2){var e2=lazySizes.gW(t2,t2.parentNode);return(!t2._lazysizesWidth||e2>t2._lazysizesWidth)&&(t2._lazysizesWidth=e2),t2._lazysizesWidth},s=function(t2){var e2;return e2=(getComputedStyle(t2)||{getPropertyValue:function(){}}).getPropertyValue("background-size"),!a[e2]&&a[t2.style.backgroundSize]&&(e2=t2.style.backgroundSize),e2},o=function(r2,a2,n2){var s2=document.createElement("picture"),o2=a2.getAttribute(lazySizesConfig.sizesAttr),l2=a2.getAttribute("data-ratio"),c=a2.getAttribute("data-optimumx");a2._lazybgset&&a2._lazybgset.parentNode==a2&&a2.removeChild(a2._lazybgset),Object.defineProperty(n2,"_lazybgset",{value:a2,writable:!0}),Object.defineProperty(a2,"_lazybgset",{value:s2,writable:!0}),r2=r2.replace(t," ").split(e),s2.style.display="none",n2.className=lazySizesConfig.lazyClass,r2.length!=1||o2||(o2="auto"),r2.forEach(function(t2){var e2=document.createElement("source");o2&&o2!="auto"&&e2.setAttribute("sizes",o2),t2.match(i)&&(e2.setAttribute(lazySizesConfig.srcsetAttr,RegExp.$1),RegExp.$2&&e2.setAttribute("media",lazySizesConfig.customMedia[RegExp.$2]||RegExp.$2)),s2.appendChild(e2)}),o2&&(n2.setAttribute(lazySizesConfig.sizesAttr,o2),a2.removeAttribute(lazySizesConfig.sizesAttr),a2.removeAttribute("sizes")),c&&n2.setAttribute("data-optimumx",c),l2&&n2.setAttribute("data-ratio",l2),s2.appendChild(n2),a2.appendChild(s2)},l=function(t2){if(t2.target._lazybgset){var e2=t2.target,i2=e2._lazybgset,a2=e2.currentSrc||e2.src;a2&&(i2.style.backgroundImage="url("+(r.test(a2)?JSON.stringify(a2):a2)+")"),e2._lazybgsetLoading&&(lazySizes.fire(i2,"_lazyloaded",{},!1,!0),delete e2._lazybgsetLoading)}};addEventListener("lazybeforeunveil",function(t2){var e2,i2,r2;!t2.defaultPrevented&&(e2=t2.target.getAttribute("data-bgset"))&&(r2=t2.target,i2=document.createElement("img"),i2.alt="",i2._lazybgsetLoading=!0,t2.detail.firesLoad=!0,o(e2,r2,i2),setTimeout(function(){lazySizes.loader.unveil(i2),lazySizes.rAF(function(){lazySizes.fire(i2,"_lazyloaded",{},!0,!0),i2.complete&&l({target:i2})})}))}),document.addEventListener("load",l,!0),window.addEventListener("lazybeforesizes",function(t2){if(t2.target._lazybgset&&t2.detail.dataAttr){var e2=t2.target._lazybgset,i2=s(e2);a[i2]&&(t2.target._lazysizesParentFit=i2,lazySizes.rAF(function(){t2.target.setAttribute("data-parent-fit",i2),t2.target._lazysizesParentFit&&delete t2.target._lazysizesParentFit}))}},!0),document.documentElement.addEventListener("lazybeforesizes",function(t2){!t2.defaultPrevented&&t2.target._lazybgset&&(t2.detail.width=n(t2.target._lazybgset))})}})(),(function(t,e){e={exports:{}},t(e,e.exports),e.exports})(function(t){(function(e,i){var r=(function(t2,e2){"use strict";if(e2.getElementsByClassName){var i2,r2=e2.documentElement,a=t2.Date,n=t2.HTMLPictureElement,s=t2.addEventListener,o=t2.setTimeout,l=t2.requestAnimationFrame||o,c=t2.requestIdleCallback,u=/^picture$/i,d=["load","error","lazyincluded","_lazyloaded"],f={},z=Array.prototype.forEach,g=function(t3,e3){return f[e3]||(f[e3]=new RegExp("(\\s|^)"+e3+"(\\s|$)")),f[e3].test(t3.getAttribute("class")||"")&&f[e3]},p=function(t3,e3){g(t3,e3)||t3.setAttribute("class",(t3.getAttribute("class")||"").trim()+" "+e3)},y=function(t3,e3){var i3;(i3=g(t3,e3))&&t3.setAttribute("class",(t3.getAttribute("class")||"").replace(i3," "))},m=function(t3,e3,i3){var r3=i3?"addEventListener":"removeEventListener";i3&&m(t3,e3),d.forEach(function(i4){t3[r3](i4,e3)})},v=function(t3,i3,r3,a2,n2){var s2=e2.createEvent("CustomEvent");return s2.initCustomEvent(i3,!a2,!n2,r3||{}),t3.dispatchEvent(s2),s2},b=function(e3,r3){var a2;!n&&(a2=t2.picturefill||i2.pf)?a2({reevaluate:!0,elements:[e3]}):r3&&r3.src&&(e3.src=r3.src)},A=function(t3,e3){return(getComputedStyle(t3,null)||{})[e3]},h=function(t3,e3,r3){for(r3=r3||t3.offsetWidth;r3<i2.minSize&&e3&&!t3._lazysizesWidth;)r3=e3.offsetWidth,e3=e3.parentNode;return r3},E=(function(){var t3,i3,r3=[],a2=[],n2=r3,s2=function(){var e3=n2;for(n2=r3.length?a2:r3,t3=!0,i3=!1;e3.length;)e3.shift()();t3=!1},c2=function(r4,a3){t3&&!a3?r4.apply(this,arguments):(n2.push(r4),i3||(i3=!0,(e2.hidden?o:l)(s2)))};return c2._lsFlush=s2,c2})(),C=function(t3,e3){return e3?function(){E(t3)}:function(){var e4=this,i3=arguments;E(function(){t3.apply(e4,i3)})}},S=function(t3){var e3,i3=0,r3=666,n2=function(){e3=!1,i3=a.now(),t3()},s2=c?function(){c(n2,{timeout:r3}),r3!==666&&(r3=666)}:C(function(){o(n2)},!0);return function(t4){var n3;(t4=t4===!0)&&(r3=44),e3||(e3=!0,n3=125-(a.now()-i3),n3<0&&(n3=0),t4||n3<9&&c?s2():o(s2,n3))}},w=function(t3){var e3,i3,r3=function(){e3=null,t3()}
1,n2=function(){var t4=a.now()-i3;t4<99?o(n2,99-t4):(c||r3)(r3)};return function(){i3=a.now(),e3||(e3=o(n2,99))}},_=(function(){var n2,l2,c2,d2,f2,h2,_2,P2,x,L,M,F,R,$2,T,W=/^img$/i,B=/^iframe$/i,I="onscroll"in t2&&!/glebot/.test(navigator.userAgent),O=0,k=0,j=-1,U=function(t3){k--,t3&&t3.target&&m(t3.target,U),(!t3||k<0||!t3.target)&&(k=0)},H=function(t3,i3){var a2,n3=t3,s2=A(e2.body,"visibility")=="hidden"||A(t3,"visibility")!="hidden";for(x-=i3,F+=i3,L-=i3,M+=i3;s2&&(n3=n3.offsetParent)&&n3!=e2.body&&n3!=r2;)(s2=(A(n3,"opacity")||1)>0)&&A(n3,"overflow")!="visible"&&(a2=n3.getBoundingClientRect(),s2=M>a2.left&&L<a2.right&&F>a2.top-1&&x<a2.bottom+1);return s2},D=function(){var t3,a2,s2,o2,u2,d3,z2,g2,p2;if((f2=i2.loadMode)&&k<8&&(t3=n2.length)){for(a2=0,j++,$2==null&&("expand"in i2||(i2.expand=r2.clientHeight>500&&r2.clientWidth>500?500:370),R=i2.expand,$2=R*i2.expFactor),O<$2&&k<1&&j>2&&f2>2&&!e2.hidden?(O=$2,j=0):O=f2>1&&j>1&&k<6?R:0;a2<t3;a2++)if(n2[a2]&&!n2[a2]._lazyRace)if(I)if((g2=n2[a2].getAttribute("data-expand"))&&(d3=1*g2)||(d3=O),p2!==d3&&(_2=innerWidth+d3*T,P2=innerHeight+d3,z2=-1*d3,p2=d3),s2=n2[a2].getBoundingClientRect(),(F=s2.bottom)>=z2&&(x=s2.top)<=P2&&(M=s2.right)>=z2*T&&(L=s2.left)<=_2&&(F||M||L||x)&&(c2&&k<3&&!g2&&(f2<3||j<4)||H(n2[a2],d3))){if(Y(n2[a2]),u2=!0,k>9)break}else!u2&&c2&&!o2&&k<4&&j<4&&f2>2&&(l2[0]||i2.preloadAfterLoad)&&(l2[0]||!g2&&(F||M||L||x||n2[a2].getAttribute(i2.sizesAttr)!="auto"))&&(o2=l2[0]||n2[a2]);else Y(n2[a2]);o2&&!u2&&Y(o2)}},q=S(D),X=function(t3){p(t3.target,i2.loadedClass),y(t3.target,i2.loadingClass),m(t3.target,Q)},J=C(X),Q=function(t3){J({target:t3.target})},V=function(t3,e3){try{t3.contentWindow.location.replace(e3)}catch{t3.src=e3}},G=function(t3){var e3,r3,a2=t3.getAttribute(i2.srcsetAttr);(e3=i2.customMedia[t3.getAttribute("data-media")||t3.getAttribute("media")])&&t3.setAttribute("media",e3),a2&&t3.setAttribute("srcset",a2),e3&&(r3=t3.parentNode,r3.insertBefore(t3.cloneNode(),t3),r3.removeChild(t3))},K=C(function(t3,e3,r3,a2,n3){var s2,l3,c3,f3,g2,A2;(g2=v(t3,"lazybeforeunveil",e3)).defaultPrevented||(a2&&(r3?p(t3,i2.autosizesClass):t3.setAttribute("sizes",a2)),l3=t3.getAttribute(i2.srcsetAttr),s2=t3.getAttribute(i2.srcAttr),n3&&(c3=t3.parentNode,f3=c3&&u.test(c3.nodeName||"")),A2=e3.firesLoad||"src"in t3&&(l3||s2||f3),g2={target:t3},A2&&(m(t3,U,!0),clearTimeout(d2),d2=o(U,2500),p(t3,i2.loadingClass),m(t3,Q,!0)),f3&&z.call(c3.getElementsByTagName("source"),G),l3?t3.setAttribute("srcset",l3):s2&&!f3&&(B.test(t3.nodeName)?V(t3,s2):t3.src=s2),(l3||f3)&&b(t3,{src:s2})),t3._lazyRace&&delete t3._lazyRace,y(t3,i2.lazyClass),E(function(){(!A2||t3.complete&&t3.naturalWidth>1)&&(A2?U(g2):k--,X(g2))},!0)}),Y=function(t3){var e3,r3=W.test(t3.nodeName),a2=r3&&(t3.getAttribute(i2.sizesAttr)||t3.getAttribute("sizes")),n3=a2=="auto";(!n3&&c2||!r3||!t3.src&&!t3.srcset||t3.complete||g(t3,i2.errorClass))&&(e3=v(t3,"lazyunveilread").detail,n3&&N.updateElem(t3,!0,t3.offsetWidth),t3._lazyRace=!0,k++,K(t3,e3,n3,a2,r3))},Z=function(){if(!c2){if(a.now()-h2<999)return void o(Z,999);var t3=w(function(){i2.loadMode=3,q()});c2=!0,i2.loadMode=3,q(),s("scroll",function(){i2.loadMode==3&&(i2.loadMode=2),t3()},!0)}};return{_:function(){h2=a.now(),n2=e2.getElementsByClassName(i2.lazyClass),l2=e2.getElementsByClassName(i2.lazyClass+" "+i2.preloadClass),T=i2.hFac,s("scroll",q,!0),s("resize",q,!0),t2.MutationObserver?new MutationObserver(q).observe(r2,{childList:!0,subtree:!0,attributes:!0}):(r2.addEventListener("DOMNodeInserted",q,!0),r2.addEventListener("DOMAttrModified",q,!0),setInterval(q,999)),s("hashchange",q,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(t3){e2.addEventListener(t3,q,!0)}),/d$|^c/.test(e2.readyState)?Z():(s("load",Z),e2.addEventListener("DOMContentLoaded",q),o(Z,2e4)),n2.length?(D(),E._lsFlush()):q()},checkElems:q,unveil:Y}})(),N=(function(){var t3,r3=C(function(t4,e3,i3,r4){var a3,n3,s2;if(t4._lazysizesWidth=r4,r4+="px",t4.setAttribute("sizes",r4),u.test(e3.nodeName||""))for(a3=e3.getElementsByTagName("source"),n3=0,s2=a3.length;n3<s2;
1n3++)a3[n3].setAttribute("sizes",r4);i3.detail.dataAttr||b(t4,i3.detail)}),a2=function(t4,e3,i3){var a3,n3=t4.parentNode;n3&&(i3=h(t4,n3,i3),a3=v(t4,"lazybeforesizes",{width:i3,dataAttr:!!e3}),a3.defaultPrevented||(i3=a3.detail.width)&&i3!==t4._lazysizesWidth&&r3(t4,n3,a3,i3))},n2=function(){var e3,i3=t3.length;if(i3)for(e3=0;e3<i3;e3++)a2(t3[e3])},o2=w(n2);return{_:function(){t3=e2.getElementsByClassName(i2.autosizesClass),s("resize",o2)},checkElems:o2,updateElem:a2}})(),P=function(){P.i||(P.i=!0,N._(),_._())};return(function(){var e3,r3={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2};i2=t2.lazySizesConfig||t2.lazysizesConfig||{};for(e3 in r3)e3 in i2||(i2[e3]=r3[e3]);t2.lazySizesConfig=i2,o(function(){i2.init&&P()})})(),{cfg:i2,autoSizer:N,loader:_,init:P,uP:b,aC:p,rC:y,hC:g,fire:v,gW:h,rAF:E}}})(e,e.document);e.lazySizes=r,typeof t=="object"&&t.exports&&(t.exports=r)})(window)}),(function(t,e,i){"use strict";var r,a=t.lazySizes&&lazySizes.cfg||t.lazySizesConfig,n=e.createElement("img"),s="sizes"in n&&"srcset"in n,o=/\s+\d+h/g,l=(function(){var t2=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,i2=Array.prototype.forEach;return function(r2){var a2=e.createElement("img"),n2=function(e2){var i3,r3=e2.getAttribute(lazySizesConfig.srcsetAttr);r3&&(r3.match(t2)&&(i3=RegExp.$2=="w"?RegExp.$1/RegExp.$3:RegExp.$3/RegExp.$1)&&e2.setAttribute("data-aspectratio",i3),e2.setAttribute(lazySizesConfig.srcsetAttr,r3.replace(o,"")))},s2=function(t3){var e2=t3.target.parentNode;e2&&e2.nodeName=="PICTURE"&&i2.call(e2.getElementsByTagName("source"),n2),n2(t3.target)},l2=function(){a2.currentSrc&&e.removeEventListener("lazybeforeunveil",s2)};r2[1]&&(e.addEventListener("lazybeforeunveil",s2),a2.onload=l2,a2.onerror=l2,a2.srcset="data:,a 1w 1h",a2.complete&&l2())}})();if(a||(a={},t.lazySizesConfig=a),a.supportsType||(a.supportsType=function(t2){return!t2}),!t.picturefill&&!a.pf){if(t.HTMLPictureElement&&s)return e.msElementsFromPoint&&l(navigator.userAgent.match(/Edge\/(\d+)/)),void(a.pf=function(){});a.pf=function(e2){var i2,a2;if(!t.picturefill)for(i2=0,a2=e2.elements.length;i2<a2;i2++)r(e2.elements[i2])},r=(function(){var i2=function(t2,e2){return t2.w-e2.w},n2=/^\s*\d+\.*\d*px\s*$/,l2=function(t2){var e2,i3,r2=t2.length,a2=t2[r2-1],n3=0;for(n3;n3<r2;n3++)if(a2=t2[n3],a2.d=a2.w/t2.w,a2.d>=t2.d){!a2.cached&&(e2=t2[n3-1])&&e2.d>t2.d-.13*Math.pow(t2.d,2.2)&&(i3=Math.pow(e2.d-.6,1.6),e2.cached&&(e2.d+=.15*i3),e2.d+(a2.d-t2.d)*i3>t2.d&&(a2=e2));break}return a2},c=(function(){var t2,e2=/(([^,\s].[^\s]+)\s+(\d+)w)/g,i3=/\s/,r2=function(e3,i4,r3,a2){t2.push({c:i4,u:r3,w:1*a2})};return function(a2){return t2=[],a2=a2.trim(),a2.replace(o,"").replace(e2,r2),t2.length||!a2||i3.test(a2)||t2.push({c:a2,u:a2,w:99}),t2}})(),u=function(){u.init||(u.init=!0,addEventListener("resize",(function(){var t2,i3=e.getElementsByClassName("lazymatchmedia"),a2=function(){var t3,e2;for(t3=0,e2=i3.length;t3<e2;t3++)r(i3[t3])};return function(){clearTimeout(t2),t2=setTimeout(a2,66)}})()))},d=function(e2,i3){var r2,n3=e2.getAttribute("srcset")||e2.getAttribute(a.srcsetAttr);!n3&&i3&&(n3=e2._lazypolyfill?e2._lazypolyfill._set:e2.getAttribute(a.srcAttr)||e2.getAttribute("src")),e2._lazypolyfill&&e2._lazypolyfill._set==n3||(r2=c(n3||""),i3&&e2.parentNode&&(r2.isPicture=e2.parentNode.nodeName.toUpperCase()=="PICTURE",r2.isPicture&&t.matchMedia&&(lazySizes.aC(e2,"lazymatchmedia"),u())),r2._set=n3,Object.defineProperty(e2,"_lazypolyfill",{value:r2,writable:!0}))},f=function(e2){var i3=t.devicePixelRatio||1,r2=lazySizes.getX&&lazySizes.getX(e2);return Math.min(r2||i3,2.5,i3)},z=function(e2){return t.matchMedia?(z=function(t2){return!t2||(matchMedia(t2)||{}).matches})(e2):!e2},g=function(t2){var e2,r2,s2,o2,c2,u2,g2;if(o2=t2,d(o2,!0),c2=o2._lazypolyfill,c2.isPicture){for(r2=0,e2=t2.parentNode.getElementsByTagName("source"),s2=e2.length;r2<s2;r2++)if(a.supportsType(e2[r2].getAttribute("type"),t2)&&z(e2[r2].getAttribute("media"))){o2=e2[r2],d(o2),c2=o2._lazypolyfill;break}}return c2.length>1?(g2=o2.getAttribute("sizes")||"",g2=n2.test(g2)&&parseInt(g2,10)||lazySizes.gW(t2,t2.parentNode),c2.d=f(t2),!c2.src||!c2.w||c2.w<g2?(c2.w=g2,u2=l2(c2.sort(i2)),c2.src=u2):u2=c2.src):u2=c2[0],u2},p=function(t2){if(!s||!t2.parentNode||t2.parentNode.nodeName.toUpperCase()=="PICTURE"){var e2=g(t2);e2&&e2.u&&t2._lazypolyfill.cur!=e2.u&&(t2._lazypolyfill.cur=e2.u,e2.cached=!0,t2.setAttribute(a.srcAttr,e2.u),t2.setAttribute("src",e2.u))}};return p.parse=c,p})(),a.loadedClass&&a.loadingClass&&(function(){var t2=[];['img[sizes$="px"][srcset].',"picture > img:not([srcset])."].forEach(function(e2){t2.push(e2+a.loadedClass),t2.push(e2+a.loadingClass)}),a.pf({elements:e.querySelectorAll(t2.join(", "))})})()}})(window,document),(function(t){"use strict";var e,i=t.createElement("img");!("srcset"in i)||"sizes"in i||window.HTMLPictureElement||(e=/^picture$/i,t.addEventListener("lazybeforeunveil",function(i2){var r,a,n,s,o,l,c;!i2.defaultPrevented&&!lazySizesConfig.noIOSFix&&(r=i2.target)&&(n=r.getAttribute(lazySizesConfig.srcsetAttr))&&(a=r.parentNode)&&((o=e.test(a.nodeName||""))||(s=r.getAttribute("sizes")||r.getAttribute(lazySizesConfig.sizesAttr)))&&(l=o?a:t.createElement("picture"),r._lazyImgSrc||Object.defineProperty(r,"_lazyImgSrc",{value:t.createElement("source"),writable:!0}),c=r._lazyImgSrc,s&&c.setAttribute("sizes",s),c.setAttribute(lazySizesConfig.srcsetAttr,n),r.setAttribute("data-pfsrcset",n
1),r.removeAttribute(lazySizesConfig.srcsetAttr),o||(a.insertBefore(l,r),l.appendChild(r)),l.insertBefore(c,r))}))})(document)})(),$(document).ready(function(){$("[data-fancybox]").length&&$("[data-fancybox]").fancybox({afterShow:function(){$(".fancybox-container").attr("tabindex",1),$(".fancybox-container iframe.fancybox-iframe").focus()}})});async function ajaxAddToCart(variantId,productId,properties=null){const postData={quantity:1,id:variantId};return console.log("properties?",properties),properties&&(properties._selling_plan_id&&(postData.selling_plan=properties._selling_plan_id,delete properties._selling_plan_id),postData.properties=properties),fetch("/cart/add.js",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(postData)}).then(function(response){return response.json()}).then(function(json){if(json.status&&json.status!==200){var error=new Error(json.description);throw error.isFromServer=!0,error}var mobileSelector=document.querySelector(".supports-touch"),cartSlide=document.querySelector(".js-drawer-open-right");return cartSlide.click(),mobileSelector&&cartSlide.click(),$(`#product-${productId} [data-reserve-quick-add]`).length&&($(`#product-${productId} [data-reserve-quick-add]`).addClass("pointer-events-none").html(` 2 ${properties&&properties["_replacement-item"]?"Replacement added":"Added to Bag"} 3 <svg class="ml-2" xmlns="http://www.w3.org/2000/svg" width="18" height="13" fill="none"> 4 <path stroke="#000" stroke-width="2" d="m1 5.75 5.5 5.5L17 .75"/> 5 </svg> 6 `),properties&&properties["_replacement-item"]&&$(`#product-${productId} [data-reserve-quick-add]`).addClass("opacity-25").attr("disabled",!0),(!properties||properties&&!properties["_replacement-item"])&&setTimeout(function(){$(`#product-${productId} [data-reserve-quick-add]`).removeClass("pointer-events-none").html("Add to Bag")},5e3)),json})}function handleClickQuickAdd(el,productId,properties=null,hideAddBtn=!0){const hasAjaxInputs=$(`#ajax-swatches-${productId} input`).length>0,hasColorInputs=$(`#product-${productId} [data-reserve-color-select]`).length>0;if(!hasAjaxInputs&&!hasColorInputs){const variantId=$(el).data("variant-id");ajaxAddToCart(variantId,productId,properties);return}const firstAjaxInput=$(`#ajax-swatches-${productId} .swatch-element:first-of-type input`),firstColorInput=$(`#product-${productId} [data-reserve-color-select]`).first(),firstInput=firstAjaxInput.length?firstAjaxInput:firstColorInput,hasSwatchWrapper=document.getElementById(`ajax-swatch-wrapper-${productId}`);if(!hasAjaxInputs&&hasColorInputs&&!hasSwatchWrapper){const variantId=$(`#product-${productId} [data-reserve-color-select]:checked`).first().data("variant-id")||$(el).data("variant-id");if(variantId){ajaxAddToCart(variantId,productId,properties);return}$(`#product-${productId} [data-reserve-color-select]`).off("change.quickAddOnce").on("change.quickAddOnce",function(){if(!$(this).is(":checked"))return;const vId=$(this).data("variant-id");vId&&ajaxAddToCart(vId,productId,properties)});return}hasSwatchWrapper&&openDialog(`ajax-swatch-wrapper-${productId}`,el,firstInput);const $sizeGuideModal=$(`.remodal[data-remodal-id="product-size-chart-${productId}"]`);$sizeGuideModal.length&&$sizeGuideModal.data("remodal")==null&&$sizeGuideModal.remodal({hashTracking:!1}),$(`#product-${productId} .grid-image-wrapper .swatch`).addClass("active"),$(el).css({opacity:0,"pointer-events":"none"});var elements=document.getElementsByClassName("quick-add");
6hideAddBtn&&[...elements].forEach(el2=>{$(el2).css({display:"none"})}),$(`#product-${productId}`).off("mouseleave").on("mouseleave",function(){$(`#product-${productId} .grid-image-wrapper .swatch`).removeClass("active"),$(el).css({opacity:1,"pointer-events":"all"}),$(".dialog-backdrop.active").length&&closeDialog(document.getElementById(`ajax-swatches-${productId}`)),[...elements].forEach(el2=>{$(el2).css({display:"flex"})})}),$(`#product-${productId} [data-close-quick-add]`).length&&$(`#product-${productId} [data-close-quick-add]`).off("click").on("click",function(){$(`#product-${productId} .grid-image-wrapper .swatch`).removeClass("active"),$(el).css({opacity:1,"pointer-events":"all"}),$(".dialog-backdrop.active").length&&closeDialog(document.getElementById(`ajax-swatches-${productId}`)),[...elements].forEach(el2=>{$(el2).css({display:"flex"})})});const selectedOption=$(`#product-${productId} .swatch-element-single:checked`).val();$(`#ajax-swatches-${productId} .swatch-element input:checked`).attr("checked",!1),$(`#ajax-swatches-${productId} .swatch-element input[disabled]`).attr("disabled",!1),$(`#productSelect-${productId} option`).each(function(i,option){const optionsArr=$(option).text().trim().split(" - "),soldOut=optionsArr[1]==="Sold Out",options2=optionsArr[0].split(" / ");$(`#ajax-swatches-${productId} .swatch-element`).each(function(e,swatchEl){const currentOption=$(swatchEl).find("input").val();JSON.stringify(selectedOption?[selectedOption,currentOption]:[currentOption])===JSON.stringify(options2)&&(soldOut&&$(swatchEl).find("input").attr("disabled",!0),$(swatchEl).find("input").attr("data-variant-id",$(option).val()))})}),$(`#ajax-swatches-${productId} input`).off("change").on("change",function(r,radio){let variantId=$(this).attr("data-variant-id"),optionsArr=[];if($(`#product-${productId} .swatch-element-single`).length&&(optionsArr.push($(`#product-${productId} .swatch-element-single:checked`).val()),optionsArr.push($(this).val())),$(this).attr("data-reserve-size-select")&&window.innerWidth<1200){$(`#product-${productId} .addToCart`).length&&$(`#product-${productId} .addToCart`).attr("data-variant-id",variantId);return}ajaxAddToCart(variantId,productId,null)}),$(`#product-${productId} [data-reserve-color-select]`).length&&$(`#product-${productId} [data-reserve-color-select]`).off("change").on("change",function(r,radio){if(!$(this).is(":checked"))return;const selectedOption2=$(this).val();$(`#productSelect-${productId} option`).each(function(i,option){const optionsArr=$(option).text().trim().split(" - "),soldOut=optionsArr[1]==="Sold Out",options2=optionsArr[0].split(" / ");$(`#ajax-swatches-${productId} .swatch-element`).each(function(e,swatchEl){const currentOption=$(swatchEl).find("input").val();JSON.stringify(selectedOption2?[selectedOption2,currentOption]:[currentOption])===JSON.stringify(options2)&&(soldOut&&$(swatchEl).find("input").attr("disabled",!0),$(swatchEl).find("input").attr("data-variant-id",$(option).val()))})})}),$(".ajax-add-to-cart").length&&$(".ajax-add-to-cart").on("click",function(){let variantId;productId==="7214423736416"?variantId=$(this).attr("data-variant-id"):variantId=$(this).data("variant-id")===-1?$(this).data("product-id"):$(this).data("variant-id");const properties2=$(this).data("properties");ajaxAddToCart(variantId,productId,properties2),$(`#product-${productId} .grid-image-wrapper .swatch`).removeClass("active"),$(el).css({opacity:1,"pointer-events":"all"}),$(".dialog-backdrop.active").length&&closeDialog(document.getElementById(`ajax-swatches-${productId}`))})}function handleColorSwatchChange(el){const bodyClass=$("body").attr("class"),imageSrc=$(el).data("img-src"),imageHoverSrc=$(el).data("img-src-hover"),productId=$(el).data("product-id");if($(`#product-${productId} .grid__image picture.default-image img`).css("opacity","1"),$(`#product-${productId} .grid__image picture.default-image`).css("background-image",""),$(`#product-${productId} .selected`).removeClass("selected"),imageSrc&&($(`#product-${productId} .grid__image picture.default-image source`).attr("data-srcset",imageSrc),$(`#product-${productId} .grid__image picture.default-image source`).attr("srcset",imageSrc),$(`#product-${productId}
6 .grid__image picture.default-image img`).attr("data-src",imageSrc),$(`#product-${productId} .grid__image picture.default-image img`).attr("src",imageSrc)),imageHoverSrc&&($(`#product-${productId} .grid__image picture.hover-image source`).attr("data-srcset",imageHoverSrc),$(`#product-${productId} .grid__image picture.hover-image source`).attr("srcset",imageHoverSrc),$(`#product-${productId} .grid__image picture.hover-image img`).attr("data-src",imageHoverSrc),$(`#product-${productId} .grid__image picture.hover-image img`).attr("src",imageHoverSrc)),imageSrc&&$(`#product-${productId} .grid__image picture.default-image input.default-image`).val(imageSrc),imageHoverSrc&&$(`#product-${productId} .grid__image picture input.default-hover-image`).val(imageHoverSrc),$(el).addClass("selected"),$(`[id="${$(el).attr("id")}"]`).addClass("selected"),$(`#product-${productId} .grid__image`).length){let href=$(`#product-${productId} .grid__image`).attr("href");if(href){let productLink=updateQueryStringParameter(href,"variant",$(el).data("variant-id"));$(`#product-${productId} .grid__image`).attr("href",`${productLink}`),$(`#product-${productId} h6 a`).attr("href",`${productLink}`)}}if($(`#product-${productId} .quick-add`).length&&$(`#product-${productId} .quick-add`).data("variant-id",$(el).data("variant-id")),$(`#product-${productId} .addToCart`).length&&$(`#product-${productId} .addToCart`).attr("data-variant-id",$(el).data("variant-id")),$(`#product-${productId} .reserve-color-meta`).length&&$(`#product-${productId} .reserve-color-meta`).text(el.value),$(el).is("[data-reserve-color-select]")&&$(el).closest(".reserve-testimonials").length&&!$(`#ajax-swatches-${productId} input`).length){const variantId=$(el).data("variant-id");variantId&&ajaxAddToCart(variantId,productId,null)}}function updateQueryStringParameter(uri,key,value){var re=new RegExp("([?&])"+key+"=.*?(&|$)","i"),separator=uri.indexOf("?")!==-1?"&":"?";return uri.match(re)?uri.replace(re,"$1"+key+"="+value+"$2"):uri+separator+key+"="+value}$(document).ready(function(){$(window).scroll(function(event){$(window).scrollTop()>0&&$(window).scrollTop()>=$(".announcement-bar").height()?($("#shopify-section-header").addClass("sticked-header"),$("#shopify-section-header").css("top",`${$(".announcement-bar").height()}px`)):$(window).scrollTop()<5&&($("#shopify-section-header").removeClass("sticked-header"),$("#shopify-section-header").css("top",""))})}),$(function(){$(document).ready(function(){$("#collection-container").length&&($("#collection-container").infiniteScroll({path:".next a",history:!0,domParseResponse:!1}),$("#collection-container").on("load.infiniteScroll",function(event,body){const doc=new DOMParser().parseFromString(body,"text/html"),elements=doc.querySelectorAll(".grid__item.large--one-third"),navWrapper=doc.querySelector(".pagination");$(".pagination").html(navWrapper.innerHTML),elements.forEach(it=>{$(it).appendTo("#collection-container")})}))})});function openSubMenu(index){$("#menu-overlay-content").addClass("open-submenu"),$(".sub-nav").removeClass("active"),$(`#sub-nav-${index}`).addClass("active")}function hideSubMenu(e,index){$("#menu-overlay-content").removeClass("open-submenu"),$(`#sub-nav-${index}`).removeClass("active")}if($("#home-hero__carousel").length){var options={slidesToShow:1,slidesToScroll:1,focusOnSelect:!0,adaptiveHeight:!0,dots:!0,autoplay:$("#home-hero__carousel").data("autoplay"),autoplaySpeed:$("#home-hero__carousel").data("speed"),prevArrow:".hero-arrow-prev",nextArrow:".hero-arrow-next",fade:$("#home-hero__carousel").data("fade"),swipe:!1,responsive:[{breakpoint:480,settings:{arrows:!1}
6}]};const $heroCarousel=$("#home-hero__carousel").slick(options)}$(".products-grid-block").length&&$(".products-grid-block").each(function(){var options2={slidesToShow:4,slidesToScroll:4,focusOnSelect:!1,dots:!0,autoplay:!1,infinite:!1,prevArrow:$(".products-grid-arrow-prev",this),nextArrow:$(".products-grid-arrow-next",this),swipe:!0,touchMove:!0,draggable:!0,swipeToSlide:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:768,settings:{slidesToShow:2.4,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1.2,slidesToScroll:1}}]};const $productsGrid=this;$(".products-grid",this).on("setPosition",()=>{const imageHeight=$(".grid-image-wrapper",$productsGrid).height();$(".slider-arrow",$productsGrid).css("top",imageHeight/2+6+"px")}).slick(options2),enableSwipe&&($(".products-grid",this).slick("slickSetOption","swipe",!0,!0),$(".products-grid",this).slick("slickSetOption","touchMove",!0,!0),$(".products-grid",this).slick("slickSetOption","draggable",!0,!0),$(".products-grid",this).slick("slickSetOption","swipeToSlide",!0,!0),$(".products-grid",this).closest(".products-grid-block").find(".slick-list").css({"touch-action":"pan-y","-ms-touch-action":"pan-y"}))}),$(".gd_product_list").length&&$(".gd_product_list").each(function(){var options2={slidesToShow:4,slidesToScroll:4,focusOnSelect:!1,dots:!1,autoplay:!1,infinite:!0,prevArrow:$(".products-grid-arrow-prev",this),nextArrow:$(".products-grid-arrow-next",this),swipe:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2,centerMode:!0}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,centerMode:!0}}]};const $productsGrid=this;$(".gd_product_list__grid",$productsGrid).on("setPosition",()=>{const imageHeight=$(".gd_card__img_wrapper img",$productsGrid).height();$(".slider-arrow",$productsGrid).css("top",imageHeight/2+6+"px")}).slick(options2)});function rebuyResolveCartItem(itemEl,cartItems,indexFallback){let variantId=null;if(itemEl){const el=itemEl.querySelector("[data-variant-id],[data-line-item-id],[data-product-variant-id]"),attr=el&&(el.getAttribute("data-variant-id")||el.getAttribute("data-line-item-id")||el.getAttribute("data-product-variant-id")),self=itemEl.getAttribute&&(itemEl.getAttribute("data-variant-id")||itemEl.getAttribute("data-line-item-id")),link=itemEl.querySelector('a[href*="variant="]'),fromLink=link&&link.getAttribute("href").match(/[?&]variant=(\d+)/);attr&&/^\d+$/.test(attr)?variantId=attr:self&&/^\d+$/.test(self)?variantId=self:fromLink&&(variantId=fromLink[1])}if(variantId){const matches=cartItems.filter(ci=>String(ci.variant_id)===String(variantId));if(matches.length===1)return matches[0]}return cartItems[indexFallback-1]||null}document.addEventListener("click",async function(e){const btn=e.target.closest("button.rebuy-cart__flyout-item-quantity-widget-button");if(!btn)return;const widget=btn.closest(".rebuy-cart__flyout-item-quantity-widget"),item=btn.closest(".rebuy-cart__flyout-item"),label=widget&&widget.querySelector(".rebuy-cart__flyout-item-quantity-widget-label");if(!widget||!item||!label)return;e.preventDefault(),e.stopImmediatePropagation();const line=Array.from(document.querySelectorAll(".rebuy-cart__flyout-item")).indexOf(item)+1,textNodes=Array.from(label.childNodes).filter(n=>n.nodeType===Node.TEXT_NODE),current=parseInt(textNodes[textNodes.length-1]?.textContent.trim(),10)||0,isPlus=!!btn.querySelector(".fa-plus"),next=Math.max(1,current+(isPlus?1:-1));if(isPlus)try{const cart=await fetch("/cart.js").then(r=>r.json()),cartItem=rebuyResolveCartItem(item,cart.items,line);if(cartItem&&(cartItem.product_type==="replacement"||cartItem.properties&&cartItem.properties["_replacement-item"])){const lastTextNode2=textNodes[textNodes.length-1];lastTextNode2&&(lastTextNode2.nodeValue=` ${current}`);return}}catch(err){console.error(err)}const lastTextNode=textNodes[textNodes.length-1];lastTextNode?lastTextNode.nodeValue=` ${next}`:label.append(document.createTextNode(` ${next}`)),fetch("/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({line,quantity:next})}).then(r=>r.json()).then(()=>{window.rebuy?.refreshUpsells()}).catch(err=>{console.error(err)})},!0); 7//# sourceMappingURL=/cdn/shop/t/278/assets/scripts.js.map?v=87841220958860870631781797004
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.