https://zoskinhealth.com/on/demandware.static/Sites-ZOSkinHealth-U…/js/redesign-product-list-page.js
1/*! For license information please see redesign-product-list-page.js.LICENSE.txt */ 2(()=>{"use strict";const t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.hasOwn(t,e),r:t=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}};var e={};function n(t){const e=t.querySelector("video");if(!e||"true"===t.dataset.interrupterVideoInitialized)return;t.dataset.interrupterVideoInitialized="true",window.matchMedia("(prefers-reduced-motion: reduce)").matches&&t.classList.remove("fade");const n=document.querySelector('[data-bs-target="#'+t.id+'"]');t.addEventListener("show.bs.modal",function(){n&&n.setAttribute("aria-expanded","true")}),t.addEventListener("shown.bs.modal",function(){const t=e.play();t&&"function"==typeof t.catch&&t.catch(function(){})}),t.addEventListener("hidden.bs.modal",function(){n&&n.setAttribute("aria-expanded","false"),e.pause();try{e.currentTime=0}catch{}})}function i(t=document){t.querySelectorAll(".js-interrupter-video-modal").forEach(n)}function s(t){try{return JSON.parse(t.getAttribute("data-alerts"))||{}}catch{return{}}}function o(t,e){const n=t.querySelector(".js-plp-live");n&&e&&(n.textContent="",setTimeout(function(){n.textContent=e},400))}t.r(e),t.d(e,{afterMain:()=>S,afterRead:()=>A,afterWrite:()=>L,applyStyles:()=>N,arrow:()=>et,auto:()=>u,basePlacements:()=>d,beforeMain:()=>E,beforeRead:()=>y,beforeWrite:()=>k,bottom:()=>a,clippingParents:()=>p,computeStyles:()=>ot,createPopper:()=>Nt,createPopperBase:()=>Dt,createPopperLite:()=>$t,detectOverflow:()=>yt,end:()=>f,eventListeners:()=>at,flip:()=>wt,hide:()=>Ct,left:()=>l,main:()=>C,modifierPhases:()=>O,offset:()=>St,placements:()=>v,popper:()=>g,popperGenerator:()=>Pt,popperOffsets:()=>kt,preventOverflow:()=>Tt,read:()=>w,reference:()=>_,right:()=>c,start:()=>h,top:()=>r,variationPlacements:()=>b,viewport:()=>m,write:()=>T});var r="top",a="bottom",c="right",l="left",u="auto",d=[r,a,c,l],h="start",f="end",p="clippingParents",m="viewport",g="popper",_="reference",b=d.reduce(function(t,e){return t.concat([e+"-"+h,e+"-"+f])},[]),v=[].concat(d,[u]).reduce(function(t,e){return t.concat([e,e+"-"+h,e+"-"+f])},[]),y="beforeRead",w="read",A="afterRead",E="beforeMain",C="main",S="afterMain",k="beforeWrite",T="write",L="afterWrite",O=[y,w,A,E,C,S,k,T,L];function x(t){return t?(t.nodeName||"").toLowerCase():null}function j(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function I(t){return t instanceof j(t).Element||t instanceof Element}function P(t){return t instanceof j(t).HTMLElement||t instanceof HTMLElement}function D(t){return"undefined"!=typeof ShadowRoot&&(t instanceof j(t).ShadowRoot||t instanceof ShadowRoot)}const N={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},s=e.elements[t];
vendor: 39,166 bytes, line 2
2P(s)&&x(s)&&(Object.assign(s.style,n),Object.keys(i).forEach(function(t){var e=i[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var i=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});P(i)&&x(i)&&(Object.assign(i.style,o),Object.keys(s).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]};function $(t){return t.split("-")[0]}var M=Math.max,q=Math.min,F=Math.round;function R(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function H(){return!/^((?!chrome|android).)*safari/i.test(R())}function W(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),s=1,o=1;e&&P(t)&&(s=t.offsetWidth>0&&F(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&F(i.height)/t.offsetHeight||1);var r=(I(t)?j(t):window).visualViewport,a=!H()&&n,c=(i.left+(a&&r?r.offsetLeft:0))/s,l=(i.top+(a&&r?r.offsetTop:0))/o,u=i.width/s,d=i.height/o;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function B(t){var e=W(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function z(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&D(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function V(t){return j(t).getComputedStyle(t)}function U(t){return["table","td","th"].indexOf(x(t))>=0}function X(t){return((I(t)?t.ownerDocument:t.document)||window.document).documentElement}function Q(t){return"html"===x(t)?t:t.assignedSlot||t.parentNode||(D(t)?t.host:null)||X(t)}function K(t){return P(t)&&"fixed"!==V(t).position?t.offsetParent:null}function Y(t){for(var e=j(t),n=K(t);n&&U(n)&&"static"===V(n).position;)n=K(n);return n&&("html"===x(n)||"body"===x(n)&&"static"===V(n).position)?e:n||function(t){var e=/firefox/i.test(R());if(/Trident/i.test(R())&&P(t)&&"fixed"===V(t).position)return null;var n=Q(t);for(D(n)&&(n=n.host);P(n)&&["html","body"].indexOf(x(n))<0;){var i=V(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function J(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function G(t,e,n){return M(t,q(e,n))}function Z(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function tt(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}const et={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,s=t.options,o=n.elements.arrow,u=n.modifiersData.popperOffsets,h=$(n.placement),f=J(h),p=[l,c].indexOf(h)>=0?"height":"width";if(o&&u){var m=function(t,e){return Z("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:tt(t,d))}(s.padding,n),g=B(o),_="y"===f?r:l,b="y"===f?a:c,v=n.rects.reference[p]+n.rects.reference[f]-u[f]-n.rects.popper[p],y=u[f]-n.rects.reference[f],w=Y(o),A=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0,E=v/2-y/2,C=m[_],S=A-g[p]-m[b],k=A/2-g[p]/2+E,T=G(C,k,S),L=f;n.modifiersData[i]=((e={})[L]=T,e.centerOffset=T-k,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&z(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nt(t){return t.split("-")[1]}var it={top:"auto",right:"auto",bottom:"auto",left:"auto"};function st(t){var e,n=t.popper,i=t.popperRect,s=t.placement,o=t.variation,u=t.offsets,d=t.position,h=t.gpuAcceleration,p=t.adaptive,m=t.roundOffsets,g=t.isFixed,_=u.x,b=void 0===_?0:_,v=u.y,y=void 0===v?0:v,w="function"==typeof m?m({x:b,y}):{x:b,y};b=w.x,y=w.y;var A=u.hasOwnProperty("x"),E=u.hasOwnProperty("y"),C=l,S=r,k=window;if(p){var T=Y(n),L="clientHeight",O="clientWidth";T===j(n)&&"static"!==V(T=X(n)).position&&"absolute"===d&&(L="scrollHeight",O="scrollWidth"),(s===r||(s===l||s===c)&&o===f)&&(S=a,y-=(g&&T===k&&k.visualViewport?k.visualViewport.height:T[L])-i.height,y*=h?1:-1),s!==l&&(s!==r&&s!==a||o!==f)||(C=c,b-=(g&&T===k&&k.visualViewport?k.visualViewport.width:T[O])-i.width,b*=h?1:-1)}var x,I=Object.assign({position:d},p&&it),P=!0===m?function(t,e){var n=t.x,i=t.y,s=e.devicePixelRatio||1;return{x:F(n*s)/s||0,y:F(i*s)/s||0}}({x:b,y},j(n)):{x:b,y};return b=P.x,y=P.y,h?Object.assign({},I,((x={})[S]=E?"0":"",x[C]=A?"0":"",x.transform=(k.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",x)):Object.assign({},I,((e={})[S]=E?y+"px":"",e[C]=A?b+"px":"",e.transform="",e))}const ot={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,l={placement:$(e.placement),variation:nt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,st(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,st(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var rt={passive:!0};const at={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,s=i.scroll,o=void 0===s||s,r=i.resize,a=void 0===r||r,c=j(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach(function(t){t.addEventListener("scroll",n.update,rt)}),a&&c.addEventListener("resize",n.update,rt),function(){o&&l.forEach(function(t){t.removeEventListener("scroll",n.update,rt)}),a&&c.removeEventListener("resize",n.update,rt)}},data:{}};var ct={left:"right",right:"left",bottom:"top",top:"bottom"};function lt(t){return t.replace(/left|right|bottom|top/g,function(t){return ct[t]})}var ut={start:"end",end:"start"};function dt(t){return t.replace(/start|end/g,function(t){return ut[t]})}function ht(t){var e=j(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ft(t){return W(X(t)).left+ht(t).scrollLeft}function pt(t){var e=V(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function mt(t){return["html","body","#document"].indexOf(x(t))>=0?t.ownerDocument.body:P(t)&&pt(t)?t:mt(Q(t))}function gt(t,e){var n;void 0===e&&(e=[]);var i=mt(t),s=i===(null==(n=t.ownerDocument)?void 0:n.body),o=j(i),r=s?[o].concat(o.visualViewport||[],pt(i)?i:[]):i,a=e.concat(r);return s?a:a.concat(gt(Q(r)))}function _t(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function bt(t,e,n){return e===m?_t(function(t,e){var n=j(t),i=X(t),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,c=0;if(s){o=s.width,r=s.height;var l=H();(l||!l&&"fixed"===e)&&(a=s.offsetLeft,c=s.offsetTop)}return{width:o,height:r,x:a+ft(t),y:c}}(t,n)):I(e)?function(t,e){var n=W(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):_t(function(t){var e,n=X(t),i=ht(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=M(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=M(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+ft(t),c=-i.scrollTop;return"rtl"===V(s||n).direction&&(a+=M(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:c}}(X(t)))}function vt(t){var e,n=t.reference,i=t.element,s=t.placement,o=s?$(s):null,u=s?nt(s):null,d=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2;switch(o){case r:e={x:d,y:n.y-i.height};break;case a:e={x:d,y:n.y+n.height};break;case c:e={x:n.x+n.width,y:p};break;case l:e={x:n.x-i.width,y:p};break;default:e={x:n.x,y:n.y}}var m=o?J(o):null;if(null!=m){var g="y"===m?"height":"width";switch(u){case h:e[m]=e[m]-(n[g]/2-i[g]/2);break;case f:e[m]=e[m]+(n[g]/2-i[g]/2)}}return e}function yt(t,e){void 0===e&&(e={});var n=e,i=n.placement,s=void 0===i?t.placement:i,o=n.strategy,l=void 0===o?t.strategy:o,u=n.boundary,h=void 0===u?p:u,f=n.rootBoundary,b=void 0===f?m:f,v=n.elementContext,y=void 0===v?g:v,w=n.altBoundary,A=void 0!==w&&w,E=n.padding,C=void 0===E?0:E,S=Z("number"!=typeof C?C:tt(C,d)),k=y===g?_:g,T=t.rects.popper,L=t.elements[A?k:y],O=function(t,e,n,i){var s="clippingParents"===e?function(t){var e=gt(Q(t)),n=["absolute","fixed"].indexOf(V(t).position)>=0&&P(t)?Y(t):t;return I(n)?e.filter(function(t){return I(t)&&z(t,n)&&"body"!==x(t)}):[]}(t):[].concat(e),o=[].concat(s,[n]),r=o[0],a=o.reduce(function(e,n){var s=bt(t,n,i);return e.top=M(s.top,e.top),e.right=q(s.right,e.right),e.bottom=q(s.bottom,e.bottom),e.left=M(s.left,e.left),e},bt(t,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(I(L)?L:L.contextElement||X(t.elements.popper),h,b,l),j=W(t.elements.reference),D=vt({reference:j,element:T,strategy:"absolute",placement:s}),N=_t(Object.assign({},T,D)),$=y===g?N:j,F={top:O.top-$.top+S.top,bottom:$.bottom-O.bottom+S.bottom,left:O.left-$.left+S.left,right:$.right-O.right+S.right},R=t.modifiersData.offset;if(y===g&&R){var H=R[s];Object.keys(F).forEach(function(t){var e=[c,a].indexOf(t)>=0?1:-1,n=[r,a].indexOf(t)>=0?"y":"x";F[t]+=H[n]*e})}return F}const wt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var s=n.mainAxis,o=void 0===s||s,f=n.altAxis,p=void 0===f||f,m=n.fallbackPlacements,g=n.padding,_=n.boundary,y=n.rootBoundary,w=n.altBoundary,A=n.flipVariations,E=void 0===A||A,C=n.allowedAutoPlacements,S=e.options.placement,k=$(S),T=m||(k!==S&&E?function(t){if($(t)===u)return[];var e=lt(t);return[dt(t),e,dt(e)]}(S):[lt(S)]),L=[S].concat(T).reduce(function(t,n){return t.concat($(n)===u?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?v:c,u=nt(i),h=u?a?b:b.filter(function(t){return nt(t)===u}):d,f=h.filter(function(t){return l.indexOf(t)>=0});0===f.length&&(f=h);var p=f.reduce(function(e,n){return e[n]=yt(t,{placement:n,boundary:s,rootBoundary:o,padding:r})[$(n)],e},{});return Object.keys(p).sort(function(t,e){return p[t]-p[e]})}(e,{placement:n,boundary:_,rootBoundary:y,padding:g,flipVariations:E,allowedAutoPlacements:C}):n)},[]),O=e.rects.reference,x=e.rects.popper,j=new Map,I=!0,P=L[0],D=0;D<L.length;D++){var N=L[D],M=$(N),q=nt(N)===h,F=[r,a].indexOf(M)>=0,R=F?"width":"height",H=yt(e,{placement:N,boundary:_,rootBoundary:y,altBoundary:w,padding:g}),W=F?q?c:l:q?a:r;O[R]>x[R]&&(W=lt(W));var B=lt(W),z=[];if(o&&z.push(H[M]<=0),p&&z.push(H[W]<=0,H[B]<=0),z.every(function(t){return t})){P=N,I=!1;break}j.set(N,z)}if(I)for(var V=function(t){var e=L.find(function(e){var n=j.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return P=e,"break"},U=E?3:1;U>0&&"break"!==V(U);U--);e.placement!==P&&(e.modifiersData[i]._skip=!0,e.placement=P,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function At(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Et(t){return[r,c,a,l].some(function(e){return t[e]>=0})}const Ct={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=yt(e,{elementContext:"reference"}),a=yt(e,{altBoundary:!0}),c=At(r,i),l=At(a,s,o),u=Et(c),d=Et(l);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},St={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,s=n.offset,o=void 0===s?[0,0]:s,a=v.reduce(function(t,n){return t[n]=function(t,e,n){var i=$(t),s=[l,r].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],u=o[1];return a=a||0,u=(u||0)*s,[l,c].indexOf(i)>=0?{x:u,y:a}:{x:a,y:u}}(n,e.rects,o),t},{}),u=a[e.placement],d=u.x,h=u.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=h),e.modifiersData[i]=a}},kt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=vt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Tt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,s=n.mainAxis,o=void 0===s||s,u=n.altAxis,d=void 0!==u&&u,f=n.boundary,p=n.rootBoundary,m=n.altBoundary,g=n.padding,_=n.tether,b=void 0===_||_,v=n.tetherOffset,y=void 0===v?0:v,w=yt(e,{boundary:f,rootBoundary:p,padding:g,altBoundary:m}),A=$(e.placement),E=nt(e.placement),C=!E,S=J(A),k="x"===S?"y":"x",T=e.modifiersData.popperOffsets,L=e.rects.reference,O=e.rects.popper,x="function"==typeof y?y(Object.assign({},e.rects,{placement:e.placement})):y,j="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(T){if(o){var D,N="y"===S?r:l,F="y"===S?a:c,R="y"===S?"height":"width",H=T[S],W=H+w[N],z=H-w[F],V=b?-O[R]/2:0,U=E===h?L[R]:O[R],X=E===h?-O[R]:-L[R],Q=e.elements.arrow,K=b&&Q?B(Q):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},tt=Z[N],et=Z[F],it=G(0,L[R],K[R]),st=C?L[R]/2-V-it-tt-j.mainAxis:U-it-tt-j.mainAxis,ot=C?-L[R]/2+V+it+et+j.mainAxis:X+it+et+j.mainAxis,rt=e.elements.arrow&&Y(e.elements.arrow),at=rt?"y"===S?rt.clientTop||0:rt.clientLeft||0:0,ct=null!=(D=null==I?void 0:I[S])?D:0,lt=H+ot-ct,ut=G(b?q(W,H+st-ct-at):W,H,b?M(z,lt):z);T[S]=ut,P[S]=ut-H}if(d){var dt,ht="x"===S?r:l,ft="x"===S?a:c,pt=T[k],mt="y"===k?"height":"width",gt=pt+w[ht],_t=pt-w[ft],bt=-1!==[r,l].indexOf(A),vt=null!=(dt=null==I?void 0:I[k])?dt:0,wt=bt?gt:pt-L[mt]-O[mt]-vt+j.altAxis,At=bt?pt+L[mt]+O[mt]-vt-j.altAxis:_t,Et=b&&bt?function(t,e,n){var i=G(t,e,n);return i>n?n:i}(wt,pt,At):G(b?wt:gt,pt,b?At:_t);T[k]=Et,P[k]=Et-pt}e.modifiersData[i]=P}},requiresIfExists:["offset"]};function Lt(t,e,n){void 0===n&&(n=!1);var i,s,o=P(e),r=P(e)&&function(t){var e=t.getBoundingClientRect(),n=F(e.width)/t.offsetWidth||1,i=F(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=X(e),c=W(t,r,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==x(e)||pt(a))&&(l=(i=e)!==j(i)&&P(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:ht(i)),P(e)?((u=W(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=ft(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Ot(t){var e=new Map,n=new Set,i=[];function s(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var i=e.get(t);i&&s(i)}}),i.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||s(t)}),i}function xt(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}var jt={placement:"bottom",modifiers:[],strategy:"absolute"};function It(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function Pt(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,s=e.defaultOptions,o=void 0===s?jt:s;return function(t,e,n){void 0===n&&(n=o);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},jt,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},r=[],a=!1,c={state:s,setOptions:function(n){var a="function"==typeof n?n(s.options):n;l(),s.options=Object.assign({},o,s.options,a),s.scrollParents={reference:I(t)?gt(t):t.contextElement?gt(t.contextElement):[],popper:gt(e)};var u,d,h=function(t){var e=Ot(t);return O.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((u=[].concat(i,s.options.modifiers),d=u.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{}),Object.keys(d).map(function(t){return d[t]})));return s.orderedModifiers=h.filter(function(t){return t.enabled}),s.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var a=o({state:s,name:e,instance:c,options:i});r.push(a||function(){})}}),c.update()},forceUpdate:function(){if(!a){var t=s.elements,e=t.reference,n=t.popper;if(It(e,n)){s.rects={reference:Lt(e,Y(n),"fixed"===s.options.strategy),popper:B(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(t){return s.modifiersData[t.name]=Object.assign({},t.data)});for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var o=s.orderedModifiers[i],r=o.fn,l=o.options,u=void 0===l?{}:l,d=o.name;"function"==typeof r&&(s=r({state:s,options:u,name:d,instance:c})||s)}else s.reset=!1,i=-1}}},update:xt(function(){return new Promise(function(t){c.forceUpdate(),t(s)})}),destroy:function(){l(),a=!0}};if(!It(t,e))return c;function l(){r.forEach(function(t){return t()}),r=[]}return c.setOptions(n).then(function(t){!a&&n.onFirstUpdate&&n.onFirstUpdate(t)}),c}}var Dt=Pt(),Nt=Pt({defaultModifiers:[at,kt,ot,N,St,wt,Tt,et,Ct]}),$t=Pt({defaultModifiers:[at,kt,ot,N]});const Mt=new Map,qt={set(t,e,n){Mt.has(t)||Mt.set(t,new Map);const i=Mt.get(t);i.has(e)||0===i.size?i.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>Mt.has(t)&&Mt.get(t).get(e)||null,remove(t,e){if(!Mt.has(t))return;const n=Mt.get(t);n.delete(e),0===n.size&&Mt.delete(t)}},Ft="transitionend",Rt=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),Ht=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),Wt=t=>{t.dispatchEvent(new Event(Ft))},Bt=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),zt=t=>Bt(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(Rt(t)):null,Vt=t=>{if(!Bt(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e},Ut=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),Xt=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Xt(t.parentNode):null},Qt=()=>{},Kt=t=>{t.offsetHeight},Yt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Jt=[],Gt=()=>"rtl"===document.documentElement.dir,Zt=t=>{var e;e=()=>{const e=Yt();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=i,t.jQueryInterface)}},"loading"===document.readyState?(Jt.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Jt)t()}),Jt.push(e)):e()},te=(t,e=[],n=t)=>"function"==typeof t?t.call(...e):n,ee=(t,e,n=!0)=>{if(!n)return void te(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),s=Number.parseFloat(n);return i||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let s=!1;const o=({target:n})=>{n===e&&(s=!0,e.removeEventListener(Ft,o),te(t))};e.addEventListener(Ft,o),setTimeout(()=>{s||Wt(e)},i)},ne=(t,e,n,i)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!n&&i?t[s-1]:t[0]:(o+=n?1:-1,i&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},ie=/[^.]*(?=\..*)\.|.*/,se=/\..*/,oe=/::\d+$/,re={};let ae=1;const ce={mouseenter:"mouseover",mouseleave:"mouseout"},le=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ue(t,e){return e&&`${e}::${ae++}`||t.uidEvent||ae++}function de(t){const e=ue(t);return t.uidEvent=e,re[e]=re[e]||{},re[e]}function he(t,e,n=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===n)}function fe(t,e,n){const i="string"==typeof e,s=i?n:e||n;let o=_e(t);return le.has(o)||(o=t),[i,s,o]}function pe(t,e,n,i,s){if("string"!=typeof e||!t)return;let[o,r,a]=fe(e,n,i);if(e in ce){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const c=de(t),l=c[a]||(c[a]={}),u=he(l,r,o?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const d=ue(r,e.replace(ie,"")),h=o?function(t,e,n){return function i(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return ve(s,{delegateTarget:r}),i.oneOff&&be.off(t,s.type,e,n),n.apply(r,[s])}}(t,n,r):function(t,e){return function n(i){return ve(i,{delegateTarget:t}),n.oneOff&&be.off(t,i.type,e),e.apply(t,[i])}}(t,r);h.delegationSelector=o?n:null,h.callable=r,h.oneOff=s,h.uidEvent=d,l[d]=h,t.addEventListener(a,h,o)}function me(t,e,n,i,s){const o=he(e[n],i,s);o&&(t.removeEventListener(n,o,Boolean(s)),delete e[n][o.uidEvent])}function ge(t,e,n,i){const s=e[n]||{};for(const[o,r]of Object.entries(s))o.includes(i)&&me(t,e,n,r.callable,r.delegationSelector)}function _e(t){return t=t.replace(se,""),ce[t]||t}const be={on(t,e,n,i){pe(t,e,n,i,!1)},one(t,e,n,i){pe(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[s,o,r]=fe(e,n,i),a=r!==e,c=de(t),l=c[r]||{},u=e.startsWith(".");if(void 0===o){if(u)for(const n of Object.keys(c))ge(t,c,n,e.slice(1));for(const[n,i]of Object.entries(l)){const s=n.replace(oe,"");a&&!e.includes(s)||me(t,c,r,i.callable,i.delegationSelector)}}else{if(!Object.keys(l).length)return;me(t,c,r,o,s?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=Yt();let s=null,o=!0,r=!0,a=!1;e!==_e(e)&&i&&(s=i.Event(e,n),i(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const c=ve(new Event(e,{bubbles:o,cancelable:!0}),n);return a&&c.preventDefault(),r&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function ve(t,e={}){for(const[n,i]of Object.entries(e))try{t[n]=i}catch(e){Object.defineProperty(t,n,{configurable:!0,get:()=>i})}return t}function ye(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function we(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Ae={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${we(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${we(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),e[n]=ye(t.dataset[i])}return e},getDataAttribute:(t,e)=>ye(t.getAttribute(`data-bs-${we(e)}`))};class Ee{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=Bt(e)?Ae.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...Bt(e)?Ae.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,i]of Object.entries(e)){const e=t[n],s=Bt(e)?"element":Ht(e);if(!new RegExp(i).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${i}".`)}}}class Ce extends Ee{constructor(t,e){super(),(t=zt(t))&&(this._element=t,this._config=this._getConfig(e),qt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){qt.remove(this._element,this.constructor.DATA_KEY),be.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,n=!0){ee(t,e,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return qt.get(zt(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Se=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&"#"!==n?n.trim():null}return e?e.split(",").map(t=>Rt(t)).join(","):null},ke={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const n=[];let i=t.parentNode.closest(e);for(;i;)n.push(i),i=i.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!Ut(t)&&Vt(t))},getSelectorFromElement(t){const e=Se(t);return e&&ke.findOne(e)?e:null},getElementFromSelector(t){const e=Se(t);return e?ke.findOne(e):null},getMultipleElementsFromSelector(t){const e=Se(t);return e?ke.find(e):[]}},Te=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,i=t.NAME;be.on(document,n,`[data-bs-dismiss="${i}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Ut(this))return;const s=ke.getElementFromSelector(this)||this.closest(`.${i}`);t.getOrCreateInstance(s)[e]()})},Le=".bs.alert",Oe=`close${Le}`,xe=`closed${Le}`;class je extends Ce{static get NAME(){return"alert"}close(){if(be.trigger(this._element,Oe).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),be.trigger(this._element,xe),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=je.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Te(je,"close"),Zt(je);const Ie='[data-bs-toggle="button"]';class Pe extends Ce{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const e=Pe.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}be.on(document,"click.bs.button.data-api",Ie,t=>{t.preventDefault();const e=t.target.closest(Ie);Pe.getOrCreateInstance(e).toggle()}),Zt(Pe);const De=".bs.swipe",Ne=`touchstart${De}`,$e=`touchmove${De}`,Me=`touchend${De}`,qe=`pointerdown${De}`,Fe=`pointerup${De}`,Re={endCallback:null,leftCallback:null,rightCallback:null},He={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class We extends Ee{constructor(t,e){super(),this._element=t,t&&We.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Re}static get DefaultType(){return He}static get NAME(){return"swipe"}dispose(){be.off(this._element,De)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),te(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&te(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(be.on(this._element,qe,t=>this._start(t)),be.on(this._element,Fe,t=>this._end(t)),this._element.classList.add("pointer-event")):(be.on(this._element,Ne,t=>this._start(t)),be.on(this._element,$e,t=>this._move(t)),be.on(this._element,Me,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Be=".bs.carousel",ze=".data-api",Ve="ArrowLeft",Ue="ArrowRight",Xe="next",Qe="prev",Ke="left",Ye="right",Je=`slide${Be}`,Ge=`slid${Be}`,Ze=`keydown${Be}`,tn=`mouseenter${Be}`,en=`mouseleave${Be}`,nn=`dragstart${Be}`,sn=`load${Be}${ze}`,on=`click${Be}${ze}`,rn="carousel",an="active",cn=".active",ln=".carousel-item",un=cn+ln,dn={[Ve]:Ye,[Ue]:Ke},hn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},fn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class pn extends Ce{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ke.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===rn&&this.cycle()}static get Default(){return hn}static get DefaultType(){return fn}static get NAME(){return"carousel"}next(){this._slide(Xe)}nextWhenVisible(){!document.hidden&&Vt(this._element)&&this.next()}prev(){this._slide(Qe)}pause(){this._isSliding&&Wt(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?be.one(this._element,Ge,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void be.one(this._element,Ge,()=>this.to(t));const n=this._getItemIndex(this._getActive());if(n===t)return;const i=t>n?Xe:Qe;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&be.on(this._element,Ze,t=>this._keydown(t)),"hover"===this._config.pause&&(be.on(this._element,tn,()=>this.pause()),be.on(this._element,en,()=>this._maybeEnableCycle())),this._config.touch&&We.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of ke.find(".carousel-item img",this._element))be.on(t,nn,t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(Ke)),rightCallback:()=>this._slide(this._directionToOrder(Ye)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new We(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=dn[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=ke.findOne(cn,this._indicatorsElement);e.classList.remove(an),e.removeAttribute("aria-current");const n=ke.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(an),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const n=this._getActive(),i=t===Xe,s=e||ne(this._getItems(),n,i,this._config.wrap);if(s===n)return;const o=this._getItemIndex(s),r=e=>be.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:o});if(r(Je).defaultPrevented)return;if(!n||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const c=i?"carousel-item-start":"carousel-item-end",l=i?"carousel-item-next":"carousel-item-prev";s.classList.add(l),Kt(s),n.classList.add(c),s.classList.add(c),this._queueCallback(()=>{s.classList.remove(c,l),s.classList.add(an),n.classList.remove(an,l,c),this._isSliding=!1,r(Ge)},n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return ke.findOne(un,this._element)}_getItems(){return ke.find(ln,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Gt()?t===Ke?Qe:Xe:t===Ke?Xe:Qe}_orderToDirection(t){return Gt()?t===Qe?Ke:Ye:t===Qe?Ye:Ke}static jQueryInterface(t){return this.each(function(){const e=pn.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)})}}be.on(document,on,"[data-bs-slide], [data-bs-slide-to]",function(t){const e=ke.getElementFromSelector(this);if(!e||!e.classList.contains(rn))return;t.preventDefault();const n=pn.getOrCreateInstance(e),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===Ae.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())}),be.on(window,sn,()=>{const t=ke.find('[data-bs-ride="carousel"]');for(const e of t)pn.getOrCreateInstance(e)}),Zt(pn);const mn=".bs.collapse",gn=`show${mn}`,_n=`shown${mn}`,bn=`hide${mn}`,vn=`hidden${mn}`,yn=`click${mn}.data-api`,wn="show",An="collapse",En="collapsing",Cn=`:scope .${An} .${An}`,Sn='[data-bs-toggle="collapse"]',kn={parent:null,toggle:!0},Tn={parent:"(null|element)",toggle:"boolean"};class Ln extends Ce{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=ke.find(Sn);for(const t of n){const e=ke.getSelectorFromElement(t),n=ke.find(e).filter(t=>t===this._element);null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return kn}static get DefaultType(){return Tn}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>Ln.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(be.trigger(this._element,gn).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(An),this._element.classList.add(En),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(En),this._element.classList.add(An,wn),this._element.style[e]="",be.trigger(this._element,_n)},this._element,!0),this._element.style[e]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(be.trigger(this._element,bn).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Kt(this._element),this._element.classList.add(En),this._element.classList.remove(An,wn);for(const t of this._triggerArray){const e=ke.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(En),this._element.classList.add(An),be.trigger(this._element,vn)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(wn)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=zt(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Sn);for(const e of t){const t=ke.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=ke.find(Cn,this._config.parent);return ke.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle("collapsed",!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const n=Ln.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method n
2amed "${t}"`);n[t]()}})}}be.on(document,yn,Sn,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of ke.getMultipleElementsFromSelector(this))Ln.getOrCreateInstance(t,{toggle:!1}).toggle()}),Zt(Ln);const On="dropdown",xn=".bs.dropdown",jn=".data-api",In="ArrowUp",Pn="ArrowDown",Dn=`hide${xn}`,Nn=`hidden${xn}`,$n=`show${xn}`,Mn=`shown${xn}`,qn=`click${xn}${jn}`,Fn=`keydown${xn}${jn}`,Rn=`keyup${xn}${jn}`,Hn="show",Wn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Bn=`${Wn}.${Hn}`,zn=".dropdown-menu",Vn=Gt()?"top-end":"top-start",Un=Gt()?"top-start":"top-end",Xn=Gt()?"bottom-end":"bottom-start",Qn=Gt()?"bottom-start":"bottom-end",Kn=Gt()?"left-start":"right-start",Yn=Gt()?"right-start":"left-start",Jn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Gn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Zn extends Ce{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=ke.next(this._element,zn)[0]||ke.prev(this._element,zn)[0]||ke.findOne(zn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Jn}static get DefaultType(){return Gn}static get NAME(){return On}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ut(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!be.trigger(this._element,$n,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
2navbar-nav"))for(const t of[].concat(...document.body.children))be.on(t,"mouseover",Qt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Hn),this._element.classList.add(Hn),be.trigger(this._element,Mn,t)}}hide(){if(Ut(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!be.trigger(this._element,Dn,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))be.off(t,"mouseover",Qt);this._popper&&this._popper.destroy(),this._menu.classList.remove(Hn),this._element.classList.remove(Hn),this._element.setAttribute("aria-expanded","false"),Ae.removeDataAttribute(this._menu,"popper"),be.trigger(this._element,Nn,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Bt(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${On.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){let t=this._element;"parent"===this._config.reference?t=this._parent:Bt(this._config.reference)?t=zt(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Nt(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Hn)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Kn;if(t.classList.contains("dropstart"))return Yn;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Un:Vn:e?Qn:Xn}
vendor: 10,260 bytes, line 2
2_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(Ae.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...te(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const n=ke.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>Vt(t));n.length&&ne(n,e,t===Pn,!n.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=Zn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=ke.find(Bn);for(const n of e){const e=Zn.getInstance(n);if(!e||!1===e._config.autoClose)continue;const i=t.composedPath(),s=i.includes(e._menu);if(i.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n="Escape"===t.key,i=[In,Pn].includes(t.key);if(!i&&!n)return;if(e&&!n)return;t.preventDefault();const s=this.matches(Wn)?this:ke.prev(this,Wn)[0]||ke.next(this,Wn)[0]||ke.findOne(Wn,t.delegateTarget.parentNode),o=Zn.getOrCreateInstance(s);if(i)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}be.on(document,Fn,Wn,Zn.dataApiKeydownHandler),be.on(document,Fn,zn,Zn.dataApiKeydownHandler),be.on(document,qn,Zn.clearMenus),be.on(document,Rn,Zn.clearMenus),be.on(document,qn,Wn,function(t){t.preventDefault(),Zn.getOrCreateInstance(this).toggle()}),Zt(Zn);const ti="backdrop",ei="show",ni=`mousedown.bs.${ti}`,ii={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},si={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class oi extends Ee{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return ii}static get DefaultType(){return si}static get NAME(){return ti}show(t){if(!this._config.isVisible)return void te(t);this._append();const e=this._getElement();this._config.isAnimated&&Kt(e),e.classList.add(ei),this._emulateAnimation(()=>{te(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(ei),this._emulateAnimation(()=>{this.dispose(),te(t)})):te(t)}dispose(){this._isAppended&&(be.off(this._element,ni),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=zt(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),be.on(t,ni,()=>{te(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){ee(t,this._getElement(),this._config.isAnimated)}}const ri=".bs.focustrap",ai=`focusin${ri}`,ci=`keydown.tab${ri}`,li="backward",ui={autofocus:!0,trapElement:null},di={autofocus:"boolean",trapElement:"element"};class hi extends Ee{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ui}static get DefaultType(){return di}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),be.off(document,ri),be.on(document,ai,t=>this._handleFocusin(t)),be.on(document,ci,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,be.off(document,ri))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const n=ke.focusableChildren(e);0===n.length?e.focus():this._lastTabNavDirection===li?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?li:"forward")}}const fi=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",pi=".sticky-top",mi="padding-right",gi="margin-right";class _i{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,mi,e=>e+t),this._setElementAttributes(fi,mi,e=>e+t),this._setElementAttributes(pi,gi,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,mi),this._resetElementAttributes(fi,mi),this._resetElementAttributes(pi,gi)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${n(Number.parseFloat(s))}px`)})}_saveInitialAttribute(t,e){const n=t.style.getPropertyValue(e);n&&Ae.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const n=Ae.getDataAttribute(t,e);null!==n?(Ae.removeDataAttribute(t,e),t.style.setProperty(e,n)):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(Bt(t))e(t);else for(const n of ke.find(t,this._element))e(n)}}const bi=".bs.modal",vi=`hide${bi}`,yi=`hidePrevented${bi}`,wi=`hidden${bi}`,Ai=`show${bi}`,Ei=`shown${bi}`,Ci=`resize${bi}`,Si=`click.dismiss${bi}`,ki=`mousedown.dismiss${bi}`,Ti=`keydown.dismiss${bi}`,Li=`click${bi}.data-api`,Oi="modal-open",xi="show",ji="modal-static",Ii={backdrop:!0,focus:!0,keyboard:!0},Pi={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Di extends Ce{constructor(t,e){super(t,e),this._dialog=ke.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new _i,this._addEventListeners()}static get Default(){return Ii}static get DefaultType(){return Pi}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||be.trigger(this._element,Ai,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Oi),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(be.trigger(this._element,vi).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(xi),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){be.off(window,bi),be.off(this._dialog,bi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new oi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new hi({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=ke.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Kt(this._element),this._element.classList.add(xi),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,be.trigger(this._element,Ei,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){be.on(this._element,Ti,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),be.on(window,Ci,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),be.on(this._element,ki,t=>{be.one(this._element,Si,e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Oi),this._resetAdjustments(),this._scrollBar.reset(),be.trigger(this._element,wi)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(be.trigger(this._element,yi).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(ji)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(ji),this._queueCallback(()=>{this._element.classList.remove(ji),this._queueCallback(()=>{this._element.style.overflowY=e},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){const t=Gt()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!n&&t){const t=Gt()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const n=Di.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method n
2amed "${t}"`);n[t](e)}})}}be.on(document,Li,'[data-bs-toggle="modal"]',function(t){const e=ke.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),be.one(e,Ai,t=>{t.defaultPrevented||be.one(e,wi,()=>{Vt(this)&&this.focus()})});const n=ke.findOne(".modal.show");n&&Di.getInstance(n).hide(),Di.getOrCreateInstance(e).toggle(this)}),Te(Di),Zt(Di);const Ni=".bs.offcanvas",$i=".data-api",Mi=`load${Ni}${$i}`,qi="show",Fi="showing",Ri="hiding",Hi=".offcanvas.show",Wi=`show${Ni}`,Bi=`shown${Ni}`,zi=`hide${Ni}`,Vi=`hidePrevented${Ni}`,Ui=`hidden${Ni}`,Xi=`resize${Ni}`,Qi=`click${Ni}${$i}`,Ki=`keydown.dismiss${Ni}`,Yi={backdrop:!0,keyboard:!0,scroll:!1},Ji={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Gi extends Ce{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Yi}static get DefaultType(){return Ji}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||be.trigger(this._element,Wi,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new _i).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Fi),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(qi),this._element.classList.remove(Fi),be.trigger(this._element,Bi,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(be.trigger(this._element,zi).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ri),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(qi,Ri),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new _i).reset(),be.trigger(this._element,Ui)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new oi({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():be.trigger(this._element,Vi)}:null})}_initializeFocusTrap(){return new hi({trapElement:this._element})}_addEventListeners(){be.on(this._element,Ki,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():be.trigger(this._element,Vi))})}static jQueryInterface(t){return this.each(function(){const e=Gi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}be.on(document,Qi,'[data-bs-toggle="offcanvas"]',function(t){const e=ke.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ut(this))return;be.one(e,Ui,()=>{Vt(this)&&this.focus()});const n=ke.findOne(Hi);n&&n!==e&&Gi.getInstance(n).hide(),Gi.getOrCreateInstance(e).toggle(this)}),be.on(window,Mi,()=>{for(const t of ke.find(Hi))Gi.getOrCreateInstance(t).show()}),be.on(window,Xi,()=>{for(const t of ke.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Gi.getOrCreateInstance(t).hide()}),Te(Gi),Zt(Gi);const Zi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},ts=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),es=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,ns=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!ts.has(n)||Boolean(es.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(n))},is={allowList:Zi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ss={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},os={entry:"(string|element|function|null)",selector:"(string|element)"};
vendor: 10,221 bytes, line 2
2class rs extends Ee{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return is}static get DefaultType(){return ss}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,n]of Object.entries(this._config.content))this._setContent(t,n,e);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},os)}_setContent(t,e,n){const i=ke.findOne(n,t);i&&((e=this._resolvePossibleFunction(e))?Bt(e)?this._putElementInTemplate(zt(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const t of s){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const i=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[n]||[]);for(const e of i)ns(e,s)||t.removeAttribute(e.nodeName)}return i.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return te(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const as=new Set(["sanitize","allowList","sanitizeFn"]),cs="fade",ls="show",us=".tooltip-inner",ds=".modal",hs="hide.bs.modal",fs="hover",ps="focus",ms="click",gs={AUTO:"auto",TOP:"top",RIGHT:Gt()?"left":"right",BOTTOM:"bottom",LEFT:Gt()?"right":"left"},_s={allowList:Zi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},bs={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class vs extends Ce{constructor(t,e){super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return _s}static get DefaultType(){return bs}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),be.off(this._element.closest(ds),hs,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=be.trigger(this._element,this.constructor.eventName("show")),e=(Xt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),be.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(ls),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))be.on(t,"mouseover",Qt);this._queueCallback(()=>{be.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!be.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(ls),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))be.off(t,"mouseover",Qt);this._activeTrigger[ms]=!1,this._activeTrigger[ps]=!1,this._activeTrigger[fs]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),be.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(cs,ls),e.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(cs),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new rs({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[us]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(cs)}_isShown(){return this.tip&&this.tip.classList.contains(ls)}_createPopper(t){const e=te(this._config.placement,[this,t,this._element]),n=gs[e.toUpperCase()];return Nt(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return te(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...te(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)be.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[ms]=!(e._isShown()&&e._activeTrigger[ms]),e.toggle()});else if("manual"!==e){const t=e===fs?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=e===fs?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");be.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?ps:fs]=!0,e._enter()}),be.on(this._element,n,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?ps:fs]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},be.on(this._element.closest(ds),hs,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=Ae.getDataAttributes(this._element);for(const t of Object.keys(e))as.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:zt(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,n]of Object.entries(this._config))this.constructor.Default[e]!==n&&(t[e]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=vs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
2amed "${t}"`);e[t]()}})}}Zt(vs);const ys=".popover-header",ws=".popover-body",As={...vs.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Es={...vs.DefaultType,content:"(null|string|element|function)"};class Cs extends vs{static get Default(){return As}static get DefaultType(){return Es}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ys]:this._getTitle(),[ws]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=Cs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}Zt(Cs);const Ss=".bs.scrollspy",ks=`activate${Ss}`,Ts=`click${Ss}`,Ls=`load${Ss}.data-api`,Os="active",xs="[href]",js=".nav-link",Is=`${js}, .nav-item > ${js}, .list-group-item`,Ps={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ds={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ns extends Ce{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ps}static get DefaultType(){return Ds}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=zt(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(be.off(this._config.target,Ts),be.on(this._config.target,Ts,xs,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const n=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),n=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(n(o),!i)return}else s||t||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=ke.find(xs,this._config.target);for(const e of t){if(!e.hash||Ut(e))continue;const t=ke.findOne(decodeURI(e.hash),this._element);Vt(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Os),this._activateParents(t),be.trigger(this._element,ks,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))ke.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Os);else for(const e of ke.parents(t,".nav, .list-group"))for(const t of ke.prev(e,Is))t.classList.add(Os)}_clearActiveClass(t){t.classList.remove(Os);const e=ke.find(`${xs}.${Os}`,t);for(const t of e)t.classList.remove(Os)}static jQueryInterface(t){return this.each(function(){const e=Ns.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
2amed "${t}"`);e[t]()}})}}be.on(window,Ls,()=>{for(const t of ke.find('[data-bs-spy="scroll"]'))Ns.getOrCreateInstance(t)}),Zt(Ns);const $s=".bs.tab",Ms=`hide${$s}`,qs=`hidden${$s}`,Fs=`show${$s}`,Rs=`shown${$s}`,Hs=`click${$s}`,Ws=`keydown${$s}`,Bs=`load${$s}`,zs="ArrowLeft",Vs="ArrowRight",Us="ArrowUp",Xs="ArrowDown",Qs="Home",Ks="End",Ys="active",Js="fade",Gs="show",Zs=".dropdown-toggle",to=`:not(${Zs})`,eo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',no=`.nav-link${to}, .list-group-item${to}, [role="tab"]${to}, ${eo}`,io=`.${Ys}[data-bs-toggle="tab"], .${Ys}[data-bs-toggle="pill"], .${Ys}[data-bs-toggle="list"]`;class so extends Ce{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),be.on(this._element,Ws,t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),n=e?be.trigger(e,Ms,{relatedTarget:t}):null;be.trigger(t,Fs,{relatedTarget:e}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(Ys),this._activate(ke.getElementFromSelector(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),be.trigger(t,Rs,{relatedTarget:e})):t.classList.add(Gs)},t,t.classList.contains(Js)))}_deactivate(t,e){t&&(t.classList.remove(Ys),t.blur(),this._deactivate(ke.getElementFromSelector(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),be.trigger(t,qs,{relatedTarget:e})):t.classList.remove(Gs)},t,t.classList.contains(Js)))}_keydown(t){if(![zs,Vs,Us,Xs,Qs,Ks].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(t=>!Ut(t));let n;if([Qs,Ks].includes(t.key))n=e[t.key===Qs?0:e.length-1];else{const i=[Vs,Xs].includes(t.key);n=ne(e,t.target,i,!0)}n&&(n.focus({preventScroll:!0}),so.getOrCreateInstance(n).show())}_getChildren(){return ke.find(no,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=ke.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains("dropdown"))return;const i=(t,i)=>{const s=ke.findOne(t,n);s&&s.classList.toggle(i,e)};i(Zs,Ys),i(".dropdown-menu",Gs),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n)}_elemIsActive(t){return t.classList.contains(Ys)}_getInnerElement(t){return t.matches(no)?t:ke.findOne(no,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const e=so.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}be.on(document,Hs,eo,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ut(this)||so.getOrCreateInstance(this).show()}),be.on(window,Bs,()=>{for(const t of ke.find(io))so.getOrCreateInstance(t)}),Zt(so);const oo=".bs.toast",ro=`mouseover${oo}`,ao=`mouseout${oo}`,co=`focusin${oo}`,lo=`focusout${oo}`,uo=`hide${oo}`,ho=`hidden${oo}`,fo=`show${oo}`,po=`shown${oo}`,mo="hide",go="show",_o="showing",bo={animation:"boolean",autohide:"boolean",delay:"number"},vo={animation:!0,autohide:!0,delay:5e3};class yo extends Ce{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return vo}static get DefaultType(){return bo}static get NAME(){return"toast"}show(){be.trigger(this._element,fo).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(mo),Kt(this._element),this._element.classList.add(go,_o),this._queueCallback(()=>{this._element.classList.remove(_o),be.trigger(this._element,po),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(be.trigger(this._element,uo).defaultPrevented||(this._element.classList.add(_o),this._queueCallback(()=>{this._element.classList.add(mo),this._element.classList.remove(_o,go),be.trigger(this._element,ho)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(go),super.dispose()}isShown(){return this._element.classList.contains(go)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){be.on(this._element,ro,t=>this._onInteraction(t,!0)),be.on(this._element,ao,t=>this._onInteraction(t,!1)),be.on(this._element,co,t=>this._onInteraction(t,!0)),be.on(this._element,lo,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=yo.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
2amed "${t}"`);e[t](this)}})}}function wo(t){const e=new URLSearchParams(t.getAttribute("data-base-params")||"");return new URLSearchParams(window.location.search).forEach(function(t,n){e.set(n,t)}),e.toString()}Te(yo),Zt(yo);const Ao="is-modal-open";function Eo(t){const e=t.closest("[data-modal-host]"),n=e&&e.querySelector("[data-modal-open]");t&&!t.dataset.modalSetup&&(Di.getOrCreateInstance(t,{backdrop:!1,keyboard:!0,focus:!0}),e&&n&&(t.addEventListener("show.bs.modal",()=>{e.classList.add(Ao),n.setAttribute("aria-expanded","true")}),t.addEventListener("hidden.bs.modal",()=>{e.classList.remove(Ao),n.setAttribute("aria-expanded","false")})),window.matchMedia("(prefers-reduced-motion: reduce)").matches&&t.classList.remove("fade"),t.dataset.modalSetup="true")}function Co(t=document){t.querySelectorAll("[data-modal]").forEach(Eo)}const So=".js-plp-results",ko=".redesign-plp-modal",To=".redesign-plp-no-results-modal",Lo=".js-plp-filter",Oo=".js-plp-apply",xo=".redesign-plp-filter-accordion",jo="m-loading",Io="is-open",Po=new Map;function Do(t,e){t.querySelectorAll(".js-plp-tab").forEach(function(t){const n=t.getAttribute("data-plp-tab")===e;t.classList.toggle("is-active",n),t.setAttribute("aria-selected",n?"true":"false")}),t.querySelectorAll(".js-plp-pane").forEach(function(t){t.hidden=t.getAttribute("data-plp-pane")!==e})}function No(t){const e=t.querySelectorAll(Lo+":checked").length,n=e>
20?" ("+e+")":"";t.querySelectorAll(".js-plp-filter-count, .js-plp-tab-filter-count").forEach(function(t){t.textContent=n}),t.querySelectorAll(".js-plp-clear").forEach(function(t){t.disabled=0===e})}function $o(t){const e=new URLSearchParams,n=t.getAttribute("data-base-params");n&&n.split("&").forEach(function(t){const n=t.indexOf("=");n>0&&e.append(t.slice(0,n),decodeURIComponent(t.slice(n+1)))});const i={};let s,o;t.querySelectorAll(Lo+":checked").forEach(function(t){if("price"===t.getAttribute("data-filter-type"))return s=t.getAttribute("data-pmin"),void(o=t.getAttribute("data-pmax"));const e=t.getAttribute("data-prefn");i[e]||(i[e]=[]),i[e].push(t.getAttribute("data-prefv"))});let r=1;Object.keys(i).forEach(function(t){e.append("prefn"+r,t),e.append("prefv"+r,i[t].join("|")),r++}),void 0!==s&&(e.append("pmin",s),e.append("pmax",o));const a=t.querySelector(".js-plp-sort-option:checked");a&&a.value&&e.append("srule",a.value),e.append("start","0");const c=t.getAttribute("data-page-size");return c&&e.append("sz",c),e.toString()}function Mo(t,e,n){const i=n||{},s=t.querySelector(So);if(!s)return;const r=e?"?"+e:"",a=t.getAttribute("data-grid-update-url")+r,c=t.getAttribute("data-show-url")+r;s.classList.add(jo),s.setAttribute("aria-busy","true"),fetch(a,{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(t){return t.ok?t.text():Promise.reject(t.status)}).then(function(n){if(i.guardNoResults&&-1!==n.indexOf("data-plp-no-results"))return function(t){const e=t.querySelector(To);e&&Di.getOrCreateInstance(e).show()}(t),void o(t,i.noResultsMessage);!function(t){const e=[];t.querySelectorAll(xo).forEach(function(t){t.classList.contains(Io)&&e.push(t.getAttribute("data-group-id"))}),t.setAttribute("data-open-groups",JSON.stringify(e))}(t);const r=(new DOMParser).parseFromString(n,"text/html").querySelector(So);s.innerHTML=r?r.innerHTML:n,Co(s),function(t){const e=t.getAttribute("data-open-groups");if(null===e)return;let n;try{n=JSON.parse(e)}catch{return}t.querySelectorAll(xo).forEach(function(t){const e=-1!==n.indexOf(t.getAttribute("data-group-id")),i=t.querySelector(".js-plp-accordion-trigger");t.classList.toggle(Io,e),i&&i.setAttribute("aria-expanded",e?"true":"false")})}(t),No(t),document.dispatchEvent(new CustomEvent("plp:resultsUpdated")),i.pushHistory&&window.history.pushState({plpQuery:e},"",c),o(t,i.alertMessage)}
2).catch(function(t){console.error("PLP results update failed:",t)}).finally(function(){s.classList.remove(jo),s.removeAttribute("aria-busy")})}function qo(t){const e=new URLSearchParams(t),n=[];return e.forEach(function(t,e){(/^pref[nv]\d+$/.test(e)||"pmin"===e||"pmax"===e)&&n.push(e+"="+t)}),n.sort().join("&")}function Fo(t,e){const n=t.querySelector(Oo+" .redesign-plp-apply-label");n&&(n.textContent=e)}function Ro(t,e){const n=t.querySelector(Oo);n&&n.classList.toggle("is-loading",e)}function Ho(t,e){const n=t.querySelector(Oo);n&&(n.disabled=e)}function Wo(t){const e=s(t);let n=0,i=null;t.addEventListener("click",function(s){const o=s.target.closest(".js-plp-accordion-trigger");if(o){const t=o.closest(xo);if(t){const e=t.classList.toggle(Io);o.setAttribute("aria-expanded",e?"true":"false")}return}const r=s.target.closest(".js-plp-modal-trigger");if(r){const e=t.querySelector(ko);return Do(t,r.getAttribute("data-plp-tab")),void(e&&(Di.getOrCreateInstance(e).show(),No(t)))}if(s.target.closest(".js-plp-close")){const e=t.querySelector(ko),n=e&&Di.getInstance(e);return void(n&&n.hide())}const a=s.target.closest(".js-plp-tab");if(a)Do(t,a.getAttribute("data-plp-tab"));else{if(s.target.closest(".js-plp-no-results-close")){const e=t.querySelector(To),n=e&&Di.getInstance(e);return void(n&&n.hide())}if(s.target.closest(".js-plp-apply")){const n=$o(t);return void function(t,e){const n=t.querySelector(ko),i=n&&Di.getInstance(n);n&&i&&n.classList.contains("show")?(n.addEventListener("hidden.bs.modal",function t(){n.removeEventListener("hidden.bs.modal",t),e()}),i.hide()):e()}(t,function(){Mo(t,n,{pushHistory:!0,alertMessage:e.filtersapplied,guardNoResults:!0,noResultsMessage:e.noresults})})}if(s.target.closest(".js-plp-clear")){t.querySelectorAll(Lo+":checked").forEach(function(t){t.checked=!1}),No(t),clearTimeout(i),n++,Ro(t,!1);const e=t.querySelector(Oo);e&&(Fo(t,e.getAttribute("data-apply-label")||""),Ho(t,!1))}}}),t.addEventListener("change",function(e){e.target.closest(Lo)&&(No(t),function(){clearTimeout(i),n++;const e=n;i=setTimeout(function(){!function(t,e,n){const i=t.querySelector(Oo);if(!i)return;const s=i.getAttribute("data-apply-label")||"",o=i.getAttribute("data-view-label")||"",r=$o(t);if(qo(r)===qo(wo(t)))return Ro(t,!1),Fo(t,s),void Ho(t,!1);const a=t.getAttribute("data-grid-update-url")+(r?"?"+r:"");if(Po.has(a)){if(n()!==e)return;const i=Po.get(a),r=null!==i&&0===parseInt(i,10);return Ro(t,!1),Fo(t,null!==i?o.replace("{0}",i):s),void Ho(t,r)}Ro(t,!0),fetch(a,{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(t){return t.ok?t.text():Promise.reject(t.status)}).then(function(i){const r=document.createElement("div");r.innerHTML=i;const c=r.querySelector(".js-plp-results-count"),l=c?c.getAttribute("data-count"):null;if(Po.set(a,l),n()!==e)return;const u=null!==l&&0===parseInt(l,10);Fo(t,null!==l?o.replace("{0}",l):s),Ho(t,u)}).catch(function(){n()===e&&(Fo(t,s),Ho(t,!1))}).finally(function(){n()===e&&Ro(t,!1)})}(t,e,function(){return n})},400)}())}),window.addEventListener("popstate",function(n){const i=n.state&&void 0!==n.state.plpQuery?n.state.plpQuery:wo(t);Mo(t,i,{pushHistory:!1,alertMessage:e.previousstatereverted})})}const Bo=function(t){(t||document).querySelectorAll(".js-plp").forEach(function(t){Co(t),Wo(t)})},zo=".js-plp-grid";function Vo(t,e,n){const i=t.querySelector(zo);if(!i||e.disabled)return;const r=s(t),a=function(t,e,n){const i=new URLSearchParams(wo(t));return i.set("start",e),i.set("sz",n),i.toString()}(t,e.getAttribute("data-start"),e.getAttribute("data-size")),c=t.getAttribute("data-grid-update-url")+"?"+a,l=t.getAttribute("data-show-url")+"?"+a;e.disabled=!0,e.setAttribute("aria-busy","true"),fetch(c,{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(t){return t.ok?t.text():Promise.reject(t.status)}).then(function(e){const s=(new DOMParser).parseFromString(e,"text/html"),c=s.querySelector(zo),u=c?Array.from(c.children):[],d=n?".js-plp-load-prev-block":".js-plp-load-more-block",h=t.querySelector(d),f=s.querySelector(d);if(!u.length)return void(h&&h.remove());const p=i.firstElementChild,m=n&&p?p.getBoundingClientRect().top:0;n?(i.prepend(...u),p&&window.scrollBy(0,p.getBoundingClientRect().top-m)):i.append(...u),h&&(f?h.replaceWith(f):h.remove()),window.history.replaceState({plp
2Query:a},"",l),document.dispatchEvent(new CustomEvent("plp:resultsUpdated"));const g=u[0];g.setAttribute("tabindex","-1"),g.focus({preventScroll:n}),o(t,n?r.previousloaded:r.productsloaded)}).catch(function(t){console.error("PLP chunk load failed:",t),e.disabled=!1,e.removeAttribute("aria-busy")})}function Uo(t){t.addEventListener("click",function(e){const n=e.target.closest(".js-plp-load-more");if(n)return void Vo(t,n,!1);const i=e.target.closest(".js-plp-load-prev");i&&Vo(t,i,!0)})}const Xo=function(t){(t||document).querySelectorAll(".js-plp").forEach(Uo)};function Qo(t,e){t&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push(Object.assign({event:t},e||{})))}function Ko(t){window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)}function Yo(){const t=document.querySelector(".header-wrapper[data-gtm-currency]");return t&&t.dataset.gtmCurrency||document.body.dataset.gtmCurrency||""}function Jo(t){const e={};return Object.keys(t).forEach(function(n){const i=t[n];null!=i&&""!==i&&(e[n]=i)}),e}function Go(){if(window.dataLayer&&Array.isArray(window.dataLayer))for(let t=window.dataLayer.length-1;t>=0;t--){const e=window.dataLayer[t];if(e&&e.user_type)return e.user_type}}function Zo(){const t=document.querySelector(".js-plp[data-gtm-plp-category]");return t?t.dataset.gtmPlpCategory:null}function tr(t){const e=t.closest(".swiper-slide");if(!e||!e.parentElement)return;const n=Array.prototype.slice.call(e.parentElement.querySelectorAll(".swiper-slide:not(.swiper-slide-duplicate)")).indexOf(e);return-1===n?void 0:n+1}new WeakSet,new WeakMap;const er=".js-inline-video",nr=new WeakMap;function ir(t){return t?Jo({video_title:t.dataset.gtmVideoTitle,video_category:t.dataset.gtmVideoCategory,video_location:t.dataset.gtmVideoLocation,video_sub_category:t.dataset.gtmVideoSubCategory}):{}}function sr(t){if(!t.duration||!isFinite(t.duration))return 0;const e=t.currentTime/t.duration*100;return e>=75?75:e>=50?50:e>=25?25:0}function or(t){const e=t.target.closest?t.target.closest(er):null,n=t.detail&&t.detail.video;if(!e||!n)return;const i=function(t){let e=nr.get(t);return e||(e={started:!1,completed:!1,milestones:new Set,progressBound:!1},nr.set(t,e)),e}(n);!1!==t.detail.isPlaying?i.started&&Qo("video_pause",Object.assign(ir(e),{video_progress_pct:sr(n)})):i.started||(i.started=!0,Qo("video_play",ir(e)),function(t,e,n){n.progressBound||(n.progressBound=!0,t.addEventListener("timeupdate",function(){if(!t.duration||!isFinite(t.duration))return;const i=t.currentTime/t.duration*100;[25,50,75].forEach(function(t){i>=t&&!n.milestones.has(t)&&(n.milestones.add(t),Qo("video_progress",Object.assign(ir(e),{video_progress_pct:t})))})}))}(n,e,i))}function rr(t){const e=t.target.closest?t.target.closest(er):null,n=t.detail&&t.detail.video;if(!e||!n)return;const i=nr.get(n);i&&i.started&&!i.completed&&(i.completed=!0,Qo("video_end",ir(e)))}const ar=new WeakSet;function cr(t){t.querySelectorAll('[data-gtm="content-module"]').forEach(function(t){if(ar.has(t))return;ar.add(t);const e=new IntersectionObserver(function(n){n.forEach(function(n){if(n.intersectionRatio<.5)return;const i=Jo({plp_content_variant:t.dataset.gtmVariant,page_section:"plp_content_module",user_type:Go()});i.plp_category=Zo(),Qo("plp_content_module_impression",i),e.disconnect()})},{threshold:.5});e.observe(t)})}let lr=null;const ur=[{selector:'[data-gtm="complete-regimen"]',moduleId:"pdp_complete_regimen",eventName:"pdp_regimen_click",idParam:"regimen_product_id",nameParam:"regimen_product_name",cardClickType:"product_card",trackAddToBag:!1,trackShopAll:!0},{selector:'[data-gtm="enhance-regimen"]',moduleId:"pdp_enhance_your_regimen",eventName:"pdp_enhance_regimen_click",idParam:"enhance_regimen_product_id",nameParam:"enhance_regimen_product_name",cardClickType:"product_click",trackAddToBag:!0,trackShopAll:!1}];const dr="gtmProductsData",hr="data-gtm-list-processed",fr={};function pr(t,e,n){const i=n&&n.startIndex||1,s=Array.prototype.slice.call(t).filter(function(t){return!t.hasAttribute(hr)});if(!s.length)return;const o=new IntersectionObserver(function(t){const n=t.filter(function(t){return t.isIntersecting});if(!n.length)return;const r=[],a=[];
2n.forEach(function(t){const n=t.target;o.unobserve(n);const c=function(t){try{const e=t.dataset.gtmAnalytics;return e?JSON.parse(e):null}catch{return null}}(n);if(!c)return;const l=i+s.indexOf(n);r.push(function(t,e,n){return Jo(Object.assign(function(t){const e=parseFloat(t.basePrice)||0,n=parseFloat(t.price)||0;let i;return t.basePrice&&t.price&&(i=parseFloat((e-n).toFixed(2))),Jo({item_name:t.name,item_id:t.id||t.sku,affiliation:t.affiliation,discount:i,item_brand:t.brand,item_category:t.category,item_category2:t.category2,item_category3:t.category3,price:e,quantity:1,item_variant:t.variant||void 0,subscription_type:t.subscription_type||void 0})}(t),{index:e,item_list_name:n}))}(c,l,e));const u=c.id||c.sku;u&&a.push({id:u,item_list_name:e,index:l})}),r.length&&function(t,e,n){fr[t]||(fr[t]={items:[],sessionEntries:[],timerId:null});const i=fr[t];clearTimeout(i.timerId),e.forEach(function(t){i.items.push(t)}),n.forEach(function(t){i.sessionEntries.push(t)}),i.timerId=setTimeout(function(){!function(t){const e=fr[t];e&&(delete fr[t],function(t){try{const e=JSON.parse(sessionStorage.getItem(dr)||"[]");t.forEach(function(t){const n=e.findIndex(function(e){return e.id===t.id});n>=0?e[n]=t:e.push(t)}),sessionStorage.setItem(dr,JSON.stringify(e))}catch{}}(e.sessionEntries),Ko({ecommerce:null}),Ko({event:"view_item_list",ecommerce:{currency:Yo(),item_list_name:t,items:e.items}}))}(t)},100)}(e,r,a)},{threshold:.1});s.forEach(function(t){t.setAttribute(hr,""),o.observe(t)})}function mr(t){return!t.closest("section.product-cards-group")}function gr(t){if(!t)return;const e=function(t){return document.querySelector(".redesign-search-page")?"search results":t.dataset.gtmListName||t.dataset.gtmPlpCategory||"product-collection"}(t);if(!e)return;const n=Array.prototype.filter.call(t.querySelectorAll("article.js-product-tile[data-gtm-list-processed]"),mr).length,i=Array.prototype.filter.call(t.querySelectorAll("article.js-product-tile:not([data-gtm-list-processed])"),mr);i.length&&pr(i,e,{startIndex:n+1})}let _r=!1;function br(){if(_r)return;const t=document.querySelector(".redesign-plp.js-plp");t&&(_r=!0,function(t){t.addEventListener("click",function(t){const e=t.target.closest?t.target.closest(".js-product-tile-link"):null;if(!e)return;const n=e.closest("article.product-tile");if(!n)return;if(n.querySelector('.js-product-availability[data-availability-state="oos"]'))return;const i=Zo(),s=Jo({page_product_id:n.dataset.pid,page_product_name:n.dataset.gtmItemName,page_product_category:i,click_source_module:"plp_product_card",user_type:Go()});s.plp_category=i,Qo("plp_product_card_click",s)})}(t),function(t){const e=t.querySelector(".js-plp-sort-option:checked");
2lr=e?e.dataset.gtmSortLabel||e.value:null,t.addEventListener("click",function(e){const n=!(!e.target.closest||!e.target.closest(".js-plp-clear")),i=!(!e.target.closest||!e.target.closest(".js-plp-apply"));if(!n&&!i)return;if(n){const t=Jo({plp_filter_selections:"",plp_filter_count:0,user_type:Go()});return t.plp_category=Zo(),void Qo("plp_filter_apply",t)}const s=Array.from(t.querySelectorAll(".js-plp-filter:checked")),o=Jo({plp_filter_selections:s.map(function(t){return(t.dataset.gtmFilterCategory||t.dataset.prefn)+":"+(t.dataset.gtmFilterLabel||t.dataset.prefv)}).join("|"),plp_filter_count:s.length,user_type:Go()});o.plp_category=Zo(),Qo("plp_filter_apply",o);const r=t.querySelector(".js-plp-sort-option:checked"),a=r?r.dataset.gtmSortLabel||r.value:null;if(a&&a!==lr){const t=Jo({plp_sort_type:a,user_type:Go()});t.plp_category=Zo(),Qo("plp_sort_apply",t),lr=a}})}(t),function(t){cr(t),document.addEventListener("plp:resultsUpdated",function(){cr(t)}),t.addEventListener("click",function(t){const e=t.target.closest?t.target.closest(".redesign-interrupter_cta"):null,n=t.target.closest?t.target.closest(".redesign-interrupter_play"):null;if(!e&&!n)return;const i=(e||n).closest('[data-gtm="content-module"]'),s=Jo({plp_content_variant:i?i.dataset.gtmVariant:null,plp_content_click_target:e?"cta":"video_play",cta_destination:e?e.getAttribute("href"):null,video_location:n?"plp_interrupter":null,page_section:"plp_content_module",user_type:Go()});s.plp_category=Zo(),Qo("plp_content_module_click",s)})}(t),function(t,e){const n=t||document,i=e||{};n.addEventListener("categoryrouting:swap",function(t){const e=t.detail||{};Qo("concern_image_swap",Jo({concern_name:e.name,concern_position:void 0===e.index?void 0:parseInt(e.index,10)+1,page_section:i.pageSection||"shop_by_concern"}))}),n.addEventListener("click",function(t){const e=t.target.closest?t.target.closest(".category-routing_link"):null;if(!e)return;const n=e.querySelector(".category-routing_label"),s=e.getAttribute("data-cr-index");Qo("concern_plp_click",Jo({concern_name:n?n.textContent.trim():"",concern_position:null===s?void 0:parseInt(s,10)+1,cta_destination:e.getAttribute("href"),page_section:i.pageSection||"shop_by_concern"}))})}(t,{pageSection:"plp_shop_by_concern"}),function(t,e){const n=t||document,i=e||{};n.addEventListener("click",function(t){const e=t.target.closest?t.target.closest('[data-gtm="product-feature-cta"]'):null;e&&Qo("product_feature_click",Jo({feature_variant:e.dataset.gtmFeatureVariant,cta_destination:e.dataset.gtmCtaDestination,featured_product_id:e.dataset.gtmFeaturedProductId,page_section:i.pageSection,click_source_module:i.sourceModule}))})}(t,{pageSection:"plp_product_innovation",sourceModule:"plp_product_innovation_scroller"}),function(t,e){const n=t&&t.root?t.root:t||document,i=e||{};n.addEventListener("click",function(t){if(!t.target.closest)return;let e=null;for(let n=0;n<ur.length;n++)if(t.target.closest(ur[n].selector)){e=ur[n];break}if(!e)return;const n=i.sourceModule||e.moduleId;if(t.target.closest('[data-gtm="featured-formula-shop-all"]')){if(!e.trackShopAll)return;return void Qo(e.eventName,Jo({click_type:"shop_all",click_source_module:n}))}const s=t.target.closest(".js-add-to-cart"),o=s?null:t.target.closest(".js-product-tile-link");if(s&&!e.trackAddToBag||!s&&!o)return;const r=(s||o).closest(".js-product-tile");if(!r)return;if(r.querySelector('.js-product-availability[data-availability-state="oos"]'))return;const a={click_type:s?"add_to_bag":e.cardClickType,slider_position:tr(r),click_source_module:n};a[e.idParam]=r.dataset.gtmItemId,a[e.nameParam]=r.dataset.gtmItemName,Qo(e.eventName,Jo(a))})}(t,{sourceModule:"plp_add-to_your_regimen"}),function(t,e){const n=t||document,i=e||{};n.addEventListener("click",function(t){t.target.closest&&t.target.closest('[data-gtm-button="hcp_finder_open"]')&&Qo("hcp_finder_open",Jo({search_trigger_module:"find_a_practice",entry_source:i.entrySource,page_product_id:"function"==typeof i.pageProductId?i.pageProductId():void 0,user_type:Go()}))})}(t,{entrySource:"plp_find_a_practice"}),function(t){const e=t||document;e.addEventListener("inlineVideo:toggle",or),e.addEventListener("inlineVideo:ended",rr)}(t),gr(t),document.addEventListener("plp:resultsUpdated",function(){gr(t)}))}const vr="is-processing";function yr(t,e,n){const i=t.querySelector(n);e?(i&&!t.dataset.defaultLabel&&(t.dataset.defaultLabel=i.textContent.trim()),t.classList.add(vr),t.setAttribute("aria-busy","true"),t.disabled=!0,i&&t.dataset.processingLabel&&(i.textContent=t.dataset.processingLabel)):(t.classList.remove(vr),t.removeAttribute("aria-busy"),t.disabled=!1,i&&t.dataset.defaultLabel&&(i.textContent=t.dataset.defaultLabel))}function wr(t,e){if(!t||!t.images)return"";for(let n=0;n<e.length;n+=1){const i=t.images[e[n]];if(i&&i[0]&&i[0].url)return i[0].url}return""}const Ar=".js-product-tile",Er=".js-add-to-cart",Cr=".js-add-to-cart-label",Sr=".js-variation-attr",kr=".js-variation-items",Tr=".js-variation-more",Lr="is-selected",Or=new WeakMap;function xr(t,e){if(!e)return;let n=vs.getInstance(t);n?n.setContent({".tooltip-inner":e}):n=new vs(t,{title:e,trigger:"manual",container:"body",placement:"top",customClass:"product-tile-atb-tooltip"}),n.show(),window.clearTimeout(Or.get(t)),Or.set(t,window.setTimeout(function(){n.hide()},4e3))}function jr(t){const e=Array.from(t.querySelectorAll(Sr)),n=t.querySelector(Tr);if(!e.length||!n)return;e.forEach(function(t){t.removeAttribute("tabindex"),t.style.pointerEvents="",t.style.opacity="",t.style.order=""}),n.hidden=!0,n.removeAttribute("data-count"),n.style.order="";const i=t.offsetWidth;if(!i)return;const s=function(t){const e=parseFloat(window.getComputedStyle(t).columnGap
2);return isNaN(e)?0:e}(t),o=e.map(function(t){return t.offsetWidth});if(o.reduce(function(t,e,n){return t+e+(n>0?s:0)},0)<=i)return;n.hidden=!1;const r=n.offsetWidth;n.hidden=!0;const a=i-r-s;let c=0,l=0;for(let t=0;t<e.length;t++){const e=o[t]+(t>0?s:0);if(!(c+e<=a))break;c+=e,l++}const u=e.findIndex(function(t){return t.classList.contains(Lr)}),d=new Set;for(let t=0;t<l;t++)d.add(t);-1===u||d.has(u)||(d.size>0&&d.delete(l-1),d.add(u)),0===d.size&&d.add(-1!==u?u:0);let h=0;e.forEach(function(t,e){d.has(e)||(t.tabIndex=-1,t.style.pointerEvents="none",t.style.opacity="0",t.style.order="2",h++)}),h>0&&(n.dataset.count="+"+h,n.style.order="1",n.hidden=!1)}function Ir(t,e){if(!t||!e||!e.url)return;const n="IMG"===t.tagName?t:t.querySelector("img");t.querySelectorAll("source").forEach(function(t){t.remove()}),(e.sources||[]).forEach(function(e){const i=document.createElement("source");i.media=e.media||"",i.srcset=e.srcset||"",t.insertBefore(i,n)}),n&&(n.removeAttribute("srcset"),n.src=e.url)}function Pr(t){const e=t.dataset.attrUrl,n=t.closest(kr),i=t.closest(Ar),s="true"===t.getAttribute("aria-disabled");if(!e||!n||s||t.classList.contains(Lr))return Promise.resolve();!function(t,e){t.querySelectorAll(Sr).forEach(function(t){t.classList.remove(Lr),t.setAttribute("aria-checked","false")}),e.classList.add(Lr),e.setAttribute("aria-checked","true")}(n,t),jr(n);const o=e+(-1===e.indexOf("?")?"?":"&")+"pview=quickBuyProduct";return fetch(o,{headers:{"X-Requested-With":"XMLHttpRequest"},credentials:"same-origin"}).then(function(t){return t.json()}).then(function(t){const e=t&&t.product;if(!e||!i)return;!function(t,e){const n=t.querySelector(".js-product-tile-image-primary");if(!n)return;const i=e.images||{},s=t.classList.contains("product-tile-small")&&i.productTileRedesignSmall?"productTileRedesignSmall":"productTileRedesign",o=i[s]&&i[s][0];if(!o||!o.url)return void Ir(n,{url:wr(e,["productTile","medium","large","small"])});Ir(n,o);const r=t.querySelector(".js-product-tile-image-secondary");if(r){const t=i[s+"SecondImage"];Ir(r,t&&t[0]||o)}}(i,e);const n=e.availability&&e.availability.isOutOfStock,s=e.readyToOrder&&!e.isInaccessibleVariant&&!e.isNonSellable;i.classList.toggle("is-restricted",e.isRestricted),i.dataset.allowedGroups="|"+(e.allowedCustomerGroups||[]).join("|")+"|";const o=i.querySelector(".js-product-availability");o&&(o.dataset.availabilityState=s?n?"oos":"default":"unavailable"),e.id&&(i.querySelectorAll(Er).forEach(function(t){t.dataset.pid=e.id,t.disabled=!s||n}),i.dataset.pid=e.id),function(t,e){const n=t.querySelector(".js-product-tile-price");if(!n)return;const i=e.price,s=i&&(i.sales||i.min&&i.min.sales),o=i&&(i.list||i.min&&i.min.list);if(!s||!s.formatted)return void n.replaceChildren();const r=document.createElement("span");if(r.className="product-tile-price-sales",r.textContent=s.formatted,n.replaceChildren(r),o&&o.value&&s.value&&o.value>s.value){const t=document.createElement("span");t.className="product-tile-price-list",t.textContent=o.formatted,n.appendChild(t)}}(i,e),function(t,e){const n=t.querySelector(".js-product-tile-badge");if(!n)return;const i=function(t,e){const n=document.createElement("span"),i=e.tileBadge;if(!i){if(!1===e.available){n.className="badge badge-out-of-stock product-tile-badge";const e=document.createElement("span");return e.className="badge-label",e.textContent=t,n.appendChild(e),n}return null}if(i.isImage){n.className="badge product-tile-badge badge-image";const t=document.createElement("img");t.src=i.url||"",t.alt=i.name||"",t.loading="lazy",n.appendChild(t)}else{n.className="badge badge-new product-tile-badge";const t=document.createElement("span");t.className="badge-label";const e=i.displayName||"",s=function(t){if(!t||t.length<=20)return t||"";const e=t.substring(0,17),n=e.lastIndexOf(" ");return(n>0?e.substring(0,n):e)+"..."}(e);t.textContent=s,s!==e?t.title=e:t.removeAttribute("title"),n.appendChild(t)}return n}(n.dataset.oosLabel||"",e);n.replaceChildren(),i&&n.appendChild(i)}(i,e),e.selectedProductUrl&&i.querySelectorAll(".js-product-tile-link").forEach(function(t){t.href=e.selectedProductUrl})}).catch(function(){})}let Dr=!1;function Nr(t=document){t.querySelectorAll(Ar).forEach(function(t){t.querySelectorAll(kr).forEach(function(e){e.dataset.variationOverflowInit||(e.dataset.variationOverflowInit="1",function(t){jr(t),new ResizeObserver(function(){jr(t)}).observe(t)}(e),e.querySelector(Tr)?.addEventListener("click",function(){t.querySelector(".js-quickview-btn")?.click()}))})}),Dr||(Dr=!0,document.addEventListener("click",function(t){const e=t.target;if(!e||!e.closest)return;const n=e.closest(Er);if(n)return t.preventDefault(),void function(t){const e=t.dataset.url,n=t.dataset.pid;if(!e||!n||t.classList.contains("is-processing"))return Promise.resolve();yr(t,!0,Cr);const i=Object.assign({pid:n,quantity:t.dataset.quantity||"1"},function(){const t=window.csrfToken;if(t&&t.name){const e={};return e[t.name]=t.value,e}return{}}());(function(t,e){const n=new URLSearchParams;return Object.keys(e).forEach(function(t){n.append(t,e[t])}),fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest"},body:n.toString(),credentials:"same-origin"}).then(function(t){return t.json()})})(e,i).then(function(e){e&&e.error?xr(t,e.message||t.dataset.errorMessage):(function(t){if(!t)return;let e=t.quantityTotal;null==e&&(e=t.cart&&t.cart.numItems),null!=e&&document.querySelectorAll(".js-minicart-quantity").forEach(function(t){t.textContent=e,t.hidden=!(Number(e)>0)})}(e),document.dispatchEvent(new CustomEvent("product:afterAddToCart",{bubbles:!0,detail:Object.assign({quantityAdded:parseInt(i.quantity,10)||1},e)})))}).catch(function(){xr(t,t.dataset.errorMessage)}).then(function(){yr(t,!1,Cr)})}(n);const i=e.closest(Sr);i&&i.closest(Ar)&&(t.preventDefault(),Pr(i))}))}document.addEventListener("DOMContentLoaded",function(){i(document),Bo(document),Xo(document),br(),document.addEventListener("plp:resultsUpdated",function(){i(document),Nr(document)})})})();
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.