function hoverintent(e,t,i){var s,n,r,a,o=!1,l=!1,d={},c=0,u=0,p={sensitivity:7,interval:100,timeout:0,handleFocus:!1};function h(e){s=e.clientX,n=e.clientY}function m(e,i){if(u&&(u=clearTimeout(u)),Math.abs(r-s)+Math.abs(a-n){this.updateCheckbox()})}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}formResetCallback(){this.value=!1}get value(){return"true"===this.getAttribute("aria-checked")||null}set value(e){this.setAttribute("aria-checked",Boolean(e)),this.updateCheckbox(),this._internals?.setFormValue(!!e||null)}get name(){return this.getAttribute("name")}get(e=this.value){return{id:this.getAttribute("id"),value:!!e&&this.getAttribute("value"),dataset:this.dataset}}updateCheckbox(){const e=this.querySelector("toggle-button-checkbox");e&&e.update(this)}onClick(e){e.stopPropagation();const t=Boolean(this.value);this.value=!t,this.dispatchChangeEvent(!t)}dispatchChangeEvent(e){const t=this.get(e);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0}))}}class ToggleButtonCheckbox extends HTMLElement{update(e=this.closest("toggle-button")){return e.value?this.check():this.uncheck()}check(){const{checkedClass:e,uncheckedClass:t}=this.dataset;e&&this.classList.add(e),t&&this.classList.remove(t)}uncheck(){const{checkedClass:e,uncheckedClass:t}=this.dataset;t&&this.classList.add(t),e&&this.classList.remove(e)}}function toNumber(e,t=0,i=0){const s=Number(e);if(Number.isNaN(s))return t;const n=10**i;return Math.round(s*n)/n}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var nouislider_min=createCommonjsModule(function(e,t){!function(e){function t(e){return"object"==typeof e&&"function"==typeof e.to}function i(e){e.parentElement.removeChild(e)}function s(e){return null!=e}function n(e){e.preventDefault()}function r(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function a(e,t,i){0=t[i];)i+=1;return i}function g(e,t,i){if(i>=e.slice(-1)[0])return 100;var s=e[(r=f(i,e))-1],n=e[r],r=(e=t[r-1],t[r]);return e+m(n=[s,n],n[0]<0?i+Math.abs(n[0]):i-n[0],0)/h(e,r)}function v(e,t,i,s){if(100===s)return s;var n=f(s,e),r=e[n-1],a=e[n];return i?(a-r)/2this.xPct[s+1];)s++;else e===this.xPct[this.xPct.length-1]&&(s=this.xPct.length-2);i||e!==this.xPct[s+1]||s++;for(var n,r=1,a=(t=null===t?[]:t)[s],o=0,l=0,d=0,c=i?(e-this.xPct[s])/(this.xPct[s+1]-this.xPct[s]):(this.xPct[s+1]-e)/(this.xPct[s+1]-this.xPct[s]);0= 2) required for mode 'count'.");for(var i=t.values-1,s=100/i,n=[];i--;)n[i]=i*s;return n.push(100),V(n,t.stepped)}(t),s={},n=x.xVal[0],r=x.xVal[x.xVal.length-1],a=!1,o=!1,l=0;return(i=i.slice().sort(function(e,t){return e-t}).filter(function(e){return!this[e]&&(this[e]=!0)},{}))[0]!==n&&(i.unshift(n),a=!0),i[i.length-1]!==r&&(i.push(r),o=!0),i.forEach(function(n,r){var d,c,u,p,h,m,f,g,v=i[r+1],b=t.mode===e.PipsMode.Steps,w=(w=b?x.xNumSteps[r]:w)||v-n;for(void 0===v&&(v=n),w=Math.max(w,1e-7),d=n;d<=v;d=Number((d+w).toFixed(7))){for(m=(p=(u=x.toStepping(d))-l)/(t.density||1),g=p/(f=Math.round(m)),c=1;c<=f;c+=1)s[(h=l+c*g).toFixed(5)]=[x.fromStepping(h),0];m=-1e.PipsType.NoValue&&((n=q(a,!1)).className=p(d,r.cssClasses.value),n.setAttribute("data-value",String(l)),n.style[r.style]=o+"%",n.innerHTML=String(s.to(l))))}),a}function G(){v&&(i(v),v=null)}function Y(e){G();var t=X(e),i=e.filter;return e=e.format||{to:function(e){return String(Math.round(e))}},v=E.appendChild(j(t,i,e))}function W(){var e=h.getBoundingClientRect(),t="offset"+["Width","Height"][r.ort];return 0===r.ort?e.width||h[t]:e.height||h[t]}function Q(e,t,i,s){function n(n){var a,o=function(e,t,i){var s=0===e.type.indexOf("touch"),n=0===e.type.indexOf("mouse"),r=0===e.type.indexOf("pointer"),a=0,o=0;if(0===e.type.indexOf("MSPointer")&&(r=!0),"mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(s){var l=function(t){return(t=t.target)===i||i.contains(t)||e.composed&&e.composedPath().shift()===i};if("touchstart"===e.type){if(1<(s=Array.prototype.filter.call(e.touches,l)).length)return!1;a=s[0].pageX,o=s[0].pageY}else{if(!(l=Array.prototype.find.call(e.changedTouches,l)))return!1;a=l.pageX,o=l.pageY}}return t=t||p(A),(n||r)&&(a=e.clientX+t.x,o=e.clientY+t.y),e.pageOffset=t,e.points=[a,o],e.cursor=n||r,e}(n,s.pageOffset,s.target||t);return!!o&&!(F()&&!s.doNotReject)&&(a=E,n=r.cssClasses.tap,!((a.classList?a.classList.contains(n):new RegExp("\\b"+n+"\\b").test(a.className))&&!s.doNotReject)&&!(e===w.start&&void 0!==o.buttons&&1=i[t-1]}),P!==!t))return P=!P,B(r,r.connect.map(function(e){return!e})),void ye();fe(e),fe(e+1),P&&(fe(e-1),fe(e+2))}function he(){k.forEach(function(e){var t=50i.stepAfter.startValue&&(n=i.stepAfter.startValue-s),e=s>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&s-i.stepBefore.highestStep,100===t?n=null:0===t&&(e=null),t=x.countStepDecimals(),null!==n&&!1!==n&&(n=Number(n.toFixed(t))),[e=null!==e&&!1!==e?Number(e.toFixed(t)):e,n])}function ye(){for(;m.firstChild;)m.removeChild(m.firstChild);for(var e=0;e<=r.handles;e++)g[e]=N(m,r.connect[e]),fe(e);ne({drag:r.events.drag,fixed:!0})}c(t=E,r.cssClasses.target),0===r.dir?c(t,r.cssClasses.ltr):c(t,r.cssClasses.rtl),0===r.ort?c(t,r.cssClasses.horizontal):c(t,r.cssClasses.vertical),c(t,"rtl"===getComputedStyle(t).direction?r.cssClasses.textDirectionRtl:r.cssClasses.textDirectionLtr),h=q(t,r.cssClasses.base),function(e,t){m=q(t,r.cssClasses.connects),f=[],(g=[]).push(N(m,e[0]));for(var i=0;i{this.tooltip=this.querySelector(TOOLTIP_TAG),this.tooltip&&this.tooltip.update(e,t)})}onUpdate([e,t]){if(!this.tooltip)return null;this.tooltip.update(e,t)}onChange([e,t]){this.dispatchEvent(new CustomEvent("change",{detail:{from:e,to:t},bubbles:!0}))}}class RangeSliderTooltip extends HTMLElement{formatValue(e){const{format:t}=this.dataset;return t.replace(/{{.*?}}/,toNumber(e))}format(e,t){const{format:i}=this.dataset;return i?`${this.formatValue(e)} - ${this.formatValue(t)}`:null}update(e,t){this.textContent=this.format(e,t)}}class QuantitySelector extends HTMLElement{constructor(){super(),this.handleIncrementBound=this.handleIncrement.bind(this),this.handleDecrementBound=this.handleDecrement.bind(this),this.handleInputChangeBound=this.handleInputChange.bind(this)}connectedCallback(){this.quantity=this.querySelector("input"),this.increment=this.querySelector("quantity-selector-increment"),this.decrement=this.querySelector("quantity-selector-decrement"),this.quantity&&(this.min=parseInt(this.quantity.min),this.max=parseInt(this.quantity.max),this.step=parseInt(this.quantity.step),this.quantity.addEventListener("change",this.handleInputChangeBound)),this.increment&&this.decrement&&(this.increment.addEventListener("click",this.handleIncrementBound),this.decrement.addEventListener("click",this.handleDecrementBound))}disconnectedCallback(){this.quantity&&this.quantity.removeEventListener("change",this.handleInputChangeBound),this.increment&&this.decrement&&(this.increment.removeEventListener("click",this.handleIncrementBound),this.decrement.removeEventListener("click",this.handleDecrementBound))}get(){return Number(this.quantity.value)}handleIncrement(){if(!this.quantity)return;const e=parseInt(this.quantity.value),t=Math.min(e+this.step,this.max);this.setQuantityValue(t)}handleDecrement(){if(!this.quantity)return;const e=parseInt(this.quantity.value),t=Math.max(e-this.step,this.min);this.setQuantityValue(t)}handleInputChange(){const e=parseInt(this.quantity.value),t=parseInt(this.quantity.min)||0,i=parseInt(this.quantity.max)||1/0;!Number.isFinite(e)||ei&&this.setQuantityValue(i)}setQuantityValue(e){e!==this.get()&&(this.quantity.value=e.toString(),this.quantity.setAttribute("value",e),this.dispatchChangeEvent())}dispatchChangeEvent(){const e=new CustomEvent("change",{detail:{value:this.get()},bubbles:!0});this.dispatchEvent(e)}}class CopyToClipboard extends HTMLElement{constructor(){super(),this.triggers=document.querySelectorAll("copy-to-clipboard"),this.init()}init(){this.triggers.forEach(e=>{e.addEventListener("click",t=>{const i=e.getAttribute("data-copy-content");i&&navigator.clipboard.writeText(i).then(()=>{console.log("Content copied to clipboard:",i)}).catch(e=>{console.error("Failed to copy content:",e)})})})}}class BaseCustomEvent extends CustomEvent{constructor(e,t){super(e,{bubbles:!0,detail:t})}}class FilterInputChangeEvent extends BaseCustomEvent{static type="filter-input-change";constructor(e){super(FilterInputChangeEvent.type,e)}}class FiltersClearEvent extends BaseCustomEvent{static type="filters-clear";constructor(e){super(FiltersClearEvent.type,e)}}class PaginationLinkClickEvent extends BaseCustomEvent{static type="pagination-link-click";constructor(e){super(PaginationLinkClickEvent.type,e)}}class PaginationChangeEvent extends BaseCustomEvent{static type="pagination-change";constructor(e){super(PaginationChangeEvent.type,e)}}class CartItemQuantityChangeEvent extends BaseCustomEvent{static type="cart-item-quantity-change";constructor(e){super(CartItemQuantityChangeEvent.type,e)}}class CartItemRemoveEvent extends BaseCustomEvent{static type="cart-item-remove";constructor(e){super(CartItemRemoveEvent.type,e)}}class ProductQuantityChangeEvent extends BaseCustomEvent{static type="product-quantity-change";constructor(e){super(ProductQuantityChangeEvent.type,e)}}class ProductOptionChangeEvent extends BaseCustomEvent{static type="product-option-change";constructor(e){super(ProductOptionChangeEvent.type,e)}}class ProductOptionGiftcardSendToggleEvent extends BaseCustomEvent{static type="product-option-giftcard-send-toggle";constructor(e){super(ProductOptionGiftcardSendToggleEvent.type,e)}}class ProductPurchaseOptionChangeEvent extends BaseCustomEvent{static type="product-purchase-option-change";constructor(e){super(ProductPurchaseOptionChangeEvent.type,e)}}class ProductSortChangeEvent extends BaseCustomEvent{static type="product-sort-change";constructor(e){super(ProductSortChangeEvent.type,e)}}class ProductFiltersChangeEvent extends BaseCustomEvent{static type="product-filters-change";constructor(e){super(ProductFiltersChangeEvent.type,e)}}class ProductFilterToggleEvent extends BaseCustomEvent{static type="product-filter-toggle";constructor(e){super(ProductFilterToggleEvent.type,e)}}class AddressModalSubmitEvent extends BaseCustomEvent{static type="address-modal-submit";constructor(e){super(AddressModalSubmitEvent.type,e)}}class AddressRemoveModalSubmitEvent extends BaseCustomEvent{static type="address-remove-modal-submit";constructor(e){super(AddressRemoveModalSubmitEvent.type,e)}}class SubscriptionModalSubmitEvent extends BaseCustomEvent{static type="subscription-modal-submit";constructor(e){super(SubscriptionModalSubmitEvent.type,e)}}class SearchInputChangeEvent extends BaseCustomEvent{static type="search-input-change";constructor(e){super(SearchInputChangeEvent.type,e)}}const SEARCH_INPUT_DEBOUNCE_DELAY=300;class SearchInput extends HTMLInputElement{constructor(){super(),this.formElement=null,this.debounceTimeout=null,this.onKeydownBound=this.onKeydown.bind(this),this.onChangeBound=this.onChange.bind(this)}connectedCallback(){this.formElement=this.closest("#search-form"),this.addEventListener("keydown",this.onKeydownBound),this.addEventListener("input",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("keydown",this.onKeydownBound),this.removeEventListener("input",this.onChangeBound)}clear(){this.value&&(this.value="",this.dispatchEvent(new Event("input",{bubbles:!0})))}onKeydown(e){"Enter"===e.key&&e.preventDefault()}onChange(e){e.stopPropagation(),htmx.trigger(this.formElement,"htmx:abort"),clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>this.dispatchSearchInputChangeEvent(),SEARCH_INPUT_DEBOUNCE_DELAY)}dispatchSearchInputChangeEvent(){this.dispatchEvent(new SearchInputChangeEvent)}}class SearchDialog extends HTMLElement{constructor(){super(),this.searchInput=null,this.backdropOverlay=null}connectedCallback(){this.searchInput=this.querySelector('input[is="search-input"]'),this.backdropOverlay=document.querySelector("backdrop-root")}toggle(){return"true"===this.getAttribute("aria-hidden")?this.open():this.close()}open(){this.classList.remove("hidden"),this.setAttribute("aria-hidden","false"),this.backdropOverlay&&this.backdropOverlay.show("search-dialog")}close(){this.classList.add("hidden"),this.setAttribute("aria-hidden","true"),this.searchInput&&"function"==typeof this.searchInput.clear&&this.searchInput.clear(),this.backdropOverlay&&this.backdropOverlay.hide("search-dialog")}}class SearchDialogTrigger extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const t=document.querySelector("search-dialog");t&&t.toggle()}}class AccordionRoot extends HTMLElement{constructor(){super()}connectedCallback(){this.setAttribute("role","presentation")}}class AccordionItem extends HTMLElement{constructor(){super()}connectedCallback(){if(this.setAttribute("role","listitem"),this.hasAttribute("aria-expanded")){const e="true"===this.getAttribute("aria-expanded").trim();this.setAttribute("aria-expanded",e?"true":"false")}else this.setAttribute("aria-expanded","false")}toggle(){const e="true"===this.getAttribute("aria-expanded"),t=this.querySelector("accordion-content");t&&(t.toggle(e),this.setAttribute("aria-expanded",String(!e)))}}class AccordionTrigger extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.preventDefault();const t=this.closest("accordion-item");t&&t.toggle(this)}}class AccordionContent extends HTMLElement{constructor(){super()}connectedCallback(){this.setAttribute("role","region"),this.classList.add("overflow-hidden","transition-[height]","duration-300","ease-in-out","h-0","hidden");const e=this.closest("accordion-item");if(!e)return;"true"===e.getAttribute("aria-expanded")&&this.open()}toggle(e){return e?this.close():this.open()}open(){this.style.display="block";const e=this.scrollHeight;this.style.height="0px",requestAnimationFrame(()=>{this.style.height=`${e}px`}),this.addEventListener("transitionend",()=>{this.style.height="auto"},{once:!0})}close(){const e=this.scrollHeight;this.style.height=`${e}px`,requestAnimationFrame(()=>{this.style.height="0px"}),this.addEventListener("transitionend",()=>{this.style.display="none"},{once:!0})}}class PaginationNav extends HTMLElement{constructor(){super(),this.onChangeBound=this.onChange.bind(this)}connectedCallback(){const{currentPage:e}=this.dataset;this.currentPage=e,this.addEventListener(PaginationLinkClickEvent.type,this.onChangeBound)}disconnectedCallback(){this.removeEventListener(PaginationLinkClickEvent.type,this.onChangeBound)}get(){return{page:this.currentPage||1}}onChange(e){e.stopPropagation();const{page:t}=e.detail;this.currentPage=t,this.dispatchPaginationChangeEvent()}dispatchPaginationChangeEvent(e){const t=new PaginationChangeEvent({page:e});this.dispatchEvent(t)}}class PaginationLink extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const t=this.getAttribute("href")||"";let i=null;try{i=new URL(t,window.location.origin).searchParams.get("page")}catch{const e=t.split("?")[1]||"";i=new URLSearchParams(e).get("page")}this.dispatchPaginationLinkClickEvent(i)}dispatchPaginationLinkClickEvent(e){const t=new PaginationLinkClickEvent({page:e});this.dispatchEvent(t)}}class Modal extends HTMLElement{constructor(){super(),this.backdropOverlay=null}connectedCallback(){this.classList.add("fixed","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2","z-50","hidden"),this.backdropOverlay=document.querySelector("backdrop-root")}disconnectedCallback(){}open(){this.classList.remove("hidden"),this.backdropOverlay&&this.backdropOverlay.show("modal")}close(){this.classList.add("hidden"),this.backdropOverlay&&this.backdropOverlay.hide("modal")}}function isValidFormValue(e){return null!=e}function serializeFormData(e,t=""){return Object.entries(e).reduce((e,[i,s])=>{if(!isValidFormValue(s))return e;const n=t?`${t}[${i}]`:i;if(s instanceof Set)e[n]=Array.from(s);else if(Array.isArray(s))s.forEach((t,i)=>{if(isValidFormValue(t)){const s=serializeFormData(t,`${n}[${i}]`);Object.assign(e,s)}});else if("object"==typeof s){const t=serializeFormData(s,n);Object.assign(e,t)}else e[n]=String(s);return e},{})}function applySerializedData(e,t){Object.entries(t).forEach(([t,i])=>{e.detail.parameters[t]=i})}function setFormParams(e,t){applySerializedData(e,serializeFormData(t))}function getFormData(e){if(!e)return null;const t=new FormData(e);return Object.fromEntries(t.entries())}function isFormChanged(e,t){if(!e||!t)return!1;const i=getFormData(e),s=Object.keys(i);return s.length!==Object.keys(t).length||s.some(e=>i[e]!==t[e])}function isFormValid(e){if(!e)return!1;for(const t of e.elements)if("validity"in t&&!t.validity.valid)return!1;return!0}class AddressModal extends Modal{constructor(){super(),this.statesByCountry=new Map,this.modalTitle=null,this.form=null,this.updateAddressIdInput=null,this.initialFormData=null,this.submitButton=null,this.countryDropdown=null,this.stateInput=null,this.stateDropdown=null,this.stateOptions=null,this.setAsDefaultCheckbox=null,this.onChangeBound=this.onChange.bind(this),this.closeBound=this.close.bind(this)}connectedCallback(){super.connectedCallback(),this.setElements(),this.addEventListener("input",this.onChangeBound),this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("input",this.onChangeBound),this.removeEventListener("change",this.onChangeBound)}setElements(){this.modalTitle=this.querySelector("address-modal-title"),this.form=this.querySelector("form"),this.updateAddressIdInput=this.querySelector('input[name="update_address_id"]'),this.setAsDefaultCheckbox=this.querySelector('toggle-button[name="address[default]"]'),this.submitButton=this.querySelector("address-modal-submit-button"),this.countryDropdown=this.querySelector("dropdown-menu#address-country-dropdown"),this.stateInput=this.querySelector("input#address-province-input"),this.stateDropdown=this.querySelector("dropdown-menu#address-province-dropdown"),this.stateDropdown&&(this.stateOptions=this.stateDropdown.querySelectorAll("dropdown-option"))}open(e,t,i){super.open(),this.reset(),t&&(this.populate(t,i),this.updateAddressIdInput.value=t),this.initialFormData=getFormData(this.form),this.setTitle(e)}close(){super.close()}getAddressFieldFromElement(e){if(!e.name)return;const t=e.name.match(/address\[(.+?)\]/)?.[1];return t}populate(e,t){const i=document.getElementById(`address-data-${e}`);if(!i)return;const s=JSON.parse(i.textContent);for(const e of this.form.elements){if(!e.name||e.disabled)continue;if("address[default]"===e.name){t&&(e.value=!0,e.setAttribute("disabled",""));continue}const i=this.getAddressFieldFromElement(e);if(!i)continue;const n=s[i];n&&("country"===i?(this.onChangeCountry(n.name),e.value=n.name):e.value=n)}}reset(){this.form.reset(),this.updateAddressIdInput.value=null,this.setAsDefaultCheckbox.removeAttribute("disabled"),this.submitButton.setAttribute("disabled","")}setTitle(e){e&&this.modalTitle&&(this.modalTitle.textContent=e)}getCountry(e){return window.theme.geo.countries.find(t=>t.id===e)}getCountryStates(e){if(this.statesByCountry.has(e))return this.statesByCountry.get(e);const t=window.theme.geo.states.filter(t=>t.country===e),i=new Map;return t.forEach(e=>{i.set(e.id,e)}),this.statesByCountry.set(e,i),i}showStateInput(){this.stateInput.disabled=!1,this.stateInput.value="",this.stateInput.classList.remove("hidden"),this.stateDropdown.disabled=!0,this.stateDropdown.removeAttribute("required"),this.stateDropdown.classList.add("hidden")}showStateDropdown(){this.stateInput.disabled=!0,this.stateInput.classList.add("hidden"),this.stateDropdown.disabled=!1,this.stateDropdown.setAttribute("required",""),this.stateDropdown.classList.remove("hidden")}showCountyStates(e){const t=this.getCountryStates(e);if(!(t.size>0))return this.showStateInput();this.showStateDropdown();let i=null;this.stateOptions.forEach(e=>{const s=e.getAttribute("value");t.has(s)?(e.classList.remove("hidden"),i||(i=s)):e.classList.add("hidden")}),i&&(this.stateDropdown.value=i)}onChange(e){e.stopPropagation();"address-country"===e.target.id&&this.onChangeCountry(e.detail.value),isFormChanged(this.form,this.initialFormData)&&isFormValid(this.form)?this.submitButton.removeAttribute("disabled"):this.submitButton.setAttribute("disabled","")}onChangeCountry(e){this.getCountry(e)&&this.showCountyStates(e)}}class AddressAddButton extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const{modalTitle:t}=this.dataset,i=document.querySelector("address-modal");i&&i.open(t)}}class AddressEditButton extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const{modalTitle:t,addressId:i,isDefaultAddress:s}=this.dataset,n="true"===s,r=document.querySelector("address-modal");r&&r.open(t,i,n)}}class AddressModalCloseButton extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const t=this.closest("address-modal");t&&t.close()}}class AddressModalSubmitButton extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const t=this.closest("address-modal");t&&(this.dispatchEvent(new AddressModalSubmitEvent),t.close())}}class AddressRemoveModal extends Modal{constructor(){super(),this.deleteAddressIdInput=null}connectedCallback(){super.connectedCallback(),this.deleteAddressIdInput=this.querySelector('input[name="delete_address_id"]')}disconnectedCallback(){super.disconnectedCallback()}open(e){super.open(),this.deleteAddressIdInput.value=e}close(){super.close()}}class AddressRemoveButton extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const{addressId:t}=this.dataset,i=document.querySelector("address-remove-modal");i&&i.open(t)}}class AddressRemoveModalCloseButton extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const t=this.closest("address-remove-modal");t&&t.close()}}class AddressRemoveModalSubmitButton extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const t=this.closest("address-remove-modal");t&&(this.dispatchEvent(new AddressRemoveModalSubmitEvent),t.close())}}class FilterInputBoolean extends HTMLElement{constructor(){super(),this.onChangeBound=this.onChange.bind(this)}connectedCallback(){this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound)}get(){const e=this.querySelector("toggle-button");if(!e)return{};const{name:t}=this.dataset,{value:i}=e.get();return i?{[t]:i}:{}}onChange(e){e.stopPropagation();const t=new FilterInputChangeEvent;this.dispatchEvent(t)}}class FilterInputList extends HTMLElement{constructor(){super(),this.onChangeBound=this.onChange.bind(this)}connectedCallback(){this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound)}get(){const{name:e}=this.dataset,t=this.querySelectorAll("toggle-button");return Array.from(t).reduce((t,i)=>{const{value:s}=i.get();return s&&(t[e]||=new Set,t[e].add(s)),t},{})}onChange(e){e.stopPropagation();const t=new FilterInputChangeEvent;this.dispatchEvent(t)}}class FilterInputPriceRange extends HTMLElement{constructor(){super(),this.onChangeBound=this.onChange.bind(this)}connectedCallback(){this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound)}get(){const e=this.querySelector("range-slider");if(!e)return{};const{name:t}=this.dataset,{from:i,to:s,min:n,max:r}=e.get();return i!==n||s!==r?{[`${t}[gte]`]:i,[`${t}[lte]`]:s}:{}}onChange(e){e.stopPropagation();const t=new FilterInputChangeEvent;this.dispatchEvent(t)}}class FiltersClear extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const t=new FiltersClearEvent;this.dispatchEvent(t)}}class MegaMenuManager{constructor(){this.showMegaMenu=this.showMegaMenu.bind(this),this.hideMegaMenu=this.hideMegaMenu.bind(this),this.keepMenuVisible=this.keepMenuVisible.bind(this),this.init()}init(){this.setupEventListeners(),window.megaMenuManager=this}setupEventListeners(){document.querySelectorAll("a[data-mega-menu]").forEach(e=>{const t=e.getAttribute("data-mega-menu"),i=document.getElementById(t);i&&(e.addEventListener("mouseenter",()=>{i.classList.add("active")}),e.addEventListener("mouseleave",()=>{setTimeout(()=>{i.matches(":hover")||e.matches(":hover")||i.classList.remove("active")},50)}),i.addEventListener("mouseenter",()=>{i.classList.add("active")}),i.addEventListener("mouseleave",()=>{setTimeout(()=>{i.matches(":hover")||e.matches(":hover")||i.classList.remove("active")},50)}))})}showMegaMenu(e){const t=document.getElementById(e);t&&t.classList.add("active")}keepMenuVisible(e){const t=document.getElementById(e);t&&t.classList.add("active")}hideMegaMenu(e){const t=document.getElementById(e);t&&setTimeout(()=>{const i=document.querySelector(`a[data-mega-menu="${e}"]`);t.matches(":hover")||i&&i.matches(":hover")||t.classList.remove("active")},50)}}new MegaMenuManager;class MegaMenu extends HTMLElement{connectedCallback(){window.megaMenuManager&&window.megaMenuManager.init()}}class CascadingMenuManager{constructor(){this.showMenu=this.showMenu.bind(this),this.hideMenu=this.hideMenu.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.currentHoveredItem=null,this.activeSubmenu=null,this.hoverIntentInstances=new Map,this.menuItems=new Map,this.initializedItems=new Set,this.menuCheckStartTime=Date.now(),this.isInitialized=!1,window.cascadingMenuManager=this,this.checkForMenuItems(),"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",()=>{this.isInitialized||this.checkForMenuItems()})}checkForMenuItems(){document.querySelectorAll(".cascading-menu-item.has-children").length>0?(this.setupEventListeners(),this.setupClickOutsideHandler(),this.isInitialized=!0):Date.now()-this.menuCheckStartTime<1e4&&setTimeout(()=>this.checkForMenuItems(),100)}setupEventListeners(){const e=document.querySelectorAll(".cascading-menu-item.has-children");"function"==typeof window.hoverintent?e.forEach(e=>{if(this.initializedItems.has(e))return;const t=e.querySelector(".cascading-submenu");if(!t)return;this.menuItems.set(e,t),t.classList.remove("show");const i=window.hoverintent(e,function(i){this.activeSubmenu&&this.activeSubmenu!==t&&this.hideMenu(this.activeSubmenu),this.showMenu(t),this.activeSubmenu=t,this.currentHoveredItem=e}.bind(this),function(e){this.activeSubmenu!==t||e.relatedTarget&&(e.relatedTarget.closest(".cascading-submenu")||e.relatedTarget.closest(".cascading-menu-item.has-children"))||(this.hideMenu(t),this.activeSubmenu=null,this.currentHoveredItem=null)}.bind(this)).options({sensitivity:4,interval:50,timeout:200});this.hoverIntentInstances.set(e,i),this.initializedItems.add(e)}):setTimeout(()=>this.checkForMenuItems(),100)}setupClickOutsideHandler(){document.addEventListener("click",this.handleClickOutside)}handleClickOutside(e){document.querySelectorAll(".cascading-submenu").forEach(t=>{t.contains(e.target)||(this.hideMenu(t),this.activeSubmenu=null,this.currentHoveredItem=null)})}showMenu(e){e&&e.classList.add("show")}hideMenu(e){e&&e.classList.remove("show")}hideAllSubmenus(){this.menuItems.forEach(e=>{this.hideMenu(e)}),this.activeSubmenu=null,this.currentHoveredItem=null}destroy(){document.removeEventListener("click",this.handleClickOutside)}isMovingToSubmenu(e){const t=e.closest(".cascading-submenu"),i=e.closest(".cascading-menu-item.has-children");return t?this.activeSubmenu===t:!!i&&(this.currentHoveredItem===i||this.activeSubmenu&&this.menuItems.get(i)===this.activeSubmenu)}}new CascadingMenuManager;class CascadingMenu extends HTMLElement{connectedCallback(){window.cascadingMenuManager&&window.cascadingMenuManager.checkForMenuItems()}disconnectedCallback(){window.cascadingMenuManager&&window.cascadingMenuManager.destroy()}}const SIDES=Object.freeze({RIGHT:"right",LEFT:"left",BOTTOM:"bottom"}),DEFAULT_SIDE=SIDES.RIGHT;class DrawerPanel extends HTMLElement{constructor(){super(),this.side=DEFAULT_SIDE,this.backdropOverlay=null,this.touchStartX=0,this.touchStartY=0,this.touchEndX=0,this.touchEndY=0,this.swipeThreshold=100,this.openBound=this.open.bind(this),this.closeBound=this.close.bind(this),this.onDocumentKeyDownBound=this.onDocumentKeyDown.bind(this),this.handleTouchStartBound=this.handleTouchStart.bind(this),this.handleTouchMoveBound=this.handleTouchMove.bind(this),this.handleTouchEndBound=this.handleTouchEnd.bind(this)}connectedCallback(){const{side:e=DEFAULT_SIDE}=this.dataset;this.side=e,this.setAttribute("role","dialog"),this.setAttribute("aria-hidden","true"),this.setAttribute("aria-modal","true"),this.setAttribute("aria-tabindex","-1"),this.toggleAttribute("inert",!0),this.classList.add("fixed","z-[5001]","h-screen","overflow-y-auto","transition-transform","duration-300"),this.isRightDrawer()?this.classList.add("top-0","right-0"):this.isLeftDrawer()?this.classList.add("top-0","left-0"):this.isBottomDrawer()&&this.classList.add("bottom-0","left-0"),this.backdropOverlay=document.querySelector("backdrop-root"),this.backdropOverlay&&this.backdropOverlay.addEventListener("click",this.closeBound),document.addEventListener("keydown",this.onDocumentKeyDownBound),this.addEventListener("touchstart",this.handleTouchStartBound),this.addEventListener("touchmove",this.handleTouchMoveBound),this.addEventListener("touchend",this.handleTouchEndBound)}disconnectedCallback(){this.backdropOverlay&&this.backdropOverlay.removeEventListener("click",this.closeBound),document.removeEventListener("keydown",this.onDocumentKeyDownBound),this.removeEventListener("touchstart",this.handleTouchStartBound),this.removeEventListener("touchmove",this.handleTouchMoveBound),this.removeEventListener("touchend",this.handleTouchEndBound)}isRightDrawer(){return this.side===SIDES.RIGHT}isLeftDrawer(){return this.side===SIDES.LEFT}isBottomDrawer(){return this.side===SIDES.BOTTOM}getTranslateClass(){switch(this.side){case SIDES.LEFT:return"-translate-x-full";case SIDES.BOTTOM:return"translate-y-full";case SIDES.RIGHT:default:return"translate-x-full"}}toggle(){return"true"===this.getAttribute("aria-hidden").trim()?this.open():this.close()}open(){const e=this.getTranslateClass();this.setAttribute("aria-hidden","false"),this.removeAttribute("inert"),this.classList.remove(e),this.backdropOverlay&&this.backdropOverlay.show("drawer-panel")}close(){const e=this.getTranslateClass();this.setAttribute("aria-hidden","true"),this.toggleAttribute("inert",!0),this.classList.add(e),this.backdropOverlay&&this.backdropOverlay.hide("drawer-panel")}onDocumentKeyDown(e){"Escape"===e.key&&"false"===this.getAttribute("aria-hidden")&&this.closeBound()}handleTouchStart(e){this.isBottomDrawer()?this.touchStartY=e.touches[0].clientY:this.touchStartX=e.touches[0].clientX}handleTouchMove(e){if("true"!==this.getAttribute("aria-hidden"))if(this.isBottomDrawer()){const t=e.touches[0].clientY,i=this.touchStartY-t;i<0&&(e.preventDefault(),this.style.transform=`translateY(${Math.abs(i)}px)`)}else{const t=this.isRightDrawer(),i=e.touches[0].clientX,s=this.touchStartX-i;if(t&&s<0||!t&&s>0){e.preventDefault();const i=t?Math.abs(s):-s;this.style.transform=`translateX(${i}px)`}}}handleTouchEnd(e){if("true"!==this.getAttribute("aria-hidden"))if(this.style.transform="",this.isBottomDrawer()){const t=e.changedTouches[0].clientY;-(this.touchStartY-t)>this.swipeThreshold&&this.closeBound()}else{const t=this.isRightDrawer(),i=e.changedTouches[0].clientX,s=this.touchStartX-i;(t&&s<-this.swipeThreshold||!t&&s>this.swipeThreshold)&&this.closeBound()}}}class MenuDrawer extends DrawerPanel{constructor(){super(),this.trigger=null,this.menuStack=[],this.openBound=this.open.bind(this),this.closeBound=this.close.bind(this),this.handleSubmenuTriggerBound=this.handleSubmenuTrigger.bind(this),this.handleBackButtonBound=this.handleBackButton.bind(this)}connectedCallback(){super.connectedCallback(),this.trigger=document.querySelector("[data-drawer-menu-trigger]"),this.closeButton=this.querySelector("[data-drawer-close]"),this.menuContent=this.querySelector("[data-menu-content]"),this.menuTitle=this.querySelector("[data-header] h2"),this.backButton=this.querySelector("[data-back-button]"),this.trigger&&this.trigger.addEventListener("click",this.openBound),this.closeButton&&this.closeButton.addEventListener("click",this.closeBound),this.backButton&&this.backButton.addEventListener("click",this.handleBackButtonBound),this.setupSubmenuListeners()}disconnectedCallback(){super.disconnectedCallback(),this.trigger&&this.trigger.removeEventListener("click",this.openBound),this.closeButton&&this.closeButton.removeEventListener("click",this.closeBound),this.backButton&&this.backButton.removeEventListener("click",this.handleBackButtonBound),this.removeSubmenuListeners()}setupSubmenuListeners(){this.querySelectorAll("[data-submenu-trigger]").forEach(e=>{e.addEventListener("click",this.handleSubmenuTriggerBound)})}removeSubmenuListeners(){this.querySelectorAll("[data-submenu-trigger]").forEach(e=>{e.removeEventListener("click",this.handleSubmenuTriggerBound)})}handleSubmenuTrigger(e){const t=e.currentTarget.closest("li").querySelector("[data-submenu-content]");if(!t||!this.menuContent)return;const i=this.menuContent.innerHTML;this.menuStack.push({content:i,title:this.menuTitle.textContent});const s=this.querySelector("[data-header-left]"),n=s.querySelector("h2"),r=s.querySelector("[data-back-button]");s&&n&&r&&(n.classList.add("hidden"),r.classList.remove("hidden"));const a=t.content.cloneNode(!0);this.menuContent.innerHTML="",this.menuContent.appendChild(a),this.setupSubmenuListeners()}handleBackButton(){if(!this.menuStack.length)return;const e=this.menuStack.pop(),t=this.querySelector("[data-header-left]"),i=t.querySelector("h2"),s=t.querySelector("[data-back-button]");t&&i&&s&&(0===this.menuStack.length?(i.classList.remove("hidden"),s.classList.add("hidden")):(i.classList.add("hidden"),s.classList.remove("hidden"))),this.menuContent.innerHTML=e.content,this.setupSubmenuListeners()}open(){super.open()}close(){super.close()}}class EventBus{listeners=new Map;on(e,t){let i=this.listeners.get(e);return i||(i=new Set,this.listeners.set(e,i)),i.add(t),()=>{i.delete(t)}}off(e,t){let i=this.listeners.get(e);i&&i.delete(t)}emit(e,t){const i=this.listeners.get(e);if(i)for(const e of i)e(t)}}var eventBus=new EventBus;const routes={addToCart:"/cart/add",updateCart:"/cart/update",getCart:"/cart",clearCart:"/cart/clear"},CartAPI={async addToCart(e,t,i,s=1){try{const n={product_id:e,quantity:s,options:t};i&&i.type&&"standard"!==i.type&&(n.purchase_option=i);const r=await fetch(routes.addToCart,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(n)});if(!r.ok)throw new Error("Network response was not ok");const a=await r.json();eventBus.emit("cart-item-add",a);const o=await this.getCartAfterWrite(),l=o&&"number"==typeof o.item_quantity&&o.item_quantity>0?o.item_quantity:null,d=a&&"number"==typeof a.quantity?a.quantity:1,c=l??d;if(null===l&&window.Sentry)try{window.Sentry.captureMessage("cart_after_write_empty_post_addToCart_using_fallback_qty",{level:"info",tags:{component:"cart-api",issue:"session-rotation-race-exhausted"},extra:{fallbackQty:d}})}catch(e){}return eventBus.emit("cart-item-count-update",c),window.writeCartCount&&window.writeCartCount(c),window.cartJitPrefetch&&window.cartJitPrefetch(),a}catch(e){throw console.error("Error adding product to cart:",e),e}},async getCart(){try{const e=await fetch(routes.getCart,{method:"GET",headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}});if(!e.ok)throw new Error("Network response was not ok");const t=await e.json();return console.log("Cart:",t),t}catch(e){throw console.error("Error getting cart:",e),e}},async getCartAfterWrite(){const e=[150,300];let t=null,i=null;try{if(t=await this.getCart(),t&&Array.isArray(t.items)&&t.items.length>0)return t}catch(e){i=e}let s=1;for(const n of e){console.info("[cart-after-write] "+(i?"threw '"+i.message+"'":"empty")+" on attempt "+s+", retrying in "+n+"ms"),await new Promise(e=>setTimeout(e,n)),s++;try{t=await this.getCart(),i=null}catch(e){i=e;continue}if(t&&Array.isArray(t.items)&&t.items.length>0)return window.swCapture&&window.swCapture("cart retry rescued empty-after-add",{level:"info",tags:{component:"cart-api",issue:"session-rotation-race"},extra:{attemptsUsed:s,totalDelayMs:e.slice(0,s-1).reduce((e,t)=>e+t,0)}}),t}if(i)throw i;return t},async clearCart(){try{const e=await fetch(routes.clearCart,{method:"POST",headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}});if(!e.ok)throw new Error("Network response was not ok");const t=await e.json();return console.log("Cart cleared:",t),window.writeCartCount&&window.writeCartCount(0),window.cartJitPrefetch&&window.cartJitPrefetch(),t}catch(e){}},async updateCart(e){eventBus.emit("cart-update-before",e);try{const t=await fetch(routes.updateCart,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(e)});if(!t.ok)throw new Error("Network response was not ok");eventBus.emit("cart-update-after",e);const i=await t.json();return eventBus.emit("cart-item-count-update",i.item_quantity),window.writeCartCount&&window.writeCartCount(i.item_quantity),window.cartJitPrefetch&&window.cartJitPrefetch(),console.log("Cart updated:",i),i}catch(e){throw console.error("Error updating cart:",e),e}}},PAGE_ID="cart";class Cart extends HTMLElement{constructor(){super(),this.subscriptions=[],this.onChangeItemQuantityBound=this.onChangeItemQuantity.bind(this),this.onRemoveItemBound=this.onRemoveItem.bind(this),this.onBeforeUpdateCartBound=this.onBeforeUpdateCart.bind(this),this.onAfterUpdateCartBound=this.onAfterUpdateCart.bind(this)}connectedCallback(){this.addEventListener(CartItemQuantityChangeEvent.type,this.onChangeItemQuantityBound),this.addEventListener(CartItemRemoveEvent.type,this.onRemoveItemBound),this.subscriptions.push(eventBus.on("cart-update-before",this.onBeforeUpdateCartBound),eventBus.on("cart-update-after",this.onAfterUpdateCartBound))}disconnectedCallback(){this.removeEventListener(CartItemQuantityChangeEvent.type,this.onChangeItemQuantityBound),this.removeEventListener(CartItemRemoveEvent.type,this.onRemoveItemBound),this.subscriptions.forEach(e=>e()),this.subscriptions=[]}disableItem(e){const t=this.querySelector(`cart-item[data-index="${e}"]`);t&&t.classList.add("disabled")}onBeforeUpdateCart(e){const{line:t}=e;void 0!==t&&this.disableItem(t)}onAfterUpdateCart(e){this.updateCartContent()}async onChangeItemQuantity(e){e.stopPropagation();const{line:t,quantity:i}=e.detail;await CartAPI.updateCart({line:t,quantity:i})}async onRemoveItem(e){e.stopPropagation();const{line:t}=e.detail;await CartAPI.updateCart({line:t,quantity:0})}async updateCartContent(){const e=`${PAGE_ID}__main`,t=await fetch(`/${PAGE_ID}?sections=${e}`);if(!t.ok)throw new Error("Failed to fetch cart");const i=await t.json(),s=(new DOMParser).parseFromString(i[e],"text/html").querySelector("cart-root");if(!s)throw new Error("No cart content found to update");this.innerHTML=s.innerHTML}}class CartDrawer extends DrawerPanel{constructor(){super(),this.trigger=null,this.drawerTriggers=[],this.subscriptions=[],this.openBound=this.open.bind(this),this.closeBound=this.close.bind(this),this.onAddItemBound=this.onAddItem.bind(this),this.onChangeItemQuantityBound=this.onChangeItemQuantity.bind(this),this.onRemoveItemBound=this.onRemoveItem.bind(this),this.onBeforeUpdateCartBound=this.onBeforeUpdateCart.bind(this),this.onAfterUpdateCartBound=this.onAfterUpdateCart.bind(this)}async connectedCallback(){super.connectedCallback(),this.trigger=document.querySelector("cart-trigger"),this.trigger&&this.trigger.addEventListener("click",this.openBound),this.connectDrawerTriggers(),this.addEventListener(CartItemQuantityChangeEvent.type,this.onChangeItemQuantityBound),this.addEventListener(CartItemRemoveEvent.type,this.onRemoveItemBound),this.subscriptions.push(eventBus.on("cart-item-add",this.onAddItemBound),eventBus.on("cart-update-before",this.onBeforeUpdateCartBound),eventBus.on("cart-update-after",this.onAfterUpdateCartBound)),"undefined"!=typeof document&&document.cookie.includes("swell-data")&&await this.safeUpdateCartDrawerContent("hydration-fetch-error")}disconnectedCallback(){super.disconnectedCallback(),this.trigger&&this.trigger.removeEventListener("click",this.openBound),this.disconnectDrawerTriggers(),this.removeEventListener(CartItemQuantityChangeEvent.type,this.onChangeItemQuantityBound),this.removeEventListener(CartItemRemoveEvent.type,this.onRemoveItemBound),this.subscriptions.forEach(e=>e()),this.subscriptions=[]}connectDrawerTriggers(){this.drawerTriggers=document.querySelectorAll("cart-drawer-trigger"),this.drawerTriggers.forEach(e=>{e.addEventListener("click",this.closeBound)})}disconnectDrawerTriggers(){this.drawerTriggers.forEach(e=>{e.removeEventListener("click",this.closeBound)})}open(){super.open()}close(){super.close()}disableItem(e){const t=this.querySelector(`cart-item[data-index="${e}"]`);t&&t.classList.add("disabled")}onBeforeUpdateCart(e){const{line:t}=e;void 0!==t&&this.disableItem(t)}onAfterUpdateCart(){this.safeUpdateCartDrawerContent("after-update-fetch-error")}async onAddItem(){await this.safeUpdateCartDrawerContent("add-item-fetch-error"),this.open()}async onChangeItemQuantity(e){e.stopPropagation();const{line:t,quantity:i}=e.detail;await CartAPI.updateCart({line:t,quantity:i})}async onRemoveItem(e){e.stopPropagation();const{line:t}=e.detail;await CartAPI.updateCart({line:t,quantity:0})}async safeUpdateCartDrawerContent(e){try{await this.updateCartDrawerContent()}catch(t){const i=String(t&&(t.message||t))||"";!(t&&"AbortError"===t.name||/Failed to fetch|Load failed|Network request failed/i.test(i))&&window.swCapture&&window.swCapture("cart-drawer update failed",{level:"warning",tags:{component:"cart-drawer",issue:e}})}}async updateCartDrawerContent(){const e=await fetch("/cart?sections=cart-drawer");if(!e.ok)throw new Error("Failed to fetch cart-drawer");const t=await e.json(),i=(new DOMParser).parseFromString(t["cart-drawer"],"text/html").querySelector("cart-drawer-root");if(!i)throw new Error("Unable to update cart drawer content");try{!i.querySelector("cart-item, [data-index]")&&window.Sentry&&CartAPI.getCart().then(function(e){e&&e.items&&e.items.length>0&&window.Sentry.captureMessage("cart-drawer rendered empty despite cart having "+e.items.length+" items",{level:"error",tags:{component:"cart-drawer",issue:"empty-after-add"},extra:{sectionResponseBytes:(t["cart-drawer"]||"").length,cartItemCount:e.items.length,cartItemQuantity:e.item_quantity,cartSubtotal:e.sub_total}})}).catch(function(){})}catch(e){}this.innerHTML=i.innerHTML,this.disconnectDrawerTriggers(),this.connectDrawerTriggers()}}class CartCount extends HTMLElement{constructor(){super(),this.unsubscribeItemCountUpdate=null,this.onUpdateItemCountBound=this.onUpdateItemCount.bind(this)}async connectedCallback(){if(this.unsubscribeItemCountUpdate=eventBus.on("cart-item-count-update",this.onUpdateItemCountBound),"undefined"!=typeof document&&document.cookie.includes("swell-data"))try{const e=await CartAPI.getCart();e&&"number"==typeof e.item_quantity&&this.onUpdateItemCount(e.item_quantity)}catch(e){const t=String(e&&(e.message||e))||"";!(e&&"AbortError"===e.name||/Failed to fetch|Load failed|Network request failed/i.test(t))&&window.swCapture&&window.swCapture("cart-count hydration failed",{level:"warning",tags:{component:"cart-count",issue:"hydration-fetch-error"}})}}disconnectedCallback(){this.unsubscribeItemCountUpdate&&this.unsubscribeItemCountUpdate()}onUpdateItemCount(e){this.textContent=e}}class CartItemQuantity extends HTMLElement{constructor(){super(),this.onChangeBound=this.onChange.bind(this)}connectedCallback(){this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound)}get(){const e=this.querySelector("quantity-selector");return e?.get()||1}onChange(e){e.stopPropagation(),this.dispatchChangeEvent()}dispatchChangeEvent(){const e=new CartItemQuantityChangeEvent({line:this.dataset.index,quantity:this.get()});this.dispatchEvent(e)}}class CartItemRemove extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation(),this.dispatchClickEvent()}dispatchClickEvent(){const e=new CartItemRemoveEvent({line:this.dataset.index});this.dispatchEvent(e)}}class ProductQuantity extends HTMLElement{constructor(){super(),this.onChangeBound=this.onChange.bind(this)}connectedCallback(){this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound)}get(){const e=this.querySelector("quantity-selector");return e?.get()||1}onChange(e){e.stopPropagation(),this.dispatchChangeEvent()}dispatchChangeEvent(){const e=new ProductQuantityChangeEvent({value:this.get()});this.dispatchEvent(e)}}class ProductOptions extends HTMLElement{get(e=!0){const t=this.querySelectorAll("product-option-select"),i=this.querySelectorAll("product-option-toggle"),s=this.querySelectorAll("product-option-text"),n=this.querySelectorAll("product-option-giftcard");return[...Array.from(t),...Array.from(i),...Array.from(s),...Array.from(n)].reduce((t,i)=>{const s=i.get(),n=e?i.validate():i.valid();return Array.isArray(s)?t.options.push(...s):t.options.push(s),n||(t.valid=!1),t},{options:[],valid:!0})}getValueIds(){const e=this.querySelectorAll("product-option-select"),t=this.querySelectorAll("product-option-toggle"),i=this.querySelectorAll("product-option-giftcard");return[...Array.from(e),...Array.from(t),...Array.from(i)].reduce((e,t)=>(t.valueId&&e.push(t.valueId),e),[])}}class ProductOptionSelect extends HTMLElement{constructor(){super(),this.optionId=null,this.value="",this.valueId=null,this.error=null,this.onChangeBound=this.onChange.bind(this)}connectedCallback(){this.optionId=this.dataset.optionId,this.error=this.querySelector("option-error");const e=this.querySelector("[selected]");e&&(this.value=e.getAttribute("value"),this.valueId=e.dataset.valueId),this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound)}get(){return{id:this.optionId,value:this.value,value_id:this.valueId}}valid(){return Boolean(this.value)&&Boolean(this.valueId)}validate(){return this.valid()?(this.hideError(),!0):(this.showError(),!1)}showError(){this.error&&this.error.classList.remove("hidden")}hideError(){this.error&&this.error.classList.add("hidden")}onChange(e){e.stopPropagation();const{value:t,dataset:{valueId:i}}=e.detail;this.value=t,this.valueId=i,this.dispatchOptionChangeEvent()}dispatchOptionChangeEvent(){const e=this.get(),t=new ProductOptionChangeEvent(e);this.dispatchEvent(t)}}class ProductOptionToggle extends HTMLElement{constructor(){super(),this.optionId=null,this.value="",this.valueId=null,this.onChangeBound=this.onChange.bind(this)}connectedCallback(){this.optionId=this.dataset.optionId;const e=this.querySelector("toggle-button[aria-checked='true']");e&&(this.value=e.getAttribute("value"),this.valueId=e.dataset.valueId),this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound)}get(){return{id:this.optionId,value:this.value,value_id:this.valueId}}valid(){return!0}validate(){return!0}onChange(e){e.stopPropagation();const{value:t,dataset:{valueId:i}}=e.detail;this.value=t||"",this.valueId=t?i:null,this.dispatchOptionChangeEvent()}dispatchOptionChangeEvent(){const e=this.get(),t=new ProductOptionChangeEvent(e);this.dispatchEvent(t)}}class ProductOptionText extends HTMLElement{constructor(){super(),this.optionId=null,this.value="",this.required=!1,this.error=null,this.onChangeBound=this.onChange.bind(this)}connectedCallback(){this.optionId=this.dataset.optionId,this.required=this.hasAttribute("required"),this.error=this.querySelector("option-error"),this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound)}get(){return{id:this.optionId,value:this.value}}valid(){return!this.required||Boolean(this.value)}validate(){return this.valid()?(this.hideError(),!0):(this.showError(),!1)}showError(){this.error&&this.error.classList.remove("hidden")}hideError(){this.error&&this.error.classList.add("hidden")}onChange(e){e.stopPropagation();const{value:t}=e.target;this.value=t.trim(),this.validate()}}class ProductOptionGiftcard extends HTMLElement{constructor(){super(),this.optionId=null,this.name="",this.value="",this.valueId=null,this.error=null,this.send=null,this.sendFields=null,this.sendEmail=null,this.sendNote=null,this.onChangeBound=this.onChange.bind(this),this.onToggleGiftcardSendBound=this.onToggleGiftcardSend.bind(this)}connectedCallback(){const{optionId:e,optionName:t}=this.dataset;this.optionId=e,this.name=t,this.send=this.querySelector("giftcard-send"),this.sendFields=this.querySelector("giftcard-send-fields"),this.sendEmail=this.querySelector("giftcard-send-email"),this.sendNote=this.querySelector("giftcard-send-note"),this.error=this.querySelector("option-error");const i=this.querySelector("[selected]");i&&(this.value=i.getAttribute("value"),this.valueId=i.dataset.valueId),this.addEventListener("change",this.onChangeBound),this.addEventListener(ProductOptionGiftcardSendToggleEvent.type,this.onToggleGiftcardSendBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound),this.removeEventListener(ProductOptionGiftcardSendToggleEvent.type,this.onToggleGiftcardSendBound)}get(){return[{id:this.optionId,name:this.name,value:this.value,value_id:this.valueId},...this.getSendValues()]}valid(){return this.isOptionValueValid()&&this.areSendValuesValid()}validate(){return this.valid()?(this.hideError(),!0):(this.isOptionValueValid()||this.showError(),this.validateSendValues(),!1)}isSendEnabled(){return Boolean(this.send?.get())}getSendValues(){if(!this.isSendEnabled())return[];const e=[];if(this.sendEmail){const t=this.sendEmail.get();e.push({id:"send_email",value:t})}if(this.sendNote){const t=this.sendNote.get();e.push({id:"send_note",value:t})}return e}isOptionValueValid(){return Boolean(this.value)&&Boolean(this.valueId)}areSendValuesValid(){return!this.isSendEnabled()||Boolean(this.sendEmail?.valid())}validateSendValues(){this.isSendEnabled()&&this.sendEmail?.validate()}showError(){this.error&&this.error.classList.remove("hidden")}hideError(){this.error&&this.error.classList.add("hidden")}onToggleGiftcardSend(e){if(e.stopPropagation(),!this.sendFields||!this.send)return;const{value:t}=e.detail;if(this.send.classList.add("pointer-events-none"),t){this.sendFields.classList.remove("hidden");const e=this.sendFields.scrollHeight;this.sendFields.style.height="0px",requestAnimationFrame(()=>{this.sendFields.style.height=`${e}px`}),this.sendFields.addEventListener("transitionend",()=>{this.sendFields.style.height="auto",this.send.classList.remove("pointer-events-none")},{once:!0})}else{this.sendEmail?.clear(),this.sendNote?.clear();const e=this.sendFields.scrollHeight;this.sendFields.style.height=`${e}px`,requestAnimationFrame(()=>{this.sendFields.style.height="0px"}),this.sendFields.addEventListener("transitionend",()=>{this.sendFields.classList.add("hidden"),this.send.classList.remove("pointer-events-none")},{once:!0})}}onChange(e){if(e.stopPropagation(),"giftcard-options-dropdown"!==e.detail?.id)return;const{value:t,dataset:{valueId:i}}=e.detail;this.value=t,this.valueId=i,this.dispatchOptionChangeEvent()}dispatchOptionChangeEvent(){const e=this.get(),t=new ProductOptionChangeEvent(e);this.dispatchEvent(t)}}class GiftcardSend extends HTMLElement{constructor(){super(),this.value=!1,this.onChangeBound=this.onChange.bind(this)}connectedCallback(){this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound)}get(){return this.value}onChange(e){e.stopPropagation();const{value:t}=e.detail;this.value=Boolean(t),this.dispatchGiftcardSendToggleEvent()}dispatchGiftcardSendToggleEvent(){const e=new ProductOptionGiftcardSendToggleEvent({value:this.get()});this.dispatchEvent(e)}}class GiftcardSendEmail extends HTMLElement{constructor(){super(),this.input=null,this.error=null,this.onChangeBound=this.onChange.bind(this)}connectedCallback(){this.input=this.querySelector('input[type="email"]'),this.error=this.querySelector("giftcard-send-email-error"),this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound)}get(){return this.input?.value}clear(){this.input&&(this.input.value="",this.hideError())}valid(){return this.get()&&this.input.validity.valid}validate(){return this.valid()?(this.hideError(),!0):(this.showError(),!1)}showError(){this.error&&this.error.classList.remove("hidden")}hideError(){this.error&&this.error.classList.add("hidden")}onChange(e){e.stopPropagation(),this.validate()}}class GiftcardSendNote extends HTMLElement{constructor(){super(),this.input=null,this.sendNoteCount=null,this.onChangeBound=this.onChange.bind(this)}connectedCallback(){this.input=this.querySelector("textarea"),this.sendNoteCount=this.querySelector("giftcard-send-note-count"),this.addEventListener("input",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("input",this.onChangeBound)}get(){return this.input?.value}clear(){this.input&&(this.input.value="",this.updateSendNoteCount(""))}updateSendNoteCount(e){this.sendNoteCount&&this.sendNoteCount.update(e)}onChange(e){e.stopPropagation();const t=this.get();this.updateSendNoteCount(t)}}class GiftcardSendNoteCount extends HTMLElement{update(e){this.textContent=e.length}}const DEFAULT_PURCHASE_OPTION=Object.freeze({type:"standard"});class ProductPurchaseOptions extends HTMLElement{get(){const e=this.getSelected();return e?.get()||DEFAULT_PURCHASE_OPTION}getSelected(){return[this.querySelector("product-purchase-option-standard"),this.querySelector("product-purchase-option-subscription")].find(e=>e?.hasAttribute("selected"))}}class ProductPurchaseOptionStandard extends HTMLElement{constructor(){super(),this.type="standard",this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}get(){return{type:this.type}}onClick(e){e.stopPropagation(),this.hasAttribute("selected")||this.dispatchPurchaseOptionChangeEvent()}dispatchPurchaseOptionChangeEvent(){const e=this.get(),t=new ProductPurchaseOptionChangeEvent(e);this.dispatchEvent(t)}}class ProductPurchaseOptionSubscription extends HTMLElement{constructor(){super(),this.type="subscription",this.planId=null,this.onChangeBound=this.onChange.bind(this)}connectedCallback(){const e=this.querySelector("[selected]");e&&(this.planId=e.getAttribute("value")),this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound)}get(){return{type:this.type,plan_id:this.planId}}onChange(e){e.stopPropagation();const{value:t}=e.detail;this.planId=t,this.dispatchPurchaseOptionChangeEvent()}dispatchPurchaseOptionChangeEvent(){const e=this.get(),t=new ProductPurchaseOptionChangeEvent(e);this.dispatchEvent(t)}}class ProductSection extends HTMLElement{constructor(){super(),this.buyButton=null,this.onChangeProductBound=this.onChangeProduct.bind(this),this.onAddItemBound=this.onAddItem.bind(this)}connectedCallback(){this.addEventListener("htmx:configRequest",this.onChangeProductBound),this.buyButton=this.querySelector("button#buy-button"),this.buyButton&&this.buyButton.addEventListener("click",this.onAddItemBound)}disconnectedCallback(){this.removeEventListener("htmx:configRequest",this.onChangeProductBound),this.buyButton&&this.buyButton.removeEventListener("click",this.onAddItemBound)}onChangeProduct(e){setFormParams(e,this.getData(e,!1))}getData(e,t=!0){const{options:i,option_values:s,selected_option_value:n}=this.getOptions(e,t)||{};return{options:i,option_values:s,selected_option_value:n,purchase_option:this.getPurchaseOption(e),quantity:this.getQuantity(e)}}getQuantity(e){const{triggeringEvent:t}=e.detail;if(t instanceof ProductQuantityChangeEvent)return t.detail.value;const i=this.querySelector("product-quantity");return i?.get()||1}getOptions(e,t=!0){const i=this.querySelector("product-options");if(!i)return;const{options:s,valid:n}=i.get(t);if(t&&!n)throw new Error("Product options are invalid");const{triggeringEvent:r}=e.detail,a={options:s,option_values:i.getValueIds().join(",")};return r instanceof ProductOptionChangeEvent&&(a.selected_option_value=r.detail.value_id),a}getPurchaseOption(e){const{triggeringEvent:t}=e.detail;if(t instanceof ProductPurchaseOptionChangeEvent)return t.detail;const i=this.querySelector("product-purchase-options");return i?.get()||DEFAULT_PURCHASE_OPTION}async onAddItem(e){e.preventDefault();try{const{productId:t}=this.dataset,{options:i,purchase_option:s,quantity:n}=this.getData(e);if(this.toggleBuyButtonLoader(!0),await CartAPI.addToCart(t,i,s,n),window.swCapture)try{const e=await CartAPI.getCartAfterWrite();e&&Array.isArray(e.items)&&0!==e.items.length||window.swCapture("add-to-cart succeeded but cart is empty after",{level:"error",tags:{component:"product-section",issue:"silent-add-failure"},extra:{productId:t,quantity:n,cartItemQuantity:e&&e.item_quantity}})}catch(e){}}catch(e){console.error(e.message)}finally{this.toggleBuyButtonLoader(!1)}}toggleBuyButtonLoader(e){const t=this.buyButton.querySelector("#buy-button-text"),i=this.buyButton.querySelector('[role="status"]');e?(t.classList.add("hidden"),i.classList.replace("hidden","flex")):(t.classList.remove("hidden"),i.classList.replace("flex","hidden"))}}function isValidSearchValue(e){return""!==e}function getUrlSearchParams(e){const t=new URLSearchParams;for(const[i,s]of Object.entries(e))if(Array.isArray(s))for(const e of s)t.append(i,e);else isValidSearchValue(s)&&t.set(i,s);return t}function updateUrlParams(e){const t=getUrlSearchParams(e),i=t.size>0?`${location.pathname}?${t.toString()}`:location.pathname;history.replaceState(null,"",i)}class ProductListSection extends HTMLElement{constructor(){super(),this.onChangeBound=this.onChange.bind(this),this.onToggleFiltersBound=this.onToggleFilters.bind(this)}connectedCallback(){this.addEventListener("htmx:configRequest",this.onChangeBound),this.addEventListener(ProductFilterToggleEvent.type,this.onToggleFiltersBound)}disconnectedCallback(){this.removeEventListener("htmx:configRequest",this.onChangeBound),this.removeEventListener(ProductFilterToggleEvent.type,this.onToggleFiltersBound)}getFilterData(e){const{triggeringEvent:t}=e.detail;if(t instanceof FiltersClearEvent)return{};const i=this.querySelector("product-filters");return i?i.get():{}}getSortData(){const e=this.querySelector("product-sort");return e?e.get():{}}getPaginationData(e){const{triggeringEvent:t}=e.detail;if(!(t instanceof PaginationChangeEvent))return{};const i=this.querySelector("pagination-nav");return i?i.get():{}}getCategoryData(){const e=this.querySelector("#category-id");if(!e)return{};const t=e.getAttribute("data-category-id");return t&&"all"!==t?{category:t}:{}}getData(e){return{...this.getFilterData(e),...this.getPaginationData(e),...this.getSortData(),...this.getCategoryData()}}onChange(e){const t=serializeFormData(this.getData(e));applySerializedData(e,t),updateUrlParams(t)}onToggleFilters(){const e=this.querySelector("product-filters");e&&e.toggle()}}class ProductSort extends HTMLElement{constructor(){super(),this.value="",this.onChangeBound=this.onChange.bind(this)}connectedCallback(){const{value:e}=this.dataset;this.value=e,this.addEventListener("change",this.onChangeBound)}disconnectedCallback(){this.removeEventListener("change",this.onChangeBound)}get(){return{sort_by:this.value}}onChange(e){e.stopPropagation();const{detail:{value:t}}=e;this.value=t,this.dispatchProductSortChangeEvent()}dispatchProductSortChangeEvent(){const e=this.get(),t=new ProductSortChangeEvent(e);this.dispatchEvent(t)}}class ProductFilters extends HTMLElement{constructor(){super(),this.onFilterInputChangeBound=this.onFilterInputChange.bind(this)}connectedCallback(){this.addEventListener(FilterInputChangeEvent.type,this.onFilterInputChangeBound)}disconnectedCallback(){this.removeEventListener(FilterInputChangeEvent.type,this.onFilterInputChangeBound)}isMobile(){return window.matchMedia("(max-width: 639px)").matches}getFiltersContainer(){return this.isMobile()?this.querySelector("product-filter-drawer"):this.querySelector("product-filter-sidebar")}get(){const e=this.getFiltersContainer();if(!e)return{};const t=e.querySelectorAll("filter-input-boolean"),i=e.querySelectorAll("filter-input-list"),s=e.querySelectorAll("filter-input-price-range");return[...Array.from(t),...Array.from(i),...Array.from(s)].reduce((e,t)=>{const i=t.get();return i&&Object.assign(e,i),e},{})}toggle(){const e=this.getFiltersContainer();e&&e.toggle()}abortHtmxRequest(){const{htmxForm:e}=this.dataset;e&&htmx.trigger(`#${e}`,"htmx:abort")}onFilterInputChange(e){e.stopPropagation(),this.abortHtmxRequest(),this.dispatchProductFiltersChangeEvent()}dispatchProductFiltersChangeEvent(){const e=new ProductFiltersChangeEvent;this.dispatchEvent(e)}}class ProductFilterSidebar extends HTMLElement{toggle(){const e="true"===this.getAttribute("aria-hidden").trim();this.setAttribute("aria-hidden",String(!e))}}class ProductFilterDrawer extends DrawerPanel{}class ProductFilterToggle extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation(),this.dispatchProductFilterToggleEvent()}dispatchProductFilterToggleEvent(){const e=new ProductFilterToggleEvent;this.dispatchEvent(e)}}const DEFAULT_TAB="orders";class AccountNav extends HTMLElement{constructor(){super(),this.drawer=null,this.onChangeTabBound=this.onChangeTab.bind(this)}connectedCallback(){window.addEventListener("hashchange",this.onChangeTabBound),this.onChangeTab()}disconnectedCallback(){window.removeEventListener("hashchange",this.onChangeTabBound)}getDrawer(){return this.drawer=this.drawer||this.querySelector("account-nav-drawer"),this.drawer}toggleDrawer(){const e=this.getDrawer();e&&e.toggle()}scrollToTop(){setTimeout(function(){window.scrollTo(0,0)},0)}onChangeTab(){const{hash:e}=window.location,t=this.querySelector(`.account-nav-item[href="${e}"]`);if(!t)return window.location.hash=DEFAULT_TAB,void this.scrollToTop();const i=this.querySelector("account-nav-trigger-text");i&&(i.textContent=t.textContent);const s=this.querySelectorAll(".account-nav-item"),n=document.querySelectorAll(".account-tab");s.forEach(t=>{t.getAttribute("href")===e?t.classList.add("active"):t.classList.remove("active")}),n.forEach(t=>{`#${t.id}`===e?t.classList.remove("hidden"):t.classList.add("hidden")}),this.scrollToTop()}}class AccountNavDrawer extends DrawerPanel{constructor(){super(),this.onClickNavItemBound=this.onClickNavItem.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.onClickNavItemBound)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.onClickNavItemBound)}onClickNavItem(e){const t=e.target.closest(".account-nav-item");t&&this.contains(t)&&this.close()}}class AccountNavTrigger extends HTMLElement{constructor(){super(),this.nav=null,this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.addEventListener("click",this.onClickBound)}getNav(){return this.nav=this.nav||this.closest("account-nav"),this.nav}onClick(e){e.stopPropagation();this.getNav().toggleDrawer()}}const FIELDS$3=Object.freeze(["customer[first_name]","customer[last_name]","customer[email]","customer[phone]"]);class AccountDetails extends HTMLElement{constructor(){super(),this.form=null,this.submitButton=null,this.initialFormData=null,this.onInputChangeBound=this.onInputChange.bind(this)}connectedCallback(){this.form=this.querySelector("form"),this.submitButton=this.querySelector('button[type="submit"]'),this.initialFormData=getFormData(this.form),this.addEventListener("input",this.onInputChangeBound)}disconnectedCallback(){this.removeEventListener("input",this.onInputChangeBound)}onInputChange(e){e.stopPropagation(),isFormChanged(this.form,FIELDS$3,this.initialFormData)&&isFormValid(this.form)?this.submitButton.disabled=!1:this.submitButton.disabled=!0}}class AccountSubscriptionModal extends Modal{}class AccountSubscriptionModalCloseButton extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const t=this.closest("account-subscription-modal");t&&t.close()}}class AccountSubscriptionModalSubmitButton extends HTMLElement{constructor(){super(),this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.setAttribute("role","button"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const t=this.closest("account-subscription-modal");t&&(this.dispatchEvent(new SubscriptionModalSubmitEvent),t.close())}}class AccountSubscriptionActionButton extends HTMLElement{constructor(){super(),this.modalId=null,this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.modalId=this.getAttribute("aria-controls"),this.setAttribute("role","button"),this.setAttribute("aria-haspopup","dialog"),this.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.removeEventListener("click",this.onClickBound)}onClick(e){e.stopPropagation();const t=document.getElementById(this.modalId);t&&t.open()}}class AccountLogin extends HTMLElement{constructor(){super(),this.form=null,this.submitButton=null,this.initialFormData=null,this.onInputChangeBound=this.onInputChange.bind(this)}connectedCallback(){this.form=this.querySelector("form"),this.submitButton=this.querySelector('button[type="submit"]'),this.initialFormData=getFormData(this.form),this.addEventListener("input",this.onInputChangeBound)}disconnectedCallback(){this.removeEventListener("input",this.onInputChangeBound),this.form=null,this.submitButton=null,this.initialFormData=null}onInputChange(e){e.stopPropagation(),isFormChanged(this.form,this.initialFormData)&&isFormValid(this.form)?this.submitButton.disabled=!1:this.submitButton.disabled=!0}}const FIELDS$2=Object.freeze(["customer[password]"]);class AccountResetPassword extends HTMLElement{constructor(){super(),this.form=null,this.submitButton=null,this.initialFormData=null,this.fields={},this.onInputChangeBound=this.onInputChange.bind(this),this.onBeforeSwapBound=this.onBeforeSwap.bind(this),this.onAfterSwapBound=this.onAfterSwap.bind(this)}connectedCallback(){this.form=this.querySelector("form"),this.submitButton=this.querySelector('button[type="submit"]'),this.initialFormData=getFormData(this.form),this.addEventListener("input",this.onInputChangeBound),this.addEventListener("htmx:beforeSwap",this.onBeforeSwapBound),this.addEventListener("htmx:afterSwap",this.onAfterSwapBound)}disconnectedCallback(){this.removeEventListener("input",this.onInputChangeBound),this.removeEventListener("htmx:beforeSwap",this.onBeforeSwapBound),this.removeEventListener("htmx:afterSwap",this.onAfterSwapBound),this.form=null,this.submitButton=null,this.initialFormData=null,this.fields={}}onInputChange(e){e.stopPropagation(),isFormChanged(this.form,this.initialFormData)&&isFormValid(this.form)?this.submitButton.disabled=!1:this.submitButton.disabled=!0}onBeforeSwap(){this.fields={};for(const e of FIELDS$2){const t=this.form?.elements[e]?.value||"";this.fields[e]=t}}onAfterSwap(){for(const e of FIELDS$2){const t=this.form?.elements[e];t&&(t.value=this.fields[e])}}}const FIELDS$1=Object.freeze(["customer[first_name]","customer[last_name]","customer[email]","customer[password]"]);class AccountRegister extends HTMLElement{constructor(){super(),this.form=null,this.submitButton=null,this.initialFormData=null,this.fields={},this.onInputChangeBound=this.onInputChange.bind(this),this.onBeforeSwapBound=this.onBeforeSwap.bind(this),this.onAfterSwapBound=this.onAfterSwap.bind(this)}connectedCallback(){this.form=this.querySelector("form"),this.submitButton=this.querySelector('button[type="submit"]'),this.initialFormData=getFormData(this.form),this.addEventListener("input",this.onInputChangeBound),this.addEventListener("htmx:beforeSwap",this.onBeforeSwapBound),this.addEventListener("htmx:afterSwap",this.onAfterSwapBound)}disconnectedCallback(){this.removeEventListener("input",this.onInputChangeBound),this.removeEventListener("htmx:beforeSwap",this.onBeforeSwapBound),this.removeEventListener("htmx:afterSwap",this.onAfterSwapBound),this.form=null,this.submitButton=null,this.initialFormData=null,this.fields={}}onInputChange(e){e.stopPropagation(),isFormChanged(this.form,this.initialFormData)&&isFormValid(this.form)?this.submitButton.disabled=!1:this.submitButton.disabled=!0}onBeforeSwap(){this.fields={};for(const e of FIELDS$1){const t=this.form?.elements[e]?.value||"";this.fields[e]=t}}onAfterSwap(){for(const e of FIELDS$1){const t=this.form?.elements[e];t&&(t.value=this.fields[e])}}}const FIELDS=Object.freeze(["email"]);class AccountRecover extends HTMLElement{constructor(){super(),this.form=null,this.submitButton=null,this.initialFormData=null,this.fields={},this.onInputChangeBound=this.onInputChange.bind(this),this.onBeforeSwapBound=this.onBeforeSwap.bind(this),this.onAfterSwapBound=this.onAfterSwap.bind(this)}connectedCallback(){this.form=this.querySelector("form"),this.submitButton=this.querySelector('button[type="submit"]'),this.initialFormData=getFormData(this.form),this.addEventListener("input",this.onInputChangeBound),this.addEventListener("htmx:beforeSwap",this.onBeforeSwapBound),this.addEventListener("htmx:afterSwap",this.onAfterSwapBound)}disconnectedCallback(){this.removeEventListener("input",this.onInputChangeBound),this.removeEventListener("htmx:beforeSwap",this.onBeforeSwapBound),this.removeEventListener("htmx:afterSwap",this.onAfterSwapBound),this.form=null,this.submitButton=null,this.initialFormData=null,this.fields={}}onInputChange(e){e.stopPropagation(),isFormChanged(this.form,this.initialFormData)&&isFormValid(this.form)?this.submitButton.disabled=!1:this.submitButton.disabled=!0}onBeforeSwap(){this.fields={};for(const e of FIELDS){const t=this.form?.elements[e]?.value||"";this.fields[e]=t}}onAfterSwap(){for(const e of FIELDS){const t=this.form?.elements[e];t&&(t.value=this.fields[e])}const e=this.querySelector("#recover-errors"),t=this.querySelector("#recover-success"),i=this.querySelector("#recover-form"),s=this.querySelector("#recover-password-subtext");!e&&t&&i&&s&&(i.style.display="none",s.style.display="none",t.style.display="flex")}}class Announcement extends HTMLElement{constructor(){super(),this.trigger=null,this.onClickBound=this.onClick.bind(this)}connectedCallback(){this.trigger=this.querySelector("announcement-trigger"),this.trigger&&this.trigger.addEventListener("click",this.onClickBound)}disconnectedCallback(){this.trigger&&this.trigger.removeEventListener("click",this.onClickBound),this.trigger=null}onClick(){this.classList.add("hidden")}}var htmx_min=createCommonjsModule(function(module){var e,t;e="undefined"!=typeof self?self:commonjsGlobal,t=function(){return function(){var Q={onLoad:F,process:zt,on:de,off:ge,trigger:ce,ajax:Nr,find:C,findAll:f,closest:v,values:function(e,t){return dr(e,t||"post").values},remove:_,addClass:z,removeClass:n,toggleClass:$,takeClass:W,defineExtension:Ur,removeExtension:Br,logAll:V,logNone:j,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",useTemplateFragments:!1,scrollBehavior:"smooth",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get"],selfRequestsOnly:!1,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null},parseInterval:d,_:t,createEventSource:function(e){return new EventSource(e,{withCredentials:!0})},createWebSocket:function(e){var t=new WebSocket(e,[]);return t.binaryType=Q.config.wsBinaryType,t},version:"1.9.10"},r={addTriggerHandler:Lt,bodyContains:se,canAccessLocalStorage:U,findThisElement:xe,filterValues:yr,hasAttribute:o,getAttributeValue:te,getClosestAttributeValue:ne,getClosestMatch:c,getExpressionVars:Hr,getHeaders:xr,getInputValues:dr,getInternalData:ae,getSwapSpecification:wr,getTriggerSpecs:it,getTarget:ye,makeFragment:l,mergeObjects:le,makeSettleInfo:T,oobSwap:Ee,querySelectorExt:ue,selectAndSwap:je,settleImmediately:nr,shouldCancel:ut,triggerEvent:ce,triggerErrorEvent:fe,withExtensions:R},w=["get","post","put","delete","patch"],i=w.map(function(e){return"[hx-"+e+"], [data-hx-"+e+"]"}).join(", "),S=e("head"),q=e("title"),H=e("svg",!0);function e(e,t=!1){return new RegExp(`<${e}(\\s[^>]*>|>)([\\s\\S]*?)<\\/${e}>`,t?"gim":"im")}function d(e){if(null==e)return;let t=NaN;return t="ms"==e.slice(-2)?parseFloat(e.slice(0,-2)):"s"==e.slice(-1)?1e3*parseFloat(e.slice(0,-1)):"m"==e.slice(-1)?1e3*parseFloat(e.slice(0,-1))*60:parseFloat(e),isNaN(t)?void 0:t}function ee(e,t){return e.getAttribute&&e.getAttribute(t)}function o(e,t){return e.hasAttribute&&(e.hasAttribute(t)||e.hasAttribute("data-"+t))}function te(e,t){return ee(e,t)||ee(e,"data-"+t)}function u(e){return e.parentElement}function re(){return document}function c(e,t){for(;e&&!t(e);)e=u(e);return e||null}function L(e,t,i){var s=te(t,i),n=te(t,"hx-disinherit");return e!==t&&n&&("*"===n||n.split(" ").indexOf(i)>=0)?"unset":s}function ne(e,t){var i=null;if(c(e,function(s){return i=L(e,s,t)}),"unset"!==i)return i}function h(e,t){var i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;return i&&i.call(e,t)}function A(e){var t=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(e);return t?t[1].toLowerCase():""}function a(e,t){for(var i=(new DOMParser).parseFromString(e,"text/html").body;t>0;)t--,i=i.firstChild;return null==i&&(i=re().createDocumentFragment()),i}function N(e){return/",0).querySelector("template").content;switch(i){case"thead":case"tbody":case"tfoot":case"colgroup":case"caption":return a(""+s+"
",1);case"col":return a(""+s+"
",2);case"tr":return a(""+s+"
",2);case"td":case"th":return a(""+s+"
",3);case"script":case"style":return a("
"+s+"
",1);default:return a(s,0)}}function ie(e){e&&e()}function I(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function k(e){return I(e,"Function")}function P(e){return I(e,"Object")}function ae(e){var t="htmx-internal-data",i=e[t];return i||(i=e[t]={}),i}function M(e){var t=[];if(e)for(var i=0;i=0}function se(e){return e.getRootNode&&e.getRootNode()instanceof window.ShadowRoot?re().body.contains(e.getRootNode().host):re().body.contains(e)}function D(e){return e.trim().split(/\s+/)}function le(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function E(e){try{return JSON.parse(e)}catch(e){return b(e),null}}function U(){var e="htmx:localStorageTest";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function B(e){try{var t=new URL(e);return t&&(e=t.pathname+t.search),/^\/$/.test(e)||(e=e.replace(/\/+$/,"")),e}catch(t){return e}}function t(e){return Tr(re().body,function(){return eval(e)})}function F(e){return Q.on("htmx:load",function(t){e(t.detail.elt)})}function V(){Q.logger=function(e,t,i){console&&console.log(t,e,i)}}function j(){Q.logger=null}function C(e,t){return t?e.querySelector(t):C(re(),e)}function f(e,t){return t?e.querySelectorAll(t):f(re(),e)}function _(e,t){e=g(e),t?setTimeout(function(){_(e),e=null},t):e.parentElement.removeChild(e)}function z(e,t,i){e=g(e),i?setTimeout(function(){z(e,t),e=null},i):e.classList&&e.classList.add(t)}function n(e,t,i){e=g(e),i?setTimeout(function(){n(e,t),e=null},i):e.classList&&(e.classList.remove(t),0===e.classList.length&&e.removeAttribute("class"))}function $(e,t){(e=g(e)).classList.toggle(t)}function W(e,t){oe((e=g(e)).parentElement.children,function(e){n(e,t)}),z(e,t)}function v(e,t){if((e=g(e)).closest)return e.closest(t);do{if(null==e||h(e,t))return e}while(e=e&&u(e));return null}function s(e,t){return e.substring(0,t.length)===t}function G(e,t){return e.substring(e.length-t.length)===t}function J(e){var t=e.trim();return s(t,"<")&&G(t,"/>")?t.substring(1,t.length-2):t}function Z(e,t){return 0===t.indexOf("closest ")?[v(e,J(t.substr(8)))]:0===t.indexOf("find ")?[C(e,J(t.substr(5)))]:"next"===t?[e.nextElementSibling]:0===t.indexOf("next ")?[K(e,J(t.substr(5)))]:"previous"===t?[e.previousElementSibling]:0===t.indexOf("previous ")?[Y(e,J(t.substr(9)))]:"document"===t?[document]:"window"===t?[window]:"body"===t?[document.body]:re().querySelectorAll(J(t))}var K=function(e,t){for(var i=re().querySelectorAll(t),s=0;s=0;s--){var n=i[s];if(n.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_FOLLOWING)return n}};function ue(e,t){return t?Z(e,t)[0]:Z(re().body,e)[0]}function g(e){return I(e,"String")?C(e):e}function ve(e,t,i){return k(t)?{target:re().body,event:e,listener:t}:{target:g(e),event:t,listener:i}}function de(e,t,i){return jr(function(){var s=ve(e,t,i);s.target.addEventListener(s.event,s.listener)}),k(t)?t:i}function ge(e,t,i){return jr(function(){var s=ve(e,t,i);s.target.removeEventListener(s.event,s.listener)}),k(t)?t:i}var me=re().createElement("output");function pe(e,t){var i=ne(e,t);if(i){if("this"===i)return[xe(e,t)];var s=Z(e,i);return 0===s.length?(b('The selector "'+i+'" on '+t+" returned no matches!"),[me]):s}}function xe(e,t){return c(e,function(e){return null!=te(e,t)})}function ye(e){var t=ne(e,"hx-target");return t?"this"===t?xe(e,"hx-target"):ue(e,t):ae(e).boosted?re().body:e}function be(e){for(var t=Q.config.attributesToSettle,i=0;i0?(n=e.substr(0,e.indexOf(":")),s=e.substr(e.indexOf(":")+1,e.length)):n=e);var r=re().querySelectorAll(s);return r?(oe(r,function(e){var s,r=t.cloneNode(!0);(s=re().createDocumentFragment()).appendChild(r),Se(n,e)||(s=r);var a={shouldSwap:!0,target:e,fragment:s};ce(e,"htmx:oobBeforeSwap",a)&&(e=a.target,a.shouldSwap&&Fe(n,e,e,s,i),oe(i.elts,function(e){ce(e,"htmx:oobAfterSwap",a)}))}),t.parentNode.removeChild(t)):(t.parentNode.removeChild(t),fe(re().body,"htmx:oobErrorNoTarget",{content:t})),e}function Ce(e,t,i){var s=ne(e,"hx-select-oob");if(s)for(var n=s.split(","),r=0;r0){var n=s.replace("'","\\'"),r=t.tagName.replace(":","\\:"),a=e.querySelector(r+"[id='"+n+"']");if(a&&a!==e){var o=t.cloneNode();we(t,a),i.tasks.push(function(){we(t,o)})}}})}function Oe(e){return function(){n(e,Q.config.addedClass),zt(e),Nt(e),qe(e),ce(e,"htmx:load")}}function qe(e){var t="[autofocus]",i=h(e,t)?e:e.querySelector(t);null!=i&&i.focus()}function m(e,t,i,s){for(Te(e,i,s);i.childNodes.length>0;){var n=i.firstChild;z(n,Q.config.addedClass),e.insertBefore(n,t),n.nodeType!==Node.TEXT_NODE&&n.nodeType!==Node.COMMENT_NODE&&s.tasks.push(Oe(n))}}function He(e,t){for(var i=0;i-1){var t=e.replace(H,"").match(q);if(t)return t[2]}}function je(e,t,i,s,n,r){n.title=Ve(s);var a=l(s);if(a)return Ce(i,a,n),Re(a=Be(i,a,r)),Fe(e,i,t,a,n)}function _e(e,t,i){var s=e.getResponseHeader(t);if(0===s.indexOf("{")){var n=E(s);for(var r in n)if(n.hasOwnProperty(r)){var a=n[r];P(a)||(a={value:a}),ce(i,r,a)}}else for(var o=s.split(","),l=0;l0;){var a=t[0];if("]"===a){if(0===--s){null===r&&(n+="true"),t.shift(),n+=")})";try{var o=Tr(e,function(){return Function(n)()},function(){return!0});return o.source=n,o}catch(e){return fe(re().body,"htmx:syntax:error",{error:e,source:n}),null}}}else"["===a&&s++;Qe(a,r,i)?n+="(("+i+"."+a+") ? ("+i+"."+a+") : (window."+a+"))":n+=a,r=t.shift()}}}function y(e,t){for(var i="";e.length>0&&!t.test(e[0]);)i+=e.shift();return i}function tt(e){var t;return e.length>0&&Ze.test(e[0])?(e.shift(),t=y(e,Ke).trim(),e.shift()):t=y(e,x),t}var rt="input, textarea, select";function nt(e,t,i){var s=[],n=Ye(t);do{y(n,Je);var r=n.length,a=y(n,/[,\[\s]/);if(""!==a)if("every"===a){var o={trigger:"every"};y(n,Je),o.pollInterval=d(y(n,/[,\[\s]/)),y(n,Je),(l=et(e,n,"event"))&&(o.eventFilter=l),s.push(o)}else if(0===a.indexOf("sse:"))s.push({trigger:"sse",sseEvent:a.substr(4)});else{var l,c={trigger:a};for((l=et(e,n,"event"))&&(c.eventFilter=l);n.length>0&&","!==n[0];){y(n,Je);var u=n.shift();if("changed"===u)c.changed=!0;else if("once"===u)c.once=!0;else if("consume"===u)c.consume=!0;else if("delay"===u&&":"===n[0])n.shift(),c.delay=d(y(n,x));else if("from"===u&&":"===n[0]){if(n.shift(),Ze.test(n[0]))var p=tt(n);else if("closest"===(p=y(n,x))||"find"===p||"next"===p||"previous"===p){n.shift();var h=tt(n);h.length>0&&(p+=" "+h)}c.from=p}else"target"===u&&":"===n[0]?(n.shift(),c.target=tt(n)):"throttle"===u&&":"===n[0]?(n.shift(),c.throttle=d(y(n,x))):"queue"===u&&":"===n[0]?(n.shift(),c.queue=y(n,x)):"root"===u&&":"===n[0]?(n.shift(),c[u]=tt(n)):"threshold"===u&&":"===n[0]?(n.shift(),c[u]=y(n,x)):fe(e,"htmx:syntax:error",{token:n.shift()})}s.push(c)}n.length===r&&fe(e,"htmx:syntax:error",{token:n.shift()}),y(n,Je)}while(","===n[0]&&n.shift());return i&&(i[t]=s),s}function it(e){var t=te(e,"hx-trigger"),i=[];if(t){var s=Q.config.triggerSpecsCache;i=s&&s[t]||nt(e,t,s)}return i.length>0?i:h(e,"form")?[{trigger:"submit"}]:h(e,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:h(e,rt)?[{trigger:"change"}]:[{trigger:"click"}]}function at(e){ae(e).cancelled=!0}function ot(e,t,i){var s=ae(e);s.timeout=setTimeout(function(){se(e)&&!0!==s.cancelled&&(ct(i,e,Wt("hx:poll:trigger",{triggerSpec:i,target:e}))||t(e),ot(e,t,i))},i.pollInterval)}function st(e){return location.hostname===e.hostname&&ee(e,"href")&&0!==ee(e,"href").indexOf("#")}function lt(e,t,i){if("A"===e.tagName&&st(e)&&(""===e.target||"_self"===e.target)||"FORM"===e.tagName){var s,n;if(t.boosted=!0,"A"===e.tagName)s="get",n=ee(e,"href");else{var r=ee(e,"method");s=r?r.toLowerCase():"get",n=ee(e,"action")}i.forEach(function(i){ht(e,function(e,t){v(e,Q.config.disableSelector)?p(e):he(s,n,e,t)},t,i,!0)})}}function ut(e,t){if("submit"===e.type||"click"===e.type){if("FORM"===t.tagName)return!0;if(h(t,'input[type="submit"], button')&&null!==v(t,"form"))return!0;if("A"===t.tagName&&t.href&&("#"===t.getAttribute("href")||0!==t.getAttribute("href").indexOf("#")))return!0}return!1}function ft(e,t){return ae(e).boosted&&"A"===e.tagName&&"click"===t.type&&(t.ctrlKey||t.metaKey)}function ct(e,t,i){var s=e.eventFilter;if(s)try{return!0!==s.call(t,i)}catch(e){return fe(re().body,"htmx:eventFilter:error",{error:e,source:s.source}),!0}return!1}function ht(e,t,i,s,n){var r,a=ae(e);r=s.from?Z(e,s.from):[e],s.changed&&r.forEach(function(e){ae(e).lastValue=e.value}),oe(r,function(r){var o=function(i){if(se(e)){if(!ft(e,i)&&((n||ut(i,e))&&i.preventDefault(),!ct(s,e,i))){var l=ae(i);if(l.triggerSpec=s,null==l.handledFor&&(l.handledFor=[]),l.handledFor.indexOf(e)<0){if(l.handledFor.push(e),s.consume&&i.stopPropagation(),s.target&&i.target&&!h(i.target,s.target))return;if(s.once){if(a.triggeredOnce)return;a.triggeredOnce=!0}if(s.changed){var d=ae(r);if(d.lastValue===r.value)return;d.lastValue=r.value}if(a.delayed&&clearTimeout(a.delayed),a.throttle)return;s.throttle>0?a.throttle||(t(e,i),a.throttle=setTimeout(function(){a.throttle=null},s.throttle)):s.delay>0?a.delayed=setTimeout(function(){t(e,i)},s.delay):(ce(e,"htmx:trigger"),t(e,i))}}}else r.removeEventListener(s.trigger,o)};null==i.listenerInfos&&(i.listenerInfos=[]),i.listenerInfos.push({trigger:s.trigger,listener:o,on:r}),r.addEventListener(s.trigger,o)})}var vt=!1,dt=null;function gt(){dt||(dt=function(){vt=!0},window.addEventListener("scroll",dt),setInterval(function(){vt&&(vt=!1,oe(re().querySelectorAll("[hx-trigger='revealed'],[data-hx-trigger='revealed']"),function(e){mt(e)}))},200))}function mt(e){!o(e,"data-hx-revealed")&&X(e)&&(e.setAttribute("data-hx-revealed","true"),ae(e).initHash?ce(e,"revealed"):e.addEventListener("htmx:afterProcessNode",function(t){ce(e,"revealed")},{once:!0}))}function pt(e,t,i){for(var s=D(i),n=0;n=0){var n=wt(i);setTimeout(function(){xt(e,t,i+1)},n)}},n.onopen=function(e){i=0},ae(e).webSocket=n,n.addEventListener("message",function(t){if(!yt(e)){var i=t.data;R(e,function(t){i=t.transformResponse(i,null,e)});for(var s=T(e),n=M(l(i).children),r=0;r0?ce(e,"htmx:validation:halted",a):(s.send(JSON.stringify(o)),ut(i,e)&&i.preventDefault())}):fe(e,"htmx:noWebSocketSourceError")}function wt(e){var t=Q.config.wsReconnectDelay;if("function"==typeof t)return t(e);if("full-jitter"===t){var i=Math.min(e,6);return 1e3*Math.pow(2,i)*Math.random()}b('htmx.config.wsReconnectDelay must either be a function or the string "full-jitter"')}function St(e,t,i){for(var s=D(i),n=0;n0?setTimeout(n,s):n()}function Ht(e,t,i){var s=!1;return oe(w,function(n){if(o(e,"hx-"+n)){var r=te(e,"hx-"+n);s=!0,t.path=r,t.verb=n,i.forEach(function(i){Lt(e,i,t,function(e,t){v(e,Q.config.disableSelector)?p(e):he(n,r,e,t)})})}}),s}function Lt(e,t,i,s){if(t.sseEvent)Rt(e,s,t.sseEvent);else if("revealed"===t.trigger)gt(),ht(e,s,i,t),mt(e);else if("intersect"===t.trigger){var n={};t.root&&(n.root=ue(e,t.root)),t.threshold&&(n.threshold=parseFloat(t.threshold));var r=new IntersectionObserver(function(t){for(var i=0;i0?(i.polling=!0,ot(e,s,t)):ht(e,s,i,t)}function At(e){if(Q.config.allowScriptTags&&("text/javascript"===e.type||"module"===e.type||""===e.type)){var t=re().createElement("script");oe(e.attributes,function(e){t.setAttribute(e.name,e.value)}),t.textContent=e.textContent,t.async=!1,Q.config.inlineScriptNonce&&(t.nonce=Q.config.inlineScriptNonce);var i=e.parentElement;try{i.insertBefore(t,e)}catch(e){b(e)}finally{e.parentElement&&e.parentElement.removeChild(e)}}}function Nt(e){h(e,"script")&&At(e),oe(f(e,"script"),function(e){At(e)})}function It(e){for(var t=e.attributes,i=0;i0;){var a=s.shift(),o=a.match(/^\s*([a-zA-Z:\-\.]+:)(.*)/);0===r&&o?(a.split(":"),i[n=o[1].slice(0,-1)]=o[2]):i[n]+=a,r+=Bt(a)}for(var l in i)Ft(e,l,i[l])}}function jt(e){Ae(e);for(var t=0;tQ.config.historyCacheSize;)n.shift();for(;n.length>0;)try{localStorage.setItem("htmx-history-cache",JSON.stringify(n));break}catch(e){fe(re().body,"htmx:historyCacheError",{cause:e,cache:n}),n.shift()}}}function Yt(e){if(!U())return null;e=B(e);for(var t=E(localStorage.getItem("htmx-history-cache"))||[],i=0;i=200&&this.status<400){ce(re().body,"htmx:historyCacheMissLoad",i);var t=l(this.response);t=t.querySelector("[hx-history-elt],[data-hx-history-elt]")||t;var s=Zt(),n=T(s),r=Ve(this.response);if(r){var a=C("title");a?a.innerHTML=r:window.document.title=r}Ue(s,t,n),nr(n.tasks),Jt=e,ce(re().body,"htmx:historyRestore",{path:e,cacheMiss:!0,serverResponse:this.response})}else fe(re().body,"htmx:historyCacheMissLoadError",i)},t.send()}function ar(e){er();var t=Yt(e=e||location.pathname+location.search);if(t){var i=l(t.content),s=Zt(),n=T(s);Ue(s,i,n),nr(n.tasks),document.title=t.title,setTimeout(function(){window.scrollTo(0,t.scroll)},0),Jt=e,ce(re().body,"htmx:historyRestore",{path:e,item:t})}else Q.config.refreshOnHistoryMiss?window.location.reload(!0):ir(e)}function or(e){var t=pe(e,"hx-indicator");return null==t&&(t=[e]),oe(t,function(e){var t=ae(e);t.requestCount=(t.requestCount||0)+1,e.classList.add.call(e.classList,Q.config.requestClass)}),t}function sr(e){var t=pe(e,"hx-disabled-elt");return null==t&&(t=[]),oe(t,function(e){var t=ae(e);t.requestCount=(t.requestCount||0)+1,e.setAttribute("disabled","")}),t}function lr(e,t){oe(e,function(e){var t=ae(e);t.requestCount=(t.requestCount||0)-1,0===t.requestCount&&e.classList.remove.call(e.classList,Q.config.requestClass)}),oe(t,function(e){var t=ae(e);t.requestCount=(t.requestCount||0)-1,0===t.requestCount&&e.removeAttribute("disabled")})}function ur(e,t){for(var i=0;i=0}function wr(e,t){var i=t||ne(e,"hx-swap"),s={swapStyle:ae(e).boosted?"innerHTML":Q.config.defaultSwapStyle,swapDelay:Q.config.defaultSwapDelay,settleDelay:Q.config.defaultSettleDelay};if(Q.config.scrollIntoViewOnBoost&&ae(e).boosted&&!br(e)&&(s.show="top"),i){var n=D(i);if(n.length>0)for(var r=0;r0?c.join(":"):null;s.scroll=o,s.scrollTarget=l}else if(0===a.indexOf("show:")){var c,u=(c=a.substr(5).split(":")).pop();l=c.length>0?c.join(":"):null,s.show=u,s.showTarget=l}else if(0===a.indexOf("focus-scroll:")){var p=a.substr(13);s.focusScroll="true"==p}else 0==r?s.swapStyle=a:b("Unknown modifier in hx-swap: "+a)}}return s}function Sr(e){return"multipart/form-data"===ne(e,"hx-encoding")||h(e,"form")&&"multipart/form-data"===ee(e,"enctype")}function Er(e,t,i){var s=null;return R(t,function(n){null==s&&(s=n.encodeParameters(e,i,t))}),null!=s?s:Sr(t)?pr(i):mr(i)}function T(e){return{tasks:[],elts:[e]}}function Cr(e,t){var i=e[0],s=e[e.length-1];if(t.scroll){var n=null;t.scrollTarget&&(n=ue(i,t.scrollTarget)),"top"===t.scroll&&(i||n)&&((n=n||i).scrollTop=0),"bottom"===t.scroll&&(s||n)&&((n=n||s).scrollTop=n.scrollHeight)}if(t.show){if(n=null,t.showTarget){var r=t.showTarget;"window"===t.showTarget&&(r="body"),n=ue(i,r)}"top"===t.show&&(i||n)&&(n=n||i).scrollIntoView({block:"start",behavior:Q.config.scrollBehavior}),"bottom"===t.show&&(s||n)&&(n=n||s).scrollIntoView({block:"end",behavior:Q.config.scrollBehavior})}}function Rr(e,t,i,s){if(null==s&&(s={}),null==e)return s;var n=te(e,t);if(n){var r,a=n.trim(),o=i;if("unset"===a)return null;for(var l in 0===a.indexOf("javascript:")?(a=a.substr(11),o=!0):0===a.indexOf("js:")&&(a=a.substr(3),o=!0),0!==a.indexOf("{")&&(a="{"+a+"}"),r=o?Tr(e,function(){return Function("return ("+a+")")()},{}):E(a))r.hasOwnProperty(l)&&null==s[l]&&(s[l]=r[l])}return Rr(u(e),t,i,s)}function Tr(e,t,i){return Q.config.allowEval?t():(fe(e,"htmx:evalDisallowedError"),i)}function Or(e,t){return Rr(e,"hx-vars",!0,t)}function qr(e,t){return Rr(e,"hx-vals",!1,t)}function Hr(e){return le(Or(e),qr(e))}function Lr(e,t,i){if(null!==i)try{e.setRequestHeader(t,i)}catch(s){e.setRequestHeader(t,encodeURIComponent(i)),e.setRequestHeader(t+"-URI-AutoEncoded","true")}}function Ar(e){if(e.responseURL&&"undefined"!=typeof URL)try{var t=new URL(e.responseURL);return t.pathname+t.search}catch(t){fe(re().body,"htmx:badResponseUrl",{url:e.responseURL})}}function O(e,t){return t.test(e.getAllResponseHeaders())}function Nr(e,t,i){return e=e.toLowerCase(),i?i instanceof Element||I(i,"String")?he(e,t,null,null,{targetOverride:g(i),returnPromise:!0}):he(e,t,g(i.source),i.event,{handler:i.handler,headers:i.headers,values:i.values,targetOverride:g(i.target),swapOverride:i.swap,select:i.select,returnPromise:!0}):he(e,t,null,null,{returnPromise:!0})}function Ir(e){for(var t=[];e;)t.push(e),e=e.parentElement;return t}function kr(e,t,i){var n,r;return"function"==typeof URL?(r=new URL(t,document.location.href),n=document.location.origin===r.origin):(r=t,n=s(t,document.location.origin)),!(Q.config.selfRequestsOnly&&!n)&&ce(e,"htmx:validateUrl",le({url:r,sameHost:n},i))}function he(e,t,i,s,n,r){var a=null,o=null;if((n=null!=n?n:{}).returnPromise&&"undefined"!=typeof Promise)var l=new Promise(function(e,t){a=e,o=t});null==i&&(i=re().body);var d=n.handler||Mr,c=n.select||null;if(!se(i))return ie(a),l;var u=n.targetOverride||ye(i);if(null==u||u==me)return fe(i,"htmx:targetError",{target:te(i,"hx-target")}),ie(o),l;var p=ae(i),h=p.lastButtonClicked;if(h){var m=ee(h,"formaction");null!=m&&(t=m);var f=ee(h,"formmethod");null!=f&&"dialog"!==f.toLowerCase()&&(e=f)}var g=ne(i,"hx-confirm");if(void 0===r){var v={target:u,elt:i,path:t,verb:e,triggeringEvent:s,etc:n,issueRequest:function(r){return he(e,t,i,s,n,!!r)},question:g};if(!1===ce(i,"htmx:confirm",v))return ie(a),l}var b=i,w=ne(i,"hx-sync"),y=null,E=!1;if(w){var S=w.split(":"),x=S[0].trim();if(b="this"===x?xe(i,"hx-sync"):ue(i,x),w=(S[1]||"drop").trim(),p=ae(b),"drop"===w&&p.xhr&&!0!==p.abortable)return ie(a),l;if("abort"===w){if(p.xhr)return ie(a),l;E=!0}else"replace"===w?ce(b,"htmx:abort"):0===w.indexOf("queue")&&(y=(w.split(" ")[1]||"last").trim())}if(p.xhr){if(!p.abortable){if(null==y){if(s){var C=ae(s);C&&C.triggerSpec&&C.triggerSpec.queue&&(y=C.triggerSpec.queue)}null==y&&(y="last")}return null==p.queuedRequests&&(p.queuedRequests=[]),"first"===y&&0===p.queuedRequests.length||"all"===y?p.queuedRequests.push(function(){he(e,t,i,s,n)}):"last"===y&&(p.queuedRequests=[],p.queuedRequests.push(function(){he(e,t,i,s,n)})),ie(a),l}ce(b,"htmx:abort")}var T=new XMLHttpRequest;p.xhr=T,p.abortable=E;var k=function(){p.xhr=null,p.abortable=!1,null!=p.queuedRequests&&p.queuedRequests.length>0&&p.queuedRequests.shift()()},L=ne(i,"hx-prompt");if(L){var M=prompt(L);if(null===M||!ce(i,"htmx:prompt",{prompt:M,target:u}))return ie(a),k(),l}if(g&&!r&&!confirm(g))return ie(a),k(),l;var P=xr(i,u,M);"get"===e||Sr(i)||(P["Content-Type"]="application/x-www-form-urlencoded"),n.headers&&(P=le(P,n.headers));var A=dr(i,e),I=A.errors,B=A.values;n.values&&(B=le(B,n.values));var O=le(B,Hr(i)),D=yr(O,i);Q.config.getCacheBusterParam&&"get"===e&&(D["org.htmx.cache-buster"]=ee(u,"id")||"true"),null!=t&&""!==t||(t=re().location.href);var q=Rr(i,"hx-request"),z=ae(i).boosted,N=Q.config.methodsThatUseUrlParams.indexOf(e)>=0,H={boosted:z,useUrlParams:N,parameters:D,unfilteredParameters:O,headers:P,target:u,verb:e,errors:I,withCredentials:n.credentials||q.credentials||Q.config.withCredentials,timeout:n.timeout||q.timeout||Q.config.timeout,path:t,triggeringEvent:s};if(!ce(i,"htmx:configRequest",H))return ie(a),k(),l;if(t=H.path,e=H.verb,P=H.headers,D=H.parameters,N=H.useUrlParams,(I=H.errors)&&I.length>0)return ce(i,"htmx:validation:halted",H),ie(a),k(),l;var F=t.split("#"),R=F[0],$=F[1],_=t;if(N&&(_=R,0!==Object.keys(D).length&&(_.indexOf("?")<0?_+="?":_+="&",_+=mr(D),$&&(_+="#"+$))),!kr(i,_,H))return fe(i,"htmx:invalidPath",H),ie(o),l;if(T.open(e.toUpperCase(),_,!0),T.overrideMimeType("text/html"),T.withCredentials=H.withCredentials,T.timeout=H.timeout,q.noHeaders);else for(var V in P)if(P.hasOwnProperty(V)){var X=P[V];Lr(T,V,X)}var j={xhr:T,target:u,requestConfig:H,etc:n,boosted:z,select:c,pathInfo:{requestPath:t,finalRequestPath:_,anchor:$}};if(T.onload=function(){try{var e=Ir(i);if(j.pathInfo.responsePath=Ar(T),d(i,j),lr(G,U),ce(i,"htmx:afterRequest",j),ce(i,"htmx:afterOnLoad",j),!se(i)){for(var t=null;e.length>0&&null==t;){var s=e.shift();se(s)&&(t=s)}t&&(ce(t,"htmx:afterRequest",j),ce(t,"htmx:afterOnLoad",j))}ie(a),k()}catch(e){throw fe(i,"htmx:onLoadError",le({error:e},j)),e}},T.onerror=function(){lr(G,U),fe(i,"htmx:afterRequest",j),fe(i,"htmx:sendError",j),ie(o),k()},T.onabort=function(){lr(G,U),fe(i,"htmx:afterRequest",j),fe(i,"htmx:sendAbort",j),ie(o),k()},T.ontimeout=function(){lr(G,U),fe(i,"htmx:afterRequest",j),fe(i,"htmx:timeout",j),ie(o),k()},!ce(i,"htmx:beforeRequest",j))return ie(a),k(),l;var G=or(i),U=sr(i);oe(["loadstart","loadend","progress","abort"],function(e){oe([T,T.upload],function(t){t.addEventListener(e,function(t){ce(i,"htmx:xhr:"+e,{lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total})})})}),ce(i,"htmx:beforeSend",j);var Y=N?null:Er(T,i,D);return T.send(Y),l}function Pr(e,t){var i=t.xhr,s=null,n=null;if(O(i,/HX-Push:/i)?(s=i.getResponseHeader("HX-Push"),n="push"):O(i,/HX-Push-Url:/i)?(s=i.getResponseHeader("HX-Push-Url"),n="push"):O(i,/HX-Replace-Url:/i)&&(s=i.getResponseHeader("HX-Replace-Url"),n="replace"),s)return"false"===s?{}:{type:n,path:s};var r=t.pathInfo.finalRequestPath,a=t.pathInfo.responsePath,o=ne(e,"hx-push-url"),l=ne(e,"hx-replace-url"),d=ae(e).boosted,c=null,u=null;return o?(c="push",u=o):l?(c="replace",u=l):d&&(c="push",u=a||r),u?"false"===u?{}:("true"===u&&(u=a||r),t.pathInfo.anchor&&-1===u.indexOf("#")&&(u=u+"#"+t.pathInfo.anchor),{type:c,path:u}):{}}function Mr(e,t){var i=t.xhr,s=t.target,n=t.etc;t.requestConfig;var r=t.select;if(ce(e,"htmx:beforeOnLoad",t)){if(O(i,/HX-Trigger:/i)&&_e(i,"HX-Trigger",e),O(i,/HX-Location:/i)){er();var a=i.getResponseHeader("HX-Location");return 0===a.indexOf("{")&&(m=E(a),a=m.path,delete m.path),void Nr("GET",a,m).then(function(){tr(a)})}var o=O(i,/HX-Refresh:/i)&&"true"===i.getResponseHeader("HX-Refresh");if(O(i,/HX-Redirect:/i))return location.href=i.getResponseHeader("HX-Redirect"),void(o&&location.reload());if(o)location.reload();else{O(i,/HX-Retarget:/i)&&("this"===i.getResponseHeader("HX-Retarget")?t.target=e:t.target=ue(e,i.getResponseHeader("HX-Retarget")));var l=Pr(e,t),d=i.status>=200&&i.status<400&&204!==i.status,c=i.response,u=i.status>=400,p=Q.config.ignoreTitle,h=le({shouldSwap:d,serverResponse:c,isError:u,ignoreTitle:p},t);if(ce(s,"htmx:beforeSwap",h)){if(s=h.target,c=h.serverResponse,u=h.isError,p=h.ignoreTitle,t.target=s,t.failed=u,t.successful=!u,h.shouldSwap){286===i.status&&at(e),R(e,function(t){c=t.transformResponse(c,i,e)}),l.type&&er();var m,f=n.swapOverride;O(i,/HX-Reswap:/i)&&(f=i.getResponseHeader("HX-Reswap")),(m=wr(e,f)).hasOwnProperty("ignoreTitle")&&(p=m.ignoreTitle),s.classList.add(Q.config.swappingClass);var g=null,v=null,b=function(){try{var n,a=document.activeElement,o={};try{o={elt:a,start:a?a.selectionStart:null,end:a?a.selectionEnd:null}}catch(a){}r&&(n=r),O(i,/HX-Reselect:/i)&&(n=i.getResponseHeader("HX-Reselect")),l.type&&(ce(re().body,"htmx:beforeHistoryUpdate",le({history:l},t)),"push"===l.type?(tr(l.path),ce(re().body,"htmx:pushedIntoHistory",{path:l.path})):(rr(l.path),ce(re().body,"htmx:replacedInHistory",{path:l.path})));var d=T(s);if(je(m.swapStyle,s,e,c,d,n),o.elt&&!se(o.elt)&&ee(o.elt,"id")){var u=document.getElementById(ee(o.elt,"id")),h={preventScroll:void 0!==m.focusScroll?!m.focusScroll:!Q.config.defaultFocusScroll};if(u){if(o.start&&u.setSelectionRange)try{u.setSelectionRange(o.start,o.end)}catch(a){}u.focus(h)}}if(s.classList.remove(Q.config.swappingClass),oe(d.elts,function(e){e.classList&&e.classList.add(Q.config.settlingClass),ce(e,"htmx:afterSwap",t)}),O(i,/HX-Trigger-After-Swap:/i)){var f=e;se(e)||(f=re().body),_e(i,"HX-Trigger-After-Swap",f)}var b=function(){if(oe(d.tasks,function(e){e.call()}),oe(d.elts,function(e){e.classList&&e.classList.remove(Q.config.settlingClass),ce(e,"htmx:afterSettle",t)}),t.pathInfo.anchor){var s=re().getElementById(t.pathInfo.anchor);s&&s.scrollIntoView({block:"start",behavior:"auto"})}if(d.title&&!p){var n=C("title");n?n.innerHTML=d.title:window.document.title=d.title}if(Cr(d.elts,m),O(i,/HX-Trigger-After-Settle:/i)){var r=e;se(e)||(r=re().body),_e(i,"HX-Trigger-After-Settle",r)}ie(g)};m.settleDelay>0?setTimeout(b,m.settleDelay):b()}catch(a){throw fe(e,"htmx:swapError",t),ie(v),a}},w=Q.config.globalViewTransitions;if(m.hasOwnProperty("transition")&&(w=m.transition),w&&ce(e,"htmx:beforeTransition",t)&&"undefined"!=typeof Promise&&document.startViewTransition){var y=new Promise(function(e,t){g=e,v=t}),S=b;b=function(){document.startViewTransition(function(){return S(),y})}}m.swapDelay>0?setTimeout(b,m.swapDelay):b()}u&&fe(e,"htmx:responseError",le({error:"Response Status Error Code "+i.status+" from "+t.pathInfo.requestPath},t))}}}}var Xr={};function Dr(){return{init:function(e){return null},onEvent:function(e,t){return!0},transformResponse:function(e,t,i){return e},isInlineSwap:function(e){return!1},handleSwap:function(e,t,i,s){return!1},encodeParameters:function(e,t,i){return null}}}function Ur(e,t){t.init&&t.init(r),Xr[e]=le(Dr(),t)}function Br(e){delete Xr[e]}function Fr(e,t,i){if(null==e)return t;null==t&&(t=[]),null==i&&(i=[]);var s=te(e,"hx-ext");return s&&oe(s.split(","),function(e){if("ignore:"!=(e=e.replace(/ /g,"")).slice(0,7)){if(i.indexOf(e)<0){var s=Xr[e];s&&t.indexOf(s)<0&&t.push(s)}}else i.push(e.slice(7))}),Fr(u(e),t,i)}var Vr=!1;function jr(e){Vr||"complete"===re().readyState?e():re().addEventListener("DOMContentLoaded",e)}function _r(){!1!==Q.config.includeIndicatorStyles&&re().head.insertAdjacentHTML("beforeend","")}function zr(){var e=re().querySelector('meta[name="htmx-config"]');return e?E(e.content):null}function $r(){var e=zr();e&&(Q.config=le(Q.config,e))}return re().addEventListener("DOMContentLoaded",function(){Vr=!0}),jr(function(){$r(),_r();var e=re().body;zt(e);var t=re().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");e.addEventListener("htmx:abort",function(e){var t=ae(e.target);t&&t.xhr&&t.xhr.abort()});const i=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(e){e.state&&e.state.htmx?(ar(),oe(t,function(e){ce(e,"htmx:restored",{document:re(),triggerEvent:ce})})):i&&i(e)},setTimeout(function(){ce(e,"htmx:load",{}),e=null},0)}),Q}()},module.exports?module.exports=t():e.htmx=e.htmx||t()});function loadIonIcons(){if(!document.querySelector('script[src*="ionicons"]')){const e=document.createElement("script");e.type="module",e.src="/external-assets/jsdelivr/npm/ionicons@7.1.0/dist/ionicons/ionicons.esm.js",e.async=!0,document.body.appendChild(e)}}"undefined"!=typeof window&&(window.htmx=htmx_min),function(){function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(i,s){void 0===i&&(i={}),void 0===s&&(s={}),Object.keys(s).forEach(n=>{void 0===i[n]?i[n]=s[n]:e(s[n])&&e(i[n])&&Object.keys(s[n]).length>0&&t(i[n],s[n])})}const i={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function s(){const e="undefined"!=typeof document?document:{};return t(e,i),e}const n={document:i,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,n),e}function a(e){return void 0===e&&(e=""),e.trim().split(" ").filter(e=>!!e.trim())}function o(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function l(){return Date.now()}function d(e,t){void 0===t&&(t="x");const i=r();let s,n,a;const o=function(e){const t=r();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(e=>e.replace(",",".")).join(", ")),a=new i.WebKitCSSMatrix("none"===n?"":n)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=a.toString().split(",")),"x"===t&&(n=i.WebKitCSSMatrix?a.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(n=i.WebKitCSSMatrix?a.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let i=1;it.indexOf(e)<0);for(let t=0,n=i.length;ta?"next":"prev",u=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,p=()=>{o=(new Date).getTime(),null===l&&(l=o);const e=Math.max(Math.min((o-l)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=a+r*(i-a);if(u(c,i)&&(c=i),t.wrapperEl.scrollTo({[s]:c}),u(c,i))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[s]:c})}),void n.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=n.requestAnimationFrame(p)};p()}function f(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function g(e,t){void 0===t&&(t="");const i=[...e.children];return e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter(e=>e.matches(t)):i}function v(e){try{return void console.warn(e)}catch(e){}}function b(e,t){void 0===t&&(t=[]);const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:a(t)),i}function w(e){const t=r(),i=s(),n=e.getBoundingClientRect(),a=i.body,o=e.clientTop||a.clientTop||0,l=e.clientLeft||a.clientLeft||0,d=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:n.top+d-o,left:n.left+c-l}}function y(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function E(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function S(e,t){const i=[];let s=e.parentElement;for(;s;)t?s.matches(t)&&i.push(s):i.push(s),s=s.parentElement;return i}function x(e,t){t&&e.addEventListener("transitionend",function i(s){s.target===e&&(t.call(e,s),e.removeEventListener("transitionend",i))})}function C(e,t,i){const s=r();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function T(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function k(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}let L,M,P;function A(){return L||(L=function(){const e=r(),t=s();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),L}function I(e){return void 0===e&&(e={}),M||(M=function(e){let{userAgent:t}=void 0===e?{}:e;const i=A(),s=r(),n=s.navigator.platform,a=t||s.navigator.userAgent,o={ios:!1,android:!1},l=s.screen.width,d=s.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad).*OS\s([\d_]+)/);const p=a.match(/(iPod)(.*OS\s([\d_]+))?/),h=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===n;let f="MacIntel"===n;return!u&&f&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${d}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),f=!1),c&&!m&&(o.os="android",o.android=!0),(u||h||p)&&(o.os="ios",o.ios=!0),o}(e)),M}function B(){return P||(P=function(){const e=r(),t=I();let i=!1;function s(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(s()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,s]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));i=e<16||16===e&&s<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=s();return{isSafari:i||a,needPerspectiveFix:i,need3dFix:a||n&&t.ios,isWebView:n}}()),P}var O={on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const n=i?"unshift":"push";return e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][n](t)}),s},once(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;function n(){s.off(e,n),n.__emitterProxy&&delete n.__emitterProxy;for(var i=arguments.length,r=new Array(i),a=0;a=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((s,n)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(n,1)})}),i):i},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,i,s;for(var n=arguments.length,r=new Array(n),a=0;a{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(s,[t,...i])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(s,i)})}),e}};const D=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};const q=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};const z=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())})),t&&t.remove()}},N=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},H=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const s="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=n,r=[i-t];return r.push(...Array.from({length:t}).map((e,t)=>i+s+t)),void e.slides.forEach((t,i)=>{r.includes(t.column)&&N(e,i)})}const r=n+s-1;if(e.params.rewind||e.params.loop)for(let s=n-t;s<=r+t;s+=1){const t=(s%i+i)%i;(tr)&&N(e,t)}else for(let s=Math.max(n-t,0);s<=Math.min(r+t,i-1);s+=1)s!==n&&(s>r||s=0?S=parseFloat(S.replace("%",""))/100*r:"string"==typeof S&&(S=parseFloat(S)),e.virtualSize=-S,c.forEach(e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(h(s,"--swiper-centered-offset-before",""),h(s,"--swiper-centered-offset-after",""));const L=i.grid&&i.grid.rows>1&&e.grid;let M;L?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const P="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(e=>void 0!==i.breakpoints[e].slidesPerView).length>0;for(let s=0;s1&&p.push(e.virtualSize-r)}if(l&&i.loop){const t=f[0]+S;if(i.slidesPerGroup>1){const s=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),n=t*i.slidesPerGroup;for(let e=0;e!(i.cssMode&&!i.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${S}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;f.forEach(t=>{e+=t+(S||0)}),e-=S;const t=e-r;p=p.map(e=>e<=0?-v:e>t?t+b:e)}if(i.centerInsufficientSlides){let e=0;f.forEach(t=>{e+=t+(S||0)}),e-=S;const t=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(e+t{p[t]=e-i}),m.forEach((e,t)=>{m[t]=e+i})}}if(Object.assign(e,{slides:c,snapGrid:p,slidesGrid:m,slidesSizesGrid:f}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){h(s,"--swiper-centered-offset-before",-p[0]+"px"),h(s,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+i)}if(u!==d&&e.emit("slidesLengthChange"),p.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==E&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t=`${i.containerModifierClass}backface-hidden`,s=e.el.classList.contains(t);u<=i.maxBackfaceHiddenSlides?s||e.el.classList.add(t):s&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let n,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>s?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{i.push(e)});else for(n=0;nt.slides.length&&!s)break;i.push(a(e))}else i.push(a(t.activeIndex));for(n=0;nr?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let s=0;s=0?o=parseFloat(o.replace("%",""))/100*t.size:"string"==typeof o&&(o=parseFloat(o));for(let e=0;e=0&&p<=t.size-t.slidesSizesGrid[e],f=p>=0&&p1&&h<=t.size||p<=0&&h>=t.size;f&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),D(l,f,i.slideVisibleClass),D(l,m,i.slideFullyVisibleClass),l.progress=n?-c:c,l.originalProgress=n?-u:u}},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:r,isEnd:a,progressLoop:o}=t;const l=r,d=a;if(0===s)n=0,r=!0,a=!0;else{n=(e-t.minTranslate())/s;const i=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1;r=i||n<=0,a=o||n>=1,i&&(n=0),o&&(n=1)}if(i.loop){const i=t.getSlideIndexByData(0),s=t.getSlideIndexByData(t.slides.length-1),n=t.slidesGrid[i],r=t.slidesGrid[s],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);o=l>=n?(l-n)/a:(l+a-r)/a,o>1&&(o-=1)}Object.assign(t,{progress:n,progressLoop:o,isBeginning:r,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),a&&!d&&t.emit("reachEnd toEdge"),(l&&!r||d&&!a)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,slidesEl:s,activeIndex:n}=e,r=e.virtual&&i.virtual.enabled,a=e.grid&&i.grid&&i.grid.rows>1,o=e=>g(s,`.${i.slideClass}${e}, swiper-slide${e}`)[0];let l,d,c;if(r)if(i.loop){let t=n-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${t}"]`)}else l=o(`[data-swiper-slide-index="${n}"]`);else a?(l=t.filter(e=>e.column===n)[0],c=t.filter(e=>e.column===n+1)[0],d=t.filter(e=>e.column===n-1)[0]):l=t[n];l&&(a||(c=function(e,t){const i=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c&&(c=t[0]),d=function(e,t){const i=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&0===!d&&(d=t[t.length-1]))),t.forEach(e=>{q(e,e===l,i.slideActiveClass),q(e,e===c,i.slideNextClass),q(e,e===d,i.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:a,snapIndex:o}=t;let l,d=e;const c=e=>{let i=e-t.virtual.slidesBefore;return i<0&&(i=t.virtual.slides.length+i),i>=t.virtual.slides.length&&(i-=t.virtual.slides.length),i};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:i}=e,s=e.rtlTranslate?e.translate:-e.translate;let n;for(let e=0;e=t[e]&&s=t[e]&&s=t[e]&&(n=e);return i.normalizeSlideIndex&&(n<0||void 0===n)&&(n=0),n}(t)),s.indexOf(i)>=0)l=s.indexOf(i);else{const e=Math.min(n.slidesPerGroupSkip,d);l=e+Math.floor((d-e)/n.slidesPerGroup)}if(l>=s.length&&(l=s.length-1),d===r&&!t.params.loop)return void(l!==o&&(t.snapIndex=l,t.emit("snapIndexChange")));if(d===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const u=t.grid&&n.grid&&n.grid.rows>1;let p;if(t.virtual&&n.virtual.enabled&&n.loop)p=c(d);else if(u){const e=t.slides.filter(e=>e.column===d)[0];let i=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(i)&&(i=Math.max(t.slides.indexOf(e),0)),p=Math.floor(i/n.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):d}else p=d;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:a,realIndex:p,previousIndex:r,activeIndex:d}),t.initialized&&H(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const i=this,s=i.params;let n=e.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!n&&e.matches&&e.matches(`.${s.slideClass}, swiper-slide`)&&(n=e)});let r,a=!1;if(n)for(let e=0;el?l:s&&ea?"next":r=l.length&&(v=l.length-1);const b=-l[v];if(o.normalizeSlideIndex)for(let e=0;e=i&&t=i&&t=i&&(a=e)}if(r.initialized&&a!==u){if(!r.allowSlideNext&&(p?b>r.translate&&b>r.minTranslate():br.translate&&b>r.maxTranslate()&&(u||0)!==a)return!1}let w;if(a!==(c||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(b),w=a>u?"next":a0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[e?"scrollLeft":"scrollTop"]=i})):h[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})}else{if(!r.support.smoothScroll)return m({swiper:r,targetPosition:i,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(b),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,s),r.transitionStart(i,w),0===t?r.transitionEnd(i,w):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,w))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,s){if(void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e){e=parseInt(e,10)}const n=this;if(n.destroyed)return;void 0===t&&(t=n.params.speed);const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let a=e;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)a+=n.virtual.slidesBefore;else{let e;if(r){const t=a*n.params.grid.rows;e=n.slides.filter(e=>1*e.getAttribute("data-swiper-slide-index")===t)[0].column}else e=n.getSlideIndexByData(a);const t=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:i}=n.params;let o=n.params.slidesPerView;"auto"===o?o=n.slidesPerViewDynamic():(o=Math.ceil(parseFloat(n.params.slidesPerView,10)),i&&o%2==0&&(o+=1));let l=t-e1*t.getAttribute("data-swiper-slide-index")===e)[0].column}else a=n.getSlideIndexByData(a)}return requestAnimationFrame(()=>{n.slideTo(a,t,i,s)}),n},slideNext:function(e,t,i){void 0===t&&(t=!0);const s=this,{enabled:n,params:r,animating:a}=s;if(!n||s.destroyed)return s;void 0===e&&(e=s.params.speed);let o=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex{s.slideTo(s.activeIndex+l,e,t,i)}),!0}return r.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)},slidePrev:function(e,t,i){void 0===t&&(t=!0);const s=this,{params:n,snapGrid:r,slidesGrid:a,rtlTranslate:o,enabled:l,animating:d}=s;if(!l||s.destroyed)return s;void 0===e&&(e=s.params.speed);const c=s.virtual&&n.virtual.enabled;if(n.loop){if(d&&!c&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=u(o?s.translate:-s.translate),h=r.map(e=>u(e));let m=r[h.indexOf(p)-1];if(void 0===m&&n.cssMode){let e;r.forEach((t,i)=>{p>=t&&(e=i)}),void 0!==e&&(m=r[e>0?e-1:e])}let f=0;if(void 0!==m&&(f=a.indexOf(m),f<0&&(f=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(f=f-s.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,e,t,i)}return n.loop&&0===s.activeIndex&&n.cssMode?(requestAnimationFrame(()=>{s.slideTo(f,e,t,i)}),!0):s.slideTo(f,e,t,i)},slideReset:function(e,t,i){void 0===t&&(t=!0);const s=this;if(!s.destroyed)return void 0===e&&(e=s.params.speed),s.slideTo(s.activeIndex,e,t,i)},slideToClosest:function(e,t,i,s){void 0===t&&(t=!0),void 0===s&&(s=.5);const n=this;if(n.destroyed)return;void 0===e&&(e=n.params.speed);let r=n.activeIndex;const a=Math.min(n.params.slidesPerGroupSkip,r),o=a+Math.floor((r-a)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[o]){const e=n.snapGrid[o];l-e>(n.snapGrid[o+1]-e)*s&&(r+=n.params.slidesPerGroup)}else{const e=n.snapGrid[o-1];l-e<=(n.snapGrid[o]-e)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,e,t,i)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let n,r=e.clickedIndex;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;n=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?re.slides.length-e.loopedSlides+s/2?(e.loopFix(),r=e.getSlideIndex(g(i,`${a}[data-swiper-slide-index="${n}"]`)[0]),o(()=>{e.slideTo(r)})):e.slideTo(r):r>e.slides.length-s?(e.loopFix(),r=e.getSlideIndex(g(i,`${a}[data-swiper-slide-index="${n}"]`)[0]),o(()=>{e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}};var V={loopCreate:function(e){const t=this,{params:i,slidesEl:s}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;const n=()=>{g(s,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},r=t.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(r?i.grid.rows:1),o=t.slides.length%a!==0,l=r&&t.slides.length%i.grid.rows!==0,d=e=>{for(let s=0;s1;d.lengthe.classList.contains(h.slideActiveClass))[0]):S=r;const x="next"===s||!s,C="prev"===s||!s;let T=0,k=0;const L=w?Math.ceil(d.length/h.grid.rows):d.length,M=(w?d[r].column:r)+(m&&void 0===n?-f/2+.5:0);if(M=0;t-=1)d[t].column===e&&y.push(t)}else y.push(L-t-1)}}else if(M+f>L-b){k=Math.max(M-(L-2*b),g);for(let e=0;e{e.column===t&&E.push(i)}):E.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),C&&y.forEach(e=>{d[e].swiperLoopMoveDOM=!0,p.prepend(d[e]),d[e].swiperLoopMoveDOM=!1}),x&&E.forEach(e=>{d[e].swiperLoopMoveDOM=!0,p.append(d[e]),d[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===h.slidesPerView?l.updateSlides():w&&(y.length>0&&C||E.length>0&&x)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),h.watchSlidesProgress&&l.updateSlidesOffset(),i)if(y.length>0&&C){if(void 0===t){const e=l.slidesGrid[S],t=l.slidesGrid[S+T]-e;o?l.setTranslate(l.translate-t):(l.slideTo(S+Math.ceil(T),0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(n){const e=w?y.length/h.grid.rows:y.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(E.length>0&&x)if(void 0===t){const e=l.slidesGrid[S],t=l.slidesGrid[S-k]-e;o?l.setTranslate(l.translate-t):(l.slideTo(S-k,0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=w?E.length/h.grid.rows:E.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=c,l.allowSlideNext=u,l.controller&&l.controller.control&&!a){const e={slideRealIndex:t,direction:s,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===h.slidesPerView&&i})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView&&i})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const s=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;s[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),s.forEach(e=>{i.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function X(e,t,i){const s=r(),{params:n}=e,a=n.edgeSwipeDetection,o=n.edgeSwipeThreshold;return!a||!(i<=o||i>=s.innerWidth-o)||"prevent"===a&&(t.preventDefault(),!0)}function j(e){const t=this,i=s();let n=e;n.originalEvent&&(n=n.originalEvent);const a=t.touchEventsData;if("pointerdown"===n.type){if(null!==a.pointerId&&a.pointerId!==n.pointerId)return;a.pointerId=n.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(a.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void X(t,n,n.targetTouches[0].pageX);const{params:o,touches:d,enabled:c}=t;if(!c)return;if(!o.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let u=n.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const i=t.contains(e);if(!i&&t instanceof HTMLSlotElement)return[...t.assignedElements()].includes(e);return i}(u,t.wrapperEl))return;if("which"in n&&3===n.which)return;if("button"in n&&n.button>0)return;if(a.isTouched&&a.isMoved)return;const p=!!o.noSwipingClass&&""!==o.noSwipingClass,h=n.composedPath?n.composedPath():n.path;p&&n.target&&n.target.shadowRoot&&h&&(u=h[0]);const m=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!(!n.target||!n.target.shadowRoot);if(o.noSwiping&&(f?function(e,t){return void 0===t&&(t=this),function t(i){if(!i||i===s()||i===r())return null;i.assignedSlot&&(i=i.assignedSlot);const n=i.closest(e);return n||i.getRootNode?n||t(i.getRootNode().host):null}(t)}(m,u):u.closest(m)))return void(t.allowClick=!0);if(o.swipeHandler&&!u.closest(o.swipeHandler))return;d.currentX=n.pageX,d.currentY=n.pageY;const g=d.currentX,v=d.currentY;if(!X(t,n,g))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=g,d.startY=v,a.touchStartTime=l(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(a.allowThresholdMove=!1);let b=!0;u.matches(a.focusableElements)&&(b=!1,"SELECT"===u.nodeName&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==u&&i.activeElement.blur();const w=b&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!w||u.isContentEditable||n.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}function G(e){const t=s(),i=this,n=i.touchEventsData,{params:r,touches:a,rtlTranslate:o,enabled:d}=i;if(!d)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let c,u=e;if(u.originalEvent&&(u=u.originalEvent),"pointermove"===u.type){if(null!==n.touchId)return;if(u.pointerId!==n.pointerId)return}if("touchmove"===u.type){if(c=[...u.changedTouches].filter(e=>e.identifier===n.touchId)[0],!c||c.identifier!==n.touchId)return}else c=u;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",u));const p=c.pageX,h=c.pageY;if(u.preventedByNestedSwiper)return a.startX=p,void(a.startY=h);if(!i.allowTouchMove)return u.target.matches(n.focusableElements)||(i.allowClick=!1),void(n.isTouched&&(Object.assign(a,{startX:p,startY:h,currentX:p,currentY:h}),n.touchStartTime=l()));if(r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(ha.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(pa.startX&&i.translate>=i.minTranslate())return;if(t.activeElement&&u.target===t.activeElement&&u.target.matches(n.focusableElements))return n.isMoved=!0,void(i.allowClick=!1);n.allowTouchCallbacks&&i.emit("touchMove",u),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=p,a.currentY=h;const m=a.currentX-a.startX,f=a.currentY-a.startY;if(i.params.threshold&&Math.sqrt(m**2+f**2)=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(m))/Math.PI,n.isScrolling=i.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",u),void 0===n.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(n.startMoving=!0)),n.isScrolling||"touchmove"===u.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;i.allowClick=!1,!r.cssMode&&u.cancelable&&u.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&u.stopPropagation();let g=i.isHorizontal()?m:f,v=i.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;r.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),v=Math.abs(v)*(o?1:-1)),a.diff=g,g*=r.touchRatio,o&&(g=-g,v=-v);const b=i.touchesDirection;i.swipeDirection=g>0?"prev":"next",i.touchesDirection=v>0?"prev":"next";const w=i.params.loop&&!r.cssMode,y="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!n.isMoved){if(w&&y&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!r.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",u)}if((new Date).getTime(),n.isMoved&&n.allowThresholdMove&&b!==i.touchesDirection&&w&&y&&Math.abs(g)>=1)return Object.assign(a,{startX:p,startY:h,currentX:p,currentY:h,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);i.emit("sliderMove",u),n.isMoved=!0,n.currentTranslate=g+n.startTranslate;let E=!0,S=r.resistanceRatio;if(r.touchReleaseOnEdges&&(S=0),g>0?(w&&y&&n.allowThresholdMove&&n.currentTranslate>(r.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(E=!1,r.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+g)**S))):g<0&&(w&&y&&n.allowThresholdMove&&n.currentTranslate<(r.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===r.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),n.currentTranslaten.startTranslate&&(n.currentTranslate=n.startTranslate),i.allowSlidePrev||i.allowSlideNext||(n.currentTranslate=n.startTranslate),r.threshold>0){if(!(Math.abs(g)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,n.currentTranslate=n.startTranslate,void(a.diff=i.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function U(e){const t=this,i=t.touchEventsData;let s,n=e;n.originalEvent&&(n=n.originalEvent);if("touchend"===n.type||"touchcancel"===n.type){if(s=[...n.changedTouches].filter(e=>e.identifier===i.touchId)[0],!s||s.identifier!==i.touchId)return}else{if(null!==i.touchId)return;if(n.pointerId!==i.pointerId)return;s=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)){if(!(["pointercancel","contextmenu"].includes(n.type)&&(t.browser.isSafari||t.browser.isWebView)))return}i.pointerId=null,i.touchId=null;const{params:r,touches:a,rtlTranslate:d,slidesGrid:c,enabled:u}=t;if(!u)return;if(!r.simulateTouch&&"mouse"===n.pointerType)return;if(i.allowTouchCallbacks&&t.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&r.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);r.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const p=l(),h=p-i.touchStartTime;if(t.allowClick){const e=n.path||n.composedPath&&n.composedPath();t.updateClickedSlide(e&&e[0]||n.target,e),t.emit("tap click",n),h<300&&p-i.lastClickTime<300&&t.emit("doubleTap doubleClick",n)}if(i.lastClickTime=l(),o(()=>{t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||0===a.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let m;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,m=r.followFinger?d?t.translate:-t.translate:-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:m});const f=m>=-t.maxTranslate()&&!t.params.loop;let g=0,v=t.slidesSizesGrid[0];for(let e=0;e=c[e]&&m=c[e])&&(g=e,v=c[c.length-1]-c[c.length-2])}let b=null,w=null;r.rewind&&(t.isBeginning?w=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const y=(m-c[g])/v,E=gr.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?b:g+E):t.slideTo(g)),"prev"===t.swipeDirection&&(y>1-r.longSwipesRatio?t.slideTo(g+E):null!==w&&y<0&&Math.abs(y)>r.longSwipesRatio?t.slideTo(w):t.slideTo(g))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(n.target===t.navigation.nextEl||n.target===t.navigation.prevEl)?n.target===t.navigation.nextEl?t.slideTo(g+E):t.slideTo(g):("next"===t.swipeDirection&&t.slideTo(null!==b?b:g+E),"prev"===t.swipeDirection&&t.slideTo(null!==w?w:g))}}function Y(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=n,e.allowSlideNext=s,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function W(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Q(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;let n;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();n=0===r?0:(e.translate-e.minTranslate())/r,n!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function J(e){const t=this;z(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function K(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Z=(e,t)=>{const i=s(),{params:n,el:r,wrapperEl:a,device:o}=e,l=!!n.nested,d="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(i[d]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:l}),r[d]("touchstart",e.onTouchStart,{passive:!1}),r[d]("pointerdown",e.onTouchStart,{passive:!1}),i[d]("touchmove",e.onTouchMove,{passive:!1,capture:l}),i[d]("pointermove",e.onTouchMove,{passive:!1,capture:l}),i[d]("touchend",e.onTouchEnd,{passive:!0}),i[d]("pointerup",e.onTouchEnd,{passive:!0}),i[d]("pointercancel",e.onTouchEnd,{passive:!0}),i[d]("touchcancel",e.onTouchEnd,{passive:!0}),i[d]("pointerout",e.onTouchEnd,{passive:!0}),i[d]("pointerleave",e.onTouchEnd,{passive:!0}),i[d]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&r[d]("click",e.onClick,!0),n.cssMode&&a[d]("scroll",e.onScroll),n.updateOnWindowResize?e[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Y,!0):e[c]("observerUpdate",Y,!0),r[d]("load",e.onLoad,{capture:!0}))};const ee=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var te={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function ie(e,t){return function(i){void 0===i&&(i={});const s=Object.keys(i)[0],n=i[s];"object"==typeof n&&null!==n?(!0===e[s]&&(e[s]={enabled:!0}),"navigation"===s&&e[s]&&e[s].enabled&&!e[s].prevEl&&!e[s].nextEl&&(e[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&e[s]&&e[s].enabled&&!e[s].el&&(e[s].auto=!0),s in e&&"enabled"in n?("object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),p(t,i)):p(t,i)):p(t,i)}}const se={eventsEmitter:O,update:F,translate:R,transition:{setTransition:function(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`,i.wrapperEl.style.transitionDelay=0===e?"0ms":""),i.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),$({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const i=this,{params:s}=i;i.animating=!1,s.cssMode||(i.setTransition(0),$({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:_,loop:V,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=j.bind(e),e.onTouchMove=G.bind(e),e.onTouchEnd=U.bind(e),e.onDocumentTouchStart=K.bind(e),t.cssMode&&(e.onScroll=Q.bind(e)),e.onClick=W.bind(e),e.onLoad=J.bind(e),Z(e,"on")},detachEvents:function(){Z(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:i,params:s,el:n}=e,r=s.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const a=e.getBreakpoint(r,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const o=(a in r?r[a]:void 0)||e.originalParams,l=ee(e,s),d=ee(e,o),c=e.params.grabCursor,u=o.grabCursor,h=s.enabled;l&&!d?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!l&&d&&(n.classList.add(`${s.containerModifierClass}grid`),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===s.grid.fill)&&n.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),c&&!u?e.unsetGrabCursor():!c&&u&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===o[t])return;const i=s[t]&&s[t].enabled,n=o[t]&&o[t].enabled;i&&!n&&e[t].disable(),!i&&n&&e[t].enable()});const m=o.direction&&o.direction!==s.direction,f=s.loop&&(o.slidesPerView!==s.slidesPerView||m),g=s.loop;m&&i&&e.changeDirection(),p(e.params,o);const v=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!v?e.disable():!h&&v&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",o),i&&(f?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&b?(e.loopCreate(t),e.updateSlides()):g&&!b&&e.loopDestroy()),e.emit("breakpoint",o)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let s=!1;const n=r(),a="window"===t?n.innerHeight:i.clientHeight,o=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:a*t,point:e}}return{value:e,point:e}});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;ei}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:i,rtl:s,el:n,device:r}=e,a=function(e,t){const i=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(s=>{e[s]&&i.push(t+s)}):"string"==typeof e&&i.push(t+e)}),i}(["initialized",i.direction,{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...a),n.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},ne={};class re{constructor(){let e,t;for(var i=arguments.length,n=new Array(i),r=0;r1){const e=[];return a.querySelectorAll(t.el).forEach(i=>{const s=p({},t,{el:i});e.push(new re(s))}),e}const o=this;o.__swiper__=!0,o.support=A(),o.device=I({userAgent:t.userAgent}),o.browser=B(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],t.modules&&Array.isArray(t.modules)&&o.modules.push(...t.modules);const l={};o.modules.forEach(e=>{e({params:t,swiper:o,extendParams:ie(t,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const d=p({},te,l);return o.params=p({},d,ne,t),o.originalParams=p({},o.params),o.passedParams=p({},t),o.params&&o.params.on&&Object.keys(o.params.on).forEach(e=>{o.on(e,o.params.on[e])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:i}=this,s=E(g(t,`.${i.slideClass}, swiper-slide`)[0]);return E(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=g(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const s=i.minTranslate(),n=(i.maxTranslate()-s)*e+s;i.translateTo(n,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(i=>{const s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:i,slides:s,slidesGrid:n,slidesSizesGrid:r,size:a,activeIndex:o}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e,t=s[o]?Math.ceil(s[o].swiperSlideSize):0;for(let i=o+1;ia&&(e=!0));for(let i=o-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e=0;e-=1){n[o]-n[e]{t.complete&&z(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)s(),i.autoHeight&&e.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const t=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(t.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||s()}i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.el.classList.remove(`${i.params.containerModifierClass}${s}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let n=(()=>{if(i&&i.shadowRoot&&i.shadowRoot.querySelector){return i.shadowRoot.querySelector(s())}return g(i,s())[0]})();return!n&&t.params.createElements&&(n=b("div",t.params.wrapperClass),i.append(n),g(i,`.${t.params.slideClass}`).forEach(e=>{n.append(e)})),Object.assign(t,{el:i,wrapperEl:n,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:n,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===y(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===y(i,"direction")),wrongRTL:"-webkit-box"===y(n,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const i=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(e=>{e.complete?z(t,e):e.addEventListener("load",e=>{z(t,e.target)})}),H(t),t.initialized=!0,H(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:s,el:n,wrapperEl:r,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),n&&"string"!=typeof n&&n.removeAttribute("style"),r&&r.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(i)),i.destroyed=!0),null}static extendDefaults(e){p(ne,e)}static get extendedDefaults(){return ne}static get defaults(){return te}static installModule(e){re.prototype.__modules__||(re.prototype.__modules__=[]);const t=re.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>re.installModule(e)),re):(re.installModule(e),re)}}function ae(e,t,i,s){return e.params.createElements&&Object.keys(s).forEach(n=>{if(!i[n]&&!0===i.auto){let r=g(e.el,`.${s[n]}`)[0];r||(r=b("div",s[n]),r.className=s[n],e.el.append(r)),i[n]=r,t[n]=r}}),i}function oe(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function le(e){const t=this,{params:i,slidesEl:s}=t;i.loop&&t.loopDestroy();const n=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,s.append(t.children[0]),t.innerHTML=""}else s.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,n.prepend(t.children[0]),t.innerHTML=""}else n.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t=o)return void i.appendSlide(t);let l=a>e?a+1:a;const d=[];for(let t=o-1;t>=e;t-=1){const e=i.slides[t];e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;ee?a+t.length:a}else r.append(t);for(let e=0;e{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),o&&o()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const e=a?a():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)}),s("setTranslate",()=>{i.params.effect===t&&n()}),s("setTransition",(e,s)=>{i.params.effect===t&&r(s)}),s("transitionEnd",()=>{if(i.params.effect===t&&l){if(!d||!d().slideShadows)return;i.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),l()}}),s("virtualUpdate",()=>{i.params.effect===t&&(i.slides.length||(c=!0),requestAnimationFrame(()=>{c&&i.slides&&i.slides.length&&(n(),c=!1)}))})}function me(e,t){const i=f(t);return i!==t&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function fe(e){let{swiper:t,duration:i,transformElements:s,allSlides:n}=e;const{activeIndex:r}=t;if(t.params.virtualTranslate&&0!==i){let e,i=!1;e=n?s:s.filter(e=>{const i=e.classList.contains("swiper-slide-transform")?(e=>{if(!e.parentElement)return t.slides.filter(t=>t.shadowRoot&&t.shadowRoot===e.parentNode)[0];return e.parentElement})(e):e;return t.getSlideIndex(i)===r}),e.forEach(e=>{x(e,()=>{if(i)return;if(!t||t.destroyed)return;i=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)})})}}function ge(e,t,i){const s=`swiper-slide-shadow${i?`-${i}`:""}${e?` swiper-slide-shadow-${e}`:""}`,n=f(t);let r=n.querySelector(`.${s.split(" ").join(".")}`);return r||(r=b("div",s.split(" ")),n.append(r)),r}Object.keys(se).forEach(e=>{Object.keys(se[e]).forEach(t=>{re.prototype[t]=se[e][t]})}),re.use([function(e){let{swiper:t,on:i,emit:s}=e;const n=r();let a=null,o=null;const l=()=>{t&&!t.destroyed&&t.initialized&&(s("beforeResize"),s("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&s("orientationchange")};i("init",()=>{t.params.resizeObserver&&void 0!==n.ResizeObserver?t&&!t.destroyed&&t.initialized&&(a=new ResizeObserver(e=>{o=n.requestAnimationFrame(()=>{const{width:i,height:s}=t;let n=i,r=s;e.forEach(e=>{let{contentBoxSize:i,contentRect:s,target:a}=e;a&&a!==t.el||(n=s?s.width:(i[0]||i).inlineSize,r=s?s.height:(i[0]||i).blockSize)}),n===i&&r===s||l()})}),a.observe(t.el)):(n.addEventListener("resize",l),n.addEventListener("orientationchange",d))}),i("destroy",()=>{o&&n.cancelAnimationFrame(o),a&&a.unobserve&&t.el&&(a.unobserve(t.el),a=null),n.removeEventListener("resize",l),n.removeEventListener("orientationchange",d)})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const a=[],o=r(),l=function(e,i){void 0===i&&(i={});const s=new(o.MutationObserver||o.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length)return void n("observerUpdate",e[0]);const i=function(){n("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0)});s.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:t.isElement||(void 0===i.childList||i).childList,characterData:void 0===i.characterData||i.characterData}),a.push(s)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=S(t.hostEl);for(let t=0;t{a.forEach(e=>{e.disconnect()}),a.splice(0,a.length)})}]);const ve=[function(e){let t,{swiper:i,extendParams:n,on:r,emit:a}=e;n({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const o=s();i.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const l=o.createElement("div");function d(e,t){const s=i.params.virtual;if(s.cache&&i.virtual.cache[t])return i.virtual.cache[t];let n;return s.renderSlide?(n=s.renderSlide.call(i,e,t),"string"==typeof n&&(l.innerHTML=n,n=l.children[0])):n=i.isElement?b("swiper-slide"):b("div",i.params.slideClass),n.setAttribute("data-swiper-slide-index",t),s.renderSlide||(n.innerHTML=e),s.cache&&(i.virtual.cache[t]=n),n}function c(e,t){const{slidesPerView:s,slidesPerGroup:n,centeredSlides:r,loop:o,initialSlide:l}=i.params;if(t&&!o&&l>0)return;const{addSlidesBefore:c,addSlidesAfter:u}=i.params.virtual,{from:p,to:h,slides:m,slidesGrid:f,offset:v}=i.virtual;i.params.cssMode||i.updateActiveIndex();const b=i.activeIndex||0;let w,y,E;w=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",r?(y=Math.floor(s/2)+n+u,E=Math.floor(s/2)+n+c):(y=s+(n-1)+u,E=(o?s:n)+c);let S=b-E,x=b+y;o||(S=Math.max(S,0),x=Math.min(x,m.length-1));let C=(i.slidesGrid[S]||0)-(i.slidesGrid[0]||0);function T(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),a("virtualUpdate")}if(o&&b>=E?(S-=E,r||(C+=i.slidesGrid[0])):o&&b{e.style[w]=C-Math.abs(i.cssOverflowAdjustment())+"px"}),i.updateProgress(),void a("virtualUpdate");if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:C,from:S,to:x,slides:function(){const e=[];for(let t=S;t<=x;t+=1)e.push(m[t]);return e}()}),void(i.params.virtual.renderExternalUpdate?T():a("virtualUpdate"));const k=[],L=[],M=e=>{let t=e;return e<0?t=m.length+e:t>=m.length&&(t-=m.length),t};if(e)i.slides.filter(e=>e.matches(`.${i.params.slideClass}, swiper-slide`)).forEach(e=>{e.remove()});else for(let e=p;e<=h;e+=1)if(ex){const t=M(e);i.slides.filter(e=>e.matches(`.${i.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}"]`)).forEach(e=>{e.remove()})}const P=o?-m.length:0,A=o?2*m.length:m.length;for(let t=P;t=S&&t<=x){const i=M(t);void 0===h||e?L.push(i):(t>h&&L.push(i),t{i.slidesEl.append(d(m[e],e))}),o)for(let e=k.length-1;e>=0;e-=1){const t=k[e];i.slidesEl.prepend(d(m[t],t))}else k.sort((e,t)=>t-e),k.forEach(e=>{i.slidesEl.prepend(d(m[e],e))});g(i.slidesEl,".swiper-slide, swiper-slide").forEach(e=>{e.style[w]=C-Math.abs(i.cssOverflowAdjustment())+"px"}),T()}r("beforeInit",()=>{if(!i.params.virtual.enabled)return;let e;if(void 0===i.passedParams.virtual.slides){const t=[...i.slidesEl.children].filter(e=>e.matches(`.${i.params.slideClass}, swiper-slide`));t&&t.length&&(i.virtual.slides=[...t],e=!0,t.forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t),i.virtual.cache[t]=e,e.remove()}))}e||(i.virtual.slides=i.params.virtual.slides),i.classNames.push(`${i.params.containerModifierClass}virtual`),i.params.watchSlidesProgress=!0,i.originalParams.watchSlidesProgress=!0,c(!1,!0)}),r("setTranslate",()=>{i.params.virtual.enabled&&(i.params.cssMode&&!i._immediateVirtual?(clearTimeout(t),t=setTimeout(()=>{c()},100)):c())}),r("init update resize",()=>{i.params.virtual.enabled&&i.params.cssMode&&h(i.wrapperEl,"--swiper-virtual-size",`${i.virtualSize}px`)}),Object.assign(i.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t{const s=e[i],r=s.getAttribute("data-swiper-slide-index");r&&s.setAttribute("data-swiper-slide-index",parseInt(r,10)+n),t[parseInt(i,10)+n]=s}),i.virtual.cache=t}c(!0),i.slideTo(s,0)},removeSlide:function(e){if(null==e)return;let t=i.activeIndex;if(Array.isArray(e))for(let s=e.length-1;s>=0;s-=1)i.params.virtual.cache&&(delete i.virtual.cache[e[s]],Object.keys(i.virtual.cache).forEach(t=>{t>e&&(i.virtual.cache[t-1]=i.virtual.cache[t],i.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete i.virtual.cache[t])})),i.virtual.slides.splice(e[s],1),e[s]{t>e&&(i.virtual.cache[t-1]=i.virtual.cache[t],i.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete i.virtual.cache[t])})),i.virtual.slides.splice(e,1),e0&&0===S(t.el,`.${t.params.slideActiveClass}`).length)return;const s=t.el,n=s.clientWidth,r=s.clientHeight,a=l.innerWidth,o=l.innerHeight,d=w(s);i&&(d.left-=s.scrollLeft);const c=[[d.left,d.top],[d.left+n,d.top],[d.left,d.top+r],[d.left+n,d.top+r]];for(let t=0;t=0&&i[0]<=a&&i[1]>=0&&i[1]<=o){if(0===i[0]&&0===i[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((d||c||u||p)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),((c||p)&&!i||(d||u)&&i)&&t.slideNext(),((d||u)&&!i||(c||p)&&i)&&t.slidePrev()):((d||c||h||m)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),(c||m)&&t.slideNext(),(d||h)&&t.slidePrev()),a("keyPress",n)}}function c(){t.keyboard.enabled||(o.addEventListener("keydown",d),t.keyboard.enabled=!0)}function u(){t.keyboard.enabled&&(o.removeEventListener("keydown",d),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),n("init",()=>{t.params.keyboard.enabled&&c()}),n("destroy",()=>{t.keyboard.enabled&&u()}),Object.assign(t.keyboard,{enable:c,disable:u})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const a=r();let d;i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let c,u=l();const p=[];function h(){t.enabled&&(t.mouseEntered=!0)}function m(){t.enabled&&(t.mouseEntered=!1)}function f(e){return!(t.params.mousewheel.thresholdDelta&&e.delta=6&&l()-u<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),n("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),n("scroll",e.raw)),u=(new a.Date).getTime(),!1)))}function g(e){let i=e,s=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const r=t.params.mousewheel;t.params.cssMode&&i.preventDefault();let a=t.el;"container"!==t.params.mousewheel.eventsTarget&&(a=document.querySelector(t.params.mousewheel.eventsTarget));const u=a&&a.contains(i.target);if(!t.mouseEntered&&!u&&!r.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);let h=0;const m=t.rtlTranslate?-1:1,g=function(e){let t=0,i=0,s=0,n=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,n=10*i,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=n,n=0),(s||n)&&e.deltaMode&&(1===e.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!t&&(t=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:n}}(i);if(r.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;h=-g.pixelX*m}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;h=-g.pixelY}else h=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY;if(0===h)return!0;r.invert&&(h=-h);let v=t.getTranslate()+h*r.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),s=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),s&&t.params.nested&&i.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:l(),delta:Math.abs(h),direction:Math.sign(h)},s=c&&e.time=t.minTranslate()&&(a=t.minTranslate()),a<=t.maxTranslate()&&(a=t.maxTranslate()),t.setTransition(0),t.setTranslate(a),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!l&&t.isBeginning||!u&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(d),d=void 0,p.length>=15&&p.shift();const i=p.length?p[p.length-1]:void 0,s=p[0];if(p.push(e),i&&(e.delta>i.delta||e.direction!==i.direction))p.splice(0);else if(p.length>=15&&e.time-s.time<500&&s.delta-e.delta>=1&&e.delta<=6){const i=h>0?.8:.2;c=e,p.splice(0),d=o(()=>{t.slideToClosest(t.params.speed,!0,void 0,i)},0)}d||(d=o(()=>{c=e,p.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)},500))}if(s||n("scroll",i),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),r.releaseOnEdges&&(a===t.minTranslate()||a===t.maxTranslate()))return!0}}else{const i={time:l(),delta:Math.abs(h),direction:Math.sign(h),raw:e};p.length>=2&&p.shift();const s=p.length?p[p.length-1]:void 0;if(p.push(i),s?(i.direction!==s.direction||i.delta>s.delta||i.time>s.time+150)&&f(i):f(i),function(e){const i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function v(e){let i=t.el;"container"!==t.params.mousewheel.eventsTarget&&(i=document.querySelector(t.params.mousewheel.eventsTarget)),i[e]("mouseenter",h),i[e]("mouseleave",m),i[e]("wheel",g)}function b(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",g),!0):!t.mousewheel.enabled&&(v("addEventListener"),t.mousewheel.enabled=!0,!0)}function w(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,g),!0):!!t.mousewheel.enabled&&(v("removeEventListener"),t.mousewheel.enabled=!1,!0)}s("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&w(),t.params.mousewheel.enabled&&b()}),s("destroy",()=>{t.params.cssMode&&b(),t.mousewheel.enabled&&w()}),Object.assign(t.mousewheel,{enable:b,disable:w})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;function r(e){let i;return e&&"string"==typeof e&&t.isElement&&(i=t.el.querySelector(e),i)?i:(e&&("string"==typeof e&&(i=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&i&&i.length>1&&1===t.el.querySelectorAll(e).length?i=t.el.querySelector(e):i&&1===i.length&&(i=i[0])),e&&!i?e:i)}function a(e,i){const s=t.params.navigation;(e=T(e)).forEach(e=>{e&&(e.classList[i?"add":"remove"](...s.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=i),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](s.lockClass))})}function o(){const{nextEl:e,prevEl:i}=t.navigation;if(t.params.loop)return a(i,!1),void a(e,!1);a(i,t.isBeginning&&!t.params.rewind),a(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),n("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),n("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=ae(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let i=r(e.nextEl),s=r(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:s}),i=T(i),s=T(s);const n=(i,s)=>{i&&i.addEventListener("click","next"===s?d:l),!t.enabled&&i&&i.classList.add(...e.lockClass.split(" "))};i.forEach(e=>n(e,"next")),s.forEach(e=>n(e,"prev"))}function u(){let{nextEl:e,prevEl:i}=t.navigation;e=T(e),i=T(i);const s=(e,i)=>{e.removeEventListener("click","next"===i?d:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>s(e,"next")),i.forEach(e=>s(e,"prev"))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},s("init",()=>{!1===t.params.navigation.enabled?p():(c(),o())}),s("toEdge fromEdge lock unlock",()=>{o()}),s("destroy",()=>{u()}),s("enable disable",()=>{let{nextEl:e,prevEl:i}=t.navigation;e=T(e),i=T(i),t.enabled?o():[...e,...i].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),s("click",(e,i)=>{let{nextEl:s,prevEl:r}=t.navigation;s=T(s),r=T(r);const a=i.target;let o=r.includes(a)||s.includes(a);if(t.isElement&&!o){const e=i.path||i.composedPath&&i.composedPath();e&&(o=e.find(e=>s.includes(e)||r.includes(e)))}if(t.params.navigation.hideOnClick&&!o){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;s.length?e=s[0].classList.contains(t.params.navigation.hiddenClass):r.length&&(e=r[0].classList.contains(t.params.navigation.hiddenClass)),n(!0===e?"navigationShow":"navigationHide"),[...s,...r].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),o()},disable:p,update:o,init:c,destroy:u})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const r="swiper-pagination";let a;i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let o=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function d(e,i){const{bulletActiveClass:s}=t.params.pagination;e&&(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${s}-${i}`),(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&e.classList.add(`${s}-${i}-${i}`))}function c(e){const i=e.target.closest(oe(t.params.pagination.bulletClass));if(!i)return;e.preventDefault();const s=E(i)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===s)return;t.slideToLoop(s)}else t.slideTo(s)}function u(){const e=t.rtl,i=t.params.pagination;if(l())return;let s,r,c=t.pagination.el;c=T(c);const u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(u/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=t.previousRealIndex||0,s=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(s=t.snapIndex,r=t.previousSnapIndex):(r=t.previousIndex||0,s=t.activeIndex||0),"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const n=t.pagination.bullets;let l,u,p;if(i.dynamicBullets&&(a=C(n[0],t.isHorizontal()?"width":"height",!0),c.forEach(e=>{e.style[t.isHorizontal()?"width":"height"]=a*(i.dynamicMainBullets+4)+"px"}),i.dynamicMainBullets>1&&void 0!==r&&(o+=s-(r||0),o>i.dynamicMainBullets-1?o=i.dynamicMainBullets-1:o<0&&(o=0)),l=Math.max(s-o,0),u=l+(Math.min(n.length,i.dynamicMainBullets)-1),p=(u+l)/2),n.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${i.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),c.length>1)n.forEach(e=>{const n=E(e);n===s?e.classList.add(...i.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),i.dynamicBullets&&(n>=l&&n<=u&&e.classList.add(...`${i.bulletActiveClass}-main`.split(" ")),n===l&&d(e,"prev"),n===u&&d(e,"next"))});else{const e=n[s];if(e&&e.classList.add(...i.bulletActiveClass.split(" ")),t.isElement&&n.forEach((e,t)=>{e.setAttribute("part",t===s?"bullet-active":"bullet")}),i.dynamicBullets){const e=n[l],t=n[u];for(let e=l;e<=u;e+=1)n[e]&&n[e].classList.add(...`${i.bulletActiveClass}-main`.split(" "));d(e,"prev"),d(t,"next")}}if(i.dynamicBullets){const s=Math.min(n.length,i.dynamicMainBullets+4),r=(a*s-a)/2-p*a,o=e?"right":"left";n.forEach(e=>{e.style[t.isHorizontal()?o:"top"]=`${r}px`})}}c.forEach((e,r)=>{if("fraction"===i.type&&(e.querySelectorAll(oe(i.currentClass)).forEach(e=>{e.textContent=i.formatFractionCurrent(s+1)}),e.querySelectorAll(oe(i.totalClass)).forEach(e=>{e.textContent=i.formatFractionTotal(p)})),"progressbar"===i.type){let n;n=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(s+1)/p;let a=1,o=1;"horizontal"===n?a=r:o=r,e.querySelectorAll(oe(i.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${o})`,e.style.transitionDuration=`${t.params.speed}ms`})}"custom"===i.type&&i.renderCustom?(e.innerHTML=i.renderCustom(t,s+1,p),0===r&&n("paginationRender",e)):(0===r&&n("paginationRender",e),n("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass)})}function p(){const e=t.params.pagination;if(l())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let s=t.pagination.el;s=T(s);let r="";if("bullets"===e.type){let s=t.params.loop?Math.ceil(i/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&s>i&&(s=i);for(let i=0;i`}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):` / `),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):``),t.pagination.bullets=[],s.forEach(i=>{"custom"!==e.type&&(i.innerHTML=r||""),"bullets"===e.type&&t.pagination.bullets.push(...i.querySelectorAll(oe(e.bulletClass)))}),"custom"!==e.type&&n("paginationRender",s[0])}function h(){t.params.pagination=ae(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i;"string"==typeof e.el&&t.isElement&&(i=t.el.querySelector(e.el)),i||"string"!=typeof e.el||(i=[...document.querySelectorAll(e.el)]),i||(i=e.el),i&&0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(i)&&i.length>1&&(i=[...t.el.querySelectorAll(e.el)],i.length>1&&(i=i.filter(e=>S(e,".swiper")[0]===t.el)[0])),Array.isArray(i)&&1===i.length&&(i=i[0]),Object.assign(t.pagination,{el:i}),i=T(i),i.forEach(i=>{"bullets"===e.type&&e.clickable&&i.classList.add(...(e.clickableClass||"").split(" ")),i.classList.add(e.modifierClass+e.type),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.classList.add(`${e.modifierClass}${e.type}-dynamic`),o=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.classList.add(e.progressbarOppositeClass),e.clickable&&i.addEventListener("click",c),t.enabled||i.classList.add(e.lockClass)}))}function m(){const e=t.params.pagination;if(l())return;let i=t.pagination.el;i&&(i=T(i),i.forEach(i=>{i.classList.remove(e.hiddenClass),i.classList.remove(e.modifierClass+e.type),i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(i.classList.remove(...(e.clickableClass||"").split(" ")),i.removeEventListener("click",c))})),t.pagination.bullets&&t.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:i}=t.pagination;i=T(i),i.forEach(i=>{i.classList.remove(e.horizontalClass,e.verticalClass),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),s("init",()=>{!1===t.params.pagination.enabled?f():(h(),p(),u())}),s("activeIndexChange",()=>{void 0===t.snapIndex&&u()}),s("snapIndexChange",()=>{u()}),s("snapGridLengthChange",()=>{p(),u()}),s("destroy",()=>{m()}),s("enable disable",()=>{let{el:e}=t.pagination;e&&(e=T(e),e.forEach(e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),s("lock unlock",()=>{u()}),s("click",(e,i)=>{const s=i.target,r=T(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!s.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&s===t.navigation.nextEl||t.navigation.prevEl&&s===t.navigation.prevEl))return;const e=r[0].classList.contains(t.params.pagination.hiddenClass);n(!0===e?"paginationShow":"paginationHide"),r.forEach(e=>e.classList.toggle(t.params.pagination.hiddenClass))}});const f=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=T(e),e.forEach(e=>e.classList.add(t.params.pagination.paginationDisabledClass))),m()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=T(e),e.forEach(e=>e.classList.remove(t.params.pagination.paginationDisabledClass))),h(),p(),u()},disable:f,render:p,update:u,init:h,destroy:m})},function(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const l=s();let d,c,u,p,h=!1,m=null,f=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:i}=t,{dragEl:s,el:n}=e,r=t.params.scrollbar,a=t.params.loop?t.progressLoop:t.progress;let o=c,l=(u-c)*a;i?(l=-l,l>0?(o=c-l,l=0):-l+c>u&&(o=u+l)):l<0?(o=c+l,l=0):l+c>u&&(o=u-l),t.isHorizontal()?(s.style.transform=`translate3d(${l}px, 0, 0)`,s.style.width=`${o}px`):(s.style.transform=`translate3d(0px, ${l}px, 0)`,s.style.height=`${o}px`),r.hide&&(clearTimeout(m),n.style.opacity=1,m=setTimeout(()=>{n.style.opacity=0,n.style.transitionDuration="400ms"},1e3))}function v(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:i,el:s}=e;i.style.width="",i.style.height="",u=t.isHorizontal()?s.offsetWidth:s.offsetHeight,p=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),c="auto"===t.params.scrollbar.dragSize?u*p:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?i.style.width=`${c}px`:i.style.height=`${c}px`,s.style.display=p>=1?"none":"",t.params.scrollbar.hide&&(s.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function y(e){return t.isHorizontal()?e.clientX:e.clientY}function E(e){const{scrollbar:i,rtlTranslate:s}=t,{el:n}=i;let r;r=(y(e)-w(n)[t.isHorizontal()?"left":"top"]-(null!==d?d:c/2))/(u-c),r=Math.max(Math.min(r,1),0),s&&(r=1-r);const a=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*r;t.updateProgress(a),t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}function S(e){const i=t.params.scrollbar,{scrollbar:s,wrapperEl:n}=t,{el:a,dragEl:o}=s;h=!0,d=e.target===o?y(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),n.style.transitionDuration="100ms",o.style.transitionDuration="100ms",E(e),clearTimeout(f),a.style.transitionDuration="0ms",i.hide&&(a.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",e)}function x(e){const{scrollbar:i,wrapperEl:s}=t,{el:n,dragEl:a}=i;h&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,E(e),s.style.transitionDuration="0ms",n.style.transitionDuration="0ms",a.style.transitionDuration="0ms",r("scrollbarDragMove",e))}function C(e){const i=t.params.scrollbar,{scrollbar:s,wrapperEl:n}=t,{el:a}=s;h&&(h=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",n.style.transitionDuration=""),i.hide&&(clearTimeout(f),f=o(()=>{a.style.opacity=0,a.style.transitionDuration="400ms"},1e3)),r("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())}function k(e){const{scrollbar:i,params:s}=t,n=i.el;if(!n)return;const r=n,a=!!s.passiveListeners&&{passive:!1,capture:!1},o=!!s.passiveListeners&&{passive:!0,capture:!1};if(!r)return;const d="on"===e?"addEventListener":"removeEventListener";r[d]("pointerdown",S,a),l[d]("pointermove",x,a),l[d]("pointerup",C,o)}function L(){const{scrollbar:e,el:i}=t;t.params.scrollbar=ae(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const s=t.params.scrollbar;if(!s.el)return;let n,r;if("string"==typeof s.el&&t.isElement&&(n=t.el.querySelector(s.el)),n||"string"!=typeof s.el)n||(n=s.el);else if(n=l.querySelectorAll(s.el),!n.length)return;t.params.uniqueNavElements&&"string"==typeof s.el&&n.length>1&&1===i.querySelectorAll(s.el).length&&(n=i.querySelector(s.el)),n.length>0&&(n=n[0]),n.classList.add(t.isHorizontal()?s.horizontalClass:s.verticalClass),n&&(r=n.querySelector(oe(t.params.scrollbar.dragClass)),r||(r=b("div",t.params.scrollbar.dragClass),n.append(r))),Object.assign(e,{el:n,dragEl:r}),s.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&k("on"),n&&n.classList[t.enabled?"remove":"add"](...a(t.params.scrollbar.lockClass))}function M(){const e=t.params.scrollbar,i=t.scrollbar.el;i&&i.classList.remove(...a(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&k("off")}i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},n("changeDirection",()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:i}=t.scrollbar;i=T(i),i.forEach(i=>{i.classList.remove(e.horizontalClass,e.verticalClass),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),n("init",()=>{!1===t.params.scrollbar.enabled?P():(L(),v(),g())}),n("update resize observerUpdate lock unlock changeDirection",()=>{v()}),n("setTranslate",()=>{g()}),n("setTransition",(e,i)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(i)}),n("enable disable",()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...a(t.params.scrollbar.lockClass))}),n("destroy",()=>{M()});const P=()=>{t.el.classList.add(...a(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...a(t.params.scrollbar.scrollbarDisabledClass)),M()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...a(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...a(t.params.scrollbar.scrollbarDisabledClass)),L(),v(),g()},disable:P,updateSize:v,setTranslate:g,init:L,destroy:M})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({parallax:{enabled:!1}});const n="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(e,i)=>{const{rtl:s}=t,n=s?-1:1,r=e.getAttribute("data-swiper-parallax")||"0";let a=e.getAttribute("data-swiper-parallax-x"),o=e.getAttribute("data-swiper-parallax-y");const l=e.getAttribute("data-swiper-parallax-scale"),d=e.getAttribute("data-swiper-parallax-opacity"),c=e.getAttribute("data-swiper-parallax-rotate");if(a||o?(a=a||"0",o=o||"0"):t.isHorizontal()?(a=r,o="0"):(o=r,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*i*n+"%":a*i*n+"px",o=o.indexOf("%")>=0?parseInt(o,10)*i+"%":o*i+"px",null!=d){const t=d-(d-1)*(1-Math.abs(i));e.style.opacity=t}let u=`translate3d(${a}, ${o}, 0px)`;if(null!=l){u+=` scale(${l-(l-1)*(1-Math.abs(i))})`}if(c&&null!=c){u+=` rotate(${c*i*-1}deg)`}e.style.transform=u},a=()=>{const{el:e,slides:i,progress:s,snapGrid:a,isElement:o}=t,l=g(e,n);t.isElement&&l.push(...g(t.hostEl,n)),l.forEach(e=>{r(e,s)}),i.forEach((e,i)=>{let o=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(o+=Math.ceil(i/2)-s*(a.length-1)),o=Math.min(Math.max(o,-1),1),e.querySelectorAll(`${n}, [data-swiper-parallax-rotate]`).forEach(e=>{r(e,o)})})};s("beforeInit",()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),s("init",()=>{t.params.parallax.enabled&&a()}),s("setTranslate",()=>{t.params.parallax.enabled&&a()}),s("setTransition",(e,i)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:i,hostEl:s}=t,r=[...i.querySelectorAll(n)];t.isElement&&r.push(...s.querySelectorAll(n)),r.forEach(t=>{let i=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),t.style.transitionDuration=`${i}ms`})}(i)})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const a=r();i({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let o,l,c=1,u=!1;const p=[],h={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},m={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},f={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v,b=1;function y(){if(p.length<2)return 1;const e=p[0].pageX,t=p[0].pageY,i=p[1].pageX,s=p[1].pageY;return Math.sqrt((i-e)**2+(s-t)**2)}function E(){const e=t.params.zoom,i=h.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&h.imageEl&&h.imageEl.naturalWidth){const e=h.imageEl.naturalWidth/h.imageEl.offsetWidth;return Math.min(e,i)}return i}function x(e){const i=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(i)||t.slides.filter(t=>t.contains(e.target)).length>0}function C(e){if("mouse"===e.pointerType&&p.splice(0,p.length),!x(e))return;const i=t.params.zoom;if(o=!1,l=!1,p.push(e),!(p.length<2)){if(o=!0,h.scaleStart=y(),!h.slideEl){h.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),h.slideEl||(h.slideEl=t.slides[t.activeIndex]);let s=h.slideEl.querySelector(`.${i.containerClass}`);if(s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=s,h.imageWrapEl=s?S(h.imageEl,`.${i.containerClass}`)[0]:void 0,!h.imageWrapEl)return void(h.imageEl=void 0);h.maxRatio=E()}if(h.imageEl){const[e,t]=function(){if(p.length<2)return{x:null,y:null};const e=h.imageEl.getBoundingClientRect();return[(p[0].pageX+(p[1].pageX-p[0].pageX)/2-e.x-a.scrollX)/c,(p[0].pageY+(p[1].pageY-p[0].pageY)/2-e.y-a.scrollY)/c]}();h.originX=e,h.originY=t,h.imageEl.style.transitionDuration="0ms"}u=!0}}function T(e){if(!x(e))return;const i=t.params.zoom,s=t.zoom,n=p.findIndex(t=>t.pointerId===e.pointerId);n>=0&&(p[n]=e),p.length<2||(l=!0,h.scaleMove=y(),h.imageEl&&(s.scale=h.scaleMove/h.scaleStart*c,s.scale>h.maxRatio&&(s.scale=h.maxRatio-1+(s.scale-h.maxRatio+1)**.5),s.scalet.pointerId===e.pointerId);n>=0&&p.splice(n,1),o&&l&&(o=!1,l=!1,h.imageEl&&(s.scale=Math.max(Math.min(s.scale,h.maxRatio),i.minRatio),h.imageEl.style.transitionDuration=`${t.params.speed}ms`,h.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`,c=s.scale,u=!1,s.scale>1&&h.slideEl?h.slideEl.classList.add(`${i.zoomedSlideClass}`):s.scale<=1&&h.slideEl&&h.slideEl.classList.remove(`${i.zoomedSlideClass}`),1===s.scale&&(h.originX=0,h.originY=0,h.slideEl=void 0)))}function L(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function M(e){if(!x(e)||!function(e){const i=`.${t.params.zoom.containerClass}`;return!!e.target.matches(i)||[...t.hostEl.querySelectorAll(i)].filter(t=>t.contains(e.target)).length>0}(e))return;const i=t.zoom;if(!h.imageEl)return;if(!m.isTouched||!h.slideEl)return;m.isMoved||(m.width=h.imageEl.offsetWidth||h.imageEl.clientWidth,m.height=h.imageEl.offsetHeight||h.imageEl.clientHeight,m.startX=d(h.imageWrapEl,"x")||0,m.startY=d(h.imageWrapEl,"y")||0,h.slideWidth=h.slideEl.offsetWidth,h.slideHeight=h.slideEl.offsetHeight,h.imageWrapEl.style.transitionDuration="0ms");const s=m.width*i.scale,n=m.height*i.scale;m.minX=Math.min(h.slideWidth/2-s/2,0),m.maxX=-m.minX,m.minY=Math.min(h.slideHeight/2-n/2,0),m.maxY=-m.minY,m.touchesCurrent.x=p.length>0?p[0].pageX:e.pageX,m.touchesCurrent.y=p.length>0?p[0].pageY:e.pageY;if(Math.max(Math.abs(m.touchesCurrent.x-m.touchesStart.x),Math.abs(m.touchesCurrent.y-m.touchesStart.y))>5&&(t.allowClick=!1),!m.isMoved&&!u){if(t.isHorizontal()&&(Math.floor(m.minX)===Math.floor(m.startX)&&m.touchesCurrent.xm.touchesStart.x))return m.isTouched=!1,void L();if(!t.isHorizontal()&&(Math.floor(m.minY)===Math.floor(m.startY)&&m.touchesCurrent.ym.touchesStart.y))return m.isTouched=!1,void L()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(v),t.touchEventsData.preventTouchMoveFromPointerMove=!0,v=setTimeout(()=>{L()}),m.isMoved=!0;const r=(i.scale-c)/(h.maxRatio-t.params.zoom.minRatio),{originX:a,originY:o}=h;m.currentX=m.touchesCurrent.x-m.touchesStart.x+m.startX+r*(m.width-2*a),m.currentY=m.touchesCurrent.y-m.touchesStart.y+m.startY+r*(m.height-2*o),m.currentXm.maxX&&(m.currentX=m.maxX-1+(m.currentX-m.maxX+1)**.8),m.currentYm.maxY&&(m.currentY=m.maxY-1+(m.currentY-m.maxY+1)**.8),f.prevPositionX||(f.prevPositionX=m.touchesCurrent.x),f.prevPositionY||(f.prevPositionY=m.touchesCurrent.y),f.prevTime||(f.prevTime=Date.now()),f.x=(m.touchesCurrent.x-f.prevPositionX)/(Date.now()-f.prevTime)/2,f.y=(m.touchesCurrent.y-f.prevPositionY)/(Date.now()-f.prevTime)/2,Math.abs(m.touchesCurrent.x-f.prevPositionX)<2&&(f.x=0),Math.abs(m.touchesCurrent.y-f.prevPositionY)<2&&(f.y=0),f.prevPositionX=m.touchesCurrent.x,f.prevPositionY=m.touchesCurrent.y,f.prevTime=Date.now(),h.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}function P(){const e=t.zoom;h.slideEl&&t.activeIndex!==t.slides.indexOf(h.slideEl)&&(h.imageEl&&(h.imageEl.style.transform="translate3d(0,0,0) scale(1)"),h.imageWrapEl&&(h.imageWrapEl.style.transform="translate3d(0,0,0)"),h.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,c=1,h.slideEl=void 0,h.imageEl=void 0,h.imageWrapEl=void 0,h.originX=0,h.originY=0)}function A(e){const i=t.zoom,s=t.params.zoom;if(!h.slideEl){e&&e.target&&(h.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),h.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?h.slideEl=g(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:h.slideEl=t.slides[t.activeIndex]);let i=h.slideEl.querySelector(`.${s.containerClass}`);i&&(i=i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=i,h.imageWrapEl=i?S(h.imageEl,`.${s.containerClass}`)[0]:void 0}if(!h.imageEl||!h.imageWrapEl)return;let n,r,o,l,d,u,p,f,v,b,y,x,C,T,k,L,M,P;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),h.slideEl.classList.add(`${s.zoomedSlideClass}`),void 0===m.touchesStart.x&&e?(n=e.pageX,r=e.pageY):(n=m.touchesStart.x,r=m.touchesStart.y);const A="number"==typeof e?e:null;1===c&&A&&(n=void 0,r=void 0);const I=E();i.scale=A||I,c=A||I,!e||1===c&&A?(p=0,f=0):(M=h.slideEl.offsetWidth,P=h.slideEl.offsetHeight,o=w(h.slideEl).left+a.scrollX,l=w(h.slideEl).top+a.scrollY,d=o+M/2-n,u=l+P/2-r,v=h.imageEl.offsetWidth||h.imageEl.clientWidth,b=h.imageEl.offsetHeight||h.imageEl.clientHeight,y=v*i.scale,x=b*i.scale,C=Math.min(M/2-y/2,0),T=Math.min(P/2-x/2,0),k=-C,L=-T,p=d*i.scale,f=u*i.scale,pk&&(p=k),fL&&(f=L)),A&&1===i.scale&&(h.originX=0,h.originY=0),h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform=`translate3d(${p}px, ${f}px,0)`,h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`}function I(){const e=t.zoom,i=t.params.zoom;if(!h.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?h.slideEl=g(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:h.slideEl=t.slides[t.activeIndex];let e=h.slideEl.querySelector(`.${i.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=e,h.imageWrapEl=e?S(h.imageEl,`.${i.containerClass}`)[0]:void 0}h.imageEl&&h.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,c=1,h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform="translate3d(0,0,0)",h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform="translate3d(0,0,0) scale(1)",h.slideEl.classList.remove(`${i.zoomedSlideClass}`),h.slideEl=void 0,h.originX=0,h.originY=0)}function B(e){const i=t.zoom;i.scale&&1!==i.scale?I():A(e)}function O(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function D(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:i,activeListenerWithCapture:s}=O();t.wrapperEl.addEventListener("pointerdown",C,i),t.wrapperEl.addEventListener("pointermove",T,s),["pointerup","pointercancel","pointerout"].forEach(e=>{t.wrapperEl.addEventListener(e,k,i)}),t.wrapperEl.addEventListener("pointermove",M,s)}function q(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:i,activeListenerWithCapture:s}=O();t.wrapperEl.removeEventListener("pointerdown",C,i),t.wrapperEl.removeEventListener("pointermove",T,s),["pointerup","pointercancel","pointerout"].forEach(e=>{t.wrapperEl.removeEventListener(e,k,i)}),t.wrapperEl.removeEventListener("pointermove",M,s)}Object.defineProperty(t.zoom,"scale",{get:()=>b,set(e){if(b!==e){const t=h.imageEl,i=h.slideEl;n("zoomChange",e,t,i)}b=e}}),s("init",()=>{t.params.zoom.enabled&&D()}),s("destroy",()=>{q()}),s("touchStart",(e,i)=>{t.zoom.enabled&&function(e){const i=t.device;if(!h.imageEl)return;if(m.isTouched)return;i.android&&e.cancelable&&e.preventDefault(),m.isTouched=!0;const s=p.length>0?p[0]:e;m.touchesStart.x=s.pageX,m.touchesStart.y=s.pageY}(i)}),s("touchEnd",(e,i)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!h.imageEl)return;if(!m.isTouched||!m.isMoved)return m.isTouched=!1,void(m.isMoved=!1);m.isTouched=!1,m.isMoved=!1;let i=300,s=300;const n=f.x*i,r=m.currentX+n,a=f.y*s,o=m.currentY+a;0!==f.x&&(i=Math.abs((r-m.currentX)/f.x)),0!==f.y&&(s=Math.abs((o-m.currentY)/f.y));const l=Math.max(i,s);m.currentX=r,m.currentY=o;const d=m.width*e.scale,c=m.height*e.scale;m.minX=Math.min(h.slideWidth/2-d/2,0),m.maxX=-m.minX,m.minY=Math.min(h.slideHeight/2-c/2,0),m.maxY=-m.minY,m.currentX=Math.max(Math.min(m.currentX,m.maxX),m.minX),m.currentY=Math.max(Math.min(m.currentY,m.maxY),m.minY),h.imageWrapEl.style.transitionDuration=`${l}ms`,h.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}()}),s("doubleTap",(e,i)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&B(i)}),s("transitionEnd",()=>{t.zoom.enabled&&t.params.zoom.enabled&&P()}),s("slideChange",()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&P()}),Object.assign(t.zoom,{enable:D,disable:q,in:A,out:I,toggle:B})},function(e){let{swiper:t,extendParams:i,on:s}=e;function n(e,t){const i=function(){let e,t,i;return(s,n)=>{for(t=-1,e=s.length;e-t>1;)i=e+t>>1,s[i]<=n?t=i:e=i;return e}}();let s,n;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=i(this.x,e),s=n-1,(e-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this}function r(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}i({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},s("beforeInit",()=>{if("undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)){return void("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach(e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const i=`${t.params.eventsPrefix}init`,s=n=>{t.controller.control.push(n.detail[0]),t.update(),e.removeEventListener(i,s)};e.addEventListener(i,s)}})}t.controller.control=t.params.controller.control}),s("update",()=>{r()}),s("resize",()=>{r()}),s("observerUpdate",()=>{r()}),s("setTranslate",(e,i,s)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(i,s)}),s("setTransition",(e,i,s)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(i,s)}),Object.assign(t.controller,{setTranslate:function(e,i){const s=t.controller.control;let r,a;const o=t.constructor;function l(e){if(e.destroyed)return;const i=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline=t.params.loop?new n(t.slidesGrid,e.slidesGrid):new n(t.snapGrid,e.snapGrid)}(e),a=-t.controller.spline.interpolate(-i)),a&&"container"!==t.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(r)&&Number.isFinite(r)||(r=1),a=(i-t.minTranslate())*r+e.minTranslate()),t.params.controller.inverse&&(a=e.maxTranslate()-a),e.updateProgress(a),e.setTranslate(a,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(s))for(let e=0;e{i.updateAutoHeight()}),x(i.wrapperEl,()=>{n&&i.transitionEnd()})))}if(Array.isArray(n))for(r=0;r{e.setAttribute("tabIndex","0")})}function u(e){(e=T(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function p(e,t){(e=T(e)).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){(e=T(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function m(e,t){(e=T(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function f(e){(e=T(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function g(e){(e=T(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function v(e){if(13!==e.keyCode&&32!==e.keyCode)return;const i=t.params.a11y,s=e.target;if(!t.pagination||!t.pagination.el||s!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(oe(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=T(t.navigation.prevEl);T(t.navigation.nextEl).includes(s)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?d(i.lastSlideMessage):d(i.nextSlideMessage)),e.includes(s)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?d(i.firstSlideMessage):d(i.prevSlideMessage))}t.pagination&&s.matches(oe(t.params.pagination.bulletClass))&&s.click()}}function w(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function y(){return w()&&t.params.pagination.clickable}const S=(e,t,i)=>{c(e),"BUTTON"!==e.tagName&&(p(e,"button"),e.addEventListener("keydown",v)),m(e,i),function(e,t){(e=T(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},x=e=>{a&&a!==e.target&&!a.contains(e.target)&&(r=!0),t.a11y.clicked=!0},C=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},k=e=>{l=(new Date).getTime()},L=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-l<100)return;const i=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!i||!t.slides.includes(i))return;a=i;const s=t.slides.indexOf(i)===t.activeIndex,n=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(i);s||n||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>{r||(t.params.loop?t.slideToLoop(parseInt(i.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(i),0),r=!1)}))},M=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&h(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&p(t.slides,e.slideRole);const i=t.slides.length;e.slideLabelMessage&&t.slides.forEach((s,n)=>{const r=t.params.loop?parseInt(s.getAttribute("data-swiper-slide-index"),10):n;m(s,e.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,i))})},P=()=>{const e=t.params.a11y;t.el.append(o);const i=t.el;e.containerRoleDescriptionMessage&&h(i,e.containerRoleDescriptionMessage),e.containerMessage&&m(i,e.containerMessage);const n=t.wrapperEl,r=e.id||n.getAttribute("id")||`swiper-wrapper-${a=16,void 0===a&&(a=16),"x".repeat(a).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}`;var a;const l=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var d;d=r,T(n).forEach(e=>{e.setAttribute("id",d)}),function(e,t){(e=T(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(n,l),M();let{nextEl:c,prevEl:u}=t.navigation?t.navigation:{};if(c=T(c),u=T(u),c&&c.forEach(t=>S(t,r,e.nextSlideMessage)),u&&u.forEach(t=>S(t,r,e.prevSlideMessage)),y()){T(t.pagination.el).forEach(e=>{e.addEventListener("keydown",v)})}s().addEventListener("visibilitychange",k),t.el.addEventListener("focus",L,!0),t.el.addEventListener("focus",L,!0),t.el.addEventListener("pointerdown",x,!0),t.el.addEventListener("pointerup",C,!0)};n("beforeInit",()=>{o=b("span",t.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),n("afterInit",()=>{t.params.a11y.enabled&&P()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&M()}),n("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:i}=t.navigation;i&&(t.isBeginning?(f(i),u(i)):(g(i),c(i))),e&&(t.isEnd?(f(e),u(e)):(g(e),c(e)))}()}),n("paginationUpdate",()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;w()&&t.pagination.bullets.forEach(i=>{t.params.pagination.clickable&&(c(i),t.params.pagination.renderBullet||(p(i,"button"),m(i,e.paginationBulletMessage.replace(/\{\{index\}\}/,E(i)+1)))),i.matches(oe(t.params.pagination.bulletActiveClass))?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current")})}()}),n("destroy",()=>{t.params.a11y.enabled&&function(){o&&o.remove();let{nextEl:e,prevEl:i}=t.navigation?t.navigation:{};e=T(e),i=T(i),e&&e.forEach(e=>e.removeEventListener("keydown",v)),i&&i.forEach(e=>e.removeEventListener("keydown",v)),y()&&T(t.pagination.el).forEach(e=>{e.removeEventListener("keydown",v)});s().removeEventListener("visibilitychange",k),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",L,!0),t.el.removeEventListener("pointerdown",x,!0),t.el.removeEventListener("pointerup",C,!0))}()})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let n=!1,a={};const o=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=e=>{const t=r();let i;i=e?new URL(e):t.location;const s=i.pathname.slice(1).split("/").filter(e=>""!==e),n=s.length;return{key:s[n-2],value:s[n-1]}},d=(e,i)=>{const s=r();if(!n||!t.params.history.enabled)return;let a;a=t.params.url?new URL(t.params.url):s.location;const l=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${i}"]`):t.slides[i];let d=o(l.getAttribute("data-history"));if(t.params.history.root.length>0){let i=t.params.history.root;"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),d=`${i}/${e?`${e}/`:""}${d}`}else a.pathname.includes(e)||(d=`${e?`${e}/`:""}${d}`);t.params.history.keepQuery&&(d+=a.search);const c=s.history.state;c&&c.value===d||(t.params.history.replaceState?s.history.replaceState({value:d},null,d):s.history.pushState({value:d},null,d))},c=(e,i,s)=>{if(i)for(let n=0,r=t.slides.length;n{a=l(t.params.url),c(t.params.speed,a.value,!1)};s("init",()=>{t.params.history.enabled&&(()=>{const e=r();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);n=!0,a=l(t.params.url),a.key||a.value?(c(0,a.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",u)):t.params.history.replaceState||e.addEventListener("popstate",u)}})()}),s("destroy",()=>{t.params.history.enabled&&(()=>{const e=r();t.params.history.replaceState||e.removeEventListener("popstate",u)})()}),s("transitionEnd _freeModeNoMomentumRelease",()=>{n&&d(t.params.history.key,t.activeIndex)}),s("slideChange",()=>{n&&t.params.cssMode&&d(t.params.history.key,t.activeIndex)})},function(e){let{swiper:t,extendParams:i,emit:n,on:a}=e,o=!1;const l=s(),d=r();i({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,i){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.filter(e=>e.getAttribute("data-hash")===i)[0];if(!e)return 0;return parseInt(e.getAttribute("data-swiper-slide-index"),10)}return t.getSlideIndex(g(t.slidesEl,`.${t.params.slideClass}[data-hash="${i}"], swiper-slide[data-hash="${i}"]`)[0])}}});const c=()=>{n("hashChange");const e=l.location.hash.replace("#",""),i=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(i?i.getAttribute("data-hash"):"")){const i=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===i||Number.isNaN(i))return;t.slideTo(i)}},u=()=>{if(!o||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],i=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&d.history&&d.history.replaceState?(d.history.replaceState(null,null,`#${i}`||""),n("hashSet")):(l.location.hash=i||"",n("hashSet"))};a("init",()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;o=!0;const e=l.location.hash.replace("#","");if(e){const i=0,s=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(s||0,i,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&d.addEventListener("hashchange",c)})()}),a("destroy",()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&d.removeEventListener("hashchange",c)}),a("transitionEnd _freeModeNoMomentumRelease",()=>{o&&u()}),a("slideChange",()=>{o&&t.params.cssMode&&u()})},function(e){let t,i,{swiper:n,extendParams:r,on:a,emit:o,params:l}=e;n.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let d,c,u,p,h,m,f,g,v=l&&l.autoplay?l.autoplay.delay:3e3,b=l&&l.autoplay?l.autoplay.delay:3e3,w=(new Date).getTime();function y(e){n&&!n.destroyed&&n.wrapperEl&&e.target===n.wrapperEl&&(n.wrapperEl.removeEventListener("transitionend",y),g||e.detail&&e.detail.bySwiperTouchMove||k())}const E=()=>{if(n.destroyed||!n.autoplay.running)return;n.autoplay.paused?c=!0:c&&(b=d,c=!1);const e=n.autoplay.paused?d:w+b-(new Date).getTime();n.autoplay.timeLeft=e,o("autoplayTimeLeft",e,e/v),i=requestAnimationFrame(()=>{E()})},S=e=>{if(n.destroyed||!n.autoplay.running)return;cancelAnimationFrame(i),E();let s=void 0===e?n.params.autoplay.delay:e;v=n.params.autoplay.delay,b=n.params.autoplay.delay;const r=(()=>{let e;if(e=n.virtual&&n.params.virtual.enabled?n.slides.filter(e=>e.classList.contains("swiper-slide-active"))[0]:n.slides[n.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(r)&&r>0&&void 0===e&&(s=r,v=r,b=r),d=s;const a=n.params.speed,l=()=>{n&&!n.destroyed&&(n.params.autoplay.reverseDirection?!n.isBeginning||n.params.loop||n.params.rewind?(n.slidePrev(a,!0,!0),o("autoplay")):n.params.autoplay.stopOnLastSlide||(n.slideTo(n.slides.length-1,a,!0,!0),o("autoplay")):!n.isEnd||n.params.loop||n.params.rewind?(n.slideNext(a,!0,!0),o("autoplay")):n.params.autoplay.stopOnLastSlide||(n.slideTo(0,a,!0,!0),o("autoplay")),n.params.cssMode&&(w=(new Date).getTime(),requestAnimationFrame(()=>{S()})))};return s>0?(clearTimeout(t),t=setTimeout(()=>{l()},s)):requestAnimationFrame(()=>{l()}),s},x=()=>{w=(new Date).getTime(),n.autoplay.running=!0,S(),o("autoplayStart")},C=()=>{n.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(i),o("autoplayStop")},T=(e,i)=>{if(n.destroyed||!n.autoplay.running)return;clearTimeout(t),e||(f=!0);const s=()=>{o("autoplayPause"),n.params.autoplay.waitForTransition?n.wrapperEl.addEventListener("transitionend",y):k()};if(n.autoplay.paused=!0,i)return m&&(d=n.params.autoplay.delay),m=!1,void s();const r=d||n.params.autoplay.delay;d=r-((new Date).getTime()-w),n.isEnd&&d<0&&!n.params.loop||(d<0&&(d=0),s())},k=()=>{n.isEnd&&d<0&&!n.params.loop||n.destroyed||!n.autoplay.running||(w=(new Date).getTime(),f?(f=!1,S(d)):S(),n.autoplay.paused=!1,o("autoplayResume"))},L=()=>{if(n.destroyed||!n.autoplay.running)return;const e=s();"hidden"===e.visibilityState&&(f=!0,T(!0)),"visible"===e.visibilityState&&k()},M=e=>{"mouse"===e.pointerType&&(f=!0,g=!0,n.animating||n.autoplay.paused||T(!0))},P=e=>{"mouse"===e.pointerType&&(g=!1,n.autoplay.paused&&k())};a("init",()=>{n.params.autoplay.enabled&&(n.params.autoplay.pauseOnMouseEnter&&(n.el.addEventListener("pointerenter",M),n.el.addEventListener("pointerleave",P)),s().addEventListener("visibilitychange",L),x())}),a("destroy",()=>{n.el&&"string"!=typeof n.el&&(n.el.removeEventListener("pointerenter",M),n.el.removeEventListener("pointerleave",P)),s().removeEventListener("visibilitychange",L),n.autoplay.running&&C()}),a("_freeModeStaticRelease",()=>{(p||f)&&k()}),a("_freeModeNoMomentumRelease",()=>{n.params.autoplay.disableOnInteraction?C():T(!0,!0)}),a("beforeTransitionStart",(e,t,i)=>{!n.destroyed&&n.autoplay.running&&(i||!n.params.autoplay.disableOnInteraction?T(!0,!0):C())}),a("sliderFirstMove",()=>{!n.destroyed&&n.autoplay.running&&(n.params.autoplay.disableOnInteraction?C():(u=!0,p=!1,f=!1,h=setTimeout(()=>{f=!0,p=!0,T(!0)},200)))}),a("touchEnd",()=>{if(!n.destroyed&&n.autoplay.running&&u){if(clearTimeout(h),clearTimeout(t),n.params.autoplay.disableOnInteraction)return p=!1,void(u=!1);p&&n.params.cssMode&&k(),p=!1,u=!1}}),a("slideChange",()=>{!n.destroyed&&n.autoplay.running&&(m=!0)}),Object.assign(n.autoplay,{start:x,stop:C,pause:T,resume:k})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,a=!1;function o(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const i=e.clickedIndex,s=e.clickedSlide;if(s&&s.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let n;n=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,t.params.loop?t.slideToLoop(n):t.slideTo(n)}function l(){const{thumbs:e}=t.params;if(r)return!1;r=!0;const i=t.constructor;if(e.swiper instanceof i)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if(c(e.swiper)){const s=Object.assign({},e.swiper);Object.assign(s,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new i(s),a=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",o),!0}function d(e){const i=t.thumbs.swiper;if(!i||i.destroyed)return;const s="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;let n=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(n=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(n=1),n=Math.floor(n),i.slides.forEach(e=>e.classList.remove(r)),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let e=0;e{e.classList.add(r)});else for(let e=0;ee.getAttribute("data-swiper-slide-index")===`${t.realIndex}`)[0];r=i.slides.indexOf(e),l=t.activeIndex>t.previousIndex?"next":"prev"}else r=t.realIndex,l=r>t.previousIndex?"next":"prev";o&&(r+="next"===l?a:-1*a),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(r)<0&&(i.params.centeredSlides?r=r>n?r-Math.floor(s/2)+1:r+Math.floor(s/2)-1:r>n&&i.params.slidesPerGroup,i.slideTo(r,e?0:void 0))}}t.thumbs={swiper:null},n("beforeInit",()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const i=s(),n=()=>{const s="string"==typeof e.swiper?i.querySelector(e.swiper):e.swiper;if(s&&s.swiper)e.swiper=s.swiper,l(),d(!0);else if(s){const i=`${t.params.eventsPrefix}init`,n=r=>{e.swiper=r.detail[0],s.removeEventListener(i,n),l(),d(!0),e.swiper.update(),t.update()};s.addEventListener(i,n)}return s},r=()=>{if(t.destroyed)return;n()||requestAnimationFrame(r)};requestAnimationFrame(r)}else l(),d(!0)}),n("slideChange update resize observerUpdate",()=>{d()}),n("setTransition",(e,i)=>{const s=t.thumbs.swiper;s&&!s.destroyed&&s.setTransition(i)}),n("beforeDestroy",()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&a&&e.destroy()}),Object.assign(t.thumbs,{init:l,update:d})},function(e){let{swiper:t,extendParams:i,emit:s,once:n}=e;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:i}=t;0===e.velocities.length&&e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:l()})},onTouchEnd:function(e){let{currentPos:i}=e;if(t.params.cssMode)return;const{params:r,wrapperEl:a,rtlTranslate:o,snapGrid:d,touchEventsData:c}=t,u=l()-c.touchStartTime;if(i<-t.minTranslate())t.slideTo(t.activeIndex);else if(i>-t.maxTranslate())t.slides.length1){const e=c.velocities.pop(),i=c.velocities.pop(),s=e.position-i.position,n=e.time-i.time;t.velocity=s/n,t.velocity/=2,Math.abs(t.velocity)150||l()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const i=t.velocity*e;let u=t.translate+i;o&&(u=-u);let p,h=!1;const m=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let f;if(ut.minTranslate())r.freeMode.momentumBounce?(u-t.minTranslate()>m&&(u=t.minTranslate()+m),p=t.minTranslate(),h=!0,c.allowMomentumBounce=!0):u=t.minTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(r.freeMode.sticky){let e;for(let t=0;t-u){e=t;break}u=Math.abs(d[e]-u){t.loopFix()}),0!==t.velocity){if(e=o?Math.abs((-u-t.translate)/t.velocity):Math.abs((u-t.translate)/t.velocity),r.freeMode.sticky){const i=Math.abs((o?-u:u)-t.translate),s=t.slidesSizesGrid[t.activeIndex];e=i{t&&!t.destroyed&&c.allowMomentumBounce&&(s("momentumBounce"),t.setTransition(r.speed),setTimeout(()=>{t.setTranslate(p),x(a,()=>{t&&!t.destroyed&&t.transitionEnd()})},0))})):t.velocity?(s("_freeModeNoMomentumRelease"),t.updateProgress(u),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,x(a,()=>{t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(u),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&s("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||u>=r.longSwipesMs)&&(s("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,i,s,n,{swiper:r,extendParams:a,on:o}=e;a({grid:{rows:1,fill:"column"}});const l=()=>{let e=r.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*r.size:"string"==typeof e&&(e=parseFloat(e)),e};o("init",()=>{n=r.params.grid&&r.params.grid.rows>1}),o("update",()=>{const{params:e,el:t}=r,i=e.grid&&e.grid.rows>1;n&&!i?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),s=1,r.emitContainerClasses()):!n&&i&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),r.emitContainerClasses()),n=i}),r.grid={initSlides:e=>{const{slidesPerView:n}=r.params,{rows:a,fill:o}=r.params.grid,l=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:e.length;s=Math.floor(l/a),t=Math.floor(l/a)===l/a?l:Math.ceil(l/a)*a,"auto"!==n&&"row"===o&&(t=Math.max(t,n*a)),i=t/a},unsetSlides:()=>{r.slides&&r.slides.forEach(e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[r.getDirectionLabel("margin-top")]="")})},updateSlide:(e,n,a)=>{const{slidesPerGroup:o}=r.params,d=l(),{rows:c,fill:u}=r.params.grid,p=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:a.length;let h,m,f;if("row"===u&&o>1){const i=Math.floor(e/(o*c)),s=e-c*o*i,r=0===i?o:Math.min(Math.ceil((p-i*c*o)/c),o);f=Math.floor(s/r),m=s-f*r+i*o,h=m+f*t/c,n.style.order=h}else"column"===u?(m=Math.floor(e/c),f=e-m*c,(m>s||m===s&&f===c-1)&&(f+=1,f>=c&&(f=0,m+=1))):(f=Math.floor(e/i),m=e-f*i);n.row=f,n.column=m,n.style.height=`calc((100% - ${(c-1)*d}px) / ${c})`,n.style[r.getDirectionLabel("margin-top")]=0!==f?d&&`${d}px`:"",n.swiperSlideGridSet=!0},updateWrapperSize:(e,i)=>{const{centeredSlides:s,roundLengths:n}=r.params,a=l(),{rows:o}=r.params.grid;if(r.virtualSize=(e+a)*t,r.virtualSize=Math.ceil(r.virtualSize/o)-a,r.params.cssMode||(r.wrapperEl.style[r.getDirectionLabel("width")]=`${r.virtualSize+a}px`),s){const e=[];for(let t=0;t{const{slides:e}=t;t.params.fadeEffect;for(let i=0;i{const i=t.slides.map(e=>f(e));i.forEach(t=>{t.style.transitionDuration=`${e}ms`}),fe({swiper:t,duration:e,transformElements:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const n=(e,t,i)=>{let s=i?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),n=i?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=b("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"left":"top")).split(" ")),e.append(s)),n||(n=b("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"right":"bottom")).split(" ")),e.append(n)),s&&(s.style.opacity=Math.max(-t,0)),n&&(n.style.opacity=Math.max(t,0))};he({effect:"cube",swiper:t,on:s,setTranslate:()=>{const{el:e,wrapperEl:i,slides:s,width:r,height:a,rtlTranslate:o,size:l,browser:d}=t,c=k(t),u=t.params.cubeEffect,p=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled;let m,f=0;u.shadow&&(p?(m=t.wrapperEl.querySelector(".swiper-cube-shadow"),m||(m=b("div","swiper-cube-shadow"),t.wrapperEl.append(m)),m.style.height=`${r}px`):(m=e.querySelector(".swiper-cube-shadow"),m||(m=b("div","swiper-cube-shadow"),e.append(m))));for(let e=0;e-1&&(f=90*i+90*d,o&&(f=90*-i-90*d)),t.style.transform=b,u.slideShadows&&n(t,d,p)}if(i.style.transformOrigin=`50% 50% -${l/2}px`,i.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,u.shadow)if(p)m.style.transform=`translate3d(0px, ${r/2+u.shadowOffset}px, ${-r/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${u.shadowScale})`;else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),i=u.shadowScale,s=u.shadowScale/t,n=u.shadowOffset;m.style.transform=`scale3d(${i}, 1, ${s}) translate3d(0px, ${a/2+n}px, ${-a/2/s}px) rotateX(-89.99deg)`}const g=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-l/2:0;i.style.transform=`translate3d(0px,0,${g}px) rotateX(${c(t.isHorizontal()?0:f)}deg) rotateY(${c(t.isHorizontal()?-f:0)}deg)`,i.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:i,slides:s}=t;if(s.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>{t.style.transitionDuration=`${e}ms`})}),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=i.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach(t=>{const i=Math.max(Math.min(t.progress,1),-1);n(t,i,e)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({flipEffect:{slideShadows:!0,limitRotation:!0}});const n=(e,i)=>{let s=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),n=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=ge("flip",e,t.isHorizontal()?"left":"top")),n||(n=ge("flip",e,t.isHorizontal()?"right":"bottom")),s&&(s.style.opacity=Math.max(-i,0)),n&&(n.style.opacity=Math.max(i,0))};he({effect:"flip",swiper:t,on:s,setTranslate:()=>{const{slides:e,rtlTranslate:i}=t,s=t.params.flipEffect,r=k(t);for(let a=0;a{const i=t.slides.map(e=>f(e));i.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>{t.style.transitionDuration=`${e}ms`})}),fe({swiper:t,duration:e,transformElements:i})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach(e=>{let i=e.progress;t.params.flipEffect.limitRotation&&(i=Math.max(Math.min(e.progress,1),-1)),n(e,i)})},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),he({effect:"coverflow",swiper:t,on:s,setTranslate:()=>{const{width:e,height:i,slides:s,slidesSizesGrid:n}=t,r=t.params.coverflowEffect,a=t.isHorizontal(),o=t.translate,l=a?e/2-o:i/2-o,d=a?r.rotate:-r.rotate,c=r.depth,u=k(t);for(let e=0,t=s.length;e0?p:0),i&&(i.style.opacity=-p>0?-p:0)}}},setTransition:e=>{t.slides.map(e=>f(e)).forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>{t.style.transitionDuration=`${e}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const n=e=>"string"==typeof e?e:`${e}px`;he({effect:"creative",swiper:t,on:s,setTranslate:()=>{const{slides:e,wrapperEl:i,slidesSizesGrid:s}=t,r=t.params.creativeEffect,{progressMultiplier:a}=r,o=t.params.centeredSlides,l=k(t);if(o){const e=s[0]/2-t.params.slidesOffsetBefore||0;i.style.transform=`translateX(calc(50% - ${e}px))`}for(let i=0;i0&&(g=r.prev,f=!0),h.forEach((e,t)=>{h[t]=`calc(${e}px + (${n(g.translate[t])} * ${Math.abs(c*a)}))`}),m.forEach((e,t)=>{let i=g.rotate[t]*Math.abs(c*a);m[t]=i}),s.style.zIndex=-Math.abs(Math.round(d))+e.length;const v=h.join(", "),b=`rotateX(${l(m[0])}deg) rotateY(${l(m[1])}deg) rotateZ(${l(m[2])}deg)`,w=u<0?`scale(${1+(1-g.scale)*u*a})`:`scale(${1-(1-g.scale)*u*a})`,y=u<0?1+(1-g.opacity)*u*a:1-(1-g.opacity)*u*a,E=`translate3d(${v}) ${b} ${w}`;if(f&&g.shadow||!f){let e=s.querySelector(".swiper-slide-shadow");if(!e&&g.shadow&&(e=ge("creative",s)),e){const t=r.shadowPerProgress?c*(1/r.limitProgress):c;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const S=me(0,s);S.style.transform=E,S.style.opacity=y,g.origin&&(S.style.transformOrigin=g.origin)}},setTransition:e=>{const i=t.slides.map(e=>f(e));i.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach(t=>{t.style.transitionDuration=`${e}ms`})}),fe({swiper:t,duration:e,transformElements:i,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),he({effect:"cards",swiper:t,on:s,setTranslate:()=>{const{slides:e,activeIndex:i,rtlTranslate:s}=t,n=t.params.cardsEffect,{startTranslate:r,isTouched:a}=t.touchEventsData,o=s?-t.translate:t.translate;for(let l=0;l0&&u<1&&(a||t.params.cssMode)&&o-1&&(a||t.params.cssMode)&&o>r;if(y||E){const e=(1-Math.abs((Math.abs(u)-.5)/.5))**.5;v+=-28*u*e,g+=-.5*e,b+=96*e,m=-25*e*Math.abs(u)+"%"}if(h=u<0?`calc(${h}px ${s?"-":"+"} (${b*Math.abs(u)}%))`:u>0?`calc(${h}px ${s?"-":"+"} (-${b*Math.abs(u)}%))`:`${h}px`,!t.isHorizontal()){const e=m;m=h,h=e}const S=u<0?""+(1+(1-g)*u):""+(1-(1-g)*u),x=`\n translate3d(${h}, ${m}, ${f}px)\n rotateZ(${n.rotate?s?-v:v:0}deg)\n scale(${S})\n `;if(n.slideShadows){let e=d.querySelector(".swiper-slide-shadow");e||(e=ge("cards",d)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(u)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(c))+e.length;me(0,d).style.transform=x}},setTransition:e=>{const i=t.slides.map(e=>f(e));i.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach(t=>{t.style.transitionDuration=`${e}ms`})}),fe({swiper:t,duration:e,transformElements:i})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];re.use(ve);const be=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function we(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function ye(e,t){const i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>i.indexOf(e)<0).forEach(i=>{void 0===e[i]?e[i]=t[i]:we(t[i])&&we(e[i])&&Object.keys(t[i]).length>0?t[i].__swiper__?e[i]=t[i]:ye(e[i],t[i]):e[i]=t[i]})}function Ee(e){return void 0===e&&(e=""),e.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}const Se=e=>{if(parseFloat(e)===Number(e))return Number(e);if("true"===e)return!0;if(""===e)return!0;if("false"===e)return!1;if("null"===e)return null;if("undefined"!==e){if("string"==typeof e&&e.includes("{")&&e.includes("}")&&e.includes('"')){let t;try{t=JSON.parse(e)}catch(i){t=e}return t}return e}},xe=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function Ce(e,t,i){const s={},n={};ye(s,te);const r=[...be,"on"],a=r.map(e=>e.replace(/_/,""));r.forEach(t=>{t=t.replace("_",""),void 0!==e[t]&&(n[t]=e[t])});const o=[...e.attributes];return"string"==typeof t&&void 0!==i&&o.push({name:t,value:we(i)?{...i}:i}),o.forEach(e=>{const t=xe.filter(t=>0===e.name.indexOf(`${t}-`))[0];if(t){const i=Ee(t),s=Ee(e.name.split(`${t}-`)[1]);void 0===n[i]&&(n[i]={}),!0===n[i]&&(n[i]={enabled:!0}),n[i][s]=Se(e.value)}else{const t=Ee(e.name);if(!a.includes(t))return;const i=Se(e.value);n[t]&&xe.includes(e.name)&&!we(i)?(n[t].constructor!==Object&&(n[t]={}),n[t].enabled=!!i):n[t]=i}}),ye(s,n),s.navigation?s.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...!0!==s.navigation?s.navigation:{}}:!1===s.navigation&&delete s.navigation,s.scrollbar?s.scrollbar={el:".swiper-scrollbar",...!0!==s.scrollbar?s.scrollbar:{}}:!1===s.scrollbar&&delete s.scrollbar,s.pagination?s.pagination={el:".swiper-pagination",...!0!==s.pagination?s.pagination:{}}:!1===s.pagination&&delete s.pagination,{params:s,passedParams:n}}const Te=":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}";const ke="undefined"==typeof window||"undefined"==typeof HTMLElement?class{}:HTMLElement,Le='\n ',Me=(e,t)=>{if("undefined"==typeof CSSStyleSheet||!e.adoptedStyleSheets||window&&window.parent&&window.location!==window.parent.location){const i=document.createElement("style");i.rel="stylesheet",i.textContent=t,e.appendChild(i)}else{const i=new CSSStyleSheet;i.replaceSync(t),e.adoptedStyleSheets=[i]}};class Pe extends ke{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return Le}static get prevButtonSvg(){return Le.replace("/>",' transform-origin="center" transform="rotate(180)"/>')}cssStyles(){return[Te,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join("\n")}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const e=this.slideSlots||0,t=[...this.querySelectorAll("[slot^=slide-]")].map(e=>parseInt(e.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=t.length?Math.max(...t)+1:0,this.rendered)if(this.slideSlots>e)for(let t=e;t=0;t-=1)t>this.slideSlots&&e[t].remove()}}render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&Me(this.shadowRoot,e),this.cssLinks().forEach(e=>{if(this.shadowRoot.querySelector(`link[href="${e}"]`))return;const t=document.createElement("link");t.rel="stylesheet",t.href=e,this.shadowRoot.appendChild(t)});const t=document.createElement("div");var i;t.classList.add("swiper"),t.part="container",t.innerHTML=`\n \n
\n \n ${Array.from({length:this.slideSlots}).map((e,t)=>`\n \n \n \n `).join("")}\n
\n \n ${i=this.passedParams,void 0===i&&(i={}),i.navigation&&void 0===i.navigation.nextEl&&void 0===i.navigation.prevEl?`\n
${this.constructor.prevButtonSvg}
\n
${this.constructor.nextButtonSvg}
\n `:""}\n ${function(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}(this.passedParams)?'\n
\n ':""}\n ${function(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}(this.passedParams)?'\n
\n ':""}\n `,this.shadowRoot.appendChild(t),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0,this.classList.add("active-swiper");const{params:t,passedParams:i}=Ce(this);this.swiperParams=t,this.passedParams=i,delete this.swiperParams.init,this.render(),this.swiper=new re(this.shadowRoot.querySelector(".swiper"),{...t.virtual?{}:{observer:!0},...t,touchEventsTarget:"container",onAny:function(i){"observerUpdate"===i&&e.calcSlideSlots();const s=t.eventsPrefix?`${t.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase();for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:c,pagination:u,navigation:p,scrollbar:h,virtual:m,thumbs:f}=t;let g,v,b,w,y,E,S,x;n.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(g=!0),n.includes("controller")&&s.controller&&s.controller.control&&c.controller&&!c.controller.control&&(v=!0),n.includes("pagination")&&s.pagination&&(s.pagination.el||l)&&(c.pagination||!1===c.pagination)&&u&&!u.el&&(b=!0),n.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||o)&&(c.scrollbar||!1===c.scrollbar)&&h&&!h.el&&(w=!0),n.includes("navigation")&&s.navigation&&(s.navigation.prevEl||a)&&(s.navigation.nextEl||r)&&(c.navigation||!1===c.navigation)&&p&&!p.prevEl&&!p.nextEl&&(y=!0);const C=e=>{t[e]&&(t[e].destroy(),"navigation"===e?(t.isElement&&(t[e].prevEl.remove(),t[e].nextEl.remove()),c[e].prevEl=void 0,c[e].nextEl=void 0,t[e].prevEl=void 0,t[e].nextEl=void 0):(t.isElement&&t[e].el.remove(),c[e].el=void 0,t[e].el=void 0))};n.includes("loop")&&t.isElement&&(c.loop&&!s.loop?E=!0:!c.loop&&s.loop?S=!0:x=!0),d.forEach(e=>{if(we(c[e])&&we(s[e]))Object.assign(c[e],s[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in s[e])||s[e].enabled||C(e);else{const t=s[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?c[e]=s[e]:!1===t&&C(e)}}),d.includes("controller")&&!v&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),n.includes("children")&&i&&m&&c.virtual.enabled?(m.slides=i,m.update(!0)):n.includes("virtual")&&m&&c.virtual.enabled&&(i&&(m.slides=i),m.update(!0)),n.includes("children")&&i&&c.loop&&(x=!0),g&&f.init()&&f.update(!0);v&&(t.controller.control=c.controller.control),b&&(!t.isElement||l&&"string"!=typeof l||(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(c.pagination.el=l),u.init(),u.render(),u.update()),w&&(!t.isElement||o&&"string"!=typeof o||(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),t.el.appendChild(o)),o&&(c.scrollbar.el=o),h.init(),h.updateSize(),h.setTranslate()),y&&(t.isElement&&(r&&"string"!=typeof r||(r=document.createElement("div"),r.classList.add("swiper-button-next"),r.innerHTML=t.hostEl.constructor.nextButtonSvg,r.part.add("button-next"),t.el.appendChild(r)),a&&"string"!=typeof a||(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=t.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),t.el.appendChild(a))),r&&(c.navigation.nextEl=r),a&&(c.navigation.prevEl=a),p.init(),p.update()),n.includes("allowSlideNext")&&(t.allowSlideNext=s.allowSlideNext),n.includes("allowSlidePrev")&&(t.allowSlidePrev=s.allowSlidePrev),n.includes("direction")&&t.changeDirection(s.direction,!1),(E||x)&&t.loopDestroy(),(S||x)&&t.loopCreate(),t.update()}({swiper:this.swiper,passedParams:this.passedParams,changedParams:[Ee(e)],..."navigation"===e&&s[e]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{},..."pagination"===e&&s[e]?{paginationEl:".swiper-pagination"}:{},..."scrollbar"===e&&s[e]?{scrollbarEl:".swiper-scrollbar"}:{}})}attributeChangedCallback(e,t,i){this.initialized&&("true"===t&&null===i&&(i=!1),this.updateSwiperOnPropChange(e,i))}static get observedAttributes(){return be.filter(e=>e.includes("_")).map(e=>e.replace(/[A-Z]/g,e=>`-${e}`).replace("_","").toLowerCase())}}be.forEach(e=>{"init"!==e&&(e=e.replace("_",""),Object.defineProperty(Pe.prototype,e,{configurable:!0,get(){return(this.passedParams||{})[e]},set(t){this.passedParams||(this.passedParams={}),this.passedParams[e]=t,this.initialized&&this.updateSwiperOnPropChange(e,t)}}))});class Ae extends ke{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||""===this.getAttribute("lazy")||"true"===this.getAttribute("lazy");if(Me(this.shadowRoot,"::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}"),this.shadowRoot.appendChild(document.createElement("slot")),e){const e=document.createElement("div");e.classList.add("swiper-lazy-preloader"),e.part.add("preloader"),this.shadowRoot.appendChild(e)}}initialize(){this.render()}connectedCallback(){this.initialize()}}"undefined"!=typeof window&&(window.SwiperElementRegisterParams=e=>{be.push(...e)}),"undefined"!=typeof window&&(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",Pe),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",Ae))}(),function(){class e extends HTMLElement{constructor(){super(),this.container=this?.parentElement?.querySelector("swiper-container"),this.addEventListener("click",this.prev.bind(this))}prev(){this.container&&this.container.swiper.slidePrev()}}class t extends HTMLElement{constructor(){super(),this.container=this?.parentElement?.querySelector("swiper-container"),this.addEventListener("click",this.next.bind(this))}next(){this.container&&this.container.swiper.slideNext()}}customElements.get("slideshow-button-prev")||customElements.define("slideshow-button-prev",e),customElements.get("slideshow-button-next")||customElements.define("slideshow-button-next",t)}(),window.hoverintent=hoverintent,window.theme=window.theme||{},window.theme.slideshow_rendered=!0,window.theme.slideshow_navigation=!0,window.theme.accordion_rendered=!0,customElements.define("backdrop-root",Backdrop),customElements.define("radio-button",RadioButton),customElements.define("radio-option",RadioOption),customElements.define("dropdown-menu",DropdownMenu),customElements.define("dropdown-trigger",DropdownTrigger),customElements.define("dropdown-option",DropdownOption),customElements.define("toggle-button",ToggleButton),customElements.define("toggle-button-checkbox",ToggleButtonCheckbox),customElements.define("range-slider",RangeSlider),customElements.define("range-slider-tooltip",RangeSliderTooltip),customElements.define("quantity-selector",QuantitySelector),customElements.define("copy-to-clipboard",CopyToClipboard),customElements.define("search-input",SearchInput,{extends:"input"}),customElements.define("search-dialog",SearchDialog),customElements.define("search-dialog-trigger",SearchDialogTrigger),customElements.define("accordion-root",AccordionRoot),customElements.define("accordion-item",AccordionItem),customElements.define("accordion-trigger",AccordionTrigger),customElements.define("accordion-content",AccordionContent),customElements.define("pagination-nav",PaginationNav),customElements.define("pagination-link",PaginationLink),customElements.define("address-modal",AddressModal),customElements.define("address-add-button",AddressAddButton),customElements.define("address-edit-button",AddressEditButton),customElements.define("address-modal-close-button",AddressModalCloseButton),customElements.define("address-modal-submit-button",AddressModalSubmitButton),customElements.define("address-remove-modal",AddressRemoveModal),customElements.define("address-remove-button",AddressRemoveButton),customElements.define("address-remove-modal-close-button",AddressRemoveModalCloseButton),customElements.define("address-remove-modal-submit-button",AddressRemoveModalSubmitButton),customElements.define("filter-input-boolean",FilterInputBoolean),customElements.define("filter-input-list",FilterInputList),customElements.define("filter-input-price-range",FilterInputPriceRange),customElements.define("filters-clear",FiltersClear),customElements.define("mega-menu-root",MegaMenu),customElements.define("cascading-menu-root",CascadingMenu),customElements.define("menu-drawer",MenuDrawer),customElements.define("cart-root",Cart),customElements.define("cart-drawer-root",CartDrawer),customElements.define("cart-count",CartCount),customElements.define("cart-item-quantity",CartItemQuantity),customElements.define("cart-item-remove",CartItemRemove),customElements.define("product-section",ProductSection),customElements.define("product-quantity",ProductQuantity),customElements.define("product-options",ProductOptions),customElements.define("product-option-select",ProductOptionSelect),customElements.define("product-option-toggle",ProductOptionToggle),customElements.define("product-option-text",ProductOptionText),customElements.define("product-option-giftcard",ProductOptionGiftcard),customElements.define("giftcard-send",GiftcardSend),customElements.define("giftcard-send-email",GiftcardSendEmail),customElements.define("giftcard-send-note",GiftcardSendNote),customElements.define("giftcard-send-note-count",GiftcardSendNoteCount),customElements.define("product-purchase-options",ProductPurchaseOptions),customElements.define("product-purchase-option-standard",ProductPurchaseOptionStandard),customElements.define("product-purchase-option-subscription",ProductPurchaseOptionSubscription),customElements.define("product-list-section",ProductListSection),customElements.define("product-sort",ProductSort),customElements.define("product-filters",ProductFilters),customElements.define("product-filter-sidebar",ProductFilterSidebar),customElements.define("product-filter-drawer",ProductFilterDrawer),customElements.define("product-filter-toggle",ProductFilterToggle),customElements.define("account-nav",AccountNav),customElements.define("account-nav-drawer",AccountNavDrawer),customElements.define("account-nav-trigger",AccountNavTrigger),customElements.define("account-details",AccountDetails),customElements.define("account-subscription-modal",AccountSubscriptionModal),customElements.define("account-subscription-modal-close-button",AccountSubscriptionModalCloseButton),customElements.define("account-subscription-modal-submit-button",AccountSubscriptionModalSubmitButton),customElements.define("account-subscription-action-button",AccountSubscriptionActionButton),customElements.define("account-login",AccountLogin),customElements.define("account-reset-password",AccountResetPassword),customElements.define("account-register",AccountRegister),customElements.define("account-recover",AccountRecover),customElements.define("announcement-root",Announcement),loadIonIcons();