@orangesk/cms-templates 1.0.0-beta.38 → 1.0.0-beta.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/changelog/index.html +17 -2
- package/build/components/ContactFormB2B/index.html +1 -1
- package/build/index.html +2 -2
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/scripts.js +1 -1
- package/build/lib/scripts.js.map +1 -1
- package/build/lib/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/pages/basic-page-about-the-brand/index.html +1 -1
- package/build/pages/basic-page-gdpr/index.html +1 -1
- package/build/pages/blog-homepage-clovek/index.html +1 -1
- package/build/pages/blog-news-clovek/index.html +1 -1
- package/build/pages/blog-post-clovek/index.html +1 -1
- package/build/pages/business-trends-homepage/index.html +1 -1
- package/build/pages/business-trends-news/index.html +1 -1
- package/build/pages/business-trends-post/index.html +1 -1
- package/build/pages/career-at-orange/index.html +1 -1
- package/build/pages/components/basic/index.html +1 -1
- package/build/pages/components/benefit-section/index.html +1 -1
- package/build/pages/components/cards-section/index.html +1 -1
- package/build/pages/components/hero/index.html +1 -1
- package/build/pages/components/process-section/index.html +1 -1
- package/build/pages/components/promo-banner/index.html +1 -1
- package/build/pages/components/tiles-section/index.html +1 -1
- package/build/pages/device-lp-b2b/index.html +1 -1
- package/build/pages/device-lp-b2c/index.html +1 -1
- package/build/pages/device-lp-dvojicky-b2b/index.html +1 -1
- package/build/pages/device-lp-dvojicky-b2c/index.html +1 -1
- package/build/pages/digital-invoice/index.html +1 -1
- package/build/pages/help-and-support-b2b/index.html +1 -1
- package/build/pages/help-and-support-b2c/index.html +1 -1
- package/build/pages/homepage-b2b/index.html +1 -1
- package/build/pages/homepage-b2c/index.html +1 -1
- package/build/pages/increased-invoice/index.html +1 -1
- package/build/pages/invoices-and-payments/index.html +1 -1
- package/build/pages/job-offer-detail/index.html +1 -1
- package/build/pages/manuals-and-settings/index.html +1 -1
- package/build/pages/manuals-and-settings-general-template/index.html +1 -1
- package/build/pages/navody-a-nastavenia-apple-ios-16/index.html +1 -1
- package/build/pages/orange-tv-box/index.html +1 -1
- package/build/pages/press-and-news-releases/index.html +1 -1
- package/build/pages/press-and-news-releases-post/index.html +1 -1
- package/build/pages/press-center-docs-library/index.html +1 -1
- package/build/pages/press-center-general-terms/index.html +1 -1
- package/build/pages/press-center-informations-for-customers/index.html +1 -1
- package/build/pages/pricelist/index.html +1 -1
- package/build/pages/pricelist-tariff/index.html +1 -1
- package/build/pages/product-page-b2b-market-locator/index.html +1 -1
- package/build/pages/product-page-b2b-microsoft-365/index.html +1 -1
- package/build/pages/product-page-b2b-soc-as-a-service/index.html +1 -1
- package/build/pages/product-page-b2c-equipment-insurance/index.html +1 -1
- package/build/pages/product-page-b2c-online-security/index.html +1 -1
- package/build/pages/product-page-b2c-prima-volba/index.html +1 -1
- package/build/pages/roaming-b2b/index.html +1 -1
- package/build/pages/roaming-b2c/index.html +1 -1
- package/build/pages/roaming-b2c-detail/index.html +1 -1
- package/build/pages/roaming-b2c-overview/index.html +1 -1
- package/build/pages/signpost-insurance/index.html +1 -1
- package/build/pages/signpost-products-and-services/index.html +1 -1
- package/build/pages/tv-first-aid/index.html +1 -1
- package/build/pages/work-on-central/index.html +1 -1
- package/build/readme/index.html +1 -1
- package/package.json +6 -6
package/build/lib/scripts.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function e(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}const t="countdown",n=`${t}__value`,i="is-flipping",s="data-countdown-unit",r=`.${t}__announcement`,o=`.${t}__unit`,a=`.${t}__label`,l=`[${s}]`,c=[`.${t}__top .${n}`,`.${t}__leaf-front .${n}`,`.${t}__leaf-back .${n}`,`.${t}__bottom .${n}`].join(", "),d=["days","hours","minutes","seconds"],u={days:864e5,hours:36e5,minutes:6e4,seconds:1e3},h=e=>e?.length?d.filter(t=>e.includes(t)):[...d],p=(e,t)=>"string"==typeof e&&e.trim()?{many:e,few:e,one:e}:e&&"object"==typeof e&&"string"==typeof e.many&&"string"==typeof e.few&&"string"==typeof e.one?e:t,f=(e,t)=>{const n=(e=>{const t=new Date(e).getTime();return Number.isNaN(t)?0:t})(e);let i=Math.max(0,n-Date.now());const s={days:0,hours:0,minutes:0,seconds:0};return t.forEach(e=>{const t=Math.floor(i/u[e]);s[e]=t,i-=t*u[e]}),s};class m{element;config;liveRegion;timerId;observer;instanceKey;defaultConfig;constructor(e,t,n){this.element=e,this.defaultConfig=n.defaultConfig,this.instanceKey=n.instanceKey,this.config={...n.defaultConfig,...t??{}},this.liveRegion=null,this.tick=this.tick.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.element[this.instanceKey]=this}readDataConfig(){const e=this.element.getAttribute("data-countdown-config");if(!e)return{};try{return JSON.parse(e)}catch(e){return{}}}getLiveRegion(){return this.element.querySelector(r)}scheduleNextTick(){this.stop();const e=1e3-Date.now()%1e3||1e3;this.timerId=window.setTimeout(this.tick,e)}tick(){this.render(),this.scheduleNextTick()}setupObserver(){"undefined"!=typeof IntersectionObserver?(this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.start():this.stop()})}),this.observer.observe(this.element)):this.start()}init(){const e=this.readDataConfig();this.config={...this.defaultConfig,...e,...this.config},this.liveRegion=this.getLiveRegion(),this.collectElements(),this.render(),this.setupObserver()}start(){this.render(),this.scheduleNextTick()}stop(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)}update(e){this.stop(),this.observer?.disconnect(),this.destroyElements(),this.config={...this.config,...e??{}},this.init()}destroy(){this.stop(),this.observer?.disconnect(),this.destroyElements(),this.element[this.instanceKey]=null}}const g={many:"d",few:"d",one:"d"},v={days:g,hours:"h",minutes:"m",seconds:"s"},b={targetDate:"",units:["days","hours","minutes","seconds"],labels:v},y=(e,t)=>"days"===e?p(t.days,g).many:t[e],w={TAB:["Tab"],ESC:["Esc","Escape"],ARROWLEFT:["Left","ArrowLeft"],ARROWUP:["Up","ArrowUp"],ARROWRIGHT:["Right","ArrowRight"],ARROWDOWN:["Down","ArrowDown"]};class _{constructor(e,t={direction:"horizontal"}){this.elems=e,this.config=t,this.isActive=!1,this.onKeydown=this.onKeydown.bind(this)}init(){document.addEventListener("keydown",this.onKeydown),this.isActive=!0}destroy(){document.removeEventListener("keydown",this.onKeydown),this.isActive=!1}update(e){this.elems=e}onKeydown(e){const t=this.elems.indexOf(document.activeElement);(w.ARROWUP.includes(e.key)||w.ARROWDOWN.includes(e.key))&&"horizontal"===this.config.direction||(w.ARROWLEFT.includes(e.key)||w.ARROWRIGHT.includes(e.key))&&"vertical"===this.config.direction||((w.ARROWDOWN.includes(e.key)||w.ARROWRIGHT.includes(e.key))&&(e.preventDefault(),t>=0&&t<this.elems.length-1?this.elems[t+1].focus():this.elems[0].focus()),(w.ARROWUP.includes(e.key)||w.ARROWLEFT.includes(e.key))&&(e.preventDefault(),t>=1?this.elems[t-1].focus():this.elems[this.elems.length-1].focus()),w.TAB.includes(e.key)&&this.destroy())}}const S={buttonSelector:"[data-accordion-toggle]"};class E{static MODAL_OPEN_BODY_CLASS="has-modal";static STICKY_FLOAT_TOLERANCE=3;static SCROLLSPY_CENTER_BUFFER=50;static TOP_SECTION_THRESHOLD=100;static DRAG_START_THRESHOLD=6;static SCROLL_END_DEBOUNCE_MS=150;static SCROLL_EDGE_TOLERANCE=1;static SCROLL_ALIGNMENT_TOLERANCE=1;static MAX_SCROLL_CORRECTIONS=2;element;contentLeftElement;megamenuElement;resizeObserver;supportsScrollEnd;anchorClickHandler;scrollHandler;scrollSpyHandler;scrollEndHandler;scrollEndFallbackHandler;resizeHandler;mouseDownHandler;dragStartHandler;dragMoveHandler;dragEndHandler;horizontalScrollHandler;nativeDragStartHandler;isAutoScrolling=!1;isPointerDown=!1;isDraggingNav=!1;suppressClick=!1;dragStartX=0;dragStartScrollLeft=0;scrollTimeout=null;scrollEndFallbackTimeout=null;navLinks=null;sections=[];currentPath;lastActiveIndex=0;autoScrollTargetId=null;autoScrollCorrectionCount=0;lastStickyOffset=0;modalClassObserver=null;modalStateHandler;isForcedFixed=!1;wasStickyFloating=!1;forcedFixedTop=0;forcedFixedLeft=0;fixedFlowPlaceholder=null;originalInlineStyles=null;constructor(e){return this.element=e,this.contentLeftElement=null,this.megamenuElement=null,this.resizeObserver=null,this.supportsScrollEnd="onscrollend"in window,this.isAutoScrolling=!1,this.currentPath=window.location.pathname,this.anchorClickHandler=this.handleAnchorClick.bind(this),this.scrollHandler=this.updateStickyPosition.bind(this),this.scrollSpyHandler=this.handleScrollSpy.bind(this),this.scrollEndHandler=this.handleScrollEnd.bind(this),this.scrollEndFallbackHandler=this.handleScrollEndFallback.bind(this),this.resizeHandler=this.handleResize.bind(this),this.mouseDownHandler=this.handleMouseDown.bind(this),this.dragStartHandler=this.handleDragStart.bind(this),this.dragMoveHandler=this.handleDragMove.bind(this),this.dragEndHandler=this.handleDragEnd.bind(this),this.horizontalScrollHandler=this.updateHorizontalOverflowState.bind(this),this.nativeDragStartHandler=this.handleNativeDragStart.bind(this),this.modalStateHandler=this.handleModalStateChange.bind(this),this.element.ODS_AnchorNavigation=this,this.init(),this}static getInstance(e){return e&&e.ODS_AnchorNavigation?e.ODS_AnchorNavigation:null}findMegamenuElement(){return document.querySelector("[data-megamenu]")}getMegamenuOffsetHeight(){return this.megamenuElement?.offsetHeight||0}updateStickyPosition(){if(this.isForcedFixed)return;if(!this.megamenuElement)return;const e=this.getMegamenuOffsetHeight(),t=e!==this.lastStickyOffset;if(this.lastStickyOffset=e,this.element.style.top=`${e}px`,this.updateStickyFloatingState(),!t||!this.isAutoScrolling||!this.autoScrollTargetId||this.autoScrollCorrectionCount>=E.MAX_SCROLL_CORRECTIONS)return;const n=document.getElementById(this.autoScrollTargetId);n&&(this.autoScrollCorrectionCount+=1,this.scrollToSection(n,"smooth"))}setupMegamenuObserver(){if(this.megamenuElement=this.findMegamenuElement(),!this.megamenuElement)return this.lastStickyOffset=0,void(this.element.style.top="0px");this.updateStickyPosition(),window.addEventListener("scroll",this.scrollHandler,{passive:!0}),this.resizeObserver=new ResizeObserver(this.updateStickyPosition.bind(this)),this.resizeObserver.observe(this.megamenuElement)}setupScrollSpy(){document.documentElement.style.setProperty("--extra-scroll-margin",this.element.offsetHeight+"px"),this.navLinks=this.element.querySelectorAll(".anchor-navigation__item"),this.sections=Array.from(this.navLinks||[]).map(e=>e.getAttribute("href")).filter(e=>e?.includes("#")).map(e=>document.getElementById(e.split("#")[1])).filter(Boolean),this.teardownScrollSpyListeners(),this.element.addEventListener("click",this.anchorClickHandler),this.element.addEventListener("mousedown",this.mouseDownHandler),window.addEventListener("scroll",this.scrollSpyHandler,{passive:!0}),this.supportsScrollEnd?window.addEventListener("scrollend",this.scrollEndHandler):window.addEventListener("scroll",this.scrollEndFallbackHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler),this.initScrollSpy(),this.alignInitialHashIfNeeded()}teardownScrollSpyListeners(){this.element.removeEventListener("click",this.anchorClickHandler),this.element.removeEventListener("mousedown",this.mouseDownHandler),window.removeEventListener("scroll",this.scrollSpyHandler),window.removeEventListener("resize",this.resizeHandler),this.supportsScrollEnd?window.removeEventListener("scrollend",this.scrollEndHandler):window.removeEventListener("scroll",this.scrollEndFallbackHandler),this.scrollEndFallbackTimeout&&(clearTimeout(this.scrollEndFallbackTimeout),this.scrollEndFallbackTimeout=null)}handleMouseDown(e){if(0!==e.button)return;const t=e.target;t&&this.element.contains(t)&&(t.closest("a, button, input, select, textarea, label, [role='button'], [contenteditable='true']")||e.preventDefault())}handleAnchorClick(e){if(this.suppressClick)return e.preventDefault(),e.stopPropagation(),void(this.suppressClick=!1);const t=e.target,n=t?.closest(".anchor-navigation__item");if(!n||!this.element.contains(n))return;e.preventDefault();const i=n.getAttribute("href");if(!i||!i.includes("#"))return;const s=i.split("#")[1],r=document.getElementById(s);if(!r)return;this.startAutoScroll(s),n.blur(),this.scrollToSection(r,"smooth");const o=`${window.location.pathname}${window.location.search}#${s}`;window.history.pushState(null,"",o),this.initScrollSpy(s)}getHashSectionId(){const e=window.location.hash;if(!e||e.length<=1)return null;let t=e.slice(1);try{t=decodeURIComponent(t)}catch{}return t||null}startAutoScroll(e){this.isAutoScrolling=!0,this.autoScrollTargetId=e,this.autoScrollCorrectionCount=0}resetAutoScrollState(){this.isAutoScrolling=!1,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0}tryCorrectAutoScrollAlignment(){if(!this.autoScrollTargetId)return!0;const e=document.getElementById(this.autoScrollTargetId);if(!e)return!0;const t=this.getTargetTop(e);if(Math.abs(window.scrollY-t)<=E.SCROLL_ALIGNMENT_TOLERANCE)return!0;if(this.autoScrollCorrectionCount>=E.MAX_SCROLL_CORRECTIONS)return!0;this.autoScrollCorrectionCount+=1;const n=1===this.autoScrollCorrectionCount?"smooth":"auto";return this.scrollToSection(e,n),!1}getTotalStickyOffset(){return(this.megamenuElement?this.megamenuElement.offsetHeight:0)+this.element.offsetHeight}getConfiguredScrollPaddingTop(){const e=window.getComputedStyle(document.documentElement).scrollPaddingTop,t=Number.parseFloat(e);return Number.isFinite(t)&&t>0?t:0}getEffectiveScrollOffset(){const e=this.getConfiguredScrollPaddingTop();return e>0?e:this.getTotalStickyOffset()}getTargetTop(e){const t=e.getBoundingClientRect().top+window.scrollY-this.getEffectiveScrollOffset();return Math.max(0,t)}scrollToSection(e,t){window.scrollTo({top:this.getTargetTop(e),behavior:t})}alignInitialHashIfNeeded(){const e=this.getHashSectionId();if(!e)return;const t=document.getElementById(e);t&&(this.startAutoScroll(e),requestAnimationFrame(()=>{this.scrollToSection(t,"auto"),requestAnimationFrame(()=>{this.handleScrollEnd()})}))}initScrollSpy(e=null){if(!this.navLinks||!this.sections.length)return;let t,n=-1;if(this.navLinks.forEach(e=>e.classList.remove("is-active")),e)t=document.getElementById(e)||void 0,t&&(n=this.sections.findIndex(t=>t.id===e));else{const e=this.getEffectiveScrollOffset(),i=window.scrollY+e+E.SCROLLSPY_CENTER_BUFFER;for(let e=0;e<this.sections.length;e++){const s=this.sections[e],{top:r,height:o}=s.getBoundingClientRect(),a=r+window.scrollY;if(i>=a&&i<a+o){t=s,n=e;break}}}if(t||(window.scrollY<=E.TOP_SECTION_THRESHOLD?(n=0,t=this.sections[0]):(n=this.lastActiveIndex,t=this.sections[n])),n>=0&&(this.lastActiveIndex=n),t){const n=t.getAttribute("id");let i=this.element.querySelector(`.anchor-navigation__item[href="#${n}"]`);if(i||(i=this.element.querySelector(`.anchor-navigation__item[href="${this.currentPath}#${n}"]`)),i||(i=Array.from(this.navLinks).find(e=>{const t=e.getAttribute("href");return t&&t.endsWith(`#${n}`)})),i){i.classList.add("is-active");const t=this.element.querySelector(".anchor-navigation__content-left");t&&this.scrollActiveLinkIntoView(t,i,Boolean(e))}}}scrollActiveLinkIntoView(e,t,n=!1){const i=Math.max(0,e.scrollWidth-e.clientWidth),s=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=r.left-s.left+e.scrollLeft+r.width/2-e.clientWidth/2,a=window.innerWidth<768?"auto":"smooth",l=Math.min(i,Math.max(0,o)),c=Math.abs(e.scrollLeft-l)<=E.SCROLL_ALIGNMENT_TOLERANCE;!n&&c||("function"!=typeof e.scrollTo?e.scrollLeft=l:e.scrollTo({left:l,behavior:a}))}setupDragScroll(){this.teardownDragScroll(),this.contentLeftElement=this.element.querySelector(".anchor-navigation__content-left"),this.contentLeftElement&&(this.contentLeftElement.addEventListener("mousedown",this.dragStartHandler),this.contentLeftElement.addEventListener("dragstart",this.nativeDragStartHandler),this.contentLeftElement.addEventListener("scroll",this.horizontalScrollHandler,{passive:!0}),this.updateDragState(),this.updateHorizontalOverflowState())}teardownDragScroll(){this.contentLeftElement&&(this.contentLeftElement.removeEventListener("mousedown",this.dragStartHandler),this.contentLeftElement.removeEventListener("dragstart",this.nativeDragStartHandler),this.contentLeftElement.removeEventListener("scroll",this.horizontalScrollHandler),this.contentLeftElement.classList.remove("is-draggable","is-dragging")),window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler),this.contentLeftElement=null,this.isPointerDown=!1,this.isDraggingNav=!1,this.suppressClick=!1,this.dragStartX=0,this.dragStartScrollLeft=0}updateDragState(){if(!this.contentLeftElement)return;const e="function"==typeof window.matchMedia?window.matchMedia("(pointer: fine)"):null,t=!e||e.matches,n=this.contentLeftElement.scrollWidth>this.contentLeftElement.clientWidth,i=t&&n;this.contentLeftElement.classList.toggle("is-draggable",i),i||(this.contentLeftElement.classList.remove("is-dragging"),this.isPointerDown=!1,this.isDraggingNav=!1,this.suppressClick=!1,window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler)),this.updateHorizontalOverflowState()}updateHorizontalOverflowState(){if(!this.contentLeftElement)return;const e=this.element.querySelector(".anchor-navigation__content");if(!e)return;const t=this.contentLeftElement.scrollWidth-this.contentLeftElement.clientWidth,n=t>E.SCROLL_EDGE_TOLERANCE,i=this.contentLeftElement.scrollLeft<=E.SCROLL_EDGE_TOLERANCE,s=this.contentLeftElement.scrollLeft>=t-E.SCROLL_EDGE_TOLERANCE;e.classList.toggle("has-left-overflow",n&&!i),e.classList.toggle("has-right-overflow",n&&!s)}handleDragStart(e){0===e.button&&this.contentLeftElement&&this.contentLeftElement.classList.contains("is-draggable")&&(this.isPointerDown=!0,this.isDraggingNav=!1,this.suppressClick=!1,this.dragStartX=e.clientX,this.dragStartScrollLeft=this.contentLeftElement.scrollLeft,window.addEventListener("mousemove",this.dragMoveHandler),window.addEventListener("mouseup",this.dragEndHandler))}handleDragMove(e){if(!this.isPointerDown||!this.contentLeftElement)return;const t=e.clientX-this.dragStartX;!this.isDraggingNav&&Math.abs(t)>=E.DRAG_START_THRESHOLD&&(this.isDraggingNav=!0,this.suppressClick=!0,this.contentLeftElement.classList.add("is-dragging")),this.isDraggingNav&&(e.preventDefault(),this.contentLeftElement.scrollLeft=this.dragStartScrollLeft-t)}handleDragEnd(){if(!this.isPointerDown)return;this.isPointerDown=!1,window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler),this.contentLeftElement&&this.contentLeftElement.classList.remove("is-dragging");const e=this.isDraggingNav;this.isDraggingNav=!1,e&&window.setTimeout(()=>{this.suppressClick=!1},0)}handleNativeDragStart(e){this.contentLeftElement?.classList.contains("is-draggable")&&e.preventDefault()}handleScrollEndFallback(){this.scrollEndFallbackTimeout&&clearTimeout(this.scrollEndFallbackTimeout),this.scrollEndFallbackTimeout=setTimeout(()=>{this.handleScrollEnd()},E.SCROLL_END_DEBOUNCE_MS)}handleResize(){if(this.isForcedFixed){const e=this.element.parentElement?.getBoundingClientRect(),t=this.getMegamenuOffsetHeight();e&&(this.forcedFixedLeft=Math.round(e.left),this.element.style.width=`${Math.round(e.width)}px`),t>0&&(this.forcedFixedTop=t),this.element.style.top=`${this.forcedFixedTop}px`,this.element.style.left=`${this.forcedFixedLeft}px`,this.fixedFlowPlaceholder&&(this.fixedFlowPlaceholder.style.height=`${this.element.offsetHeight}px`)}else this.updateStickyFloatingState();this.initScrollSpy(),this.updateDragState(),this.updateHorizontalOverflowState()}isAnyModalOpen(){return document.body.classList.contains(E.MODAL_OPEN_BODY_CLASS)}isCurrentlyStickyFloating(){if(!this.megamenuElement)return!1;const e=this.getMegamenuOffsetHeight();return this.element.getBoundingClientRect().top<=e+E.STICKY_FLOAT_TOLERANCE}updateStickyFloatingState(){this.isAnyModalOpen()||this.isForcedFixed||(this.wasStickyFloating=this.isCurrentlyStickyFloating())}ensureFixedFlowPlaceholder(){this.fixedFlowPlaceholder||(this.fixedFlowPlaceholder=document.createElement("div"),this.fixedFlowPlaceholder.setAttribute("aria-hidden","true"),this.fixedFlowPlaceholder.style.width="100%",this.fixedFlowPlaceholder.style.pointerEvents="none",this.fixedFlowPlaceholder.style.visibility="hidden",this.element.insertAdjacentElement("afterend",this.fixedFlowPlaceholder)),this.fixedFlowPlaceholder.style.height=`${this.element.offsetHeight}px`}removeFixedFlowPlaceholder(){this.fixedFlowPlaceholder&&(this.fixedFlowPlaceholder.remove(),this.fixedFlowPlaceholder=null)}applyFixedPosition(){if(this.isForcedFixed)return;const e=this.element.getBoundingClientRect(),t=this.element.parentElement?.getBoundingClientRect(),n=this.getMegamenuOffsetHeight();this.originalInlineStyles={position:this.element.style.position,top:this.element.style.top,left:this.element.style.left,right:this.element.style.right,width:this.element.style.width},this.forcedFixedTop=n>0?n:Math.max(0,Math.round(e.top)),this.forcedFixedLeft=Math.max(0,Math.round(t?.left??e.left));const i=Math.round(t?.width??e.width);this.element.style.position="fixed",this.element.style.top=`${this.forcedFixedTop}px`,this.element.style.left=`${this.forcedFixedLeft}px`,this.element.style.right="",this.element.style.width=`${i}px`,this.ensureFixedFlowPlaceholder(),this.isForcedFixed=!0}restoreStickyPosition(e=!0){if(!this.isForcedFixed)return;const t=this.originalInlineStyles;this.element.style.position=t?.position||"",this.element.style.top=t?.top||"",this.element.style.left=t?.left||"",this.element.style.right=t?.right||"",this.element.style.width=t?.width||"",this.resetFixedPositionState(),e&&(this.updateStickyPosition(),this.initScrollSpy())}handleModalStateChange(){this.isAnyModalOpen()?(this.isForcedFixed||this.wasStickyFloating)&&this.applyFixedPosition():(this.restoreStickyPosition(!1),this.updateStickyFloatingState())}setupModalObserver(){this.updateStickyFloatingState(),this.handleModalStateChange(),document.body&&"undefined"!=typeof MutationObserver&&(this.modalClassObserver=new MutationObserver(this.modalStateHandler),this.modalClassObserver.observe(document.body,{attributes:!0,attributeFilter:["class"]}))}teardownModalObserver(){this.modalClassObserver&&(this.modalClassObserver.disconnect(),this.modalClassObserver=null)}teardownMegamenuObserver(){window.removeEventListener("scroll",this.scrollHandler),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}clearAutoScrollTimers(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null)}resetFixedPositionState(){this.originalInlineStyles=null,this.isForcedFixed=!1,this.wasStickyFloating=!1,this.forcedFixedTop=0,this.forcedFixedLeft=0,this.removeFixedFlowPlaceholder()}resetNavigationState(){this.megamenuElement=null,this.lastStickyOffset=0,this.navLinks=null,this.sections=[],this.lastActiveIndex=0,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0,this.resetFixedPositionState()}handleScrollSpy(){this.isAutoScrolling?(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.handleScrollEnd()},E.SCROLL_END_DEBOUNCE_MS)):this.initScrollSpy()}handleScrollEnd(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.tryCorrectAutoScrollAlignment()&&(this.resetAutoScrollState(),this.initScrollSpy())}init(){this.setupMegamenuObserver(),this.setupScrollSpy(),this.setupDragScroll(),this.setupModalObserver()}destroy(){this.clearAutoScrollTimers(),this.teardownMegamenuObserver(),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.teardownModalObserver(),this.restoreStickyPosition(!1),this.element.style.top="",this.resetNavigationState(),this.element.ODS_AnchorNavigation=null}update(){this.clearAutoScrollTimers(),this.teardownMegamenuObserver(),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.teardownModalObserver(),this.restoreStickyPosition(!1),this.resetNavigationState(),this.init()}}const x={controlSelector:".block-action__control",indicatorSelector:".block-action__indicator",activeClass:"is-indicating"};function C(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function T(e,t=0){return setTimeout(e,t)}function A(){return Date.now()}function k(e){return"object"==typeof e&&null!==e&&!!e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function O(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||!!e&&"object"==typeof e&&(1===e.nodeType||11===e.nodeType)}function L(e,...t){const n=Object(e);for(let e=0;e<t.length;e+=1){const i=t[e];if(null==i||O(i))continue;const s=i,r=Object.keys(Object(s));for(let e=0,t=r.length;e<t;e+=1){const t=r[e];if("__proto__"===t||"constructor"===t||"prototype"===t)continue;const i=Object.getOwnPropertyDescriptor(s,t);if(!i||!i.enumerable)continue;const o=s[t];k(n[t])&&k(o)?o.__swiper__?n[t]=o:L(n[t],o):!k(n[t])&&k(o)?(n[t]={},o.__swiper__?n[t]=o:L(n[t],o)):n[t]=o}}return n}function D(e,t,n){e.style.setProperty(t,n)}function M(e,t=""){const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(e=>e.matches(t)):n}function P(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:C(t)),n}function I(e){const t=e.getBoundingClientRect();return{top:t.top-(e.clientTop||0),left:t.left-(e.clientLeft||0)}}function N(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}function R(e){if(e&&e.parentNode)return[...e.parentNode.children].indexOf(e)}function z(e,t){const n=[];let i=e.parentElement;for(;i;)t&&!i.matches(t)||n.push(i),i=i.parentElement;return n}function B(e,t,n){{const n=window.getComputedStyle(e,null);return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getPropertyValue("width"===t?"margin-left":"margin-bottom"))}}function F(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function H(e,t=""){const n=globalThis.trustedTypes;e.innerHTML=void 0!==n?n.createPolicy("html",{createHTML:e=>e}).createHTML(t):t}let $,V,j;function q(){return $||($="undefined"==typeof window?{touch:!1}:{touch:"ontouchstart"in window||navigator.maxTouchPoints>0}),$}function W(e={}){return V||(V=function({userAgent:e}={}){if("undefined"==typeof window)return{ios:!1,android:!1};const t=q(),n=navigator.platform,i=e||navigator.userAgent,s={ios:!1,android:!1},r=/(Android);?[\s/]+([\d.]+)?/.test(i),o=/(iPhone\sOS|iOS|iPod)/.test(i),a=/iPad/.test(i),l="MacIntel"===n&&t.touch&&navigator.maxTouchPoints>1,c=a||l;return r&&!("Win32"===n)&&(s.os="android",s.android=!0),(c||o)&&(s.os="ios",s.ios=!0),s}(e)),V}function U(){return j||(j=function(){if("undefined"==typeof window)return{isSafari:!1,isWebView:!1,need3dFix:!1};const e=W(),t=navigator.userAgent,n=t.toLowerCase(),i=n.includes("safari")&&!n.includes("chrome")&&!n.includes("android"),s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t);return{isSafari:i,isWebView:s,need3dFix:i||s&&e.ios}}()),j}const G=(e,t)=>{if(!e||e.destroyed||!e.params||!e.params.lazyPreload)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{if(n.shadowRoot){const t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`);t&&!t.lazyPreloaderManaged&&t.remove()}})),t&&!t.lazyPreloaderManaged&&t.remove()}},Y=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},X=e=>{if(!e||e.destroyed||!e.params||!e.params.lazyPreload)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&(e.params.grid.rows??1)>1){const n=s,r=[n-t];return r.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{void 0!==t.column&&r.includes(t.column)&&Y(e,n)})}const r=s+i-1;if(e.params.rewind||e.params.loop)for(let i=s-t;i<=r+t;i+=1){const t=(i%n+n)%n;(t<s||t>r)&&Y(e,t)}else for(let i=Math.max(s-t,0);i<=Math.min(r+t,n-1);i+=1)i!==s&&(i>r||i<s)&&Y(e,i)},K=(e,t)=>!!(e.grid&&t.grid&&t.grid.rows>1);var J={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:s}=e,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const o="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,a=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:document.querySelector(i.breakpointsBase),l=e.getBreakpoint(r,o,a);if(!l||e.currentBreakpoint===l)return;const c=(l in r?r[l]:void 0)||e.originalParams,d=K(e,i),u=K(e,c),h=e.params.grabCursor,p=c.grabCursor,f=i.enabled;d&&!u?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&u&&(s.classList.add(`${i.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!p?e.unsetGrabCursor():!h&&p&&e.setGrabCursor();const m=(e,t)=>e[t];["navigation","pagination","scrollbar"].forEach(t=>{const n=m(c,t);if(void 0===n)return;const s=m(i,t),r="object"==typeof s&&null!==s&&s.enabled,o="object"==typeof n&&null!==n&&n.enabled,a=e[t];r&&!o&&a?.disable?.(),!r&&o&&a?.enable?.()});const g=c.direction&&c.direction!==i.direction,v=i.loop&&(c.slidesPerView!==i.slidesPerView||g),b=i.loop;g&&n&&e.changeDirection(),L(e.params,c);const y=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!y?e.disable():!f&&y&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",c),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&w?(e.loopCreate(t),e.updateSlides()):b&&!w&&e.loopDestroy()),e.emit("breakpoint",c)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const s="window"===t?window.innerHeight:n.clientHeight,r=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}});r.sort((e,t)=>parseInt(String(e.value),10)-parseInt(String(t.value),10));for(let e=0;e<r.length;e+=1){const{point:s,value:o}=r[e];"window"===t?window.matchMedia(`(min-width: ${o}px)`).matches&&(i=s):o<=n.clientWidth&&(i=s)}return i||"max"}},Q={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:s,device:r}=e,o=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(i=>{e[i]&&n.push(t+i)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),s.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}};const Z={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,snapToSlideEdge:!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",lazyPreload:!0,lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};var ee={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=n?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][s](t)}),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=function(...n){i.off(e,s),s.__emitterProxy&&delete s.__emitterProxy,t.apply(i,n)};return s.__emitterProxy=t,i.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(s,1)})}),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,i,s;if("string"==typeof e[0]||Array.isArray(e[0]))n=e[0],i=e.slice(1,e.length),s=t;else{const r=e[0];n=r.events,i=r.data??[],s=r.context||t}return i.unshift(s),(Array.isArray(n)?n:n.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(s,[e,...i])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(s,i)})}),t}};function te(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function ne(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}function ie(e){const t=this;t.destroyed||(G(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update())}function se(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:r}=e,o=e.virtual&&e.params.virtual?.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a)e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=o?e.virtual.slides.length:e.slides.length;e.slideTo(t-1,0,!1,!0)}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){const t=e.autoplay;clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)}e.allowSlidePrev=s,e.allowSlideNext=i,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function re(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let s;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();s=0===r?0:(e.translate-e.minTranslate())/r,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function oe(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let i=e.originalEvent??e;if("touchend"===i.type||"touchcancel"===i.type){const e=[...i.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&(!["pointercancel","contextmenu"].includes(i.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:s,touches:r,rtlTranslate:o,slidesGrid:a,enabled:l}=t;if(!l)return;if(!s.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);s.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=A(),d=c-n.touchStartTime;if(t.allowClick){const e=i.path??(i.composedPath&&i.composedPath());t.updateClickedSlide(e&&e[0],e),t.emit("tap click",i),d<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=A(),T(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===r.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let u;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=s.followFinger?o?t.translate:-t.translate:-(n.currentTranslate??0),s.cssMode)return;if(s.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:u});const h=u>=-t.maxTranslate()&&!t.params.loop;let p=0,f=t.slidesSizesGrid[0];for(let e=0;e<a.length;e+=e<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=e<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==a[e+t]?(h||u>=a[e]&&u<a[e+t])&&(p=e,f=a[e+t]-a[e]):(h||u>=a[e])&&(p=e,f=a[a.length-1]-a[a.length-2])}let m=null,g=null;s.rewind&&(t.isBeginning?g=s.virtual?.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const v=(u-a[p])/f,b=p<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(d>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?m:p+b):t.slideTo(p)),"prev"===t.swipeDirection&&(v>1-s.longSwipesRatio?t.slideTo(p+b):null!==g&&v<0&&Math.abs(v)>s.longSwipesRatio?t.slideTo(g):t.slideTo(p))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||i.target!==t.navigation.nextEl&&i.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==m?m:p+b),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:p)):i.target===t.navigation.nextEl?t.slideTo(p+b):t.slideTo(p)}}function ae(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData,{params:i,touches:s,rtlTranslate:r,enabled:o}=t;if(!o)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;const a=e,l=a.originalEvent??a;if("pointermove"===l.type){if(null!==n.touchId)return;if(l.pointerId!==n.pointerId)return}let c;if("touchmove"===l.type){const e=[...l.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return;c=e}else c=l;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",l));const d=c.pageX,u=c.pageY;if(l.preventedByNestedSwiper)return s.startX=d,void(s.startY=u);if(!t.allowTouchMove)return l.target.matches(n.focusableElements)||(t.allowClick=!1),void(n.isTouched&&(Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u}),n.touchStartTime=A()));if(i.touchReleaseOnEdges&&!i.loop)if(t.isVertical()){if(u<s.startY&&t.translate<=t.maxTranslate()||u>s.startY&&t.translate>=t.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else{if(r&&(d>s.startX&&-t.translate<=t.maxTranslate()||d<s.startX&&-t.translate>=t.minTranslate()))return;if(!r&&(d<s.startX&&t.translate<=t.maxTranslate()||d>s.startX&&t.translate>=t.minTranslate()))return}if(document.activeElement&&document.activeElement.matches(n.focusableElements)&&document.activeElement!==l.target&&"mouse"!==l.pointerType&&document.activeElement.blur(),document.activeElement&&l.target===document.activeElement&&l.target.matches(n.focusableElements))return n.isMoved=!0,void(t.allowClick=!1);n.allowTouchCallbacks&&t.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=u;const h=s.currentX-s.startX,p=s.currentY-s.startY;if(t.params.threshold&&Math.sqrt(h**2+p**2)<t.params.threshold)return;if(void 0===n.isScrolling){let e;t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:h*h+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,n.isScrolling=t.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",l),void 0===n.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(n.startMoving=!0)),n.isScrolling||"touchmove"===l.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;t.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let f=t.isHorizontal()?h:p,m=t.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(f=Math.abs(f)*(r?1:-1),m=Math.abs(m)*(r?1:-1)),s.diff=f,f*=i.touchRatio,r&&(f=-f,m=-m);const g=t.touchesDirection;t.swipeDirection=f>0?"prev":"next",t.touchesDirection=m>0?"prev":"next";const v=t.params.loop&&!i.cssMode,b="next"===t.touchesDirection&&t.allowSlideNext||"prev"===t.touchesDirection&&t.allowSlidePrev;if(!n.isMoved){if(v&&b&&t.loopFix({direction:t.swipeDirection}),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});t.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!i.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",l)}if((new Date).getTime(),!1!==i._loopSwapReset&&n.isMoved&&n.allowThresholdMove&&g!==t.touchesDirection&&v&&b&&Math.abs(f)>=1)return Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);t.emit("sliderMove",l),n.isMoved=!0;const y=n.startTranslate??0;n.currentTranslate=f+y;let w=!0,_=i.resistanceRatio;if(i.touchReleaseOnEdges&&(_=0),f>0?(v&&b&&n.allowThresholdMove&&n.currentTranslate>(i.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-("auto"!==i.slidesPerView&&t.slides.length-i.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>t.minTranslate()&&(w=!1,i.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+y+f)**_))):f<0&&(v&&b&&n.allowThresholdMove&&n.currentTranslate<(i.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+("auto"!==i.slidesPerView&&t.slides.length-i.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-("auto"===i.slidesPerView?t.slidesPerViewDynamic():Math.ceil(parseFloat(String(i.slidesPerView))))}),n.currentTranslate<t.maxTranslate()&&(w=!1,i.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-y-f)**_))),w&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&(n.currentTranslate??0)<y&&(n.currentTranslate=y),!t.allowSlidePrev&&"prev"===t.swipeDirection&&(n.currentTranslate??0)>y&&(n.currentTranslate=y),t.allowSlidePrev||t.allowSlideNext||(n.currentTranslate=y),i.threshold>0){if(!(Math.abs(f)>i.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,void(s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&t.freeMode||i.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate??0))}function le(e,t,n){const{params:i}=e,s=i.edgeSwipeDetection,r=i.edgeSwipeThreshold;return!s||!(n<=r||n>=window.innerWidth-r)||"prevent"===s&&(t.preventDefault(),!0)}function ce(e){const t=this;if(t.destroyed)return;const n=e.originalEvent??e,i=t.touchEventsData;if("pointerdown"===n.type){const e=n;if(null!==i.pointerId&&i.pointerId!==e.pointerId)return;i.pointerId=e.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(i.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void le(t,n,n.targetTouches[0].pageX);const{params:s,touches:r,enabled:o}=t;if(!o)return;if(!s.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let a=n.target;if("wrapper"===s.touchEventsTarget&&!function(e,t){let n=t.contains(e);return!n&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}return!1}(e,t))),n}(a,t.wrapperEl))return;const l=n;if("number"==typeof l.which&&3===l.which)return;if("number"==typeof l.button&&l.button>0)return;if(i.isTouched&&i.isMoved)return;const c=!!s.noSwipingClass&&""!==s.noSwipingClass,d=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&d&&(a=d[0]);const u=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!(!n.target||!n.target.shadowRoot);if(s.noSwiping&&(h?(p=u,function e(t){if(!t||t===document||t===window)return null;let n=t;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(p);if(!i&&!n.getRootNode)return null;const s=n.getRootNode();return i||e(s.host)}(a)):a.closest(u)))return void(t.allowClick=!0);var p;if(s.swipeHandler&&"string"==typeof s.swipeHandler&&!a.closest(s.swipeHandler))return;const f=n;r.currentX=f.pageX,r.currentY=f.pageY;const m=r.currentX,g=r.currentY;if(!le(t,n,m))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=m,r.startY=g,i.touchStartTime=A(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let v=!0;a.matches(i.focusableElements)&&(v=!1,"SELECT"===a.nodeName&&(i.isTouched=!1)),document.activeElement&&document.activeElement.matches(i.focusableElements)&&document.activeElement!==a&&("mouse"===f.pointerType||"mouse"!==f.pointerType&&!a.matches(i.focusableElements))&&document.activeElement.blur();const b=v&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!b||a.isContentEditable||n.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}const de=(e,t)=>{const{params:n,el:i,wrapperEl:s,device:r}=e,o=!!n.nested,a="on"===t?"addEventListener":"removeEventListener",l=t;if(!i||"string"==typeof i)return;document[a]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),i[a]("touchstart",e.onTouchStart,{passive:!1}),i[a]("pointerdown",e.onTouchStart,{passive:!1}),document[a]("touchmove",e.onTouchMove,{passive:!1,capture:o}),document[a]("pointermove",e.onTouchMove,{passive:!1,capture:o}),document[a]("touchend",e.onTouchEnd,{passive:!0}),document[a]("pointerup",e.onTouchEnd,{passive:!0}),document[a]("pointercancel",e.onTouchEnd,{passive:!0}),document[a]("touchcancel",e.onTouchEnd,{passive:!0}),document[a]("pointerout",e.onTouchEnd,{passive:!0}),document[a]("pointerleave",e.onTouchEnd,{passive:!0}),document[a]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[a]("click",e.onClick,!0),n.cssMode&&s[a]("scroll",e.onScroll);const c=t=>{e[l](t,se,!0)};n.updateOnWindowResize?c(r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate"):c("observerUpdate"),n.lazyPreload&&i[a]("load",e.onLoad,{capture:!0})};var ue={loopCreate:function(e,t){const n=this,{params:i,slidesEl:s}=n;if(!i.loop||n.virtual&&n.params.virtual?.enabled)return;const r=()=>{M(s,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",String(t))})},o=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||o)&&(()=>{const e=M(s,`.${i.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const a=i.slidesPerGroup*(o?i.grid.rows:1),l=n.slides.length%a!==0,c=o&&n.slides.length%i.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?P("swiper-slide",[i.slideBlankClass]):P("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};l?(i.loopAddBlankSlides&&(d(a-n.slides.length%a),n.recalcSlides(),n.updateSlides()),r()):c?(i.loopAddBlankSlides&&(d(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()),r()):r();const u=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:u?void 0:"next",initial:t})},loopFix:function(e={}){const{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:s,activeSlideIndex:r,initial:o,byController:a,byMousewheel:l}=e;let c=r;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix"),d.__loopFixInProgress__=!0;const{slides:u,allowSlidePrev:h,allowSlideNext:p,slidesEl:f,params:m}=d,{centeredSlides:g,slidesOffsetBefore:v,slidesOffsetAfter:b,initialSlide:y}=m,w=g||!!v||!!b;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&m.virtual?.enabled){if(n){const e=d.virtual.slides.length,t=d.virtual.slidesBefore??0;w||0!==d.snapIndex?w&&d.snapIndex<m.slidesPerView?d.slideTo(e+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(t,0,!1,!0):d.slideTo(e,0,!1,!0)}return d.allowSlidePrev=h,d.allowSlideNext=p,d.__loopFixInProgress__=!1,void d.emit("loopFix")}let _=m.slidesPerView;"auto"===_?_=d.slidesPerViewDynamic():(_=Math.ceil(parseFloat(String(m.slidesPerView))),w&&_%2==0&&(_+=1));const S=m.slidesPerGroupAuto?_:m.slidesPerGroup,E=e=>("function"==typeof e?e.call(d):e)||0,x=d.slidesGrid.length>1?(d.slidesGrid[d.slidesGrid.length-1]-d.slidesGrid[0])/(d.slidesGrid.length-1):d.size,C=x>0?E(v)/x:0,T=x>0?E(b)/x:0;let A=w?Math.max(S,(g?Math.ceil(_/2):0)+Math.ceil(Math.max(C,T))):S;A%S!==0&&(A+=S-A%S),A+=m.loopAdditionalSlides,d.loopedSlides=A;const k=d.grid&&m.grid&&m.grid.rows>1;u.length<_+A||"cards"===d.params.effect&&u.length<_+2*A||k&&m.grid.fill;const O=[],L=[],D=k?Math.ceil(u.length/m.grid.rows):u.length,M=o&&D-y<_&&!w;let P=M?y:d.activeIndex;void 0===c?c=d.getSlideIndex(u.find(e=>e.classList.contains(m.slideActiveClass))):P=c;const I="next"===i||!i,N="prev"===i||!i;let R=0,z=0;const B=(k?u[c].column??0:c)+(w&&void 0===s?(g?-_/2+.5:0)-C:0);if(B<A){R=Math.max(A-B,S);for(let e=0;e<A-B;e+=1){const t=e-Math.floor(e/D)*D;if(k){const e=D-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&O.push(t)}else O.push(D-t-1)}}else if(B+_>D-A){z=Math.max(B-(D-2*A),S),M&&(z=Math.max(z,_-D+y+1));for(let e=0;e<z;e+=1){const t=e-Math.floor(e/D)*D;k?u.forEach((e,n)=>{e.column===t&&L.push(n)}):L.push(t)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),"cards"===d.params.effect&&u.length<_+2*A&&(L.includes(c)&&L.splice(L.indexOf(c),1),O.includes(c)&&O.splice(O.indexOf(c),1)),N&&O.forEach(e=>{const t=u[e];t.swiperLoopMoveDOM=!0,f.prepend(t),t.swiperLoopMoveDOM=!1}),I&&L.forEach(e=>{const t=u[e];t.swiperLoopMoveDOM=!0,f.append(t),t.swiperLoopMoveDOM=!1}),d.recalcSlides(),"auto"===m.slidesPerView?d.updateSlides():k&&(O.length>0&&N||L.length>0&&I)&&d.slides.forEach((e,t)=>{d.grid.updateSlide(t,e,d.slides)}),m.watchSlidesProgress&&d.updateSlidesOffset(),n)if(O.length>0&&N){if(void 0===t){const e=d.slidesGrid[P],t=d.slidesGrid[P+R]-e;l?d.setTranslate(d.translate-t):(d.slideTo(P+Math.ceil(R),0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else if(s){const e=k?O.length/m.grid.rows:O.length;d.slideTo(d.activeIndex+e,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(L.length>0&&I)if(void 0===t){const e=d.slidesGrid[P],t=d.slidesGrid[P-z]-e;l?d.setTranslate(d.translate-t):(d.slideTo(P-z,0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else{const e=k?L.length/m.grid.rows:L.length;d.slideTo(d.activeIndex-e,0,!1,!0)}d.allowSlidePrev=h,d.allowSlideNext=p;const F=d.controller?.control;if(F&&!a){const e={slideRealIndex:t,direction:i,setTranslate:s,activeSlideIndex:c,byController:!0};Array.isArray(F)?F.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===m.slidesPerView&&n})}):F instanceof d.constructor&&F.params.loop&&F.loopFix({...e,slideTo:F.params.slidesPerView===m.slidesPerView&&n})}d.__loopFixInProgress__=!1,d.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual?.enabled)return;e.recalcSlides();const i=[];e.slides.forEach(e=>{const t=e,n=void 0===t.swiperSlideIndex?Number(e.getAttribute("data-swiper-slide-index")):t.swiperSlideIndex;i[n]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function he(e,t){return function(n={}){const i=Object.keys(n)[0],s=n[i];"object"==typeof s&&null!==s?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in s?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),L(t,n)):L(t,n)):L(t,n)}}var pe={slideTo:function(e=0,t,n=!0,i,s){"string"==typeof e&&(e=parseInt(e,10));const r=this;let o=e;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:p,enabled:f}=r;if(!f&&!i&&!s||r.destroyed||r.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const m=Math.min(r.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/r.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(a.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?o=e:t>=n&&t<i&&(o=e+1):t>=n&&(o=e)}if(r.initialized&&o!==u){if(!r.allowSlideNext&&(h?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate()))return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(u||0)!==o)return!1}let b;o!==(d||0)&&n&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),b=o>u?"next":o<u?"prev":"reset";const y=r.virtual&&r.params.virtual?.enabled;if((!y||!s)&&(h&&-v===r.translate||!h&&v===r.translate))return r.updateActiveIndex(o),a.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==a.effect&&r.setTranslate(v),"reset"!==b&&(r.transitionStart(n,b),r.transitionEnd(n,b)),!1;if(a.cssMode){const e=r.isHorizontal(),n=h?v:-v;return 0===t?(y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&(r.params.initialSlide??0)>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,y&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})):p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"}),!0}const w=U().isSafari;return y&&!s&&w&&r.isElement&&r.virtual.update(!1,!1,o),r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,b),0===t?r.transitionEnd(n,b):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(n,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,i){"string"==typeof e&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;void 0===t&&(t=s.params.speed);const r=s.grid&&s.params.grid&&s.params.grid.rows>1;let o=e;if(s.params.loop)if(s.virtual&&s.params.virtual?.enabled)o+=s.virtual.slidesBefore??0;else{let e;if(r){const t=o*s.params.grid.rows,n=s.slides.find(e=>Number(e.getAttribute("data-swiper-slide-index"))===t);e=n?.column??0}else e=s.getSlideIndexByData(o);const t=r?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:n,slidesOffsetBefore:a,slidesOffsetAfter:l}=s.params,c=n||!!a||!!l;let d;"auto"===s.params.slidesPerView?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(String(s.params.slidesPerView))),c&&d%2==0&&(d+=1));let u=t-e<d;if(c&&(u=u||e<Math.ceil(d/2)),i&&c&&"auto"!==s.params.slidesPerView&&!r&&(u=!1),u){const n=c?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?s.realIndex:void 0})}if(r){const e=o*s.params.grid.rows,t=s.slides.find(t=>Number(t.getAttribute("data-swiper-slide-index"))===e);o=t?.column??0}else o=s.getSlideIndexByData(o)}return requestAnimationFrame(()=>{s.slideTo(o,t,n,i)}),s},slideNext:function(e,t=!0,n){const i=this,{enabled:s,params:r,animating:o}=i;if(!s||i.destroyed)return i;void 0===e&&(e=i.params.speed);let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<r.slidesPerGroupSkip?1:a,c=i.virtual&&r.virtual?.enabled;if(r.loop){if(o&&!c&&r.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return r.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t=!0,n){const i=this,{params:s,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const d=i.virtual&&s.virtual?.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(a?i.translate:-i.translate),p=r.map(e=>u(e)),f=s.freeMode&&s.freeMode.enabled;let m=r[p.indexOf(h)-1];if(void 0===m&&(s.cssMode||f)){let e;r.forEach((t,n)=>{h>=t&&(e=n)}),void 0!==e&&(m=f?r[e]:r[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=o.indexOf(m),g<0&&(g=i.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(g=g-i.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),s.rewind&&i.isBeginning){const s=i.params.virtual?.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(s,e,t,n)}return s.loop&&0===i.activeIndex&&s.cssMode?(requestAnimationFrame(()=>{i.slideTo(g,e,t,n)}),!0):i.slideTo(g,e,t,n)},slideReset:function(e,t=!0,n){const i=this;if(!i.destroyed)return void 0===e&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)},slideToClosest:function(e,t=!0,n,i=.5){const s=this;if(s.destroyed)return;void 0===e&&(e=s.params.speed);let r=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[a]){const e=s.snapGrid[a];l-e>(s.snapGrid[a+1]-e)*i&&(r+=s.params.slidesPerGroup)}else{const e=s.snapGrid[a-1];l-e<=(s.snapGrid[a]-e)*i&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n,clickedSlide:i,clickedIndex:s}=e;if(void 0===i||void 0===s)return;const r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let o,a=e.getSlideIndexWhenGrid(s);const l=e.isElement?"swiper-slide":`.${t.slideClass}`,c=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;o=parseInt(i.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(o):a>(c?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),a=e.getSlideIndex(M(n,`${l}[data-swiper-slide-index="${o}"]`)[0]),T(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}};function fe({swiper:e,runCallbacks:t,direction:n,step:i}){const{activeIndex:s,previousIndex:r}=e;let o=n;o||(o=s>r?"next":s<r?"prev":"reset"),e.emit(`transition${i}`),t&&"reset"===o?e.emit(`slideResetTransition${i}`):t&&s!==r&&(e.emit(`slideChangeTransition${i}`),"next"===o?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`))}var me={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:i,wrapperEl:s}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let r=function(e,t="x"){const n=function(e){return window.getComputedStyle(e,null)}(e),i=n.transform||n.webkitTransform;if(!i||"none"===i)return 0;const s=new DOMMatrixReadOnly(i);return"x"===t?s.m41:s.m42}(s,e);return r+=this.cssOverflowAdjustment(),n&&(r=-r),r||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:s,wrapperEl:r,progress:o}=n;let a,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,s.cssMode?r[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),r.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=n.maxTranslate()-n.minTranslate();a=0===d?0:(e-n.minTranslate())/d,a!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,i=!0,s){const r=this,{params:o,wrapperEl:a}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let d;if(d=i&&e>l?l:i&&e<c?c:e,r.updateProgress(d),o.cssMode){const e=r.isHorizontal();return 0===t?a[e?"scrollLeft":"scrollTop"]=-d:a.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"}),!0}return 0===t?(r.setTransition(0),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,n&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};const ge=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},ve=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};var be={updateSize:function(){const e=this;let t,n;const i=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(N(i,"padding-left")||"0",10)-parseInt(N(i,"padding-right")||"0",10),n=n-parseInt(N(i,"padding-top")||"0",10)-parseInt(N(i,"padding-bottom")||"0",10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||"0")}const n=e.params,{wrapperEl:i,slidesEl:s,rtlTranslate:r,wrongRTL:o}=e,a=!(!e.virtual||!n.virtual?.enabled),l=a?e.virtual.slides.length:e.slides.length,c=M(s,`.${e.params.slideClass}, swiper-slide`),d=a?e.virtual.slides.length:c.length;let u=[];const h=[],p=[],f=t=>"function"==typeof t?t.call(e):t,m=f(n.slidesOffsetBefore),g=f(n.slidesOffsetAfter),v=e.snapGrid.length,b=e.slidesGrid.length,y=e.size-m-g;let w=n.spaceBetween,_=-m,S=0,E=0;if(void 0===y)return;"string"==typeof w&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*y:"string"==typeof w&&(w=parseFloat(w)),e.virtualSize=-w-m-g,c.forEach(e=>{r?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(D(i,"--swiper-centered-offset-before",""),D(i,"--swiper-centered-offset-after","")),n.cssMode&&(D(i,"--swiper-slides-offset-before",`${m}px`),D(i,"--swiper-slides-offset-after",`${g}px`));const x=n.grid&&n.grid.rows>1&&e.grid;x?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let C=0;const T="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>{const t=n.breakpoints[e];return void 0!==t?.slidesPerView}).length>0;for(let i=0;i<d;i+=1){C=0;const s=c[i];if(!s||(x&&e.grid.updateSlide(i,s,c),"none"!==N(s,"display"))){if(a&&"auto"===n.slidesPerView)n.virtual?.slidesPerViewAutoSlideSize&&(C=n.virtual.slidesPerViewAutoSlideSize),C&&s&&(n.roundLengths&&(C=Math.floor(C)),s.style[e.getDirectionLabel("width")]=`${C}px`);else if("auto"===n.slidesPerView){T&&(s.style[e.getDirectionLabel("width")]="");const i=getComputedStyle(s),r=s.style.transform,o=s.style.webkitTransform;if(r&&(s.style.transform="none"),o&&(s.style.webkitTransform="none"),n.roundLengths)C=e.isHorizontal()?B(s,"width"):B(s,"height");else{const e=t(i,"width"),n=t(i,"padding-left"),r=t(i,"padding-right"),o=t(i,"margin-left"),a=t(i,"margin-right"),l=i.getPropertyValue("box-sizing");if(l&&"border-box"===l)C=e+o+a;else{const{clientWidth:t,offsetWidth:i}=s;C=e+n+r+o+a+(i-t)}}r&&(s.style.transform=r),o&&(s.style.webkitTransform=o),n.roundLengths&&(C=Math.floor(C))}else C=(y-(n.slidesPerView-1)*w)/n.slidesPerView,n.roundLengths&&(C=Math.floor(C)),s&&(s.style[e.getDirectionLabel("width")]=`${C}px`);s&&(s.swiperSlideSize=C),p.push(C),n.centeredSlides?(_=_+C/2+S/2+w,0===S&&0!==i&&(_=_-y/2-w),0===i&&(_=_-y/2-w),Math.abs(_)<.001&&(_=0),n.roundLengths&&(_=Math.floor(_)),E%n.slidesPerGroup===0&&u.push(_),h.push(_)):(n.roundLengths&&(_=Math.floor(_)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup===0&&u.push(_),h.push(_),_=_+C+w),e.virtualSize+=C+w,S=C,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+g,r&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+w}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+w}px`),x&&e.grid.updateWrapperSize(C,u),!n.centeredSlides){const t="auto"!==n.slidesPerView&&n.slidesPerView%1!=0,i=n.snapToSlideEdge&&!n.loop&&("auto"===n.slidesPerView||t);let s=u.length;if(i){let e;if("auto"===n.slidesPerView){e=1;let t=0;for(let n=p.length-1;n>=0&&(t+=p[n]+(n<p.length-1?w:0),t<=y);n-=1)e=p.length-n}else e=Math.floor(n.slidesPerView);s=Math.max(d-e,0)}const r=[];for(let t=0;t<u.length;t+=1){let o=u[t];n.roundLengths&&(o=Math.floor(o)),i?t<=s&&r.push(o):u[t]<=e.virtualSize-y&&r.push(o)}u=r,Math.floor(e.virtualSize-y)-Math.floor(u[u.length-1])>1&&(i||u.push(e.virtualSize-y))}if(a&&n.loop){const t=p[0]+w,i=(e.virtual.slidesBefore??0)+(e.virtual.slidesAfter??0);if(n.slidesPerGroup>1){const e=Math.ceil(i/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let t=0;t<e;t+=1)u.push(u[u.length-1]+s)}for(let s=0;s<i;s+=1)1===n.slidesPerGroup&&u.push(u[u.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===u.length&&(u=[0]),0!==w){const t=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");c.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${w}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(w||0)}),e-=w;const t=e>y?e-y:0;u=u.map(e=>e<=0?-m:e>t?t+g:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(w||0)}),e-=w,e<y){const t=(y-e)/2;u.forEach((e,n)=>{u[n]=e-t}),h.forEach((e,n)=>{h[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:u,slidesGrid:h,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){D(i,"--swiper-centered-offset-before",-u[0]+"px"),D(i,"--swiper-centered-offset-after",e.size/2-p[p.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(d!==l&&e.emit("slidesLengthChange"),u.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(a||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual?.enabled;let s,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>i?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=>{n.push(e)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!i)break;const r=o(e);r&&n.push(r)}else{const e=o(t.activeIndex);e&&n.push(e)}for(s=0;s<n.length;s+=1)if(void 0!==n[s]){const e=n[s].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,n=t.params,{slides:i,rtlTranslate:s,snapGrid:r}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;s&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset??0;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset??0);const d=l.swiperSlideSize??0,u=(o+(n.centeredSlides?t.minTranslate():0)-c)/(d+a),h=(o-r[0]+(n.centeredSlides?t.minTranslate():0)-c)/(d+a),p=-(o-c),f=p+t.slidesSizesGrid[e],m=p>=0&&p<=t.size-t.slidesSizesGrid[e],g=p>=0&&p<t.size-1||f>1&&f<=t.size||p<=0&&f>=t.size;g&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),ve(l,g,n.slideVisibleClass),ve(l,m,n.slideFullyVisibleClass),l.progress=s?-u:u,l.originalProgress=s?-h:h}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:r,isEnd:o}=t,a=t.progressLoop;const l=r,c=o;if(0===i)s=0,r=!0,o=!0;else{s=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;r=n||s<=0,o=a||s>=1,n&&(s=0),a&&(s=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[n],r=t.slidesGrid[i],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=s?(l-s)/o:(l+o-r)/o,a>1&&(a-=1)}Object.assign(t,{progress:s,progressLoop:a,isBeginning:r,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:s}=e,r=!(!e.virtual||!n.virtual?.enabled),o=e.grid&&n.grid&&n.grid.rows>1,a=e=>M(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(r)if(n.loop){const t=e.virtual.slides;let n=s-(e.virtual.slidesBefore??0);n<0&&(n=t.length+n),n>=t.length&&(n-=t.length),l=a(`[data-swiper-slide-index="${n}"]`)}else l=a(`[data-swiper-slide-index="${s}"]`);else o?(l=t.find(e=>e.column===s),d=t.find(e=>e.column===s+1),c=t.find(e=>e.column===s-1)):l=t[s];l&&(o||(d=function(e,t){const n=[];let i=e.nextElementSibling;for(;i;)t&&!i.matches(t)||n.push(i),i=i.nextElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=function(e,t){const n=[];let i=e.previousElementSibling;for(;i;)t&&!i.matches(t)||n.push(i),i=i.previousElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{ge(e,e===l,n.slideActiveClass),ge(e,e===d,n.slideNextClass),ge(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:s,activeIndex:r,realIndex:o,snapIndex:a}=t;let l,c=e;const d=e=>{const n=t.virtual.slides;let i=e-(t.virtual.slidesBefore??0);return i<0&&(i=n.length+i),i>=n.length&&(i-=n.length),i};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let s;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?s=e:i>=t[e]&&i<t[e+1]&&(s=e+1):i>=t[e]&&(s=e);return n.normalizeSlideIndex&&(s<0||void 0===s)&&(s=0),s}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/s.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===r&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===r&&t.params.loop&&t.virtual&&t.params.virtual?.enabled)return void(t.realIndex=d(c));const u=t.grid&&s.grid&&s.grid.rows>1;let h;if(t.virtual&&s.virtual?.enabled)h=s.loop?d(c):c;else if(u){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),h=Math.floor(n/s.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:o,realIndex:h,previousIndex:r,activeIndex:c}),t.initialized&&X(t),t.__loopFixInProgress__||(t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&((t.__lastEmittedRealIndex__??o)!==h&&t.emit("realIndexChange"),t.emit("slideChange")),t.__lastEmittedRealIndex__=h)},updateClickedSlide:function(e,t){const n=this,i=n.params;let s=e.closest(`.${i.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!s&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(s=e)});let r,o=!1;if(s)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===s){o=!0,r=e;break}if(!s||!o)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=s,n.virtual&&n.params.virtual?.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=r,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};const ye={eventsEmitter:ee,update:be,translate:me,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),fe({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),fe({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:pe,loop:ue,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.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=ce.bind(e),e.onTouchMove=ae.bind(e),e.onTouchEnd=oe.bind(e),e.onDocumentTouchStart=ne.bind(e),t.cssMode&&(e.onScroll=re.bind(e)),e.onClick=te.bind(e),e.onLoad=ie.bind(e),de(e,"on")},detachEvents:function(){de(this,"off")}},breakpoints:J,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:Q},we={};class _e{static extendedDefaults;static defaults;constructor(...e){let t,n;if(1===e.length&&null!==e[0]&&"object"==typeof e[0]&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=L({},n),t&&!n.el&&(n.el=t),n.el&&"string"==typeof n.el&&"undefined"!=typeof document&&document.querySelectorAll(n.el).length>1){const e=[];return document.querySelectorAll(n.el).forEach(t=>{const i=L({},n,{el:t});e.push(new _e(i))}),e}const i=this;i.__swiper__=!0,i.support=q(),i.device=W({userAgent:n.userAgent??void 0}),i.browser=U(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__||[]],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{const t=e;"function"==typeof t&&i.modules.indexOf(t)<0&&i.modules.push(t)});const s={};i.modules.forEach(e=>{e({params:n,swiper:i,extendParams:he(n,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const r=L({},Z,s);if(i.params=L({},r,we,n),i.originalParams=L({},i.params),i.passedParams=L({},n),i.params&&i.params.on){const e=i.params.on;Object.keys(e).forEach(t=>{const n=e[t];n&&i.on(t,n)})}return i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.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:i.params.allowSlideNext,allowSlidePrev:i.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:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}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]}isHorizontal(){return"horizontal"===this.params.direction}isVertical(){return"vertical"===this.params.direction}cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=R(M(t,`.${n.slideClass}, swiper-slide`)[0]);return R(e)-(i??0)}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>Number(t.getAttribute("data-swiper-slide-index"))===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=M(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);const n=this.minTranslate(),i=(this.maxTranslate()-n)*e+n;this.translateTo(i,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){if(!this.params._emitClasses||!this.el)return;const e=this.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(this.params.containerModifierClass));this.emit("_containerClasses",e.join(" "))}getSlideClasses(e){return this.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(this.params.slideClass)).join(" ")}emitSlidesClasses(){if(!this.params._emitClasses||!this.el)return;const e=[];this.slides.forEach(t=>{const n=this.getSlideClasses(t);e.push({slideEl:t,classNames:n}),this.emit("_slideClass",t,n)}),this.emit("_slideClasses",e)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:i,slidesGrid:s,slidesSizesGrid:r,size:o,activeIndex:a}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(!o)return l;if(n.centeredSlides){let e=i[a]?Math.ceil(i[a].swiperSlideSize??0):0,t=!1;for(let n=a+1;n<i.length;n+=1)i[n]&&!t&&(e+=Math.ceil(i[n].swiperSlideSize??0),l+=1,e>o&&(t=!0));for(let n=a-1;n>=0;n-=1)i[n]&&!t&&(e+=i[n].swiperSlideSize??0,l+=1,e>o&&(t=!0))}else if("current"===e)for(let e=a+1;e<i.length;e+=1)(t?s[e]+r[e]-s[a]<o:s[e]-s[a]<o)&&(l+=1);else for(let e=a-1;e>=0;e-=1)s[a]-s[e]<o&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.breakpoints&&e.setBreakpoint(),n.lazyPreload&&[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&G(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode?.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual?.enabled?e.virtual.slides.length:e.slides.length;s=e.slideTo(t-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.rtlTranslate="horizontal"===e&&n.rtl,n.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}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;if("undefined"==typeof document)return!1;const n=e??t.params.el;let i=null;if("string"==typeof n?i=document.querySelector(n):n instanceof HTMLElement&&(i=n),!i)return!1;i.swiper=t;const s=i.parentNode;s&&s.host&&s.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=i&&i.shadowRoot?i.shadowRoot.querySelector(r()):M(i,r())[0];!o&&t.params.createElements&&(o=P("div",t.params.wrapperClass),i.append(o),M(i,`.${t.params.slideClass}`).forEach(e=>{o.append(e)}));const a=t.isElement?i.parentNode.host:null;return Object.assign(t,{el:i,wrapperEl:o,slidesEl:t.isElement&&!a.slideSlots?a:o,hostEl:t.isElement?a:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===N(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===N(i,"direction")),wrongRTL:"-webkit-box"===N(o,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;if(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??0)+(t.virtual.slidesBefore??0),0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents(),t.params.lazyPreload){const e=[...t.el.querySelectorAll('[loading="lazy"]')];t.isElement&&e.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),e.forEach(e=>{e.complete?G(t,e):e.addEventListener("load",e=>{G(t,e.target)})})}return t.initialized=!0,X(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:i,el:s,wrapperEl:r,slides:o}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),r&&r.removeAttribute("style"),o&&o.length&&o.forEach(e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),a=n,Object.keys(a).forEach(e=>{try{a[e]=null}catch{}try{delete a[e]}catch{}})),n.destroyed=!0),null;var a}static extendDefaults(e){L(we,e)}static installModule(e){_e.prototype.__modules__||(_e.prototype.__modules__=[]);const t=_e.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>_e.installModule(e)),_e):(_e.installModule(e),_e)}}Object.defineProperty(_e,"extendedDefaults",{get:()=>we}),Object.defineProperty(_e,"defaults",{get:()=>Z});const Se=ye,Ee=_e.prototype;Object.keys(Se).forEach(e=>{const t=Se[e];Object.keys(t).forEach(e=>{Ee[e]=t[e]})}),_e.use([({swiper:e,on:t,emit:n})=>{let i=null,s=null;const r=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==window.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{s=window.requestAnimationFrame(()=>{const{width:n,height:i}=e;let s=n,o=i;t.forEach(({contentBoxSize:t,contentRect:n,target:i})=>{if(i&&i!==e.el)return;const r=Array.isArray(t)?t[0]:t;s=n?n.width:r.inlineSize,o=n?n.height:r.blockSize}),s===n&&o===i||r()})}),i.observe(e.el)):(window.addEventListener("resize",r),window.addEventListener("orientationchange",o))}),t("destroy",()=>{s&&window.cancelAnimationFrame(s),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",o)})},({swiper:e,extendParams:t,on:n})=>{const i=[],s=(t,n={})=>{const s=window.MutationObserver||window.WebkitMutationObserver;if(!s)return;const r=new s(t=>{if(e.__preventObserver__)return;if(1===t.length)return void e.emit("observerUpdate",t[0]);const n=function(){e.emit("observerUpdate",t[0])};window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,0)});r.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:e.isElement||void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),i.push(r)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=z(e.hostEl);for(let e=0;e<t.length;e+=1)s(t[e])}s(e.hostEl,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);const xe=({swiper:e,extendParams:t,on:n,emit:i})=>{function s(){return e.params.keyboard}function r(t){if(!e.enabled)return;const{rtlTranslate:n}=e,r="originalEvent"in t&&t.originalEvent?t.originalEvent:t,o=r.keyCode||r.charCode,a=s(),l=!!a.pageUpDown,c=l&&33===o,d=l&&34===o,u=37===o,h=39===o,p=38===o,f=40===o;if(!e.allowSlideNext&&(e.isHorizontal()&&h||e.isVertical()&&f||d))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&u||e.isVertical()&&p||c))return!1;if(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey)return;const m=document.activeElement;if(m&&(m.isContentEditable||m.nodeName&&("input"===m.nodeName.toLowerCase()||"textarea"===m.nodeName.toLowerCase())))return;if(a.onlyInViewport&&(c||d||u||h||p||f)){let t=!1;if(z(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===z(e.el,`.${e.params.slideActiveClass}`).length)return;const i=e.el,s=i.clientWidth,r=i.clientHeight,o=window.innerWidth,a=window.innerHeight,l=I(i);n&&(l.left-=i.scrollLeft);const c=[[l.left,l.top],[l.left+s,l.top],[l.left,l.top+r],[l.left+s,l.top+r]];for(let e=0;e<c.length;e+=1){const n=c[e];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=a){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}const g=a.speed;e.isHorizontal()?((c||d||u||h)&&r.cancelable&&r.preventDefault(),((d||h)&&!n||(c||u)&&n)&&e.slideNext(g),((c||u)&&!n||(d||h)&&n)&&e.slidePrev(g)):((c||d||p||f)&&r.cancelable&&r.preventDefault(),(d||f)&&e.slideNext(g),(c||p)&&e.slidePrev(g)),i("keyPress",o)}function o(){e.keyboard.enabled||(document.addEventListener("keydown",r),e.keyboard.enabled=!0)}function a(){e.keyboard.enabled&&(document.removeEventListener("keydown",r),e.keyboard.enabled=!1)}t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),e.keyboard={enabled:!1,enable:o,disable:a},n("init",()=>{s().enabled&&o()}),n("destroy",()=>{e.keyboard.enabled&&a()})},Ce=({swiper:e,extendParams:t,on:n,emit:i})=>{let s;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});let r,o=A(),a=!1;const l=[];function c(){return e.params.mousewheel}function d(){e.enabled&&(a=!0)}function u(){e.enabled&&(a=!1)}function h(t){const n=c();return!(n.thresholdDelta&&t.delta<n.thresholdDelta||n.thresholdTime&&A()-o<n.thresholdTime||!(t.delta>=6&&A()-o<60)&&(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),i("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),i("scroll",t.raw)),o=(new window.Date).getTime(),1))}function p(t){let n="originalEvent"in t&&t.originalEvent?t.originalEvent:t,o=!0;if(!e.enabled)return!1;const d=c();if(t.target.closest(`.${d.noMousewheelClass}`))return!1;e.params.cssMode&&n.preventDefault();let u=e.el;"container"!==d.eventsTarget&&(u=document.querySelector(d.eventsTarget));const p=u&&u.contains(n.target);if(!a&&!p&&!d.releaseOnEdges)return!0;let f=0;const m=e.rtlTranslate?-1:1,g=function(e){const t=e;let n=0,i=0,s=0,r=0;return void 0!==t.detail&&(i=t.detail),void 0!==t.wheelDelta&&(i=-t.wheelDelta/120),void 0!==t.wheelDeltaY&&(i=-t.wheelDeltaY/120),void 0!==t.wheelDeltaX&&(n=-t.wheelDeltaX/120),void 0!==t.axis&&void 0!==t.HORIZONTAL_AXIS&&t.axis===t.HORIZONTAL_AXIS&&(n=i,i=0),s=10*n,r=10*i,void 0!==t.deltaY&&(r=t.deltaY),void 0!==t.deltaX&&(s=t.deltaX),t.shiftKey&&!s&&(s=r,r=0),(s||r)&&t.deltaMode&&(1===t.deltaMode?(s*=40,r*=40):(s*=800,r*=800)),s&&!n&&(n=s<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:n,spinY:i,pixelX:s,pixelY:r}}(n);if(d.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;f=-g.pixelX*m}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;f=-g.pixelY}else f=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY;if(0===f)return!0;d.invert&&(f=-f);let v=e.getTranslate()+f*(d.sensitivity??1);v>=e.minTranslate()&&(v=e.minTranslate()),v<=e.maxTranslate()&&(v=e.maxTranslate()),o=!!e.params.loop||!(v===e.minTranslate()||v===e.maxTranslate()),o&&e.params.nested&&n.stopPropagation();const b=e.params.freeMode;if(e.params.freeMode&&b?.enabled){const t={time:A(),delta:Math.abs(f),direction:Math.sign(f)},o=r&&t.time<r.time+500&&t.delta<=r.delta&&t.direction===r.direction;if(!o){r=void 0;let a=e.getTranslate()+f*(d.sensitivity??1);const c=e.isBeginning,u=e.isEnd;if(a>=e.minTranslate()&&(a=e.minTranslate()),a<=e.maxTranslate()&&(a=e.maxTranslate()),e.setTransition(0),e.setTranslate(a),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!c&&e.isBeginning||!u&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),b?.sticky){clearTimeout(s),s=void 0,l.length>=15&&l.shift();const n=l.length?l[l.length-1]:void 0,i=l[0];if(l.push(t),n&&(t.delta>n.delta||t.direction!==n.direction))l.splice(0);else if(l.length>=15&&i&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const n=f>0?.8:.2;r=t,l.splice(0),s=T(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,n)},0)}s||(s=T(()=>{!e.destroyed&&e.params&&(r=t,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5))},500))}o||i("scroll",n);const h=e.params.autoplay;if(e.params.autoplay&&h?.disableOnInteraction&&e.autoplay.stop(),d.releaseOnEdges&&(a===e.minTranslate()||a===e.maxTranslate()))return!0}}else{const n={time:A(),delta:Math.abs(f),direction:Math.sign(f),raw:t};l.length>=2&&l.shift();const i=l.length?l[l.length-1]:void 0;if(l.push(n),i?(n.direction!==i.direction||n.delta>i.delta||n.time>i.time+150)&&h(n):h(n),function(t){const n=c();if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.cancelable&&n.preventDefault(),!1}function f(t){const n=c();let i=e.el;"container"!==n.eventsTarget&&(i=document.querySelector(n.eventsTarget)),i[t]("mouseenter",d),i[t]("mouseleave",u),i[t]("wheel",p)}function m(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",p),!0):!e.mousewheel.enabled&&(f("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener("wheel",p),!0):!!e.mousewheel.enabled&&(f("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{const t=c();!t.enabled&&e.params.cssMode&&g(),t.enabled&&m()}),e.mousewheel={enabled:!1,enable:m,disable:g},n("destroy",()=>{e.params.cssMode&&m(),e.mousewheel.enabled&&g()})};function Te(e,t,n,i){const s=n??{},r=t??{};return e.params.createElements&&Object.keys(i).forEach(t=>{if(!s[t]&&!0===s.auto){let n=M(e.el,`.${i[t]}`)[0];n||(n=P("div",i[t]),n.className=i[t],e.el.append(n)),s[t]=n,r[t]=n}}),s}const Ae='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>',ke=({swiper:e,extendParams:t,on:n,emit:i})=>{function s(){return e.params.navigation}function r(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n&&n.length>1&&1===e.el.querySelectorAll(t).length?n=e.el.querySelector(t):n&&1===n.length&&(n=n[0])),t&&!n?t:n)}function o(t,n){const i=s();F(t).forEach(t=>{t&&(t.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](i.lockClass))})}function a(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return o(n,!1),void o(t,!1);o(n,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function c(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function d(){e.params.navigation=Te(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});const t=s();if(!t.nextEl&&!t.prevEl)return;const n=r(t.nextEl),i=r(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:i});const o=F(n),a=F(i),d=(n,i)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");H(e,Ae);const t=e.querySelector("svg");t&&n.appendChild(t),e.remove()}n.addEventListener("click","next"===i?c:l)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};o.forEach(e=>d(e,"next")),a.forEach(e=>d(e,"prev"))}function u(){const t=s(),{nextEl:n,prevEl:i}=e.navigation,r=F(n),o=F(i),a=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.disabledClass.split(" "))};r.forEach(e=>a(e,"next")),o.forEach(e=>a(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:Ae},n("init",()=>{!1===s().enabled?h():(d(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{u()}),n("enable disable",()=>{const t=s(),{nextEl:n,prevEl:i}=e.navigation,r=F(n),o=F(i);e.enabled?a():[...r,...o].filter(e=>!!e).forEach(e=>e.classList.add(t.lockClass))}),n("click",(t,n)=>{const r=s(),{nextEl:o,prevEl:a}=e.navigation,l=F(o),c=F(a),d=n.target;let u=c.includes(d)||l.includes(d);if(e.isElement&&!u){const e=n.composedPath?n.composedPath():[];e.length&&(u=e.find(e=>l.includes(e)||c.includes(e)))}if(r.hideOnClick&&!u){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===d||e.pagination.el.contains(d)))return;let t;l.length?t=l[0].classList.contains(r.hiddenClass):c.length&&(t=c[0].classList.contains(r.hiddenClass)),i(!0===t?"navigationShow":"navigationHide"),[...l,...c].filter(e=>!!e).forEach(e=>e.classList.toggle(r.hiddenClass))}});const h=()=>{const t=s();e.el.classList.add(...t.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{const t=s();e.el.classList.remove(...t.navigationDisabledClass.split(" ")),d(),a()},disable:h,update:a,init:d,destroy:u})};function Oe(e=""){return`.${e.trim().replace(/([.:!+/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}const Le=e=>{if((e=>!!e.virtual&&!!e.params.virtual?.enabled)(e))return e.virtual.slides.length;const t=e.params.grid?.rows;return e.grid&&t&&t>1?e.slides.length/Math.ceil(t):e.slides.length},De=({swiper:e,extendParams:t,on:n,emit:i})=>{const s="swiper-pagination";let r;t({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:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let o=0;function a(){return e.params.pagination}function l(){return!a().el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function c(e,t){const{bulletActiveClass:n}=a();if(!e)return;let i=e[("prev"===t?"previous":"next")+"ElementSibling"];i&&(i.classList.add(`${n}-${t}`),i=i[("prev"===t?"previous":"next")+"ElementSibling"],i&&i.classList.add(`${n}-${t}-${t}`))}function d(t){const n=t.target.closest(Oe(a().bulletClass));if(!n)return;t.preventDefault();const i=(R(n)??0)*(e.params.slidesPerGroup??1);if(e.params.loop){if(e.realIndex===i)return;const t=(s=e.realIndex,r=i,(r%=o=e.slides.length)===1+(s%=o)?"next":r===s-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i);var s,r,o}function u(){const t=e.rtl,n=a();if(l())return;const s=F(e.pagination.el);let d,u;const h=Le(e),p=e.params.loop?Math.ceil(h/(e.params.slidesPerGroup??1)):e.snapGrid.length;if(e.params.loop?(u=e.previousRealIndex||0,d=(e.params.slidesPerGroup??1)>1?Math.floor(e.realIndex/(e.params.slidesPerGroup??1)):e.realIndex):void 0!==e.snapIndex?(d=e.snapIndex,u=e.previousSnapIndex):(u=e.previousIndex||0,d=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let a=0,l=0,h=0;if(n.dynamicBullets){r=B(i[0],e.isHorizontal()?"width":"height");const t=e.isHorizontal()?"width":"height";s.forEach(e=>{e.style[t]=(r??0)*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==u&&(o+=d-(u||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),a=Math.max(d-o,0),l=a+(Math.min(i.length,n.dynamicMainBullets)-1),h=(l+a)/2}if(i.forEach(e=>{const t=["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`).flatMap(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):[e]);e.classList.remove(...t)}),s.length>1)i.forEach(t=>{const i=R(t);i===d?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&void 0!==i&&(i>=a&&i<=l&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),i===a&&c(t,"prev"),i===l&&c(t,"next"))});else{const t=i[d];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&i.forEach((e,t)=>{e.setAttribute("part",t===d?"bullet-active":"bullet")}),n.dynamicBullets){const e=i[a],t=i[l];for(let e=a;e<=l;e+=1)i[e]&&i[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const s=Math.min(i.length,n.dynamicMainBullets+4),o=((r??0)*s-(r??0))/2-h*(r??0),a=t?"right":"left",l=e.isHorizontal()?a:"top";i.forEach(e=>{e.style[l]=`${o}px`})}}s.forEach((t,s)=>{if("fraction"===n.type&&(t.querySelectorAll(Oe(n.currentClass)).forEach(e=>{e.textContent=String(n.formatFractionCurrent(d+1))}),t.querySelectorAll(Oe(n.totalClass)).forEach(e=>{e.textContent=String(n.formatFractionTotal(p))})),"progressbar"===n.type){let i;i=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const s=(d+1)/p;let r=1,o=1;"horizontal"===i?r=s:o=s,t.querySelectorAll(Oe(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${r}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(H(t,n.renderCustom(e,d+1,p)),0===s&&i("paginationRender",t)):(0===s&&i("paginationRender",t),i("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)})}function h(){const t=a();if(l())return;const n=Le(e),s=F(e.pagination.el);let r="";if("bullets"===t.type){let i=e.params.loop?Math.ceil(n/(e.params.slidesPerGroup??1)):e.snapGrid.length;e.params.freeMode&&(e=>!!e.params.freeMode?.enabled)(e)&&i>n&&(i=n);for(let n=0;n<i;n+=1)t.renderBullet?r+=t.renderBullet.call(e,n,t.bulletClass):r+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],s.forEach(n=>{"custom"!==t.type&&H(n,r||""),"bullets"===t.type&&e.pagination.bullets.push(...Array.from(n.querySelectorAll(Oe(t.bulletClass))))}),"custom"!==t.type&&i("paginationRender",s[0])}function p(){e.params.pagination=Te(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=a();if(!t.el)return;let n;if("string"==typeof t.el&&e.isElement&&(n=e.el.querySelector(t.el)),n||"string"!=typeof t.el||(n=[...document.querySelectorAll(t.el)]),n||(n=t.el),n&&(!Array.isArray(n)||0!==n.length)){if(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1)){const t=n.find(t=>z(t,".swiper")[0]===e.el);t&&(n=t)}Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),F(n).forEach(n=>{"bullets"===t.type&&t.clickable&&n.classList.add(...(t.clickableClass||"").split(" ")),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",d),e.enabled||n.classList.add(t.lockClass)})}}function f(){const t=a();if(l())return;const n=e.pagination.el;n&&F(n).forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||"").split(" ")),n.removeEventListener("click",d))}),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=a();F(e.pagination.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===a().enabled?m():(p(),h(),u())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{h(),u()}),n("destroy",()=>{f()}),n("enable disable",()=>{const{el:t}=e.pagination;if(t){const n=a();F(t).forEach(t=>t.classList[e.enabled?"remove":"add"](n.lockClass))}}),n("lock unlock",()=>{u()}),n("click",(t,n)=>{const s=n.target,r=F(e.pagination.el),o=a();if(o.el&&o.hideOnClick&&r&&r.length>0&&!s.classList.contains(o.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&s===e.navigation.nextEl||e.navigation.prevEl&&s===e.navigation.prevEl))return;const t=r[0].classList.contains(o.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),r.forEach(e=>e.classList.toggle(o.hiddenClass))}});const m=()=>{const t=a();e.el.classList.add(t.paginationDisabledClass);const{el:n}=e.pagination;n&&F(n).forEach(e=>e.classList.add(t.paginationDisabledClass)),f()};Object.assign(e.pagination,{enable:()=>{const t=a();e.el.classList.remove(t.paginationDisabledClass);const{el:n}=e.pagination;n&&F(n).forEach(e=>e.classList.remove(t.paginationDisabledClass)),p(),h(),u()},disable:m,render:h,update:u,init:p,destroy:f})},Me=({swiper:e,extendParams:t,on:n,emit:i})=>{let s=!1,r=null,o=null,a=0,l=0,c=0,d=0;function u(){return e.params.scrollbar}function h(){const t=u();if(!t.el||!e.scrollbar.el)return;const{scrollbar:n,rtlTranslate:i}=e,{dragEl:s,el:o}=n,a=e.params.loop?e.progressLoop??0:e.progress;let d=l,h=(c-l)*a;i?(h=-h,h>0?(d=l-h,h=0):-h+l>c&&(d=c+h)):h<0?(d=l+h,h=0):h+l>c&&(d=c-h),e.isHorizontal()?(s.style.transform=`translate3d(${h}px, 0, 0)`,s.style.width=`${d}px`):(s.style.transform=`translate3d(0px, ${h}px, 0)`,s.style.height=`${d}px`),t.hide&&(r&&clearTimeout(r),o.style.opacity="1",r=setTimeout(()=>{o.style.opacity="0",o.style.transitionDuration="400ms"},1e3))}function p(){const t=u();if(!t.el||!e.scrollbar.el)return;const{scrollbar:n}=e,{dragEl:i,el:s}=n;i.style.width="",i.style.height="",c=e.isHorizontal()?s.offsetWidth:s.offsetHeight,d=e.size/(e.virtualSize+(e.params.slidesOffsetBefore??0)-(e.params.centeredSlides?e.snapGrid[0]:0)),l="auto"===t.dragSize?c*d:parseInt(String(t.dragSize),10),e.isHorizontal()?i.style.width=`${l}px`:i.style.height=`${l}px`,s.style.display=d>=1?"none":"",t.hide&&(s.style.opacity="0"),e.params.watchOverflow&&e.enabled&&n.el.classList[e.isLocked?"add":"remove"](t.lockClass)}function f(t){return e.isHorizontal()?t.clientX??t.touches?.[0]?.clientX??0:t.clientY??t.touches?.[0]?.clientY??0}function m(t){const{scrollbar:n,rtlTranslate:i}=e,{el:s}=n;let r;r=(f(t)-I(s)[e.isHorizontal()?"left":"top"]-(null!==a?a:l/2))/(c-l),r=Math.max(Math.min(r,1),0),i&&(r=1-r);const o=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*r;e.updateProgress(o),e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}function g(t){const n=u(),{scrollbar:r,wrapperEl:l}=e,{el:c,dragEl:d}=r;s=!0,a=t.target===d?f(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),l.style.transitionDuration="100ms",d.style.transitionDuration="100ms",m(t),o&&clearTimeout(o),c.style.transitionDuration="0ms",n.hide&&(c.style.opacity="1"),e.params.cssMode&&(e.wrapperEl.style.scrollSnapType="none"),i("scrollbarDragStart",t)}function v(t){const{scrollbar:n,wrapperEl:r}=e,{el:o,dragEl:a}=n;s&&(t.cancelable&&t.preventDefault(),m(t),r.style.transitionDuration="0ms",o.style.transitionDuration="0ms",a.style.transitionDuration="0ms",i("scrollbarDragMove",t))}function b(t){const n=u(),{scrollbar:r,wrapperEl:a}=e,{el:l}=r;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style.scrollSnapType="",a.style.transitionDuration=""),n.hide&&(o&&clearTimeout(o),o=T(()=>{l.style.opacity="0",l.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())}function y(t){const{scrollbar:n,params:i}=e,s=n.el;if(!s)return;const r=!!i.passiveListeners&&{passive:!1,capture:!1},o=!!i.passiveListeners&&{passive:!0,capture:!1},a="on"===t?"addEventListener":"removeEventListener";s[a]("pointerdown",g,r),document[a]("pointermove",v,r),document[a]("pointerup",b,o)}function w(){const{scrollbar:t,el:n}=e;e.params.scrollbar=Te(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const i=u();if(!i.el)return;let s;if("string"==typeof i.el&&e.isElement&&(s=e.el.querySelector(i.el)),s||"string"!=typeof i.el)s||(s=i.el);else if(s=document.querySelectorAll(i.el),!s.length)return;e.params.uniqueNavElements&&"string"==typeof i.el&&s.length>1&&1===n.querySelectorAll(i.el).length&&(s=n.querySelector(i.el)),s.length>0&&(s=s[0]);const r=s;r.classList.add(e.isHorizontal()?i.horizontalClass:i.verticalClass);let o=null;r&&(o=r.querySelector(Oe(i.dragClass)),o||(o=P("div",i.dragClass),r.append(o))),Object.assign(t,{el:r,dragEl:o}),i.draggable&&u().el&&e.scrollbar.el&&y("on"),r&&r.classList[e.enabled?"remove":"add"](...C(i.lockClass))}function _(){const t=u(),n=e.scrollbar.el;n&&n.classList.remove(...C(e.isHorizontal()?t.horizontalClass:t.verticalClass)),u().el&&e.scrollbar.el&&y("off")}t({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"}}),e.scrollbar={el:null,dragEl:null},n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const t=u();F(e.scrollbar.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===u().enabled?S():(w(),p(),h())}),n("update resize observerUpdate lock unlock changeDirection",()=>{p()}),n("setTranslate",()=>{h()}),n("setTransition",(t,n)=>{!function(t){u().el&&e.scrollbar.el&&(e.scrollbar.dragEl.style.transitionDuration=`${t}ms`)}(n)}),n("enable disable",()=>{const{el:t}=e.scrollbar;t&&t.classList[e.enabled?"remove":"add"](...C(u().lockClass))}),n("destroy",()=>{_()});const S=()=>{const t=u();e.el.classList.add(...C(t.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...C(t.scrollbarDisabledClass)),_()};Object.assign(e.scrollbar,{enable:()=>{const t=u();e.el.classList.remove(...C(t.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...C(t.scrollbarDisabledClass)),w(),p(),h()},disable:S,updateSize:p,setTranslate:h,init:w,destroy:_})},Pe=({swiper:e,extendParams:t,on:n})=>{t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let i,s=null,r=!1,o=(new Date).getTime();function a(){return e.params.a11y}function l(e){s&&e&&H(s,e)}function c(e){F(e).forEach(e=>{e.setAttribute("tabIndex","0")})}function d(e){F(e).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){F(e).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){F(e).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function p(e,t){F(e).forEach(e=>{e.setAttribute("aria-label",t)})}function f(e){F(e).forEach(e=>{e.setAttribute("aria-disabled","true")})}function m(e){F(e).forEach(e=>{e.removeAttribute("aria-disabled")})}function g(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=a(),i=e.params.pagination,s=t.target;if(!e.pagination||!e.pagination.el||s!==e.pagination.el&&!e.pagination.el.contains(s)||s.matches(Oe(i?.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=F(e.navigation.prevEl);F(e.navigation.nextEl).includes(s)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),t.includes(s)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}e.pagination&&s.matches(Oe(i?.bulletClass))&&s.click()}}function v(){return!!(e.pagination&&e.pagination.bullets&&e.pagination.bullets.length)}function b(){const t=e.params.pagination;return v()&&!!t?.clickable}const y=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",g)),p(e,n)},w=t=>{i&&i!==t.target&&!i.contains(t.target)&&(r=!0),e.a11y.clicked=!0},_=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},S=e=>{o=(new Date).getTime()},E=t=>{const n=a();if(e.a11y.clicked||!n.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const s=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!s||!e.slides.includes(s))return;i=s;const l=(e=>!!e.virtual&&!!e.params.virtual?.enabled)(e),c=(l?parseInt(s.getAttribute("data-swiper-slide-index")||"0",10):e.slides.indexOf(s))===e.activeIndex,d=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(s);if(c||d)return;const u=t.sourceCapabilities;u&&u.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{r||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index")||"0",10)),0):l?e.slideTo(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index")||"0",10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(s)),0),r=!1)}))},x=()=>{const t=a();t.itemRoleDescriptionMessage&&h(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&u(e.slides,t.slideRole);const n=e.slides.length,i=t.slideLabelMessage;i&&e.slides.forEach((t,s)=>{const r=e.params.loop?parseInt(t.getAttribute("data-swiper-slide-index")||"0",10):s;p(t,i.replace(/\{\{index\}\}/,String(r+1)).replace(/\{\{slidesLength\}\}/,String(n)))})};n("beforeInit",()=>{s=P("span",a().notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{a().enabled&&(()=>{const t=a();s&&e.el.append(s);const n=e.el;t.containerRoleDescriptionMessage&&h(n,t.containerRoleDescriptionMessage),t.containerMessage&&p(n,t.containerMessage),t.containerRole&&u(n,t.containerRole);const i=e.wrapperEl,r=String(t.id||i.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`);var o,l,c;if(o=r,F(i).forEach(e=>{e.setAttribute("id",o)}),t.wrapperLiveRegion){const t=e.params.autoplay;l=i,c=e.params.autoplay&&t?.enabled?"off":"polite",F(l).forEach(e=>{e.setAttribute("aria-live",c)})}x();const d=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},f=F(d.nextEl),m=F(d.prevEl);f&&f.forEach(e=>y(e,0,t.nextSlideMessage)),m&&m.forEach(e=>y(e,0,t.prevSlideMessage)),b()&&F(e.pagination.el).forEach(e=>{e.addEventListener("keydown",g)}),document.addEventListener("visibilitychange",S),e.el.addEventListener("focus",E,!0),e.el.addEventListener("pointerdown",w,!0),e.el.addEventListener("pointerup",_,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{a().enabled&&x()}),n("fromEdge toEdge afterInit lock unlock",()=>{a().enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:t,prevEl:n}=e.navigation;n&&(e.isBeginning?(f(n),d(n)):(m(n),c(n))),t&&(e.isEnd?(f(t),d(t)):(m(t),c(t)))}()}),n("paginationUpdate",()=>{a().enabled&&function(){const t=a();if(!v())return;const n=e.params.pagination;e.pagination.bullets.forEach(e=>{n.clickable&&(c(e),n.renderBullet||(u(e,"button"),p(e,t.paginationBulletMessage.replace(/\{\{index\}\}/,String((R(e)??0)+1))))),e.matches(Oe(n.bulletActiveClass))?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")})}()}),n("destroy",()=>{a().enabled&&function(){s&&s.remove();const t=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},n=F(t.nextEl),i=F(t.prevEl);n&&n.forEach(e=>e.removeEventListener("keydown",g)),i&&i.forEach(e=>e.removeEventListener("keydown",g)),b()&&F(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",g)}),document.removeEventListener("visibilitychange",S),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",E,!0),e.el.removeEventListener("pointerdown",w,!0),e.el.removeEventListener("pointerup",_,!0))}()})},Ie=({swiper:e,extendParams:t,on:n,emit:i,params:s})=>{function r(){return e.params.autoplay}e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});const o="object"==typeof s.autoplay&&s.autoplay&&"number"==typeof s.autoplay.delay?s.autoplay.delay:3e3;let a,l,c,d=o,u=o,h=0,p=(new Date).getTime(),f=!1,m=!1,g=!1,v=!1,b=!1;function y(t){if(!e||e.destroyed||!e.wrapperEl)return;if(t.target!==e.wrapperEl)return;e.wrapperEl.removeEventListener("transitionend",y);const n=t.detail;b||n&&n.bySwiperTouchMove||T()}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(u=h,f=!1);const t=e.autoplay.paused?h:p+u-(new Date).getTime();e.autoplay.timeLeft=t,i("autoplayTimeLeft",t,t/d),l=requestAnimationFrame(()=>{w()})},_=()=>{let t=r().delay;const n=(()=>{let t;const n=!!e.params.virtual?.enabled;if(t=e.virtual&&n?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],!t)return;const i=t.getAttribute("data-swiper-autoplay");return null!=i?parseInt(i,10):void 0})();return"number"==typeof n&&!Number.isNaN(n)&&n>0&&(t=n),t},S=t=>{if(e.destroyed||!e.autoplay.running)return 0;void 0!==l&&cancelAnimationFrame(l),w();let n=t;void 0===n&&(n=_(),d=n,u=n),h=n;const s=e.params.speed,o=()=>{if(!e||e.destroyed)return;const t=r();t.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(s,!0,!0),i("autoplay")):t.stopOnLastSlide||(e.slideTo(e.slides.length-1,s,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(s,!0,!0),i("autoplay")):t.stopOnLastSlide||(e.slideTo(0,s,!0,!0),i("autoplay")),e.params.cssMode&&(p=(new Date).getTime(),requestAnimationFrame(()=>{S()}))};return n>0?(void 0!==a&&clearTimeout(a),a=setTimeout(()=>{o()},n)):requestAnimationFrame(()=>{o()}),n},E=()=>(p=(new Date).getTime(),e.autoplay.running=!0,S(),i("autoplayStart"),!0),x=()=>(e.autoplay.running=!1,void 0!==a&&clearTimeout(a),void 0!==l&&cancelAnimationFrame(l),i("autoplayStop"),!0),C=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;void 0!==a&&clearTimeout(a),t||(v=!0);const s=()=>{i("autoplayPause"),r().waitForTransition?e.wrapperEl.addEventListener("transitionend",y):T()};if(e.autoplay.paused=!0,n)return void s();const o=h||r().delay;h=o-((new Date).getTime()-p),e.isEnd&&h<0&&!e.params.loop||(h<0&&(h=0),s())},T=()=>{e.isEnd&&h<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=(new Date).getTime(),v?(v=!1,S(h)):S(),e.autoplay.paused=!1,i("autoplayResume"))},A=()=>{!e.destroyed&&e.autoplay.running&&("hidden"===document.visibilityState&&(v=!0,C(!0)),"visible"===document.visibilityState&&T())},k=t=>{"mouse"===t.pointerType&&(v=!0,b=!0,e.animating||e.autoplay.paused||C(!0))},O=t=>{"mouse"===t.pointerType&&(b=!1,e.autoplay.paused&&T())};n("init",()=>{r().enabled&&(r().pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",k),e.el.addEventListener("pointerleave",O)),document.addEventListener("visibilitychange",A),E())}),n("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",k),e.el.removeEventListener("pointerleave",O)),document.removeEventListener("visibilitychange",A),e.autoplay.running&&x()}),n("_freeModeStaticRelease",()=>{(g||v)&&T()}),n("_freeModeNoMomentumRelease",()=>{r().disableOnInteraction?x():C(!0,!0)}),n("beforeTransitionStart",(t,n,i)=>{!e.destroyed&&e.autoplay.running&&(i||!r().disableOnInteraction?C(!0,!0):x())}),n("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(r().disableOnInteraction?x():(m=!0,g=!1,v=!1,c=setTimeout(()=>{v=!0,g=!0,C(!0)},200)))}),n("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&m){if(void 0!==c&&clearTimeout(c),void 0!==a&&clearTimeout(a),r().disableOnInteraction)return g=!1,void(m=!1);g&&e.params.cssMode&&T(),g=!1,m=!1}}),n("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(h=_(),d=_())}),Object.assign(e.autoplay,{start:E,stop:x,pause:C,resume:T})};function Ne({element:e,visibleClass:t,waitMode:n="transitionend",timeoutDuration:i,hideMode:s="hidden",displayValue:r="block"}){if("timeout"===n&&"number"!=typeof i)return;window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(n="immediate");const o=t=>{t.target===e&&(a(),e.removeEventListener("transitionend",o))},a=()=>{"display"===s?e.style.display="none":e.setAttribute("hidden",!0)};return{show(){e.removeEventListener("transitionend",o),this.timeout&&clearTimeout(this.timeout),"display"===s?e.style.display=r:e.removeAttribute("hidden"),e.offsetHeight,e.classList.add(t)},hide(){"transitionend"===n?e.addEventListener("transitionend",o):"timeout"===n?this.timeout=setTimeout(()=>{a()},i):a(),e.classList.remove(t)},toggle(){this.isHidden()?this.show():this.hide()},isHidden(){const n=null!==e.getAttribute("hidden"),i="none"===e.style.display,s=[...e.classList].includes(t);return n||i||!s},timeout:null}}var Re="top",ze="bottom",Be="right",Fe="left",He="auto",$e=[Re,ze,Be,Fe],Ve="start",je="end",qe="viewport",We="popper",Ue=$e.reduce(function(e,t){return e.concat([t+"-"+Ve,t+"-"+je])},[]),Ge=[].concat($e,[He]).reduce(function(e,t){return e.concat([t,t+"-"+Ve,t+"-"+je])},[]),Ye=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Xe(e){return e?(e.nodeName||"").toLowerCase():null}function Ke(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Je(e){return e instanceof Ke(e).Element||e instanceof Element}function Qe(e){return e instanceof Ke(e).HTMLElement||e instanceof HTMLElement}function Ze(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ke(e).ShadowRoot||e instanceof ShadowRoot)}var et={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];Qe(s)&&Xe(s)&&(Object.assign(s.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Qe(i)&&Xe(i)&&(Object.assign(i.style,r),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function tt(e){return e.split("-")[0]}var nt=Math.max,it=Math.min,st=Math.round;function rt(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ot(){return!/^((?!chrome|android).)*safari/i.test(rt())}function at(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,r=1;t&&Qe(e)&&(s=e.offsetWidth>0&&st(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&st(i.height)/e.offsetHeight||1);var o=(Je(e)?Ke(e):window).visualViewport,a=!ot()&&n,l=(i.left+(a&&o?o.offsetLeft:0))/s,c=(i.top+(a&&o?o.offsetTop:0))/r,d=i.width/s,u=i.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function lt(e){var t=at(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function ct(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ze(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function dt(e){return Ke(e).getComputedStyle(e)}function ut(e){return["table","td","th"].indexOf(Xe(e))>=0}function ht(e){return((Je(e)?e.ownerDocument:e.document)||window.document).documentElement}function pt(e){return"html"===Xe(e)?e:e.assignedSlot||e.parentNode||(Ze(e)?e.host:null)||ht(e)}function ft(e){return Qe(e)&&"fixed"!==dt(e).position?e.offsetParent:null}function mt(e){for(var t=Ke(e),n=ft(e);n&&ut(n)&&"static"===dt(n).position;)n=ft(n);return n&&("html"===Xe(n)||"body"===Xe(n)&&"static"===dt(n).position)?t:n||function(e){var t=/firefox/i.test(rt());if(/Trident/i.test(rt())&&Qe(e)&&"fixed"===dt(e).position)return null;var n=pt(e);for(Ze(n)&&(n=n.host);Qe(n)&&["html","body"].indexOf(Xe(n))<0;){var i=dt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function gt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vt(e,t,n){return nt(e,it(t,n))}function bt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function yt(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var wt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=tt(n.placement),l=gt(a),c=[Fe,Be].indexOf(a)>=0?"height":"width";if(r&&o){var d=function(e,t){return bt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:yt(e,$e))}(s.padding,n),u=lt(r),h="y"===l?Re:Fe,p="y"===l?ze:Be,f=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],m=o[l]-n.rects.reference[l],g=mt(r),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=f/2-m/2,y=d[h],w=v-u[c]-d[p],_=v/2-u[c]/2+b,S=vt(y,_,w),E=l;n.modifiersData[i]=((t={})[E]=S,t.centerOffset=S-_,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&ct(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _t(e){return e.split("-")[1]}var St={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Et(e){var t,n=e.popper,i=e.popperRect,s=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=o.x,p=void 0===h?0:h,f=o.y,m=void 0===f?0:f,g="function"==typeof d?d({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),y=Fe,w=Re,_=window;if(c){var S=mt(n),E="clientHeight",x="clientWidth";S===Ke(n)&&"static"!==dt(S=ht(n)).position&&"absolute"===a&&(E="scrollHeight",x="scrollWidth"),(s===Re||(s===Fe||s===Be)&&r===je)&&(w=ze,m-=(u&&S===_&&_.visualViewport?_.visualViewport.height:S[E])-i.height,m*=l?1:-1),s!==Fe&&(s!==Re&&s!==ze||r!==je)||(y=Be,p-=(u&&S===_&&_.visualViewport?_.visualViewport.width:S[x])-i.width,p*=l?1:-1)}var C,T=Object.assign({position:a},c&&St),A=!0===d?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:st(n*s)/s||0,y:st(i*s)/s||0}}({x:p,y:m},Ke(n)):{x:p,y:m};return p=A.x,m=A.y,l?Object.assign({},T,((C={})[w]=b?"0":"",C[y]=v?"0":"",C.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},T,((t={})[w]=b?m+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var xt={passive:!0},Ct={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,r=void 0===s||s,o=i.resize,a=void 0===o||o,l=Ke(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",n.update,xt)}),a&&l.addEventListener("resize",n.update,xt),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",n.update,xt)}),a&&l.removeEventListener("resize",n.update,xt)}},data:{}},Tt={left:"right",right:"left",bottom:"top",top:"bottom"};function At(e){return e.replace(/left|right|bottom|top/g,function(e){return Tt[e]})}var kt={start:"end",end:"start"};function Ot(e){return e.replace(/start|end/g,function(e){return kt[e]})}function Lt(e){var t=Ke(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dt(e){return at(ht(e)).left+Lt(e).scrollLeft}function Mt(e){var t=dt(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function Pt(e){return["html","body","#document"].indexOf(Xe(e))>=0?e.ownerDocument.body:Qe(e)&&Mt(e)?e:Pt(pt(e))}function It(e,t){var n;void 0===t&&(t=[]);var i=Pt(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),r=Ke(i),o=s?[r].concat(r.visualViewport||[],Mt(i)?i:[]):i,a=t.concat(o);return s?a:a.concat(It(pt(o)))}function Nt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Rt(e,t,n){return t===qe?Nt(function(e,t){var n=Ke(e),i=ht(e),s=n.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=ot();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+Dt(e),y:l}}(e,n)):Je(t)?function(e,t){var n=at(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Nt(function(e){var t,n=ht(e),i=Lt(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=nt(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=nt(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Dt(e),l=-i.scrollTop;return"rtl"===dt(s||n).direction&&(a+=nt(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(ht(e)))}function zt(e){var t,n=e.reference,i=e.element,s=e.placement,r=s?tt(s):null,o=s?_t(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Re:t={x:a,y:n.y-i.height};break;case ze:t={x:a,y:n.y+n.height};break;case Be:t={x:n.x+n.width,y:l};break;case Fe:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?gt(r):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case Ve:t[c]=t[c]-(n[d]/2-i[d]/2);break;case je:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function Bt(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,r=n.strategy,o=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?qe:c,u=n.elementContext,h=void 0===u?We:u,p=n.altBoundary,f=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=bt("number"!=typeof g?g:yt(g,$e)),b=h===We?"reference":We,y=e.rects.popper,w=e.elements[f?b:h],_=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=It(pt(e)),n=["absolute","fixed"].indexOf(dt(e).position)>=0&&Qe(e)?mt(e):e;return Je(n)?t.filter(function(e){return Je(e)&&ct(e,n)&&"body"!==Xe(e)}):[]}(e):[].concat(t),r=[].concat(s,[n]),o=r[0],a=r.reduce(function(t,n){var s=Rt(e,n,i);return t.top=nt(s.top,t.top),t.right=it(s.right,t.right),t.bottom=it(s.bottom,t.bottom),t.left=nt(s.left,t.left),t},Rt(e,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Je(w)?w:w.contextElement||ht(e.elements.popper),l,d,o),S=at(e.elements.reference),E=zt({reference:S,element:y,placement:s}),x=Nt(Object.assign({},y,E)),C=h===We?x:S,T={top:_.top-C.top+v.top,bottom:C.bottom-_.bottom+v.bottom,left:_.left-C.left+v.left,right:C.right-_.right+v.right},A=e.modifiersData.offset;if(h===We&&A){var k=A[s];Object.keys(T).forEach(function(e){var t=[Be,ze].indexOf(e)>=0?1:-1,n=[Re,ze].indexOf(e)>=0?"y":"x";T[e]+=k[n]*t})}return T}function Ft(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Ge:l,d=_t(i),u=d?a?Ue:Ue.filter(function(e){return _t(e)===d}):$e,h=u.filter(function(e){return c.indexOf(e)>=0});0===h.length&&(h=u);var p=h.reduce(function(t,n){return t[n]=Bt(e,{placement:n,boundary:s,rootBoundary:r,padding:o})[tt(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var Ht={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0===o||o,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=tt(g),b=l||(v!==g&&f?function(e){if(tt(e)===He)return[];var t=At(e);return[Ot(e),t,Ot(t)]}(g):[At(g)]),y=[g].concat(b).reduce(function(e,n){return e.concat(tt(n)===He?Ft(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,_=t.rects.popper,S=new Map,E=!0,x=y[0],C=0;C<y.length;C++){var T=y[C],A=tt(T),k=_t(T)===Ve,O=[Re,ze].indexOf(A)>=0,L=O?"width":"height",D=Bt(t,{placement:T,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),M=O?k?Be:Fe:k?ze:Re;w[L]>_[L]&&(M=At(M));var P=At(M),I=[];if(r&&I.push(D[A]<=0),a&&I.push(D[M]<=0,D[P]<=0),I.every(function(e){return e})){x=T,E=!1;break}S.set(T,I)}if(E)for(var N=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},R=f?3:1;R>0&&"break"!==N(R);R--);t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function $t(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Vt(e){return[Re,Be,ze,Fe].some(function(t){return e[t]>=0})}var jt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=Bt(t,{elementContext:"reference"}),a=Bt(t,{altBoundary:!0}),l=$t(o,i),c=$t(a,s,r),d=Vt(l),u=Vt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},qt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,r=void 0===s?[0,0]:s,o=Ge.reduce(function(e,n){return e[n]=function(e,t,n){var i=tt(e),s=[Fe,Re].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[Fe,Be].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,t.rects,r),e},{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}},Wt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=zt({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Ut={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,m=void 0===f?0:f,g=Bt(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=tt(t.placement),b=_t(t.placement),y=!b,w=gt(v),_="x"===w?"y":"x",S=t.modifiersData.popperOffsets,E=t.rects.reference,x=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(r){var O,L="y"===w?Re:Fe,D="y"===w?ze:Be,M="y"===w?"height":"width",P=S[w],I=P+g[L],N=P-g[D],R=p?-x[M]/2:0,z=b===Ve?E[M]:x[M],B=b===Ve?-x[M]:-E[M],F=t.elements.arrow,H=p&&F?lt(F):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=$[L],j=$[D],q=vt(0,E[M],H[M]),W=y?E[M]/2-R-q-V-T.mainAxis:z-q-V-T.mainAxis,U=y?-E[M]/2+R+q+j+T.mainAxis:B+q+j+T.mainAxis,G=t.elements.arrow&&mt(t.elements.arrow),Y=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,X=null!=(O=null==A?void 0:A[w])?O:0,K=P+U-X,J=vt(p?it(I,P+W-X-Y):I,P,p?nt(N,K):N);S[w]=J,k[w]=J-P}if(a){var Q,Z="x"===w?Re:Fe,ee="x"===w?ze:Be,te=S[_],ne="y"===_?"height":"width",ie=te+g[Z],se=te-g[ee],re=-1!==[Re,Fe].indexOf(v),oe=null!=(Q=null==A?void 0:A[_])?Q:0,ae=re?ie:te-E[ne]-x[ne]-oe+T.altAxis,le=re?te+E[ne]+x[ne]-oe-T.altAxis:se,ce=p&&re?function(e,t,n){var i=vt(e,t,n);return i>n?n:i}(ae,te,le):vt(p?ae:ie,te,p?le:se);S[_]=ce,k[_]=ce-te}t.modifiersData[i]=k}},requiresIfExists:["offset"]};function Gt(e,t,n){void 0===n&&(n=!1);var i,s,r=Qe(t),o=Qe(t)&&function(e){var t=e.getBoundingClientRect(),n=st(t.width)/e.offsetWidth||1,i=st(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=ht(t),l=at(e,o,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==Xe(t)||Mt(a))&&(c=(i=t)!==Ke(i)&&Qe(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:Lt(i)),Qe(t)?((d=at(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Dt(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Yt(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||s(e)}),i}var Xt={placement:"bottom",modifiers:[],strategy:"absolute"};function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Jt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,r=void 0===s?Xt:s;return function(e,t,n){void 0===n&&(n=r);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xt,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},r,a.options,s),a.scrollParents={reference:Je(e)?It(e):e.contextElement?It(e.contextElement):[],popper:It(t)};var o,c,h=function(e){var t=Yt(e);return Ye.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((o=[].concat(i,a.options.modifiers),c=o.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return a.orderedModifiers=h.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var r=s({state:a,name:t,instance:d,options:i});l.push(r||function(){})}}),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Kt(t,n)){a.rects={reference:Gt(t,mt(n),"fixed"===a.options.strategy),popper:lt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],r=s.fn,o=s.options,l=void 0===o?{}:o,u=s.name;"function"==typeof r&&(a=r({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise(function(e){d.forceUpdate(),e(a)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(s())})})),o}),destroy:function(){u(),c=!0}};if(!Kt(e,t))return d;function u(){l.forEach(function(e){return e()}),l=[]}return d.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var Qt=Jt({defaultModifiers:[Ct,Wt,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,r=n.adaptive,o=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:tt(t.placement),variation:_t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Et(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Et(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},et,qt,Ht,Ut,wt,jt]});function Zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var en,tn={exports:{}},nn=(en||(en=1,tn.exports=function(){var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function n(e,t){return e.substring(0,t.length)===t}function i(e,t,n){if((e[t]||e[n])&&e[t]===e[n])throw new Error(t)}function s(e){return"number"==typeof e&&isFinite(e)}function r(e,n,i,r,o,a,l,c,d,u,h,p){var f,m,g,v,b,y=p,w="",_="";return a&&(p=a(p)),!!s(p)&&(!1!==e&&0===parseFloat(p.toFixed(e))&&(p=0),p<0&&(f=!0,p=Math.abs(p)),!1!==e&&(b=e,v=(v=p).toString().split("e"),p=(+((v=(v=Math.round(+(v[0]+"e"+(v[1]?+v[1]+b:b)))).toString().split("e"))[0]+"e"+(v[1]?+v[1]-b:-b))).toFixed(b)),-1!==(p=p.toString()).indexOf(".")?(g=(m=p.split("."))[0],i&&(w=i+m[1])):g=p,n&&(g=t(g).match(/.{1,3}/g),g=t(g.join(t(n)))),f&&c&&(_+=c),r&&(_+=r),f&&d&&(_+=d),_+=g,_+=w,o&&(_+=o),u&&(_=u(_,y)),_)}function o(e,t,i,r,o,a,l,c,d,u,h,p){var f,m="";return h&&(p=h(p)),!(!p||"string"!=typeof p)&&(c&&n(p,c)&&(p=p.replace(c,""),f=!0),r&&n(p,r)&&(p=p.replace(r,"")),d&&n(p,d)&&(p=p.replace(d,""),f=!0),o&&function(e,t){return e.slice(-1*t.length)===t}(p,o)&&(p=p.slice(0,-1*o.length)),t&&(p=p.split(t).join("")),i&&(p=p.replace(i,".")),f&&(m+="-"),""!==(m=(m+=p).replace(/[^0-9\.\-.]/g,""))&&(m=Number(m),l&&(m=l(m)),!!s(m)&&m))}function a(t,n,i){var s,r=[];for(s=0;s<e.length;s+=1)r.push(t[e[s]]);return r.push(i),n.apply("",r)}return function t(n){if(!(this instanceof t))return new t(n);"object"==typeof n&&(n=function(t){var n,s,r,o={};for(void 0===t.suffix&&(t.suffix=t.postfix),n=0;n<e.length;n+=1)if(void 0===(r=t[s=e[n]]))"negative"!==s||o.negativeBefore?"mark"===s&&"."!==o.thousand?o[s]=".":o[s]=!1:o[s]="-";else if("decimals"===s){if(!(r>=0&&r<8))throw new Error(s);o[s]=r}else if("encoder"===s||"decoder"===s||"edit"===s||"undo"===s){if("function"!=typeof r)throw new Error(s);o[s]=r}else{if("string"!=typeof r)throw new Error(s);o[s]=r}return i(o,"mark","thousand"),i(o,"prefix","negative"),i(o,"prefix","negativeBefore"),o}(n),this.to=function(e){return a(n,r,e)},this.from=function(e){return a(n,o,e)})}}()),tn.exports),sn=Zt(nn);function rn(e){return e.charAt(0).toLowerCase()+e.slice(1)}const on={rootContainerSelector:"#root-tooltips",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom",strategy:"absolute",modifiers:[{name:"arrow",options:{element:".tooltip__arrow",padding:10}},{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["right","top","auto"]}},{name:"offset",options:{offset:({placement:e})=>e.includes("start")?[-10,0]:e.includes("end")?[10,0]:[0,0]}}]}};class an{element;config;instance;trigger;rootContainer;transitioner;isOpen=!1;ignoreNextBlur=!1;constructor(e,t){return this.element=e,this.config={...on,...t},this.config.popperOptions={...on.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...on.popperOptions.modifiers,...t?.popperOptions?.modifiers||[]],this.handleVisibility=this.handleVisibility.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onDialogMouseDown=this.onDialogMouseDown.bind(this),this.onDocumentClick=this.onDocumentClick.bind(this),this.element.ODS_Tooltip=this,this.init(),this}static getInstance(e){return e&&e.ODS_Tooltip?e.ODS_Tooltip:null}wrapLastWordAndButton(){if(!this.element.hasAttribute("data-tooltip-keep-with-text"))return;const e=this.trigger.previousSibling;if(!e||e.nodeType!==Node.TEXT_NODE)return;const t=(e.textContent?.trim()||"").split(" "),n=t.pop(),i=t.join(" ");e.textContent=i+" ";const s=document.createElement("span");s.className="text-nowrap",s.innerHTML=`${n} ${this.trigger.outerHTML}`,this.trigger.parentNode?.replaceChild(s,this.trigger),this.trigger=s.querySelector("[data-tooltip-trigger]")}init(){this.trigger=document.querySelector(`[data-tooltip-trigger][aria-describedby=${this.element.getAttribute("id")}]`),this.trigger,this.element.hasAttribute("data-tooltip-keep-with-text")&&this.wrapLastWordAndButton(),this.rootContainer=document.querySelector(this.config.rootContainerSelector),this.rootContainer&&this.rootContainer.appendChild(this.element);const e=this.element.getAttribute("data-tooltip-placement");e&&(this.config.popperOptions.placement=e),this.instance=Qt(this.trigger,this.element,this.config.popperOptions),this.transitioner=Ne({element:this.element,visibleClass:"is-visible"}),this.element.addEventListener("mousedown",this.onDialogMouseDown),this.trigger.addEventListener("click",this.handleVisibility),this.trigger.addEventListener("keydown",this.handleVisibility),this.trigger.addEventListener("blur",this.handleVisibility)}onDialogMouseDown(){this.ignoreNextBlur=!0}onDocumentClick(e){const t=e.target;t&&(this.trigger.contains(t)||this.element.contains(t)||this.hide())}handleVisibility(e){if("click"!==e.type)if("keydown"!==e.type){if("blur"===e.type){if(this.ignoreNextBlur)return void(this.ignoreNextBlur=!1);this.hide()}}else this.onKeydown(e);else this.toggle()}onKeydown(e){if(("Enter"===e.key||" "===e.key)&&"BUTTON"!==this.trigger.tagName)return e.preventDefault(),void this.toggle();w.ESC.includes(e.key)&&this.hide()}toggle(){this.isOpen?this.hide():this.show()}show(){this.transitioner.show(),this.trigger.classList.add("is-active"),this.isOpen=!0,this.instance.forceUpdate(),document.addEventListener("click",this.onDocumentClick)}hide(){this.transitioner.hide(),this.trigger.classList.remove("is-active"),this.isOpen=!1,document.removeEventListener("click",this.onDocumentClick)}update(){this.instance.forceUpdate()}destroy(){this.element.removeEventListener("mousedown",this.onDialogMouseDown),this.trigger.removeEventListener("click",this.handleVisibility),this.trigger.removeEventListener("keydown",this.handleVisibility),this.trigger.removeEventListener("blur",this.handleVisibility),document.removeEventListener("click",this.onDocumentClick),this.instance.destroy(),this.element.ODS_Tooltip=null,this.config.removeDialogOnDestroy&&this.element.remove()}}const ln="carousel",cn=`${ln}__viewport-wrapper`,dn=`${ln}__track`,un=`${ln}__slide`,hn=`${ln}__pagination-item`,pn="is-active",fn=`${ln}--bleed-right`,mn=`${ln}--bleed-right-no-left`,gn=`.${ln}__viewport`,vn=`.${dn}`,bn=`.${ln}__prev`,yn=`.${ln}__next`,wn=`.${ln}__pagination`,_n=`.${ln}__scrollbar`,Sn=`.${pn}`,En={navigation:{nextEl:yn,prevEl:bn},pagination:{el:wn,clickable:!0,bulletClass:hn,bulletActiveClass:pn,renderBullet:(e,t)=>`<button aria-label="Page ${e+1}" role="tab" class="${t}" type="button"></button>`},scrollbar:{el:_n,draggable:!0,enabled:!0,horizontalClass:`${ln}__scrollbar-horizontal`,dragClass:`${ln}__scrollbar-drag`,hide:!1},slidesPerView:1.2,spaceBetween:20,mousewheel:{forceToAxis:!0,sensitivity:1},a11y:{enabled:!0,scrollOnFocus:!1,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},loop:!1,cssMode:!1,direction:"horizontal",breakpoints:{1240:{slidesPerView:1.6}},wrapperClass:dn,slideClass:un,slideActiveClass:pn,slideNextClass:`${ln}__slide-next`,slidePrevClass:`${ln}__slide-prev`};class xn{element;config;viewport;track;instance;carouselId;isScrollbarDragging=!1;externalControlsState=null;resizeObserver;resizeRafId;boundWindowResizeHandler;bleedResizeHandler;static OVERFLOW_EPSILON_PX=1;getViewportWrapper(){return this.element.querySelector(`.${cn}`)}isBleedRight(){return this.element.classList.contains(fn)||this.element.classList.contains(mn)}getSlidesPerView(){return Number(this.instance?.params?.slidesPerView)||1}setScrollbarVisible(e){const t=this.element.querySelector(_n);t&&(t.style.display=e?"":"none")}getSlidesContentWidth(){if(!this.instance)return this.track?.scrollWidth||0;const e=Array.from(this.instance.slides),t=e.reduce((e,t)=>e+t.offsetWidth,0),n=Number(this.instance.params?.spaceBetween)||0,i=t+Math.max(e.length-1,0)*n;return t<=0||i<=0?this.track?.scrollWidth||0:i}getOverflowWidth(e){const t=this.isBleedRight()?this.element.clientWidth||e?.clientWidth||0:this.viewport?.clientWidth||0;return t<=0?0:this.getSlidesContentWidth()-t}hasScrollableContent(e){if(!this.instance||!this.instance.params)return!1;const t=this.getOverflowWidth(e);return 0!==t?t>xn.OVERFLOW_EPSILON_PX:this.instance.slides.length>this.getSlidesPerView()}constructor(e,t){const n=e.querySelector(_n),i="object"==typeof t?.scrollbar&&null!==t.scrollbar?t.scrollbar:void 0,s="object"==typeof En.scrollbar&&null!==En.scrollbar?En.scrollbar:void 0;return this.element=e,this.config={...En,...t,scrollbar:{...En.scrollbar??{},...t?.scrollbar??{},el:n,enabled:!!n&&(i?.enabled??s?.enabled)}},this.handleSlideChange=this.handleSlideChange.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.boundWindowResizeHandler=this.handleWindowResize.bind(this),this.element.ODS_Carousel=this,requestAnimationFrame(()=>{this.init()}),this}init(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions();const e=this.isBleedRight();this.instance=new _e(this.viewport,{...this.config,watchOverflow:!e&&this.config.watchOverflow,enabled:!1,modules:[ke,De,Me,Pe,xe,Ce],on:{slideChange:this.handleSlideChange,slideChangeTransitionEnd:()=>{this.updateExternalControlsState()},scrollbarDragStart:()=>{this.isScrollbarDragging=!0},scrollbarDragEnd:()=>{this.isScrollbarDragging=!1,this.updateExternalControlsState(!0)}}}),this.updateCarouselEnabledState(),this.isBleedRight()&&(this.adjustConfigForBleedRight(),this.fixBleedRightScrollbar()),this.syncScrollbar(),this.instance&&"function"==typeof this.instance.on&&this.instance.on("resize",()=>{this.updateCarouselEnabledState()}),this.observeVisibilityChanges(),window.addEventListener("resize",this.boundWindowResizeHandler),this.initExternalControls(),requestAnimationFrame(()=>{this.instance&&this.instance.update()})}handleWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateCarouselEnabledState(),this.bleedResizeHandler?.(),this.updateExternalControlsState(),this.instance.scrollbar?.updateSize()))})}syncScrollbar(){requestAnimationFrame(()=>{this.instance?.scrollbar&&this.instance.scrollbar.updateSize()})}observeVisibilityChanges(){"undefined"!=typeof ResizeObserver&&(this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(()=>{this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateCarouselEnabledState(),this.instance.scrollbar?.updateSize()))}),this.resizeObserver.observe(this.viewport))}fixBleedRightScrollbar(){const e=()=>{const e=this.getViewportWrapper(),t=this.instance?.scrollbar,n=this.instance;if(!(e&&t&&t.dragEl&&n))return;if(!this.hasScrollableContent(e))return void this.setScrollbarVisible(!1);this.setScrollbarVisible(!0);const i=t.el.offsetWidth,s=this.instance?.width||this.element.clientWidth||e.clientWidth,r=this.getSlidesContentWidth(),o="function"==typeof n.minTranslate?n.minTranslate():0,a="function"==typeof n.maxTranslate?n.maxTranslate():0,l=Math.max(Math.abs(a-o),0),c=Math.max(r,s+l),d=(c>0?Math.min(s/c,1):1)*i,u=Math.max(d,30);t.dragEl.style.width=`${u}px`,t.dragEl.style.display="";const h=Math.min(Math.max(n.progress||0,0),1)*Math.max(i-u,0);t.dragEl.style.transform=`translate3d(${h}px, 0, 0)`};requestAnimationFrame(()=>{requestAnimationFrame(e)}),this.instance.on("progress",e),this.instance.on("slideChange",e),this.instance.on("resize",e),this.instance.on("update",e),this.instance.on("setTranslate",e)}getElements(){this.viewport=this.element.querySelector(gn),this.track=this.viewport.querySelector(vn);const e=this.element.querySelector(wn);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={navigation:{...this.config.navigation??{},nextEl:this.element.querySelector(yn),prevEl:this.element.querySelector(bn)},pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:hn,bulletActiveClass:pn}};this.config={...this.config,...t}}getCustomOptions(){const e=this.element.getAttribute("data-swiper-options");if(!e)return;const t=JSON.parse(e);this.config={...this.config,...t}}updateCarouselEnabledState(){if(!this.instance||!this.instance.params)return;const e=this.getViewportWrapper();this.hasScrollableContent(e||void 0)?this.instance.enable():this.instance.disable(),this.setScrollbarVisible(this.instance.enabled)}applyBleedInsets(e){if(!this.instance||!this.instance.params)return;const t=this.element.clientWidth||e.clientWidth||0,n=document.documentElement?.clientWidth||window.innerWidth||0,i=e.getBoundingClientRect(),s=this.element.getBoundingClientRect(),r=this.element.classList.contains(mn),o=s.left>0?s.left:i.left,a=Math.max(Math.floor(o),0),l=r?Math.max(Math.floor(n-a),t,0):Math.max(Math.floor(n),t,0),c=r?0:-a,d=Math.max(r?l:l-a,t,0),u=this.getSlidesContentWidth(),h=u-t,p=this.getSlidesPerView(),f=this.instance.slides.length,m=!(u>0?h>xn.OVERFLOW_EPSILON_PX:f>p),g=!m,v=m?"100%":`${d}px`,b=m||r?"0px":`${a}px`,y=m?"100%":`${l}px`,w=m?"0px":`${c}px`,_=this.isBleedRight()!==g||this.instance.params.width!==(m?void 0:t)||this.element.style.getPropertyValue("--carousel-bleed-viewport-width")!==v||this.element.style.getPropertyValue("--carousel-bleed-margin-left")!==b||this.element.style.getPropertyValue("--carousel-bleed-shell-width")!==y||this.element.style.getPropertyValue("--carousel-bleed-shell-margin-left")!==w;r||this.element.classList.toggle(fn,g);const S=m?void 0:t;this.instance.params.width=S,this.instance.originalParams&&(this.instance.originalParams.width=S),this.instance.params.slidesOffsetBefore=0,this.instance.params.slidesOffsetAfter=0,this.element.style.setProperty("--carousel-bleed-viewport-width",v),this.element.style.setProperty("--carousel-bleed-margin-left",b),this.element.style.setProperty("--carousel-bleed-shell-width",y),this.element.style.setProperty("--carousel-bleed-shell-margin-left",w),_&&this.instance.update(),this.updateCarouselEnabledState()}adjustConfigForBleedRight(){requestAnimationFrame(()=>{if(!this.instance)return;const e=this.getViewportWrapper();if(!e)return;const t=()=>{this.applyBleedInsets(e)};this.bleedResizeHandler=t,t(),this.instance.on("resize",t)})}handleSlideChange(){const e=this.track.querySelector(Sn),t=this.track.querySelectorAll(`.${un}:not(${Sn})`);e&&this.updateTooltipPosition(e),t.length>0&&this.hideAllTooltips(t),this.updateExternalControlsState()}updateTooltipPosition(e){const t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(e=>{const t=e.getAttribute("aria-describedby");if(!t)return;const n=document.getElementById(t);if(!n)return;const i=an.getInstance(n);i&&i.update()})}hideAllTooltips(e){e.forEach(e=>{const t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(e=>{const t=e.getAttribute("aria-describedby");if(!t)return;const n=document.getElementById(t);if(!n)return;const i=an.getInstance(n);i&&(i.hide(),e.blur())})})}initExternalControls(){const e=this.element.dataset.carouselId||this.element.id;e&&(this.carouselId=e,document.querySelectorAll(`[data-carousel-controls="${e}"]`).forEach(e=>{const t=e;if(t.hasAttribute("data-carousel-initialized"))return;t._carouselClickHandler&&t.removeEventListener("click",t._carouselClickHandler);const n=t.dataset.carouselAction,i=e=>{e.preventDefault(),t.hasAttribute("disabled")||("next"===n?this.slideNext():"prev"===n&&this.slidePrev())};"next"!==n&&"prev"!==n||(t.addEventListener("click",i),t.setAttribute("aria-label","next"===n?("object"==typeof this.config.a11y?this.config.a11y?.nextSlideMessage:void 0)||"Nasledujúci snímok":("object"==typeof this.config.a11y?this.config.a11y?.prevSlideMessage:void 0)||"Predchádzajúci snímok"),t.setAttribute("type","button"),t._carouselClickHandler=i),t.setAttribute("data-carousel-initialized","true")}),this.updateExternalControlsState())}updateExternalControlsState(e=!1){if(!this.carouselId||!this.instance)return;if(!this.instance.params)return;if(this.isScrollbarDragging&&!e)return;const t=!this.instance.enabled,n=t||this.instance.isBeginning,i=t||this.instance.isEnd;this.externalControlsState={isAtStart:n,isAtEnd:i},this.applyExternalControlsState(this.externalControlsState)}applyExternalControlsState(e){const{isAtStart:t,isAtEnd:n}=e,i=document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"][data-carousel-action="prev"]`),s=document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"][data-carousel-action="next"]`);i.forEach(e=>{const n=e;t?(n.setAttribute("disabled",""),n.setAttribute("aria-disabled","true"),n.style.cursor="not-allowed"):(n.removeAttribute("disabled"),n.setAttribute("aria-disabled","false"),n.style.cursor="pointer")}),s.forEach(e=>{const t=e;n?(t.setAttribute("disabled",""),t.setAttribute("aria-disabled","true"),t.style.cursor="not-allowed"):(t.removeAttribute("disabled"),t.setAttribute("aria-disabled","false"),t.style.cursor="pointer")})}slideNext(){this.instance&&this.instance.slideNext()}slidePrev(){this.instance&&this.instance.slidePrev()}getActiveIndex(){return this.instance?this.instance.activeIndex:0}onSlideChange(e){this.instance&&this.instance.on("slideChange",()=>{e(this.instance.activeIndex)})}destroy(){this.carouselId&&document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"]`).forEach(e=>{const t=e;t._carouselClickHandler&&(t.removeEventListener("click",t._carouselClickHandler),delete t._carouselClickHandler),t.removeAttribute("data-carousel-initialized")}),window.removeEventListener("resize",this.boundWindowResizeHandler),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0),this.instance&&this.bleedResizeHandler&&(this.instance.off("resize",this.bleedResizeHandler),this.bleedResizeHandler=void 0),this.instance&&this.instance.destroy(),this.isScrollbarDragging=!1,this.externalControlsState=null,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.element.ODS_Carousel===this&&delete this.element.ODS_Carousel}update(){this.instance&&this.instance.update()}static getInstance(e){return e&&e.ODS_Carousel?e.ODS_Carousel:null}static getInstanceById(e){const t=document.querySelector(`[data-carousel-id="${e}"]`)||document.getElementById(e);return t?this.getInstance(t):null}}const Cn="carousel-hero",Tn=`${Cn}__slide`,An=`${Cn}__pagination-item`,kn=`${Cn}__pagination-svg`,On=`${Cn}__pagination-circle`,Ln="is-active",Dn="is-playing",Mn="is-paused",Pn=`.${Cn}__viewport`,In=`.${Cn}__prev`,Nn=`.${Cn}__next`,Rn=`.${Cn}__play-pause`,zn=`.${Cn}__tabs`,Bn=`.${Cn}__tab`,Fn=`.${Cn}__pagination`,Hn={pagination:{clickable:!0,bulletClass:An,bulletActiveClass:"is-active",renderBullet:function(e,t){return`<button type="button" class="${t}" aria-label="Prejsť na snímok ${e+1}"></button>`}},slidesPerView:1,loop:!1,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",containerMessage:"Hero carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},wrapperClass:`${Cn}__track`,slideClass:Tn,slideActiveClass:Ln},$n="carousel-promotions",Vn=`${$n}__pagination-item`,jn=`${$n}__pagination-svg`,qn=`${$n}__pagination-circle`,Wn=`${$n}--slide-inverted`,Un="is-autoplay",Gn="is-active",Yn=`.${$n}__viewport`,Xn=`.${$n}__pagination`,Kn={pagination:{el:Xn,clickable:!0,bulletClass:Vn,bulletActiveClass:Gn,renderBullet:(e,t)=>`<button aria-label="Stránka ${e+1}" role="tab" class="${t}" type="button"></button>`},slidesPerView:1,loop:!0,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},cssMode:!1,direction:"horizontal",wrapperClass:`${$n}__track`,slideClass:`${$n}__slide`,slideActiveClass:Gn,autoplay:!1};class Jn{element;config;viewport;instance;interval=0;autoplayTimer;resizeRafId;boundWindowResizeHandler;boundPaginationClickHandler;constructor(e,t){return this.element=e,this.config={...Kn,...t},this.interval=0,this.handleSlideChange=this.handleSlideChange.bind(this),this.scrollToNextSlide=this.scrollToNextSlide.bind(this),this.autoplayAnimationEnd=this.autoplayAnimationEnd.bind(this),this.boundWindowResizeHandler=this.handleWindowResize.bind(this),this.boundPaginationClickHandler=this.handlePaginationClick.bind(this),this.element.ODS_CarouselPromotions=this,this.init(),this}init(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.element.hasAttribute("data-interval")&&(this.interval=parseInt(this.element.getAttribute("data-interval")));const e=this.isIntervalValid();e?(this.element.classList.add(Un),this.config.autoplay={delay:this.interval,disableOnInteraction:!1}):(this.interval=0,this.config.autoplay=!1),this.instance=new _e(this.viewport,{...this.config,modules:[ke,De,Pe,xe,Ie],on:{slideChange:this.handleSlideChange,init:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()},update:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()}}});const t=this.element.querySelector(Xn);t&&e&&(t.addEventListener("animationend",this.autoplayAnimationEnd),t.addEventListener("click",this.boundPaginationClickHandler)),window.addEventListener("resize",this.boundWindowResizeHandler)}handlePaginationClick(){this.stopAutoplay()}handleWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()))})}stopAutoplay(){this.interval=0,this.element.classList.remove(Un),this.instance&&this.instance.autoplay&&this.instance.autoplay.stop()}handleSlideChange(){this.element.classList.remove(Wn),this.instance&&void 0!==this.instance.activeIndex&&this.instance.activeIndex%2==1&&this.element.classList.add(Wn)}autoplayAnimationEnd(e){e instanceof AnimationEvent&&"countdown"===e.animationName&&this.scrollToNextSlide()}get isAutoplayEnabled(){return this.interval>0}isIntervalValid(){const e=parseInt(String(this.interval));return!isNaN(e)&&e>=1e3}scrollToNextSlide(){if(!this.instance||!this.instance.slides)return;const e=this.instance.slides.length;if(e<=0)return;const t=this.instance.activeIndex||0;this.instance.slideTo((t+1)%e)}getElements(){this.viewport=this.element.querySelector(Yn);const e=this.element.querySelector(Xn);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:Vn,bulletActiveClass:Gn}};this.config={...this.config,...t}}getCustomOptions(){const e=this.element.getAttribute("data-swiper-options");if(!e)return;const t=JSON.parse(e);this.config={...this.config,...t}}fixPaginationButtonType(){Array.from(this.element.querySelectorAll(`${Xn} > *`)).forEach(e=>e.setAttribute("type","button"))}static createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",jn),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12"),t.setAttribute("fill","none"),t.setAttribute("xmlns",e);const n=document.createElementNS(e,"circle");return n.setAttribute("class",qn),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}renderSvgDotsForAnimation(){const e=Array.from(this.element.querySelectorAll(`${Xn} > *`)),t=Jn.createSvgDot();t.querySelector("circle").style.animationDuration=`${this.interval}ms`,e.forEach(e=>{e.innerHTML="",e.appendChild(t.cloneNode(!0))})}destroy(){window.removeEventListener("resize",this.boundWindowResizeHandler),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0);const e=this.element.querySelector(Xn);e&&(e.removeEventListener("animationend",this.autoplayAnimationEnd),e.removeEventListener("click",this.boundPaginationClickHandler)),this.instance&&this.instance.destroy(),this.element.ODS_CarouselPromotions===this&&delete this.element.ODS_CarouselPromotions}update(){this.instance&&this.instance.update()}static getInstance(e){return e&&e.ODS_CarouselPromotions?e.ODS_CarouselPromotions:null}}const Qn={many:"dni",few:"dni",one:"deň"},Zn={days:Qn,hours:"hod",minutes:"min",seconds:"sek"},ei={targetDate:"",units:[...d],labels:Zn},ti=(e,t,n)=>{if("days"!==e)return n[e];const{many:i,few:s,one:r}=p(n.days,Qn);return 1===t?r:t>=2&&t<=4?s:i},ni={dataInteractive:"data-dropdown-interactive",focusTrap:"data-dropdown-focus-trap",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom-start",strategy:"absolute",modifiers:[{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["bottom-end","bottom-start","bottom"]}},{name:"offset",options:{offset:[0,-1]}}]}},ii="toggleTrigger";function si(e){const{element:t,attribute:n,action:i,value:s,dispatchEvent:r=!0,eventDetail:o}=e;let a=null;if(!(t&&t instanceof Element))return a;if("focus"===i&&setTimeout(()=>t.focus(),20),"click"===i&&t.click(),"class"===n&&"string"==typeof s&&(t.classList.toggle(s),a=s),"text"===n){const e=t.textContent;t.textContent=s?.toString()||"",a=e}return"class"!==n&&"text"!==n&&void 0===i&&(a=t.getAttribute(n),"hidden"===n?t.hasAttribute(n)?t.removeAttribute(n):t.setAttribute(n,""):s?t.setAttribute(n,String(s)):t.setAttribute(n,String(!("true"===a)))),r&&t.dispatchEvent(new CustomEvent("toggle",{detail:o,bubbles:!0})),a}const ri={bodiesSelector:".accordion__body",buttonSelector:"[data-feature-accordion-toggle]"},oi={autoselect:!0,wrapperClassName:"",menuClassName:"",optionClassName:"",customInputClassName:"",displayMenu:"overlay",tClearButton:()=>"Vymazať text",tAssistiveHint:()=>"Pre prezeranie výsledkov automatického dopĺňania použite šípky nahor a nadol a pre výber konkrétneho výsledku použite tlačidlo Enter. Pri dotykových zariadeniach použite dotyk alebo potiahnutie prstom do strany."},ai=(e,t)=>{const n=e.split(/\s+/).filter(Boolean);return n.includes(t)?e:[...n,t].join(" ")};var li,ci,di,ui,hi,pi,fi,mi,gi,vi,bi={},yi=[],wi=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _i(e,t){for(var n in t)e[n]=t[n];return e}function Si(e){var t=e.parentNode;t&&t.removeChild(e)}function Ei(e,t,n){var i,s,r,o={};for(r in t)"key"==r?i=t[r]:"ref"==r?s=t[r]:o[r]=t[r];if(arguments.length>2&&(o.children=arguments.length>3?li.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===o[r]&&(o[r]=e.defaultProps[r]);return xi(e,o,i,s,null)}function xi(e,t,n,i,s){var r={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++di:s};return null==s&&null!=ci.vnode&&ci.vnode(r),r}function Ci(e){return e.children}function Ti(e,t){this.props=e,this.context=t}function Ai(e,t){if(null==t)return e.__?Ai(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Ai(e):null}function ki(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return ki(e)}}function Oi(e){(!e.__d&&(e.__d=!0)&&ui.push(e)&&!Li.__r++||pi!==ci.debounceRendering)&&((pi=ci.debounceRendering)||hi)(Li)}function Li(){for(var e;Li.__r=ui.length;)e=ui.sort(function(e,t){return e.__v.__b-t.__v.__b}),ui=[],e.some(function(e){var t,n,i,s,r,o;e.__d&&(r=(s=(t=e).__v).__e,(o=t.__P)&&(n=[],(i=_i({},s)).__v=s.__v+1,Fi(o,s,i,t.__n,void 0!==o.ownerSVGElement,null!=s.__h?[r]:null,n,null==r?Ai(s):r,s.__h),Hi(n,s),s.__e!=r&&ki(s)))})}function Di(e,t,n,i,s,r,o,a,l,c){var d,u,h,p,f,m,g,v=i&&i.__k||yi,b=v.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(p=n.__k[d]=null==(p=t[d])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?xi(null,p,null,null,p):Array.isArray(p)?xi(Ci,{children:p},null,null,null):p.__b>0?xi(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(h=v[d])||h&&p.key==h.key&&p.type===h.type)v[d]=void 0;else for(u=0;u<b;u++){if((h=v[u])&&p.key==h.key&&p.type===h.type){v[u]=void 0;break}h=null}Fi(e,p,h=h||bi,s,r,o,a,l,c),f=p.__e,(u=p.ref)&&h.ref!=u&&(g||(g=[]),h.ref&&g.push(h.ref,null,p),g.push(u,p.__c||f,p)),null!=f?(null==m&&(m=f),"function"==typeof p.type&&p.__k===h.__k?p.__d=l=Mi(p,l,e):l=Ii(e,p,h,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=e&&(l=Ai(h))}for(n.__e=m,d=b;d--;)null!=v[d]&&("function"==typeof n.type&&null!=v[d].__e&&v[d].__e==n.__d&&(n.__d=Ai(i,d+1)),Vi(v[d],v[d]));if(g)for(d=0;d<g.length;d++)$i(g[d],g[++d],g[++d])}function Mi(e,t,n){for(var i,s=e.__k,r=0;s&&r<s.length;r++)(i=s[r])&&(i.__=e,t="function"==typeof i.type?Mi(i,t,n):Ii(n,i,i,s,i.__e,t));return t}function Pi(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){Pi(e,t)}):t.push(e)),t}function Ii(e,t,n,i,s,r){var o,a,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||s!=r||null==s.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(s),o=null;else{for(a=r,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==s)break e;e.insertBefore(s,r),o=r}return void 0!==o?o:s.nextSibling}function Ni(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||wi.test(t)?n:n+"px"}function Ri(e,t,n,i,s){var r;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||Ni(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||Ni(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?i||e.addEventListener(t,r?Bi:zi,r):e.removeEventListener(t,r?Bi:zi,r);else if("dangerouslySetInnerHTML"!==t){if(s)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function zi(e){this.l[e.type+!1](ci.event?ci.event(e):e)}function Bi(e){this.l[e.type+!0](ci.event?ci.event(e):e)}function Fi(e,t,n,i,s,r,o,a,l){var c,d,u,h,p,f,m,g,v,b,y,w=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,r=[a]),(c=ci.__b)&&c(t);try{e:if("function"==typeof w){if(g=t.props,v=(c=w.contextType)&&i[c.__c],b=c?v?v.props.value:c.__:i,n.__c?m=(d=t.__c=n.__c).__=d.__E:("prototype"in w&&w.prototype.render?t.__c=d=new w(g,b):(t.__c=d=new Ti(g,b),d.constructor=w,d.render=ji),v&&v.sub(d),d.props=g,d.state||(d.state={}),d.context=b,d.__n=i,u=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=w.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=_i({},d.__s)),_i(d.__s,w.getDerivedStateFromProps(g,d.__s))),h=d.props,p=d.state,u)null==w.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==w.getDerivedStateFromProps&&g!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,b),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,b)||t.__v===n.__v){d.props=g,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,p,f)})}d.context=b,d.props=g,d.state=d.__s,(c=ci.__r)&&c(t),d.__d=!1,d.__v=t,d.__P=e,c=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(i=_i(_i({},i),d.getChildContext())),u||null==d.getSnapshotBeforeUpdate||(f=d.getSnapshotBeforeUpdate(h,p)),y=null!=c&&c.type===Ci&&null==c.key?c.props.children:c,Di(e,Array.isArray(y)?y:[y],t,n,i,s,r,o,a,l),d.base=t.__e,t.__h=null,d.__h.length&&o.push(d),m&&(d.__E=d.__=null),d.__e=!1}else null==r&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,s,r,o,a){var l,c,d,u=n.props,h=t.props,p=t.type,f=0;if("svg"===p&&(s=!0),null!=r)for(;f<r.length;f++)if((l=r[f])&&"setAttribute"in l==!!p&&(p?l.localName===p:3===l.nodeType)){e=l,r[f]=null;break}if(null==e){if(null===p)return document.createTextNode(h);e=s?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),r=null,a=!1}if(null===p)u===h||a&&e.data===h||(e.data=h);else{if(r=r&&li.call(e.childNodes),c=(u=n.props||bi).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!a){if(null!=r)for(u={},f=0;f<e.attributes.length;f++)u[e.attributes[f].name]=e.attributes[f].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,i,s){var r;for(r in n)"children"===r||"key"===r||r in t||Ri(e,r,null,n[r],i);for(r in t)s&&"function"!=typeof t[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===t[r]||Ri(e,r,t[r],n[r],i)}(e,h,u,s,a),d)t.__k=[];else if(f=t.props.children,Di(e,Array.isArray(f)?f:[f],t,n,i,s&&"foreignObject"!==p,r,o,r?r[0]:n.__k&&Ai(n,0),a),null!=r)for(f=r.length;f--;)null!=r[f]&&Si(r[f]);a||("value"in h&&void 0!==(f=h.value)&&(f!==e.value||"progress"===p&&!f||"option"===p&&f!==u.value)&&Ri(e,"value",f,u.value,!1),"checked"in h&&void 0!==(f=h.checked)&&f!==e.checked&&Ri(e,"checked",f,u.checked,!1))}return e}(n.__e,t,n,i,s,r,o,l);(c=ci.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=r)&&(t.__e=a,t.__h=!!l,r[r.indexOf(a)]=null),ci.__e(e,t,n)}}function Hi(e,t){ci.__c&&ci.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){ci.__e(e,t.__v)}})}function $i(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){ci.__e(e,n)}}function Vi(e,t,n){var i,s;if(ci.unmount&&ci.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||$i(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){ci.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&Vi(i[s],t,"function"!=typeof e.type);n||null==e.__e||Si(e.__e),e.__e=e.__d=void 0}function ji(e,t,n){return this.constructor(e,n)}function qi(e,t,n){var i,s;ci.__&&ci.__(e,t),i=t.__k,s=[],Fi(t,e=t.__k=Ei(Ci,null,[e]),i||bi,bi,void 0!==t.ownerSVGElement,i?null:t.firstChild?li.call(t.childNodes):null,s,i?i.__e:t.firstChild,!1),Hi(s,e)}li=yi.slice,ci={__e:function(e,t){for(var n,i,s;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),s=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),s=n.__d),s)return n.__E=n}catch(t){e=t}throw e}},di=0,Ti.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=_i({},this.state),"function"==typeof e&&(e=e(_i({},n),this.props)),e&&_i(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Oi(this))},Ti.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Oi(this))},Ti.prototype.render=Ci,ui=[],hi="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Li.__r=0,fi=0;var Wi=0,Ui=[],Gi=ci.__b,Yi=ci.__r,Xi=ci.diffed,Ki=ci.__c,Ji=ci.unmount;function Qi(e,t){ci.__h&&ci.__h(gi,e,Wi||t),Wi=0;var n=gi.__H||(gi.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Zi(e){return Wi=1,function(e,t){var n=Qi(mi++,2);return n.t=e,n.__c||(n.__=[ls(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=gi),n.__}(ls,e)}function es(e,t){var n=Qi(mi++,3);!ci.__s&&as(n.__H,t)&&(n.__=e,n.__H=t,gi.__H.__h.push(n))}function ts(e){return Wi=5,function(e,t){var n=Qi(mi++,7);return as(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function ns(e){var t=gi.context[e.__c],n=Qi(mi++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(gi)),t.props.value):e.__}function is(){for(var e;e=Ui.shift();)if(e.__P)try{e.__H.__h.forEach(rs),e.__H.__h.forEach(os),e.__H.__h=[]}catch(t){e.__H.__h=[],ci.__e(t,e.__v)}}ci.__b=function(e){gi=null,Gi&&Gi(e)},ci.__r=function(e){Yi&&Yi(e),mi=0;var t=(gi=e.__c).__H;t&&(t.__h.forEach(rs),t.__h.forEach(os),t.__h=[])},ci.diffed=function(e){Xi&&Xi(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Ui.push(t)&&vi===ci.requestAnimationFrame||((vi=ci.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),ss&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ss&&(t=requestAnimationFrame(n))})(is)),gi=null},ci.__c=function(e,t){t.some(function(e){try{e.__h.forEach(rs),e.__h=e.__h.filter(function(e){return!e.__||os(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ci.__e(n,e.__v)}}),Ki&&Ki(e,t)},ci.unmount=function(e){Ji&&Ji(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{rs(e)}catch(e){t=e}}),t&&ci.__e(t,n.__v))};var ss="function"==typeof requestAnimationFrame;function rs(e){var t=gi,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),gi=t}function os(e){var t=gi;e.__c=e.__(),gi=t}function as(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function ls(e,t){return"function"==typeof t?t(e):t}function cs(e,t){for(var n in t)e[n]=t[n];return e}function ds(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function us(e){this.props=e}(us.prototype=new Ti).isPureReactComponent=!0,us.prototype.shouldComponentUpdate=function(e,t){return ds(this.props,e)||ds(this.state,t)};var hs=ci.__b;ci.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),hs&&hs(e)};var ps="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function fs(e){function t(t,n){var i=cs({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=ps,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ms=ci.__e;ci.__e=function(e,t,n){if(e.then)for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);ms(e,t,n)};var gs=ci.unmount;function vs(){this.__u=0,this.t=null,this.__b=null}function bs(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ys(){this.u=null,this.o=null}ci.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),gs&&gs(e)},(vs.prototype=new Ti).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var s=bs(i.__v),r=!1,o=function(){r||(r=!0,n.__R=null,s?s(a):a())};n.__R=o;var a=function(){if(! --i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)}),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(o,o)},vs.prototype.componentWillUnmount=function(){this.t=[]},vs.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=cs({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)})),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var s=t.__e&&Ei(Ci,null,e.fallback);return s&&(s.__h=null),[Ei(Ci,null,t.__e?null:e.children),s]};var ws=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(ys.prototype=new Ti).__e=function(e){var t=this,n=bs(t.__v),i=t.o.get(e);return i[0]++,function(s){var r=function(){t.props.revealOrder?(i.push(s),ws(t,e,i)):s()};n?n(r):r()}},ys.prototype.render=function(e){this.u=null,this.o=new Map;var t=Pi(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ys.prototype.componentDidUpdate=ys.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ws(e,n,t)})};var _s="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ss=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Es="undefined"!=typeof document,xs=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Ti.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ti.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Cs=ci.event;function Ts(){}function As(){return this.cancelBubble}function ks(){return this.defaultPrevented}ci.event=function(e){return Cs&&(e=Cs(e)),e.persist=Ts,e.isPropagationStopped=As,e.isDefaultPrevented=ks,e.nativeEvent=e};var Os={configurable:!0,get:function(){return this.class}},Ls=ci.vnode;ci.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var s=-1===t.indexOf("-");for(var r in i={},n){var o=n[r];Es&&"children"===r&&"noscript"===t||"value"===r&&"defaultValue"in n&&null==o||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===o?o="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!xs(n.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():s&&Ss.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[r]=o)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=Pi(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=Pi(n.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value})),e.props=i,n.class!=n.className&&(Os.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Os))}e.$$typeof=_s,Ls&&Ls(e)};var Ds=ci.__r;ci.__r=function(e){Ds&&Ds(e),e.__c};var Ms={wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination",nextMonthButton:"daypickr__button--pagination-next",prevMonthButton:"daypickr__button--pagination-prev",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",closeButton:"daypickr__button--close",toggleButton:"daypickr__button--toggle"};function Ps(...e){return e.join(" ").trim()}var Is={prevMonth:"previous month",nextMonth:"next month",month:"Month",year:"Year",weekdays:[{name:"Sunday",shortname:"Su"},{name:"Monday",shortname:"Mo"},{name:"Tuesday",shortname:"Tu"},{name:"Wednesday",shortname:"We"},{name:"Thursday",shortname:"Th"},{name:"Friday",shortname:"Fr"},{name:"Saturday",shortname:"Sa"}],months:["January","February","March","April","May","June","July","August","September","October","November","December"],openButton:"Choose date",closeButton:"Close"};function Ns(e){return e instanceof Date&&!isNaN(e.valueOf())}function Rs(e,t=1){const n=new Date(e),i=e.getDay(),s=(i<t?7:0)+i-t;return new Date(n.setDate(n.getDate()-s))}function zs(e,t=1){const n=new Date(e),i=n.getDay(),s=6+(i<t?-7:0)-(i-t);return new Date(n.setDate(n.getDate()+s))}function Bs(e,t){return!(!Ns(e)||!Ns(t))&&(e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime())}function Fs(e,t){const n=new Date(e).setMonth(t),i=new Date(e.getFullYear(),t+1,0).getTime();return n>i?new Date(i):new Date(n)}var Hs,$s,Vs=($s={__c:Hs="__cC"+fi++,__:void 0,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[Hs]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(Oi)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}}).Provider.__=$s.Consumer.contextType=$s,js=()=>{const{firstDayOfWeek:e,classes:t,l10n:n,selected:i,setSelected:s,setView:r,handleKeyboardNavigation:o,focusedRef:a,view:l,disabledDayFn:c,locale:d}=ns(Vs),u=function(e,t){const n=e?.length?[...e]:[],i=n.splice(0,t);return[...n,...i]}(n.weekdays,e),h=function(e){const t=[];for(let n=0;n<e.length;n+=7)t.push(e.slice(n,n+7));return t}(function(e,t){const n=new Date(e);n.setDate(1);const i=new Date(e);return i.setMonth(e.getMonth()+1,0),function(e,t){const n=[];let i=e;for(;i.getTime()<t.getTime();)n.push(new Date(i)),i=new Date(i.setDate(i.getDate()+1));return n.push(new Date(i)),n}(Rs(n,t),zs(i,t))}(l,e));return Ei("table",{className:t.table},Ei("thead",null,Ei("tr",{className:t.tableHeaderRow},u.map(e=>Ei("th",{scope:"col",className:t.tableHeaderCell},Ei("span",{className:t.srOnly},e.name),Ei("span",{"aria-hidden":"true"},e.shortname))))),Ei("tbody",null,h.map(e=>Ei("tr",{className:t.tableRow},e.map(e=>{const n=i&&Bs(e,i),u=Bs(e,l),h=!function(e,t){return e.getMonth()===t.getMonth()}(e,l)||c(e),p=(f=e,Bs(new Date,f)?t.isToday:void 0);var f;const m=n?t.isSelected:void 0,g=[t.dayButton,p,m],v=u?"0":"-1",b=e.toLocaleDateString(d),y=u?a:void 0;return Ei("td",{role:"gridcell",className:t.tableCell},Ei("button",{className:g.join(" "),type:"button",onClick:()=>{h||(s(e),r(e))},tabindex:v,onKeyUp:o,ref:y,"aria-disabled":h,"aria-label":b,"aria-selected":n},Ei("span",{className:t.srOnly},b),Ei("span",{"aria-hidden":"true"},e.getDate())))})))))},qs=fs(({label:e,value:t,options:n,onChange:i,className:s,elemRef:r,...o},a)=>{const{classes:l}=ns(Vs);return Ei("label",null,Ei("span",{className:"sr-only"},e),Ei("select",{className:Ps(l.select,s),onChange:e=>i(e),ref:a,...o},n?.map(e=>Ei("option",{value:e?.value||0===e?.value?e.value:e,selected:t===e?.value||t===e?"selected":void 0},e?.text?e.text:e))))}),Ws=qs;function Us(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}var Gs=fs((e,t)=>{const{l10n:n,min:i,max:s,view:r,setView:o,classes:a}=ns(Vs),l=new Date(i).getFullYear(),c=new Date(s).getFullYear();return Ei(Ws,{label:n.year,options:Us(l,c),value:r.getFullYear(),className:a.yearSelect,onChange:e=>{const t=new Date(r);t.setFullYear(parseInt(e.target.value,10)),o(t)},ref:t,...e})}),Ys=Gs,Xs=()=>{const{l10n:e,view:t,setView:n,classes:i}=ns(Vs);return Ei(Ws,{label:e.month,value:t.getMonth(),className:i.monthSelect,options:e.months?.map((e,t)=>({value:t,text:e})),onChange:e=>{const i=new Date(t);i.setMonth(parseInt(e.target.value,10)),n(i)}})},Ks=({min:e="1900-01-01",max:t="2100-12-31",classes:n=Ms,l10n:i=Is,selectedDay:s,firstDayOfWeek:r=1,locale:o={},disabledDayFn:a=()=>{},onSelect:l=()=>{},formatDate:c=e=>function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e),parseDate:d=e=>{const t=e.match(/(\d{2})\/(\d{2})\/(\d{4})/);return!!t&&new Date(t[3],t[2]-1,t[1])},calendarIcon:u,name:h,id:p})=>{const[f,m]=Zi(s?new Date(s):new Date),[g,v]=Zi(s?new Date(s):void 0),[b,y]=Zi(!1),w=ts(!0),_=ts(),S=ts(),E=ts(),x=ts(),C=ts(),T=ts();var A,k,O;es(()=>{l(g),y(!1)},[g]),es(()=>{const e=e=>{"Tab"===e.key&&b&&(e.shiftKey||document.activeElement!==T.current||(e.preventDefault(),x.current.focus()),!e.shiftKey||document.activeElement!==x.current&&document.activeElement!==C.current||(e.preventDefault(),T.current.focus()))},t=e=>{"Escape"===e.key&&b&&y(!1)};return document.addEventListener("keydown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keydown",t)}},[b,T.current,x.current]),es(()=>{const e=e=>{!C.current.contains(e.target)&&b&&y(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[b,C.current]),A=()=>{b?C.current.focus():document.activeElement===_.current||w.current?w.current=!1:E.current.focus()},k=[b,x.current,E.current,_.current],O=Qi(mi++,4),!ci.__s&&as(O.__H,k)&&(O.__=A,O.__H=k,gi.__h.push(O));const L=e=>Fs(e,e.getMonth()-1),D=e=>Fs(e,e.getMonth()+1),M=()=>{y(!b)},P=({type:e,children:t,...n})=>Ei(e,n,t&&t.length&&t.map(e=>P(e)));return Ei(Vs.Provider,{value:{firstDayOfWeek:r,classes:n,l10n:i,min:e,max:t,view:f,setView:m,selected:g,setSelected:v,handleKeyboardNavigation:e=>{let t=new Date(f);const n={ArrowLeft:()=>{t.setDate(f.getDate()-1)},ArrowRight:()=>{t.setDate(f.getDate()+1)},ArrowUp:()=>{t.setDate(f.getDate()-7)},ArrowDown:()=>{t.setDate(f.getDate()+7)},PageUp:()=>{e.shiftKey?t.setFullYear(f.getFullYear()-1):t=L(f)},PageDown:()=>{e.shiftKey?t.setFullYear(f.getFullYear()+1):t=D(f)},Home:()=>{t=Rs(f,r)},End:()=>{t=zs(f,r)}};Object.keys(n).includes(e.key)&&(e.preventDefault(),n[e.key]?.(),m(t),setTimeout(()=>{S.current.focus()},0))},focusedRef:S,disabledDayFn:a,locale:o}},Ei("input",{id:`${p}-input`,type:"text",className:n.input,value:g&&g.toLocaleDateString(o),onChange:e=>(e=>{""===e.target.value&&v(void 0);const t=d(e.target.value);if(t)return m(t),v(t)})(e),ref:_}),Ei("input",{type:"hidden",id:`${p}-value`,value:c(g),name:h}),Ei("button",{type:"button","aria-controls":`${p}-dialog`,onClick:()=>M(),"aria-expanded":b,ref:E,className:n.toggleButton},u&&P(u),u?Ei("span",{class:n.srOnly},i.openButton):i.openButton),Ei("div",{className:n.wrapper,role:"dialog","aria-modal":"true","aria-labelledby":"daypickr-label",hidden:!b,ref:C,tabIndex:"-1"},Ei("div",{className:"daypickr__content"},Ei("h2",{id:"daypickr-label",className:"sr-only"},f.toLocaleString(o,{month:"long",year:"numeric"})),Ei("div",{className:n.header},Ei("div",{className:n.yearMonthWrapper},Ei(Ys,{ref:x}),Ei(Xs,null)),Ei("div",{className:n.pagination},Ei("button",{type:"button",className:`${n.button} ${n.prevMonthButton}`,onClick:()=>{m(L(f))}},i.prevMonth),Ei("button",{type:"button",className:`${n.button} ${n.nextMonthButton}`,onClick:()=>{m(D(f))}},i.nextMonth))),Ei(js,null),Ei("button",{className:`${n.button} ${n.closeButton}`,type:"button",onClick:()=>M(),ref:T},i.closeButton))))},Js=({calendarIcon:e,classes:t=classNames,l10n:n=l10nEN,...i})=>{const s=({type:e,children:t,...n})=>Ei(e,n,t&&t.length&&t.map(e=>s(e)));return Ei(Vs.Provider,{value:{classes:t,l10n:n}},Ei("input",{type:"text",disabled:!0,className:t.input}),Ei("button",{type:"button",className:t.toggleButton,disabled:!0},e&&s(e),e?Ei("span",{class:t.srOnly},n.openButton):n.openButton))};const Qs={locale:"sk",classes:{wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",selectDisplay:"daypickr__select-display",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination ",nextMonthButton:"daypickr__button--pagination-next btn btn--ghost btn--square btn--small",prevMonthButton:"daypickr__button--pagination-prev btn btn--ghost btn--square btn--small",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",input:"form-group__item text-input",closeButton:"daypickr__button--close btn mb-none",toggleButton:"form-group__item btn btn--square"},firstDayOfWeek:1,l10n:{prevMonth:"predchádzajúci mesiac",nextMonth:"nasledujúci mesiac",month:"Mesiac",year:"Rok",weekdays:[{name:"Nedeľa",shortname:"Ne"},{name:"Pondelok",shortname:"Po"},{name:"Utorok",shortname:"Ut"},{name:"Streda",shortname:"St"},{name:"Štvrtok",shortname:"Št"},{name:"Piatok",shortname:"Pi"},{name:"Sobota",shortname:"So"}],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],openButton:"Vyberte dátum",closeButton:"Zatvoriť"},parseDate:e=>{const t=e.match(/(\d{1,2})\. ?(\d{1,2})\. ?(\d{4})/);return!!t&&new Date(Number(t[3]),Number(t[2])-1,Number(t[1]))},calendarIcon:{type:"svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",className:"icon icon--medium",children:[{type:"path",d:"M800 175H700v-37.5a37.5 37.5 0 0 0-75 0V175H350v-37.5a37.5 37.5 0 0 0-75 0V175H100v625a75 75 0 0 0 75 75h700V250a75 75 0 0 0-75-75zM300 825H187.4a37.5 37.5 0 0 1-37.5-37.6V700H300v125zm0-150H150V550h150v125zm0-150H150V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zm225 562.4H325V700h150v125zm0-149.9H325V550h150v125zm0-150H325V400h150v125zm175 300H500V700h150v125zm0-150H500V550h150v125zm0-150H500V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zM825 675H675V550h150v125zm0-150H675V400h112.5a37.5 37.5 0 0 1 37.5 37.4V525z","fill-rule":"evenodd"}]}};function Zs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,s,r,o,a=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t);else for(;!(l=(i=r.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw s}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zs(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zs(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const tr=Object.entries,nr=Object.setPrototypeOf,ir=Object.isFrozen,sr=Object.getPrototypeOf,rr=Object.getOwnPropertyDescriptor;let or=Object.freeze,ar=Object.seal,lr=Object.create,cr="undefined"!=typeof Reflect&&Reflect,dr=cr.apply,ur=cr.construct;or||(or=function(e){return e}),ar||(ar=function(e){return e}),dr||(dr=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return e.apply(t,i)}),ur||(ur=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new e(...n)});const hr=Pr(Array.prototype.forEach),pr=Pr(Array.prototype.lastIndexOf),fr=Pr(Array.prototype.pop),mr=Pr(Array.prototype.push),gr=Pr(Array.prototype.splice),vr=Array.isArray,br=Pr(String.prototype.toLowerCase),yr=Pr(String.prototype.toString),wr=Pr(String.prototype.match),_r=Pr(String.prototype.replace),Sr=Pr(String.prototype.indexOf),Er=Pr(String.prototype.trim),xr=Pr(Number.prototype.toString),Cr=Pr(Boolean.prototype.toString),Tr="undefined"==typeof BigInt?null:Pr(BigInt.prototype.toString),Ar="undefined"==typeof Symbol?null:Pr(Symbol.prototype.toString),kr=Pr(Object.prototype.hasOwnProperty),Or=Pr(Object.prototype.toString),Lr=Pr(RegExp.prototype.test),Dr=(Mr=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ur(Mr,t)});var Mr;function Pr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return dr(e,t,i)}}function Ir(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:br;if(nr&&nr(e,null),!vr(t))return e;let i=t.length;for(;i--;){let s=t[i];if("string"==typeof s){const e=n(s);e!==s&&(ir(t)||(t[i]=e),s=e)}e[s]=!0}return e}function Nr(e){for(let t=0;t<e.length;t++)kr(e,t)||(e[t]=null);return e}function Rr(e){const t=lr(null);for(const i of tr(e)){var n=er(i,2);const s=n[0],r=n[1];kr(e,s)&&(vr(r)?t[s]=Nr(r):r&&"object"==typeof r&&r.constructor===Object?t[s]=Rr(r):t[s]=r)}return t}function zr(e,t){for(;null!==e;){const n=rr(e,t);if(n){if(n.get)return Pr(n.get);if("function"==typeof n.value)return Pr(n.value)}e=sr(e)}return function(){return null}}const Br=or(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Fr=or(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Hr=or(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$r=or(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Vr=or(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),jr=or(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qr=or(["#text"]),Wr=or(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ur=or(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gr=or(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Yr=or(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Xr=ar(/{{[\w\W]*|^[\w\W]*}}/g),Kr=ar(/<%[\w\W]*|^[\w\W]*%>/g),Jr=ar(/\${[\w\W]*/g),Qr=ar(/^data-[\-\w.\u00B7-\uFFFF]+$/),Zr=ar(/^aria-[\-\w]+$/),eo=ar(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),to=ar(/^(?:\w+script|data):/i),no=ar(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),io=ar(/^html$/i),so=ar(/^[a-z][.\w]*(-[.\w]+)+$/i),ro=ar(/<[/\w!]/g),oo=ar(/<[/\w]/g),ao=ar(/<\/no(script|embed|frames)/i),lo=ar(/\/>/i),co=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],uo=or(Ir({},co)),ho=function(){const e={};return hr(co,t=>{e[t]=ar(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),or(e)}(),po=function(){return"undefined"==typeof window?null:window},fo=function(e,t,n,i){return kr(e,t)&&vr(e[t])?Ir(i.base?Rr(i.base):{},e[t],i.transform):n},mo=function(e,t,n){const i=kr(e,t)?e[t]:void 0;return i&&"object"==typeof i?Rr(i):n()};var go=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:po();const n=t=>e(t);if(n.version="3.4.14",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let i=t.document;const s=i,r=s.currentScript;t.DocumentFragment;const o=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,u=t.trustedTypes,h=l.prototype,p=zr(h,"cloneNode"),f=zr(h,"remove"),m=zr(h,"nextSibling"),g=zr(h,"childNodes"),v=zr(h,"parentNode"),b=zr(h,"shadowRoot"),y=zr(h,"attributes"),w=a&&a.prototype?zr(a.prototype,"nodeType"):null,_=a&&a.prototype?zr(a.prototype,"nodeName"):null,S=a&&a.prototype?zr(a.prototype,"ownerDocument"):null,E=function(e){return w?w(e):e.nodeType},x=function(e){return _?_(e):e.nodeName};if("function"==typeof o){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let C,T,A="",k=!1,O=0;const L=function(){if(O>0)throw Dr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},D=function(e){L(),O++;try{return C.createHTML(e)}finally{O--}},M=i,P=M.implementation,I=M.createNodeIterator,N=M.createDocumentFragment,R=M.getElementsByTagName,z=s.importNode;let B={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof tr&&"function"==typeof v&&P&&void 0!==P.createHTMLDocument;const F=Xr,H=Kr,$=Jr,V=Qr,j=Zr,q=to,W=no,U=so;let G=eo,Y=null;const X=Ir({},[...Br,...Fr,...Hr,...Vr,...qr]);let K=null;const J=Ir({},[...Wr,...Ur,...Gr,...Yr]);let Q=Object.seal(lr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,ee=null;const te=Object.seal(lr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ne=!0,ie=!0,se=!1,re=!0,oe=!1,ae=!0,le=!1,ce=!1,de=null,ue=null,he=!1,pe=!1,fe=!1,me=!1,ge=!0,ve=!1;const be="user-content-";let ye=!0,we=!1,_e={},Se=null;const Ee=Ir({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let xe=null;const Ce=Ir({},["audio","video","img","source","image","track"]);let Te=null;const Ae=Ir({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ke="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let De=Le,Me=!1,Pe=null;const Ie=Ir({},[ke,Oe,Le],yr),Ne=or(["mi","mo","mn","ms","mtext"]);let Re=Ir({},Ne);const ze=or(["annotation-xml"]);let Be=Ir({},ze);const Fe=Ir({},["title","style","font","a","script"]);let He=null;const $e=["application/xhtml+xml","text/html"];let Ve=null,je=null;const qe=i.createElement("form"),We=function(e){return e instanceof RegExp||e instanceof Function},Ue=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(je&&je===e)return;e&&"object"==typeof e||(e={}),e=Rr(e),He=-1===$e.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ve="application/xhtml+xml"===He?yr:br,Y=fo(e,"ALLOWED_TAGS",X,{transform:Ve}),K=fo(e,"ALLOWED_ATTR",J,{transform:Ve}),Pe=fo(e,"ALLOWED_NAMESPACES",Ie,{transform:yr}),Te=fo(e,"ADD_URI_SAFE_ATTR",Ae,{transform:Ve,base:Ae}),xe=fo(e,"ADD_DATA_URI_TAGS",Ce,{transform:Ve,base:Ce}),Se=fo(e,"FORBID_CONTENTS",Ee,{transform:Ve}),Z=fo(e,"FORBID_TAGS",Rr({}),{transform:Ve}),ee=fo(e,"FORBID_ATTR",Rr({}),{transform:Ve}),_e=!!kr(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?Rr(e.USE_PROFILES):e.USE_PROFILES),ne=!1!==e.ALLOW_ARIA_ATTR,ie=!1!==e.ALLOW_DATA_ATTR,se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,oe=e.SAFE_FOR_TEMPLATES||!1,ae=!1!==e.SAFE_FOR_XML,le=e.WHOLE_DOCUMENT||!1,pe=e.RETURN_DOM||!1,fe=e.RETURN_DOM_FRAGMENT||!1,me=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,ge=!1!==e.SANITIZE_DOM,ve=e.SANITIZE_NAMED_PROPS||!1,ye=!1!==e.KEEP_CONTENT,we=e.IN_PLACE||!1,G=function(e){try{return Lr(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:eo,De="string"==typeof e.NAMESPACE?e.NAMESPACE:Le,Re=mo(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ir({},Ne)),Be=mo(e,"HTML_INTEGRATION_POINTS",()=>Ir({},ze));const t=mo(e,"CUSTOM_ELEMENT_HANDLING",()=>lr(null));if(Q=lr(null),kr(t,"tagNameCheck")&&We(t.tagNameCheck)&&(Q.tagNameCheck=t.tagNameCheck),kr(t,"attributeNameCheck")&&We(t.attributeNameCheck)&&(Q.attributeNameCheck=t.attributeNameCheck),kr(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Q.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),ar(Q),oe&&(ie=!1),fe&&(pe=!0),_e&&(Y=Ir({},qr),K=lr(null),!0===_e.html&&(Ir(Y,Br),Ir(K,Wr)),!0===_e.svg&&(Ir(Y,Fr),Ir(K,Ur),Ir(K,Yr)),!0===_e.svgFilters&&(Ir(Y,Hr),Ir(K,Ur),Ir(K,Yr)),!0===_e.mathMl&&(Ir(Y,Vr),Ir(K,Gr),Ir(K,Yr))),te.tagCheck=null,te.attributeCheck=null,kr(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?te.tagCheck=e.ADD_TAGS:vr(e.ADD_TAGS)&&(Y===X&&(Y=Rr(Y)),Ir(Y,e.ADD_TAGS,Ve))),kr(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?te.attributeCheck=e.ADD_ATTR:vr(e.ADD_ATTR)&&(K===J&&(K=Rr(K)),Ir(K,e.ADD_ATTR,Ve))),kr(e,"ADD_FORBID_CONTENTS")&&vr(e.ADD_FORBID_CONTENTS)&&(Se===Ee&&(Se=Rr(Se)),Ir(Se,e.ADD_FORBID_CONTENTS,Ve)),ye&&(Y["#text"]=!0),le&&Ir(Y,["html","head","body"]),Y.table&&(Ir(Y,["tbody"]),delete Z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Dr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Dr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=C;C=e.TRUSTED_TYPES_POLICY;try{A=D("")}catch(e){throw C=t,e}}else null===e.TRUSTED_TYPES_POLICY?(C=void 0,A=""):(void 0===C&&(k||(T=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(u,r),k=!0),C=T),C&&"string"==typeof A&&(A=D("")));or&&or(e),je=e},Ge=Ir({},[...Fr,...Hr,...$r]),Ye=Ir({},[...Vr,...jr]),Xe=function(e){mr(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){if(f(e),!v(e))throw Dr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ke=function(e,t,n){try{e.removeAttributeNode(t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},Je=function(e){et(e);const t=g(e);if(t){const e=[];hr(t,t=>{mr(e,t)}),hr(e,e=>{try{f(e)}catch(e){}})}const n=y(e);if(n)for(let t=n.length-1;t>=0;--t){const i=n[t],s=i&&i.name;"string"==typeof s&&Ke(e,i,s)}},Qe=function(e,t,i){if(!i)try{i=t.getAttributeNode(e)}catch(e){i=null}mr(n.removed,{attribute:i||null,from:t});try{i?t.removeAttributeNode(i):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(pe||fe)try{Xe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ze=function(e){const t=y(e);if(t)for(let n=t.length-1;n>=0;--n){const i=t[n],s=i&&i.name;"string"!=typeof s||K[Ve(s)]||Ke(e,i,s)}},et=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===E(e)&&Ze(e);const n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tt=function(e,t){return!!ae&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},nt=function(e){let t=null,n=null;if(he)e="<remove></remove>"+e;else{const t=wr(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===He&&De===Le&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=C?D(e):e;if(De===Le)try{t=(new d).parseFromString(s,He)}catch(e){}if(!t||!t.documentElement){t=P.createDocument(De,"template",null);try{t.documentElement.innerHTML=Me?A:s}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),De===Le?R.call(t,le?"html":"body")[0]:le?t.documentElement:r},it=function(e){const t=S?S(e):e.ownerDocument;return I.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},st=function(e){return e=_r(e,F," "),e=_r(e,H," "),_r(e,$," ")},rt=function(e){var t;e.normalize();const n=S?S(e):e.ownerDocument,i=I.call(n||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let s=i.nextNode();for(;s;)s.data=st(s.data),s=i.nextNode();const r=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");r&&hr(r,e=>{at(e.content)&&rt(e.content)})},ot=function(e){const t=_?_(e):null;return"string"==typeof t&&"form"===Ve(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==y(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==w(e)||e.childNodes!==g(e))},at=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return 11===w(e)}catch(e){return!1}},lt=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return"number"==typeof w(e)}catch(e){return!1}};function ct(e,t,i){0!==e.length&&hr(e,e=>{e.call(n,t,i,je)})}const dt=function(e,t){if(e instanceof RegExp)return Lr(e,t);if(e instanceof Function){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return Boolean(e(t,...i))}return!1},ut=function(e,t,n,i){return 0===e.length?t:t===n||t===i?Rr(t):t},ht=function(e,t){return e!==t&&null===v(e)&&(we&&et(e),!0)},pt=function(e,t){if(ct(B.beforeSanitizeElements,e,null),ht(e,t))return!0;if(ot(e))return Xe(e),!0;const i=Ve(x(e));if(Y=ut(B.uponSanitizeElement,Y,X,de),ct(B.uponSanitizeElement,e,{tagName:i,allowedTags:Y}),ht(e,t))return!0;if(function(e,t){return!!(ae&&e.hasChildNodes()&&!lt(e.firstElementChild)&&Lr(ro,e.textContent)&&Lr(ro,e.innerHTML))||!!(ae&&e.namespaceURI===Le&&uo[t]&&(lt(e.firstElementChild)||"string"==typeof e.textContent&&Lr(ho[t],e.textContent)))||7===e.nodeType||!(!ae||8!==e.nodeType||!Lr(oo,e.data))}(e,i))return Xe(e),!0;if(Z[i]||!(te.tagCheck instanceof Function&&te.tagCheck(i))&&!Y[i]){const n=function(e,t,n){if(!Z[t]&>(t)&&dt(Q.tagNameCheck,t))return!1;if(ye&&!Se[t]){const t=v(e),i=g(e);if(i&&t)for(let s=i.length-1;s>=0;--s){const r=e===n?p(i[s],!0):i[s];t.insertBefore(r,m(e))}}return Xe(e),!0}(e,i,t);return!1===n&&ct(B.afterSanitizeElements,e,null),n}if(1===E(e)&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:De,tagName:"template"});const n=br(e.tagName),i=br(t.tagName);return!!Pe[e.namespaceURI]&&(e.namespaceURI===Oe?function(e,t,n){return t.namespaceURI===Le?"svg"===e:t.namespaceURI===ke?"svg"===e&&("annotation-xml"===n||Re[n]):Boolean(Ge[e])}(n,t,i):e.namespaceURI===ke?function(e,t,n){return t.namespaceURI===Le?"math"===e:t.namespaceURI===Oe?"math"===e&&Be[n]:Boolean(Ye[e])}(n,t,i):e.namespaceURI===Le?function(e,t,n){return!(t.namespaceURI===Oe&&!Be[n])&&!(t.namespaceURI===ke&&!Re[n])&&!Ye[e]&&(Fe[e]||!Ge[e])}(n,t,i):!("application/xhtml+xml"!==He||!Pe[e.namespaceURI]))}(e))return Xe(e),!0;if(("noscript"===i||"noembed"===i||"noframes"===i)&&Lr(ao,e.innerHTML))return Xe(e),!0;if(oe&&3===e.nodeType){const t=st(e.textContent);e.textContent!==t&&(mr(n.removed,{element:e.cloneNode()}),e.textContent=t)}return ct(B.afterSanitizeElements,e,null),!1},ft=function(e,t,n){if(ee[t])return!1;if(tt(t,e))return!1;if(ge&&("id"===t||"name"===t)&&(n in i||n in qe))return!1;const s=K[t]||te.attributeCheck instanceof Function&&te.attributeCheck(t,e);return!(!ie||!Lr(V,t))||!(!ne||!Lr(j,t))||(s?!(!Te[t]&&!Lr(G,_r(n,W,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Sr(n,"data:")||!xe[e])&&(!se||Lr(q,_r(n,W,"")))&&n):gt(e)&&dt(Q.tagNameCheck,e)&&dt(Q.attributeNameCheck,t,e)||"is"===t&&Q.allowCustomizedBuiltInElements&&dt(Q.tagNameCheck,n))},mt=Ir({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),gt=function(e){return!mt[br(e)]&&Lr(U,e)},vt=function(e,t,n,i){if(C&&"object"==typeof u&&"function"==typeof u.getAttributeType&&!n)switch(u.getAttributeType(e,t)){case"TrustedHTML":return D(i);case"TrustedScriptURL":return function(e){L(),O++;try{return C.createScriptURL(e)}finally{O--}}(i)}return i},bt=function(e,t,i,s){try{i?e.setAttributeNS(i,t,s):e.setAttribute(t,s),ot(e)?Xe(e):fr(n.removed)}catch(n){Qe(t,e)}},yt=function(e){ct(B.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||ot(e))return;K=ut(B.uponSanitizeAttribute,K,J,ue);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0};let i=t.length;const s=Ve(e.nodeName);for(;i--;){const r=t[i],o=r.name,a=r.namespaceURI,l=r.value,c=Ve(o),d=l;let u="value"===o?d:Er(d);n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,ct(B.uponSanitizeAttribute,e,n),u=n.attrValue,!ve||"id"!==c&&"name"!==c||0===Sr(u,be)||(Qe(o,e,r),u=be+u),ae&&Lr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&wr(u,"href")?Qe(o,e,r):n.forceKeepAttr||(!n.keepAttr||!re&&Lr(lo,u)?Qe(o,e,r):(oe&&(u=st(u)),ft(s,c,u)?(u=vt(s,c,a,u),u!==d&&bt(e,o,a,u)):Qe(o,e,r)))}ct(B.afterSanitizeAttributes,e,null)},wt=function(e){let t=null;const n=it(e);for(ct(B.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(ct(B.uponSanitizeShadowNode,t,null),pt(t,e),yt(t),at(t.content)&&wt(t.content),1===E(t)){const e=b(t);at(e)&&(_t(e),wt(e))}ct(B.afterSanitizeShadowDOM,e,null)},_t=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){wt(e.shadow);continue}const n=e.node,i=1===E(n),s=g(n);if(s)for(let e=s.length-1;e>=0;--e)t.push({node:s[e],shadow:null});if(i){const e=_?_(n):null;if("string"==typeof e&&"template"===Ve(e)){const e=n.content;at(e)&&t.push({node:e,shadow:null})}}if(i){const e=b(n);at(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,o=null,a=null;if(Me=!e,Me&&(e="\x3c!--\x3e"),"string"!=typeof e&&!lt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return xr(e);case"boolean":return Cr(e);case"bigint":return Tr?Tr(e):"0";case"symbol":return Ar?Ar(e):"Symbol()";case"undefined":default:return Or(e);case"function":case"object":{if(null===e)return Or(e);const t=e,n=zr(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:Or(e)}return Or(e)}}}(e)))throw Dr("dirty is not a string, aborting");if(!n.isSupported)return e;ce?(Y=de,K=ue):Ue(t),(B.uponSanitizeElement.length>0||B.uponSanitizeAttribute.length>0)&&(Y=Rr(Y)),B.uponSanitizeAttribute.length>0&&(K=Rr(K)),n.removed=[];const l=we&&"string"!=typeof e&<(e);if(l){!function(e){if(!ae)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=E(e);if(7===n||8===n&&Lr(oo,e.data)){try{f(e)}catch(e){}continue}if(1===n){const t=e,n=Ve(x(e));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&tt("for",n)&&t.removeAttribute("for")}catch(e){}}const i=g(e);if(i)for(let e=i.length-1;e>=0;--e)t.push(i[e])}}(e);const t=x(e);if("string"==typeof t){const n=Ve(t);if(!Y[n]||Z[n])throw Je(e),Dr("root node is forbidden and cannot be sanitized in-place")}if(ot(e))throw Je(e),Dr("root node is clobbered and cannot be sanitized in-place");try{_t(e)}catch(t){throw Je(e),t}}else if(lt(e))i=nt("\x3c!----\x3e"),r=i.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r),_t(r);else{if(!pe&&!oe&&!le&&-1===e.indexOf("<"))return C&&me?D(e):e;if(i=nt(e),!i)return pe?null:me?A:""}i&&he&&Xe(i.firstChild);const c=l?e:i;try{const e=it(c);for(;o=e.nextNode();)pt(o,c),yt(o),at(o.content)&&wt(o.content)}catch(t){throw l&&(Je(e),hr(n.removed,e=>{e.element&&et(e.element)})),t}if(l)return hr(n.removed,e=>{e.element&&et(e.element)}),oe&&rt(e),e;if(pe){if(oe&&rt(i),fe)for(a=N.call(i.ownerDocument);i.firstChild;)a.appendChild(i.firstChild);else a=i;return(K.shadowroot||K.shadowrootmode)&&(a=z.call(s,a,!0)),a}let d=le?i.outerHTML:i.innerHTML;return le&&Y["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Lr(io,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),oe&&(d=st(d)),C&&me?D(d):d},n.setConfig=function(){Ue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ce=!0,de=Y,ue=K},n.clearConfig=function(){je=null,ce=!1,de=null,ue=null,C=T,A=""},n.isValidAttribute=function(e,t,n){je||Ue({});const i=Ve(e),s=Ve(t);return ft(i,s,n)},n.addHook=function(e,t){"function"==typeof t&&kr(B,e)&&mr(B[e],t)},n.removeHook=function(e,t){if(kr(B,e)){if(void 0!==t){const n=pr(B[e],t);return-1===n?void 0:gr(B[e],n,1)[0]}return fr(B[e])}},n.removeHooks=function(e){kr(B,e)&&(B[e]=[])},n.removeAllHooks=function(){B={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const vo={dragDropClassname:"is-dragdrop",inputSelector:'input[type="file"]',resultsSelector:".file-input__files",deleteButtonSelector:"[data-file-delete]",deleteFileAttr:"data-file-delete",fileTemplate:(e,t)=>`\n <li>${e} <button type="button" data-file-delete="${t}" class="file-input__delete">\n <svg class="icon icon--small icon--trash icon--danger" aria-hidden="true">\n <use xlink:href="/sprite.svg#trash"></use>\n </svg>\n <span class="sr-only">Odstrániť súbor ${e}</span>\n </button>\n </li>\n `},bo={nonEditableInput:!1,min:1,max:999,defaultValue:1};var yo,wo;function _o(e){return"object"==typeof e&&"function"==typeof e.to}function So(e){e.parentElement.removeChild(e)}function Eo(e){return null!=e}function xo(e){e.preventDefault()}function Co(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function To(e,t,n){n>0&&(Lo(e,t),setTimeout(function(){Do(e,t)},n))}function Ao(e){return Math.max(Math.min(e,100),0)}function ko(e){return Array.isArray(e)?e:[e]}function Oo(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function Lo(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function Do(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function Mo(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function Po(e,t){return 100/(t-e)}function Io(e,t,n){return 100*t/(e[n+1]-e[n])}function No(e,t){for(var n=1;e>=t[n];)n+=1;return n}!function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}(yo||(yo={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(wo||(wo={}));var Ro=function(){function e(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var s=[];for(Object.keys(e).forEach(function(t){s.push([ko(e[t]),t])}),s.sort(function(e,t){return e[0][0]-t[0][0]}),i=0;i<s.length;i++)this.handleEntryPoint(s[i][1],s[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(e){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=Io(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var i,s=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[s+1];)s++;else e===this.xPct[this.xPct.length-1]&&(s=this.xPct.length-2);n||e!==this.xPct[s+1]||s++,null===t&&(t=[]);var r=1,o=t[s],a=0,l=0,c=0,d=0;for(i=n?(e-this.xPct[s])/(this.xPct[s+1]-this.xPct[s]):(this.xPct[s+1]-e)/(this.xPct[s+1]-this.xPct[s]);o>0;)a=this.xPct[s+1+d]-this.xPct[s+d],t[s+d]*r+100-100*i>100?(l=a*i,r=(o-100*i)/t[s+d],i=1):(l=t[s+d]*a/100*r,r=0),n?(c-=l,this.xPct.length+d>=1&&d--):(c+=l,this.xPct.length-d>=1&&d++),o=t[s+d]*r;return e+c},e.prototype.toStepping=function(e){return function(e,t,n){if(n>=e.slice(-1)[0])return 100;var i=No(n,e),s=e[i-1],r=e[i],o=t[i-1],a=t[i];return o+function(e,t){return Io(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([s,r],n)/Po(o,a)}(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=No(n,t),s=e[i-1],r=e[i],o=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([s,r],(n-o)*Po(o,t[i]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return function(e,t,n,i){if(100===i)return i;var s=No(i,e),r=e[s-1],o=e[s];return n?i-r>(o-r)/2?o:r:t[s-1]?e[s-1]+function(e,t){return Math.round(e/t)*t}(i-e[s-1],t[s-1]):i}(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var i=No(e,this.xPct);return(100===e||t&&e===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},e.prototype.getNearbySteps=function(e){var t=No(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(Oo);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var n;if(!Co(n="min"===e?0:"max"===e?100:parseFloat(e))||!Co(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?this.xSteps.push(!isNaN(i)&&i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=Io([this.xVal[e],this.xVal[e+1]],t,0)/Po(this.xPct[e],this.xPct[e+1]);var n=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],i=Math.ceil(Number(n.toFixed(3))-1),s=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=s}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),zo={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},Bo={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},Fo=".__tooltips",Ho=".__aria";function $o(e,t){if(!Co(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function Vo(e,t){if(!Co(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function jo(e,t){if(!Co(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function qo(e,t){if(!Co(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function Wo(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new Ro(t,e.snap||!1,e.singleStep)}function Uo(e,t){if(t=ko(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function Go(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function Yo(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function Xo(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function Ko(e,t){var n,i=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}e.connect=i}function Jo(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Qo(e,t){if(!Co(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function Zo(e,t){if(!Co(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function ea(e,t){var n;if(!Co(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!Co(t[0])&&!Co(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=t[0]+t[1],s=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-s)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function ta(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function na(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,s=t.indexOf("fixed")>=0,r=t.indexOf("snap")>=0,o=t.indexOf("hover")>=0,a=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,c=t.indexOf("drag-all")>=0,d=t.indexOf("smooth-steps")>=0;if(s){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Qo(e,e.start[1]-e.start[0])}if(l&&2!==e.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(a&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||r,drag:i,dragAll:c,smoothSteps:d,fixed:s,snap:r,hover:o,unconstrained:a,invertConnects:l}}function ia(e,t){if(!1!==t)if(!0===t||_o(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=ko(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!_o(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function sa(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function ra(e,t){if(!_o(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function oa(e,t){if(!function(e){return _o(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function aa(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function la(e,t){e.documentElement=t}function ca(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function da(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach(function(n){e.cssClasses[n]=e.cssPrefix+t[n]})):e.cssClasses=t}function ua(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:zo,format:zo},n={step:{r:!1,t:$o},keyboardPageMultiplier:{r:!1,t:Vo},keyboardMultiplier:{r:!1,t:jo},keyboardDefaultStep:{r:!1,t:qo},start:{r:!0,t:Uo},connect:{r:!0,t:Ko},direction:{r:!0,t:ta},snap:{r:!1,t:Go},animate:{r:!1,t:Yo},animationDuration:{r:!1,t:Xo},range:{r:!0,t:Wo},orientation:{r:!1,t:Jo},margin:{r:!1,t:Qo},limit:{r:!1,t:Zo},padding:{r:!1,t:ea},behaviour:{r:!0,t:na},ariaFormat:{r:!1,t:ra},format:{r:!1,t:oa},tooltips:{r:!1,t:ia},keyboardSupport:{r:!0,t:aa},documentElement:{r:!1,t:la},cssPrefix:{r:!0,t:ca},cssClasses:{r:!0,t:da},handleAttributes:{r:!1,t:sa}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Bo,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(s){if(Eo(e[s])||void 0!==i[s])n[s].t(t,Eo(e[s])?e[s]:i[s]);else if(n[s].r)throw new Error("noUiSlider: '"+s+"' is required.")}),t.pips=e.pips;var s=document.createElement("div"),r=void 0!==s.style.msTransform,o=void 0!==s.style.transform;return t.transformRule=o?"transform":r?"msTransform":"webkitTransform",t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function ha(e,t,n){var i,s,r,o,a,l,c,d=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},u=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),h=e,p=t.spectrum,f=[],m=[],g=[],v=0,b={},y=!1,w=e.ownerDocument,_=t.documentElement||w.documentElement,S=w.body,E="rtl"===w.dir||1===t.ort?0:100;function x(e,t){var n=w.createElement("div");return t&&Lo(n,t),e.appendChild(n),n}function C(e,n){var i=x(e,t.cssClasses.origin),s=x(i,t.cssClasses.handle);if(x(s,t.cssClasses.touchArea),s.setAttribute("data-handle",String(n)),t.keyboardSupport&&(s.setAttribute("tabindex","0"),s.addEventListener("keydown",function(e){return function(e,n){if(k()||O(n))return!1;var i=["Left","Right"],s=["Down","Up"],r=["PageDown","PageUp"],o=["Home","End"];t.dir&&!t.ort?i.reverse():t.ort&&!t.dir&&(s.reverse(),r.reverse());var a,l=e.key.replace("Arrow",""),c=l===r[0],d=l===r[1],u=l===s[0]||l===i[0]||c,h=l===s[1]||l===i[1]||d,g=l===o[1];if(!(u||h||l===o[0]||g))return!0;if(e.preventDefault(),h||u){var v=u?0:1,b=se(n)[v];if(null===b)return!1;!1===b&&(b=p.getDefaultStep(m[n],u,t.keyboardDefaultStep)),b*=d||c?t.keyboardPageMultiplier:t.keyboardMultiplier,b=Math.max(b,1e-7),b*=u?-1:1,a=f[n]+b}else a=g?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return Z(n,p.toStepping(a),!0,!0),G("slide",n),G("update",n),G("change",n),G("set",n),!1}(e,n)})),void 0!==t.handleAttributes){var r=t.handleAttributes[n];Object.keys(r).forEach(function(e){s.setAttribute(e,r[e])})}return s.setAttribute("role","slider"),s.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?Lo(s,t.cssClasses.handleLower):n===t.handles-1&&Lo(s,t.cssClasses.handleUpper),i.handle=s,i}function T(e,n){return!!n&&x(e,t.cssClasses.connect)}function A(e,n){return!(!t.tooltips||!t.tooltips[n])&&x(e.firstChild,t.cssClasses.tooltip)}function k(){return h.hasAttribute("disabled")}function O(e){return r[e].hasAttribute("disabled")}function L(){l&&(U("update"+Fo),l.forEach(function(e){e&&So(e)}),l=null)}function D(){L(),l=r.map(A),W("update"+Fo,function(e,n,i){if(l&&t.tooltips&&!1!==l[n]){var s=e[n];!0!==t.tooltips[n]&&(s=t.tooltips[n].to(i[n])),l[n].innerHTML=s}})}function M(e,t){return e.map(function(e){return p.fromStepping(t?p.getStep(e):e)})}function P(){a&&(So(a),a=null)}function I(e){P();var n=function(e){function t(e,t){return Number((e+t).toFixed(7))}var n,i=function(e){if(e.mode===yo.Range||e.mode===yo.Steps)return p.xVal;if(e.mode===yo.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var t=e.values-1,n=100/t,i=[];t--;)i[t]=t*n;return i.push(100),M(i,e.stepped)}return e.mode===yo.Positions?M(e.values,e.stepped):e.mode===yo.Values?e.stepped?e.values.map(function(e){return p.fromStepping(p.getStep(p.toStepping(e)))}):e.values:[]}(e),s={},r=p.xVal[0],o=p.xVal[p.xVal.length-1],a=!1,l=!1,c=0;return n=i.slice().sort(function(e,t){return e-t}),i=n.filter(function(e){return!this[e]&&(this[e]=!0)},{}),i[0]!==r&&(i.unshift(r),a=!0),i[i.length-1]!==o&&(i.push(o),l=!0),i.forEach(function(n,r){var o,d,u,h,f,m,g,v,b,y,w=n,_=i[r+1],S=e.mode===yo.Steps;for(S&&(o=p.xNumSteps[r]),o||(o=_-w),void 0===_&&(_=w),o=Math.max(o,1e-7),d=w;d<=_;d=t(d,o)){for(v=(f=(h=p.toStepping(d))-c)/(e.density||1),y=f/(b=Math.round(v)),u=1;u<=b;u+=1)s[(m=c+u*y).toFixed(5)]=[p.fromStepping(m),0];g=i.indexOf(d)>-1?wo.LargeValue:S?wo.SmallValue:wo.NoValue,!r&&a&&d!==_&&(g=0),d===_&&l||(s[h.toFixed(5)]=[d,g]),c=h}}),s}(e),i=e.filter,s=e.format||{to:function(e){return String(Math.round(e))}};return a=h.appendChild(function(e,n,i){var s,r,o=w.createElement("div"),a=((s={})[wo.None]="",s[wo.NoValue]=t.cssClasses.valueNormal,s[wo.LargeValue]=t.cssClasses.valueLarge,s[wo.SmallValue]=t.cssClasses.valueSub,s),l=((r={})[wo.None]="",r[wo.NoValue]=t.cssClasses.markerNormal,r[wo.LargeValue]=t.cssClasses.markerLarge,r[wo.SmallValue]=t.cssClasses.markerSub,r),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],d=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function u(e,n){var i=n===t.cssClasses.value,s=i?a:l;return n+" "+(i?c:d)[t.ort]+" "+s[e]}return Lo(o,t.cssClasses.pips),Lo(o,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach(function(s){!function(e,s,r){if((r=n?n(s,r):r)!==wo.None){var a=x(o,!1);a.className=u(r,t.cssClasses.marker),a.style[t.style]=e+"%",r>wo.NoValue&&((a=x(o,!1)).className=u(r,t.cssClasses.value),a.setAttribute("data-value",String(s)),a.style[t.style]=e+"%",a.innerHTML=String(i.to(s)))}}(s,e[s][0],e[s][1])}),o}(n,i,s))}function N(){var e=i.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||i[n]:e.height||i[n]}function R(e,n,i,s){var r=function(r){var o,a,l=function(e,t,n){var i=0===e.type.indexOf("touch"),s=0===e.type.indexOf("mouse"),r=0===e.type.indexOf("pointer"),o=0,a=0;if(0===e.type.indexOf("MSPointer")&&(r=!0),"mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(i){var l=function(t){var i=t.target;return i===n||n.contains(i)||e.composed&&e.composedPath().shift()===n};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,l);if(c.length>1)return!1;o=c[0].pageX,a=c[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,l);if(!d)return!1;o=d.pageX,a=d.pageY}}return t=t||Mo(w),(s||r)&&(o=e.clientX+t.x,a=e.clientY+t.y),e.pageOffset=t,e.points=[o,a],e.cursor=s||r,e}(r,s.pageOffset,s.target||n);return!!l&&!(k()&&!s.doNotReject)&&(o=h,a=t.cssClasses.tap,!((o.classList?o.classList.contains(a):new RegExp("\\b"+a+"\\b").test(o.className))&&!s.doNotReject)&&!(e===d.start&&void 0!==l.buttons&&l.buttons>1)&&(!s.hover||!l.buttons)&&(u||l.preventDefault(),l.calcPoint=l.points[t.ort],void i(l,s)))},o=[];return e.split(" ").forEach(function(e){n.addEventListener(e,r,!!u&&{passive:!0}),o.push([e,r])}),o}function z(e){var n,s,r,o,a,l,c=100*(e-(n=i,s=t.ort,r=n.getBoundingClientRect(),a=(o=n.ownerDocument).documentElement,l=Mo(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),s?r.top+l.y-a.clientTop:r.left+l.x-a.clientLeft))/N();return c=Ao(c),t.dir?100-c:c}function B(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&H(e,t)}function F(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return H(e,n);var i=(t.dir?-1:1)*(e.calcPoint-n.startCalcPoint);K(i>0,100*i/n.baseSize,n.locations,n.handleNumbers,n.connect)}function H(e,n){n.handle&&(Do(n.handle,t.cssClasses.active),v-=1),n.listeners.forEach(function(e){_.removeEventListener(e[0],e[1])}),0===v&&(Do(h,t.cssClasses.drag),Q(),e.cursor&&(S.style.cursor="",S.removeEventListener("selectstart",xo))),t.events.smoothSteps&&(n.handleNumbers.forEach(function(e){Z(e,m[e],!0,!0,!1,!1)}),n.handleNumbers.forEach(function(e){G("update",e)})),n.handleNumbers.forEach(function(e){G("change",e),G("set",e),G("end",e)})}function $(e,n){if(!n.handleNumbers.some(O)){var i;1===n.handleNumbers.length&&(i=r[n.handleNumbers[0]].children[0],v+=1,Lo(i,t.cssClasses.active)),e.stopPropagation();var s=[],o=R(d.move,_,F,{target:e.target,handle:i,connect:n.connect,listeners:s,startCalcPoint:e.calcPoint,baseSize:N(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:m.slice()}),a=R(d.end,_,H,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers}),l=R("mouseout",_,B,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers});s.push.apply(s,o.concat(a,l)),e.cursor&&(S.style.cursor=getComputedStyle(e.target).cursor,r.length>1&&Lo(h,t.cssClasses.drag),S.addEventListener("selectstart",xo,!1)),n.handleNumbers.forEach(function(e){G("start",e)})}}function V(e){e.stopPropagation();var n=z(e.calcPoint),i=function(e){var t=100,n=!1;return r.forEach(function(i,s){if(!O(s)){var r=m[s],o=Math.abs(r-e);(o<t||o<=t&&e>r||100===o&&100===t)&&(n=s,t=o)}}),n}(n);!1!==i&&(t.events.snap||To(h,t.cssClasses.tap,t.animationDuration),Z(i,n,!0,!0),Q(),G("slide",i,!0),G("update",i,!0),t.events.snap?$(e,{handleNumbers:[i]}):(G("change",i,!0),G("set",i,!0)))}function j(e){var t=z(e.calcPoint),n=p.getStep(t),i=p.fromStepping(n);Object.keys(b).forEach(function(e){"hover"===e.split(".")[0]&&b[e].forEach(function(e){e.call(oe,i)})})}function q(e){e.fixed||r.forEach(function(e,t){R(d.start,e.children[0],$,{handleNumbers:[t]})}),e.tap&&R(d.start,i,V,{}),e.hover&&R(d.move,i,j,{hover:!0}),e.drag&&o.forEach(function(n,i){if(!1!==n&&0!==i&&i!==o.length-1){var s=r[i-1],a=r[i],l=[n],c=[s,a],u=[i-1,i];Lo(n,t.cssClasses.draggable),e.fixed&&(l.push(s.children[0]),l.push(a.children[0])),e.dragAll&&(c=r,u=g),l.forEach(function(e){R(d.start,e,$,{handles:c,handleNumbers:u,connect:n})})}})}function W(e,t){b[e]=b[e]||[],b[e].push(t),"update"===e.split(".")[0]&&r.forEach(function(e,t){G("update",t)})}function U(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(b).forEach(function(e){var i=e.split(".")[0],s=e.substring(i.length);t&&t!==i||n&&n!==s||function(e){return e===Ho||e===Fo}(s)&&n!==s||delete b[e]})}function G(e,n,i){Object.keys(b).forEach(function(s){var r=s.split(".")[0];e===r&&b[s].forEach(function(e){e.call(oe,f.map(t.format.to),n,f.slice(),i||!1,m.slice(),oe)})})}function Y(e,n,i,s,o,a,l){var c;return r.length>1&&!t.events.unconstrained&&(s&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.margin,!1),i=Math.max(i,c)),o&&n<r.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.margin,!0),i=Math.min(i,c))),r.length>1&&t.limit&&(s&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.limit,!1),i=Math.min(i,c)),o&&n<r.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.limit,!0),i=Math.max(i,c))),t.padding&&(0===n&&(c=p.getAbsoluteDistance(0,t.padding[0],!1),i=Math.max(i,c)),n===r.length-1&&(c=p.getAbsoluteDistance(100,t.padding[1],!0),i=Math.min(i,c))),l||(i=p.getStep(i)),!((i=Ao(i))===e[n]&&!a)&&i}function X(e,n){var i=t.ort;return(i?n:e)+", "+(i?e:n)}function K(e,n,i,s,r){var o=i.slice(),a=s[0],l=t.events.smoothSteps,c=[!e,e],d=[e,!e];s=s.slice(),e&&s.reverse(),s.length>1?s.forEach(function(e,t){var i=Y(o,e,o[e]+n,c[t],d[t],!1,l);!1===i?n=0:(n=i-o[e],o[e]=i)}):c=d=[!0];var u=!1;s.forEach(function(e,t){u=Z(e,i[e]+n,c[t],d[t],!1,l)||u}),u&&(s.forEach(function(e){G("update",e),G("slide",e)}),null!=r&&G("drag",a))}function J(e,n){return t.dir?100-e-n:e}function Q(){g.forEach(function(e){var t=m[e]>50?-1:1,n=3+(r.length+t*e);r[e].style.zIndex=String(n)})}function Z(e,n,i,s,o,a){return o||(n=Y(m,e,n,i,s,!1,a)),!1!==n&&(function(e,n){m[e]=n,f[e]=p.fromStepping(n);var i="translate("+X(J(n,0)-E+"%","0")+")";if(r[e].style[t.transformRule]=i,t.events.invertConnects&&m.length>1){var s=m.every(function(e,t,n){return 0===t||e>=n[t-1]});if(y!==!s)return y=!y,Ko(t,t.connect.map(function(e){return!e})),void re()}ee(e),ee(e+1),y&&(ee(e-1),ee(e+2))}(e,n),!0)}function ee(e){if(o[e]){var n=m.slice();y&&n.sort(function(e,t){return e-t});var i=0,s=100;0!==e&&(i=n[e-1]),e!==o.length-1&&(s=n[e]);var r=s-i,a="translate("+X(J(i,r)+"%","0")+")",l="scale("+X(r/100,"1")+")";o[e].style[t.transformRule]=a+" "+l}}function te(e,n){return null===e||!1===e||void 0===e?m[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=p.toStepping(e)),!1===e||isNaN(e)?m[n]:e)}function ne(e,n,i){var s=ko(e),r=void 0===m[0];n=void 0===n||n,t.animate&&!r&&To(h,t.cssClasses.tap,t.animationDuration),g.forEach(function(e){Z(e,te(s[e],e),!0,!1,i)});var o=1===g.length?0:1;if(r&&p.hasNoSize()&&(i=!0,m[0]=0,g.length>1)){var a=100/(g.length-1);g.forEach(function(e){m[e]=e*a})}for(;o<g.length;++o)g.forEach(function(e){Z(e,m[e],!0,!0,i)});Q(),g.forEach(function(e){G("update",e),null!==s[e]&&n&&G("set",e)})}function ie(e){if(void 0===e&&(e=!1),e)return 1===f.length?f[0]:f.slice(0);var n=f.map(t.format.to);return 1===n.length?n[0]:n}function se(e){var n=m[e],i=p.getNearbySteps(n),s=f[e],r=i.thisStep.step,o=null;if(t.snap)return[s-i.stepBefore.startValue||null,i.stepAfter.startValue-s||null];!1!==r&&s+r>i.stepAfter.startValue&&(r=i.stepAfter.startValue-s),o=s>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&s-i.stepBefore.highestStep,100===n?r=null:0===n&&(o=null);var a=p.countStepDecimals();return null!==r&&!1!==r&&(r=Number(r.toFixed(a))),null!==o&&!1!==o&&(o=Number(o.toFixed(a))),[o,r]}function re(){for(;s.firstChild;)s.removeChild(s.firstChild);for(var e=0;e<=t.handles;e++)o[e]=T(s,t.connect[e]),ee(e);q({drag:t.events.drag,fixed:!0})}Lo(c=h,t.cssClasses.target),0===t.dir?Lo(c,t.cssClasses.ltr):Lo(c,t.cssClasses.rtl),0===t.ort?Lo(c,t.cssClasses.horizontal):Lo(c,t.cssClasses.vertical),Lo(c,"rtl"===getComputedStyle(c).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),i=x(c,t.cssClasses.base),function(e,n){s=x(n,t.cssClasses.connects),r=[],(o=[]).push(T(s,e[0]));for(var i=0;i<t.handles;i++)r.push(C(n,i)),g[i]=i,o.push(T(s,e[i+1]))}(t.connect,i),q(t.events),ne(t.start),t.pips&&I(t.pips),t.tooltips&&D(),U("update"+Ho),W("update"+Ho,function(e,n,i,s,o){g.forEach(function(e){var n=r[e],s=Y(m,e,0,!0,!0,!0),a=Y(m,e,100,!0,!0,!0),l=o[e],c=String(t.ariaFormat.to(i[e]));s=p.fromStepping(s).toFixed(1),a=p.fromStepping(a).toFixed(1),l=p.fromStepping(l).toFixed(1),n.children[0].setAttribute("aria-valuemin",s),n.children[0].setAttribute("aria-valuemax",a),n.children[0].setAttribute("aria-valuenow",l),n.children[0].setAttribute("aria-valuetext",c)})});var oe={destroy:function(){for(U(Ho),U(Fo),Object.keys(t.cssClasses).forEach(function(e){Do(h,t.cssClasses[e])});h.firstChild;)h.removeChild(h.firstChild);delete h.noUiSlider},steps:function(){return g.map(se)},on:W,off:U,get:ie,set:ne,setHandle:function(e,t,n,i){if(!((e=Number(e))>=0&&e<g.length))throw new Error("noUiSlider: invalid handle number, got: "+e);Z(e,te(t,e),!0,!0,i),G("update",e),n&&G("set",e)},reset:function(e){ne(t.start,e)},disable:function(e){null!=e?(r[e].setAttribute("disabled",""),r[e].handle.removeAttribute("tabindex")):(h.setAttribute("disabled",""),r.forEach(function(e){e.handle.removeAttribute("tabindex")}))},enable:function(e){null!=e?(r[e].removeAttribute("disabled"),r[e].handle.setAttribute("tabindex","0")):(h.removeAttribute("disabled"),r.forEach(function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")}))},__moveHandles:function(e,t,n){K(e,t,m,n)},options:n,updateOptions:function(e,i){var s=ie(),r=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];r.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])});var o=ua(n);r.forEach(function(n){void 0!==e[n]&&(t[n]=o[n])}),p=o.spectrum,t.margin=o.margin,t.limit=o.limit,t.padding=o.padding,t.pips?I(t.pips):P(),t.tooltips?D():L(),m=[],ne(Eo(e.start)?e.start:s,i),e.connect&&re()},target:h,removePips:P,removeTooltips:L,getPositions:function(){return m.slice()},getTooltips:function(){return l},getOrigins:function(){return r},pips:I};return oe}var pa=function(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=ha(e,ua(t),t);return e.noUiSlider=n,n};const fa={start:[0],connect:!1,range:{min:0,max:100},cssPrefix:"range-slider",cssClasses:{target:"__target",base:"__base",origin:"__origin",handle:"__handle",handleLower:"__handle--lower",handleUpper:"__handle--upper",touchArea:"__touch-area",horizontal:"--horizontal",vertical:"--vertical",background:"__background",connect:"__connect",connects:"__connects",ltr:"--ltr",rtl:"--rtl",draggable:"--draggable",drag:"--state-drag",tap:"--state-tap",active:"--active",tooltip:"__tooltip",pips:"__pips",pipsHorizontal:"__pips--horizontal",pipsVertical:"__pips--vertical",marker:"__marker",markerHorizontal:"__marker--horizontal",markerVertical:"__marker--vertical",markerNormal:"__marker--normal",markerLarge:"__marker--large",markerSub:"__marker--sub",value:"__value",valueHorizontal:"__value--horizontal",valueVertical:"__value--vertical",valueNormal:"__value--normal",valueLarge:"__value--large",valueSub:"__value--sub"},format:{decimals:0}},ma={cycleDuration:4e3,delay:5e3},ga=":not([inert]):not([inert] *)",va=':not([tabindex^="-"])',ba=":not(:disabled)";var ya=[`a[href]${ga}${va}`,`area[href]${ga}${va}`,`input:not([type="hidden"]):not([type="radio"])${ga}${va}${ba}`,`input[type="radio"]${ga}${va}${ba}`,`select${ga}${va}${ba}`,`textarea${ga}${va}${ba}`,`button${ga}${va}${ba}`,`details${ga} > summary:first-of-type${va}`,`iframe${ga}${va}`,`audio[controls]${ga}${va}`,`video[controls]${ga}${va}`,`[contenteditable]${ga}${va}`,`[tabindex]${ga}${va}`];function wa(e){(e.querySelector("[autofocus]")||e).focus()}function _a(e,t){if(t&&xa(e))return e;if(function(e){return!(e.shadowRoot&&"-1"===e.getAttribute("tabindex")||e.matches(":disabled,[hidden],[inert]"))}(e))if(e.shadowRoot){let n=Sa(e.shadowRoot,t);for(;n;){const e=_a(n,t);if(e)return e;n=Ea(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=_a(e,t);if(n)return n}}else{let n=Sa(e,t);for(;n;){const e=_a(n,t);if(e)return e;n=Ea(n,t)}}return!t&&xa(e)?e:null}function Sa(e,t){return t?e.firstElementChild:e.lastElementChild}function Ea(e,t){return t?e.nextElementSibling:e.previousElementSibling}const xa=e=>!e.shadowRoot?.delegatesFocus&&e.matches(ya.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e);function Ca(e=document){const t=e.activeElement;return t?t.shadowRoot?Ca(t.shadowRoot)||document.activeElement:t:null}function Ta(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=Aa(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function Aa(e){return e.assignedSlot||(e.parentNode?Aa(e.parentNode):null)}const ka="data-a11y-dialog";class Oa{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(ka)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){return this.shown||this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=Ca(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():wa(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){return this.shown?(this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this):this}on(e,t,n){return this.$el.addEventListener(e,t,n),this}off(e,t,n){return this.$el.removeEventListener(e,t,n),this}fire(e,t){const n=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(n),n}handleTriggerClicks(e){const t=e.composedPath()[0],n=Ta(`[${ka}-show="${this.id}"]`,t),i=Ta(`[${ka}-hide="${this.id}"]`,t),s=Ta(`[${ka}-hide]`,t)&&Ta('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||s)&&this.hide(e)}bindKeypress(e){if(Ta('[aria-modal="true"]',Ca())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&function(e,t){const[n,i]=function(e){const t=_a(e,!0);return[t,t?_a(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const s=Ca();t.shiftKey&&s===n?(i.focus(),t.preventDefault()):t.shiftKey||s!==i||(n.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(){const e=Ca();Ta(`[aria-modal="true"], [${ka}-ignore-focus-trap]`,e)||wa(this.$el)}}function La(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new Oa(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",La):La());var Da=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),Ma="undefined"==typeof Element,Pa=Ma?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ia=!Ma&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Na=function(e){return"INPUT"===e.tagName},Ra=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},za=function(e,t){return!(t.disabled||function(e){return Na(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var s=getComputedStyle(e).visibility;if("hidden"===s||"collapse"===s)return!0;var r=Pa.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Pa.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Ra(e)}else{if("function"==typeof i){for(var o=e;e;){var a=e.parentElement,l=Ia(e);if(a&&!a.shadowRoot&&!0===i(a))return Ra(e);e=e.assignedSlot?e.assignedSlot:a||l===e.ownerDocument?a:l.host}e=o}if(function(e){var t,n,i,s,r=e&&Ia(e),o=null===(t=r)||void 0===t?void 0:t.host,a=!1;if(r&&r!==e)for(a=!!(null!==(n=o)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(o)||null!=e&&null!==(s=e.ownerDocument)&&void 0!==s&&s.contains(e));!a&&o;){var l,c,d;a=!(null===(c=o=null===(l=r=Ia(o))||void 0===l?void 0:l.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(o))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!Pa.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},Ba=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Pa.call(e,Da)&&function(e,t){return!(function(e){return function(e){return Na(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Ia(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return!1}var s=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!s||s===e}(e)}(t)||function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))}(e)?0:e.tabIndex}(t)<0||!za(e,t))}(t,e)};const Fa="--ods-modal-scrollbar-width",Ha="data-lock-scrolltop";class $a{element;config;instance;constructor(e,t){return this.element=e,this.config={classModalIsOpen:"is-active",classModalIsOpenBody:"has-modal",root:"#root",modalsRoot:"#root-modals",...t},this.handleShow=this.handleShow.bind(this),this.handleHide=this.handleHide.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.headerFirstItemSpacing=this.headerFirstItemSpacing.bind(this),$a.moveToModalRoot=$a.moveToModalRoot.bind(this),$a.lockBody=$a.lockBody.bind(this),$a.unlockBody=$a.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}static getInstance(e){return e&&e.ODS_Modal||null}handleShow(e){$a.lockBody(),e&&e.classList.add(this.config.classModalIsOpen);const t=e.querySelector("[data-a11y-dialog-initial-focus]");t&&(Ba(t)||t.setAttribute("tabindex","-1"),t.focus())}handleHide(e){$a.unlockBody(),e&&e.classList.remove(this.config.classModalIsOpen)}show(){this.instance.show()}hide(){this.instance.hide()}headerFirstItemSpacing(){const e=this.element.querySelector(".modal__header");if(e){const t=e.classList.contains("modal__header--no-spacing"),n=Array.from(e.children).find(e=>!e.classList.contains("btn"));n&&!t&&(n.style.marginRight="40px")}}init(){this.config.modalsRoot&&!this.config.disablePortal&&$a.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new Oa(this.element),this.instance.on("show",e=>{const t=e.currentTarget;this.handleShow(t)}),this.instance.on("hide",e=>{const t=e.currentTarget;this.handleHide(t)}),this.headerFirstItemSpacing()}destroy(){if(this.instance){this.instance.hide();const e=this.instance;document.removeEventListener("click",e.handleTriggerClicks,!0),document.body.removeEventListener("focus",e.maintainFocus,!0),this.element.removeEventListener("keydown",e.bindKeypress,!0),$a.unlockBody()}this.element.ODS_Modal=this}update(){this.destroy(),this.init()}static moveToModalRoot(e,t){t&&t.appendChild(e)}static isLocked=!1;static resolveBodyLockClassName(e,t){const n=t;return e||n?.config?.classModalIsOpenBody||"has-modal"}static lockBody(e,t){if($a.isLocked)return;const n=$a.resolveBodyLockClassName(e,this),i=window.scrollY;document.body.setAttribute(Ha,i.toString());const s=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top=`-${i}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.paddingRight=`${s}px`,document.body.style.setProperty(Fa,`${s}px`),document.body.classList.add(n),$a.isLocked=!0}static unlockBody(e,t){if(!$a.isLocked)return;const n=$a.resolveBodyLockClassName(e,this),i=Number.parseInt(document.body.getAttribute(Ha)||"0",10);document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.paddingRight="",document.body.style.removeProperty(Fa),document.body.classList.remove(n),window.scrollTo({top:Number.isFinite(i)?i:0,left:0,behavior:"instant"}),$a.isLocked=!1}}const Va={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'},ja={tabSelector:'[role="tab"]'};class qa{static SCROLL_ALIGNMENT_TOLERANCE=1;static SCROLL_EDGE_TOLERANCE=1;element;config;tabs;tabPanels;activeTabIndex;rovingTabindex;resizeObserver;horizontalScrollHandler;resizeHandler;viewportElement;constructor(e,t){return this.element=e,this.config={...ja,...t},this.tabs=[],this.tabPanels=[],this.activeTabIndex=null,this.rovingTabindex=null,this.resizeObserver=null,this.viewportElement=null,this.handleClick=this.handleClick.bind(this),this.handleTabFocus=this.handleTabFocus.bind(this),this.horizontalScrollHandler=this.updateHorizontalOverflowState.bind(this),this.resizeHandler=this.updateHorizontalOverflowState.bind(this),this.element.ODS_Tabs=this,this.init(),this}static getInstance(e){return e&&e.ODS_Tabs?e.ODS_Tabs:null}init(){this.tabs=Array.from(this.element.querySelectorAll(this.config.tabSelector)),this.tabs.map((e,t)=>{const n=e.getAttribute("aria-controls");return this.tabPanels.push(n?document.getElementById(n):null),e.addEventListener("click",this.handleClick),e.addEventListener("focus",this.handleTabFocus),this.isSelected(e)&&(this.activeTabIndex=t),e}),this.rovingTabindex?this.rovingTabindex.update(this.tabs):this.rovingTabindex=new _(this.tabs,{direction:"any"}),null!==this.activeTabIndex?this.setActiveTab(this.activeTabIndex):this.tabs.length>0&&this.activateNthTab(0),this.setupOverflowObserver()}destroy(){this.teardownOverflowObserver(),this.tabs.map(e=>(e.removeEventListener("click",this.handleClick),e.removeEventListener("focus",this.handleTabFocus),e)),this.tabs=[],this.tabPanels=[],this.rovingTabindex&&this.rovingTabindex.destroy(),this.element.ODS_Tabs=null}setupOverflowObserver(){this.teardownOverflowObserver(),this.viewportElement=this.element.parentElement?.classList.contains("tab-list__viewport")?this.element.parentElement:null,this.element.addEventListener("scroll",this.horizontalScrollHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler),"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.resizeHandler),this.resizeObserver.observe(this.element),this.tabs.forEach(e=>this.resizeObserver?.observe(e))),this.updateHorizontalOverflowState()}teardownOverflowObserver(){this.element.removeEventListener("scroll",this.horizontalScrollHandler),window.removeEventListener("resize",this.resizeHandler),this.viewportElement&&(this.viewportElement.classList.remove("has-left-overflow","has-right-overflow"),this.viewportElement=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}updateHorizontalOverflowState(){if(!this.viewportElement)return;const e=this.element.scrollWidth-this.element.clientWidth,t=e>qa.SCROLL_EDGE_TOLERANCE,n=this.element.scrollLeft<=qa.SCROLL_EDGE_TOLERANCE,i=this.element.scrollLeft>=e-qa.SCROLL_EDGE_TOLERANCE;this.viewportElement.classList.toggle("has-left-overflow",t&&!n),this.viewportElement.classList.toggle("has-right-overflow",t&&!i)}update(){this.destroy(),this.init()}isActive=e=>!!e&&!e.hasAttribute("hidden");isSelected=e=>"true"===e.getAttribute("aria-selected");setActiveTab(e,t=!1){this.tabs.map((t,n)=>n===e?(this.activeTabIndex=n,this.toggleTab(t,"on")):this.toggleTab(t,"off")),this.tabPanels.map((t,n)=>n===e?this.toggleTabPanel(t,"on"):this.toggleTabPanel(t,"off"));const n=this.tabs[e];n&&this.scrollTabIntoView(n,t)}scrollTabIntoView(e,t=!1){const n=Math.max(0,this.element.scrollWidth-this.element.clientWidth),i=this.element.getBoundingClientRect(),s=e.getBoundingClientRect(),r=s.left-i.left+this.element.scrollLeft+s.width/2-this.element.clientWidth/2,o=window.innerWidth<768?"auto":"smooth",a=Math.min(n,Math.max(0,r)),l=Math.abs(this.element.scrollLeft-a)<=qa.SCROLL_ALIGNMENT_TOLERANCE;!t&&l||("function"!=typeof this.element.scrollTo?(this.element.scrollLeft=a,this.updateHorizontalOverflowState()):this.element.scrollTo({left:a,behavior:o}))}handleClick(e){const t=e.currentTarget;if(t.hasAttribute("aria-disabled"))return void e.preventDefault();const n=this.tabs.findIndex(e=>e===t);n>=0&&this.setActiveTab(n,!0)}toggleTab(e,t){const n=this.isSelected(e);"on"!==t||n||(e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")),"off"===t&&n&&(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}toggleTabPanel(e,t){if(!e)return;const n=this.isActive(e);"on"!==t||n||e.removeAttribute("hidden"),"off"===t&&n&&e.setAttribute("hidden","")}activateNthTab(e){this.setActiveTab(e,!0)}handleTabFocus(e){this.rovingTabindex&&!this.rovingTabindex.isActive&&this.rovingTabindex.init();const t=e.currentTarget;t&&this.shouldCenterFocusedTab(t)&&this.scrollTabIntoView(t)}shouldCenterFocusedTab(e){if("function"!=typeof e.matches)return!0;try{return e.matches(":focus-visible")}catch{return!0}}}const Wa={activeClass:"is-active",settingsAttr:"data-toggle"};class Ua{element;config;settings;targets;hasClickOutside;constructor(e,t){return this.element=e,this.config={...Wa,...t},this.settings=[],this.targets=[],this.hasClickOutside=!1,this.handleClick=this.handleClick.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.element.ODS_Toggle=this,this.init(),this}doToggle(e){const{dispatchEvent:t=!0}=e,{element:n,attribute:i,value:s,action:r}=e,o={...e},a={trigger:this.element,element:n};let l=i,c=n,d=s;"icon"===l&&(l="xlink:href",c=n.querySelector("use")),"text"===l&&(c=n.querySelector("[data-toggle-text-target]")||n),void 0===d&&(d=!1);const u=si({element:c,attribute:l,action:r,value:d,dispatchEvent:t,eventDetail:a});return null!==u&&(o.value=u),o}init(){return this.settings=this.parseSettings(),this.targets=this.setupTargets(),this.hasClickOutside=this.settings.some(e=>!0===e.clickOutside),this.element.addEventListener("click",this.handleClick),this.hasClickOutside&&document.addEventListener("click",this.handleClickOutside),this.targets}handleClick(){this.targets=this.targets.map(e=>this.doToggle(e)),this.element.dispatchEvent(new CustomEvent(ii,{bubbles:!0}))}handleClickOutside(e){const t=e.target;this.element.contains(t)||this.targets.some(e=>e.element.contains(t))||this.targets.some(e=>"class"===e.attribute&&"string"==typeof e.value?e.element.classList.contains(e.value):"hidden"===e.attribute&&!e.element.hasAttribute("hidden"))&&(this.targets=this.targets.map(e=>this.doToggle(e)),this.element.dispatchEvent(new CustomEvent(ii,{bubbles:!0})))}destroy(){this.element.removeEventListener("click",this.handleClick),this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside),this.settings=[],this.targets=[],this.hasClickOutside=!1}update(){this.removeNonExistentTargets(),this.addNewTargets();const e=this.hasClickOutside;this.hasClickOutside=this.settings.some(e=>!0===e.clickOutside),!e&&this.hasClickOutside?document.addEventListener("click",this.handleClickOutside):e&&!this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside)}static getTargetElementsFromString({target:e,trigger:t}){const n=e.trim();return"self"===n?[t]:"parent"===n?[t.parentNode]:"previous"===n?[t.previousElementSibling]:"next"===n?[t.nextElementSibling]:"string"==typeof n?Array.from(document.querySelectorAll(n)):[]}parseSettings(){const e=this.element.getAttribute(this.config.settingsAttr),t=this.element.getAttribute("aria-controls");let n=[];try{e&&(n=JSON.parse(e))}catch(e){}return t&&(n=[...this.element.getAttribute("aria-expanded")?[{target:"self",attribute:"aria-expanded"}]:[],{target:t.split(" ").map(e=>`#${e}`).join(","),attribute:"hidden"},...Array.isArray(n)?n:[]]),n}setupTargets(){const e=this.element;return this.settings.reduce((t,n)=>n&&n.target?[...t,...n.target.split(",").reduce((t,i)=>[...t,...Ua.getTargetElementsFromString({target:i,trigger:e}).map(e=>({...n,element:e}))],[])]:t,[])}removeNonExistentTargets(){this.targets=this.targets.filter(e=>document.contains(e.element))}addNewTargets(){const e=this.setupTargets().filter(e=>!this.targets.find(t=>t.element===e.element&&t.action===e.action));this.targets=[...this.targets,...e]}static getInstance(e){return e&&e.ODS_Toggle?e.ODS_Toggle:null}}const Ga=[{Module:class{element;config;rovingTabindex;buttons;constructor(e,t){return this.element=e,this.config={...S,...t},this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.element.ODS_Accordion=this,this.init(),this}onFocus(e){this.rovingTabindex.isActive||this.rovingTabindex.init();const t=e.currentTarget;window.location.hash.substring(1)===t.getAttribute("id")&&"false"===t.getAttribute("aria-expanded")&&t.click()}toggleAccordionItem(e){const t=e.getAttribute("aria-controls"),n=t?this.element.querySelector(`#${t}`):null;if(!n)return;const i=!("true"===e.getAttribute("aria-expanded"));e.setAttribute("aria-expanded",String(i)),i?(n.removeAttribute("hidden"),this.scrollTriggerIntoModalView(e)):n.setAttribute("hidden","")}scrollTriggerIntoModalView(e){const t=e.closest(".modal__dialog");if(!t)return;const n=()=>{const n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),s=this.getStickyHeaderOffset(t),r=i.top-n.top+t.scrollTop-s-8;t.scrollTo({top:Math.max(0,r),behavior:"smooth"})};"function"!=typeof window.requestAnimationFrame?setTimeout(n,0):window.requestAnimationFrame(n)}getStickyHeaderOffset(e){const t=e.querySelector(".modal__header");if(!t)return 0;const n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return Math.max(0,i.bottom-n.top)}init(){this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.rovingTabindex?this.rovingTabindex.update(this.buttons):this.rovingTabindex=new _(this.buttons,{direction:"vertical"}),this.buttons.forEach(e=>{e.addEventListener("focus",this.onFocus),e.addEventListener("click",this.onClick)})}onClick(e){const t=e.currentTarget;this.toggleAccordionItem(t)}destroy(){this.rovingTabindex.destroy(),this.buttons.forEach(e=>{e.removeEventListener("focus",this.onFocus),e.removeEventListener("click",this.onClick)})}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_Accordion?e.ODS_Accordion:null}},name:"Accordion",selector:"[data-accordion]"},{Module:E,name:"AnchorNavigation",selector:"[data-anchor-navigation]"},{Module:class{element;config;instance;teardownClearButton;constructor(e,t){return this.element=e,this.config={...oi,...t},this.onPageshow=this.onPageshow.bind(this),this.onClearButtonClick=this.onClearButtonClick.bind(this),this.instance=null,this.teardownClearButton=null,this.element.ODS_Autocomplete=this,this.init().catch(()=>{}),this}async init(){const e=this.element.getAttribute("data-autocomplete-config");let t={};if(e)try{t=JSON.parse(e)}catch{}this.config={...this.config,...t};const n=(this.config.customInputClassName||"").split(/\s+/).filter(Boolean),i=this.config.wrapperClassName.split(/\s+/).filter(Boolean),s=n.includes("input--search-icon")||i.includes("autocomplete__wrapper--search-icon"),r=n.includes("input--search-icon-with-placeholder")||i.includes("autocomplete__wrapper--search-icon-with-placeholder"),o=this.element.classList.contains("is-invalid");this.config.customInputClassName=n.filter(e=>"input--search-icon"!==e&&"input--search-icon-with-placeholder"!==e).join(" "),o&&(this.config.customInputClassName=ai(this.config.customInputClassName,"is-invalid")),s&&(this.config.wrapperClassName=ai(this.config.wrapperClassName,"autocomplete__wrapper--search-icon")),r&&(this.config.wrapperClassName=ai(this.config.wrapperClassName,"autocomplete__wrapper--search-icon-with-placeholder"));const a=(await Promise.resolve().then(function(){return Ja})).default;"SELECT"===this.element.tagName?a.enhanceSelectElement({selectElement:this.element,...this.config}):a({element:this.element,...this.config}),this.initEnhancedControls(r),window.addEventListener("pageshow",this.onPageshow)}getWrapper(){if("SELECT"===this.element.tagName){const e=this.element.previousElementSibling;return(e=>{if(!e)return!1;const t=e.ownerDocument?.defaultView?.HTMLElement;return t?e instanceof t:e.nodeType===Node.ELEMENT_NODE})(e)?e.classList.contains("autocomplete__wrapper")?e:e.querySelector(".autocomplete__wrapper"):null}return this.element.querySelector(".autocomplete__wrapper")}getInput(){return this.getWrapper()?.querySelector(".autocomplete__input")??null}initEnhancedControls(e,t=10){this.getInput()?(this.syncInputState(),e&&this.initClearButton()):t>0&&this.element.ownerDocument.defaultView?.setTimeout(()=>this.initEnhancedControls(e,t-1),0)}syncInputState(){const e=this.getInput();e&&(this.element.classList.contains("is-invalid")&&(e.classList.add("is-invalid"),e.setAttribute("aria-invalid","true")),this.element instanceof HTMLSelectElement&&this.element.disabled&&(e.disabled=!0))}initClearButton(){this.teardownClearButton?.();const e=this.getWrapper(),t=this.getInput();if(!e||!t)return;const n=document.createElement("button");n.type="button",n.className="autocomplete__clear",n.setAttribute("aria-label",this.config.tClearButton());const i=()=>{n.hidden=t.disabled||0===t.value.length},s=()=>{this.element.ownerDocument.defaultView?.setTimeout(i,0)};n.addEventListener("mousedown",this.preventDefault),n.addEventListener("keydown",this.stopPropagation),n.addEventListener("click",this.onClearButtonClick),t.addEventListener("input",i),t.addEventListener("change",i),e.addEventListener("click",s),e.addEventListener("keyup",s),i(),e.appendChild(n),this.teardownClearButton=()=>{n.removeEventListener("mousedown",this.preventDefault),n.removeEventListener("keydown",this.stopPropagation),n.removeEventListener("click",this.onClearButtonClick),t.removeEventListener("input",i),t.removeEventListener("change",i),e.removeEventListener("click",s),e.removeEventListener("keyup",s),n.remove()}}preventDefault(e){e.preventDefault()}stopPropagation(e){e.stopPropagation()}onClearButtonClick(){const e=this.getInput();if(e){if(e.value="",e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})),this.element instanceof HTMLSelectElement){const e=Array.from(this.element.options).find(e=>""===e.value);e?e.selected=!0:this.element.selectedIndex=-1,this.element.dispatchEvent(new Event("change",{bubbles:!0}))}this.config.onConfirm?.(""),e.focus()}}onPageshow(e){e.persisted&&window&&window.location.reload()}destroy(){this.teardownClearButton?.(),this.teardownClearButton=null,window.removeEventListener("pageshow",this.onPageshow),this.element.ODS_Autocomplete=null}update(){this.destroy(),this.init().catch(()=>{})}static getInstance(e){return e&&e.ODS_Autocomplete?e.ODS_Autocomplete:null}},name:"Autocomplete",selector:"[data-autocomplete]"},{Module:class{element;config;instance;constructor(e,t){return this.element=e,this.config={...Qs,...t},this.init(),this.element.ODS_DatePicker=this,this}init(){const e=this.element.getAttribute("data-datepicker-config"),t=this.element.getAttribute("data-enabled-days");let n={};if(e)try{n=JSON.parse(e)}catch{n={}}this.config={...this.config,...n,...t&&{disabledDayFn:e=>!t.split(",").includes(function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e))}};const i=this.element.getAttribute("data-datepicker-id")||void 0,s=this.element.getAttribute("data-datepicker-name")||i;var r,o;this.instance=(r=this.element,o={id:i,name:s,...this.config},qi(Ei(Ks,{...o}),r),{destroy(){!function(e){e.__k&&qi(null,e)}(r),qi(Ei(Js,{...o}),r)}})}destroy(){this.instance&&this.instance.destroy(),this.instance=null,this.element.ODS_DatePicker=null}},name:"DatePicker",selector:"[data-datepicker]"},{Module:class{element;config;trigger;instance;transitioner;focusableElements;constructor(e,t={}){return e.ODS_Dropdown?e.ODS_Dropdown:(this.element=e,this.config={...ni,...t},this.config.popperOptions={...ni.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...ni.popperOptions.modifiers||[],...t?.popperOptions?.modifiers||[]],this.handleVisibility=this.handleVisibility.bind(this),this.handleKeyPress=this.handleKeyPress.bind(this),this.handleClick=this.handleClick.bind(this),this.element.ODS_Dropdown=this,this.focusableElements=this.element.querySelectorAll('a[href]:not([disabled]), button:not([disabled]),\n textarea:not([disabled]), input[type="text"]:not([disabled]),\n input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]),\n select:not([disabled])'),this.init(),this)}static getInstance(e){return e&&e.ODS_Dropdown?e.ODS_Dropdown:null}init(){this.trigger=document.getElementById(this.element.id.replace("dropdown","btn"));const e=this.element.getAttribute("data-dropdown-placement");e&&(this.config.popperOptions.placement=e),this.instance=Qt(this.trigger,this.element,this.config.popperOptions),this.transitioner=Ne({element:this.element,visibleClass:"dropdown--visible"}),this.trigger.addEventListener("click",this.handleVisibility,!0)}handleVisibility(){this.element.classList.contains("dropdown--visible")?this.hide():this.show()}handleClick(e){this.trigger===e.target||this.trigger.contains(e.target)||this.element.hasAttribute(this.config.dataInteractive)&&!e.target.id.includes(this.element.id.replace("dropdown","btn"))&&this.element.contains(e.target)||this.handleVisibility()}handleKeyPress(e){if(w.ESC.includes(e.key)&&(this.handleVisibility(),this.element.contains(document.activeElement)&&this.trigger.focus(),this.hide()),this.element.hasAttribute(this.config.focusTrap)){const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];document.activeElement!==this.button||"Tab"!==e.key&&9!==e.keyCode?"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===t&&(n.focus(),e.preventDefault()):document.activeElement===n&&(t.focus(),e.preventDefault())):e.shiftKey&&(this.focusableElements[this.focusableElements.length-1].focus(),e.preventDefault())}}show(){this.transitioner.show(),this.instance.forceUpdate(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),window.onresize=()=>this.update()}hide(){this.transitioner.hide(),document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),window.onresize=null}update(){this.instance.forceUpdate()}destroy(){this.trigger.removeEventListener("click",this.handleVisibility,!0),this.hide(),this.instance.destroy(),this.element.ODS_Dropdown=null,window.onresize=null,this.config.removeDialogOnDestroy&&this.element.remove()}},name:"Dropdown",selector:"[data-dropdown]"},{Module:class{element;constructor(e){this.element=e,this.toggle=this.toggle.bind(this),this.element.ODS_Expander=this,this.init()}toggle(){const e=this.element.getAttribute("data-toggle-group");e&&this.syncGroup(e)}syncGroup(e){const t=this.element.open;document.querySelectorAll(`[data-toggle-group="${e}"][data-expander]`).forEach(e=>{e!==this.element&&e.open!==t&&(e.open=t)})}init(){this.element.addEventListener("toggle",this.toggle)}update(){this.destroy(),this.init()}destroy(){this.element.removeEventListener("toggle",this.toggle)}static getInstance(e){return e&&e.ODS_Expander?e.ODS_Expander:null}},name:"Expander",selector:"[data-expander]"},{Module:class{element;config;controlElement=null;indicatorElements=[];constructor(e,t){return this.element=e,this.config={...x,...t},this.highlightIndicators=this.highlightIndicators.bind(this),this.unhighlightIndicators=this.unhighlightIndicators.bind(this),this.element.ODS_BlockAction=this,this.init(),this}init(){this.controlElement=this.element.querySelector(this.config.controlSelector),this.indicatorElements=Array.from(this.element.querySelectorAll(this.config.indicatorSelector)),!this.controlElement||this.indicatorElements.length<1||(this.controlElement.addEventListener("mouseenter",this.highlightIndicators),this.controlElement.addEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.addEventListener("focus",this.highlightIndicators),this.controlElement.addEventListener("blur",this.unhighlightIndicators))}highlightIndicators(){this.indicatorElements.forEach(e=>e.classList.add(this.config.activeClass))}unhighlightIndicators(){this.indicatorElements.forEach(e=>e.classList.remove(this.config.activeClass))}destroy(){this.indicatorElements.forEach(e=>e.classList.remove(this.config.activeClass)),this.controlElement&&(this.controlElement.removeEventListener("mouseenter",this.highlightIndicators),this.controlElement.removeEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.removeEventListener("focus",this.highlightIndicators),this.controlElement.removeEventListener("blur",this.unhighlightIndicators)),this.controlElement=null,this.indicatorElements=[]}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_BlockAction?e.ODS_BlockAction:null}},name:"BlockAction",selector:"[data-block-action]"},{Module:xn,name:"Carousel",selector:"[data-carousel]"},{Module:class{element;config;viewport;instance;tabs=[];_dotAnimationJustStarted=!1;_isDragging=!1;resizeRafId;_boundTabClick;_boundPrevClick;_boundNextClick;_boundPlayPauseClick;_boundWindowResize;constructor(e,t){return this.element=e,this.config={...Hn,...t},this.element.ODS_CarouselHero=this,this._boundTabClick=this._onTabClick.bind(this),this._boundPrevClick=this._onUserNavigation.bind(this),this._boundNextClick=this._onUserNavigation.bind(this),this._boundPlayPauseClick=this._onPlayPauseClick.bind(this),this._boundWindowResize=this._onWindowResize.bind(this),this.init(),this}init(){this.getElements(),this.setupConfig(),this.createSwiper(),this.setupEventListeners(),this.renderPaginationDots(),this.updateStates(),this.updatePlayPauseIcon(),this.hasAutoplay()&&this.isAutoplayRunning()&&this.startDotAnimation(),window.addEventListener("resize",this._boundWindowResize)}_onWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateStates(),this.updatePlayPauseIcon()))})}getElements(){this.viewport=this.element.querySelector(Pn);const e=this.element.querySelector(zn);e&&(this.tabs=Array.from(e.querySelectorAll(Bn)))}setupConfig(){const e=this.element.hasAttribute("data-interval")&&parseInt(this.element.getAttribute("data-interval"))||0;if("object"==typeof this.config.a11y&&null!==this.config.a11y&&(this.config.a11y={...this.config.a11y,slideRole:this.tabs.length>0?"tabpanel":"group"}),this.element.hasAttribute("data-swiper-options"))try{const e=JSON.parse(this.element.getAttribute("data-swiper-options"));this.config={...this.config,...e}}catch(e){}this.config.loop=!1,this.config.rewind=!0,e>=1e3&&(this.config.autoplay={delay:e,disableOnInteraction:!1,pauseOnMouseEnter:!1,waitForTransition:!0,stopOnLastSlide:!1},this.element.classList.add(Dn))}createSwiper(){const e=this.viewport.querySelectorAll(`.${Tn}`).length>1;this.instance=new _e(this.viewport,{...this.config,modules:[ke,De,Pe,xe,Ie],navigation:{nextEl:this.element.querySelector(Nn),prevEl:this.element.querySelector(In)},pagination:!!e&&{...this.config.pagination,el:this.element.querySelector(Fn)},on:{slideChange:()=>{this.updateStates(),this.isAutoplayRunning()?this.restartDotAnimation():this.stopDotAnimation()},autoplayStart:()=>{this._onAutoplayStart()},autoplayStop:()=>{this._onAutoplayStop()},touchStart:()=>{this._isDragging=!0,this._stopAutoplayIfRunning()},touchEnd:()=>{this._isDragging=!1}}}),this.updatePlayPauseIcon()}setupEventListeners(){this.tabs.forEach(e=>{e.removeEventListener("click",this._boundTabClick),e.addEventListener("click",this._boundTabClick)});const e=this.element.querySelector(Rn);e&&(e.removeEventListener("click",this._boundPlayPauseClick),e.addEventListener("click",this._boundPlayPauseClick));const t=this.element.querySelector(In),n=this.element.querySelector(Nn);t&&(t.removeEventListener("click",this._boundPrevClick),t.addEventListener("click",this._boundPrevClick)),n&&(n.removeEventListener("click",this._boundNextClick),n.addEventListener("click",this._boundNextClick))}_onUserNavigation(){this._stopAutoplayIfRunning(),this.stopDotAnimation()}_onTabClick(e){e.preventDefault();const t=e.currentTarget,n=this.tabs.indexOf(t);-1!==n&&n!==this.instance?.realIndex&&(this._onUserNavigation(),this.goToSlide(n))}_onPlayPauseClick(){this.toggleAutoplay()}isAutoplayRunning(){return!(!this.instance?.autoplay||!this.instance.autoplay.running)}_stopAutoplayIfRunning(){this.isAutoplayRunning()&&this.instance.autoplay.stop()}_onAutoplayStart(){this.element.classList.add(Dn),this.element.classList.remove(Mn),this.updatePlayPauseIcon(),this.startDotAnimation()}_onAutoplayStop(){this.element.classList.remove(Dn),this.element.classList.add(Mn),this.updatePlayPauseIcon(),this.stopDotAnimation()}toggleAutoplay(){this.instance&&this.instance.autoplay&&(this.isAutoplayRunning()?this.instance.autoplay.stop():(this.updateStates(),setTimeout(()=>{this.instance&&this.instance.autoplay&&this.instance.autoplay.start()},10)))}goToSlide(e){this.instance&&this.instance.realIndex!==e&&(this.instance.params.loop?this.instance.slideToLoop(e):this.instance.slideTo(e))}updateStates(){if(!this.instance)return;const e=this.instance.realIndex??this.instance.activeIndex??0;this.tabs.forEach((t,n)=>{const i=n===e;t.classList.toggle(Ln,i),t.setAttribute("aria-selected",String(i)),t.setAttribute("tabindex",i?"0":"-1")}),this.scrollActiveTabIntoView(e),this.updatePaginationBullets(e)}updatePaginationBullets(e){const t=this.element.querySelector(Fn);t&&t.querySelectorAll(`.${An}`).forEach((t,n)=>{const i=n===e;if(t.classList.toggle("is-active",i),!this.hasAutoplay()){const e=t.querySelector(`.${kn}`);e&&(e.style.display=i?"block":"none")}})}scrollActiveTabIntoView(e){if(!this.tabs.length||e<0||e>=this.tabs.length)return;const t=this.tabs[e],n=this.element.querySelector(zn);if(!n||!t)return;const i=n.getBoundingClientRect(),s=t.getBoundingClientRect(),r=i.width-56;if(s.right>i.left+r||s.left<i.left){const e=s.left-i.left-r/2+s.width/2;n.scrollBy({left:e,behavior:"smooth"})}}updatePlayPauseIcon(){const e=this.element.querySelector(Rn);if(!e)return;const t=e.querySelector("use");if(t){const e=this.isAutoplayRunning()?"pause":"play",n=t.getAttribute("xlink:href")||"";if(!n.endsWith(`#${e}`)){const i=n.replace(/#[\w-]+$/,`#${e}`);t.setAttribute("xlink:href",i)}}}renderPaginationDots(){this._getPaginationButtons().forEach(e=>{const t=this.createSvgDot();e.innerHTML="",e.appendChild(t)})}startDotAnimation(e=!1){if(!this.hasAutoplay())return;if(!e&&!this.isAutoplayRunning())return;if(this._dotAnimationJustStarted)return;this._dotAnimationJustStarted=!0;const t=this._getActiveBulletButton();if(!t)return void(this._dotAnimationJustStarted=!1);const n=t.querySelector(`.${kn}`);if(!n)return void(this._dotAnimationJustStarted=!1);const i=n.querySelector("circle");if(!i)return void(this._dotAnimationJustStarted=!1);const s=this.getAnimationDuration();i.style.animation="none",t.offsetHeight,i.style.animation=`countdown linear ${s}ms 1 forwards`,this._dotAnimationJustStarted=!1}restartDotAnimation(){this.stopDotAnimation(),setTimeout(()=>{this.startDotAnimation()},50)}stopDotAnimation(){this._getPaginationButtons().forEach(e=>{const t=e.querySelector(`.${kn}`);if(!t)return;const n=t.querySelector("circle");n&&(n.style.animation="none")}),this._dotAnimationJustStarted=!1}_getPaginationButtons(){return Array.from(this.element.querySelectorAll(`${Fn} > *`))}_getActiveBulletClass(){const e=this.instance?.params?.pagination;if(e&&"object"==typeof e&&e.bulletActiveClass)return String(e.bulletActiveClass);const t=this.config.pagination;return t&&"object"==typeof t&&t.bulletActiveClass?String(t.bulletActiveClass):Ln}_getActiveBulletButton(){const e=this._getActiveBulletClass();return this.element.querySelector(`${Fn} .${e}`)}createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",kn),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12");const n=document.createElementNS(e,"circle");return n.setAttribute("class",On),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}hasAutoplay(){return!!(this.config.autoplay&&"object"==typeof this.config.autoplay&&this.config.autoplay.delay>=1e3)}getAnimationDuration(){return this.config.autoplay?.delay||0}destroy(){this.tabs.forEach(e=>{e.removeEventListener("click",this._boundTabClick)});const e=this.element.querySelector(Rn);e&&e.removeEventListener("click",this._boundPlayPauseClick);const t=this.element.querySelector(In),n=this.element.querySelector(Nn);t&&t.removeEventListener("click",this._boundPrevClick),n&&n.removeEventListener("click",this._boundNextClick),window.removeEventListener("resize",this._boundWindowResize),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0),this.instance&&this.instance.destroy(!0,!0),delete this.element.ODS_CarouselHero}static getInstance(e){return e.ODS_CarouselHero||null}},name:"CarouselHero",selector:"[data-carousel-hero]"},{Module:Jn,name:"CarouselPromotions",selector:"[data-carousel-promotions]"},{Module:class extends m{leaves;constructor(e,t){super(e,t,{defaultConfig:ei,instanceKey:"ODS_Countdown"}),this.leaves=new Map,this.init()}getLabels(){return{...Zn,...this.config.labels??{},days:p(this.config.labels?.days,Qn)}}collectElements(){this.leaves.clear();const e=h(this.config.units);Array.from(this.element.querySelectorAll(o)).forEach(t=>{const n=t.getAttribute(s);n&&e.includes(n)&&this.leaves.set(n,{element:t,unit:n,labels:Array.from(t.querySelectorAll(c)),isFlipping:!1})})}setLeafValue(e,t){e.labels.forEach(e=>{e.replaceChildren(document.createTextNode(t))})}flipLeaf(e,t){const[n,s,r,o]=e.labels;n&&s&&r&&o&&(n.textContent?e.isFlipping||n.textContent===t||(e.flipTimeoutId&&window.clearTimeout(e.flipTimeoutId),e.isFlipping=!0,n.replaceChildren(document.createTextNode(t)),r.replaceChildren(document.createTextNode(t)),e.element.classList.add(i),e.flipTimeoutId=window.setTimeout(()=>{s.replaceChildren(document.createTextNode(t)),o.replaceChildren(document.createTextNode(t)),e.element.classList.remove(i),e.isFlipping=!1,e.flipTimeoutId=void 0},600)):this.setLeafValue(e,t))}render(){const e=h(this.config.units),t=this.getLabels(),n=f(this.config.targetDate,e);if(e.forEach(e=>{const i=this.leaves.get(e);if(!i)return;const s=n[e],r=ti(e,s,t);this.flipLeaf(i,(e=>String(Math.max(0,e)).padStart(2,"0"))(s));const o=i.element.querySelector(a);o&&(o.textContent=r)}),this.liveRegion){const i=e.map(e=>`${n[e]} ${ti(e,n[e],t)}`).join(", ");this.liveRegion.textContent=i}}destroyElements(){this.leaves.forEach(e=>{e.flipTimeoutId&&(window.clearTimeout(e.flipTimeoutId),e.flipTimeoutId=void 0),e.isFlipping=!1,e.element.classList.remove(i)})}static getInstance(e){return e&&e.ODS_Countdown?e.ODS_Countdown:null}},name:"Countdown",selector:"[data-countdown]"},{Module:class extends m{units;constructor(e,t){super(e,t,{defaultConfig:b,instanceKey:"ODS_CountdownTag"}),this.units=new Map,this.init()}getLabels(){return{...v,...this.config.labels??{},days:p(this.config.labels?.days,g)}}collectElements(){this.units.clear();const e=h(this.config.units);Array.from(this.element.querySelectorAll(l)).forEach(t=>{const n=t.getAttribute(s);n&&e.includes(n)&&this.units.set(n,{element:t,unit:n,valueElement:t.querySelector("[data-countdown-tag-value]")})})}render(){const e=h(this.config.units),t=this.getLabels(),n=f(this.config.targetDate,e);e.forEach(e=>{const i=this.units.get(e);if(!i)return;const s=n[e];i.valueElement&&(i.valueElement.textContent=(e=>e<100?String(Math.max(0,e)).padStart(2,"0"):String(Math.max(0,e)))(s));const r=i.element.querySelector(".countdown-tag__label");r&&(r.textContent=y(e,t))}),this.liveRegion&&(this.liveRegion.textContent=e.map(e=>`${n[e]} ${y(e,t)}`).join(", "))}destroyElements(){}static getInstance(e){return e&&e.ODS_CountdownTag?e.ODS_CountdownTag:null}},name:"CountdownTag",selector:"[data-countdown-tag]"},{Module:class{element;config;bodies=[];buttons=[];images=[];constructor(e,t){return this.element=e,this.config={...ri,...t},this.element.ODS_FeatureAccordion=this,this.init(),this}init(){this.bodies=Array.from(this.element.querySelectorAll(this.config.bodiesSelector)),this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.images=Array.from(this.element.querySelectorAll("[data-feature-accordion-image]")),this.setActive(0),this.buttons.forEach(e=>{e.addEventListener("click",this.onClick)})}onClick=e=>{const t=e.currentTarget,n=this.buttons.indexOf(t);this.setActive(n)};setActive(e){if(e<0||e>=this.buttons.length)return;this.bodies.forEach(e=>{e.setAttribute("hidden",""),e.classList.remove("is-active")}),this.buttons.forEach(e=>{const t=e.closest(".feature-accordion__item");t?.classList.remove("is-active"),si({element:e,attribute:"aria-expanded",value:"false"})});const t=this.buttons[e],n=t.getAttribute("aria-controls"),i=n?document.getElementById(n):null,s=t.closest(".feature-accordion__item");i&&(i.removeAttribute("hidden"),i.classList.add("is-active")),s&&s.classList.add("is-active"),si({element:t,attribute:"aria-expanded",value:"true"}),this.images.forEach((t,n)=>{t.classList.toggle("hide",n!==e)})}destroy(){this.buttons.forEach(e=>{e.removeEventListener("click",this.onClick)})}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_FeatureAccordion?e.ODS_FeatureAccordion:null}},name:"FeatureAccordion",selector:"[data-feature-accordion]"},{Module:class{element;config;input;files;results;removeButtons;constructor(e,t){return this.element=e,this.config={...vo,...t},this.input=null,this.files=[],this.results=null,this.removeButtons=[],this.onInputChange=this.onInputChange.bind(this),this.onRemoveButtonClick=this.onRemoveButtonClick.bind(this),this.highlight=this.highlight.bind(this),this.unhighlight=this.unhighlight.bind(this),this.onDrop=this.onDrop.bind(this),this.preventDefaults=this.preventDefaults.bind(this),this.init(),this}init(){this.input=this.element.querySelector(this.config.inputSelector),this.results=this.element.querySelector(this.config.resultsSelector),this.input&&this.results&&(this.input.addEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(e=>{this.element.addEventListener(e,this.preventDefaults,!1),document.body.addEventListener(e,this.preventDefaults,!1)}),["dragenter","dragover"].forEach(e=>{this.element.addEventListener(e,this.highlight,!1)}),["dragleave","drop"].forEach(e=>{this.element.addEventListener(e,this.unhighlight,!1)}),this.element.addEventListener("drop",this.onDrop))}onInputChange(){return!(!this.input||!this.results)&&(this.files=Array.from(this.input.files??[]),!!this.files&&(this.results.innerHTML="",this.files.map((e,t)=>this.config.fileTemplate(go.sanitize(e.name,{ALLOWED_TAGS:[]}),t)).forEach(e=>{this.results.appendChild(go.sanitize(e,{ADD_TAGS:["use"],RETURN_DOM_FRAGMENT:!0}))}),this.removeButtons=Array.from(this.results.querySelectorAll(this.config.deleteButtonSelector)),void this.removeButtons.forEach(e=>e.addEventListener("click",this.onRemoveButtonClick))))}onDrop(e){this.input&&(this.input.files=e?.dataTransfer?.files||(new DataTransfer).files,this.onInputChange())}onRemoveButtonClick(e){if(!this.input)return;const t=new DataTransfer,n=e.currentTarget,i=Number(n.getAttribute(this.config.deleteFileAttr));this.files.splice(i,1),this.files.forEach(e=>t.items.add(e)),this.input.files=t.files,this.onInputChange()}highlight(){this.element.classList.add(this.config.dragDropClassname)}unhighlight(){this.element.classList.remove(this.config.dragDropClassname)}preventDefaults(e){e.preventDefault(),e.stopPropagation()}destroy(){this.input&&(this.input.removeEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(e=>{this.element.removeEventListener(e,this.preventDefaults,!1),document.body.removeEventListener(e,this.preventDefaults,!1)}),["dragenter","dragover"].forEach(e=>{this.element.removeEventListener(e,this.highlight,!1)}),["dragleave","drop"].forEach(e=>{this.element.removeEventListener(e,this.unhighlight,!1)}),this.element.removeEventListener("drop",this.onDrop))}update(){this.destroy(),this.init()}},name:"File",selector:"[data-file-input]"},{Module:class{element;config;interval;delay;currentMessageIndex;messages;constructor(e,t){this.element=e,this.config={...ma,...t},this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()}initBody(){const e=this.element.getAttribute("data-loader-messages");this.messages=e?JSON.parse(e):[],this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,this.config.cycleDuration??ma.cycleDuration))}init(){this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(()=>{this.element.parentNode&&this.element.parentNode instanceof HTMLElement&&this.element.parentNode.classList.remove("hide"),this.initBody()},this.config.delay??ma.delay):this.initBody()}destroy(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearTimeout(this.delay)}cycleMessages(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}static getInstance(e){return e&&e.ODS_Loader?e.ODS_Loader:null}},name:"Loader",selector:"[data-loader]"},{Module:$a,name:"Modal",selector:"[data-modal]"},{Module:class{constructor(e){this.element=e,this.children=null,this.updateHeight=this.updateHeight.bind(this),this.element.ODS_SameHeight=this,this.intervalId=null,this.init()}temporarilyShowHiddenElements(){this.originalDisplayStates=[],this.children.forEach(e=>{const t=e.closest('[role="tabpanel"]'),n=e.closest('[role="dialog"]');t&&t.hasAttribute("hidden")&&(this.originalDisplayStates.push({element:t,display:t.style.display}),t.style.display="block",t.removeAttribute("hidden")),n&&n.hasAttribute("aria-hidden")&&(this.originalDisplayStates.push({element:n,display:n.style.display}),n.style.display="block",n.removeAttribute("aria-hidden"))})}restoreHiddenElements(){this.originalDisplayStates.forEach(({element:e,display:t})=>{e.style.display=t,"tabpanel"===e.getAttribute("role")?e.setAttribute("hidden",!0):"dialog"===e.getAttribute("role")&&e.setAttribute("aria-hidden",!0)})}getCarouselElement(){const e=`[data-carousel], .${ln}`;return this.element.matches(e)?this.element:this.element.closest(e)}isInsideOrIsCarousel(){return this.getCarouselElement()}getCarouselSlides(){const e=this.getCarouselElement();return e?e.querySelectorAll(`.${un}`):[]}updateHeight(){this.temporarilyShowHiddenElements();const e=this.element.querySelectorAll('[data-same-height-child="true"]');e.forEach(e=>{e.style.height&&(e.style.height="")});const t=this.groupElementsByTypeAndPosition(e),n=this.isInsideOrIsCarousel();for(const[e,i]of Object.entries(t))i.length&&this.groupElementsIntoRows(i,n).forEach(e=>{if(e.length>1){const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})}else e.forEach(e=>{e.style.height&&(e.style.height=null)})});this.restoreHiddenElements()}groupElementsIntoRows(e,t){if(t)return[e];const n=[];let i=[],s=e[0].getBoundingClientRect().top;for(const t of e){const e=t.getBoundingClientRect().top;e===s?i.push(t):(n.push(i),i=[t],s=e)}return n.push(i),n}groupElementsByTypeAndPosition(e){const t={};return e.forEach(e=>{const n=e.getAttribute("data-same-height-group")||"default";t[n]||(t[n]=[]),t[n].push(e)}),t}init(){this.children=this.element.querySelectorAll('[data-same-height-child="true"]');const e=[];this.children.forEach(t=>{t.querySelectorAll("img").forEach(t=>{t.complete||e.push(t)})});const t=this.isInsideOrIsCarousel(),n=()=>{t?this.waitForCarouselThenUpdate(t):this.updateHeight()};0===e.length?n():this.waitForImagesToLoad(e,n),window.addEventListener("resize",this.updateHeight),t&&this.setupCarouselListeners(t)}waitForCarouselThenUpdate(e){e.ODS_Carousel?.instance?requestAnimationFrame(()=>{this.updateHeight()}):setTimeout(()=>this.waitForCarouselThenUpdate(e),50)}waitForImagesToLoad(e,t){let n=0;this.intervalId=setInterval(()=>{let i=!1;e.forEach((e,t,n)=>{e.complete&&(n.splice(t,1),i=!0)}),i&&this.updateHeight&&t(),(++n>=15||0===e.length)&&(e.length&&this.updateHeight&&t(),window.clearInterval(this.intervalId))},400)}setupCarouselListeners(e){if(e.ODS_Carousel?.instance){const{instance:t}=e.ODS_Carousel;["resize","update","slideChange"].forEach(e=>{t.on(e,()=>{requestAnimationFrame(()=>{this.updateHeight()})})})}else setTimeout(()=>this.setupCarouselListeners(e),50)}update(){this.destroy(),this.init()}destroy(){window.removeEventListener("resize",this.updateHeight),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}static getInstance(e){return e?.ODS_SameHeight||null}},name:"SameHeight",selector:"[data-same-height]"},{Module:class{element;config;instance;inputs;outputs;constructor(e,t){return this.element=e,this.config={...fa,...t},this.inputs=[],this.outputs=[],this.handleSliderUpdate=this.handleSliderUpdate.bind(this),this.element.ODS_RangeSlider=this,this.init(),this}init(){const e=this.element.getAttribute("data-rangeslider-config");let t={};if(e)try{t=JSON.parse(e)}catch{}if(this.config={...this.config,...t},this.config.format=sn(this.config.format),this.element.noUiSlider&&(this.element.noUiSlider=void 0,this.instance?.destroy&&this.instance.destroy()),!this.config.range)throw new Error("RangeSlider config must include 'range'.");this.instance=pa(this.element,this.config),this.inputs=Array.from(document.querySelectorAll(`input[name^=${this.element.getAttribute("id")}-]`)),this.outputs=this.inputs.map(e=>{const t=document.getElementById(`${e.getAttribute("id")}-output`);if(t){const e=t.getAttribute("data-format");return{element:t,format:t.hasAttribute("data-format")&&e?sn(JSON.parse(e)):void 0}}return!1}),this.instance.on("update",(e,t)=>{this.handleSliderUpdate(e.map(String),t)})}update(){this.instance?.destroy(),this.init()}destroy(){this.instance?.off("update"),this.instance?.destroy(),this.element.ODS_RangeSlider=null}static getInstance(e){return e&&e.ODS_RangeSlider?e.ODS_RangeSlider:null}handleSliderUpdate=(e,t)=>{const n=e[t];if(this.inputs[t]&&(this.inputs[t].value=n),this.outputs[t]){const e=this.outputs[t];e&&e.format?e.element.innerText=e.format.to(this.config.format.from(n)):e&&(e.element.innerText=n)}}},name:"RangeSlider",selector:"[data-rangeslider]"},{Module:class{element;config;input;numberDisplay;add;remove;constructor(e,t){this.element=e,this.config={...bo,...t},this.input=null,this.numberDisplay=null,this.add=null,this.remove=null,this.element.ODS_InputStepper=this,this.handleButtonClick=this.handleButtonClick.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleButtonState=this.handleButtonState.bind(this),this.init()}handleInputClick(){this.input&&this.input.select()}handleButtonState(){const{min:e,max:t}=this.config,n=this.config.nonEditableInput?parseInt(this.numberDisplay?.textContent??"0",10):parseInt(this.input?.value??"0",10);this.add&&"number"==typeof t&&n>=t?(this.add.setAttribute("aria-disabled","true"),this.add.setAttribute("disabled","true")):this.add&&(this.add.removeAttribute("aria-disabled"),this.add.removeAttribute("disabled")),this.remove&&"number"==typeof e&&n<=e?(this.remove.setAttribute("aria-disabled","true"),this.remove.setAttribute("disabled","true")):this.remove&&(this.remove.removeAttribute("aria-disabled"),this.remove.removeAttribute("disabled"))}handleInputChange(e){const{min:t,max:n}=this.config,i=e.target;i&&(t&&Number(i.value)<=t&&(i.value=String(t)),n&&Number(i.value)>=n&&(i.value=String(n)))}handleButtonClick(e){const{min:t,max:n}=this.config,i=e.target;let s=this.config.nonEditableInput?parseInt(this.numberDisplay?.textContent??"0",10):parseInt(this.input?.value??"0",10);if(i.classList.contains("input-stepper__button--minus")){if(t&&s<=t){if("true"===i.getAttribute("disabled"))return;return i.setAttribute("aria-disabled","true"),void i.setAttribute("disabled","true")}s-=1}if(i.classList.contains("input-stepper__button--plus")){if(n&&s>=n){if("true"===i.getAttribute("disabled"))return;return i.setAttribute("aria-disabled","true"),void i.setAttribute("disabled","true")}s+=1}!this.config.nonEditableInput&&this.input?this.input.value=String(s):this.numberDisplay&&(this.numberDisplay.textContent=String(s)),this.handleButtonState()}init(){const e=this.element.getAttribute("data-inputstepper");let t={};try{e&&e.trim().startsWith("{")&&(t=JSON.parse(e))}catch{t={}}this.config={...this.config,...t},this.config.nonEditableInput?(this.numberDisplay=this.element.querySelector(".input-stepper__number"),this.numberDisplay&&(this.numberDisplay.textContent=String(this.config.defaultValue))):(this.input=this.element.querySelector(".input-stepper__field"),this.input&&(this.input.value=String(this.config.defaultValue))),this.add=this.element.querySelector(".input-stepper__button--plus"),this.remove=this.element.querySelector(".input-stepper__button--minus");const{defaultValue:n}=this.config;void 0!==n&&(!this.config.nonEditableInput&&this.input?this.input.value=String(n):this.numberDisplay&&(this.numberDisplay.textContent=String(n))),this.element.classList.contains("input-stepper--disabled")||(this.add&&this.add.addEventListener("click",this.handleButtonClick),this.remove&&this.remove.addEventListener("click",this.handleButtonClick),!this.config.nonEditableInput&&this.input&&(this.input.addEventListener("click",this.handleInputClick),this.input.addEventListener("change",this.handleInputChange)),this.handleButtonState())}update(){this.destroy(),this.init()}destroy(){!this.config.nonEditableInput&&this.input&&(this.input.removeEventListener("click",this.handleInputClick),this.input.removeEventListener("change",this.handleInputChange)),this.add&&this.add.removeEventListener("click",this.handleButtonClick),this.remove&&this.remove.removeEventListener("click",this.handleButtonClick)}static getInstance(e){return e&&e.ODS_InputStepper?e.ODS_InputStepper:null}},name:"InputStepper",selector:"[data-inputstepper]"},{Module:class{element;config;expandButtons;scrollableContainer;resizeObserver;constructor(e,t){return this.element=e,this.config={...Va,...t},this.addRole=this.addRole.bind(this),this.addARIA=this.addARIA.bind(this),this.onExpandClick=this.onExpandClick.bind(this),this.expandButtons=[],this.scrollableContainer=null,this.element.ODS_Table=this,this.resizeObserver=new ResizeObserver(e=>{if(!this.scrollableContainer)return;const t=this.scrollableContainer.getBoundingClientRect();e.forEach(e=>{e.contentRect.width>t.width?this.scrollableContainer?.setAttribute("tabindex","0"):this.scrollableContainer?.removeAttribute("tabindex")})}),this.init(),this}addRole(e,t){Array.from(this.element.querySelectorAll(e)).forEach(e=>{e.setAttribute("role",t)})}addARIA(){try{this.element.setAttribute("role","table"),this.addRole("thead, tbody, tfoot","rowgroup"),this.addRole("tr","row"),this.addRole("td","cell"),this.addRole("th","columnheader"),this.addRole("th[scope=row]","rowheader")}catch(e){}}onExpandClick(e){const t=e.currentTarget,n=t.getAttribute("aria-controls")??"",i=this.element.querySelectorAll(n.split(" ").map(e=>`#${e}`).join(","));si({element:t,attribute:"aria-expanded"}),i.forEach(e=>{si({element:e,attribute:"hidden"})})}init(){this.expandButtons=Array.from(this.element.querySelectorAll(this.config.expandButtonSelector)),this.expandButtons.forEach(e=>{e.addEventListener("click",this.onExpandClick)}),this.element.matches(this.config.responsiveTableSelector)&&this.addARIA(),this.maybeInitScrollable()}maybeInitScrollable(){if(this.scrollableContainer=this.element.closest(this.config.scrollableContainerSelector),this.scrollableContainer)return this.resizeObserver.observe(this.element),!0}destroy(){this.expandButtons.forEach(e=>{e.removeEventListener("click",this.onExpandClick)}),this.resizeObserver.disconnect(),this.expandButtons=[]}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_Table?e.ODS_Table:null}},name:"Table",selector:"[data-table]"},{Module:qa,name:"Tabs",selector:"[data-tabs]"},{Module:Ua,name:"Toggle",selector:"[data-toggle]"},{Module:an,name:"Tooltip",selector:"[data-tooltip]"}];window.ODS=window.ODS||{modules:{},instances:{},moduleSelectorPairs:{}},window.ODS.initModulesWithin=function(e){const t={};return window.ODS.moduleSelectorPairs.forEach(n=>{const i=rn(n.name),s=Array.from(e.querySelectorAll(n.selector)),r=`ODS_${n.name}`,o=s.filter(e=>!e[r]);window&&window.ODS&&window.ODS.instances[i]&&(window.ODS.instances[i]=window.ODS.instances[i].filter(e=>{const t=document.contains(e.element);return t||e.destroy?.(),t}),window.ODS.instances[i].forEach(e=>{o.forEach((t,n)=>{t.isSameNode(e.element)&&o.splice(n,1)})})),o.length&&(Array.isArray(window.ODS.instances[i])||(window.ODS.instances[i]=[]),t[i]=o.map(e=>new n.Module(e)),window.ODS.instances[i]=[...window.ODS.instances[i],...t[i]])}),t},window.ODS.destroyModulesWithin=function(e,t=!1){const n={};return Object.keys(window.ODS.instances).forEach(i=>{window.ODS.instances[i].forEach(s=>{"object"!=typeof n[i]&&(n[i]=[]);let r=e.contains(s.element);"modal"===i?r=s.instance?._openers.every(t=>e.contains(t)):"tooltip"===i&&(r=e.contains(s.trigger)),r&&(s.destroy(),n[i].push(s)),r&&t&&["modal","tooltip"].includes(i)&&s.element.remove()}),window.ODS.instances[i]=window.ODS.instances[i].filter(e=>!n[i].includes(e))}),n},window.ODS.moduleSelectorPairs=Ga,window.addEventListener("DOMContentLoaded",()=>{Ga.forEach(e=>{window.ODS.modules[e.name]=e.Module,window.ODS.instances[rn(e.name)]=function(e,t,n={}){return Array.from(document.querySelectorAll(t)).map(t=>new e(t,n))}(e.Module,e.selector)}),window.dispatchEvent(new Event("ODSLoaded"))});var Ya,Xa={exports:{}},Ka=(Ya||(Ya=1,window,Xa.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){var i=n(1),s=n(6),r=n(7),o=n(16),a=n(18),l="prototype",c=function(e,t,n){var d,u,h,p,f=e&c.F,m=e&c.G,g=e&c.S,v=e&c.P,b=e&c.B,y=m?i:g?i[t]||(i[t]={}):(i[t]||{})[l],w=m?s:s[t]||(s[t]={}),_=w[l]||(w[l]={});for(d in m&&(n=t),n)h=((u=!f&&y&&void 0!==y[d])?y:n)[d],p=b&&u?a(h,i):v&&"function"==typeof h?a(Function.call,h):h,y&&o(y,d,h,e&c.U),w[d]!=h&&r(w,d,p),v&&_[d]!=h&&(_[d]=h)};i.core=s,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){n.r(t),n.d(t,"h",function(){return a}),n.d(t,"createElement",function(){return a}),n.d(t,"cloneElement",function(){return d}),n.d(t,"Component",function(){return I}),n.d(t,"render",function(){return N}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return s});var i=function(){},s={},r=[],o=[];function a(e,t){var n,a,l,c,d=o;for(c=arguments.length;2<c--;)r.push(arguments[c]);for(t&&null!=t.children&&(r.length||r.push(t.children),delete t.children);r.length;)if((a=r.pop())&&void 0!==a.pop)for(c=a.length;c--;)r.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof e)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&n?d[d.length-1]+=a:d===o?d=[a]:d.push(a),n=l;var u=new i;return u.nodeName=e,u.children=d,u.attributes=null==t?void 0:t,u.key=null==t?void 0:t.key,void 0!==s.vnode&&s.vnode(u),u}function l(e,t){for(var n in t)e[n]=t[n];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function d(e,t){return a(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==h.push(e)&&(s.debounceRendering||c)(f)}function f(){var e,t=h;for(h=[];e=t.pop();)e._dirty&&M(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function g(e){var t=l({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===t[i]&&(t[i]=n[i]);return t}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,i,s){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),i&&i(e);else if("class"!==t||s)if("style"===t){if(i&&"string"!=typeof i&&"string"!=typeof n||(e.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var r in n)r in i||(e.style[r]="");for(var r in i)e.style[r]="number"==typeof i[r]&&!1===u.test(r)?i[r]+"px":i[r]}}else if("dangerouslySetInnerHTML"===t)i&&(e.innerHTML=i.__html||"");else if("o"==t[0]&&"n"==t[1]){var o=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),i?n||e.addEventListener(t,y,o):e.removeEventListener(t,y,o),(e._listeners||(e._listeners={}))[t]=i}else if("list"!==t&&"type"!==t&&!s&&t in e){try{e[t]=null==i?"":i}catch(e){}null!=i&&!1!==i||"spellcheck"==t||e.removeAttribute(t)}else{var a=s&&t!==(t=t.replace(/^xlink:?/,""));null==i||!1===i?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof i&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),i):e.setAttribute(t,i))}else e.className=i||""}function y(e){return this._listeners[e.type](s.event&&s.event(e)||e)}var w=[],_=0,S=!1,E=!1;function x(){for(var e;e=w.pop();)s.afterMount&&s.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,n,i,s){var r=e,o=S;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||s)?e.nodeValue!=t&&(e.nodeValue=t):(r=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(r,e),T(e,!0))),r.__preactattr_=!0,r;var a=t.nodeName;if("function"==typeof a)return function(e,t,n,i){for(var s=e&&e._component,r=s,o=e,a=s&&e._componentConstructor===t.nodeName,l=a,c=g(t);s&&!l&&(s=s._parentComponent);)l=s.constructor===t.nodeName;return s&&l&&(!i||s._component)?(D(s,c,3,n,i),e=s.base):(r&&!a&&(P(r),e=o=null),s=O(t.nodeName,c,n),e&&!s.nextBase&&(s.nextBase=e,o=null),D(s,c,1,n,i),e=s.base,o&&e!==o&&(o._component=null,T(o,!1))),e}(e,t,n,i);if(S="svg"===a||"foreignObject"!==a&&S,a=String(a),(!e||!m(e,a))&&(r=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(a,S),e)){for(;e.firstChild;)r.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(r,e),T(e,!0)}var l=r.firstChild,c=r.__preactattr_,d=t.children;if(null==c){c=r.__preactattr_={};for(var u=r.attributes,h=u.length;h--;)c[u[h].name]=u[h].value}return!E&&d&&1===d.length&&"string"==typeof d[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=d[0]&&(l.nodeValue=d[0]):(d&&d.length||null!=l)&&function(e,t,n,i,s){var r,o,a,l,c,d,u,h,p=e.childNodes,f=[],g={},b=0,y=0,w=p.length,_=0,S=t?t.length:0;if(0!==w)for(var E=0;E<w;E++){var x=p[E],A=x.__preactattr_;null!=(k=S&&A?x._component?x._component.__key:A.key:null)?(b++,g[k]=x):(A||(void 0!==x.splitText?!s||x.nodeValue.trim():s))&&(f[_++]=x)}if(0!==S)for(E=0;E<S;E++){var k;if(c=null,null!=(k=(l=t[E]).key))b&&void 0!==g[k]&&(c=g[k],g[k]=void 0,b--);else if(y<_)for(r=y;r<_;r++)if(void 0!==f[r]&&(d=o=f[r],h=s,"string"==typeof(u=l)||"number"==typeof u?void 0!==d.splitText:"string"==typeof u.nodeName?!d._componentConstructor&&m(d,u.nodeName):h||d._componentConstructor===u.nodeName)){c=o,f[r]=void 0,r===_-1&&_--,r===y&&y++;break}c=C(c,l,n,i),a=p[E],c&&c!==e&&c!==a&&(null==a?e.appendChild(c):c===a.nextSibling?v(a):e.insertBefore(c,a))}if(b)for(var E in g)void 0!==g[E]&&T(g[E],!1);for(;y<=_;)void 0!==(c=f[_--])&&T(c,!1)}(r,d,n,i,E||null!=c.dangerouslySetInnerHTML),function(e,t,n){var i;for(i in n)t&&null!=t[i]||null==n[i]||b(e,i,n[i],n[i]=void 0,S);for(i in t)"children"===i||"innerHTML"===i||i in n&&t[i]===("value"===i||"checked"===i?e[i]:n[i])||b(e,i,n[i],n[i]=t[i],S)}(r,t.attributes,c),S=o,r}function T(e,t){var n=e._component;n?P(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||v(e),A(e))}function A(e){for(e=e.lastChild;e;){var t=e.previousSibling;T(e,!0),e=t}}var k=[];function O(e,t,n){var i,s=k.length;for(e.prototype&&e.prototype.render?(i=new e(t,n),I.call(i,t,n)):((i=new I(t,n)).constructor=e,i.render=L);s--;)if(k[s].constructor===e)return i.nextBase=k[s].nextBase,k.splice(s,1),i;return i}function L(e,t,n){return this.constructor(e,n)}function D(e,t,n,i,r){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||r?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,i)),i&&i!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=i),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===s.syncComponentUpdates&&e.base?p(e):M(e,1,r)),e.__ref&&e.__ref(e))}function M(e,t,n,i){if(!e._disable){var r,o,a,c=e.props,d=e.state,u=e.context,h=e.prevProps||c,p=e.prevState||d,f=e.prevContext||u,m=e.base,v=e.nextBase,b=m||v,y=e._component,A=!1,k=f;if(e.constructor.getDerivedStateFromProps&&(d=l(l({},d),e.constructor.getDerivedStateFromProps(c,d)),e.state=d),m&&(e.props=h,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,d,u)?A=!0:e.componentWillUpdate&&e.componentWillUpdate(c,d,u),e.props=c,e.state=d,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!A){r=e.render(c,d,u),e.getChildContext&&(u=l(l({},u),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(k=e.getSnapshotBeforeUpdate(h,p));var L,I,N=r&&r.nodeName;if("function"==typeof N){var R=g(r);(o=y)&&o.constructor===N&&R.key==o.__key?D(o,R,1,u,!1):(L=o,e._component=o=O(N,R,u),o.nextBase=o.nextBase||v,o._parentComponent=e,D(o,R,0,u,!1),M(o,1,n,!0)),I=o.base}else a=b,(L=y)&&(a=e._component=null),(b||1===t)&&(a&&(a._component=null),I=function(e,t,n,i,s,r){_++||(S=null!=s&&void 0!==s.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var o=C(e,t,n,i,r);return s&&o.parentNode!==s&&s.appendChild(o),--_||(E=!1),o}(a,r,u,n||!m,b&&b.parentNode,!0));if(b&&I!==b&&o!==y){var z=b.parentNode;z&&I!==z&&(z.replaceChild(I,b),L||(b._component=null,T(b,!1)))}if(L&&P(L),(e.base=I)&&!i){for(var B=e,F=e;F=F._parentComponent;)(B=F).base=I;I._component=B,I._componentConstructor=B.constructor}}for(!m||n?w.unshift(e):A||(e.componentDidUpdate&&e.componentDidUpdate(h,p,k),s.afterUpdate&&s.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);_||i||x()}}function P(e){s.beforeUnmount&&s.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?P(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),v(e.nextBase=t),k.push(e),A(t)),e.__ref&&e.__ref(null)}function I(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function N(e,t,n){return function(e,t,n,i,s,r){_++||(S=null!=s&&void 0!==s.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var o=C(e,t,n,i,r);return s&&o.parentNode!==s&&s.appendChild(o),--_||(E=!1,x()),o}(n,e,{},!1,t,!1)}l(I.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),p(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),M(this,2)},render:function(){}});var R={h:a,createElement:a,cloneElement:d,Component:I,render:N,rerender:f,options:s};t.default=R},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(8),s=n(40);e.exports=n(3)?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(9),s=n(38),r=n(39),o=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),s)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(2);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(4);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(41)})},function(e,t,n){var i=n(2),s=n(1).document,r=i(s)&&i(s.createElement);e.exports=function(e){return r?s.createElement(e):{}}},function(e,t,n){var i=n(1),s=n(7),r=n(17),o=n(10)("src"),a="toString",l=Function[a],c=(""+l).split(a);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(r(n,"name")||s(n,"name",t)),e[t]!==n&&(l&&(r(n,o)||s(n,o,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:s(e,t,n):(delete e[t],s(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[o]||l.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,s){return e.call(t,n,i,s)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(42),s=n(28);e.exports=Object.keys||function(e){return i(e,s)}},function(e,t,n){var i=n(11),s=n(12);e.exports=function(e){return i(s(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(21),s=n(24),r=n(43);e.exports=function(e){return function(t,n,o){var a,l=i(t),c=s(l.length),d=r(o,c);if(e&&n!=n){for(;d<c;)if((a=l[d++])!=a)return!0}else for(;d<c;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}}},function(e,t,n){var i=n(25),s=Math.min;e.exports=function(e){return 0<e?s(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t,n){var i=n(27)("keys"),s=n(10);e.exports=function(e){return i[e]||(i[e]=s(e))}},function(e,t,n){var i=n(6),s=n(1),r="__core-js_shared__",o=s[r]||(s[r]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(8).f,s=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in s||n(3)&&i(s,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,n){var i=n(0),s=n(32)(1);i(i.P+i.F*!n(13)([].map,!0),"Array",{map:function(e){return s(this,e,arguments[1])}})},function(e,t,n){var i=n(18),s=n(11),r=n(29),o=n(24),a=n(47);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,d=4==e,u=6==e,h=5==e||u,p=t||a;return function(t,a,f){for(var m,g,v=r(t),b=s(v),y=i(a,f,3),w=o(b.length),_=0,S=n?p(t,w):l?p(t,0):void 0;_<w;_++)if((h||_ in b)&&(g=y(m=b[_],_,v),e))if(n)S[_]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return _;case 2:S.push(m)}else if(d)return!1;return u?-1:c||d?d:S}}},function(e,t,n){var i=n(22);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(27)("wks"),s=n(10),r=n(1).Symbol,o="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=o&&r[e]||(o?r:s)("Symbol."+e))}).store=i},function(e,t,n){var i=n(0),s=n(23)(!1),r=[].indexOf,o=!!r&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(o||!n(13)(r)),"Array",{indexOf:function(e){return o?r.apply(this,arguments)||0:s(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Object",{create:n(52)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var i=n(5),s=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function r(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=o(e.source)),(0,i.render)((0,i.createElement)(s.default,e),e.element)}var o=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};r.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,function(t){return t.value||e.preserveNullOptions});e.source=t.map(function(e){return e.textContent||e.innerText})}if(e.onConfirm=e.onConfirm||function(t){var n=[].filter.call(e.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];n&&(n.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var n=e.selectElement.options.selectedIndex,i=0<=n?e.selectElement.options[n]:null;e.defaultValue=i?i.textContent||i.innerText:""}if(void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0),void 0===e.autocomplete){var s=e.selectElement.getAttribute("autocomplete");null!==s&&(e.autocomplete=s)}var o=document.createElement("div");e.selectElement.parentNode.insertBefore(o,e.selectElement),r(Object.assign({},e,{element:o})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var a=r;t.default=a},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(2);e.exports=function(e,t){if(!i(e))return e;var n,s;if(t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;if("function"==typeof(n=e.valueOf)&&!i(s=n.call(e)))return s;if(!t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(20),s=n(45),r=n(46),o=n(29),a=n(11),l=Object.assign;e.exports=!l||n(4)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){for(var n=o(e),l=arguments.length,c=1,d=s.f,u=r.f;c<l;)for(var h,p=a(arguments[c++]),f=d?i(p).concat(d(p)):i(p),m=f.length,g=0;g<m;)u.call(p,h=f[g++])&&(n[h]=p[h]);return n}:l},function(e,t,n){var i=n(17),s=n(21),r=n(23)(!1),o=n(26)("IE_PROTO");e.exports=function(e,t){var n,a=s(e),l=0,c=[];for(n in a)n!=o&&i(a,n)&&c.push(n);for(;t.length>l;)i(a,n=t[l++])&&(~r(c,n)||c.push(n));return c}},function(e,t,n){var i=n(25),s=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?s(e+t,0):r(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(48);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(2),s=n(33),r=n(34)("species");e.exports=function(e){var t;return s(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!s(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(0),s=n(32)(2);i(i.P+i.F*!n(13)([].filter,!0),"Array",{filter:function(e){return s(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Array",{isArray:n(33)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(36),n(30),n(31),n(35),n(55),n(58);var i=n(5),s=o(n(60)),r=o(n(61));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function d(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var u=function(e){function t(t){var n;return(n=e.call(this,t)||this).elementReferences={},n.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0,searchOnInteraction:!0},n.handleComponentBlur=n.handleComponentBlur.bind(l(l(n))),n.handleKeyDown=n.handleKeyDown.bind(l(l(n))),n.handleUpArrow=n.handleUpArrow.bind(l(l(n))),n.handleDownArrow=n.handleDownArrow.bind(l(l(n))),n.handleEnter=n.handleEnter.bind(l(l(n))),n.handlePrintableKey=n.handlePrintableKey.bind(l(l(n))),n.handleListMouseLeave=n.handleListMouseLeave.bind(l(l(n))),n.handleOptionBlur=n.handleOptionBlur.bind(l(l(n))),n.handleOptionClick=n.handleOptionClick.bind(l(l(n))),n.handleOptionFocus=n.handleOptionFocus.bind(l(l(n))),n.handleOptionMouseDown=n.handleOptionMouseDown.bind(l(l(n))),n.handleOptionMouseEnter=n.handleOptionMouseEnter.bind(l(l(n))),n.handleInputBlur=n.handleInputBlur.bind(l(l(n))),n.handleInputChange=n.handleInputChange.bind(l(l(n))),n.handleInputFocus=n.handleInputFocus.bind(l(l(n))),n.pollInputElement=n.pollInputElement.bind(l(l(n))),n.getDirectInputChanges=n.getDirectInputChanges.bind(l(l(n))),n}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.isQueryAnOption=function(e,t){var n=this;return-1!==t.map(function(e){return n.templateInputValue(e).toLowerCase()}).indexOf(e.toLowerCase())},n.componentDidMount=function(){this.pollInputElement()},n.componentWillUnmount=function(){clearTimeout(this.$pollInput)},n.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},n.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},n.componentDidUpdate=function(e,t){var n=this.state.focused,i=null===n,s=t.focused!==n;s&&!i&&this.elementReferences[n].focus();var r=-1===n,o=s&&null===t.focused;if(r&&o){var a=this.elementReferences[n];a.setSelectionRange(0,a.value.length)}},n.hasAutoselect=function(){return this.props.autoselect},n.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},n.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},n.handleComponentBlur=function(e){var t,n=this.state,i=n.options,s=n.query,r=n.selected;this.props.confirmOnBlur?(t=e.query||s,this.props.onConfirm(i[r])):t=s,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,i)})},n.handleListMouseLeave=function(e){this.setState({hovered:null})},n.handleOptionBlur=function(e,t){var n=this.state,i=n.focused,s=n.menuOpen,r=n.options,o=n.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=i!==t&&-1!==i;if(!c&&a||!c&&!l){var u=s&&d()&&!this.hasAutoselect();this.handleComponentBlur({menuOpen:u,query:this.templateInputValue(r[o])})}},n.handleInputBlur=function(e){var t=this.state,n=t.focused,i=t.menuOpen,s=t.options,r=t.query,o=t.selected,a=0<=n;if(d()&&!e.relatedTarget&&!a&&this.hasAutoselect()){var l=this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:!1,query:l})}else if(!a){var c=i&&d(),u=d()?r:this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:c,query:u})}},n.handleInputChange=function(e){var t=this,n=this.props,i=n.minLength,s=n.source,r=n.showAllValues,o=this.state.searchOnInteraction,a=this.hasAutoselect(),l=e.target.value,c=0===l.length,d=o||this.state.query.length!==l.length,u=l.length>=i;this.setState({query:l,ariaHint:c,searchOnInteraction:!0}),r||!c&&d&&u?s(l,function(e){var n=0<e.length;t.setState(function(t){return{menuOpen:n&&null!==t.focused,options:e,selected:a&&n?0:-1,validChoiceMade:!1}})}):!c&&u||this.setState({menuOpen:!1,options:[]})},n.handleInputClick=function(e){this.handleInputChange(e)},n.handleInputFocus=function(e){var t=this.state,n=t.query,i=t.validChoiceMade,s=t.options,r=this.props.minLength,o=!i&&n.length>=r&&0<s.length;o?this.setState(function(e){var t=e.menuOpen;return{focused:-1,menuOpen:o||t,selected:-1}}):this.setState({focused:-1}),e&&this.handleInputChange(e)},n.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e,searchOnInteraction:-1!==e})},n.handleOptionMouseEnter=function(e,t){d()||this.setState({hovered:t})},n.handleOptionClick=function(e,t){var n=this.state.options[t],i=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,hovered:null,menuOpen:!1,query:i,selected:-1,validChoiceMade:!0}),this.forceUpdate()},n.handleOptionMouseDown=function(e){e.preventDefault()},n.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,i=t.selected;-1!==i&&n&&this.handleOptionFocus(i-1)},n.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,i=n.menuOpen,s=n.options,r=n.selected;r!==s.length-1&&i&&this.handleOptionFocus(r+1)}},n.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},n.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},n.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},n.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},n.render=function(){var e,t=this,n=this.props,r=n.cssNamespace,o=n.customInputClassName,l=n.wrapperClassName,c=n.optionClassName,u=n.menuClassName,h=n.displayMenu,p=n.enterKeyHint,f=n.autocomplete,m=n.id,g=n.minLength,v=n.name,b=n.placeholder,y=n.required,w=n.showAllValues,_=n.tNoResults,S=n.tStatusQueryTooShort,E=n.tStatusNoResults,x=n.tStatusSelectedOption,C=n.tStatusResults,T=n.tAssistiveHint,A=n.dropdownArrow,k=this.state,O=k.focused,L=k.hovered,D=k.menuOpen,M=k.options,P=k.query,I=k.selected,N=k.ariaHint,R=k.validChoiceMade,z=this.hasAutoselect(),B=-1===O,F=0===M.length,H=0!==P.length,$=P.length>=g,V=this.props.showNoOptionsFound&&B&&F&&H&&$,j=r+"__wrapper"+(l?" "+l:""),q=r+"__input",W=null!==O?" "+q+"--focused":"",U=this.props.showAllValues?" "+q+"--show-all-values":" "+q+"--default",G=r+"__dropdown-arrow-down",Y=-1!==O&&null!==O,X=r+"__menu",K=X+"--"+h,J=X+"--"+(D||V?"visible":"hidden"),Q=r+"__option",Z=r+"__hint",ee=this.templateInputValue(M[I]),te=ee&&0===ee.toLowerCase().indexOf(P.toLowerCase())&&z?P+ee.substr(P.length):"",ne=m+"__assistiveHint",ie=N?{"aria-describedby":ne}:null;return w&&"string"==typeof(e=A({className:G}))&&(e=(0,i.createElement)("div",{className:r+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,i.createElement)("div",{className:j,onKeyDown:this.handleKeyDown},(0,i.createElement)(s.default,{id:m,length:M.length,queryLength:P.length,minQueryLength:g,selectedOption:this.templateInputValue(M[I]),selectedOptionIndex:I,validChoiceMade:R,isInFocus:null!==this.state.focused,tQueryTooShort:S,tNoResults:E,tSelectedOption:x,tResults:C}),te&&(0,i.createElement)("span",null,(0,i.createElement)("input",{className:Z,readonly:!0,tabIndex:"-1",value:te})),(0,i.createElement)("input",a({enterkeyhint:p||(d()&&this.hasAutoselect()?"done":""),"aria-expanded":D?"true":"false","aria-activedescendant":!!Y&&m+"__option--"+O,"aria-owns":m+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},ie,{autoComplete:f,className:""+q+W+U+(o?" "+o:""),id:m,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:v,placeholder:b,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:y,value:P})),e,(0,i.createElement)("ul",{className:X+" "+K+" "+J+(u?" "+u:""),onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:m+"__listbox",role:"listbox"},M.map(function(e,n){var s=(-1===O?I===n:O===n)&&null===L?" "+Q+"--focused":"",r=n%2?" "+Q+"--odd":"",o=d()?"<span id="+m+"__option-suffix--"+n+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(n+1)+" of "+M.length+"</span>":"";return(0,i.createElement)("li",{"aria-selected":O===n?"true":"false",className:""+Q+s+r+(c?" "+c:""),dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+o},id:m+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1","aria-posinset":n+1,"aria-setsize":M.length})}),V&&(0,i.createElement)("li",{className:Q+(c?" "+c:"")+" "+Q+"--no-results"},_())),(0,i.createElement)("span",{id:ne,style:{display:"none"}},T()))},t}(i.Component);(t.default=u).defaultProps={autoselect:!1,cssNamespace:"autocomplete",wrapperClassName:"",customInputClassName:"",menuClassName:"",optionClassName:"",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",autocomplete:"off",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:r.default}},function(e,t,n){var i=n(9),s=n(53),r=n(28),o=n(26)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n(15)("iframe"),i=r.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;i--;)delete c[l][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[o]=e):n=c(),void 0===t?n:s(n,t)}},function(e,t,n){var i=n(8),s=n(9),r=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){s(e);for(var n,o=r(t),a=o.length,l=0;l<a;)i.f(e,n=o[l++],t[n]);return e}},function(e,t,n){var i=n(1).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(0);i(i.P,"Function",{bind:n(56)})},function(e,t,n){var i=n(19),s=n(2),r=n(57),o=[].slice,a={};e.exports=Function.bind||function(e){var t=i(this),n=o.call(arguments,1),l=function(){var i=n.concat(o.call(arguments));return this instanceof l?function(e,t,n){if(!(t in a)){for(var i=[],s=0;s<t;s++)i[s]="a["+s+"]";a[t]=Function("F,a","return new F("+i.join(",")+")")}return a[t](e,n)}(t,i.length,i):r(t,i,e)};return s(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(e,t,n){return[function(n){var i=e(this),s=null==n?void 0:n[t];return void 0!==s?s.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){var i=n(7),s=n(16),r=n(4),o=n(12),a=n(34);e.exports=function(e,t,n){var l=a(e),c=n(o,l,""[e]),d=c[0],u=c[1];r(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(s(String.prototype,e,d),i(RegExp.prototype,l,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){t.__esModule=!0,t.default=void 0,n(36);var i=n(5),s=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).state={bump:!1,debounced:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this;this.debounceStatusUpdate=function(e,t){var n;return function(){var i=this,s=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,s)},t)}}(function(){if(!e.state.debounced){var t=!e.props.isInFocus||e.props.validChoiceMade;e.setState(function(e){return{bump:!e.bump,debounced:!0,silenced:t}})}},1400)},n.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},n.render=function(){var e,t=this.props,n=t.id,s=t.length,r=t.queryLength,o=t.minQueryLength,a=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,d=t.tNoResults,u=t.tSelectedOption,h=t.tResults,p=this.state,f=p.bump,m=p.debounced,g=p.silenced,v=r<o,b=0===s,y=a?u(a,s,l):"";return e=v?c(o):b?d():h(s,y),this.debounceStatusUpdate(),(0,i.createElement)("div",{style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(0,i.createElement)("div",{id:n+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!g&&m&&f?e:""),(0,i.createElement)("div",{id:n+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},g||!m||f?"":e))},t}(i.Component);(t.default=s).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,n){return e+" "+(n+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){t.__esModule=!0,t.default=void 0;var i=n(5);t.default=function(e){var t=e.className;return(0,i.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,i.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,i.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default),Xa.exports),Ja=e({__proto__:null,default:Zt(Ka)},[Ka]);export{Ga as moduleSelectorPairs};
|
|
1
|
+
function e(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}const t="countdown",n=`${t}__value`,i="is-flipping",s="data-countdown-unit",r=`.${t}__announcement`,o=`.${t}__unit`,a=`.${t}__label`,l=`[${s}]`,c=[`.${t}__top .${n}`,`.${t}__leaf-front .${n}`,`.${t}__leaf-back .${n}`,`.${t}__bottom .${n}`].join(", "),d=["days","hours","minutes","seconds"],u={days:864e5,hours:36e5,minutes:6e4,seconds:1e3},h=e=>e?.length?d.filter(t=>e.includes(t)):[...d],p=(e,t)=>"string"==typeof e&&e.trim()?{many:e,few:e,one:e}:e&&"object"==typeof e&&"string"==typeof e.many&&"string"==typeof e.few&&"string"==typeof e.one?e:t,f=(e,t)=>{const n=(e=>{const t=new Date(e).getTime();return Number.isNaN(t)?0:t})(e);let i=Math.max(0,n-Date.now());const s={days:0,hours:0,minutes:0,seconds:0};return t.forEach(e=>{const t=Math.floor(i/u[e]);s[e]=t,i-=t*u[e]}),s};class m{element;config;liveRegion;timerId;observer;instanceKey;defaultConfig;configOverrides;constructor(e,t,n){this.element=e,this.defaultConfig=n.defaultConfig,this.instanceKey=n.instanceKey,this.configOverrides={...t??{}},this.config={...n.defaultConfig,...t??{}},this.liveRegion=null,this.tick=this.tick.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.element[this.instanceKey]=this}readDataConfig(){const e=this.element.getAttribute("data-countdown-config");if(!e)return{};try{return JSON.parse(e)}catch(e){return{}}}getLiveRegion(){return this.element.querySelector(r)}scheduleNextTick(){this.stop();const e=1e3-Date.now()%1e3||1e3;this.timerId=window.setTimeout(this.tick,e)}tick(){this.render(),this.scheduleNextTick()}setupObserver(){"undefined"!=typeof IntersectionObserver?(this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.start():this.stop()})}),this.observer.observe(this.element)):this.start()}init(){const e=this.readDataConfig();this.config={...this.defaultConfig,...e,...this.configOverrides},this.liveRegion=this.getLiveRegion(),this.collectElements(),this.render(),this.setupObserver()}start(){this.render(),this.scheduleNextTick()}stop(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)}update(e){this.stop(),this.observer?.disconnect(),this.destroyElements(),this.configOverrides={...this.configOverrides,...e??{}},this.init()}destroy(){this.stop(),this.observer?.disconnect(),this.destroyElements(),this.element[this.instanceKey]=null}}const g={many:"d",few:"d",one:"d"},v={days:g,hours:"h",minutes:"m",seconds:"s"},b={targetDate:"",units:["days","hours","minutes","seconds"],labels:v},y=(e,t)=>"days"===e?p(t.days,g).many:t[e],w={TAB:["Tab"],ESC:["Esc","Escape"],ARROWLEFT:["Left","ArrowLeft"],ARROWUP:["Up","ArrowUp"],ARROWRIGHT:["Right","ArrowRight"],ARROWDOWN:["Down","ArrowDown"]};class _{constructor(e,t={direction:"horizontal"}){this.elems=e,this.config=t,this.isActive=!1,this.onKeydown=this.onKeydown.bind(this)}init(){document.addEventListener("keydown",this.onKeydown),this.isActive=!0}destroy(){document.removeEventListener("keydown",this.onKeydown),this.isActive=!1}update(e){this.elems=e}onKeydown(e){const t=this.elems.indexOf(document.activeElement);(w.ARROWUP.includes(e.key)||w.ARROWDOWN.includes(e.key))&&"horizontal"===this.config.direction||(w.ARROWLEFT.includes(e.key)||w.ARROWRIGHT.includes(e.key))&&"vertical"===this.config.direction||((w.ARROWDOWN.includes(e.key)||w.ARROWRIGHT.includes(e.key))&&(e.preventDefault(),t>=0&&t<this.elems.length-1?this.elems[t+1].focus():this.elems[0].focus()),(w.ARROWUP.includes(e.key)||w.ARROWLEFT.includes(e.key))&&(e.preventDefault(),t>=1?this.elems[t-1].focus():this.elems[this.elems.length-1].focus()),w.TAB.includes(e.key)&&this.destroy())}}const S={buttonSelector:"[data-accordion-toggle]"};class E{static MODAL_OPEN_BODY_CLASS="has-modal";static STICKY_FLOAT_TOLERANCE=3;static SCROLLSPY_CENTER_BUFFER=50;static TOP_SECTION_THRESHOLD=100;static DRAG_START_THRESHOLD=6;static SCROLL_END_DEBOUNCE_MS=150;static SCROLL_EDGE_TOLERANCE=1;static SCROLL_ALIGNMENT_TOLERANCE=1;static MAX_SCROLL_CORRECTIONS=2;element;contentLeftElement;megamenuElement;resizeObserver;supportsScrollEnd;anchorClickHandler;scrollHandler;scrollSpyHandler;scrollEndHandler;scrollEndFallbackHandler;resizeHandler;mouseDownHandler;dragStartHandler;dragMoveHandler;dragEndHandler;horizontalScrollHandler;nativeDragStartHandler;isAutoScrolling=!1;isPointerDown=!1;isDraggingNav=!1;suppressClick=!1;dragStartX=0;dragStartScrollLeft=0;scrollTimeout=null;scrollEndFallbackTimeout=null;navLinks=null;sections=[];currentPath;lastActiveIndex=0;autoScrollTargetId=null;autoScrollCorrectionCount=0;lastStickyOffset=0;modalClassObserver=null;modalStateHandler;isForcedFixed=!1;wasStickyFloating=!1;forcedFixedTop=0;forcedFixedLeft=0;fixedFlowPlaceholder=null;originalInlineStyles=null;constructor(e){return this.element=e,this.contentLeftElement=null,this.megamenuElement=null,this.resizeObserver=null,this.supportsScrollEnd="onscrollend"in window,this.isAutoScrolling=!1,this.currentPath=window.location.pathname,this.anchorClickHandler=this.handleAnchorClick.bind(this),this.scrollHandler=this.updateStickyPosition.bind(this),this.scrollSpyHandler=this.handleScrollSpy.bind(this),this.scrollEndHandler=this.handleScrollEnd.bind(this),this.scrollEndFallbackHandler=this.handleScrollEndFallback.bind(this),this.resizeHandler=this.handleResize.bind(this),this.mouseDownHandler=this.handleMouseDown.bind(this),this.dragStartHandler=this.handleDragStart.bind(this),this.dragMoveHandler=this.handleDragMove.bind(this),this.dragEndHandler=this.handleDragEnd.bind(this),this.horizontalScrollHandler=this.updateHorizontalOverflowState.bind(this),this.nativeDragStartHandler=this.handleNativeDragStart.bind(this),this.modalStateHandler=this.handleModalStateChange.bind(this),this.element.ODS_AnchorNavigation=this,this.init(),this}static getInstance(e){return e&&e.ODS_AnchorNavigation?e.ODS_AnchorNavigation:null}findMegamenuElement(){return document.querySelector("[data-megamenu]")}getMegamenuOffsetHeight(){return this.megamenuElement?.offsetHeight||0}updateStickyPosition(){if(this.isForcedFixed)return;if(!this.megamenuElement)return;const e=this.getMegamenuOffsetHeight(),t=e!==this.lastStickyOffset;if(this.lastStickyOffset=e,this.element.style.top=`${e}px`,this.updateStickyFloatingState(),!t||!this.isAutoScrolling||!this.autoScrollTargetId||this.autoScrollCorrectionCount>=E.MAX_SCROLL_CORRECTIONS)return;const n=document.getElementById(this.autoScrollTargetId);n&&(this.autoScrollCorrectionCount+=1,this.scrollToSection(n,"smooth"))}setupMegamenuObserver(){if(this.megamenuElement=this.findMegamenuElement(),!this.megamenuElement)return this.lastStickyOffset=0,void(this.element.style.top="0px");this.updateStickyPosition(),window.addEventListener("scroll",this.scrollHandler,{passive:!0}),this.resizeObserver=new ResizeObserver(this.updateStickyPosition.bind(this)),this.resizeObserver.observe(this.megamenuElement)}setupScrollSpy(){document.documentElement.style.setProperty("--extra-scroll-margin",this.element.offsetHeight+"px"),this.navLinks=this.element.querySelectorAll(".anchor-navigation__item"),this.sections=Array.from(this.navLinks||[]).map(e=>e.getAttribute("href")).filter(e=>e?.includes("#")).map(e=>document.getElementById(e.split("#")[1])).filter(Boolean),this.teardownScrollSpyListeners(),this.element.addEventListener("click",this.anchorClickHandler),this.element.addEventListener("mousedown",this.mouseDownHandler),window.addEventListener("scroll",this.scrollSpyHandler,{passive:!0}),this.supportsScrollEnd?window.addEventListener("scrollend",this.scrollEndHandler):window.addEventListener("scroll",this.scrollEndFallbackHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler),this.initScrollSpy(),this.alignInitialHashIfNeeded()}teardownScrollSpyListeners(){this.element.removeEventListener("click",this.anchorClickHandler),this.element.removeEventListener("mousedown",this.mouseDownHandler),window.removeEventListener("scroll",this.scrollSpyHandler),window.removeEventListener("resize",this.resizeHandler),this.supportsScrollEnd?window.removeEventListener("scrollend",this.scrollEndHandler):window.removeEventListener("scroll",this.scrollEndFallbackHandler),this.scrollEndFallbackTimeout&&(clearTimeout(this.scrollEndFallbackTimeout),this.scrollEndFallbackTimeout=null)}handleMouseDown(e){if(0!==e.button)return;const t=e.target;t&&this.element.contains(t)&&(t.closest("a, button, input, select, textarea, label, [role='button'], [contenteditable='true']")||e.preventDefault())}handleAnchorClick(e){if(this.suppressClick)return e.preventDefault(),e.stopPropagation(),void(this.suppressClick=!1);const t=e.target,n=t?.closest(".anchor-navigation__item");if(!n||!this.element.contains(n))return;e.preventDefault();const i=n.getAttribute("href");if(!i||!i.includes("#"))return;const s=i.split("#")[1],r=document.getElementById(s);if(!r)return;this.startAutoScroll(s),n.blur(),this.scrollToSection(r,"smooth");const o=`${window.location.pathname}${window.location.search}#${s}`;window.history.pushState(null,"",o),this.initScrollSpy(s)}getHashSectionId(){const e=window.location.hash;if(!e||e.length<=1)return null;let t=e.slice(1);try{t=decodeURIComponent(t)}catch{}return t||null}startAutoScroll(e){this.isAutoScrolling=!0,this.autoScrollTargetId=e,this.autoScrollCorrectionCount=0}resetAutoScrollState(){this.isAutoScrolling=!1,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0}tryCorrectAutoScrollAlignment(){if(!this.autoScrollTargetId)return!0;const e=document.getElementById(this.autoScrollTargetId);if(!e)return!0;const t=this.getTargetTop(e);if(Math.abs(window.scrollY-t)<=E.SCROLL_ALIGNMENT_TOLERANCE)return!0;if(this.autoScrollCorrectionCount>=E.MAX_SCROLL_CORRECTIONS)return!0;this.autoScrollCorrectionCount+=1;const n=1===this.autoScrollCorrectionCount?"smooth":"auto";return this.scrollToSection(e,n),!1}getTotalStickyOffset(){return(this.megamenuElement?this.megamenuElement.offsetHeight:0)+this.element.offsetHeight}getConfiguredScrollPaddingTop(){const e=window.getComputedStyle(document.documentElement).scrollPaddingTop,t=Number.parseFloat(e);return Number.isFinite(t)&&t>0?t:0}getEffectiveScrollOffset(){const e=this.getConfiguredScrollPaddingTop();return e>0?e:this.getTotalStickyOffset()}getTargetTop(e){const t=e.getBoundingClientRect().top+window.scrollY-this.getEffectiveScrollOffset();return Math.max(0,t)}scrollToSection(e,t){window.scrollTo({top:this.getTargetTop(e),behavior:t})}alignInitialHashIfNeeded(){const e=this.getHashSectionId();if(!e)return;const t=document.getElementById(e);t&&(this.startAutoScroll(e),requestAnimationFrame(()=>{this.scrollToSection(t,"auto"),requestAnimationFrame(()=>{this.handleScrollEnd()})}))}initScrollSpy(e=null){if(!this.navLinks||!this.sections.length)return;let t,n=-1;if(this.navLinks.forEach(e=>e.classList.remove("is-active")),e)t=document.getElementById(e)||void 0,t&&(n=this.sections.findIndex(t=>t.id===e));else{const e=this.getEffectiveScrollOffset(),i=window.scrollY+e+E.SCROLLSPY_CENTER_BUFFER;for(let e=0;e<this.sections.length;e++){const s=this.sections[e],{top:r,height:o}=s.getBoundingClientRect(),a=r+window.scrollY;if(i>=a&&i<a+o){t=s,n=e;break}}}if(t||(window.scrollY<=E.TOP_SECTION_THRESHOLD?(n=0,t=this.sections[0]):(n=this.lastActiveIndex,t=this.sections[n])),n>=0&&(this.lastActiveIndex=n),t){const n=t.getAttribute("id");let i=this.element.querySelector(`.anchor-navigation__item[href="#${n}"]`);if(i||(i=this.element.querySelector(`.anchor-navigation__item[href="${this.currentPath}#${n}"]`)),i||(i=Array.from(this.navLinks).find(e=>{const t=e.getAttribute("href");return t&&t.endsWith(`#${n}`)})),i){i.classList.add("is-active");const t=this.element.querySelector(".anchor-navigation__content-left");t&&this.scrollActiveLinkIntoView(t,i,Boolean(e))}}}scrollActiveLinkIntoView(e,t,n=!1){const i=Math.max(0,e.scrollWidth-e.clientWidth),s=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=r.left-s.left+e.scrollLeft+r.width/2-e.clientWidth/2,a=window.innerWidth<768?"auto":"smooth",l=Math.min(i,Math.max(0,o)),c=Math.abs(e.scrollLeft-l)<=E.SCROLL_ALIGNMENT_TOLERANCE;!n&&c||("function"!=typeof e.scrollTo?e.scrollLeft=l:e.scrollTo({left:l,behavior:a}))}setupDragScroll(){this.teardownDragScroll(),this.contentLeftElement=this.element.querySelector(".anchor-navigation__content-left"),this.contentLeftElement&&(this.contentLeftElement.addEventListener("mousedown",this.dragStartHandler),this.contentLeftElement.addEventListener("dragstart",this.nativeDragStartHandler),this.contentLeftElement.addEventListener("scroll",this.horizontalScrollHandler,{passive:!0}),this.updateDragState(),this.updateHorizontalOverflowState())}teardownDragScroll(){this.contentLeftElement&&(this.contentLeftElement.removeEventListener("mousedown",this.dragStartHandler),this.contentLeftElement.removeEventListener("dragstart",this.nativeDragStartHandler),this.contentLeftElement.removeEventListener("scroll",this.horizontalScrollHandler),this.contentLeftElement.classList.remove("is-draggable","is-dragging")),window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler),this.contentLeftElement=null,this.isPointerDown=!1,this.isDraggingNav=!1,this.suppressClick=!1,this.dragStartX=0,this.dragStartScrollLeft=0}updateDragState(){if(!this.contentLeftElement)return;const e="function"==typeof window.matchMedia?window.matchMedia("(pointer: fine)"):null,t=!e||e.matches,n=this.contentLeftElement.scrollWidth>this.contentLeftElement.clientWidth,i=t&&n;this.contentLeftElement.classList.toggle("is-draggable",i),i||(this.contentLeftElement.classList.remove("is-dragging"),this.isPointerDown=!1,this.isDraggingNav=!1,this.suppressClick=!1,window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler)),this.updateHorizontalOverflowState()}updateHorizontalOverflowState(){if(!this.contentLeftElement)return;const e=this.element.querySelector(".anchor-navigation__content");if(!e)return;const t=this.contentLeftElement.scrollWidth-this.contentLeftElement.clientWidth,n=t>E.SCROLL_EDGE_TOLERANCE,i=this.contentLeftElement.scrollLeft<=E.SCROLL_EDGE_TOLERANCE,s=this.contentLeftElement.scrollLeft>=t-E.SCROLL_EDGE_TOLERANCE;e.classList.toggle("has-left-overflow",n&&!i),e.classList.toggle("has-right-overflow",n&&!s)}handleDragStart(e){0===e.button&&this.contentLeftElement&&this.contentLeftElement.classList.contains("is-draggable")&&(this.isPointerDown=!0,this.isDraggingNav=!1,this.suppressClick=!1,this.dragStartX=e.clientX,this.dragStartScrollLeft=this.contentLeftElement.scrollLeft,window.addEventListener("mousemove",this.dragMoveHandler),window.addEventListener("mouseup",this.dragEndHandler))}handleDragMove(e){if(!this.isPointerDown||!this.contentLeftElement)return;const t=e.clientX-this.dragStartX;!this.isDraggingNav&&Math.abs(t)>=E.DRAG_START_THRESHOLD&&(this.isDraggingNav=!0,this.suppressClick=!0,this.contentLeftElement.classList.add("is-dragging")),this.isDraggingNav&&(e.preventDefault(),this.contentLeftElement.scrollLeft=this.dragStartScrollLeft-t)}handleDragEnd(){if(!this.isPointerDown)return;this.isPointerDown=!1,window.removeEventListener("mousemove",this.dragMoveHandler),window.removeEventListener("mouseup",this.dragEndHandler),this.contentLeftElement&&this.contentLeftElement.classList.remove("is-dragging");const e=this.isDraggingNav;this.isDraggingNav=!1,e&&window.setTimeout(()=>{this.suppressClick=!1},0)}handleNativeDragStart(e){this.contentLeftElement?.classList.contains("is-draggable")&&e.preventDefault()}handleScrollEndFallback(){this.scrollEndFallbackTimeout&&clearTimeout(this.scrollEndFallbackTimeout),this.scrollEndFallbackTimeout=setTimeout(()=>{this.handleScrollEnd()},E.SCROLL_END_DEBOUNCE_MS)}handleResize(){if(this.isForcedFixed){const e=this.element.parentElement?.getBoundingClientRect(),t=this.getMegamenuOffsetHeight();e&&(this.forcedFixedLeft=Math.round(e.left),this.element.style.width=`${Math.round(e.width)}px`),t>0&&(this.forcedFixedTop=t),this.element.style.top=`${this.forcedFixedTop}px`,this.element.style.left=`${this.forcedFixedLeft}px`,this.fixedFlowPlaceholder&&(this.fixedFlowPlaceholder.style.height=`${this.element.offsetHeight}px`)}else this.updateStickyFloatingState();this.initScrollSpy(),this.updateDragState(),this.updateHorizontalOverflowState()}isAnyModalOpen(){return document.body.classList.contains(E.MODAL_OPEN_BODY_CLASS)}isCurrentlyStickyFloating(){if(!this.megamenuElement)return!1;const e=this.getMegamenuOffsetHeight();return this.element.getBoundingClientRect().top<=e+E.STICKY_FLOAT_TOLERANCE}updateStickyFloatingState(){this.isAnyModalOpen()||this.isForcedFixed||(this.wasStickyFloating=this.isCurrentlyStickyFloating())}ensureFixedFlowPlaceholder(){this.fixedFlowPlaceholder||(this.fixedFlowPlaceholder=document.createElement("div"),this.fixedFlowPlaceholder.setAttribute("aria-hidden","true"),this.fixedFlowPlaceholder.style.width="100%",this.fixedFlowPlaceholder.style.pointerEvents="none",this.fixedFlowPlaceholder.style.visibility="hidden",this.element.insertAdjacentElement("afterend",this.fixedFlowPlaceholder)),this.fixedFlowPlaceholder.style.height=`${this.element.offsetHeight}px`}removeFixedFlowPlaceholder(){this.fixedFlowPlaceholder&&(this.fixedFlowPlaceholder.remove(),this.fixedFlowPlaceholder=null)}applyFixedPosition(){if(this.isForcedFixed)return;const e=this.element.getBoundingClientRect(),t=this.element.parentElement?.getBoundingClientRect(),n=this.getMegamenuOffsetHeight();this.originalInlineStyles={position:this.element.style.position,top:this.element.style.top,left:this.element.style.left,right:this.element.style.right,width:this.element.style.width},this.forcedFixedTop=n>0?n:Math.max(0,Math.round(e.top)),this.forcedFixedLeft=Math.max(0,Math.round(t?.left??e.left));const i=Math.round(t?.width??e.width);this.element.style.position="fixed",this.element.style.top=`${this.forcedFixedTop}px`,this.element.style.left=`${this.forcedFixedLeft}px`,this.element.style.right="",this.element.style.width=`${i}px`,this.ensureFixedFlowPlaceholder(),this.isForcedFixed=!0}restoreStickyPosition(e=!0){if(!this.isForcedFixed)return;const t=this.originalInlineStyles;this.element.style.position=t?.position||"",this.element.style.top=t?.top||"",this.element.style.left=t?.left||"",this.element.style.right=t?.right||"",this.element.style.width=t?.width||"",this.resetFixedPositionState(),e&&(this.updateStickyPosition(),this.initScrollSpy())}handleModalStateChange(){this.isAnyModalOpen()?(this.isForcedFixed||this.wasStickyFloating)&&this.applyFixedPosition():(this.restoreStickyPosition(!1),this.updateStickyFloatingState())}setupModalObserver(){this.updateStickyFloatingState(),this.handleModalStateChange(),document.body&&"undefined"!=typeof MutationObserver&&(this.modalClassObserver=new MutationObserver(this.modalStateHandler),this.modalClassObserver.observe(document.body,{attributes:!0,attributeFilter:["class"]}))}teardownModalObserver(){this.modalClassObserver&&(this.modalClassObserver.disconnect(),this.modalClassObserver=null)}teardownMegamenuObserver(){window.removeEventListener("scroll",this.scrollHandler),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}clearAutoScrollTimers(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null)}resetFixedPositionState(){this.originalInlineStyles=null,this.isForcedFixed=!1,this.wasStickyFloating=!1,this.forcedFixedTop=0,this.forcedFixedLeft=0,this.removeFixedFlowPlaceholder()}resetNavigationState(){this.megamenuElement=null,this.lastStickyOffset=0,this.navLinks=null,this.sections=[],this.lastActiveIndex=0,this.autoScrollTargetId=null,this.autoScrollCorrectionCount=0,this.resetFixedPositionState()}handleScrollSpy(){this.isAutoScrolling?(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.handleScrollEnd()},E.SCROLL_END_DEBOUNCE_MS)):this.initScrollSpy()}handleScrollEnd(){this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.tryCorrectAutoScrollAlignment()&&(this.resetAutoScrollState(),this.initScrollSpy())}init(){this.setupMegamenuObserver(),this.setupScrollSpy(),this.setupDragScroll(),this.setupModalObserver()}destroy(){this.clearAutoScrollTimers(),this.teardownMegamenuObserver(),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.teardownModalObserver(),this.restoreStickyPosition(!1),this.element.style.top="",this.resetNavigationState(),this.element.ODS_AnchorNavigation=null}update(){this.clearAutoScrollTimers(),this.teardownMegamenuObserver(),this.teardownScrollSpyListeners(),this.teardownDragScroll(),this.teardownModalObserver(),this.restoreStickyPosition(!1),this.resetNavigationState(),this.init()}}const x={controlSelector:".block-action__control",indicatorSelector:".block-action__indicator",activeClass:"is-indicating"};function C(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function T(e,t=0){return setTimeout(e,t)}function A(){return Date.now()}function k(e){return"object"==typeof e&&null!==e&&!!e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function O(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||!!e&&"object"==typeof e&&(1===e.nodeType||11===e.nodeType)}function L(e,...t){const n=Object(e);for(let e=0;e<t.length;e+=1){const i=t[e];if(null==i||O(i))continue;const s=i,r=Object.keys(Object(s));for(let e=0,t=r.length;e<t;e+=1){const t=r[e];if("__proto__"===t||"constructor"===t||"prototype"===t)continue;const i=Object.getOwnPropertyDescriptor(s,t);if(!i||!i.enumerable)continue;const o=s[t];k(n[t])&&k(o)?o.__swiper__?n[t]=o:L(n[t],o):!k(n[t])&&k(o)?(n[t]={},o.__swiper__?n[t]=o:L(n[t],o)):n[t]=o}}return n}function D(e,t,n){e.style.setProperty(t,n)}function M(e,t=""){const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(e=>e.matches(t)):n}function P(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:C(t)),n}function I(e){const t=e.getBoundingClientRect();return{top:t.top-(e.clientTop||0),left:t.left-(e.clientLeft||0)}}function N(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}function R(e){if(e&&e.parentNode)return[...e.parentNode.children].indexOf(e)}function z(e,t){const n=[];let i=e.parentElement;for(;i;)t&&!i.matches(t)||n.push(i),i=i.parentElement;return n}function B(e,t,n){{const n=window.getComputedStyle(e,null);return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getPropertyValue("width"===t?"margin-left":"margin-bottom"))}}function F(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function H(e,t=""){const n=globalThis.trustedTypes;e.innerHTML=void 0!==n?n.createPolicy("html",{createHTML:e=>e}).createHTML(t):t}let $,V,j;function q(){return $||($="undefined"==typeof window?{touch:!1}:{touch:"ontouchstart"in window||navigator.maxTouchPoints>0}),$}function W(e={}){return V||(V=function({userAgent:e}={}){if("undefined"==typeof window)return{ios:!1,android:!1};const t=q(),n=navigator.platform,i=e||navigator.userAgent,s={ios:!1,android:!1},r=/(Android);?[\s/]+([\d.]+)?/.test(i),o=/(iPhone\sOS|iOS|iPod)/.test(i),a=/iPad/.test(i),l="MacIntel"===n&&t.touch&&navigator.maxTouchPoints>1,c=a||l;return r&&!("Win32"===n)&&(s.os="android",s.android=!0),(c||o)&&(s.os="ios",s.ios=!0),s}(e)),V}function U(){return j||(j=function(){if("undefined"==typeof window)return{isSafari:!1,isWebView:!1,need3dFix:!1};const e=W(),t=navigator.userAgent,n=t.toLowerCase(),i=n.includes("safari")&&!n.includes("chrome")&&!n.includes("android"),s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t);return{isSafari:i,isWebView:s,need3dFix:i||s&&e.ios}}()),j}const G=(e,t)=>{if(!e||e.destroyed||!e.params||!e.params.lazyPreload)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{if(n.shadowRoot){const t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`);t&&!t.lazyPreloaderManaged&&t.remove()}})),t&&!t.lazyPreloaderManaged&&t.remove()}},Y=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},X=e=>{if(!e||e.destroyed||!e.params||!e.params.lazyPreload)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&(e.params.grid.rows??1)>1){const n=s,r=[n-t];return r.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{void 0!==t.column&&r.includes(t.column)&&Y(e,n)})}const r=s+i-1;if(e.params.rewind||e.params.loop)for(let i=s-t;i<=r+t;i+=1){const t=(i%n+n)%n;(t<s||t>r)&&Y(e,t)}else for(let i=Math.max(s-t,0);i<=Math.min(r+t,n-1);i+=1)i!==s&&(i>r||i<s)&&Y(e,i)},K=(e,t)=>!!(e.grid&&t.grid&&t.grid.rows>1);var J={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:s}=e,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const o="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,a=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:document.querySelector(i.breakpointsBase),l=e.getBreakpoint(r,o,a);if(!l||e.currentBreakpoint===l)return;const c=(l in r?r[l]:void 0)||e.originalParams,d=K(e,i),u=K(e,c),h=e.params.grabCursor,p=c.grabCursor,f=i.enabled;d&&!u?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&u&&(s.classList.add(`${i.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!p?e.unsetGrabCursor():!h&&p&&e.setGrabCursor();const m=(e,t)=>e[t];["navigation","pagination","scrollbar"].forEach(t=>{const n=m(c,t);if(void 0===n)return;const s=m(i,t),r="object"==typeof s&&null!==s&&s.enabled,o="object"==typeof n&&null!==n&&n.enabled,a=e[t];r&&!o&&a?.disable?.(),!r&&o&&a?.enable?.()});const g=c.direction&&c.direction!==i.direction,v=i.loop&&(c.slidesPerView!==i.slidesPerView||g),b=i.loop;g&&n&&e.changeDirection(),L(e.params,c);const y=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!y?e.disable():!f&&y&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",c),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&w?(e.loopCreate(t),e.updateSlides()):b&&!w&&e.loopDestroy()),e.emit("breakpoint",c)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1;const s="window"===t?window.innerHeight:n.clientHeight,r=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}});r.sort((e,t)=>parseInt(String(e.value),10)-parseInt(String(t.value),10));for(let e=0;e<r.length;e+=1){const{point:s,value:o}=r[e];"window"===t?window.matchMedia(`(min-width: ${o}px)`).matches&&(i=s):o<=n.clientWidth&&(i=s)}return i||"max"}},Q={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:s,device:r}=e,o=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(i=>{e[i]&&n.push(t+i)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),s.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}};const Z={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,snapToSlideEdge:!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",lazyPreload:!0,lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};var ee={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=n?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][s](t)}),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=function(...n){i.off(e,s),s.__emitterProxy&&delete s.__emitterProxy,t.apply(i,n)};return s.__emitterProxy=t,i.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(s,1)})}),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n,i,s;if("string"==typeof e[0]||Array.isArray(e[0]))n=e[0],i=e.slice(1,e.length),s=t;else{const r=e[0];n=r.events,i=r.data??[],s=r.context||t}return i.unshift(s),(Array.isArray(n)?n:n.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(s,[e,...i])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(s,i)})}),t}};function te(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function ne(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}function ie(e){const t=this;t.destroyed||(G(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update())}function se(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:r}=e,o=e.virtual&&e.params.virtual?.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;if(!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a)e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{const t=o?e.virtual.slides.length:e.slides.length;e.slideTo(t-1,0,!1,!0)}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){const t=e.autoplay;clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)}e.allowSlidePrev=s,e.allowSlideNext=i,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function re(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let s;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();s=0===r?0:(e.translate-e.minTranslate())/r,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function oe(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let i=e.originalEvent??e;if("touchend"===i.type||"touchcancel"===i.type){const e=[...i.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&(!["pointercancel","contextmenu"].includes(i.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:s,touches:r,rtlTranslate:o,slidesGrid:a,enabled:l}=t;if(!l)return;if(!s.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);s.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=A(),d=c-n.touchStartTime;if(t.allowClick){const e=i.path??(i.composedPath&&i.composedPath());t.updateClickedSlide(e&&e[0],e),t.emit("tap click",i),d<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=A(),T(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===r.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let u;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=s.followFinger?o?t.translate:-t.translate:-(n.currentTranslate??0),s.cssMode)return;if(s.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:u});const h=u>=-t.maxTranslate()&&!t.params.loop;let p=0,f=t.slidesSizesGrid[0];for(let e=0;e<a.length;e+=e<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=e<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==a[e+t]?(h||u>=a[e]&&u<a[e+t])&&(p=e,f=a[e+t]-a[e]):(h||u>=a[e])&&(p=e,f=a[a.length-1]-a[a.length-2])}let m=null,g=null;s.rewind&&(t.isBeginning?g=s.virtual?.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const v=(u-a[p])/f,b=p<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(d>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?m:p+b):t.slideTo(p)),"prev"===t.swipeDirection&&(v>1-s.longSwipesRatio?t.slideTo(p+b):null!==g&&v<0&&Math.abs(v)>s.longSwipesRatio?t.slideTo(g):t.slideTo(p))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||i.target!==t.navigation.nextEl&&i.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==m?m:p+b),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:p)):i.target===t.navigation.nextEl?t.slideTo(p+b):t.slideTo(p)}}function ae(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData,{params:i,touches:s,rtlTranslate:r,enabled:o}=t;if(!o)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;const a=e,l=a.originalEvent??a;if("pointermove"===l.type){if(null!==n.touchId)return;if(l.pointerId!==n.pointerId)return}let c;if("touchmove"===l.type){const e=[...l.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return;c=e}else c=l;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",l));const d=c.pageX,u=c.pageY;if(l.preventedByNestedSwiper)return s.startX=d,void(s.startY=u);if(!t.allowTouchMove)return l.target.matches(n.focusableElements)||(t.allowClick=!1),void(n.isTouched&&(Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u}),n.touchStartTime=A()));if(i.touchReleaseOnEdges&&!i.loop)if(t.isVertical()){if(u<s.startY&&t.translate<=t.maxTranslate()||u>s.startY&&t.translate>=t.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else{if(r&&(d>s.startX&&-t.translate<=t.maxTranslate()||d<s.startX&&-t.translate>=t.minTranslate()))return;if(!r&&(d<s.startX&&t.translate<=t.maxTranslate()||d>s.startX&&t.translate>=t.minTranslate()))return}if(document.activeElement&&document.activeElement.matches(n.focusableElements)&&document.activeElement!==l.target&&"mouse"!==l.pointerType&&document.activeElement.blur(),document.activeElement&&l.target===document.activeElement&&l.target.matches(n.focusableElements))return n.isMoved=!0,void(t.allowClick=!1);n.allowTouchCallbacks&&t.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=u;const h=s.currentX-s.startX,p=s.currentY-s.startY;if(t.params.threshold&&Math.sqrt(h**2+p**2)<t.params.threshold)return;if(void 0===n.isScrolling){let e;t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:h*h+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,n.isScrolling=t.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",l),void 0===n.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(n.startMoving=!0)),n.isScrolling||"touchmove"===l.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;t.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let f=t.isHorizontal()?h:p,m=t.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(f=Math.abs(f)*(r?1:-1),m=Math.abs(m)*(r?1:-1)),s.diff=f,f*=i.touchRatio,r&&(f=-f,m=-m);const g=t.touchesDirection;t.swipeDirection=f>0?"prev":"next",t.touchesDirection=m>0?"prev":"next";const v=t.params.loop&&!i.cssMode,b="next"===t.touchesDirection&&t.allowSlideNext||"prev"===t.touchesDirection&&t.allowSlidePrev;if(!n.isMoved){if(v&&b&&t.loopFix({direction:t.swipeDirection}),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});t.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!i.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",l)}if((new Date).getTime(),!1!==i._loopSwapReset&&n.isMoved&&n.allowThresholdMove&&g!==t.touchesDirection&&v&&b&&Math.abs(f)>=1)return Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);t.emit("sliderMove",l),n.isMoved=!0;const y=n.startTranslate??0;n.currentTranslate=f+y;let w=!0,_=i.resistanceRatio;if(i.touchReleaseOnEdges&&(_=0),f>0?(v&&b&&n.allowThresholdMove&&n.currentTranslate>(i.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-("auto"!==i.slidesPerView&&t.slides.length-i.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>t.minTranslate()&&(w=!1,i.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+y+f)**_))):f<0&&(v&&b&&n.allowThresholdMove&&n.currentTranslate<(i.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+("auto"!==i.slidesPerView&&t.slides.length-i.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-("auto"===i.slidesPerView?t.slidesPerViewDynamic():Math.ceil(parseFloat(String(i.slidesPerView))))}),n.currentTranslate<t.maxTranslate()&&(w=!1,i.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-y-f)**_))),w&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&(n.currentTranslate??0)<y&&(n.currentTranslate=y),!t.allowSlidePrev&&"prev"===t.swipeDirection&&(n.currentTranslate??0)>y&&(n.currentTranslate=y),t.allowSlidePrev||t.allowSlideNext||(n.currentTranslate=y),i.threshold>0){if(!(Math.abs(f)>i.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,void(s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&t.freeMode||i.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate??0))}function le(e,t,n){const{params:i}=e,s=i.edgeSwipeDetection,r=i.edgeSwipeThreshold;return!s||!(n<=r||n>=window.innerWidth-r)||"prevent"===s&&(t.preventDefault(),!0)}function ce(e){const t=this;if(t.destroyed)return;const n=e.originalEvent??e,i=t.touchEventsData;if("pointerdown"===n.type){const e=n;if(null!==i.pointerId&&i.pointerId!==e.pointerId)return;i.pointerId=e.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(i.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void le(t,n,n.targetTouches[0].pageX);const{params:s,touches:r,enabled:o}=t;if(!o)return;if(!s.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let a=n.target;if("wrapper"===s.touchEventsTarget&&!function(e,t){let n=t.contains(e);return!n&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}return!1}(e,t))),n}(a,t.wrapperEl))return;const l=n;if("number"==typeof l.which&&3===l.which)return;if("number"==typeof l.button&&l.button>0)return;if(i.isTouched&&i.isMoved)return;const c=!!s.noSwipingClass&&""!==s.noSwipingClass,d=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&d&&(a=d[0]);const u=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!(!n.target||!n.target.shadowRoot);if(s.noSwiping&&(h?(p=u,function e(t){if(!t||t===document||t===window)return null;let n=t;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(p);if(!i&&!n.getRootNode)return null;const s=n.getRootNode();return i||e(s.host)}(a)):a.closest(u)))return void(t.allowClick=!0);var p;if(s.swipeHandler&&"string"==typeof s.swipeHandler&&!a.closest(s.swipeHandler))return;const f=n;r.currentX=f.pageX,r.currentY=f.pageY;const m=r.currentX,g=r.currentY;if(!le(t,n,m))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=m,r.startY=g,i.touchStartTime=A(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let v=!0;a.matches(i.focusableElements)&&(v=!1,"SELECT"===a.nodeName&&(i.isTouched=!1)),document.activeElement&&document.activeElement.matches(i.focusableElements)&&document.activeElement!==a&&("mouse"===f.pointerType||"mouse"!==f.pointerType&&!a.matches(i.focusableElements))&&document.activeElement.blur();const b=v&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!b||a.isContentEditable||n.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}const de=(e,t)=>{const{params:n,el:i,wrapperEl:s,device:r}=e,o=!!n.nested,a="on"===t?"addEventListener":"removeEventListener",l=t;if(!i||"string"==typeof i)return;document[a]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),i[a]("touchstart",e.onTouchStart,{passive:!1}),i[a]("pointerdown",e.onTouchStart,{passive:!1}),document[a]("touchmove",e.onTouchMove,{passive:!1,capture:o}),document[a]("pointermove",e.onTouchMove,{passive:!1,capture:o}),document[a]("touchend",e.onTouchEnd,{passive:!0}),document[a]("pointerup",e.onTouchEnd,{passive:!0}),document[a]("pointercancel",e.onTouchEnd,{passive:!0}),document[a]("touchcancel",e.onTouchEnd,{passive:!0}),document[a]("pointerout",e.onTouchEnd,{passive:!0}),document[a]("pointerleave",e.onTouchEnd,{passive:!0}),document[a]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[a]("click",e.onClick,!0),n.cssMode&&s[a]("scroll",e.onScroll);const c=t=>{e[l](t,se,!0)};n.updateOnWindowResize?c(r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate"):c("observerUpdate"),n.lazyPreload&&i[a]("load",e.onLoad,{capture:!0})};var ue={loopCreate:function(e,t){const n=this,{params:i,slidesEl:s}=n;if(!i.loop||n.virtual&&n.params.virtual?.enabled)return;const r=()=>{M(s,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",String(t))})},o=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||o)&&(()=>{const e=M(s,`.${i.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const a=i.slidesPerGroup*(o?i.grid.rows:1),l=n.slides.length%a!==0,c=o&&n.slides.length%i.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?P("swiper-slide",[i.slideBlankClass]):P("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};l?(i.loopAddBlankSlides&&(d(a-n.slides.length%a),n.recalcSlides(),n.updateSlides()),r()):c?(i.loopAddBlankSlides&&(d(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()),r()):r();const u=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:u?void 0:"next",initial:t})},loopFix:function(e={}){const{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:s,activeSlideIndex:r,initial:o,byController:a,byMousewheel:l}=e;let c=r;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix"),d.__loopFixInProgress__=!0;const{slides:u,allowSlidePrev:h,allowSlideNext:p,slidesEl:f,params:m}=d,{centeredSlides:g,slidesOffsetBefore:v,slidesOffsetAfter:b,initialSlide:y}=m,w=g||!!v||!!b;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&m.virtual?.enabled){if(n){const e=d.virtual.slides.length,t=d.virtual.slidesBefore??0;w||0!==d.snapIndex?w&&d.snapIndex<m.slidesPerView?d.slideTo(e+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(t,0,!1,!0):d.slideTo(e,0,!1,!0)}return d.allowSlidePrev=h,d.allowSlideNext=p,d.__loopFixInProgress__=!1,void d.emit("loopFix")}let _=m.slidesPerView;"auto"===_?_=d.slidesPerViewDynamic():(_=Math.ceil(parseFloat(String(m.slidesPerView))),w&&_%2==0&&(_+=1));const S=m.slidesPerGroupAuto?_:m.slidesPerGroup,E=e=>("function"==typeof e?e.call(d):e)||0,x=d.slidesGrid.length>1?(d.slidesGrid[d.slidesGrid.length-1]-d.slidesGrid[0])/(d.slidesGrid.length-1):d.size,C=x>0?E(v)/x:0,T=x>0?E(b)/x:0;let A=w?Math.max(S,(g?Math.ceil(_/2):0)+Math.ceil(Math.max(C,T))):S;A%S!==0&&(A+=S-A%S),A+=m.loopAdditionalSlides,d.loopedSlides=A;const k=d.grid&&m.grid&&m.grid.rows>1;u.length<_+A||"cards"===d.params.effect&&u.length<_+2*A||k&&m.grid.fill;const O=[],L=[],D=k?Math.ceil(u.length/m.grid.rows):u.length,M=o&&D-y<_&&!w;let P=M?y:d.activeIndex;void 0===c?c=d.getSlideIndex(u.find(e=>e.classList.contains(m.slideActiveClass))):P=c;const I="next"===i||!i,N="prev"===i||!i;let R=0,z=0;const B=(k?u[c].column??0:c)+(w&&void 0===s?(g?-_/2+.5:0)-C:0);if(B<A){R=Math.max(A-B,S);for(let e=0;e<A-B;e+=1){const t=e-Math.floor(e/D)*D;if(k){const e=D-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&O.push(t)}else O.push(D-t-1)}}else if(B+_>D-A){z=Math.max(B-(D-2*A),S),M&&(z=Math.max(z,_-D+y+1));for(let e=0;e<z;e+=1){const t=e-Math.floor(e/D)*D;k?u.forEach((e,n)=>{e.column===t&&L.push(n)}):L.push(t)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),"cards"===d.params.effect&&u.length<_+2*A&&(L.includes(c)&&L.splice(L.indexOf(c),1),O.includes(c)&&O.splice(O.indexOf(c),1)),N&&O.forEach(e=>{const t=u[e];t.swiperLoopMoveDOM=!0,f.prepend(t),t.swiperLoopMoveDOM=!1}),I&&L.forEach(e=>{const t=u[e];t.swiperLoopMoveDOM=!0,f.append(t),t.swiperLoopMoveDOM=!1}),d.recalcSlides(),"auto"===m.slidesPerView?d.updateSlides():k&&(O.length>0&&N||L.length>0&&I)&&d.slides.forEach((e,t)=>{d.grid.updateSlide(t,e,d.slides)}),m.watchSlidesProgress&&d.updateSlidesOffset(),n)if(O.length>0&&N){if(void 0===t){const e=d.slidesGrid[P],t=d.slidesGrid[P+R]-e;l?d.setTranslate(d.translate-t):(d.slideTo(P+Math.ceil(R),0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else if(s){const e=k?O.length/m.grid.rows:O.length;d.slideTo(d.activeIndex+e,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(L.length>0&&I)if(void 0===t){const e=d.slidesGrid[P],t=d.slidesGrid[P-z]-e;l?d.setTranslate(d.translate-t):(d.slideTo(P-z,0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else{const e=k?L.length/m.grid.rows:L.length;d.slideTo(d.activeIndex-e,0,!1,!0)}d.allowSlidePrev=h,d.allowSlideNext=p;const F=d.controller?.control;if(F&&!a){const e={slideRealIndex:t,direction:i,setTranslate:s,activeSlideIndex:c,byController:!0};Array.isArray(F)?F.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===m.slidesPerView&&n})}):F instanceof d.constructor&&F.params.loop&&F.loopFix({...e,slideTo:F.params.slidesPerView===m.slidesPerView&&n})}d.__loopFixInProgress__=!1,d.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual?.enabled)return;e.recalcSlides();const i=[];e.slides.forEach(e=>{const t=e,n=void 0===t.swiperSlideIndex?Number(e.getAttribute("data-swiper-slide-index")):t.swiperSlideIndex;i[n]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function he(e,t){return function(n={}){const i=Object.keys(n)[0],s=n[i];"object"==typeof s&&null!==s?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in s?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),L(t,n)):L(t,n)):L(t,n)}}var pe={slideTo:function(e=0,t,n=!0,i,s){"string"==typeof e&&(e=parseInt(e,10));const r=this;let o=e;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:p,enabled:f}=r;if(!f&&!i&&!s||r.destroyed||r.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const m=Math.min(r.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/r.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(a.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?o=e:t>=n&&t<i&&(o=e+1):t>=n&&(o=e)}if(r.initialized&&o!==u){if(!r.allowSlideNext&&(h?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate()))return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(u||0)!==o)return!1}let b;o!==(d||0)&&n&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),b=o>u?"next":o<u?"prev":"reset";const y=r.virtual&&r.params.virtual?.enabled;if((!y||!s)&&(h&&-v===r.translate||!h&&v===r.translate))return r.updateActiveIndex(o),a.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==a.effect&&r.setTranslate(v),"reset"!==b&&(r.transitionStart(n,b),r.transitionEnd(n,b)),!1;if(a.cssMode){const e=r.isHorizontal(),n=h?v:-v;return 0===t?(y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&(r.params.initialSlide??0)>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,y&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})):p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"}),!0}const w=U().isSafari;return y&&!s&&w&&r.isElement&&r.virtual.update(!1,!1,o),r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,b),0===t?r.transitionEnd(n,b):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(n,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,i){"string"==typeof e&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;void 0===t&&(t=s.params.speed);const r=s.grid&&s.params.grid&&s.params.grid.rows>1;let o=e;if(s.params.loop)if(s.virtual&&s.params.virtual?.enabled)o+=s.virtual.slidesBefore??0;else{let e;if(r){const t=o*s.params.grid.rows,n=s.slides.find(e=>Number(e.getAttribute("data-swiper-slide-index"))===t);e=n?.column??0}else e=s.getSlideIndexByData(o);const t=r?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:n,slidesOffsetBefore:a,slidesOffsetAfter:l}=s.params,c=n||!!a||!!l;let d;"auto"===s.params.slidesPerView?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(String(s.params.slidesPerView))),c&&d%2==0&&(d+=1));let u=t-e<d;if(c&&(u=u||e<Math.ceil(d/2)),i&&c&&"auto"!==s.params.slidesPerView&&!r&&(u=!1),u){const n=c?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?s.realIndex:void 0})}if(r){const e=o*s.params.grid.rows,t=s.slides.find(t=>Number(t.getAttribute("data-swiper-slide-index"))===e);o=t?.column??0}else o=s.getSlideIndexByData(o)}return requestAnimationFrame(()=>{s.slideTo(o,t,n,i)}),s},slideNext:function(e,t=!0,n){const i=this,{enabled:s,params:r,animating:o}=i;if(!s||i.destroyed)return i;void 0===e&&(e=i.params.speed);let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<r.slidesPerGroupSkip?1:a,c=i.virtual&&r.virtual?.enabled;if(r.loop){if(o&&!c&&r.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return r.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t=!0,n){const i=this,{params:s,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const d=i.virtual&&s.virtual?.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(a?i.translate:-i.translate),p=r.map(e=>u(e)),f=s.freeMode&&s.freeMode.enabled;let m=r[p.indexOf(h)-1];if(void 0===m&&(s.cssMode||f)){let e;r.forEach((t,n)=>{h>=t&&(e=n)}),void 0!==e&&(m=f?r[e]:r[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=o.indexOf(m),g<0&&(g=i.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(g=g-i.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),s.rewind&&i.isBeginning){const s=i.params.virtual?.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(s,e,t,n)}return s.loop&&0===i.activeIndex&&s.cssMode?(requestAnimationFrame(()=>{i.slideTo(g,e,t,n)}),!0):i.slideTo(g,e,t,n)},slideReset:function(e,t=!0,n){const i=this;if(!i.destroyed)return void 0===e&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)},slideToClosest:function(e,t=!0,n,i=.5){const s=this;if(s.destroyed)return;void 0===e&&(e=s.params.speed);let r=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[a]){const e=s.snapGrid[a];l-e>(s.snapGrid[a+1]-e)*i&&(r+=s.params.slidesPerGroup)}else{const e=s.snapGrid[a-1];l-e<=(s.snapGrid[a]-e)*i&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n,clickedSlide:i,clickedIndex:s}=e;if(void 0===i||void 0===s)return;const r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let o,a=e.getSlideIndexWhenGrid(s);const l=e.isElement?"swiper-slide":`.${t.slideClass}`,c=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;o=parseInt(i.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(o):a>(c?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),a=e.getSlideIndex(M(n,`${l}[data-swiper-slide-index="${o}"]`)[0]),T(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}};function fe({swiper:e,runCallbacks:t,direction:n,step:i}){const{activeIndex:s,previousIndex:r}=e;let o=n;o||(o=s>r?"next":s<r?"prev":"reset"),e.emit(`transition${i}`),t&&"reset"===o?e.emit(`slideResetTransition${i}`):t&&s!==r&&(e.emit(`slideChangeTransition${i}`),"next"===o?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`))}var me={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:i,wrapperEl:s}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let r=function(e,t="x"){const n=function(e){return window.getComputedStyle(e,null)}(e),i=n.transform||n.webkitTransform;if(!i||"none"===i)return 0;const s=new DOMMatrixReadOnly(i);return"x"===t?s.m41:s.m42}(s,e);return r+=this.cssOverflowAdjustment(),n&&(r=-r),r||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:s,wrapperEl:r,progress:o}=n;let a,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,s.cssMode?r[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),r.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=n.maxTranslate()-n.minTranslate();a=0===d?0:(e-n.minTranslate())/d,a!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,i=!0,s){const r=this,{params:o,wrapperEl:a}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let d;if(d=i&&e>l?l:i&&e<c?c:e,r.updateProgress(d),o.cssMode){const e=r.isHorizontal();return 0===t?a[e?"scrollLeft":"scrollTop"]=-d:a.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"}),!0}return 0===t?(r.setTransition(0),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,n&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};const ge=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},ve=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};var be={updateSize:function(){const e=this;let t,n;const i=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(N(i,"padding-left")||"0",10)-parseInt(N(i,"padding-right")||"0",10),n=n-parseInt(N(i,"padding-top")||"0",10)-parseInt(N(i,"padding-bottom")||"0",10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||"0")}const n=e.params,{wrapperEl:i,slidesEl:s,rtlTranslate:r,wrongRTL:o}=e,a=!(!e.virtual||!n.virtual?.enabled),l=a?e.virtual.slides.length:e.slides.length,c=M(s,`.${e.params.slideClass}, swiper-slide`),d=a?e.virtual.slides.length:c.length;let u=[];const h=[],p=[],f=t=>"function"==typeof t?t.call(e):t,m=f(n.slidesOffsetBefore),g=f(n.slidesOffsetAfter),v=e.snapGrid.length,b=e.slidesGrid.length,y=e.size-m-g;let w=n.spaceBetween,_=-m,S=0,E=0;if(void 0===y)return;"string"==typeof w&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*y:"string"==typeof w&&(w=parseFloat(w)),e.virtualSize=-w-m-g,c.forEach(e=>{r?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(D(i,"--swiper-centered-offset-before",""),D(i,"--swiper-centered-offset-after","")),n.cssMode&&(D(i,"--swiper-slides-offset-before",`${m}px`),D(i,"--swiper-slides-offset-after",`${g}px`));const x=n.grid&&n.grid.rows>1&&e.grid;x?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let C=0;const T="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>{const t=n.breakpoints[e];return void 0!==t?.slidesPerView}).length>0;for(let i=0;i<d;i+=1){C=0;const s=c[i];if(!s||(x&&e.grid.updateSlide(i,s,c),"none"!==N(s,"display"))){if(a&&"auto"===n.slidesPerView)n.virtual?.slidesPerViewAutoSlideSize&&(C=n.virtual.slidesPerViewAutoSlideSize),C&&s&&(n.roundLengths&&(C=Math.floor(C)),s.style[e.getDirectionLabel("width")]=`${C}px`);else if("auto"===n.slidesPerView){T&&(s.style[e.getDirectionLabel("width")]="");const i=getComputedStyle(s),r=s.style.transform,o=s.style.webkitTransform;if(r&&(s.style.transform="none"),o&&(s.style.webkitTransform="none"),n.roundLengths)C=e.isHorizontal()?B(s,"width"):B(s,"height");else{const e=t(i,"width"),n=t(i,"padding-left"),r=t(i,"padding-right"),o=t(i,"margin-left"),a=t(i,"margin-right"),l=i.getPropertyValue("box-sizing");if(l&&"border-box"===l)C=e+o+a;else{const{clientWidth:t,offsetWidth:i}=s;C=e+n+r+o+a+(i-t)}}r&&(s.style.transform=r),o&&(s.style.webkitTransform=o),n.roundLengths&&(C=Math.floor(C))}else C=(y-(n.slidesPerView-1)*w)/n.slidesPerView,n.roundLengths&&(C=Math.floor(C)),s&&(s.style[e.getDirectionLabel("width")]=`${C}px`);s&&(s.swiperSlideSize=C),p.push(C),n.centeredSlides?(_=_+C/2+S/2+w,0===S&&0!==i&&(_=_-y/2-w),0===i&&(_=_-y/2-w),Math.abs(_)<.001&&(_=0),n.roundLengths&&(_=Math.floor(_)),E%n.slidesPerGroup===0&&u.push(_),h.push(_)):(n.roundLengths&&(_=Math.floor(_)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup===0&&u.push(_),h.push(_),_=_+C+w),e.virtualSize+=C+w,S=C,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+g,r&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+w}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+w}px`),x&&e.grid.updateWrapperSize(C,u),!n.centeredSlides){const t="auto"!==n.slidesPerView&&n.slidesPerView%1!=0,i=n.snapToSlideEdge&&!n.loop&&("auto"===n.slidesPerView||t);let s=u.length;if(i){let e;if("auto"===n.slidesPerView){e=1;let t=0;for(let n=p.length-1;n>=0&&(t+=p[n]+(n<p.length-1?w:0),t<=y);n-=1)e=p.length-n}else e=Math.floor(n.slidesPerView);s=Math.max(d-e,0)}const r=[];for(let t=0;t<u.length;t+=1){let o=u[t];n.roundLengths&&(o=Math.floor(o)),i?t<=s&&r.push(o):u[t]<=e.virtualSize-y&&r.push(o)}u=r,Math.floor(e.virtualSize-y)-Math.floor(u[u.length-1])>1&&(i||u.push(e.virtualSize-y))}if(a&&n.loop){const t=p[0]+w,i=(e.virtual.slidesBefore??0)+(e.virtual.slidesAfter??0);if(n.slidesPerGroup>1){const e=Math.ceil(i/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let t=0;t<e;t+=1)u.push(u[u.length-1]+s)}for(let s=0;s<i;s+=1)1===n.slidesPerGroup&&u.push(u[u.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===u.length&&(u=[0]),0!==w){const t=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");c.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${w}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(w||0)}),e-=w;const t=e>y?e-y:0;u=u.map(e=>e<=0?-m:e>t?t+g:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(w||0)}),e-=w,e<y){const t=(y-e)/2;u.forEach((e,n)=>{u[n]=e-t}),h.forEach((e,n)=>{h[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:u,slidesGrid:h,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){D(i,"--swiper-centered-offset-before",-u[0]+"px"),D(i,"--swiper-centered-offset-after",e.size/2-p[p.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(d!==l&&e.emit("slidesLengthChange"),u.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(a||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual?.enabled;let s,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>i?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=>{n.push(e)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!i)break;const r=o(e);r&&n.push(r)}else{const e=o(t.activeIndex);e&&n.push(e)}for(s=0;s<n.length;s+=1)if(void 0!==n[s]){const e=n[s].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,n=t.params,{slides:i,rtlTranslate:s,snapGrid:r}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;s&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset??0;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset??0);const d=l.swiperSlideSize??0,u=(o+(n.centeredSlides?t.minTranslate():0)-c)/(d+a),h=(o-r[0]+(n.centeredSlides?t.minTranslate():0)-c)/(d+a),p=-(o-c),f=p+t.slidesSizesGrid[e],m=p>=0&&p<=t.size-t.slidesSizesGrid[e],g=p>=0&&p<t.size-1||f>1&&f<=t.size||p<=0&&f>=t.size;g&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),ve(l,g,n.slideVisibleClass),ve(l,m,n.slideFullyVisibleClass),l.progress=s?-u:u,l.originalProgress=s?-h:h}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:r,isEnd:o}=t,a=t.progressLoop;const l=r,c=o;if(0===i)s=0,r=!0,o=!0;else{s=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;r=n||s<=0,o=a||s>=1,n&&(s=0),a&&(s=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[n],r=t.slidesGrid[i],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=s?(l-s)/o:(l+o-r)/o,a>1&&(a-=1)}Object.assign(t,{progress:s,progressLoop:a,isBeginning:r,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:s}=e,r=!(!e.virtual||!n.virtual?.enabled),o=e.grid&&n.grid&&n.grid.rows>1,a=e=>M(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(r)if(n.loop){const t=e.virtual.slides;let n=s-(e.virtual.slidesBefore??0);n<0&&(n=t.length+n),n>=t.length&&(n-=t.length),l=a(`[data-swiper-slide-index="${n}"]`)}else l=a(`[data-swiper-slide-index="${s}"]`);else o?(l=t.find(e=>e.column===s),d=t.find(e=>e.column===s+1),c=t.find(e=>e.column===s-1)):l=t[s];l&&(o||(d=function(e,t){const n=[];let i=e.nextElementSibling;for(;i;)t&&!i.matches(t)||n.push(i),i=i.nextElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=function(e,t){const n=[];let i=e.previousElementSibling;for(;i;)t&&!i.matches(t)||n.push(i),i=i.previousElementSibling;return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{ge(e,e===l,n.slideActiveClass),ge(e,e===d,n.slideNextClass),ge(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:s,activeIndex:r,realIndex:o,snapIndex:a}=t;let l,c=e;const d=e=>{const n=t.virtual.slides;let i=e-(t.virtual.slidesBefore??0);return i<0&&(i=n.length+i),i>=n.length&&(i-=n.length),i};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let s;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?s=e:i>=t[e]&&i<t[e+1]&&(s=e+1):i>=t[e]&&(s=e);return n.normalizeSlideIndex&&(s<0||void 0===s)&&(s=0),s}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/s.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===r&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===r&&t.params.loop&&t.virtual&&t.params.virtual?.enabled)return void(t.realIndex=d(c));const u=t.grid&&s.grid&&s.grid.rows>1;let h;if(t.virtual&&s.virtual?.enabled)h=s.loop?d(c):c;else if(u){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),h=Math.floor(n/s.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:o,realIndex:h,previousIndex:r,activeIndex:c}),t.initialized&&X(t),t.__loopFixInProgress__||(t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&((t.__lastEmittedRealIndex__??o)!==h&&t.emit("realIndexChange"),t.emit("slideChange")),t.__lastEmittedRealIndex__=h)},updateClickedSlide:function(e,t){const n=this,i=n.params;let s=e.closest(`.${i.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!s&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(s=e)});let r,o=!1;if(s)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===s){o=!0,r=e;break}if(!s||!o)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=s,n.virtual&&n.params.virtual?.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=r,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};const ye={eventsEmitter:ee,update:be,translate:me,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),fe({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),fe({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:pe,loop:ue,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.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=ce.bind(e),e.onTouchMove=ae.bind(e),e.onTouchEnd=oe.bind(e),e.onDocumentTouchStart=ne.bind(e),t.cssMode&&(e.onScroll=re.bind(e)),e.onClick=te.bind(e),e.onLoad=ie.bind(e),de(e,"on")},detachEvents:function(){de(this,"off")}},breakpoints:J,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:Q},we={};class _e{static extendedDefaults;static defaults;constructor(...e){let t,n;if(1===e.length&&null!==e[0]&&"object"==typeof e[0]&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=L({},n),t&&!n.el&&(n.el=t),n.el&&"string"==typeof n.el&&"undefined"!=typeof document&&document.querySelectorAll(n.el).length>1){const e=[];return document.querySelectorAll(n.el).forEach(t=>{const i=L({},n,{el:t});e.push(new _e(i))}),e}const i=this;i.__swiper__=!0,i.support=q(),i.device=W({userAgent:n.userAgent??void 0}),i.browser=U(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__||[]],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{const t=e;"function"==typeof t&&i.modules.indexOf(t)<0&&i.modules.push(t)});const s={};i.modules.forEach(e=>{e({params:n,swiper:i,extendParams:he(n,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const r=L({},Z,s);if(i.params=L({},r,we,n),i.originalParams=L({},i.params),i.passedParams=L({},n),i.params&&i.params.on){const e=i.params.on;Object.keys(e).forEach(t=>{const n=e[t];n&&i.on(t,n)})}return i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.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:i.params.allowSlideNext,allowSlidePrev:i.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:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}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]}isHorizontal(){return"horizontal"===this.params.direction}isVertical(){return"vertical"===this.params.direction}cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=R(M(t,`.${n.slideClass}, swiper-slide`)[0]);return R(e)-(i??0)}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>Number(t.getAttribute("data-swiper-slide-index"))===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=M(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);const n=this.minTranslate(),i=(this.maxTranslate()-n)*e+n;this.translateTo(i,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){if(!this.params._emitClasses||!this.el)return;const e=this.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(this.params.containerModifierClass));this.emit("_containerClasses",e.join(" "))}getSlideClasses(e){return this.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(this.params.slideClass)).join(" ")}emitSlidesClasses(){if(!this.params._emitClasses||!this.el)return;const e=[];this.slides.forEach(t=>{const n=this.getSlideClasses(t);e.push({slideEl:t,classNames:n}),this.emit("_slideClass",t,n)}),this.emit("_slideClasses",e)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:i,slidesGrid:s,slidesSizesGrid:r,size:o,activeIndex:a}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(!o)return l;if(n.centeredSlides){let e=i[a]?Math.ceil(i[a].swiperSlideSize??0):0,t=!1;for(let n=a+1;n<i.length;n+=1)i[n]&&!t&&(e+=Math.ceil(i[n].swiperSlideSize??0),l+=1,e>o&&(t=!0));for(let n=a-1;n>=0;n-=1)i[n]&&!t&&(e+=i[n].swiperSlideSize??0,l+=1,e>o&&(t=!0))}else if("current"===e)for(let e=a+1;e<i.length;e+=1)(t?s[e]+r[e]-s[a]<o:s[e]-s[a]<o)&&(l+=1);else for(let e=a-1;e>=0;e-=1)s[a]-s[e]<o&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.breakpoints&&e.setBreakpoint(),n.lazyPreload&&[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&G(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode?.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual?.enabled?e.virtual.slides.length:e.slides.length;s=e.slideTo(t-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.rtlTranslate="horizontal"===e&&n.rtl,n.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}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;if("undefined"==typeof document)return!1;const n=e??t.params.el;let i=null;if("string"==typeof n?i=document.querySelector(n):n instanceof HTMLElement&&(i=n),!i)return!1;i.swiper=t;const s=i.parentNode;s&&s.host&&s.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=i&&i.shadowRoot?i.shadowRoot.querySelector(r()):M(i,r())[0];!o&&t.params.createElements&&(o=P("div",t.params.wrapperClass),i.append(o),M(i,`.${t.params.slideClass}`).forEach(e=>{o.append(e)}));const a=t.isElement?i.parentNode.host:null;return Object.assign(t,{el:i,wrapperEl:o,slidesEl:t.isElement&&!a.slideSlots?a:o,hostEl:t.isElement?a:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===N(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===N(i,"direction")),wrongRTL:"-webkit-box"===N(o,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;if(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??0)+(t.virtual.slidesBefore??0),0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents(),t.params.lazyPreload){const e=[...t.el.querySelectorAll('[loading="lazy"]')];t.isElement&&e.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),e.forEach(e=>{e.complete?G(t,e):e.addEventListener("load",e=>{G(t,e.target)})})}return t.initialized=!0,X(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const n=this,{params:i,el:s,wrapperEl:r,slides:o}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),r&&r.removeAttribute("style"),o&&o.length&&o.forEach(e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),a=n,Object.keys(a).forEach(e=>{try{a[e]=null}catch{}try{delete a[e]}catch{}})),n.destroyed=!0),null;var a}static extendDefaults(e){L(we,e)}static installModule(e){_e.prototype.__modules__||(_e.prototype.__modules__=[]);const t=_e.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>_e.installModule(e)),_e):(_e.installModule(e),_e)}}Object.defineProperty(_e,"extendedDefaults",{get:()=>we}),Object.defineProperty(_e,"defaults",{get:()=>Z});const Se=ye,Ee=_e.prototype;Object.keys(Se).forEach(e=>{const t=Se[e];Object.keys(t).forEach(e=>{Ee[e]=t[e]})}),_e.use([({swiper:e,on:t,emit:n})=>{let i=null,s=null;const r=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==window.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{s=window.requestAnimationFrame(()=>{const{width:n,height:i}=e;let s=n,o=i;t.forEach(({contentBoxSize:t,contentRect:n,target:i})=>{if(i&&i!==e.el)return;const r=Array.isArray(t)?t[0]:t;s=n?n.width:r.inlineSize,o=n?n.height:r.blockSize}),s===n&&o===i||r()})}),i.observe(e.el)):(window.addEventListener("resize",r),window.addEventListener("orientationchange",o))}),t("destroy",()=>{s&&window.cancelAnimationFrame(s),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",o)})},({swiper:e,extendParams:t,on:n})=>{const i=[],s=(t,n={})=>{const s=window.MutationObserver||window.WebkitMutationObserver;if(!s)return;const r=new s(t=>{if(e.__preventObserver__)return;if(1===t.length)return void e.emit("observerUpdate",t[0]);const n=function(){e.emit("observerUpdate",t[0])};window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,0)});r.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:e.isElement||void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),i.push(r)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=z(e.hostEl);for(let e=0;e<t.length;e+=1)s(t[e])}s(e.hostEl,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);const xe=({swiper:e,extendParams:t,on:n,emit:i})=>{function s(){return e.params.keyboard}function r(t){if(!e.enabled)return;const{rtlTranslate:n}=e,r="originalEvent"in t&&t.originalEvent?t.originalEvent:t,o=r.keyCode||r.charCode,a=s(),l=!!a.pageUpDown,c=l&&33===o,d=l&&34===o,u=37===o,h=39===o,p=38===o,f=40===o;if(!e.allowSlideNext&&(e.isHorizontal()&&h||e.isVertical()&&f||d))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&u||e.isVertical()&&p||c))return!1;if(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey)return;const m=document.activeElement;if(m&&(m.isContentEditable||m.nodeName&&("input"===m.nodeName.toLowerCase()||"textarea"===m.nodeName.toLowerCase())))return;if(a.onlyInViewport&&(c||d||u||h||p||f)){let t=!1;if(z(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===z(e.el,`.${e.params.slideActiveClass}`).length)return;const i=e.el,s=i.clientWidth,r=i.clientHeight,o=window.innerWidth,a=window.innerHeight,l=I(i);n&&(l.left-=i.scrollLeft);const c=[[l.left,l.top],[l.left+s,l.top],[l.left,l.top+r],[l.left+s,l.top+r]];for(let e=0;e<c.length;e+=1){const n=c[e];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=a){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}const g=a.speed;e.isHorizontal()?((c||d||u||h)&&r.cancelable&&r.preventDefault(),((d||h)&&!n||(c||u)&&n)&&e.slideNext(g),((c||u)&&!n||(d||h)&&n)&&e.slidePrev(g)):((c||d||p||f)&&r.cancelable&&r.preventDefault(),(d||f)&&e.slideNext(g),(c||p)&&e.slidePrev(g)),i("keyPress",o)}function o(){e.keyboard.enabled||(document.addEventListener("keydown",r),e.keyboard.enabled=!0)}function a(){e.keyboard.enabled&&(document.removeEventListener("keydown",r),e.keyboard.enabled=!1)}t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),e.keyboard={enabled:!1,enable:o,disable:a},n("init",()=>{s().enabled&&o()}),n("destroy",()=>{e.keyboard.enabled&&a()})},Ce=({swiper:e,extendParams:t,on:n,emit:i})=>{let s;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});let r,o=A(),a=!1;const l=[];function c(){return e.params.mousewheel}function d(){e.enabled&&(a=!0)}function u(){e.enabled&&(a=!1)}function h(t){const n=c();return!(n.thresholdDelta&&t.delta<n.thresholdDelta||n.thresholdTime&&A()-o<n.thresholdTime||!(t.delta>=6&&A()-o<60)&&(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),i("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),i("scroll",t.raw)),o=(new window.Date).getTime(),1))}function p(t){let n="originalEvent"in t&&t.originalEvent?t.originalEvent:t,o=!0;if(!e.enabled)return!1;const d=c();if(t.target.closest(`.${d.noMousewheelClass}`))return!1;e.params.cssMode&&n.preventDefault();let u=e.el;"container"!==d.eventsTarget&&(u=document.querySelector(d.eventsTarget));const p=u&&u.contains(n.target);if(!a&&!p&&!d.releaseOnEdges)return!0;let f=0;const m=e.rtlTranslate?-1:1,g=function(e){const t=e;let n=0,i=0,s=0,r=0;return void 0!==t.detail&&(i=t.detail),void 0!==t.wheelDelta&&(i=-t.wheelDelta/120),void 0!==t.wheelDeltaY&&(i=-t.wheelDeltaY/120),void 0!==t.wheelDeltaX&&(n=-t.wheelDeltaX/120),void 0!==t.axis&&void 0!==t.HORIZONTAL_AXIS&&t.axis===t.HORIZONTAL_AXIS&&(n=i,i=0),s=10*n,r=10*i,void 0!==t.deltaY&&(r=t.deltaY),void 0!==t.deltaX&&(s=t.deltaX),t.shiftKey&&!s&&(s=r,r=0),(s||r)&&t.deltaMode&&(1===t.deltaMode?(s*=40,r*=40):(s*=800,r*=800)),s&&!n&&(n=s<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:n,spinY:i,pixelX:s,pixelY:r}}(n);if(d.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;f=-g.pixelX*m}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;f=-g.pixelY}else f=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY;if(0===f)return!0;d.invert&&(f=-f);let v=e.getTranslate()+f*(d.sensitivity??1);v>=e.minTranslate()&&(v=e.minTranslate()),v<=e.maxTranslate()&&(v=e.maxTranslate()),o=!!e.params.loop||!(v===e.minTranslate()||v===e.maxTranslate()),o&&e.params.nested&&n.stopPropagation();const b=e.params.freeMode;if(e.params.freeMode&&b?.enabled){const t={time:A(),delta:Math.abs(f),direction:Math.sign(f)},o=r&&t.time<r.time+500&&t.delta<=r.delta&&t.direction===r.direction;if(!o){r=void 0;let a=e.getTranslate()+f*(d.sensitivity??1);const c=e.isBeginning,u=e.isEnd;if(a>=e.minTranslate()&&(a=e.minTranslate()),a<=e.maxTranslate()&&(a=e.maxTranslate()),e.setTransition(0),e.setTranslate(a),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!c&&e.isBeginning||!u&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),b?.sticky){clearTimeout(s),s=void 0,l.length>=15&&l.shift();const n=l.length?l[l.length-1]:void 0,i=l[0];if(l.push(t),n&&(t.delta>n.delta||t.direction!==n.direction))l.splice(0);else if(l.length>=15&&i&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const n=f>0?.8:.2;r=t,l.splice(0),s=T(()=>{!e.destroyed&&e.params&&e.slideToClosest(e.params.speed,!0,void 0,n)},0)}s||(s=T(()=>{!e.destroyed&&e.params&&(r=t,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5))},500))}o||i("scroll",n);const h=e.params.autoplay;if(e.params.autoplay&&h?.disableOnInteraction&&e.autoplay.stop(),d.releaseOnEdges&&(a===e.minTranslate()||a===e.maxTranslate()))return!0}}else{const n={time:A(),delta:Math.abs(f),direction:Math.sign(f),raw:t};l.length>=2&&l.shift();const i=l.length?l[l.length-1]:void 0;if(l.push(n),i?(n.direction!==i.direction||n.delta>i.delta||n.time>i.time+150)&&h(n):h(n),function(t){const n=c();if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.cancelable&&n.preventDefault(),!1}function f(t){const n=c();let i=e.el;"container"!==n.eventsTarget&&(i=document.querySelector(n.eventsTarget)),i[t]("mouseenter",d),i[t]("mouseleave",u),i[t]("wheel",p)}function m(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",p),!0):!e.mousewheel.enabled&&(f("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener("wheel",p),!0):!!e.mousewheel.enabled&&(f("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{const t=c();!t.enabled&&e.params.cssMode&&g(),t.enabled&&m()}),e.mousewheel={enabled:!1,enable:m,disable:g},n("destroy",()=>{e.params.cssMode&&m(),e.mousewheel.enabled&&g()})};function Te(e,t,n,i){const s=n??{},r=t??{};return e.params.createElements&&Object.keys(i).forEach(t=>{if(!s[t]&&!0===s.auto){let n=M(e.el,`.${i[t]}`)[0];n||(n=P("div",i[t]),n.className=i[t],e.el.append(n)),s[t]=n,r[t]=n}}),s}const Ae='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>',ke=({swiper:e,extendParams:t,on:n,emit:i})=>{function s(){return e.params.navigation}function r(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n&&n.length>1&&1===e.el.querySelectorAll(t).length?n=e.el.querySelector(t):n&&1===n.length&&(n=n[0])),t&&!n?t:n)}function o(t,n){const i=s();F(t).forEach(t=>{t&&(t.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](i.lockClass))})}function a(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return o(n,!1),void o(t,!1);o(n,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function c(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function d(){e.params.navigation=Te(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});const t=s();if(!t.nextEl&&!t.prevEl)return;const n=r(t.nextEl),i=r(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:i});const o=F(n),a=F(i),d=(n,i)=>{if(n){if(t.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const e=document.createElement("div");H(e,Ae);const t=e.querySelector("svg");t&&n.appendChild(t),e.remove()}n.addEventListener("click","next"===i?c:l)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};o.forEach(e=>d(e,"next")),a.forEach(e=>d(e,"prev"))}function u(){const t=s(),{nextEl:n,prevEl:i}=e.navigation,r=F(n),o=F(i),a=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.disabledClass.split(" "))};r.forEach(e=>a(e,"next")),o.forEach(e=>a(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:Ae},n("init",()=>{!1===s().enabled?h():(d(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{u()}),n("enable disable",()=>{const t=s(),{nextEl:n,prevEl:i}=e.navigation,r=F(n),o=F(i);e.enabled?a():[...r,...o].filter(e=>!!e).forEach(e=>e.classList.add(t.lockClass))}),n("click",(t,n)=>{const r=s(),{nextEl:o,prevEl:a}=e.navigation,l=F(o),c=F(a),d=n.target;let u=c.includes(d)||l.includes(d);if(e.isElement&&!u){const e=n.composedPath?n.composedPath():[];e.length&&(u=e.find(e=>l.includes(e)||c.includes(e)))}if(r.hideOnClick&&!u){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===d||e.pagination.el.contains(d)))return;let t;l.length?t=l[0].classList.contains(r.hiddenClass):c.length&&(t=c[0].classList.contains(r.hiddenClass)),i(!0===t?"navigationShow":"navigationHide"),[...l,...c].filter(e=>!!e).forEach(e=>e.classList.toggle(r.hiddenClass))}});const h=()=>{const t=s();e.el.classList.add(...t.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{const t=s();e.el.classList.remove(...t.navigationDisabledClass.split(" ")),d(),a()},disable:h,update:a,init:d,destroy:u})};function Oe(e=""){return`.${e.trim().replace(/([.:!+/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}const Le=e=>{if((e=>!!e.virtual&&!!e.params.virtual?.enabled)(e))return e.virtual.slides.length;const t=e.params.grid?.rows;return e.grid&&t&&t>1?e.slides.length/Math.ceil(t):e.slides.length},De=({swiper:e,extendParams:t,on:n,emit:i})=>{const s="swiper-pagination";let r;t({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:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let o=0;function a(){return e.params.pagination}function l(){return!a().el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function c(e,t){const{bulletActiveClass:n}=a();if(!e)return;let i=e[("prev"===t?"previous":"next")+"ElementSibling"];i&&(i.classList.add(`${n}-${t}`),i=i[("prev"===t?"previous":"next")+"ElementSibling"],i&&i.classList.add(`${n}-${t}-${t}`))}function d(t){const n=t.target.closest(Oe(a().bulletClass));if(!n)return;t.preventDefault();const i=(R(n)??0)*(e.params.slidesPerGroup??1);if(e.params.loop){if(e.realIndex===i)return;const t=(s=e.realIndex,r=i,(r%=o=e.slides.length)===1+(s%=o)?"next":r===s-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i);var s,r,o}function u(){const t=e.rtl,n=a();if(l())return;const s=F(e.pagination.el);let d,u;const h=Le(e),p=e.params.loop?Math.ceil(h/(e.params.slidesPerGroup??1)):e.snapGrid.length;if(e.params.loop?(u=e.previousRealIndex||0,d=(e.params.slidesPerGroup??1)>1?Math.floor(e.realIndex/(e.params.slidesPerGroup??1)):e.realIndex):void 0!==e.snapIndex?(d=e.snapIndex,u=e.previousSnapIndex):(u=e.previousIndex||0,d=e.activeIndex||0),"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const i=e.pagination.bullets;let a=0,l=0,h=0;if(n.dynamicBullets){r=B(i[0],e.isHorizontal()?"width":"height");const t=e.isHorizontal()?"width":"height";s.forEach(e=>{e.style[t]=(r??0)*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==u&&(o+=d-(u||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),a=Math.max(d-o,0),l=a+(Math.min(i.length,n.dynamicMainBullets)-1),h=(l+a)/2}if(i.forEach(e=>{const t=["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`).flatMap(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):[e]);e.classList.remove(...t)}),s.length>1)i.forEach(t=>{const i=R(t);i===d?t.classList.add(...n.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&void 0!==i&&(i>=a&&i<=l&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),i===a&&c(t,"prev"),i===l&&c(t,"next"))});else{const t=i[d];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),e.isElement&&i.forEach((e,t)=>{e.setAttribute("part",t===d?"bullet-active":"bullet")}),n.dynamicBullets){const e=i[a],t=i[l];for(let e=a;e<=l;e+=1)i[e]&&i[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const s=Math.min(i.length,n.dynamicMainBullets+4),o=((r??0)*s-(r??0))/2-h*(r??0),a=t?"right":"left",l=e.isHorizontal()?a:"top";i.forEach(e=>{e.style[l]=`${o}px`})}}s.forEach((t,s)=>{if("fraction"===n.type&&(t.querySelectorAll(Oe(n.currentClass)).forEach(e=>{e.textContent=String(n.formatFractionCurrent(d+1))}),t.querySelectorAll(Oe(n.totalClass)).forEach(e=>{e.textContent=String(n.formatFractionTotal(p))})),"progressbar"===n.type){let i;i=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const s=(d+1)/p;let r=1,o=1;"horizontal"===i?r=s:o=s,t.querySelectorAll(Oe(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${r}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(H(t,n.renderCustom(e,d+1,p)),0===s&&i("paginationRender",t)):(0===s&&i("paginationRender",t),i("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)})}function h(){const t=a();if(l())return;const n=Le(e),s=F(e.pagination.el);let r="";if("bullets"===t.type){let i=e.params.loop?Math.ceil(n/(e.params.slidesPerGroup??1)):e.snapGrid.length;e.params.freeMode&&(e=>!!e.params.freeMode?.enabled)(e)&&i>n&&(i=n);for(let n=0;n<i;n+=1)t.renderBullet?r+=t.renderBullet.call(e,n,t.bulletClass):r+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],s.forEach(n=>{"custom"!==t.type&&H(n,r||""),"bullets"===t.type&&e.pagination.bullets.push(...Array.from(n.querySelectorAll(Oe(t.bulletClass))))}),"custom"!==t.type&&i("paginationRender",s[0])}function p(){e.params.pagination=Te(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=a();if(!t.el)return;let n;if("string"==typeof t.el&&e.isElement&&(n=e.el.querySelector(t.el)),n||"string"!=typeof t.el||(n=[...document.querySelectorAll(t.el)]),n||(n=t.el),n&&(!Array.isArray(n)||0!==n.length)){if(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1)){const t=n.find(t=>z(t,".swiper")[0]===e.el);t&&(n=t)}Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),F(n).forEach(n=>{"bullets"===t.type&&t.clickable&&n.classList.add(...(t.clickableClass||"").split(" ")),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",d),e.enabled||n.classList.add(t.lockClass)})}}function f(){const t=a();if(l())return;const n=e.pagination.el;n&&F(n).forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||"").split(" ")),n.removeEventListener("click",d))}),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=a();F(e.pagination.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===a().enabled?m():(p(),h(),u())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{h(),u()}),n("destroy",()=>{f()}),n("enable disable",()=>{const{el:t}=e.pagination;if(t){const n=a();F(t).forEach(t=>t.classList[e.enabled?"remove":"add"](n.lockClass))}}),n("lock unlock",()=>{u()}),n("click",(t,n)=>{const s=n.target,r=F(e.pagination.el),o=a();if(o.el&&o.hideOnClick&&r&&r.length>0&&!s.classList.contains(o.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&s===e.navigation.nextEl||e.navigation.prevEl&&s===e.navigation.prevEl))return;const t=r[0].classList.contains(o.hiddenClass);i(!0===t?"paginationShow":"paginationHide"),r.forEach(e=>e.classList.toggle(o.hiddenClass))}});const m=()=>{const t=a();e.el.classList.add(t.paginationDisabledClass);const{el:n}=e.pagination;n&&F(n).forEach(e=>e.classList.add(t.paginationDisabledClass)),f()};Object.assign(e.pagination,{enable:()=>{const t=a();e.el.classList.remove(t.paginationDisabledClass);const{el:n}=e.pagination;n&&F(n).forEach(e=>e.classList.remove(t.paginationDisabledClass)),p(),h(),u()},disable:m,render:h,update:u,init:p,destroy:f})},Me=({swiper:e,extendParams:t,on:n,emit:i})=>{let s=!1,r=null,o=null,a=0,l=0,c=0,d=0;function u(){return e.params.scrollbar}function h(){const t=u();if(!t.el||!e.scrollbar.el)return;const{scrollbar:n,rtlTranslate:i}=e,{dragEl:s,el:o}=n,a=e.params.loop?e.progressLoop??0:e.progress;let d=l,h=(c-l)*a;i?(h=-h,h>0?(d=l-h,h=0):-h+l>c&&(d=c+h)):h<0?(d=l+h,h=0):h+l>c&&(d=c-h),e.isHorizontal()?(s.style.transform=`translate3d(${h}px, 0, 0)`,s.style.width=`${d}px`):(s.style.transform=`translate3d(0px, ${h}px, 0)`,s.style.height=`${d}px`),t.hide&&(r&&clearTimeout(r),o.style.opacity="1",r=setTimeout(()=>{o.style.opacity="0",o.style.transitionDuration="400ms"},1e3))}function p(){const t=u();if(!t.el||!e.scrollbar.el)return;const{scrollbar:n}=e,{dragEl:i,el:s}=n;i.style.width="",i.style.height="",c=e.isHorizontal()?s.offsetWidth:s.offsetHeight,d=e.size/(e.virtualSize+(e.params.slidesOffsetBefore??0)-(e.params.centeredSlides?e.snapGrid[0]:0)),l="auto"===t.dragSize?c*d:parseInt(String(t.dragSize),10),e.isHorizontal()?i.style.width=`${l}px`:i.style.height=`${l}px`,s.style.display=d>=1?"none":"",t.hide&&(s.style.opacity="0"),e.params.watchOverflow&&e.enabled&&n.el.classList[e.isLocked?"add":"remove"](t.lockClass)}function f(t){return e.isHorizontal()?t.clientX??t.touches?.[0]?.clientX??0:t.clientY??t.touches?.[0]?.clientY??0}function m(t){const{scrollbar:n,rtlTranslate:i}=e,{el:s}=n;let r;r=(f(t)-I(s)[e.isHorizontal()?"left":"top"]-(null!==a?a:l/2))/(c-l),r=Math.max(Math.min(r,1),0),i&&(r=1-r);const o=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*r;e.updateProgress(o),e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}function g(t){const n=u(),{scrollbar:r,wrapperEl:l}=e,{el:c,dragEl:d}=r;s=!0,a=t.target===d?f(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),l.style.transitionDuration="100ms",d.style.transitionDuration="100ms",m(t),o&&clearTimeout(o),c.style.transitionDuration="0ms",n.hide&&(c.style.opacity="1"),e.params.cssMode&&(e.wrapperEl.style.scrollSnapType="none"),i("scrollbarDragStart",t)}function v(t){const{scrollbar:n,wrapperEl:r}=e,{el:o,dragEl:a}=n;s&&(t.cancelable&&t.preventDefault(),m(t),r.style.transitionDuration="0ms",o.style.transitionDuration="0ms",a.style.transitionDuration="0ms",i("scrollbarDragMove",t))}function b(t){const n=u(),{scrollbar:r,wrapperEl:a}=e,{el:l}=r;s&&(s=!1,e.params.cssMode&&(e.wrapperEl.style.scrollSnapType="",a.style.transitionDuration=""),n.hide&&(o&&clearTimeout(o),o=T(()=>{l.style.opacity="0",l.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())}function y(t){const{scrollbar:n,params:i}=e,s=n.el;if(!s)return;const r=!!i.passiveListeners&&{passive:!1,capture:!1},o=!!i.passiveListeners&&{passive:!0,capture:!1},a="on"===t?"addEventListener":"removeEventListener";s[a]("pointerdown",g,r),document[a]("pointermove",v,r),document[a]("pointerup",b,o)}function w(){const{scrollbar:t,el:n}=e;e.params.scrollbar=Te(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const i=u();if(!i.el)return;let s;if("string"==typeof i.el&&e.isElement&&(s=e.el.querySelector(i.el)),s||"string"!=typeof i.el)s||(s=i.el);else if(s=document.querySelectorAll(i.el),!s.length)return;e.params.uniqueNavElements&&"string"==typeof i.el&&s.length>1&&1===n.querySelectorAll(i.el).length&&(s=n.querySelector(i.el)),s.length>0&&(s=s[0]);const r=s;r.classList.add(e.isHorizontal()?i.horizontalClass:i.verticalClass);let o=null;r&&(o=r.querySelector(Oe(i.dragClass)),o||(o=P("div",i.dragClass),r.append(o))),Object.assign(t,{el:r,dragEl:o}),i.draggable&&u().el&&e.scrollbar.el&&y("on"),r&&r.classList[e.enabled?"remove":"add"](...C(i.lockClass))}function _(){const t=u(),n=e.scrollbar.el;n&&n.classList.remove(...C(e.isHorizontal()?t.horizontalClass:t.verticalClass)),u().el&&e.scrollbar.el&&y("off")}t({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"}}),e.scrollbar={el:null,dragEl:null},n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const t=u();F(e.scrollbar.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n("init",()=>{!1===u().enabled?S():(w(),p(),h())}),n("update resize observerUpdate lock unlock changeDirection",()=>{p()}),n("setTranslate",()=>{h()}),n("setTransition",(t,n)=>{!function(t){u().el&&e.scrollbar.el&&(e.scrollbar.dragEl.style.transitionDuration=`${t}ms`)}(n)}),n("enable disable",()=>{const{el:t}=e.scrollbar;t&&t.classList[e.enabled?"remove":"add"](...C(u().lockClass))}),n("destroy",()=>{_()});const S=()=>{const t=u();e.el.classList.add(...C(t.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...C(t.scrollbarDisabledClass)),_()};Object.assign(e.scrollbar,{enable:()=>{const t=u();e.el.classList.remove(...C(t.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...C(t.scrollbarDisabledClass)),w(),p(),h()},disable:S,updateSize:p,setTranslate:h,init:w,destroy:_})},Pe=({swiper:e,extendParams:t,on:n})=>{t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let i,s=null,r=!1,o=(new Date).getTime();function a(){return e.params.a11y}function l(e){s&&e&&H(s,e)}function c(e){F(e).forEach(e=>{e.setAttribute("tabIndex","0")})}function d(e){F(e).forEach(e=>{e.setAttribute("tabIndex","-1")})}function u(e,t){F(e).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){F(e).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function p(e,t){F(e).forEach(e=>{e.setAttribute("aria-label",t)})}function f(e){F(e).forEach(e=>{e.setAttribute("aria-disabled","true")})}function m(e){F(e).forEach(e=>{e.removeAttribute("aria-disabled")})}function g(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=a(),i=e.params.pagination,s=t.target;if(!e.pagination||!e.pagination.el||s!==e.pagination.el&&!e.pagination.el.contains(s)||s.matches(Oe(i?.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const t=F(e.navigation.prevEl);F(e.navigation.nextEl).includes(s)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),t.includes(s)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}e.pagination&&s.matches(Oe(i?.bulletClass))&&s.click()}}function v(){return!!(e.pagination&&e.pagination.bullets&&e.pagination.bullets.length)}function b(){const t=e.params.pagination;return v()&&!!t?.clickable}const y=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",g)),p(e,n)},w=t=>{i&&i!==t.target&&!i.contains(t.target)&&(r=!0),e.a11y.clicked=!0},_=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},S=e=>{o=(new Date).getTime()},E=t=>{const n=a();if(e.a11y.clicked||!n.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const s=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!s||!e.slides.includes(s))return;i=s;const l=(e=>!!e.virtual&&!!e.params.virtual?.enabled)(e),c=(l?parseInt(s.getAttribute("data-swiper-slide-index")||"0",10):e.slides.indexOf(s))===e.activeIndex,d=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(s);if(c||d)return;const u=t.sourceCapabilities;u&&u.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{r||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index")||"0",10)),0):l?e.slideTo(e.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index")||"0",10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(s)),0),r=!1)}))},x=()=>{const t=a();t.itemRoleDescriptionMessage&&h(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&u(e.slides,t.slideRole);const n=e.slides.length,i=t.slideLabelMessage;i&&e.slides.forEach((t,s)=>{const r=e.params.loop?parseInt(t.getAttribute("data-swiper-slide-index")||"0",10):s;p(t,i.replace(/\{\{index\}\}/,String(r+1)).replace(/\{\{slidesLength\}\}/,String(n)))})};n("beforeInit",()=>{s=P("span",a().notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{a().enabled&&(()=>{const t=a();s&&e.el.append(s);const n=e.el;t.containerRoleDescriptionMessage&&h(n,t.containerRoleDescriptionMessage),t.containerMessage&&p(n,t.containerMessage),t.containerRole&&u(n,t.containerRole);const i=e.wrapperEl,r=String(t.id||i.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`);var o,l,c;if(o=r,F(i).forEach(e=>{e.setAttribute("id",o)}),t.wrapperLiveRegion){const t=e.params.autoplay;l=i,c=e.params.autoplay&&t?.enabled?"off":"polite",F(l).forEach(e=>{e.setAttribute("aria-live",c)})}x();const d=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},f=F(d.nextEl),m=F(d.prevEl);f&&f.forEach(e=>y(e,0,t.nextSlideMessage)),m&&m.forEach(e=>y(e,0,t.prevSlideMessage)),b()&&F(e.pagination.el).forEach(e=>{e.addEventListener("keydown",g)}),document.addEventListener("visibilitychange",S),e.el.addEventListener("focus",E,!0),e.el.addEventListener("pointerdown",w,!0),e.el.addEventListener("pointerup",_,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{a().enabled&&x()}),n("fromEdge toEdge afterInit lock unlock",()=>{a().enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:t,prevEl:n}=e.navigation;n&&(e.isBeginning?(f(n),d(n)):(m(n),c(n))),t&&(e.isEnd?(f(t),d(t)):(m(t),c(t)))}()}),n("paginationUpdate",()=>{a().enabled&&function(){const t=a();if(!v())return;const n=e.params.pagination;e.pagination.bullets.forEach(e=>{n.clickable&&(c(e),n.renderBullet||(u(e,"button"),p(e,t.paginationBulletMessage.replace(/\{\{index\}\}/,String((R(e)??0)+1))))),e.matches(Oe(n.bulletActiveClass))?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")})}()}),n("destroy",()=>{a().enabled&&function(){s&&s.remove();const t=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},n=F(t.nextEl),i=F(t.prevEl);n&&n.forEach(e=>e.removeEventListener("keydown",g)),i&&i.forEach(e=>e.removeEventListener("keydown",g)),b()&&F(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",g)}),document.removeEventListener("visibilitychange",S),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",E,!0),e.el.removeEventListener("pointerdown",w,!0),e.el.removeEventListener("pointerup",_,!0))}()})},Ie=({swiper:e,extendParams:t,on:n,emit:i,params:s})=>{function r(){return e.params.autoplay}e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});const o="object"==typeof s.autoplay&&s.autoplay&&"number"==typeof s.autoplay.delay?s.autoplay.delay:3e3;let a,l,c,d=o,u=o,h=0,p=(new Date).getTime(),f=!1,m=!1,g=!1,v=!1,b=!1;function y(t){if(!e||e.destroyed||!e.wrapperEl)return;if(t.target!==e.wrapperEl)return;e.wrapperEl.removeEventListener("transitionend",y);const n=t.detail;b||n&&n.bySwiperTouchMove||T()}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(u=h,f=!1);const t=e.autoplay.paused?h:p+u-(new Date).getTime();e.autoplay.timeLeft=t,i("autoplayTimeLeft",t,t/d),l=requestAnimationFrame(()=>{w()})},_=()=>{let t=r().delay;const n=(()=>{let t;const n=!!e.params.virtual?.enabled;if(t=e.virtual&&n?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],!t)return;const i=t.getAttribute("data-swiper-autoplay");return null!=i?parseInt(i,10):void 0})();return"number"==typeof n&&!Number.isNaN(n)&&n>0&&(t=n),t},S=t=>{if(e.destroyed||!e.autoplay.running)return 0;void 0!==l&&cancelAnimationFrame(l),w();let n=t;void 0===n&&(n=_(),d=n,u=n),h=n;const s=e.params.speed,o=()=>{if(!e||e.destroyed)return;const t=r();t.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(s,!0,!0),i("autoplay")):t.stopOnLastSlide||(e.slideTo(e.slides.length-1,s,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(s,!0,!0),i("autoplay")):t.stopOnLastSlide||(e.slideTo(0,s,!0,!0),i("autoplay")),e.params.cssMode&&(p=(new Date).getTime(),requestAnimationFrame(()=>{S()}))};return n>0?(void 0!==a&&clearTimeout(a),a=setTimeout(()=>{o()},n)):requestAnimationFrame(()=>{o()}),n},E=()=>(p=(new Date).getTime(),e.autoplay.running=!0,S(),i("autoplayStart"),!0),x=()=>(e.autoplay.running=!1,void 0!==a&&clearTimeout(a),void 0!==l&&cancelAnimationFrame(l),i("autoplayStop"),!0),C=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;void 0!==a&&clearTimeout(a),t||(v=!0);const s=()=>{i("autoplayPause"),r().waitForTransition?e.wrapperEl.addEventListener("transitionend",y):T()};if(e.autoplay.paused=!0,n)return void s();const o=h||r().delay;h=o-((new Date).getTime()-p),e.isEnd&&h<0&&!e.params.loop||(h<0&&(h=0),s())},T=()=>{e.isEnd&&h<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=(new Date).getTime(),v?(v=!1,S(h)):S(),e.autoplay.paused=!1,i("autoplayResume"))},A=()=>{!e.destroyed&&e.autoplay.running&&("hidden"===document.visibilityState&&(v=!0,C(!0)),"visible"===document.visibilityState&&T())},k=t=>{"mouse"===t.pointerType&&(v=!0,b=!0,e.animating||e.autoplay.paused||C(!0))},O=t=>{"mouse"===t.pointerType&&(b=!1,e.autoplay.paused&&T())};n("init",()=>{r().enabled&&(r().pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",k),e.el.addEventListener("pointerleave",O)),document.addEventListener("visibilitychange",A),E())}),n("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",k),e.el.removeEventListener("pointerleave",O)),document.removeEventListener("visibilitychange",A),e.autoplay.running&&x()}),n("_freeModeStaticRelease",()=>{(g||v)&&T()}),n("_freeModeNoMomentumRelease",()=>{r().disableOnInteraction?x():C(!0,!0)}),n("beforeTransitionStart",(t,n,i)=>{!e.destroyed&&e.autoplay.running&&(i||!r().disableOnInteraction?C(!0,!0):x())}),n("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(r().disableOnInteraction?x():(m=!0,g=!1,v=!1,c=setTimeout(()=>{v=!0,g=!0,C(!0)},200)))}),n("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&m){if(void 0!==c&&clearTimeout(c),void 0!==a&&clearTimeout(a),r().disableOnInteraction)return g=!1,void(m=!1);g&&e.params.cssMode&&T(),g=!1,m=!1}}),n("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(h=_(),d=_())}),Object.assign(e.autoplay,{start:E,stop:x,pause:C,resume:T})};function Ne({element:e,visibleClass:t,waitMode:n="transitionend",timeoutDuration:i,hideMode:s="hidden",displayValue:r="block"}){if("timeout"===n&&"number"!=typeof i)return;window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(n="immediate");const o=t=>{t.target===e&&(a(),e.removeEventListener("transitionend",o))},a=()=>{"display"===s?e.style.display="none":e.setAttribute("hidden",!0)};return{show(){e.removeEventListener("transitionend",o),this.timeout&&clearTimeout(this.timeout),"display"===s?e.style.display=r:e.removeAttribute("hidden"),e.offsetHeight,e.classList.add(t)},hide(){"transitionend"===n?e.addEventListener("transitionend",o):"timeout"===n?this.timeout=setTimeout(()=>{a()},i):a(),e.classList.remove(t)},toggle(){this.isHidden()?this.show():this.hide()},isHidden(){const n=null!==e.getAttribute("hidden"),i="none"===e.style.display,s=[...e.classList].includes(t);return n||i||!s},timeout:null}}var Re="top",ze="bottom",Be="right",Fe="left",He="auto",$e=[Re,ze,Be,Fe],Ve="start",je="end",qe="viewport",We="popper",Ue=$e.reduce(function(e,t){return e.concat([t+"-"+Ve,t+"-"+je])},[]),Ge=[].concat($e,[He]).reduce(function(e,t){return e.concat([t,t+"-"+Ve,t+"-"+je])},[]),Ye=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Xe(e){return e?(e.nodeName||"").toLowerCase():null}function Ke(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Je(e){return e instanceof Ke(e).Element||e instanceof Element}function Qe(e){return e instanceof Ke(e).HTMLElement||e instanceof HTMLElement}function Ze(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ke(e).ShadowRoot||e instanceof ShadowRoot)}var et={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];Qe(s)&&Xe(s)&&(Object.assign(s.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Qe(i)&&Xe(i)&&(Object.assign(i.style,r),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function tt(e){return e.split("-")[0]}var nt=Math.max,it=Math.min,st=Math.round;function rt(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ot(){return!/^((?!chrome|android).)*safari/i.test(rt())}function at(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,r=1;t&&Qe(e)&&(s=e.offsetWidth>0&&st(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&st(i.height)/e.offsetHeight||1);var o=(Je(e)?Ke(e):window).visualViewport,a=!ot()&&n,l=(i.left+(a&&o?o.offsetLeft:0))/s,c=(i.top+(a&&o?o.offsetTop:0))/r,d=i.width/s,u=i.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function lt(e){var t=at(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function ct(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ze(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function dt(e){return Ke(e).getComputedStyle(e)}function ut(e){return["table","td","th"].indexOf(Xe(e))>=0}function ht(e){return((Je(e)?e.ownerDocument:e.document)||window.document).documentElement}function pt(e){return"html"===Xe(e)?e:e.assignedSlot||e.parentNode||(Ze(e)?e.host:null)||ht(e)}function ft(e){return Qe(e)&&"fixed"!==dt(e).position?e.offsetParent:null}function mt(e){for(var t=Ke(e),n=ft(e);n&&ut(n)&&"static"===dt(n).position;)n=ft(n);return n&&("html"===Xe(n)||"body"===Xe(n)&&"static"===dt(n).position)?t:n||function(e){var t=/firefox/i.test(rt());if(/Trident/i.test(rt())&&Qe(e)&&"fixed"===dt(e).position)return null;var n=pt(e);for(Ze(n)&&(n=n.host);Qe(n)&&["html","body"].indexOf(Xe(n))<0;){var i=dt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function gt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vt(e,t,n){return nt(e,it(t,n))}function bt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function yt(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var wt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=tt(n.placement),l=gt(a),c=[Fe,Be].indexOf(a)>=0?"height":"width";if(r&&o){var d=function(e,t){return bt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:yt(e,$e))}(s.padding,n),u=lt(r),h="y"===l?Re:Fe,p="y"===l?ze:Be,f=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],m=o[l]-n.rects.reference[l],g=mt(r),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=f/2-m/2,y=d[h],w=v-u[c]-d[p],_=v/2-u[c]/2+b,S=vt(y,_,w),E=l;n.modifiersData[i]=((t={})[E]=S,t.centerOffset=S-_,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&ct(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _t(e){return e.split("-")[1]}var St={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Et(e){var t,n=e.popper,i=e.popperRect,s=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=o.x,p=void 0===h?0:h,f=o.y,m=void 0===f?0:f,g="function"==typeof d?d({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),y=Fe,w=Re,_=window;if(c){var S=mt(n),E="clientHeight",x="clientWidth";S===Ke(n)&&"static"!==dt(S=ht(n)).position&&"absolute"===a&&(E="scrollHeight",x="scrollWidth"),(s===Re||(s===Fe||s===Be)&&r===je)&&(w=ze,m-=(u&&S===_&&_.visualViewport?_.visualViewport.height:S[E])-i.height,m*=l?1:-1),s!==Fe&&(s!==Re&&s!==ze||r!==je)||(y=Be,p-=(u&&S===_&&_.visualViewport?_.visualViewport.width:S[x])-i.width,p*=l?1:-1)}var C,T=Object.assign({position:a},c&&St),A=!0===d?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:st(n*s)/s||0,y:st(i*s)/s||0}}({x:p,y:m},Ke(n)):{x:p,y:m};return p=A.x,m=A.y,l?Object.assign({},T,((C={})[w]=b?"0":"",C[y]=v?"0":"",C.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},T,((t={})[w]=b?m+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var xt={passive:!0},Ct={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,r=void 0===s||s,o=i.resize,a=void 0===o||o,l=Ke(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",n.update,xt)}),a&&l.addEventListener("resize",n.update,xt),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",n.update,xt)}),a&&l.removeEventListener("resize",n.update,xt)}},data:{}},Tt={left:"right",right:"left",bottom:"top",top:"bottom"};function At(e){return e.replace(/left|right|bottom|top/g,function(e){return Tt[e]})}var kt={start:"end",end:"start"};function Ot(e){return e.replace(/start|end/g,function(e){return kt[e]})}function Lt(e){var t=Ke(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dt(e){return at(ht(e)).left+Lt(e).scrollLeft}function Mt(e){var t=dt(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function Pt(e){return["html","body","#document"].indexOf(Xe(e))>=0?e.ownerDocument.body:Qe(e)&&Mt(e)?e:Pt(pt(e))}function It(e,t){var n;void 0===t&&(t=[]);var i=Pt(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),r=Ke(i),o=s?[r].concat(r.visualViewport||[],Mt(i)?i:[]):i,a=t.concat(o);return s?a:a.concat(It(pt(o)))}function Nt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Rt(e,t,n){return t===qe?Nt(function(e,t){var n=Ke(e),i=ht(e),s=n.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=ot();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+Dt(e),y:l}}(e,n)):Je(t)?function(e,t){var n=at(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Nt(function(e){var t,n=ht(e),i=Lt(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=nt(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=nt(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Dt(e),l=-i.scrollTop;return"rtl"===dt(s||n).direction&&(a+=nt(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(ht(e)))}function zt(e){var t,n=e.reference,i=e.element,s=e.placement,r=s?tt(s):null,o=s?_t(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Re:t={x:a,y:n.y-i.height};break;case ze:t={x:a,y:n.y+n.height};break;case Be:t={x:n.x+n.width,y:l};break;case Fe:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?gt(r):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case Ve:t[c]=t[c]-(n[d]/2-i[d]/2);break;case je:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function Bt(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,r=n.strategy,o=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?qe:c,u=n.elementContext,h=void 0===u?We:u,p=n.altBoundary,f=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=bt("number"!=typeof g?g:yt(g,$e)),b=h===We?"reference":We,y=e.rects.popper,w=e.elements[f?b:h],_=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=It(pt(e)),n=["absolute","fixed"].indexOf(dt(e).position)>=0&&Qe(e)?mt(e):e;return Je(n)?t.filter(function(e){return Je(e)&&ct(e,n)&&"body"!==Xe(e)}):[]}(e):[].concat(t),r=[].concat(s,[n]),o=r[0],a=r.reduce(function(t,n){var s=Rt(e,n,i);return t.top=nt(s.top,t.top),t.right=it(s.right,t.right),t.bottom=it(s.bottom,t.bottom),t.left=nt(s.left,t.left),t},Rt(e,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Je(w)?w:w.contextElement||ht(e.elements.popper),l,d,o),S=at(e.elements.reference),E=zt({reference:S,element:y,placement:s}),x=Nt(Object.assign({},y,E)),C=h===We?x:S,T={top:_.top-C.top+v.top,bottom:C.bottom-_.bottom+v.bottom,left:_.left-C.left+v.left,right:C.right-_.right+v.right},A=e.modifiersData.offset;if(h===We&&A){var k=A[s];Object.keys(T).forEach(function(e){var t=[Be,ze].indexOf(e)>=0?1:-1,n=[Re,ze].indexOf(e)>=0?"y":"x";T[e]+=k[n]*t})}return T}function Ft(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Ge:l,d=_t(i),u=d?a?Ue:Ue.filter(function(e){return _t(e)===d}):$e,h=u.filter(function(e){return c.indexOf(e)>=0});0===h.length&&(h=u);var p=h.reduce(function(t,n){return t[n]=Bt(e,{placement:n,boundary:s,rootBoundary:r,padding:o})[tt(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var Ht={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0===o||o,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=tt(g),b=l||(v!==g&&f?function(e){if(tt(e)===He)return[];var t=At(e);return[Ot(e),t,Ot(t)]}(g):[At(g)]),y=[g].concat(b).reduce(function(e,n){return e.concat(tt(n)===He?Ft(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,_=t.rects.popper,S=new Map,E=!0,x=y[0],C=0;C<y.length;C++){var T=y[C],A=tt(T),k=_t(T)===Ve,O=[Re,ze].indexOf(A)>=0,L=O?"width":"height",D=Bt(t,{placement:T,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),M=O?k?Be:Fe:k?ze:Re;w[L]>_[L]&&(M=At(M));var P=At(M),I=[];if(r&&I.push(D[A]<=0),a&&I.push(D[M]<=0,D[P]<=0),I.every(function(e){return e})){x=T,E=!1;break}S.set(T,I)}if(E)for(var N=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},R=f?3:1;R>0&&"break"!==N(R);R--);t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function $t(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Vt(e){return[Re,Be,ze,Fe].some(function(t){return e[t]>=0})}var jt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=Bt(t,{elementContext:"reference"}),a=Bt(t,{altBoundary:!0}),l=$t(o,i),c=$t(a,s,r),d=Vt(l),u=Vt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},qt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,r=void 0===s?[0,0]:s,o=Ge.reduce(function(e,n){return e[n]=function(e,t,n){var i=tt(e),s=[Fe,Re].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[Fe,Be].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,t.rects,r),e},{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}},Wt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=zt({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Ut={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,m=void 0===f?0:f,g=Bt(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=tt(t.placement),b=_t(t.placement),y=!b,w=gt(v),_="x"===w?"y":"x",S=t.modifiersData.popperOffsets,E=t.rects.reference,x=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(r){var O,L="y"===w?Re:Fe,D="y"===w?ze:Be,M="y"===w?"height":"width",P=S[w],I=P+g[L],N=P-g[D],R=p?-x[M]/2:0,z=b===Ve?E[M]:x[M],B=b===Ve?-x[M]:-E[M],F=t.elements.arrow,H=p&&F?lt(F):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=$[L],j=$[D],q=vt(0,E[M],H[M]),W=y?E[M]/2-R-q-V-T.mainAxis:z-q-V-T.mainAxis,U=y?-E[M]/2+R+q+j+T.mainAxis:B+q+j+T.mainAxis,G=t.elements.arrow&&mt(t.elements.arrow),Y=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,X=null!=(O=null==A?void 0:A[w])?O:0,K=P+U-X,J=vt(p?it(I,P+W-X-Y):I,P,p?nt(N,K):N);S[w]=J,k[w]=J-P}if(a){var Q,Z="x"===w?Re:Fe,ee="x"===w?ze:Be,te=S[_],ne="y"===_?"height":"width",ie=te+g[Z],se=te-g[ee],re=-1!==[Re,Fe].indexOf(v),oe=null!=(Q=null==A?void 0:A[_])?Q:0,ae=re?ie:te-E[ne]-x[ne]-oe+T.altAxis,le=re?te+E[ne]+x[ne]-oe-T.altAxis:se,ce=p&&re?function(e,t,n){var i=vt(e,t,n);return i>n?n:i}(ae,te,le):vt(p?ae:ie,te,p?le:se);S[_]=ce,k[_]=ce-te}t.modifiersData[i]=k}},requiresIfExists:["offset"]};function Gt(e,t,n){void 0===n&&(n=!1);var i,s,r=Qe(t),o=Qe(t)&&function(e){var t=e.getBoundingClientRect(),n=st(t.width)/e.offsetWidth||1,i=st(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=ht(t),l=at(e,o,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==Xe(t)||Mt(a))&&(c=(i=t)!==Ke(i)&&Qe(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:Lt(i)),Qe(t)?((d=at(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Dt(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Yt(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||s(e)}),i}var Xt={placement:"bottom",modifiers:[],strategy:"absolute"};function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Jt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,r=void 0===s?Xt:s;return function(e,t,n){void 0===n&&(n=r);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xt,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},r,a.options,s),a.scrollParents={reference:Je(e)?It(e):e.contextElement?It(e.contextElement):[],popper:It(t)};var o,c,h=function(e){var t=Yt(e);return Ye.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((o=[].concat(i,a.options.modifiers),c=o.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return a.orderedModifiers=h.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var r=s({state:a,name:t,instance:d,options:i});l.push(r||function(){})}}),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Kt(t,n)){a.rects={reference:Gt(t,mt(n),"fixed"===a.options.strategy),popper:lt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],r=s.fn,o=s.options,l=void 0===o?{}:o,u=s.name;"function"==typeof r&&(a=r({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise(function(e){d.forceUpdate(),e(a)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(s())})})),o}),destroy:function(){u(),c=!0}};if(!Kt(e,t))return d;function u(){l.forEach(function(e){return e()}),l=[]}return d.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var Qt=Jt({defaultModifiers:[Ct,Wt,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,r=n.adaptive,o=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:tt(t.placement),variation:_t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Et(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Et(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},et,qt,Ht,Ut,wt,jt]});function Zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var en,tn={exports:{}},nn=(en||(en=1,tn.exports=function(){var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function n(e,t){return e.substring(0,t.length)===t}function i(e,t,n){if((e[t]||e[n])&&e[t]===e[n])throw new Error(t)}function s(e){return"number"==typeof e&&isFinite(e)}function r(e,n,i,r,o,a,l,c,d,u,h,p){var f,m,g,v,b,y=p,w="",_="";return a&&(p=a(p)),!!s(p)&&(!1!==e&&0===parseFloat(p.toFixed(e))&&(p=0),p<0&&(f=!0,p=Math.abs(p)),!1!==e&&(b=e,v=(v=p).toString().split("e"),p=(+((v=(v=Math.round(+(v[0]+"e"+(v[1]?+v[1]+b:b)))).toString().split("e"))[0]+"e"+(v[1]?+v[1]-b:-b))).toFixed(b)),-1!==(p=p.toString()).indexOf(".")?(g=(m=p.split("."))[0],i&&(w=i+m[1])):g=p,n&&(g=t(g).match(/.{1,3}/g),g=t(g.join(t(n)))),f&&c&&(_+=c),r&&(_+=r),f&&d&&(_+=d),_+=g,_+=w,o&&(_+=o),u&&(_=u(_,y)),_)}function o(e,t,i,r,o,a,l,c,d,u,h,p){var f,m="";return h&&(p=h(p)),!(!p||"string"!=typeof p)&&(c&&n(p,c)&&(p=p.replace(c,""),f=!0),r&&n(p,r)&&(p=p.replace(r,"")),d&&n(p,d)&&(p=p.replace(d,""),f=!0),o&&function(e,t){return e.slice(-1*t.length)===t}(p,o)&&(p=p.slice(0,-1*o.length)),t&&(p=p.split(t).join("")),i&&(p=p.replace(i,".")),f&&(m+="-"),""!==(m=(m+=p).replace(/[^0-9\.\-.]/g,""))&&(m=Number(m),l&&(m=l(m)),!!s(m)&&m))}function a(t,n,i){var s,r=[];for(s=0;s<e.length;s+=1)r.push(t[e[s]]);return r.push(i),n.apply("",r)}return function t(n){if(!(this instanceof t))return new t(n);"object"==typeof n&&(n=function(t){var n,s,r,o={};for(void 0===t.suffix&&(t.suffix=t.postfix),n=0;n<e.length;n+=1)if(void 0===(r=t[s=e[n]]))"negative"!==s||o.negativeBefore?"mark"===s&&"."!==o.thousand?o[s]=".":o[s]=!1:o[s]="-";else if("decimals"===s){if(!(r>=0&&r<8))throw new Error(s);o[s]=r}else if("encoder"===s||"decoder"===s||"edit"===s||"undo"===s){if("function"!=typeof r)throw new Error(s);o[s]=r}else{if("string"!=typeof r)throw new Error(s);o[s]=r}return i(o,"mark","thousand"),i(o,"prefix","negative"),i(o,"prefix","negativeBefore"),o}(n),this.to=function(e){return a(n,r,e)},this.from=function(e){return a(n,o,e)})}}()),tn.exports),sn=Zt(nn);function rn(e){return e.charAt(0).toLowerCase()+e.slice(1)}const on={rootContainerSelector:"#root-tooltips",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom",strategy:"absolute",modifiers:[{name:"arrow",options:{element:".tooltip__arrow",padding:10}},{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["right","top","auto"]}},{name:"offset",options:{offset:({placement:e})=>e.includes("start")?[-10,0]:e.includes("end")?[10,0]:[0,0]}}]}};class an{element;config;instance;trigger;rootContainer;transitioner;isOpen=!1;ignoreNextBlur=!1;constructor(e,t){return this.element=e,this.config={...on,...t},this.config.popperOptions={...on.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...on.popperOptions.modifiers,...t?.popperOptions?.modifiers||[]],this.handleVisibility=this.handleVisibility.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onDialogMouseDown=this.onDialogMouseDown.bind(this),this.onDocumentClick=this.onDocumentClick.bind(this),this.element.ODS_Tooltip=this,this.init(),this}static getInstance(e){return e&&e.ODS_Tooltip?e.ODS_Tooltip:null}wrapLastWordAndButton(){if(!this.element.hasAttribute("data-tooltip-keep-with-text"))return;const e=this.trigger.previousSibling;if(!e||e.nodeType!==Node.TEXT_NODE)return;const t=(e.textContent?.trim()||"").split(" "),n=t.pop(),i=t.join(" ");e.textContent=i+" ";const s=document.createElement("span");s.className="text-nowrap",s.innerHTML=`${n} ${this.trigger.outerHTML}`,this.trigger.parentNode?.replaceChild(s,this.trigger),this.trigger=s.querySelector("[data-tooltip-trigger]")}init(){this.trigger=document.querySelector(`[data-tooltip-trigger][aria-describedby=${this.element.getAttribute("id")}]`),this.trigger,this.element.hasAttribute("data-tooltip-keep-with-text")&&this.wrapLastWordAndButton(),this.rootContainer=document.querySelector(this.config.rootContainerSelector),this.rootContainer&&this.rootContainer.appendChild(this.element);const e=this.element.getAttribute("data-tooltip-placement");e&&(this.config.popperOptions.placement=e),this.instance=Qt(this.trigger,this.element,this.config.popperOptions),this.transitioner=Ne({element:this.element,visibleClass:"is-visible"}),this.element.addEventListener("mousedown",this.onDialogMouseDown),this.trigger.addEventListener("click",this.handleVisibility),this.trigger.addEventListener("keydown",this.handleVisibility),this.trigger.addEventListener("blur",this.handleVisibility)}onDialogMouseDown(){this.ignoreNextBlur=!0}onDocumentClick(e){const t=e.target;t&&(this.trigger.contains(t)||this.element.contains(t)||this.hide())}handleVisibility(e){if("click"!==e.type)if("keydown"!==e.type){if("blur"===e.type){if(this.ignoreNextBlur)return void(this.ignoreNextBlur=!1);this.hide()}}else this.onKeydown(e);else this.toggle()}onKeydown(e){if(("Enter"===e.key||" "===e.key)&&"BUTTON"!==this.trigger.tagName)return e.preventDefault(),void this.toggle();w.ESC.includes(e.key)&&this.hide()}toggle(){this.isOpen?this.hide():this.show()}show(){this.transitioner.show(),this.trigger.classList.add("is-active"),this.isOpen=!0,this.instance.forceUpdate(),document.addEventListener("click",this.onDocumentClick)}hide(){this.transitioner.hide(),this.trigger.classList.remove("is-active"),this.isOpen=!1,document.removeEventListener("click",this.onDocumentClick)}update(){this.instance.forceUpdate()}destroy(){this.element.removeEventListener("mousedown",this.onDialogMouseDown),this.trigger.removeEventListener("click",this.handleVisibility),this.trigger.removeEventListener("keydown",this.handleVisibility),this.trigger.removeEventListener("blur",this.handleVisibility),document.removeEventListener("click",this.onDocumentClick),this.instance.destroy(),this.element.ODS_Tooltip=null,this.config.removeDialogOnDestroy&&this.element.remove()}}const ln="carousel",cn=`${ln}__viewport-wrapper`,dn=`${ln}__track`,un=`${ln}__slide`,hn=`${ln}__pagination-item`,pn="is-active",fn=`${ln}--bleed-right`,mn=`${ln}--bleed-right-no-left`,gn=`.${ln}__viewport`,vn=`.${dn}`,bn=`.${ln}__prev`,yn=`.${ln}__next`,wn=`.${ln}__pagination`,_n=`.${ln}__scrollbar`,Sn=`.${pn}`,En={navigation:{nextEl:yn,prevEl:bn},pagination:{el:wn,clickable:!0,bulletClass:hn,bulletActiveClass:pn,renderBullet:(e,t)=>`<button aria-label="Page ${e+1}" role="tab" class="${t}" type="button"></button>`},scrollbar:{el:_n,draggable:!0,enabled:!0,horizontalClass:`${ln}__scrollbar-horizontal`,dragClass:`${ln}__scrollbar-drag`,hide:!1},slidesPerView:1.2,spaceBetween:20,mousewheel:{forceToAxis:!0,sensitivity:1},a11y:{enabled:!0,scrollOnFocus:!1,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},loop:!1,cssMode:!1,direction:"horizontal",breakpoints:{1240:{slidesPerView:1.6}},wrapperClass:dn,slideClass:un,slideActiveClass:pn,slideNextClass:`${ln}__slide-next`,slidePrevClass:`${ln}__slide-prev`};class xn{element;config;viewport;track;instance;carouselId;isScrollbarDragging=!1;externalControlsState=null;resizeObserver;resizeRafId;boundWindowResizeHandler;bleedResizeHandler;static OVERFLOW_EPSILON_PX=1;getViewportWrapper(){return this.element.querySelector(`.${cn}`)}isBleedRight(){return this.element.classList.contains(fn)||this.element.classList.contains(mn)}getSlidesPerView(){return Number(this.instance?.params?.slidesPerView)||1}setScrollbarVisible(e){const t=this.element.querySelector(_n);t&&(t.style.display=e?"":"none")}getSlidesContentWidth(){if(!this.instance)return this.track?.scrollWidth||0;const e=Array.from(this.instance.slides),t=e.reduce((e,t)=>e+t.offsetWidth,0),n=Number(this.instance.params?.spaceBetween)||0,i=t+Math.max(e.length-1,0)*n;return t<=0||i<=0?this.track?.scrollWidth||0:i}getOverflowWidth(e){const t=this.isBleedRight()?this.element.clientWidth||e?.clientWidth||0:this.viewport?.clientWidth||0;return t<=0?0:this.getSlidesContentWidth()-t}hasScrollableContent(e){if(!this.instance||!this.instance.params)return!1;const t=this.getOverflowWidth(e);return 0!==t?t>xn.OVERFLOW_EPSILON_PX:this.instance.slides.length>this.getSlidesPerView()}constructor(e,t){const n=e.querySelector(_n),i="object"==typeof t?.scrollbar&&null!==t.scrollbar?t.scrollbar:void 0,s="object"==typeof En.scrollbar&&null!==En.scrollbar?En.scrollbar:void 0;return this.element=e,this.config={...En,...t,scrollbar:{...En.scrollbar??{},...t?.scrollbar??{},el:n,enabled:!!n&&(i?.enabled??s?.enabled)}},this.handleSlideChange=this.handleSlideChange.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.boundWindowResizeHandler=this.handleWindowResize.bind(this),this.element.ODS_Carousel=this,requestAnimationFrame(()=>{this.init()}),this}init(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions();const e=this.isBleedRight();this.instance=new _e(this.viewport,{...this.config,watchOverflow:!e&&this.config.watchOverflow,enabled:!1,modules:[ke,De,Me,Pe,xe,Ce],on:{slideChange:this.handleSlideChange,slideChangeTransitionEnd:()=>{this.updateExternalControlsState()},scrollbarDragStart:()=>{this.isScrollbarDragging=!0},scrollbarDragEnd:()=>{this.isScrollbarDragging=!1,this.updateExternalControlsState(!0)}}}),this.updateCarouselEnabledState(),this.isBleedRight()&&(this.adjustConfigForBleedRight(),this.fixBleedRightScrollbar()),this.syncScrollbar(),this.instance&&"function"==typeof this.instance.on&&this.instance.on("resize",()=>{this.updateCarouselEnabledState()}),this.observeVisibilityChanges(),window.addEventListener("resize",this.boundWindowResizeHandler),this.initExternalControls(),requestAnimationFrame(()=>{this.instance&&this.instance.update()})}handleWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateCarouselEnabledState(),this.bleedResizeHandler?.(),this.updateExternalControlsState(),this.instance.scrollbar?.updateSize()))})}syncScrollbar(){requestAnimationFrame(()=>{this.instance?.scrollbar&&this.instance.scrollbar.updateSize()})}observeVisibilityChanges(){"undefined"!=typeof ResizeObserver&&(this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(()=>{this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateCarouselEnabledState(),this.instance.scrollbar?.updateSize()))}),this.resizeObserver.observe(this.viewport))}fixBleedRightScrollbar(){const e=()=>{const e=this.getViewportWrapper(),t=this.instance?.scrollbar,n=this.instance;if(!(e&&t&&t.dragEl&&n))return;if(!this.hasScrollableContent(e))return void this.setScrollbarVisible(!1);this.setScrollbarVisible(!0);const i=t.el.offsetWidth,s=this.instance?.width||this.element.clientWidth||e.clientWidth,r=this.getSlidesContentWidth(),o="function"==typeof n.minTranslate?n.minTranslate():0,a="function"==typeof n.maxTranslate?n.maxTranslate():0,l=Math.max(Math.abs(a-o),0),c=Math.max(r,s+l),d=(c>0?Math.min(s/c,1):1)*i,u=Math.max(d,30);t.dragEl.style.width=`${u}px`,t.dragEl.style.display="";const h=Math.min(Math.max(n.progress||0,0),1)*Math.max(i-u,0);t.dragEl.style.transform=`translate3d(${h}px, 0, 0)`};requestAnimationFrame(()=>{requestAnimationFrame(e)}),this.instance.on("progress",e),this.instance.on("slideChange",e),this.instance.on("resize",e),this.instance.on("update",e),this.instance.on("setTranslate",e)}getElements(){this.viewport=this.element.querySelector(gn),this.track=this.viewport.querySelector(vn);const e=this.element.querySelector(wn);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={navigation:{...this.config.navigation??{},nextEl:this.element.querySelector(yn),prevEl:this.element.querySelector(bn)},pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:hn,bulletActiveClass:pn}};this.config={...this.config,...t}}getCustomOptions(){const e=this.element.getAttribute("data-swiper-options");if(!e)return;const t=JSON.parse(e);this.config={...this.config,...t}}updateCarouselEnabledState(){if(!this.instance||!this.instance.params)return;const e=this.getViewportWrapper();this.hasScrollableContent(e||void 0)?this.instance.enable():this.instance.disable(),this.setScrollbarVisible(this.instance.enabled)}applyBleedInsets(e){if(!this.instance||!this.instance.params)return;const t=this.element.clientWidth||e.clientWidth||0,n=document.documentElement?.clientWidth||window.innerWidth||0,i=e.getBoundingClientRect(),s=this.element.getBoundingClientRect(),r=this.element.classList.contains(mn),o=s.left>0?s.left:i.left,a=Math.max(Math.floor(o),0),l=r?Math.max(Math.floor(n-a),t,0):Math.max(Math.floor(n),t,0),c=r?0:-a,d=Math.max(r?l:l-a,t,0),u=this.getSlidesContentWidth(),h=u-t,p=this.getSlidesPerView(),f=this.instance.slides.length,m=!(u>0?h>xn.OVERFLOW_EPSILON_PX:f>p),g=!m,v=m?"100%":`${d}px`,b=m||r?"0px":`${a}px`,y=m?"100%":`${l}px`,w=m?"0px":`${c}px`,_=this.isBleedRight()!==g||this.instance.params.width!==(m?void 0:t)||this.element.style.getPropertyValue("--carousel-bleed-viewport-width")!==v||this.element.style.getPropertyValue("--carousel-bleed-margin-left")!==b||this.element.style.getPropertyValue("--carousel-bleed-shell-width")!==y||this.element.style.getPropertyValue("--carousel-bleed-shell-margin-left")!==w;r||this.element.classList.toggle(fn,g);const S=m?void 0:t;this.instance.params.width=S,this.instance.originalParams&&(this.instance.originalParams.width=S),this.instance.params.slidesOffsetBefore=0,this.instance.params.slidesOffsetAfter=0,this.element.style.setProperty("--carousel-bleed-viewport-width",v),this.element.style.setProperty("--carousel-bleed-margin-left",b),this.element.style.setProperty("--carousel-bleed-shell-width",y),this.element.style.setProperty("--carousel-bleed-shell-margin-left",w),_&&this.instance.update(),this.updateCarouselEnabledState()}adjustConfigForBleedRight(){requestAnimationFrame(()=>{if(!this.instance)return;const e=this.getViewportWrapper();if(!e)return;const t=()=>{this.applyBleedInsets(e)};this.bleedResizeHandler=t,t(),this.instance.on("resize",t)})}handleSlideChange(){const e=this.track.querySelector(Sn),t=this.track.querySelectorAll(`.${un}:not(${Sn})`);e&&this.updateTooltipPosition(e),t.length>0&&this.hideAllTooltips(t),this.updateExternalControlsState()}updateTooltipPosition(e){const t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(e=>{const t=e.getAttribute("aria-describedby");if(!t)return;const n=document.getElementById(t);if(!n)return;const i=an.getInstance(n);i&&i.update()})}hideAllTooltips(e){e.forEach(e=>{const t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(e=>{const t=e.getAttribute("aria-describedby");if(!t)return;const n=document.getElementById(t);if(!n)return;const i=an.getInstance(n);i&&(i.hide(),e.blur())})})}initExternalControls(){const e=this.element.dataset.carouselId||this.element.id;e&&(this.carouselId=e,document.querySelectorAll(`[data-carousel-controls="${e}"]`).forEach(e=>{const t=e;if(t.hasAttribute("data-carousel-initialized"))return;t._carouselClickHandler&&t.removeEventListener("click",t._carouselClickHandler);const n=t.dataset.carouselAction,i=e=>{e.preventDefault(),t.hasAttribute("disabled")||("next"===n?this.slideNext():"prev"===n&&this.slidePrev())};"next"!==n&&"prev"!==n||(t.addEventListener("click",i),t.setAttribute("aria-label","next"===n?("object"==typeof this.config.a11y?this.config.a11y?.nextSlideMessage:void 0)||"Nasledujúci snímok":("object"==typeof this.config.a11y?this.config.a11y?.prevSlideMessage:void 0)||"Predchádzajúci snímok"),t.setAttribute("type","button"),t._carouselClickHandler=i),t.setAttribute("data-carousel-initialized","true")}),this.updateExternalControlsState())}updateExternalControlsState(e=!1){if(!this.carouselId||!this.instance)return;if(!this.instance.params)return;if(this.isScrollbarDragging&&!e)return;const t=!this.instance.enabled,n=t||this.instance.isBeginning,i=t||this.instance.isEnd;this.externalControlsState={isAtStart:n,isAtEnd:i},this.applyExternalControlsState(this.externalControlsState)}applyExternalControlsState(e){const{isAtStart:t,isAtEnd:n}=e,i=document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"][data-carousel-action="prev"]`),s=document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"][data-carousel-action="next"]`);i.forEach(e=>{const n=e;t?(n.setAttribute("disabled",""),n.setAttribute("aria-disabled","true"),n.style.cursor="not-allowed"):(n.removeAttribute("disabled"),n.setAttribute("aria-disabled","false"),n.style.cursor="pointer")}),s.forEach(e=>{const t=e;n?(t.setAttribute("disabled",""),t.setAttribute("aria-disabled","true"),t.style.cursor="not-allowed"):(t.removeAttribute("disabled"),t.setAttribute("aria-disabled","false"),t.style.cursor="pointer")})}slideNext(){this.instance&&this.instance.slideNext()}slidePrev(){this.instance&&this.instance.slidePrev()}getActiveIndex(){return this.instance?this.instance.activeIndex:0}onSlideChange(e){this.instance&&this.instance.on("slideChange",()=>{e(this.instance.activeIndex)})}destroy(){this.carouselId&&document.querySelectorAll(`[data-carousel-controls="${this.carouselId}"]`).forEach(e=>{const t=e;t._carouselClickHandler&&(t.removeEventListener("click",t._carouselClickHandler),delete t._carouselClickHandler),t.removeAttribute("data-carousel-initialized")}),window.removeEventListener("resize",this.boundWindowResizeHandler),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0),this.instance&&this.bleedResizeHandler&&(this.instance.off("resize",this.bleedResizeHandler),this.bleedResizeHandler=void 0),this.instance&&this.instance.destroy(),this.isScrollbarDragging=!1,this.externalControlsState=null,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.element.ODS_Carousel===this&&delete this.element.ODS_Carousel}update(){this.instance&&this.instance.update()}static getInstance(e){return e&&e.ODS_Carousel?e.ODS_Carousel:null}static getInstanceById(e){const t=document.querySelector(`[data-carousel-id="${e}"]`)||document.getElementById(e);return t?this.getInstance(t):null}}const Cn="carousel-hero",Tn=`${Cn}__slide`,An=`${Cn}__pagination-item`,kn=`${Cn}__pagination-svg`,On=`${Cn}__pagination-circle`,Ln="is-active",Dn="is-playing",Mn="is-paused",Pn=`.${Cn}__viewport`,In=`.${Cn}__prev`,Nn=`.${Cn}__next`,Rn=`.${Cn}__play-pause`,zn=`.${Cn}__tabs`,Bn=`.${Cn}__tab`,Fn=`.${Cn}__pagination`,Hn={pagination:{clickable:!0,bulletClass:An,bulletActiveClass:"is-active",renderBullet:function(e,t){return`<button type="button" class="${t}" aria-label="Prejsť na snímok ${e+1}"></button>`}},slidesPerView:1,loop:!1,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",containerMessage:"Hero carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},wrapperClass:`${Cn}__track`,slideClass:Tn,slideActiveClass:Ln},$n="carousel-promotions",Vn=`${$n}__pagination-item`,jn=`${$n}__pagination-svg`,qn=`${$n}__pagination-circle`,Wn=`${$n}--slide-inverted`,Un="is-autoplay",Gn="is-active",Yn=`.${$n}__viewport`,Xn=`.${$n}__pagination`,Kn={pagination:{el:Xn,clickable:!0,bulletClass:Vn,bulletActiveClass:Gn,renderBullet:(e,t)=>`<button aria-label="Stránka ${e+1}" role="tab" class="${t}" type="button"></button>`},slidesPerView:1,loop:!0,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},cssMode:!1,direction:"horizontal",wrapperClass:`${$n}__track`,slideClass:`${$n}__slide`,slideActiveClass:Gn,autoplay:!1};class Jn{element;config;viewport;instance;interval=0;autoplayTimer;resizeRafId;boundWindowResizeHandler;boundPaginationClickHandler;constructor(e,t){return this.element=e,this.config={...Kn,...t},this.interval=0,this.handleSlideChange=this.handleSlideChange.bind(this),this.scrollToNextSlide=this.scrollToNextSlide.bind(this),this.autoplayAnimationEnd=this.autoplayAnimationEnd.bind(this),this.boundWindowResizeHandler=this.handleWindowResize.bind(this),this.boundPaginationClickHandler=this.handlePaginationClick.bind(this),this.element.ODS_CarouselPromotions=this,this.init(),this}init(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.element.hasAttribute("data-interval")&&(this.interval=parseInt(this.element.getAttribute("data-interval")));const e=this.isIntervalValid();e?(this.element.classList.add(Un),this.config.autoplay={delay:this.interval,disableOnInteraction:!1}):(this.interval=0,this.config.autoplay=!1),this.instance=new _e(this.viewport,{...this.config,modules:[ke,De,Pe,xe,Ie],on:{slideChange:this.handleSlideChange,init:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()},update:()=>{this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()}}});const t=this.element.querySelector(Xn);t&&e&&(t.addEventListener("animationend",this.autoplayAnimationEnd),t.addEventListener("click",this.boundPaginationClickHandler)),window.addEventListener("resize",this.boundWindowResizeHandler)}handlePaginationClick(){this.stopAutoplay()}handleWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.fixPaginationButtonType(),this.isAutoplayEnabled&&this.renderSvgDotsForAnimation()))})}stopAutoplay(){this.interval=0,this.element.classList.remove(Un),this.instance&&this.instance.autoplay&&this.instance.autoplay.stop()}handleSlideChange(){this.element.classList.remove(Wn),this.instance&&void 0!==this.instance.activeIndex&&this.instance.activeIndex%2==1&&this.element.classList.add(Wn)}autoplayAnimationEnd(e){e instanceof AnimationEvent&&"countdown"===e.animationName&&this.scrollToNextSlide()}get isAutoplayEnabled(){return this.interval>0}isIntervalValid(){const e=parseInt(String(this.interval));return!isNaN(e)&&e>=1e3}scrollToNextSlide(){if(!this.instance||!this.instance.slides)return;const e=this.instance.slides.length;if(e<=0)return;const t=this.instance.activeIndex||0;this.instance.slideTo((t+1)%e)}getElements(){this.viewport=this.element.querySelector(Yn);const e=this.element.querySelector(Xn);e&&!e.hasAttribute("role")&&e.setAttribute("role","tablist");const t={pagination:{...this.config.pagination??{},el:e,clickable:!0,bulletClass:Vn,bulletActiveClass:Gn}};this.config={...this.config,...t}}getCustomOptions(){const e=this.element.getAttribute("data-swiper-options");if(!e)return;const t=JSON.parse(e);this.config={...this.config,...t}}fixPaginationButtonType(){Array.from(this.element.querySelectorAll(`${Xn} > *`)).forEach(e=>e.setAttribute("type","button"))}static createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",jn),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12"),t.setAttribute("fill","none"),t.setAttribute("xmlns",e);const n=document.createElementNS(e,"circle");return n.setAttribute("class",qn),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}renderSvgDotsForAnimation(){const e=Array.from(this.element.querySelectorAll(`${Xn} > *`)),t=Jn.createSvgDot();t.querySelector("circle").style.animationDuration=`${this.interval}ms`,e.forEach(e=>{e.innerHTML="",e.appendChild(t.cloneNode(!0))})}destroy(){window.removeEventListener("resize",this.boundWindowResizeHandler),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0);const e=this.element.querySelector(Xn);e&&(e.removeEventListener("animationend",this.autoplayAnimationEnd),e.removeEventListener("click",this.boundPaginationClickHandler)),this.instance&&this.instance.destroy(),this.element.ODS_CarouselPromotions===this&&delete this.element.ODS_CarouselPromotions}update(){this.instance&&this.instance.update()}static getInstance(e){return e&&e.ODS_CarouselPromotions?e.ODS_CarouselPromotions:null}}const Qn={many:"dni",few:"dni",one:"deň"},Zn={days:Qn,hours:"hod",minutes:"min",seconds:"sek"},ei={targetDate:"",units:[...d],labels:Zn},ti=(e,t,n)=>{if("days"!==e)return n[e];const{many:i,few:s,one:r}=p(n.days,Qn);return 1===t?r:t>=2&&t<=4?s:i},ni={dataInteractive:"data-dropdown-interactive",focusTrap:"data-dropdown-focus-trap",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom-start",strategy:"absolute",modifiers:[{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["bottom-end","bottom-start","bottom"]}},{name:"offset",options:{offset:[0,-1]}}]}},ii="toggleTrigger";function si(e){const{element:t,attribute:n,action:i,value:s,dispatchEvent:r=!0,eventDetail:o}=e;let a=null;if(!(t&&t instanceof Element))return a;if("focus"===i&&setTimeout(()=>t.focus(),20),"click"===i&&t.click(),"class"===n&&"string"==typeof s&&(t.classList.toggle(s),a=s),"text"===n){const e=t.textContent;t.textContent=s?.toString()||"",a=e}return"class"!==n&&"text"!==n&&void 0===i&&(a=t.getAttribute(n),"hidden"===n?t.hasAttribute(n)?t.removeAttribute(n):t.setAttribute(n,""):s?t.setAttribute(n,String(s)):t.setAttribute(n,String(!("true"===a)))),r&&t.dispatchEvent(new CustomEvent("toggle",{detail:o,bubbles:!0})),a}const ri={bodiesSelector:".accordion__body",buttonSelector:"[data-feature-accordion-toggle]"},oi={autoselect:!0,wrapperClassName:"",menuClassName:"",optionClassName:"",customInputClassName:"",displayMenu:"overlay",tClearButton:()=>"Vymazať text",tAssistiveHint:()=>"Pre prezeranie výsledkov automatického dopĺňania použite šípky nahor a nadol a pre výber konkrétneho výsledku použite tlačidlo Enter. Pri dotykových zariadeniach použite dotyk alebo potiahnutie prstom do strany."},ai=(e,t)=>{const n=e.split(/\s+/).filter(Boolean);return n.includes(t)?e:[...n,t].join(" ")};var li,ci,di,ui,hi,pi,fi,mi,gi,vi,bi={},yi=[],wi=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _i(e,t){for(var n in t)e[n]=t[n];return e}function Si(e){var t=e.parentNode;t&&t.removeChild(e)}function Ei(e,t,n){var i,s,r,o={};for(r in t)"key"==r?i=t[r]:"ref"==r?s=t[r]:o[r]=t[r];if(arguments.length>2&&(o.children=arguments.length>3?li.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===o[r]&&(o[r]=e.defaultProps[r]);return xi(e,o,i,s,null)}function xi(e,t,n,i,s){var r={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++di:s};return null==s&&null!=ci.vnode&&ci.vnode(r),r}function Ci(e){return e.children}function Ti(e,t){this.props=e,this.context=t}function Ai(e,t){if(null==t)return e.__?Ai(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Ai(e):null}function ki(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return ki(e)}}function Oi(e){(!e.__d&&(e.__d=!0)&&ui.push(e)&&!Li.__r++||pi!==ci.debounceRendering)&&((pi=ci.debounceRendering)||hi)(Li)}function Li(){for(var e;Li.__r=ui.length;)e=ui.sort(function(e,t){return e.__v.__b-t.__v.__b}),ui=[],e.some(function(e){var t,n,i,s,r,o;e.__d&&(r=(s=(t=e).__v).__e,(o=t.__P)&&(n=[],(i=_i({},s)).__v=s.__v+1,Fi(o,s,i,t.__n,void 0!==o.ownerSVGElement,null!=s.__h?[r]:null,n,null==r?Ai(s):r,s.__h),Hi(n,s),s.__e!=r&&ki(s)))})}function Di(e,t,n,i,s,r,o,a,l,c){var d,u,h,p,f,m,g,v=i&&i.__k||yi,b=v.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(p=n.__k[d]=null==(p=t[d])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?xi(null,p,null,null,p):Array.isArray(p)?xi(Ci,{children:p},null,null,null):p.__b>0?xi(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(h=v[d])||h&&p.key==h.key&&p.type===h.type)v[d]=void 0;else for(u=0;u<b;u++){if((h=v[u])&&p.key==h.key&&p.type===h.type){v[u]=void 0;break}h=null}Fi(e,p,h=h||bi,s,r,o,a,l,c),f=p.__e,(u=p.ref)&&h.ref!=u&&(g||(g=[]),h.ref&&g.push(h.ref,null,p),g.push(u,p.__c||f,p)),null!=f?(null==m&&(m=f),"function"==typeof p.type&&p.__k===h.__k?p.__d=l=Mi(p,l,e):l=Ii(e,p,h,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=e&&(l=Ai(h))}for(n.__e=m,d=b;d--;)null!=v[d]&&("function"==typeof n.type&&null!=v[d].__e&&v[d].__e==n.__d&&(n.__d=Ai(i,d+1)),Vi(v[d],v[d]));if(g)for(d=0;d<g.length;d++)$i(g[d],g[++d],g[++d])}function Mi(e,t,n){for(var i,s=e.__k,r=0;s&&r<s.length;r++)(i=s[r])&&(i.__=e,t="function"==typeof i.type?Mi(i,t,n):Ii(n,i,i,s,i.__e,t));return t}function Pi(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){Pi(e,t)}):t.push(e)),t}function Ii(e,t,n,i,s,r){var o,a,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||s!=r||null==s.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(s),o=null;else{for(a=r,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==s)break e;e.insertBefore(s,r),o=r}return void 0!==o?o:s.nextSibling}function Ni(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||wi.test(t)?n:n+"px"}function Ri(e,t,n,i,s){var r;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||Ni(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||Ni(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?i||e.addEventListener(t,r?Bi:zi,r):e.removeEventListener(t,r?Bi:zi,r);else if("dangerouslySetInnerHTML"!==t){if(s)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function zi(e){this.l[e.type+!1](ci.event?ci.event(e):e)}function Bi(e){this.l[e.type+!0](ci.event?ci.event(e):e)}function Fi(e,t,n,i,s,r,o,a,l){var c,d,u,h,p,f,m,g,v,b,y,w=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,r=[a]),(c=ci.__b)&&c(t);try{e:if("function"==typeof w){if(g=t.props,v=(c=w.contextType)&&i[c.__c],b=c?v?v.props.value:c.__:i,n.__c?m=(d=t.__c=n.__c).__=d.__E:("prototype"in w&&w.prototype.render?t.__c=d=new w(g,b):(t.__c=d=new Ti(g,b),d.constructor=w,d.render=ji),v&&v.sub(d),d.props=g,d.state||(d.state={}),d.context=b,d.__n=i,u=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=w.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=_i({},d.__s)),_i(d.__s,w.getDerivedStateFromProps(g,d.__s))),h=d.props,p=d.state,u)null==w.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==w.getDerivedStateFromProps&&g!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,b),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,b)||t.__v===n.__v){d.props=g,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,p,f)})}d.context=b,d.props=g,d.state=d.__s,(c=ci.__r)&&c(t),d.__d=!1,d.__v=t,d.__P=e,c=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(i=_i(_i({},i),d.getChildContext())),u||null==d.getSnapshotBeforeUpdate||(f=d.getSnapshotBeforeUpdate(h,p)),y=null!=c&&c.type===Ci&&null==c.key?c.props.children:c,Di(e,Array.isArray(y)?y:[y],t,n,i,s,r,o,a,l),d.base=t.__e,t.__h=null,d.__h.length&&o.push(d),m&&(d.__E=d.__=null),d.__e=!1}else null==r&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,s,r,o,a){var l,c,d,u=n.props,h=t.props,p=t.type,f=0;if("svg"===p&&(s=!0),null!=r)for(;f<r.length;f++)if((l=r[f])&&"setAttribute"in l==!!p&&(p?l.localName===p:3===l.nodeType)){e=l,r[f]=null;break}if(null==e){if(null===p)return document.createTextNode(h);e=s?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),r=null,a=!1}if(null===p)u===h||a&&e.data===h||(e.data=h);else{if(r=r&&li.call(e.childNodes),c=(u=n.props||bi).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!a){if(null!=r)for(u={},f=0;f<e.attributes.length;f++)u[e.attributes[f].name]=e.attributes[f].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,i,s){var r;for(r in n)"children"===r||"key"===r||r in t||Ri(e,r,null,n[r],i);for(r in t)s&&"function"!=typeof t[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===t[r]||Ri(e,r,t[r],n[r],i)}(e,h,u,s,a),d)t.__k=[];else if(f=t.props.children,Di(e,Array.isArray(f)?f:[f],t,n,i,s&&"foreignObject"!==p,r,o,r?r[0]:n.__k&&Ai(n,0),a),null!=r)for(f=r.length;f--;)null!=r[f]&&Si(r[f]);a||("value"in h&&void 0!==(f=h.value)&&(f!==e.value||"progress"===p&&!f||"option"===p&&f!==u.value)&&Ri(e,"value",f,u.value,!1),"checked"in h&&void 0!==(f=h.checked)&&f!==e.checked&&Ri(e,"checked",f,u.checked,!1))}return e}(n.__e,t,n,i,s,r,o,l);(c=ci.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=r)&&(t.__e=a,t.__h=!!l,r[r.indexOf(a)]=null),ci.__e(e,t,n)}}function Hi(e,t){ci.__c&&ci.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){ci.__e(e,t.__v)}})}function $i(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){ci.__e(e,n)}}function Vi(e,t,n){var i,s;if(ci.unmount&&ci.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||$i(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){ci.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&Vi(i[s],t,"function"!=typeof e.type);n||null==e.__e||Si(e.__e),e.__e=e.__d=void 0}function ji(e,t,n){return this.constructor(e,n)}function qi(e,t,n){var i,s;ci.__&&ci.__(e,t),i=t.__k,s=[],Fi(t,e=t.__k=Ei(Ci,null,[e]),i||bi,bi,void 0!==t.ownerSVGElement,i?null:t.firstChild?li.call(t.childNodes):null,s,i?i.__e:t.firstChild,!1),Hi(s,e)}li=yi.slice,ci={__e:function(e,t){for(var n,i,s;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),s=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),s=n.__d),s)return n.__E=n}catch(t){e=t}throw e}},di=0,Ti.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=_i({},this.state),"function"==typeof e&&(e=e(_i({},n),this.props)),e&&_i(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Oi(this))},Ti.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Oi(this))},Ti.prototype.render=Ci,ui=[],hi="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Li.__r=0,fi=0;var Wi=0,Ui=[],Gi=ci.__b,Yi=ci.__r,Xi=ci.diffed,Ki=ci.__c,Ji=ci.unmount;function Qi(e,t){ci.__h&&ci.__h(gi,e,Wi||t),Wi=0;var n=gi.__H||(gi.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Zi(e){return Wi=1,function(e,t){var n=Qi(mi++,2);return n.t=e,n.__c||(n.__=[ls(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=gi),n.__}(ls,e)}function es(e,t){var n=Qi(mi++,3);!ci.__s&&as(n.__H,t)&&(n.__=e,n.__H=t,gi.__H.__h.push(n))}function ts(e){return Wi=5,function(e,t){var n=Qi(mi++,7);return as(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function ns(e){var t=gi.context[e.__c],n=Qi(mi++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(gi)),t.props.value):e.__}function is(){for(var e;e=Ui.shift();)if(e.__P)try{e.__H.__h.forEach(rs),e.__H.__h.forEach(os),e.__H.__h=[]}catch(t){e.__H.__h=[],ci.__e(t,e.__v)}}ci.__b=function(e){gi=null,Gi&&Gi(e)},ci.__r=function(e){Yi&&Yi(e),mi=0;var t=(gi=e.__c).__H;t&&(t.__h.forEach(rs),t.__h.forEach(os),t.__h=[])},ci.diffed=function(e){Xi&&Xi(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Ui.push(t)&&vi===ci.requestAnimationFrame||((vi=ci.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),ss&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ss&&(t=requestAnimationFrame(n))})(is)),gi=null},ci.__c=function(e,t){t.some(function(e){try{e.__h.forEach(rs),e.__h=e.__h.filter(function(e){return!e.__||os(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ci.__e(n,e.__v)}}),Ki&&Ki(e,t)},ci.unmount=function(e){Ji&&Ji(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{rs(e)}catch(e){t=e}}),t&&ci.__e(t,n.__v))};var ss="function"==typeof requestAnimationFrame;function rs(e){var t=gi,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),gi=t}function os(e){var t=gi;e.__c=e.__(),gi=t}function as(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function ls(e,t){return"function"==typeof t?t(e):t}function cs(e,t){for(var n in t)e[n]=t[n];return e}function ds(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function us(e){this.props=e}(us.prototype=new Ti).isPureReactComponent=!0,us.prototype.shouldComponentUpdate=function(e,t){return ds(this.props,e)||ds(this.state,t)};var hs=ci.__b;ci.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),hs&&hs(e)};var ps="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function fs(e){function t(t,n){var i=cs({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=ps,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ms=ci.__e;ci.__e=function(e,t,n){if(e.then)for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);ms(e,t,n)};var gs=ci.unmount;function vs(){this.__u=0,this.t=null,this.__b=null}function bs(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ys(){this.u=null,this.o=null}ci.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),gs&&gs(e)},(vs.prototype=new Ti).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var s=bs(i.__v),r=!1,o=function(){r||(r=!0,n.__R=null,s?s(a):a())};n.__R=o;var a=function(){if(! --i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)}),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(o,o)},vs.prototype.componentWillUnmount=function(){this.t=[]},vs.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=cs({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)})),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var s=t.__e&&Ei(Ci,null,e.fallback);return s&&(s.__h=null),[Ei(Ci,null,t.__e?null:e.children),s]};var ws=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(ys.prototype=new Ti).__e=function(e){var t=this,n=bs(t.__v),i=t.o.get(e);return i[0]++,function(s){var r=function(){t.props.revealOrder?(i.push(s),ws(t,e,i)):s()};n?n(r):r()}},ys.prototype.render=function(e){this.u=null,this.o=new Map;var t=Pi(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ys.prototype.componentDidUpdate=ys.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ws(e,n,t)})};var _s="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ss=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Es="undefined"!=typeof document,xs=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Ti.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ti.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Cs=ci.event;function Ts(){}function As(){return this.cancelBubble}function ks(){return this.defaultPrevented}ci.event=function(e){return Cs&&(e=Cs(e)),e.persist=Ts,e.isPropagationStopped=As,e.isDefaultPrevented=ks,e.nativeEvent=e};var Os={configurable:!0,get:function(){return this.class}},Ls=ci.vnode;ci.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var s=-1===t.indexOf("-");for(var r in i={},n){var o=n[r];Es&&"children"===r&&"noscript"===t||"value"===r&&"defaultValue"in n&&null==o||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===o?o="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!xs(n.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():s&&Ss.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[r]=o)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=Pi(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=Pi(n.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value})),e.props=i,n.class!=n.className&&(Os.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Os))}e.$$typeof=_s,Ls&&Ls(e)};var Ds=ci.__r;ci.__r=function(e){Ds&&Ds(e),e.__c};var Ms={wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination",nextMonthButton:"daypickr__button--pagination-next",prevMonthButton:"daypickr__button--pagination-prev",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",closeButton:"daypickr__button--close",toggleButton:"daypickr__button--toggle"};function Ps(...e){return e.join(" ").trim()}var Is={prevMonth:"previous month",nextMonth:"next month",month:"Month",year:"Year",weekdays:[{name:"Sunday",shortname:"Su"},{name:"Monday",shortname:"Mo"},{name:"Tuesday",shortname:"Tu"},{name:"Wednesday",shortname:"We"},{name:"Thursday",shortname:"Th"},{name:"Friday",shortname:"Fr"},{name:"Saturday",shortname:"Sa"}],months:["January","February","March","April","May","June","July","August","September","October","November","December"],openButton:"Choose date",closeButton:"Close"};function Ns(e){return e instanceof Date&&!isNaN(e.valueOf())}function Rs(e,t=1){const n=new Date(e),i=e.getDay(),s=(i<t?7:0)+i-t;return new Date(n.setDate(n.getDate()-s))}function zs(e,t=1){const n=new Date(e),i=n.getDay(),s=6+(i<t?-7:0)-(i-t);return new Date(n.setDate(n.getDate()+s))}function Bs(e,t){return!(!Ns(e)||!Ns(t))&&(e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime())}function Fs(e,t){const n=new Date(e).setMonth(t),i=new Date(e.getFullYear(),t+1,0).getTime();return n>i?new Date(i):new Date(n)}var Hs,$s,Vs=($s={__c:Hs="__cC"+fi++,__:void 0,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[Hs]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(Oi)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}}).Provider.__=$s.Consumer.contextType=$s,js=()=>{const{firstDayOfWeek:e,classes:t,l10n:n,selected:i,setSelected:s,setView:r,handleKeyboardNavigation:o,focusedRef:a,view:l,disabledDayFn:c,locale:d}=ns(Vs),u=function(e,t){const n=e?.length?[...e]:[],i=n.splice(0,t);return[...n,...i]}(n.weekdays,e),h=function(e){const t=[];for(let n=0;n<e.length;n+=7)t.push(e.slice(n,n+7));return t}(function(e,t){const n=new Date(e);n.setDate(1);const i=new Date(e);return i.setMonth(e.getMonth()+1,0),function(e,t){const n=[];let i=e;for(;i.getTime()<t.getTime();)n.push(new Date(i)),i=new Date(i.setDate(i.getDate()+1));return n.push(new Date(i)),n}(Rs(n,t),zs(i,t))}(l,e));return Ei("table",{className:t.table},Ei("thead",null,Ei("tr",{className:t.tableHeaderRow},u.map(e=>Ei("th",{scope:"col",className:t.tableHeaderCell},Ei("span",{className:t.srOnly},e.name),Ei("span",{"aria-hidden":"true"},e.shortname))))),Ei("tbody",null,h.map(e=>Ei("tr",{className:t.tableRow},e.map(e=>{const n=i&&Bs(e,i),u=Bs(e,l),h=!function(e,t){return e.getMonth()===t.getMonth()}(e,l)||c(e),p=(f=e,Bs(new Date,f)?t.isToday:void 0);var f;const m=n?t.isSelected:void 0,g=[t.dayButton,p,m],v=u?"0":"-1",b=e.toLocaleDateString(d),y=u?a:void 0;return Ei("td",{role:"gridcell",className:t.tableCell},Ei("button",{className:g.join(" "),type:"button",onClick:()=>{h||(s(e),r(e))},tabindex:v,onKeyUp:o,ref:y,"aria-disabled":h,"aria-label":b,"aria-selected":n},Ei("span",{className:t.srOnly},b),Ei("span",{"aria-hidden":"true"},e.getDate())))})))))},qs=fs(({label:e,value:t,options:n,onChange:i,className:s,elemRef:r,...o},a)=>{const{classes:l}=ns(Vs);return Ei("label",null,Ei("span",{className:"sr-only"},e),Ei("select",{className:Ps(l.select,s),onChange:e=>i(e),ref:a,...o},n?.map(e=>Ei("option",{value:e?.value||0===e?.value?e.value:e,selected:t===e?.value||t===e?"selected":void 0},e?.text?e.text:e))))}),Ws=qs;function Us(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}var Gs=fs((e,t)=>{const{l10n:n,min:i,max:s,view:r,setView:o,classes:a}=ns(Vs),l=new Date(i).getFullYear(),c=new Date(s).getFullYear();return Ei(Ws,{label:n.year,options:Us(l,c),value:r.getFullYear(),className:a.yearSelect,onChange:e=>{const t=new Date(r);t.setFullYear(parseInt(e.target.value,10)),o(t)},ref:t,...e})}),Ys=Gs,Xs=()=>{const{l10n:e,view:t,setView:n,classes:i}=ns(Vs);return Ei(Ws,{label:e.month,value:t.getMonth(),className:i.monthSelect,options:e.months?.map((e,t)=>({value:t,text:e})),onChange:e=>{const i=new Date(t);i.setMonth(parseInt(e.target.value,10)),n(i)}})},Ks=({min:e="1900-01-01",max:t="2100-12-31",classes:n=Ms,l10n:i=Is,selectedDay:s,firstDayOfWeek:r=1,locale:o={},disabledDayFn:a=()=>{},onSelect:l=()=>{},formatDate:c=e=>function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e),parseDate:d=e=>{const t=e.match(/(\d{2})\/(\d{2})\/(\d{4})/);return!!t&&new Date(t[3],t[2]-1,t[1])},calendarIcon:u,name:h,id:p})=>{const[f,m]=Zi(s?new Date(s):new Date),[g,v]=Zi(s?new Date(s):void 0),[b,y]=Zi(!1),w=ts(!0),_=ts(),S=ts(),E=ts(),x=ts(),C=ts(),T=ts();var A,k,O;es(()=>{l(g),y(!1)},[g]),es(()=>{const e=e=>{"Tab"===e.key&&b&&(e.shiftKey||document.activeElement!==T.current||(e.preventDefault(),x.current.focus()),!e.shiftKey||document.activeElement!==x.current&&document.activeElement!==C.current||(e.preventDefault(),T.current.focus()))},t=e=>{"Escape"===e.key&&b&&y(!1)};return document.addEventListener("keydown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keydown",t)}},[b,T.current,x.current]),es(()=>{const e=e=>{!C.current.contains(e.target)&&b&&y(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[b,C.current]),A=()=>{b?C.current.focus():document.activeElement===_.current||w.current?w.current=!1:E.current.focus()},k=[b,x.current,E.current,_.current],O=Qi(mi++,4),!ci.__s&&as(O.__H,k)&&(O.__=A,O.__H=k,gi.__h.push(O));const L=e=>Fs(e,e.getMonth()-1),D=e=>Fs(e,e.getMonth()+1),M=()=>{y(!b)},P=({type:e,children:t,...n})=>Ei(e,n,t&&t.length&&t.map(e=>P(e)));return Ei(Vs.Provider,{value:{firstDayOfWeek:r,classes:n,l10n:i,min:e,max:t,view:f,setView:m,selected:g,setSelected:v,handleKeyboardNavigation:e=>{let t=new Date(f);const n={ArrowLeft:()=>{t.setDate(f.getDate()-1)},ArrowRight:()=>{t.setDate(f.getDate()+1)},ArrowUp:()=>{t.setDate(f.getDate()-7)},ArrowDown:()=>{t.setDate(f.getDate()+7)},PageUp:()=>{e.shiftKey?t.setFullYear(f.getFullYear()-1):t=L(f)},PageDown:()=>{e.shiftKey?t.setFullYear(f.getFullYear()+1):t=D(f)},Home:()=>{t=Rs(f,r)},End:()=>{t=zs(f,r)}};Object.keys(n).includes(e.key)&&(e.preventDefault(),n[e.key]?.(),m(t),setTimeout(()=>{S.current.focus()},0))},focusedRef:S,disabledDayFn:a,locale:o}},Ei("input",{id:`${p}-input`,type:"text",className:n.input,value:g&&g.toLocaleDateString(o),onChange:e=>(e=>{""===e.target.value&&v(void 0);const t=d(e.target.value);if(t)return m(t),v(t)})(e),ref:_}),Ei("input",{type:"hidden",id:`${p}-value`,value:c(g),name:h}),Ei("button",{type:"button","aria-controls":`${p}-dialog`,onClick:()=>M(),"aria-expanded":b,ref:E,className:n.toggleButton},u&&P(u),u?Ei("span",{class:n.srOnly},i.openButton):i.openButton),Ei("div",{className:n.wrapper,role:"dialog","aria-modal":"true","aria-labelledby":"daypickr-label",hidden:!b,ref:C,tabIndex:"-1"},Ei("div",{className:"daypickr__content"},Ei("h2",{id:"daypickr-label",className:"sr-only"},f.toLocaleString(o,{month:"long",year:"numeric"})),Ei("div",{className:n.header},Ei("div",{className:n.yearMonthWrapper},Ei(Ys,{ref:x}),Ei(Xs,null)),Ei("div",{className:n.pagination},Ei("button",{type:"button",className:`${n.button} ${n.prevMonthButton}`,onClick:()=>{m(L(f))}},i.prevMonth),Ei("button",{type:"button",className:`${n.button} ${n.nextMonthButton}`,onClick:()=>{m(D(f))}},i.nextMonth))),Ei(js,null),Ei("button",{className:`${n.button} ${n.closeButton}`,type:"button",onClick:()=>M(),ref:T},i.closeButton))))},Js=({calendarIcon:e,classes:t=classNames,l10n:n=l10nEN,...i})=>{const s=({type:e,children:t,...n})=>Ei(e,n,t&&t.length&&t.map(e=>s(e)));return Ei(Vs.Provider,{value:{classes:t,l10n:n}},Ei("input",{type:"text",disabled:!0,className:t.input}),Ei("button",{type:"button",className:t.toggleButton,disabled:!0},e&&s(e),e?Ei("span",{class:t.srOnly},n.openButton):n.openButton))};const Qs={locale:"sk",classes:{wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",selectDisplay:"daypickr__select-display",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination ",nextMonthButton:"daypickr__button--pagination-next btn btn--ghost btn--square btn--small",prevMonthButton:"daypickr__button--pagination-prev btn btn--ghost btn--square btn--small",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",input:"form-group__item text-input",closeButton:"daypickr__button--close btn mb-none",toggleButton:"form-group__item btn btn--square"},firstDayOfWeek:1,l10n:{prevMonth:"predchádzajúci mesiac",nextMonth:"nasledujúci mesiac",month:"Mesiac",year:"Rok",weekdays:[{name:"Nedeľa",shortname:"Ne"},{name:"Pondelok",shortname:"Po"},{name:"Utorok",shortname:"Ut"},{name:"Streda",shortname:"St"},{name:"Štvrtok",shortname:"Št"},{name:"Piatok",shortname:"Pi"},{name:"Sobota",shortname:"So"}],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],openButton:"Vyberte dátum",closeButton:"Zatvoriť"},parseDate:e=>{const t=e.match(/(\d{1,2})\. ?(\d{1,2})\. ?(\d{4})/);return!!t&&new Date(Number(t[3]),Number(t[2])-1,Number(t[1]))},calendarIcon:{type:"svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",className:"icon icon--medium",children:[{type:"path",d:"M800 175H700v-37.5a37.5 37.5 0 0 0-75 0V175H350v-37.5a37.5 37.5 0 0 0-75 0V175H100v625a75 75 0 0 0 75 75h700V250a75 75 0 0 0-75-75zM300 825H187.4a37.5 37.5 0 0 1-37.5-37.6V700H300v125zm0-150H150V550h150v125zm0-150H150V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zm225 562.4H325V700h150v125zm0-149.9H325V550h150v125zm0-150H325V400h150v125zm175 300H500V700h150v125zm0-150H500V550h150v125zm0-150H500V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zM825 675H675V550h150v125zm0-150H675V400h112.5a37.5 37.5 0 0 1 37.5 37.4V525z","fill-rule":"evenodd"}]}};function Zs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,s,r,o,a=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t);else for(;!(l=(i=r.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw s}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zs(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zs(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const tr=Object.entries,nr=Object.setPrototypeOf,ir=Object.isFrozen,sr=Object.getPrototypeOf,rr=Object.getOwnPropertyDescriptor;let or=Object.freeze,ar=Object.seal,lr=Object.create,cr="undefined"!=typeof Reflect&&Reflect,dr=cr.apply,ur=cr.construct;or||(or=function(e){return e}),ar||(ar=function(e){return e}),dr||(dr=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return e.apply(t,i)}),ur||(ur=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new e(...n)});const hr=Pr(Array.prototype.forEach),pr=Pr(Array.prototype.lastIndexOf),fr=Pr(Array.prototype.pop),mr=Pr(Array.prototype.push),gr=Pr(Array.prototype.splice),vr=Array.isArray,br=Pr(String.prototype.toLowerCase),yr=Pr(String.prototype.toString),wr=Pr(String.prototype.match),_r=Pr(String.prototype.replace),Sr=Pr(String.prototype.indexOf),Er=Pr(String.prototype.trim),xr=Pr(Number.prototype.toString),Cr=Pr(Boolean.prototype.toString),Tr="undefined"==typeof BigInt?null:Pr(BigInt.prototype.toString),Ar="undefined"==typeof Symbol?null:Pr(Symbol.prototype.toString),kr=Pr(Object.prototype.hasOwnProperty),Or=Pr(Object.prototype.toString),Lr=Pr(RegExp.prototype.test),Dr=(Mr=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ur(Mr,t)});var Mr;function Pr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return dr(e,t,i)}}function Ir(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:br;if(nr&&nr(e,null),!vr(t))return e;let i=t.length;for(;i--;){let s=t[i];if("string"==typeof s){const e=n(s);e!==s&&(ir(t)||(t[i]=e),s=e)}e[s]=!0}return e}function Nr(e){for(let t=0;t<e.length;t++)kr(e,t)||(e[t]=null);return e}function Rr(e){const t=lr(null);for(const i of tr(e)){var n=er(i,2);const s=n[0],r=n[1];kr(e,s)&&(vr(r)?t[s]=Nr(r):r&&"object"==typeof r&&r.constructor===Object?t[s]=Rr(r):t[s]=r)}return t}function zr(e,t){for(;null!==e;){const n=rr(e,t);if(n){if(n.get)return Pr(n.get);if("function"==typeof n.value)return Pr(n.value)}e=sr(e)}return function(){return null}}const Br=or(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Fr=or(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Hr=or(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$r=or(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Vr=or(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),jr=or(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qr=or(["#text"]),Wr=or(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ur=or(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gr=or(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Yr=or(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Xr=ar(/{{[\w\W]*|^[\w\W]*}}/g),Kr=ar(/<%[\w\W]*|^[\w\W]*%>/g),Jr=ar(/\${[\w\W]*/g),Qr=ar(/^data-[\-\w.\u00B7-\uFFFF]+$/),Zr=ar(/^aria-[\-\w]+$/),eo=ar(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),to=ar(/^(?:\w+script|data):/i),no=ar(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),io=ar(/^html$/i),so=ar(/^[a-z][.\w]*(-[.\w]+)+$/i),ro=ar(/<[/\w!]/g),oo=ar(/<[/\w]/g),ao=ar(/<\/no(script|embed|frames)/i),lo=ar(/\/>/i),co=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],uo=or(Ir({},co)),ho=function(){const e={};return hr(co,t=>{e[t]=ar(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),or(e)}(),po=function(){return"undefined"==typeof window?null:window},fo=function(e,t,n,i){return kr(e,t)&&vr(e[t])?Ir(i.base?Rr(i.base):{},e[t],i.transform):n},mo=function(e,t,n){const i=kr(e,t)?e[t]:void 0;return i&&"object"==typeof i?Rr(i):n()};var go=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:po();const n=t=>e(t);if(n.version="3.4.14",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let i=t.document;const s=i,r=s.currentScript;t.DocumentFragment;const o=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,u=t.trustedTypes,h=l.prototype,p=zr(h,"cloneNode"),f=zr(h,"remove"),m=zr(h,"nextSibling"),g=zr(h,"childNodes"),v=zr(h,"parentNode"),b=zr(h,"shadowRoot"),y=zr(h,"attributes"),w=a&&a.prototype?zr(a.prototype,"nodeType"):null,_=a&&a.prototype?zr(a.prototype,"nodeName"):null,S=a&&a.prototype?zr(a.prototype,"ownerDocument"):null,E=function(e){return w?w(e):e.nodeType},x=function(e){return _?_(e):e.nodeName};if("function"==typeof o){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let C,T,A="",k=!1,O=0;const L=function(){if(O>0)throw Dr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},D=function(e){L(),O++;try{return C.createHTML(e)}finally{O--}},M=i,P=M.implementation,I=M.createNodeIterator,N=M.createDocumentFragment,R=M.getElementsByTagName,z=s.importNode;let B={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof tr&&"function"==typeof v&&P&&void 0!==P.createHTMLDocument;const F=Xr,H=Kr,$=Jr,V=Qr,j=Zr,q=to,W=no,U=so;let G=eo,Y=null;const X=Ir({},[...Br,...Fr,...Hr,...Vr,...qr]);let K=null;const J=Ir({},[...Wr,...Ur,...Gr,...Yr]);let Q=Object.seal(lr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,ee=null;const te=Object.seal(lr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ne=!0,ie=!0,se=!1,re=!0,oe=!1,ae=!0,le=!1,ce=!1,de=null,ue=null,he=!1,pe=!1,fe=!1,me=!1,ge=!0,ve=!1;const be="user-content-";let ye=!0,we=!1,_e={},Se=null;const Ee=Ir({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let xe=null;const Ce=Ir({},["audio","video","img","source","image","track"]);let Te=null;const Ae=Ir({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ke="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let De=Le,Me=!1,Pe=null;const Ie=Ir({},[ke,Oe,Le],yr),Ne=or(["mi","mo","mn","ms","mtext"]);let Re=Ir({},Ne);const ze=or(["annotation-xml"]);let Be=Ir({},ze);const Fe=Ir({},["title","style","font","a","script"]);let He=null;const $e=["application/xhtml+xml","text/html"];let Ve=null,je=null;const qe=i.createElement("form"),We=function(e){return e instanceof RegExp||e instanceof Function},Ue=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(je&&je===e)return;e&&"object"==typeof e||(e={}),e=Rr(e),He=-1===$e.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ve="application/xhtml+xml"===He?yr:br,Y=fo(e,"ALLOWED_TAGS",X,{transform:Ve}),K=fo(e,"ALLOWED_ATTR",J,{transform:Ve}),Pe=fo(e,"ALLOWED_NAMESPACES",Ie,{transform:yr}),Te=fo(e,"ADD_URI_SAFE_ATTR",Ae,{transform:Ve,base:Ae}),xe=fo(e,"ADD_DATA_URI_TAGS",Ce,{transform:Ve,base:Ce}),Se=fo(e,"FORBID_CONTENTS",Ee,{transform:Ve}),Z=fo(e,"FORBID_TAGS",Rr({}),{transform:Ve}),ee=fo(e,"FORBID_ATTR",Rr({}),{transform:Ve}),_e=!!kr(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?Rr(e.USE_PROFILES):e.USE_PROFILES),ne=!1!==e.ALLOW_ARIA_ATTR,ie=!1!==e.ALLOW_DATA_ATTR,se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,oe=e.SAFE_FOR_TEMPLATES||!1,ae=!1!==e.SAFE_FOR_XML,le=e.WHOLE_DOCUMENT||!1,pe=e.RETURN_DOM||!1,fe=e.RETURN_DOM_FRAGMENT||!1,me=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,ge=!1!==e.SANITIZE_DOM,ve=e.SANITIZE_NAMED_PROPS||!1,ye=!1!==e.KEEP_CONTENT,we=e.IN_PLACE||!1,G=function(e){try{return Lr(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:eo,De="string"==typeof e.NAMESPACE?e.NAMESPACE:Le,Re=mo(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ir({},Ne)),Be=mo(e,"HTML_INTEGRATION_POINTS",()=>Ir({},ze));const t=mo(e,"CUSTOM_ELEMENT_HANDLING",()=>lr(null));if(Q=lr(null),kr(t,"tagNameCheck")&&We(t.tagNameCheck)&&(Q.tagNameCheck=t.tagNameCheck),kr(t,"attributeNameCheck")&&We(t.attributeNameCheck)&&(Q.attributeNameCheck=t.attributeNameCheck),kr(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Q.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),ar(Q),oe&&(ie=!1),fe&&(pe=!0),_e&&(Y=Ir({},qr),K=lr(null),!0===_e.html&&(Ir(Y,Br),Ir(K,Wr)),!0===_e.svg&&(Ir(Y,Fr),Ir(K,Ur),Ir(K,Yr)),!0===_e.svgFilters&&(Ir(Y,Hr),Ir(K,Ur),Ir(K,Yr)),!0===_e.mathMl&&(Ir(Y,Vr),Ir(K,Gr),Ir(K,Yr))),te.tagCheck=null,te.attributeCheck=null,kr(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?te.tagCheck=e.ADD_TAGS:vr(e.ADD_TAGS)&&(Y===X&&(Y=Rr(Y)),Ir(Y,e.ADD_TAGS,Ve))),kr(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?te.attributeCheck=e.ADD_ATTR:vr(e.ADD_ATTR)&&(K===J&&(K=Rr(K)),Ir(K,e.ADD_ATTR,Ve))),kr(e,"ADD_FORBID_CONTENTS")&&vr(e.ADD_FORBID_CONTENTS)&&(Se===Ee&&(Se=Rr(Se)),Ir(Se,e.ADD_FORBID_CONTENTS,Ve)),ye&&(Y["#text"]=!0),le&&Ir(Y,["html","head","body"]),Y.table&&(Ir(Y,["tbody"]),delete Z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Dr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Dr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=C;C=e.TRUSTED_TYPES_POLICY;try{A=D("")}catch(e){throw C=t,e}}else null===e.TRUSTED_TYPES_POLICY?(C=void 0,A=""):(void 0===C&&(k||(T=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(u,r),k=!0),C=T),C&&"string"==typeof A&&(A=D("")));or&&or(e),je=e},Ge=Ir({},[...Fr,...Hr,...$r]),Ye=Ir({},[...Vr,...jr]),Xe=function(e){mr(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){if(f(e),!v(e))throw Dr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ke=function(e,t,n){try{e.removeAttributeNode(t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},Je=function(e){et(e);const t=g(e);if(t){const e=[];hr(t,t=>{mr(e,t)}),hr(e,e=>{try{f(e)}catch(e){}})}const n=y(e);if(n)for(let t=n.length-1;t>=0;--t){const i=n[t],s=i&&i.name;"string"==typeof s&&Ke(e,i,s)}},Qe=function(e,t,i){if(!i)try{i=t.getAttributeNode(e)}catch(e){i=null}mr(n.removed,{attribute:i||null,from:t});try{i?t.removeAttributeNode(i):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(pe||fe)try{Xe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ze=function(e){const t=y(e);if(t)for(let n=t.length-1;n>=0;--n){const i=t[n],s=i&&i.name;"string"!=typeof s||K[Ve(s)]||Ke(e,i,s)}},et=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===E(e)&&Ze(e);const n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tt=function(e,t){return!!ae&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},nt=function(e){let t=null,n=null;if(he)e="<remove></remove>"+e;else{const t=wr(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===He&&De===Le&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=C?D(e):e;if(De===Le)try{t=(new d).parseFromString(s,He)}catch(e){}if(!t||!t.documentElement){t=P.createDocument(De,"template",null);try{t.documentElement.innerHTML=Me?A:s}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),De===Le?R.call(t,le?"html":"body")[0]:le?t.documentElement:r},it=function(e){const t=S?S(e):e.ownerDocument;return I.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},st=function(e){return e=_r(e,F," "),e=_r(e,H," "),_r(e,$," ")},rt=function(e){var t;e.normalize();const n=S?S(e):e.ownerDocument,i=I.call(n||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let s=i.nextNode();for(;s;)s.data=st(s.data),s=i.nextNode();const r=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");r&&hr(r,e=>{at(e.content)&&rt(e.content)})},ot=function(e){const t=_?_(e):null;return"string"==typeof t&&"form"===Ve(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==y(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==w(e)||e.childNodes!==g(e))},at=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return 11===w(e)}catch(e){return!1}},lt=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return"number"==typeof w(e)}catch(e){return!1}};function ct(e,t,i){0!==e.length&&hr(e,e=>{e.call(n,t,i,je)})}const dt=function(e,t){if(e instanceof RegExp)return Lr(e,t);if(e instanceof Function){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return Boolean(e(t,...i))}return!1},ut=function(e,t,n,i){return 0===e.length?t:t===n||t===i?Rr(t):t},ht=function(e,t){return e!==t&&null===v(e)&&(we&&et(e),!0)},pt=function(e,t){if(ct(B.beforeSanitizeElements,e,null),ht(e,t))return!0;if(ot(e))return Xe(e),!0;const i=Ve(x(e));if(Y=ut(B.uponSanitizeElement,Y,X,de),ct(B.uponSanitizeElement,e,{tagName:i,allowedTags:Y}),ht(e,t))return!0;if(function(e,t){return!!(ae&&e.hasChildNodes()&&!lt(e.firstElementChild)&&Lr(ro,e.textContent)&&Lr(ro,e.innerHTML))||!!(ae&&e.namespaceURI===Le&&uo[t]&&(lt(e.firstElementChild)||"string"==typeof e.textContent&&Lr(ho[t],e.textContent)))||7===e.nodeType||!(!ae||8!==e.nodeType||!Lr(oo,e.data))}(e,i))return Xe(e),!0;if(Z[i]||!(te.tagCheck instanceof Function&&te.tagCheck(i))&&!Y[i]){const n=function(e,t,n){if(!Z[t]&>(t)&&dt(Q.tagNameCheck,t))return!1;if(ye&&!Se[t]){const t=v(e),i=g(e);if(i&&t)for(let s=i.length-1;s>=0;--s){const r=e===n?p(i[s],!0):i[s];t.insertBefore(r,m(e))}}return Xe(e),!0}(e,i,t);return!1===n&&ct(B.afterSanitizeElements,e,null),n}if(1===E(e)&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:De,tagName:"template"});const n=br(e.tagName),i=br(t.tagName);return!!Pe[e.namespaceURI]&&(e.namespaceURI===Oe?function(e,t,n){return t.namespaceURI===Le?"svg"===e:t.namespaceURI===ke?"svg"===e&&("annotation-xml"===n||Re[n]):Boolean(Ge[e])}(n,t,i):e.namespaceURI===ke?function(e,t,n){return t.namespaceURI===Le?"math"===e:t.namespaceURI===Oe?"math"===e&&Be[n]:Boolean(Ye[e])}(n,t,i):e.namespaceURI===Le?function(e,t,n){return!(t.namespaceURI===Oe&&!Be[n])&&!(t.namespaceURI===ke&&!Re[n])&&!Ye[e]&&(Fe[e]||!Ge[e])}(n,t,i):!("application/xhtml+xml"!==He||!Pe[e.namespaceURI]))}(e))return Xe(e),!0;if(("noscript"===i||"noembed"===i||"noframes"===i)&&Lr(ao,e.innerHTML))return Xe(e),!0;if(oe&&3===e.nodeType){const t=st(e.textContent);e.textContent!==t&&(mr(n.removed,{element:e.cloneNode()}),e.textContent=t)}return ct(B.afterSanitizeElements,e,null),!1},ft=function(e,t,n){if(ee[t])return!1;if(tt(t,e))return!1;if(ge&&("id"===t||"name"===t)&&(n in i||n in qe))return!1;const s=K[t]||te.attributeCheck instanceof Function&&te.attributeCheck(t,e);return!(!ie||!Lr(V,t))||!(!ne||!Lr(j,t))||(s?!(!Te[t]&&!Lr(G,_r(n,W,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Sr(n,"data:")||!xe[e])&&(!se||Lr(q,_r(n,W,"")))&&n):gt(e)&&dt(Q.tagNameCheck,e)&&dt(Q.attributeNameCheck,t,e)||"is"===t&&Q.allowCustomizedBuiltInElements&&dt(Q.tagNameCheck,n))},mt=Ir({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),gt=function(e){return!mt[br(e)]&&Lr(U,e)},vt=function(e,t,n,i){if(C&&"object"==typeof u&&"function"==typeof u.getAttributeType&&!n)switch(u.getAttributeType(e,t)){case"TrustedHTML":return D(i);case"TrustedScriptURL":return function(e){L(),O++;try{return C.createScriptURL(e)}finally{O--}}(i)}return i},bt=function(e,t,i,s){try{i?e.setAttributeNS(i,t,s):e.setAttribute(t,s),ot(e)?Xe(e):fr(n.removed)}catch(n){Qe(t,e)}},yt=function(e){ct(B.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||ot(e))return;K=ut(B.uponSanitizeAttribute,K,J,ue);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0};let i=t.length;const s=Ve(e.nodeName);for(;i--;){const r=t[i],o=r.name,a=r.namespaceURI,l=r.value,c=Ve(o),d=l;let u="value"===o?d:Er(d);n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,ct(B.uponSanitizeAttribute,e,n),u=n.attrValue,!ve||"id"!==c&&"name"!==c||0===Sr(u,be)||(Qe(o,e,r),u=be+u),ae&&Lr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&wr(u,"href")?Qe(o,e,r):n.forceKeepAttr||(!n.keepAttr||!re&&Lr(lo,u)?Qe(o,e,r):(oe&&(u=st(u)),ft(s,c,u)?(u=vt(s,c,a,u),u!==d&&bt(e,o,a,u)):Qe(o,e,r)))}ct(B.afterSanitizeAttributes,e,null)},wt=function(e){let t=null;const n=it(e);for(ct(B.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(ct(B.uponSanitizeShadowNode,t,null),pt(t,e),yt(t),at(t.content)&&wt(t.content),1===E(t)){const e=b(t);at(e)&&(_t(e),wt(e))}ct(B.afterSanitizeShadowDOM,e,null)},_t=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){wt(e.shadow);continue}const n=e.node,i=1===E(n),s=g(n);if(s)for(let e=s.length-1;e>=0;--e)t.push({node:s[e],shadow:null});if(i){const e=_?_(n):null;if("string"==typeof e&&"template"===Ve(e)){const e=n.content;at(e)&&t.push({node:e,shadow:null})}}if(i){const e=b(n);at(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,o=null,a=null;if(Me=!e,Me&&(e="\x3c!--\x3e"),"string"!=typeof e&&!lt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return xr(e);case"boolean":return Cr(e);case"bigint":return Tr?Tr(e):"0";case"symbol":return Ar?Ar(e):"Symbol()";case"undefined":default:return Or(e);case"function":case"object":{if(null===e)return Or(e);const t=e,n=zr(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:Or(e)}return Or(e)}}}(e)))throw Dr("dirty is not a string, aborting");if(!n.isSupported)return e;ce?(Y=de,K=ue):Ue(t),(B.uponSanitizeElement.length>0||B.uponSanitizeAttribute.length>0)&&(Y=Rr(Y)),B.uponSanitizeAttribute.length>0&&(K=Rr(K)),n.removed=[];const l=we&&"string"!=typeof e&<(e);if(l){!function(e){if(!ae)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=E(e);if(7===n||8===n&&Lr(oo,e.data)){try{f(e)}catch(e){}continue}if(1===n){const t=e,n=Ve(x(e));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&tt("for",n)&&t.removeAttribute("for")}catch(e){}}const i=g(e);if(i)for(let e=i.length-1;e>=0;--e)t.push(i[e])}}(e);const t=x(e);if("string"==typeof t){const n=Ve(t);if(!Y[n]||Z[n])throw Je(e),Dr("root node is forbidden and cannot be sanitized in-place")}if(ot(e))throw Je(e),Dr("root node is clobbered and cannot be sanitized in-place");try{_t(e)}catch(t){throw Je(e),t}}else if(lt(e))i=nt("\x3c!----\x3e"),r=i.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r),_t(r);else{if(!pe&&!oe&&!le&&-1===e.indexOf("<"))return C&&me?D(e):e;if(i=nt(e),!i)return pe?null:me?A:""}i&&he&&Xe(i.firstChild);const c=l?e:i;try{const e=it(c);for(;o=e.nextNode();)pt(o,c),yt(o),at(o.content)&&wt(o.content)}catch(t){throw l&&(Je(e),hr(n.removed,e=>{e.element&&et(e.element)})),t}if(l)return hr(n.removed,e=>{e.element&&et(e.element)}),oe&&rt(e),e;if(pe){if(oe&&rt(i),fe)for(a=N.call(i.ownerDocument);i.firstChild;)a.appendChild(i.firstChild);else a=i;return(K.shadowroot||K.shadowrootmode)&&(a=z.call(s,a,!0)),a}let d=le?i.outerHTML:i.innerHTML;return le&&Y["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Lr(io,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),oe&&(d=st(d)),C&&me?D(d):d},n.setConfig=function(){Ue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ce=!0,de=Y,ue=K},n.clearConfig=function(){je=null,ce=!1,de=null,ue=null,C=T,A=""},n.isValidAttribute=function(e,t,n){je||Ue({});const i=Ve(e),s=Ve(t);return ft(i,s,n)},n.addHook=function(e,t){"function"==typeof t&&kr(B,e)&&mr(B[e],t)},n.removeHook=function(e,t){if(kr(B,e)){if(void 0!==t){const n=pr(B[e],t);return-1===n?void 0:gr(B[e],n,1)[0]}return fr(B[e])}},n.removeHooks=function(e){kr(B,e)&&(B[e]=[])},n.removeAllHooks=function(){B={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const vo={dragDropClassname:"is-dragdrop",inputSelector:'input[type="file"]',resultsSelector:".file-input__files",deleteButtonSelector:"[data-file-delete]",deleteFileAttr:"data-file-delete",fileTemplate:(e,t)=>`\n <li>${e} <button type="button" data-file-delete="${t}" class="file-input__delete">\n <svg class="icon icon--small icon--trash icon--danger" aria-hidden="true">\n <use xlink:href="/sprite.svg#trash"></use>\n </svg>\n <span class="sr-only">Odstrániť súbor ${e}</span>\n </button>\n </li>\n `},bo={nonEditableInput:!1,min:1,max:999,defaultValue:1};var yo,wo;function _o(e){return"object"==typeof e&&"function"==typeof e.to}function So(e){e.parentElement.removeChild(e)}function Eo(e){return null!=e}function xo(e){e.preventDefault()}function Co(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function To(e,t,n){n>0&&(Lo(e,t),setTimeout(function(){Do(e,t)},n))}function Ao(e){return Math.max(Math.min(e,100),0)}function ko(e){return Array.isArray(e)?e:[e]}function Oo(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function Lo(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function Do(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function Mo(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function Po(e,t){return 100/(t-e)}function Io(e,t,n){return 100*t/(e[n+1]-e[n])}function No(e,t){for(var n=1;e>=t[n];)n+=1;return n}!function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}(yo||(yo={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(wo||(wo={}));var Ro=function(){function e(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var s=[];for(Object.keys(e).forEach(function(t){s.push([ko(e[t]),t])}),s.sort(function(e,t){return e[0][0]-t[0][0]}),i=0;i<s.length;i++)this.handleEntryPoint(s[i][1],s[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(e){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=Io(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var i,s=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[s+1];)s++;else e===this.xPct[this.xPct.length-1]&&(s=this.xPct.length-2);n||e!==this.xPct[s+1]||s++,null===t&&(t=[]);var r=1,o=t[s],a=0,l=0,c=0,d=0;for(i=n?(e-this.xPct[s])/(this.xPct[s+1]-this.xPct[s]):(this.xPct[s+1]-e)/(this.xPct[s+1]-this.xPct[s]);o>0;)a=this.xPct[s+1+d]-this.xPct[s+d],t[s+d]*r+100-100*i>100?(l=a*i,r=(o-100*i)/t[s+d],i=1):(l=t[s+d]*a/100*r,r=0),n?(c-=l,this.xPct.length+d>=1&&d--):(c+=l,this.xPct.length-d>=1&&d++),o=t[s+d]*r;return e+c},e.prototype.toStepping=function(e){return function(e,t,n){if(n>=e.slice(-1)[0])return 100;var i=No(n,e),s=e[i-1],r=e[i],o=t[i-1],a=t[i];return o+function(e,t){return Io(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([s,r],n)/Po(o,a)}(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=No(n,t),s=e[i-1],r=e[i],o=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([s,r],(n-o)*Po(o,t[i]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return function(e,t,n,i){if(100===i)return i;var s=No(i,e),r=e[s-1],o=e[s];return n?i-r>(o-r)/2?o:r:t[s-1]?e[s-1]+function(e,t){return Math.round(e/t)*t}(i-e[s-1],t[s-1]):i}(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var i=No(e,this.xPct);return(100===e||t&&e===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},e.prototype.getNearbySteps=function(e){var t=No(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(Oo);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var n;if(!Co(n="min"===e?0:"max"===e?100:parseFloat(e))||!Co(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?this.xSteps.push(!isNaN(i)&&i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=Io([this.xVal[e],this.xVal[e+1]],t,0)/Po(this.xPct[e],this.xPct[e+1]);var n=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],i=Math.ceil(Number(n.toFixed(3))-1),s=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=s}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),zo={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},Bo={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},Fo=".__tooltips",Ho=".__aria";function $o(e,t){if(!Co(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function Vo(e,t){if(!Co(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function jo(e,t){if(!Co(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function qo(e,t){if(!Co(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function Wo(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new Ro(t,e.snap||!1,e.singleStep)}function Uo(e,t){if(t=ko(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function Go(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function Yo(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function Xo(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function Ko(e,t){var n,i=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}e.connect=i}function Jo(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Qo(e,t){if(!Co(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function Zo(e,t){if(!Co(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function ea(e,t){var n;if(!Co(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!Co(t[0])&&!Co(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=t[0]+t[1],s=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-s)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function ta(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function na(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,s=t.indexOf("fixed")>=0,r=t.indexOf("snap")>=0,o=t.indexOf("hover")>=0,a=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,c=t.indexOf("drag-all")>=0,d=t.indexOf("smooth-steps")>=0;if(s){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Qo(e,e.start[1]-e.start[0])}if(l&&2!==e.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(a&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||r,drag:i,dragAll:c,smoothSteps:d,fixed:s,snap:r,hover:o,unconstrained:a,invertConnects:l}}function ia(e,t){if(!1!==t)if(!0===t||_o(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=ko(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!_o(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function sa(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function ra(e,t){if(!_o(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function oa(e,t){if(!function(e){return _o(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function aa(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function la(e,t){e.documentElement=t}function ca(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function da(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach(function(n){e.cssClasses[n]=e.cssPrefix+t[n]})):e.cssClasses=t}function ua(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:zo,format:zo},n={step:{r:!1,t:$o},keyboardPageMultiplier:{r:!1,t:Vo},keyboardMultiplier:{r:!1,t:jo},keyboardDefaultStep:{r:!1,t:qo},start:{r:!0,t:Uo},connect:{r:!0,t:Ko},direction:{r:!0,t:ta},snap:{r:!1,t:Go},animate:{r:!1,t:Yo},animationDuration:{r:!1,t:Xo},range:{r:!0,t:Wo},orientation:{r:!1,t:Jo},margin:{r:!1,t:Qo},limit:{r:!1,t:Zo},padding:{r:!1,t:ea},behaviour:{r:!0,t:na},ariaFormat:{r:!1,t:ra},format:{r:!1,t:oa},tooltips:{r:!1,t:ia},keyboardSupport:{r:!0,t:aa},documentElement:{r:!1,t:la},cssPrefix:{r:!0,t:ca},cssClasses:{r:!0,t:da},handleAttributes:{r:!1,t:sa}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Bo,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(s){if(Eo(e[s])||void 0!==i[s])n[s].t(t,Eo(e[s])?e[s]:i[s]);else if(n[s].r)throw new Error("noUiSlider: '"+s+"' is required.")}),t.pips=e.pips;var s=document.createElement("div"),r=void 0!==s.style.msTransform,o=void 0!==s.style.transform;return t.transformRule=o?"transform":r?"msTransform":"webkitTransform",t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function ha(e,t,n){var i,s,r,o,a,l,c,d=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},u=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),h=e,p=t.spectrum,f=[],m=[],g=[],v=0,b={},y=!1,w=e.ownerDocument,_=t.documentElement||w.documentElement,S=w.body,E="rtl"===w.dir||1===t.ort?0:100;function x(e,t){var n=w.createElement("div");return t&&Lo(n,t),e.appendChild(n),n}function C(e,n){var i=x(e,t.cssClasses.origin),s=x(i,t.cssClasses.handle);if(x(s,t.cssClasses.touchArea),s.setAttribute("data-handle",String(n)),t.keyboardSupport&&(s.setAttribute("tabindex","0"),s.addEventListener("keydown",function(e){return function(e,n){if(k()||O(n))return!1;var i=["Left","Right"],s=["Down","Up"],r=["PageDown","PageUp"],o=["Home","End"];t.dir&&!t.ort?i.reverse():t.ort&&!t.dir&&(s.reverse(),r.reverse());var a,l=e.key.replace("Arrow",""),c=l===r[0],d=l===r[1],u=l===s[0]||l===i[0]||c,h=l===s[1]||l===i[1]||d,g=l===o[1];if(!(u||h||l===o[0]||g))return!0;if(e.preventDefault(),h||u){var v=u?0:1,b=se(n)[v];if(null===b)return!1;!1===b&&(b=p.getDefaultStep(m[n],u,t.keyboardDefaultStep)),b*=d||c?t.keyboardPageMultiplier:t.keyboardMultiplier,b=Math.max(b,1e-7),b*=u?-1:1,a=f[n]+b}else a=g?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return Z(n,p.toStepping(a),!0,!0),G("slide",n),G("update",n),G("change",n),G("set",n),!1}(e,n)})),void 0!==t.handleAttributes){var r=t.handleAttributes[n];Object.keys(r).forEach(function(e){s.setAttribute(e,r[e])})}return s.setAttribute("role","slider"),s.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?Lo(s,t.cssClasses.handleLower):n===t.handles-1&&Lo(s,t.cssClasses.handleUpper),i.handle=s,i}function T(e,n){return!!n&&x(e,t.cssClasses.connect)}function A(e,n){return!(!t.tooltips||!t.tooltips[n])&&x(e.firstChild,t.cssClasses.tooltip)}function k(){return h.hasAttribute("disabled")}function O(e){return r[e].hasAttribute("disabled")}function L(){l&&(U("update"+Fo),l.forEach(function(e){e&&So(e)}),l=null)}function D(){L(),l=r.map(A),W("update"+Fo,function(e,n,i){if(l&&t.tooltips&&!1!==l[n]){var s=e[n];!0!==t.tooltips[n]&&(s=t.tooltips[n].to(i[n])),l[n].innerHTML=s}})}function M(e,t){return e.map(function(e){return p.fromStepping(t?p.getStep(e):e)})}function P(){a&&(So(a),a=null)}function I(e){P();var n=function(e){function t(e,t){return Number((e+t).toFixed(7))}var n,i=function(e){if(e.mode===yo.Range||e.mode===yo.Steps)return p.xVal;if(e.mode===yo.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var t=e.values-1,n=100/t,i=[];t--;)i[t]=t*n;return i.push(100),M(i,e.stepped)}return e.mode===yo.Positions?M(e.values,e.stepped):e.mode===yo.Values?e.stepped?e.values.map(function(e){return p.fromStepping(p.getStep(p.toStepping(e)))}):e.values:[]}(e),s={},r=p.xVal[0],o=p.xVal[p.xVal.length-1],a=!1,l=!1,c=0;return n=i.slice().sort(function(e,t){return e-t}),i=n.filter(function(e){return!this[e]&&(this[e]=!0)},{}),i[0]!==r&&(i.unshift(r),a=!0),i[i.length-1]!==o&&(i.push(o),l=!0),i.forEach(function(n,r){var o,d,u,h,f,m,g,v,b,y,w=n,_=i[r+1],S=e.mode===yo.Steps;for(S&&(o=p.xNumSteps[r]),o||(o=_-w),void 0===_&&(_=w),o=Math.max(o,1e-7),d=w;d<=_;d=t(d,o)){for(v=(f=(h=p.toStepping(d))-c)/(e.density||1),y=f/(b=Math.round(v)),u=1;u<=b;u+=1)s[(m=c+u*y).toFixed(5)]=[p.fromStepping(m),0];g=i.indexOf(d)>-1?wo.LargeValue:S?wo.SmallValue:wo.NoValue,!r&&a&&d!==_&&(g=0),d===_&&l||(s[h.toFixed(5)]=[d,g]),c=h}}),s}(e),i=e.filter,s=e.format||{to:function(e){return String(Math.round(e))}};return a=h.appendChild(function(e,n,i){var s,r,o=w.createElement("div"),a=((s={})[wo.None]="",s[wo.NoValue]=t.cssClasses.valueNormal,s[wo.LargeValue]=t.cssClasses.valueLarge,s[wo.SmallValue]=t.cssClasses.valueSub,s),l=((r={})[wo.None]="",r[wo.NoValue]=t.cssClasses.markerNormal,r[wo.LargeValue]=t.cssClasses.markerLarge,r[wo.SmallValue]=t.cssClasses.markerSub,r),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],d=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function u(e,n){var i=n===t.cssClasses.value,s=i?a:l;return n+" "+(i?c:d)[t.ort]+" "+s[e]}return Lo(o,t.cssClasses.pips),Lo(o,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach(function(s){!function(e,s,r){if((r=n?n(s,r):r)!==wo.None){var a=x(o,!1);a.className=u(r,t.cssClasses.marker),a.style[t.style]=e+"%",r>wo.NoValue&&((a=x(o,!1)).className=u(r,t.cssClasses.value),a.setAttribute("data-value",String(s)),a.style[t.style]=e+"%",a.innerHTML=String(i.to(s)))}}(s,e[s][0],e[s][1])}),o}(n,i,s))}function N(){var e=i.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||i[n]:e.height||i[n]}function R(e,n,i,s){var r=function(r){var o,a,l=function(e,t,n){var i=0===e.type.indexOf("touch"),s=0===e.type.indexOf("mouse"),r=0===e.type.indexOf("pointer"),o=0,a=0;if(0===e.type.indexOf("MSPointer")&&(r=!0),"mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(i){var l=function(t){var i=t.target;return i===n||n.contains(i)||e.composed&&e.composedPath().shift()===n};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,l);if(c.length>1)return!1;o=c[0].pageX,a=c[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,l);if(!d)return!1;o=d.pageX,a=d.pageY}}return t=t||Mo(w),(s||r)&&(o=e.clientX+t.x,a=e.clientY+t.y),e.pageOffset=t,e.points=[o,a],e.cursor=s||r,e}(r,s.pageOffset,s.target||n);return!!l&&!(k()&&!s.doNotReject)&&(o=h,a=t.cssClasses.tap,!((o.classList?o.classList.contains(a):new RegExp("\\b"+a+"\\b").test(o.className))&&!s.doNotReject)&&!(e===d.start&&void 0!==l.buttons&&l.buttons>1)&&(!s.hover||!l.buttons)&&(u||l.preventDefault(),l.calcPoint=l.points[t.ort],void i(l,s)))},o=[];return e.split(" ").forEach(function(e){n.addEventListener(e,r,!!u&&{passive:!0}),o.push([e,r])}),o}function z(e){var n,s,r,o,a,l,c=100*(e-(n=i,s=t.ort,r=n.getBoundingClientRect(),a=(o=n.ownerDocument).documentElement,l=Mo(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),s?r.top+l.y-a.clientTop:r.left+l.x-a.clientLeft))/N();return c=Ao(c),t.dir?100-c:c}function B(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&H(e,t)}function F(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return H(e,n);var i=(t.dir?-1:1)*(e.calcPoint-n.startCalcPoint);K(i>0,100*i/n.baseSize,n.locations,n.handleNumbers,n.connect)}function H(e,n){n.handle&&(Do(n.handle,t.cssClasses.active),v-=1),n.listeners.forEach(function(e){_.removeEventListener(e[0],e[1])}),0===v&&(Do(h,t.cssClasses.drag),Q(),e.cursor&&(S.style.cursor="",S.removeEventListener("selectstart",xo))),t.events.smoothSteps&&(n.handleNumbers.forEach(function(e){Z(e,m[e],!0,!0,!1,!1)}),n.handleNumbers.forEach(function(e){G("update",e)})),n.handleNumbers.forEach(function(e){G("change",e),G("set",e),G("end",e)})}function $(e,n){if(!n.handleNumbers.some(O)){var i;1===n.handleNumbers.length&&(i=r[n.handleNumbers[0]].children[0],v+=1,Lo(i,t.cssClasses.active)),e.stopPropagation();var s=[],o=R(d.move,_,F,{target:e.target,handle:i,connect:n.connect,listeners:s,startCalcPoint:e.calcPoint,baseSize:N(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:m.slice()}),a=R(d.end,_,H,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers}),l=R("mouseout",_,B,{target:e.target,handle:i,listeners:s,doNotReject:!0,handleNumbers:n.handleNumbers});s.push.apply(s,o.concat(a,l)),e.cursor&&(S.style.cursor=getComputedStyle(e.target).cursor,r.length>1&&Lo(h,t.cssClasses.drag),S.addEventListener("selectstart",xo,!1)),n.handleNumbers.forEach(function(e){G("start",e)})}}function V(e){e.stopPropagation();var n=z(e.calcPoint),i=function(e){var t=100,n=!1;return r.forEach(function(i,s){if(!O(s)){var r=m[s],o=Math.abs(r-e);(o<t||o<=t&&e>r||100===o&&100===t)&&(n=s,t=o)}}),n}(n);!1!==i&&(t.events.snap||To(h,t.cssClasses.tap,t.animationDuration),Z(i,n,!0,!0),Q(),G("slide",i,!0),G("update",i,!0),t.events.snap?$(e,{handleNumbers:[i]}):(G("change",i,!0),G("set",i,!0)))}function j(e){var t=z(e.calcPoint),n=p.getStep(t),i=p.fromStepping(n);Object.keys(b).forEach(function(e){"hover"===e.split(".")[0]&&b[e].forEach(function(e){e.call(oe,i)})})}function q(e){e.fixed||r.forEach(function(e,t){R(d.start,e.children[0],$,{handleNumbers:[t]})}),e.tap&&R(d.start,i,V,{}),e.hover&&R(d.move,i,j,{hover:!0}),e.drag&&o.forEach(function(n,i){if(!1!==n&&0!==i&&i!==o.length-1){var s=r[i-1],a=r[i],l=[n],c=[s,a],u=[i-1,i];Lo(n,t.cssClasses.draggable),e.fixed&&(l.push(s.children[0]),l.push(a.children[0])),e.dragAll&&(c=r,u=g),l.forEach(function(e){R(d.start,e,$,{handles:c,handleNumbers:u,connect:n})})}})}function W(e,t){b[e]=b[e]||[],b[e].push(t),"update"===e.split(".")[0]&&r.forEach(function(e,t){G("update",t)})}function U(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(b).forEach(function(e){var i=e.split(".")[0],s=e.substring(i.length);t&&t!==i||n&&n!==s||function(e){return e===Ho||e===Fo}(s)&&n!==s||delete b[e]})}function G(e,n,i){Object.keys(b).forEach(function(s){var r=s.split(".")[0];e===r&&b[s].forEach(function(e){e.call(oe,f.map(t.format.to),n,f.slice(),i||!1,m.slice(),oe)})})}function Y(e,n,i,s,o,a,l){var c;return r.length>1&&!t.events.unconstrained&&(s&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.margin,!1),i=Math.max(i,c)),o&&n<r.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.margin,!0),i=Math.min(i,c))),r.length>1&&t.limit&&(s&&n>0&&(c=p.getAbsoluteDistance(e[n-1],t.limit,!1),i=Math.min(i,c)),o&&n<r.length-1&&(c=p.getAbsoluteDistance(e[n+1],t.limit,!0),i=Math.max(i,c))),t.padding&&(0===n&&(c=p.getAbsoluteDistance(0,t.padding[0],!1),i=Math.max(i,c)),n===r.length-1&&(c=p.getAbsoluteDistance(100,t.padding[1],!0),i=Math.min(i,c))),l||(i=p.getStep(i)),!((i=Ao(i))===e[n]&&!a)&&i}function X(e,n){var i=t.ort;return(i?n:e)+", "+(i?e:n)}function K(e,n,i,s,r){var o=i.slice(),a=s[0],l=t.events.smoothSteps,c=[!e,e],d=[e,!e];s=s.slice(),e&&s.reverse(),s.length>1?s.forEach(function(e,t){var i=Y(o,e,o[e]+n,c[t],d[t],!1,l);!1===i?n=0:(n=i-o[e],o[e]=i)}):c=d=[!0];var u=!1;s.forEach(function(e,t){u=Z(e,i[e]+n,c[t],d[t],!1,l)||u}),u&&(s.forEach(function(e){G("update",e),G("slide",e)}),null!=r&&G("drag",a))}function J(e,n){return t.dir?100-e-n:e}function Q(){g.forEach(function(e){var t=m[e]>50?-1:1,n=3+(r.length+t*e);r[e].style.zIndex=String(n)})}function Z(e,n,i,s,o,a){return o||(n=Y(m,e,n,i,s,!1,a)),!1!==n&&(function(e,n){m[e]=n,f[e]=p.fromStepping(n);var i="translate("+X(J(n,0)-E+"%","0")+")";if(r[e].style[t.transformRule]=i,t.events.invertConnects&&m.length>1){var s=m.every(function(e,t,n){return 0===t||e>=n[t-1]});if(y!==!s)return y=!y,Ko(t,t.connect.map(function(e){return!e})),void re()}ee(e),ee(e+1),y&&(ee(e-1),ee(e+2))}(e,n),!0)}function ee(e){if(o[e]){var n=m.slice();y&&n.sort(function(e,t){return e-t});var i=0,s=100;0!==e&&(i=n[e-1]),e!==o.length-1&&(s=n[e]);var r=s-i,a="translate("+X(J(i,r)+"%","0")+")",l="scale("+X(r/100,"1")+")";o[e].style[t.transformRule]=a+" "+l}}function te(e,n){return null===e||!1===e||void 0===e?m[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=p.toStepping(e)),!1===e||isNaN(e)?m[n]:e)}function ne(e,n,i){var s=ko(e),r=void 0===m[0];n=void 0===n||n,t.animate&&!r&&To(h,t.cssClasses.tap,t.animationDuration),g.forEach(function(e){Z(e,te(s[e],e),!0,!1,i)});var o=1===g.length?0:1;if(r&&p.hasNoSize()&&(i=!0,m[0]=0,g.length>1)){var a=100/(g.length-1);g.forEach(function(e){m[e]=e*a})}for(;o<g.length;++o)g.forEach(function(e){Z(e,m[e],!0,!0,i)});Q(),g.forEach(function(e){G("update",e),null!==s[e]&&n&&G("set",e)})}function ie(e){if(void 0===e&&(e=!1),e)return 1===f.length?f[0]:f.slice(0);var n=f.map(t.format.to);return 1===n.length?n[0]:n}function se(e){var n=m[e],i=p.getNearbySteps(n),s=f[e],r=i.thisStep.step,o=null;if(t.snap)return[s-i.stepBefore.startValue||null,i.stepAfter.startValue-s||null];!1!==r&&s+r>i.stepAfter.startValue&&(r=i.stepAfter.startValue-s),o=s>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&s-i.stepBefore.highestStep,100===n?r=null:0===n&&(o=null);var a=p.countStepDecimals();return null!==r&&!1!==r&&(r=Number(r.toFixed(a))),null!==o&&!1!==o&&(o=Number(o.toFixed(a))),[o,r]}function re(){for(;s.firstChild;)s.removeChild(s.firstChild);for(var e=0;e<=t.handles;e++)o[e]=T(s,t.connect[e]),ee(e);q({drag:t.events.drag,fixed:!0})}Lo(c=h,t.cssClasses.target),0===t.dir?Lo(c,t.cssClasses.ltr):Lo(c,t.cssClasses.rtl),0===t.ort?Lo(c,t.cssClasses.horizontal):Lo(c,t.cssClasses.vertical),Lo(c,"rtl"===getComputedStyle(c).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),i=x(c,t.cssClasses.base),function(e,n){s=x(n,t.cssClasses.connects),r=[],(o=[]).push(T(s,e[0]));for(var i=0;i<t.handles;i++)r.push(C(n,i)),g[i]=i,o.push(T(s,e[i+1]))}(t.connect,i),q(t.events),ne(t.start),t.pips&&I(t.pips),t.tooltips&&D(),U("update"+Ho),W("update"+Ho,function(e,n,i,s,o){g.forEach(function(e){var n=r[e],s=Y(m,e,0,!0,!0,!0),a=Y(m,e,100,!0,!0,!0),l=o[e],c=String(t.ariaFormat.to(i[e]));s=p.fromStepping(s).toFixed(1),a=p.fromStepping(a).toFixed(1),l=p.fromStepping(l).toFixed(1),n.children[0].setAttribute("aria-valuemin",s),n.children[0].setAttribute("aria-valuemax",a),n.children[0].setAttribute("aria-valuenow",l),n.children[0].setAttribute("aria-valuetext",c)})});var oe={destroy:function(){for(U(Ho),U(Fo),Object.keys(t.cssClasses).forEach(function(e){Do(h,t.cssClasses[e])});h.firstChild;)h.removeChild(h.firstChild);delete h.noUiSlider},steps:function(){return g.map(se)},on:W,off:U,get:ie,set:ne,setHandle:function(e,t,n,i){if(!((e=Number(e))>=0&&e<g.length))throw new Error("noUiSlider: invalid handle number, got: "+e);Z(e,te(t,e),!0,!0,i),G("update",e),n&&G("set",e)},reset:function(e){ne(t.start,e)},disable:function(e){null!=e?(r[e].setAttribute("disabled",""),r[e].handle.removeAttribute("tabindex")):(h.setAttribute("disabled",""),r.forEach(function(e){e.handle.removeAttribute("tabindex")}))},enable:function(e){null!=e?(r[e].removeAttribute("disabled"),r[e].handle.setAttribute("tabindex","0")):(h.removeAttribute("disabled"),r.forEach(function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")}))},__moveHandles:function(e,t,n){K(e,t,m,n)},options:n,updateOptions:function(e,i){var s=ie(),r=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];r.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])});var o=ua(n);r.forEach(function(n){void 0!==e[n]&&(t[n]=o[n])}),p=o.spectrum,t.margin=o.margin,t.limit=o.limit,t.padding=o.padding,t.pips?I(t.pips):P(),t.tooltips?D():L(),m=[],ne(Eo(e.start)?e.start:s,i),e.connect&&re()},target:h,removePips:P,removeTooltips:L,getPositions:function(){return m.slice()},getTooltips:function(){return l},getOrigins:function(){return r},pips:I};return oe}var pa=function(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=ha(e,ua(t),t);return e.noUiSlider=n,n};const fa={start:[0],connect:!1,range:{min:0,max:100},cssPrefix:"range-slider",cssClasses:{target:"__target",base:"__base",origin:"__origin",handle:"__handle",handleLower:"__handle--lower",handleUpper:"__handle--upper",touchArea:"__touch-area",horizontal:"--horizontal",vertical:"--vertical",background:"__background",connect:"__connect",connects:"__connects",ltr:"--ltr",rtl:"--rtl",draggable:"--draggable",drag:"--state-drag",tap:"--state-tap",active:"--active",tooltip:"__tooltip",pips:"__pips",pipsHorizontal:"__pips--horizontal",pipsVertical:"__pips--vertical",marker:"__marker",markerHorizontal:"__marker--horizontal",markerVertical:"__marker--vertical",markerNormal:"__marker--normal",markerLarge:"__marker--large",markerSub:"__marker--sub",value:"__value",valueHorizontal:"__value--horizontal",valueVertical:"__value--vertical",valueNormal:"__value--normal",valueLarge:"__value--large",valueSub:"__value--sub"},format:{decimals:0}},ma={cycleDuration:4e3,delay:5e3},ga=":not([inert]):not([inert] *)",va=':not([tabindex^="-"])',ba=":not(:disabled)";var ya=[`a[href]${ga}${va}`,`area[href]${ga}${va}`,`input:not([type="hidden"]):not([type="radio"])${ga}${va}${ba}`,`input[type="radio"]${ga}${va}${ba}`,`select${ga}${va}${ba}`,`textarea${ga}${va}${ba}`,`button${ga}${va}${ba}`,`details${ga} > summary:first-of-type${va}`,`iframe${ga}${va}`,`audio[controls]${ga}${va}`,`video[controls]${ga}${va}`,`[contenteditable]${ga}${va}`,`[tabindex]${ga}${va}`];function wa(e){(e.querySelector("[autofocus]")||e).focus()}function _a(e,t){if(t&&xa(e))return e;if(function(e){return!(e.shadowRoot&&"-1"===e.getAttribute("tabindex")||e.matches(":disabled,[hidden],[inert]"))}(e))if(e.shadowRoot){let n=Sa(e.shadowRoot,t);for(;n;){const e=_a(n,t);if(e)return e;n=Ea(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=_a(e,t);if(n)return n}}else{let n=Sa(e,t);for(;n;){const e=_a(n,t);if(e)return e;n=Ea(n,t)}}return!t&&xa(e)?e:null}function Sa(e,t){return t?e.firstElementChild:e.lastElementChild}function Ea(e,t){return t?e.nextElementSibling:e.previousElementSibling}const xa=e=>!e.shadowRoot?.delegatesFocus&&e.matches(ya.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e);function Ca(e=document){const t=e.activeElement;return t?t.shadowRoot?Ca(t.shadowRoot)||document.activeElement:t:null}function Ta(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=Aa(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function Aa(e){return e.assignedSlot||(e.parentNode?Aa(e.parentNode):null)}const ka="data-a11y-dialog";class Oa{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(ka)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){return this.shown||this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=Ca(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():wa(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){return this.shown?(this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this):this}on(e,t,n){return this.$el.addEventListener(e,t,n),this}off(e,t,n){return this.$el.removeEventListener(e,t,n),this}fire(e,t){const n=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(n),n}handleTriggerClicks(e){const t=e.composedPath()[0],n=Ta(`[${ka}-show="${this.id}"]`,t),i=Ta(`[${ka}-hide="${this.id}"]`,t),s=Ta(`[${ka}-hide]`,t)&&Ta('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||s)&&this.hide(e)}bindKeypress(e){if(Ta('[aria-modal="true"]',Ca())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&function(e,t){const[n,i]=function(e){const t=_a(e,!0);return[t,t?_a(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const s=Ca();t.shiftKey&&s===n?(i.focus(),t.preventDefault()):t.shiftKey||s!==i||(n.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(){const e=Ca();Ta(`[aria-modal="true"], [${ka}-ignore-focus-trap]`,e)||wa(this.$el)}}function La(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new Oa(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",La):La());var Da=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),Ma="undefined"==typeof Element,Pa=Ma?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ia=!Ma&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Na=function(e){return"INPUT"===e.tagName},Ra=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},za=function(e,t){return!(t.disabled||function(e){return Na(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var s=getComputedStyle(e).visibility;if("hidden"===s||"collapse"===s)return!0;var r=Pa.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Pa.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Ra(e)}else{if("function"==typeof i){for(var o=e;e;){var a=e.parentElement,l=Ia(e);if(a&&!a.shadowRoot&&!0===i(a))return Ra(e);e=e.assignedSlot?e.assignedSlot:a||l===e.ownerDocument?a:l.host}e=o}if(function(e){var t,n,i,s,r=e&&Ia(e),o=null===(t=r)||void 0===t?void 0:t.host,a=!1;if(r&&r!==e)for(a=!!(null!==(n=o)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(o)||null!=e&&null!==(s=e.ownerDocument)&&void 0!==s&&s.contains(e));!a&&o;){var l,c,d;a=!(null===(c=o=null===(l=r=Ia(o))||void 0===l?void 0:l.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(o))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!Pa.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},Ba=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Pa.call(e,Da)&&function(e,t){return!(function(e){return function(e){return Na(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Ia(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return!1}var s=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!s||s===e}(e)}(t)||function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))}(e)?0:e.tabIndex}(t)<0||!za(e,t))}(t,e)};const Fa="--ods-modal-scrollbar-width",Ha="data-lock-scrolltop";class $a{element;config;instance;constructor(e,t){return this.element=e,this.config={classModalIsOpen:"is-active",classModalIsOpenBody:"has-modal",root:"#root",modalsRoot:"#root-modals",...t},this.handleShow=this.handleShow.bind(this),this.handleHide=this.handleHide.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.headerFirstItemSpacing=this.headerFirstItemSpacing.bind(this),$a.moveToModalRoot=$a.moveToModalRoot.bind(this),$a.lockBody=$a.lockBody.bind(this),$a.unlockBody=$a.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}static getInstance(e){return e&&e.ODS_Modal||null}handleShow(e){$a.lockBody(),e&&e.classList.add(this.config.classModalIsOpen);const t=e.querySelector("[data-a11y-dialog-initial-focus]");t&&(Ba(t)||t.setAttribute("tabindex","-1"),t.focus())}handleHide(e){$a.unlockBody(),e&&e.classList.remove(this.config.classModalIsOpen)}show(){this.instance.show()}hide(){this.instance.hide()}headerFirstItemSpacing(){const e=this.element.querySelector(".modal__header");if(e){const t=e.classList.contains("modal__header--no-spacing"),n=Array.from(e.children).find(e=>!e.classList.contains("btn"));n&&!t&&(n.style.marginRight="40px")}}init(){this.config.modalsRoot&&!this.config.disablePortal&&$a.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new Oa(this.element),this.instance.on("show",e=>{const t=e.currentTarget;this.handleShow(t)}),this.instance.on("hide",e=>{const t=e.currentTarget;this.handleHide(t)}),this.headerFirstItemSpacing()}destroy(){if(this.instance){this.instance.hide();const e=this.instance;document.removeEventListener("click",e.handleTriggerClicks,!0),document.body.removeEventListener("focus",e.maintainFocus,!0),this.element.removeEventListener("keydown",e.bindKeypress,!0),$a.unlockBody()}this.element.ODS_Modal=this}update(){this.destroy(),this.init()}static moveToModalRoot(e,t){t&&t.appendChild(e)}static isLocked=!1;static resolveBodyLockClassName(e,t){const n=t;return e||n?.config?.classModalIsOpenBody||"has-modal"}static lockBody(e,t){if($a.isLocked)return;const n=$a.resolveBodyLockClassName(e,this),i=window.scrollY;document.body.setAttribute(Ha,i.toString());const s=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top=`-${i}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.paddingRight=`${s}px`,document.body.style.setProperty(Fa,`${s}px`),document.body.classList.add(n),$a.isLocked=!0}static unlockBody(e,t){if(!$a.isLocked)return;const n=$a.resolveBodyLockClassName(e,this),i=Number.parseInt(document.body.getAttribute(Ha)||"0",10);document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.paddingRight="",document.body.style.removeProperty(Fa),document.body.classList.remove(n),window.scrollTo({top:Number.isFinite(i)?i:0,left:0,behavior:"instant"}),$a.isLocked=!1}}const Va={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'},ja={tabSelector:'[role="tab"]'};class qa{static SCROLL_ALIGNMENT_TOLERANCE=1;static SCROLL_EDGE_TOLERANCE=1;element;config;tabs;tabPanels;activeTabIndex;rovingTabindex;resizeObserver;horizontalScrollHandler;resizeHandler;viewportElement;constructor(e,t){return this.element=e,this.config={...ja,...t},this.tabs=[],this.tabPanels=[],this.activeTabIndex=null,this.rovingTabindex=null,this.resizeObserver=null,this.viewportElement=null,this.handleClick=this.handleClick.bind(this),this.handleTabFocus=this.handleTabFocus.bind(this),this.horizontalScrollHandler=this.updateHorizontalOverflowState.bind(this),this.resizeHandler=this.updateHorizontalOverflowState.bind(this),this.element.ODS_Tabs=this,this.init(),this}static getInstance(e){return e&&e.ODS_Tabs?e.ODS_Tabs:null}init(){this.tabs=Array.from(this.element.querySelectorAll(this.config.tabSelector)),this.tabs.map((e,t)=>{const n=e.getAttribute("aria-controls");return this.tabPanels.push(n?document.getElementById(n):null),e.addEventListener("click",this.handleClick),e.addEventListener("focus",this.handleTabFocus),this.isSelected(e)&&(this.activeTabIndex=t),e}),this.rovingTabindex?this.rovingTabindex.update(this.tabs):this.rovingTabindex=new _(this.tabs,{direction:"any"}),null!==this.activeTabIndex?this.setActiveTab(this.activeTabIndex):this.tabs.length>0&&this.activateNthTab(0),this.setupOverflowObserver()}destroy(){this.teardownOverflowObserver(),this.tabs.map(e=>(e.removeEventListener("click",this.handleClick),e.removeEventListener("focus",this.handleTabFocus),e)),this.tabs=[],this.tabPanels=[],this.rovingTabindex&&this.rovingTabindex.destroy(),this.element.ODS_Tabs=null}setupOverflowObserver(){this.teardownOverflowObserver(),this.viewportElement=this.element.parentElement?.classList.contains("tab-list__viewport")?this.element.parentElement:null,this.element.addEventListener("scroll",this.horizontalScrollHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler),"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.resizeHandler),this.resizeObserver.observe(this.element),this.tabs.forEach(e=>this.resizeObserver?.observe(e))),this.updateHorizontalOverflowState()}teardownOverflowObserver(){this.element.removeEventListener("scroll",this.horizontalScrollHandler),window.removeEventListener("resize",this.resizeHandler),this.viewportElement&&(this.viewportElement.classList.remove("has-left-overflow","has-right-overflow"),this.viewportElement=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}updateHorizontalOverflowState(){if(!this.viewportElement)return;const e=this.element.scrollWidth-this.element.clientWidth,t=e>qa.SCROLL_EDGE_TOLERANCE,n=this.element.scrollLeft<=qa.SCROLL_EDGE_TOLERANCE,i=this.element.scrollLeft>=e-qa.SCROLL_EDGE_TOLERANCE;this.viewportElement.classList.toggle("has-left-overflow",t&&!n),this.viewportElement.classList.toggle("has-right-overflow",t&&!i)}update(){this.destroy(),this.init()}isActive=e=>!!e&&!e.hasAttribute("hidden");isSelected=e=>"true"===e.getAttribute("aria-selected");setActiveTab(e,t=!1){this.tabs.map((t,n)=>n===e?(this.activeTabIndex=n,this.toggleTab(t,"on")):this.toggleTab(t,"off")),this.tabPanels.map((t,n)=>n===e?this.toggleTabPanel(t,"on"):this.toggleTabPanel(t,"off"));const n=this.tabs[e];n&&this.scrollTabIntoView(n,t)}scrollTabIntoView(e,t=!1){const n=Math.max(0,this.element.scrollWidth-this.element.clientWidth),i=this.element.getBoundingClientRect(),s=e.getBoundingClientRect(),r=s.left-i.left+this.element.scrollLeft+s.width/2-this.element.clientWidth/2,o=window.innerWidth<768?"auto":"smooth",a=Math.min(n,Math.max(0,r)),l=Math.abs(this.element.scrollLeft-a)<=qa.SCROLL_ALIGNMENT_TOLERANCE;!t&&l||("function"!=typeof this.element.scrollTo?(this.element.scrollLeft=a,this.updateHorizontalOverflowState()):this.element.scrollTo({left:a,behavior:o}))}handleClick(e){const t=e.currentTarget;if(t.hasAttribute("aria-disabled"))return void e.preventDefault();const n=this.tabs.findIndex(e=>e===t);n>=0&&this.setActiveTab(n,!0)}toggleTab(e,t){const n=this.isSelected(e);"on"!==t||n||(e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")),"off"===t&&n&&(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}toggleTabPanel(e,t){if(!e)return;const n=this.isActive(e);"on"!==t||n||e.removeAttribute("hidden"),"off"===t&&n&&e.setAttribute("hidden","")}activateNthTab(e){this.setActiveTab(e,!0)}handleTabFocus(e){this.rovingTabindex&&!this.rovingTabindex.isActive&&this.rovingTabindex.init();const t=e.currentTarget;t&&this.shouldCenterFocusedTab(t)&&this.scrollTabIntoView(t)}shouldCenterFocusedTab(e){if("function"!=typeof e.matches)return!0;try{return e.matches(":focus-visible")}catch{return!0}}}const Wa={activeClass:"is-active",settingsAttr:"data-toggle"};class Ua{element;config;settings;targets;hasClickOutside;constructor(e,t){return this.element=e,this.config={...Wa,...t},this.settings=[],this.targets=[],this.hasClickOutside=!1,this.handleClick=this.handleClick.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.element.ODS_Toggle=this,this.init(),this}doToggle(e){const{dispatchEvent:t=!0}=e,{element:n,attribute:i,value:s,action:r}=e,o={...e},a={trigger:this.element,element:n};let l=i,c=n,d=s;"icon"===l&&(l="xlink:href",c=n.querySelector("use")),"text"===l&&(c=n.querySelector("[data-toggle-text-target]")||n),void 0===d&&(d=!1);const u=si({element:c,attribute:l,action:r,value:d,dispatchEvent:t,eventDetail:a});return null!==u&&(o.value=u),o}init(){return this.settings=this.parseSettings(),this.targets=this.setupTargets(),this.hasClickOutside=this.settings.some(e=>!0===e.clickOutside),this.element.addEventListener("click",this.handleClick),this.hasClickOutside&&document.addEventListener("click",this.handleClickOutside),this.targets}handleClick(){this.targets=this.targets.map(e=>this.doToggle(e)),this.element.dispatchEvent(new CustomEvent(ii,{bubbles:!0}))}handleClickOutside(e){const t=e.target;this.element.contains(t)||this.targets.some(e=>e.element.contains(t))||this.targets.some(e=>"class"===e.attribute&&"string"==typeof e.value?e.element.classList.contains(e.value):"hidden"===e.attribute&&!e.element.hasAttribute("hidden"))&&(this.targets=this.targets.map(e=>this.doToggle(e)),this.element.dispatchEvent(new CustomEvent(ii,{bubbles:!0})))}destroy(){this.element.removeEventListener("click",this.handleClick),this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside),this.settings=[],this.targets=[],this.hasClickOutside=!1}update(){this.removeNonExistentTargets(),this.addNewTargets();const e=this.hasClickOutside;this.hasClickOutside=this.settings.some(e=>!0===e.clickOutside),!e&&this.hasClickOutside?document.addEventListener("click",this.handleClickOutside):e&&!this.hasClickOutside&&document.removeEventListener("click",this.handleClickOutside)}static getTargetElementsFromString({target:e,trigger:t}){const n=e.trim();return"self"===n?[t]:"parent"===n?[t.parentNode]:"previous"===n?[t.previousElementSibling]:"next"===n?[t.nextElementSibling]:"string"==typeof n?Array.from(document.querySelectorAll(n)):[]}parseSettings(){const e=this.element.getAttribute(this.config.settingsAttr),t=this.element.getAttribute("aria-controls");let n=[];try{e&&(n=JSON.parse(e))}catch(e){}return t&&(n=[...this.element.getAttribute("aria-expanded")?[{target:"self",attribute:"aria-expanded"}]:[],{target:t.split(" ").map(e=>`#${e}`).join(","),attribute:"hidden"},...Array.isArray(n)?n:[]]),n}setupTargets(){const e=this.element;return this.settings.reduce((t,n)=>n&&n.target?[...t,...n.target.split(",").reduce((t,i)=>[...t,...Ua.getTargetElementsFromString({target:i,trigger:e}).map(e=>({...n,element:e}))],[])]:t,[])}removeNonExistentTargets(){this.targets=this.targets.filter(e=>document.contains(e.element))}addNewTargets(){const e=this.setupTargets().filter(e=>!this.targets.find(t=>t.element===e.element&&t.action===e.action));this.targets=[...this.targets,...e]}static getInstance(e){return e&&e.ODS_Toggle?e.ODS_Toggle:null}}const Ga=[{Module:class{element;config;rovingTabindex;buttons;constructor(e,t){return this.element=e,this.config={...S,...t},this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.element.ODS_Accordion=this,this.init(),this}onFocus(e){this.rovingTabindex.isActive||this.rovingTabindex.init();const t=e.currentTarget;window.location.hash.substring(1)===t.getAttribute("id")&&"false"===t.getAttribute("aria-expanded")&&t.click()}toggleAccordionItem(e){const t=e.getAttribute("aria-controls"),n=t?this.element.querySelector(`#${t}`):null;if(!n)return;const i=!("true"===e.getAttribute("aria-expanded"));e.setAttribute("aria-expanded",String(i)),i?(n.removeAttribute("hidden"),this.scrollTriggerIntoModalView(e)):n.setAttribute("hidden","")}scrollTriggerIntoModalView(e){const t=e.closest(".modal__dialog");if(!t)return;const n=()=>{const n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),s=this.getStickyHeaderOffset(t),r=i.top-n.top+t.scrollTop-s-8;t.scrollTo({top:Math.max(0,r),behavior:"smooth"})};"function"!=typeof window.requestAnimationFrame?setTimeout(n,0):window.requestAnimationFrame(n)}getStickyHeaderOffset(e){const t=e.querySelector(".modal__header");if(!t)return 0;const n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return Math.max(0,i.bottom-n.top)}init(){this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.rovingTabindex?this.rovingTabindex.update(this.buttons):this.rovingTabindex=new _(this.buttons,{direction:"vertical"}),this.buttons.forEach(e=>{e.addEventListener("focus",this.onFocus),e.addEventListener("click",this.onClick)})}onClick(e){const t=e.currentTarget;this.toggleAccordionItem(t)}destroy(){this.rovingTabindex.destroy(),this.buttons.forEach(e=>{e.removeEventListener("focus",this.onFocus),e.removeEventListener("click",this.onClick)})}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_Accordion?e.ODS_Accordion:null}},name:"Accordion",selector:"[data-accordion]"},{Module:E,name:"AnchorNavigation",selector:"[data-anchor-navigation]"},{Module:class{element;config;instance;teardownClearButton;constructor(e,t){return this.element=e,this.config={...oi,...t},this.onPageshow=this.onPageshow.bind(this),this.onClearButtonClick=this.onClearButtonClick.bind(this),this.instance=null,this.teardownClearButton=null,this.element.ODS_Autocomplete=this,this.init().catch(()=>{}),this}async init(){const e=this.element.getAttribute("data-autocomplete-config");let t={};if(e)try{t=JSON.parse(e)}catch{}this.config={...this.config,...t};const n=(this.config.customInputClassName||"").split(/\s+/).filter(Boolean),i=this.config.wrapperClassName.split(/\s+/).filter(Boolean),s=n.includes("input--search-icon")||i.includes("autocomplete__wrapper--search-icon"),r=n.includes("input--search-icon-with-placeholder")||i.includes("autocomplete__wrapper--search-icon-with-placeholder"),o=this.element.classList.contains("is-invalid");this.config.customInputClassName=n.filter(e=>"input--search-icon"!==e&&"input--search-icon-with-placeholder"!==e).join(" "),o&&(this.config.customInputClassName=ai(this.config.customInputClassName,"is-invalid")),s&&(this.config.wrapperClassName=ai(this.config.wrapperClassName,"autocomplete__wrapper--search-icon")),r&&(this.config.wrapperClassName=ai(this.config.wrapperClassName,"autocomplete__wrapper--search-icon-with-placeholder"));const a=(await Promise.resolve().then(function(){return Ja})).default;"SELECT"===this.element.tagName?a.enhanceSelectElement({selectElement:this.element,...this.config}):a({element:this.element,...this.config}),this.initEnhancedControls(r),window.addEventListener("pageshow",this.onPageshow)}getWrapper(){if("SELECT"===this.element.tagName){const e=this.element.previousElementSibling;return(e=>{if(!e)return!1;const t=e.ownerDocument?.defaultView?.HTMLElement;return t?e instanceof t:e.nodeType===Node.ELEMENT_NODE})(e)?e.classList.contains("autocomplete__wrapper")?e:e.querySelector(".autocomplete__wrapper"):null}return this.element.querySelector(".autocomplete__wrapper")}getInput(){return this.getWrapper()?.querySelector(".autocomplete__input")??null}initEnhancedControls(e,t=10){this.getInput()?(this.syncInputState(),e&&this.initClearButton()):t>0&&this.element.ownerDocument.defaultView?.setTimeout(()=>this.initEnhancedControls(e,t-1),0)}syncInputState(){const e=this.getInput();e&&(this.element.classList.contains("is-invalid")&&(e.classList.add("is-invalid"),e.setAttribute("aria-invalid","true")),this.element instanceof HTMLSelectElement&&this.element.disabled&&(e.disabled=!0))}initClearButton(){this.teardownClearButton?.();const e=this.getWrapper(),t=this.getInput();if(!e||!t)return;const n=document.createElement("button");n.type="button",n.className="autocomplete__clear",n.setAttribute("aria-label",this.config.tClearButton());const i=()=>{n.hidden=t.disabled||0===t.value.length},s=()=>{this.element.ownerDocument.defaultView?.setTimeout(i,0)};n.addEventListener("mousedown",this.preventDefault),n.addEventListener("keydown",this.stopPropagation),n.addEventListener("click",this.onClearButtonClick),t.addEventListener("input",i),t.addEventListener("change",i),e.addEventListener("click",s),e.addEventListener("keyup",s),i(),e.appendChild(n),this.teardownClearButton=()=>{n.removeEventListener("mousedown",this.preventDefault),n.removeEventListener("keydown",this.stopPropagation),n.removeEventListener("click",this.onClearButtonClick),t.removeEventListener("input",i),t.removeEventListener("change",i),e.removeEventListener("click",s),e.removeEventListener("keyup",s),n.remove()}}preventDefault(e){e.preventDefault()}stopPropagation(e){e.stopPropagation()}onClearButtonClick(){const e=this.getInput();if(e){if(e.value="",e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})),this.element instanceof HTMLSelectElement){const e=Array.from(this.element.options).find(e=>""===e.value);e?e.selected=!0:this.element.selectedIndex=-1,this.element.dispatchEvent(new Event("change",{bubbles:!0}))}this.config.onConfirm?.(""),e.focus()}}onPageshow(e){e.persisted&&window&&window.location.reload()}destroy(){this.teardownClearButton?.(),this.teardownClearButton=null,window.removeEventListener("pageshow",this.onPageshow),this.element.ODS_Autocomplete=null}update(){this.destroy(),this.init().catch(()=>{})}static getInstance(e){return e&&e.ODS_Autocomplete?e.ODS_Autocomplete:null}},name:"Autocomplete",selector:"[data-autocomplete]"},{Module:class{element;config;instance;constructor(e,t){return this.element=e,this.config={...Qs,...t},this.init(),this.element.ODS_DatePicker=this,this}init(){const e=this.element.getAttribute("data-datepicker-config"),t=this.element.getAttribute("data-enabled-days");let n={};if(e)try{n=JSON.parse(e)}catch{n={}}this.config={...this.config,...n,...t&&{disabledDayFn:e=>!t.split(",").includes(function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e))}};const i=this.element.getAttribute("data-datepicker-id")||void 0,s=this.element.getAttribute("data-datepicker-name")||i;var r,o;this.instance=(r=this.element,o={id:i,name:s,...this.config},qi(Ei(Ks,{...o}),r),{destroy(){!function(e){e.__k&&qi(null,e)}(r),qi(Ei(Js,{...o}),r)}})}destroy(){this.instance&&this.instance.destroy(),this.instance=null,this.element.ODS_DatePicker=null}},name:"DatePicker",selector:"[data-datepicker]"},{Module:class{element;config;trigger;instance;transitioner;focusableElements;constructor(e,t={}){return e.ODS_Dropdown?e.ODS_Dropdown:(this.element=e,this.config={...ni,...t},this.config.popperOptions={...ni.popperOptions,...t?.popperOptions||{}},this.config.popperOptions.modifiers=[...ni.popperOptions.modifiers||[],...t?.popperOptions?.modifiers||[]],this.handleVisibility=this.handleVisibility.bind(this),this.handleKeyPress=this.handleKeyPress.bind(this),this.handleClick=this.handleClick.bind(this),this.element.ODS_Dropdown=this,this.focusableElements=this.element.querySelectorAll('a[href]:not([disabled]), button:not([disabled]),\n textarea:not([disabled]), input[type="text"]:not([disabled]),\n input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]),\n select:not([disabled])'),this.init(),this)}static getInstance(e){return e&&e.ODS_Dropdown?e.ODS_Dropdown:null}init(){this.trigger=document.getElementById(this.element.id.replace("dropdown","btn"));const e=this.element.getAttribute("data-dropdown-placement");e&&(this.config.popperOptions.placement=e),this.instance=Qt(this.trigger,this.element,this.config.popperOptions),this.transitioner=Ne({element:this.element,visibleClass:"dropdown--visible"}),this.trigger.addEventListener("click",this.handleVisibility,!0)}handleVisibility(){this.element.classList.contains("dropdown--visible")?this.hide():this.show()}handleClick(e){this.trigger===e.target||this.trigger.contains(e.target)||this.element.hasAttribute(this.config.dataInteractive)&&!e.target.id.includes(this.element.id.replace("dropdown","btn"))&&this.element.contains(e.target)||this.handleVisibility()}handleKeyPress(e){if(w.ESC.includes(e.key)&&(this.handleVisibility(),this.element.contains(document.activeElement)&&this.trigger.focus(),this.hide()),this.element.hasAttribute(this.config.focusTrap)){const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];document.activeElement!==this.button||"Tab"!==e.key&&9!==e.keyCode?"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===t&&(n.focus(),e.preventDefault()):document.activeElement===n&&(t.focus(),e.preventDefault())):e.shiftKey&&(this.focusableElements[this.focusableElements.length-1].focus(),e.preventDefault())}}show(){this.transitioner.show(),this.instance.forceUpdate(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),window.onresize=()=>this.update()}hide(){this.transitioner.hide(),document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),window.onresize=null}update(){this.instance.forceUpdate()}destroy(){this.trigger.removeEventListener("click",this.handleVisibility,!0),this.hide(),this.instance.destroy(),this.element.ODS_Dropdown=null,window.onresize=null,this.config.removeDialogOnDestroy&&this.element.remove()}},name:"Dropdown",selector:"[data-dropdown]"},{Module:class{element;constructor(e){this.element=e,this.toggle=this.toggle.bind(this),this.element.ODS_Expander=this,this.init()}toggle(){const e=this.element.getAttribute("data-toggle-group");e&&this.syncGroup(e)}syncGroup(e){const t=this.element.open;document.querySelectorAll(`[data-toggle-group="${e}"][data-expander]`).forEach(e=>{e!==this.element&&e.open!==t&&(e.open=t)})}init(){this.element.addEventListener("toggle",this.toggle)}update(){this.destroy(),this.init()}destroy(){this.element.removeEventListener("toggle",this.toggle)}static getInstance(e){return e&&e.ODS_Expander?e.ODS_Expander:null}},name:"Expander",selector:"[data-expander]"},{Module:class{element;config;controlElement=null;indicatorElements=[];constructor(e,t){return this.element=e,this.config={...x,...t},this.highlightIndicators=this.highlightIndicators.bind(this),this.unhighlightIndicators=this.unhighlightIndicators.bind(this),this.element.ODS_BlockAction=this,this.init(),this}init(){this.controlElement=this.element.querySelector(this.config.controlSelector),this.indicatorElements=Array.from(this.element.querySelectorAll(this.config.indicatorSelector)),!this.controlElement||this.indicatorElements.length<1||(this.controlElement.addEventListener("mouseenter",this.highlightIndicators),this.controlElement.addEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.addEventListener("focus",this.highlightIndicators),this.controlElement.addEventListener("blur",this.unhighlightIndicators))}highlightIndicators(){this.indicatorElements.forEach(e=>e.classList.add(this.config.activeClass))}unhighlightIndicators(){this.indicatorElements.forEach(e=>e.classList.remove(this.config.activeClass))}destroy(){this.indicatorElements.forEach(e=>e.classList.remove(this.config.activeClass)),this.controlElement&&(this.controlElement.removeEventListener("mouseenter",this.highlightIndicators),this.controlElement.removeEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.removeEventListener("focus",this.highlightIndicators),this.controlElement.removeEventListener("blur",this.unhighlightIndicators)),this.controlElement=null,this.indicatorElements=[]}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_BlockAction?e.ODS_BlockAction:null}},name:"BlockAction",selector:"[data-block-action]"},{Module:xn,name:"Carousel",selector:"[data-carousel]"},{Module:class{element;config;viewport;instance;tabs=[];_dotAnimationJustStarted=!1;_isDragging=!1;resizeRafId;_boundTabClick;_boundPrevClick;_boundNextClick;_boundPlayPauseClick;_boundWindowResize;constructor(e,t){return this.element=e,this.config={...Hn,...t},this.element.ODS_CarouselHero=this,this._boundTabClick=this._onTabClick.bind(this),this._boundPrevClick=this._onUserNavigation.bind(this),this._boundNextClick=this._onUserNavigation.bind(this),this._boundPlayPauseClick=this._onPlayPauseClick.bind(this),this._boundWindowResize=this._onWindowResize.bind(this),this.init(),this}init(){this.getElements(),this.setupConfig(),this.createSwiper(),this.setupEventListeners(),this.renderPaginationDots(),this.updateStates(),this.updatePlayPauseIcon(),this.hasAutoplay()&&this.isAutoplayRunning()&&this.startDotAnimation(),window.addEventListener("resize",this._boundWindowResize)}_onWindowResize(){this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=void 0,this.instance&&this.viewport&&(this.viewport.clientWidth<=0||(this.instance.update(),this.updateStates(),this.updatePlayPauseIcon()))})}getElements(){this.viewport=this.element.querySelector(Pn);const e=this.element.querySelector(zn);e&&(this.tabs=Array.from(e.querySelectorAll(Bn)))}setupConfig(){const e=this.element.hasAttribute("data-interval")&&parseInt(this.element.getAttribute("data-interval"))||0;if("object"==typeof this.config.a11y&&null!==this.config.a11y&&(this.config.a11y={...this.config.a11y,slideRole:this.tabs.length>0?"tabpanel":"group"}),this.element.hasAttribute("data-swiper-options"))try{const e=JSON.parse(this.element.getAttribute("data-swiper-options"));this.config={...this.config,...e}}catch(e){}this.config.loop=!1,this.config.rewind=!0,e>=1e3&&(this.config.autoplay={delay:e,disableOnInteraction:!1,pauseOnMouseEnter:!1,waitForTransition:!0,stopOnLastSlide:!1},this.element.classList.add(Dn))}createSwiper(){const e=this.viewport.querySelectorAll(`.${Tn}`).length>1;this.instance=new _e(this.viewport,{...this.config,modules:[ke,De,Pe,xe,Ie],navigation:{nextEl:this.element.querySelector(Nn),prevEl:this.element.querySelector(In)},pagination:!!e&&{...this.config.pagination,el:this.element.querySelector(Fn)},on:{slideChange:()=>{this.updateStates(),this.isAutoplayRunning()?this.restartDotAnimation():this.stopDotAnimation()},autoplayStart:()=>{this._onAutoplayStart()},autoplayStop:()=>{this._onAutoplayStop()},touchStart:()=>{this._isDragging=!0,this._stopAutoplayIfRunning()},touchEnd:()=>{this._isDragging=!1}}}),this.updatePlayPauseIcon()}setupEventListeners(){this.tabs.forEach(e=>{e.removeEventListener("click",this._boundTabClick),e.addEventListener("click",this._boundTabClick)});const e=this.element.querySelector(Rn);e&&(e.removeEventListener("click",this._boundPlayPauseClick),e.addEventListener("click",this._boundPlayPauseClick));const t=this.element.querySelector(In),n=this.element.querySelector(Nn);t&&(t.removeEventListener("click",this._boundPrevClick),t.addEventListener("click",this._boundPrevClick)),n&&(n.removeEventListener("click",this._boundNextClick),n.addEventListener("click",this._boundNextClick))}_onUserNavigation(){this._stopAutoplayIfRunning(),this.stopDotAnimation()}_onTabClick(e){e.preventDefault();const t=e.currentTarget,n=this.tabs.indexOf(t);-1!==n&&n!==this.instance?.realIndex&&(this._onUserNavigation(),this.goToSlide(n))}_onPlayPauseClick(){this.toggleAutoplay()}isAutoplayRunning(){return!(!this.instance?.autoplay||!this.instance.autoplay.running)}_stopAutoplayIfRunning(){this.isAutoplayRunning()&&this.instance.autoplay.stop()}_onAutoplayStart(){this.element.classList.add(Dn),this.element.classList.remove(Mn),this.updatePlayPauseIcon(),this.startDotAnimation()}_onAutoplayStop(){this.element.classList.remove(Dn),this.element.classList.add(Mn),this.updatePlayPauseIcon(),this.stopDotAnimation()}toggleAutoplay(){this.instance&&this.instance.autoplay&&(this.isAutoplayRunning()?this.instance.autoplay.stop():(this.updateStates(),setTimeout(()=>{this.instance&&this.instance.autoplay&&this.instance.autoplay.start()},10)))}goToSlide(e){this.instance&&this.instance.realIndex!==e&&(this.instance.params.loop?this.instance.slideToLoop(e):this.instance.slideTo(e))}updateStates(){if(!this.instance)return;const e=this.instance.realIndex??this.instance.activeIndex??0;this.tabs.forEach((t,n)=>{const i=n===e;t.classList.toggle(Ln,i),t.setAttribute("aria-selected",String(i)),t.setAttribute("tabindex",i?"0":"-1")}),this.scrollActiveTabIntoView(e),this.updatePaginationBullets(e)}updatePaginationBullets(e){const t=this.element.querySelector(Fn);t&&t.querySelectorAll(`.${An}`).forEach((t,n)=>{const i=n===e;if(t.classList.toggle("is-active",i),!this.hasAutoplay()){const e=t.querySelector(`.${kn}`);e&&(e.style.display=i?"block":"none")}})}scrollActiveTabIntoView(e){if(!this.tabs.length||e<0||e>=this.tabs.length)return;const t=this.tabs[e],n=this.element.querySelector(zn);if(!n||!t)return;const i=n.getBoundingClientRect(),s=t.getBoundingClientRect(),r=i.width-56;if(s.right>i.left+r||s.left<i.left){const e=s.left-i.left-r/2+s.width/2;n.scrollBy({left:e,behavior:"smooth"})}}updatePlayPauseIcon(){const e=this.element.querySelector(Rn);if(!e)return;const t=e.querySelector("use");if(t){const e=this.isAutoplayRunning()?"pause":"play",n=t.getAttribute("xlink:href")||"";if(!n.endsWith(`#${e}`)){const i=n.replace(/#[\w-]+$/,`#${e}`);t.setAttribute("xlink:href",i)}}}renderPaginationDots(){this._getPaginationButtons().forEach(e=>{const t=this.createSvgDot();e.innerHTML="",e.appendChild(t)})}startDotAnimation(e=!1){if(!this.hasAutoplay())return;if(!e&&!this.isAutoplayRunning())return;if(this._dotAnimationJustStarted)return;this._dotAnimationJustStarted=!0;const t=this._getActiveBulletButton();if(!t)return void(this._dotAnimationJustStarted=!1);const n=t.querySelector(`.${kn}`);if(!n)return void(this._dotAnimationJustStarted=!1);const i=n.querySelector("circle");if(!i)return void(this._dotAnimationJustStarted=!1);const s=this.getAnimationDuration();i.style.animation="none",t.offsetHeight,i.style.animation=`countdown linear ${s}ms 1 forwards`,this._dotAnimationJustStarted=!1}restartDotAnimation(){this.stopDotAnimation(),setTimeout(()=>{this.startDotAnimation()},50)}stopDotAnimation(){this._getPaginationButtons().forEach(e=>{const t=e.querySelector(`.${kn}`);if(!t)return;const n=t.querySelector("circle");n&&(n.style.animation="none")}),this._dotAnimationJustStarted=!1}_getPaginationButtons(){return Array.from(this.element.querySelectorAll(`${Fn} > *`))}_getActiveBulletClass(){const e=this.instance?.params?.pagination;if(e&&"object"==typeof e&&e.bulletActiveClass)return String(e.bulletActiveClass);const t=this.config.pagination;return t&&"object"==typeof t&&t.bulletActiveClass?String(t.bulletActiveClass):Ln}_getActiveBulletButton(){const e=this._getActiveBulletClass();return this.element.querySelector(`${Fn} .${e}`)}createSvgDot(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("class",kn),t.setAttribute("width","12"),t.setAttribute("height","12"),t.setAttribute("viewBox","0 0 12 12");const n=document.createElementNS(e,"circle");return n.setAttribute("class",On),n.setAttribute("r","5"),n.setAttribute("cx","6"),n.setAttribute("cy","6"),t.appendChild(n),t}hasAutoplay(){return!!(this.config.autoplay&&"object"==typeof this.config.autoplay&&this.config.autoplay.delay>=1e3)}getAnimationDuration(){return this.config.autoplay?.delay||0}destroy(){this.tabs.forEach(e=>{e.removeEventListener("click",this._boundTabClick)});const e=this.element.querySelector(Rn);e&&e.removeEventListener("click",this._boundPlayPauseClick);const t=this.element.querySelector(In),n=this.element.querySelector(Nn);t&&t.removeEventListener("click",this._boundPrevClick),n&&n.removeEventListener("click",this._boundNextClick),window.removeEventListener("resize",this._boundWindowResize),this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=void 0),this.instance&&this.instance.destroy(!0,!0),delete this.element.ODS_CarouselHero}static getInstance(e){return e.ODS_CarouselHero||null}},name:"CarouselHero",selector:"[data-carousel-hero]"},{Module:Jn,name:"CarouselPromotions",selector:"[data-carousel-promotions]"},{Module:class extends m{leaves;constructor(e,t){super(e,t,{defaultConfig:ei,instanceKey:"ODS_Countdown"}),this.leaves=new Map,this.init()}getLabels(){return{...Zn,...this.config.labels??{},days:p(this.config.labels?.days,Qn)}}collectElements(){this.leaves.clear();const e=h(this.config.units);Array.from(this.element.querySelectorAll(o)).forEach(t=>{const n=t.getAttribute(s);n&&e.includes(n)&&this.leaves.set(n,{element:t,unit:n,labels:Array.from(t.querySelectorAll(c)),isFlipping:!1})})}setLeafValue(e,t){e.labels.forEach(e=>{e.replaceChildren(document.createTextNode(t))})}flipLeaf(e,t){const[n,s,r,o]=e.labels;n&&s&&r&&o&&(n.textContent&&"00"!==n.textContent?e.isFlipping||n.textContent===t||(e.flipTimeoutId&&window.clearTimeout(e.flipTimeoutId),e.isFlipping=!0,n.replaceChildren(document.createTextNode(t)),r.replaceChildren(document.createTextNode(t)),e.element.classList.add(i),e.flipTimeoutId=window.setTimeout(()=>{s.replaceChildren(document.createTextNode(t)),o.replaceChildren(document.createTextNode(t)),e.element.classList.remove(i),e.isFlipping=!1,e.flipTimeoutId=void 0},600)):this.setLeafValue(e,t))}render(){const e=h(this.config.units),t=this.getLabels(),n=f(this.config.targetDate,e);if(e.forEach(e=>{const i=this.leaves.get(e);if(!i)return;const s=n[e],r=ti(e,s,t);this.flipLeaf(i,(e=>String(Math.max(0,e)).padStart(2,"0"))(s));const o=i.element.querySelector(a);o&&(o.textContent=r)}),this.liveRegion){const i=e.map(e=>`${n[e]} ${ti(e,n[e],t)}`).join(", ");this.liveRegion.textContent=i}}destroyElements(){this.leaves.forEach(e=>{e.flipTimeoutId&&(window.clearTimeout(e.flipTimeoutId),e.flipTimeoutId=void 0),e.isFlipping=!1,e.element.classList.remove(i)})}static getInstance(e){return e&&e.ODS_Countdown?e.ODS_Countdown:null}},name:"Countdown",selector:"[data-countdown]"},{Module:class extends m{units;constructor(e,t){super(e,t,{defaultConfig:b,instanceKey:"ODS_CountdownTag"}),this.units=new Map,this.init()}getLabels(){return{...v,...this.config.labels??{},days:p(this.config.labels?.days,g)}}collectElements(){this.units.clear();const e=h(this.config.units);Array.from(this.element.querySelectorAll(l)).forEach(t=>{const n=t.getAttribute(s);n&&e.includes(n)&&this.units.set(n,{element:t,unit:n,valueElement:t.querySelector("[data-countdown-tag-value]")})})}render(){const e=h(this.config.units),t=this.getLabels(),n=f(this.config.targetDate,e);e.forEach(e=>{const i=this.units.get(e);if(!i)return;const s=n[e];i.valueElement&&(i.valueElement.textContent=(e=>e<100?String(Math.max(0,e)).padStart(2,"0"):String(Math.max(0,e)))(s));const r=i.element.querySelector(".countdown-tag__label");r&&(r.textContent=y(e,t))}),this.liveRegion&&(this.liveRegion.textContent=e.map(e=>`${n[e]} ${y(e,t)}`).join(", "))}destroyElements(){}static getInstance(e){return e&&e.ODS_CountdownTag?e.ODS_CountdownTag:null}},name:"CountdownTag",selector:"[data-countdown-tag]"},{Module:class{element;config;bodies=[];buttons=[];images=[];constructor(e,t){return this.element=e,this.config={...ri,...t},this.element.ODS_FeatureAccordion=this,this.init(),this}init(){this.bodies=Array.from(this.element.querySelectorAll(this.config.bodiesSelector)),this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.images=Array.from(this.element.querySelectorAll("[data-feature-accordion-image]")),this.setActive(0),this.buttons.forEach(e=>{e.addEventListener("click",this.onClick)})}onClick=e=>{const t=e.currentTarget,n=this.buttons.indexOf(t);this.setActive(n)};setActive(e){if(e<0||e>=this.buttons.length)return;this.bodies.forEach(e=>{e.setAttribute("hidden",""),e.classList.remove("is-active")}),this.buttons.forEach(e=>{const t=e.closest(".feature-accordion__item");t?.classList.remove("is-active"),si({element:e,attribute:"aria-expanded",value:"false"})});const t=this.buttons[e],n=t.getAttribute("aria-controls"),i=n?document.getElementById(n):null,s=t.closest(".feature-accordion__item");i&&(i.removeAttribute("hidden"),i.classList.add("is-active")),s&&s.classList.add("is-active"),si({element:t,attribute:"aria-expanded",value:"true"}),this.images.forEach((t,n)=>{t.classList.toggle("hide",n!==e)})}destroy(){this.buttons.forEach(e=>{e.removeEventListener("click",this.onClick)})}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_FeatureAccordion?e.ODS_FeatureAccordion:null}},name:"FeatureAccordion",selector:"[data-feature-accordion]"},{Module:class{element;config;input;files;results;removeButtons;constructor(e,t){return this.element=e,this.config={...vo,...t},this.input=null,this.files=[],this.results=null,this.removeButtons=[],this.onInputChange=this.onInputChange.bind(this),this.onRemoveButtonClick=this.onRemoveButtonClick.bind(this),this.highlight=this.highlight.bind(this),this.unhighlight=this.unhighlight.bind(this),this.onDrop=this.onDrop.bind(this),this.preventDefaults=this.preventDefaults.bind(this),this.init(),this}init(){this.input=this.element.querySelector(this.config.inputSelector),this.results=this.element.querySelector(this.config.resultsSelector),this.input&&this.results&&(this.input.addEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(e=>{this.element.addEventListener(e,this.preventDefaults,!1),document.body.addEventListener(e,this.preventDefaults,!1)}),["dragenter","dragover"].forEach(e=>{this.element.addEventListener(e,this.highlight,!1)}),["dragleave","drop"].forEach(e=>{this.element.addEventListener(e,this.unhighlight,!1)}),this.element.addEventListener("drop",this.onDrop))}onInputChange(){return!(!this.input||!this.results)&&(this.files=Array.from(this.input.files??[]),!!this.files&&(this.results.innerHTML="",this.files.map((e,t)=>this.config.fileTemplate(go.sanitize(e.name,{ALLOWED_TAGS:[]}),t)).forEach(e=>{this.results.appendChild(go.sanitize(e,{ADD_TAGS:["use"],RETURN_DOM_FRAGMENT:!0}))}),this.removeButtons=Array.from(this.results.querySelectorAll(this.config.deleteButtonSelector)),void this.removeButtons.forEach(e=>e.addEventListener("click",this.onRemoveButtonClick))))}onDrop(e){this.input&&(this.input.files=e?.dataTransfer?.files||(new DataTransfer).files,this.onInputChange())}onRemoveButtonClick(e){if(!this.input)return;const t=new DataTransfer,n=e.currentTarget,i=Number(n.getAttribute(this.config.deleteFileAttr));this.files.splice(i,1),this.files.forEach(e=>t.items.add(e)),this.input.files=t.files,this.onInputChange()}highlight(){this.element.classList.add(this.config.dragDropClassname)}unhighlight(){this.element.classList.remove(this.config.dragDropClassname)}preventDefaults(e){e.preventDefault(),e.stopPropagation()}destroy(){this.input&&(this.input.removeEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(e=>{this.element.removeEventListener(e,this.preventDefaults,!1),document.body.removeEventListener(e,this.preventDefaults,!1)}),["dragenter","dragover"].forEach(e=>{this.element.removeEventListener(e,this.highlight,!1)}),["dragleave","drop"].forEach(e=>{this.element.removeEventListener(e,this.unhighlight,!1)}),this.element.removeEventListener("drop",this.onDrop))}update(){this.destroy(),this.init()}},name:"File",selector:"[data-file-input]"},{Module:class{element;config;interval;delay;currentMessageIndex;messages;constructor(e,t){this.element=e,this.config={...ma,...t},this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()}initBody(){const e=this.element.getAttribute("data-loader-messages");this.messages=e?JSON.parse(e):[],this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,this.config.cycleDuration??ma.cycleDuration))}init(){this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(()=>{this.element.parentNode&&this.element.parentNode instanceof HTMLElement&&this.element.parentNode.classList.remove("hide"),this.initBody()},this.config.delay??ma.delay):this.initBody()}destroy(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearTimeout(this.delay)}cycleMessages(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}static getInstance(e){return e&&e.ODS_Loader?e.ODS_Loader:null}},name:"Loader",selector:"[data-loader]"},{Module:$a,name:"Modal",selector:"[data-modal]"},{Module:class{constructor(e){this.element=e,this.children=null,this.updateHeight=this.updateHeight.bind(this),this.element.ODS_SameHeight=this,this.intervalId=null,this.init()}temporarilyShowHiddenElements(){this.originalDisplayStates=[],this.children.forEach(e=>{const t=e.closest('[role="tabpanel"]'),n=e.closest('[role="dialog"]');t&&t.hasAttribute("hidden")&&(this.originalDisplayStates.push({element:t,display:t.style.display}),t.style.display="block",t.removeAttribute("hidden")),n&&n.hasAttribute("aria-hidden")&&(this.originalDisplayStates.push({element:n,display:n.style.display}),n.style.display="block",n.removeAttribute("aria-hidden"))})}restoreHiddenElements(){this.originalDisplayStates.forEach(({element:e,display:t})=>{e.style.display=t,"tabpanel"===e.getAttribute("role")?e.setAttribute("hidden",!0):"dialog"===e.getAttribute("role")&&e.setAttribute("aria-hidden",!0)})}getCarouselElement(){const e=`[data-carousel], .${ln}`;return this.element.matches(e)?this.element:this.element.closest(e)}isInsideOrIsCarousel(){return this.getCarouselElement()}getCarouselSlides(){const e=this.getCarouselElement();return e?e.querySelectorAll(`.${un}`):[]}updateHeight(){this.temporarilyShowHiddenElements();const e=this.element.querySelectorAll('[data-same-height-child="true"]');e.forEach(e=>{e.style.height&&(e.style.height="")});const t=this.groupElementsByTypeAndPosition(e),n=this.isInsideOrIsCarousel();for(const[e,i]of Object.entries(t))i.length&&this.groupElementsIntoRows(i,n).forEach(e=>{if(e.length>1){const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})}else e.forEach(e=>{e.style.height&&(e.style.height=null)})});this.restoreHiddenElements()}groupElementsIntoRows(e,t){if(t)return[e];const n=[];let i=[],s=e[0].getBoundingClientRect().top;for(const t of e){const e=t.getBoundingClientRect().top;e===s?i.push(t):(n.push(i),i=[t],s=e)}return n.push(i),n}groupElementsByTypeAndPosition(e){const t={};return e.forEach(e=>{const n=e.getAttribute("data-same-height-group")||"default";t[n]||(t[n]=[]),t[n].push(e)}),t}init(){this.children=this.element.querySelectorAll('[data-same-height-child="true"]');const e=[];this.children.forEach(t=>{t.querySelectorAll("img").forEach(t=>{t.complete||e.push(t)})});const t=this.isInsideOrIsCarousel(),n=()=>{t?this.waitForCarouselThenUpdate(t):this.updateHeight()};0===e.length?n():this.waitForImagesToLoad(e,n),window.addEventListener("resize",this.updateHeight),t&&this.setupCarouselListeners(t)}waitForCarouselThenUpdate(e){e.ODS_Carousel?.instance?requestAnimationFrame(()=>{this.updateHeight()}):setTimeout(()=>this.waitForCarouselThenUpdate(e),50)}waitForImagesToLoad(e,t){let n=0;this.intervalId=setInterval(()=>{let i=!1;e.forEach((e,t,n)=>{e.complete&&(n.splice(t,1),i=!0)}),i&&this.updateHeight&&t(),(++n>=15||0===e.length)&&(e.length&&this.updateHeight&&t(),window.clearInterval(this.intervalId))},400)}setupCarouselListeners(e){if(e.ODS_Carousel?.instance){const{instance:t}=e.ODS_Carousel;["resize","update","slideChange"].forEach(e=>{t.on(e,()=>{requestAnimationFrame(()=>{this.updateHeight()})})})}else setTimeout(()=>this.setupCarouselListeners(e),50)}update(){this.destroy(),this.init()}destroy(){window.removeEventListener("resize",this.updateHeight),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}static getInstance(e){return e?.ODS_SameHeight||null}},name:"SameHeight",selector:"[data-same-height]"},{Module:class{element;config;instance;inputs;outputs;constructor(e,t){return this.element=e,this.config={...fa,...t},this.inputs=[],this.outputs=[],this.handleSliderUpdate=this.handleSliderUpdate.bind(this),this.element.ODS_RangeSlider=this,this.init(),this}init(){const e=this.element.getAttribute("data-rangeslider-config");let t={};if(e)try{t=JSON.parse(e)}catch{}if(this.config={...this.config,...t},this.config.format=sn(this.config.format),this.element.noUiSlider&&(this.element.noUiSlider=void 0,this.instance?.destroy&&this.instance.destroy()),!this.config.range)throw new Error("RangeSlider config must include 'range'.");this.instance=pa(this.element,this.config),this.inputs=Array.from(document.querySelectorAll(`input[name^=${this.element.getAttribute("id")}-]`)),this.outputs=this.inputs.map(e=>{const t=document.getElementById(`${e.getAttribute("id")}-output`);if(t){const e=t.getAttribute("data-format");return{element:t,format:t.hasAttribute("data-format")&&e?sn(JSON.parse(e)):void 0}}return!1}),this.instance.on("update",(e,t)=>{this.handleSliderUpdate(e.map(String),t)})}update(){this.instance?.destroy(),this.init()}destroy(){this.instance?.off("update"),this.instance?.destroy(),this.element.ODS_RangeSlider=null}static getInstance(e){return e&&e.ODS_RangeSlider?e.ODS_RangeSlider:null}handleSliderUpdate=(e,t)=>{const n=e[t];if(this.inputs[t]&&(this.inputs[t].value=n),this.outputs[t]){const e=this.outputs[t];e&&e.format?e.element.innerText=e.format.to(this.config.format.from(n)):e&&(e.element.innerText=n)}}},name:"RangeSlider",selector:"[data-rangeslider]"},{Module:class{element;config;input;numberDisplay;add;remove;constructor(e,t){this.element=e,this.config={...bo,...t},this.input=null,this.numberDisplay=null,this.add=null,this.remove=null,this.element.ODS_InputStepper=this,this.handleButtonClick=this.handleButtonClick.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleButtonState=this.handleButtonState.bind(this),this.init()}handleInputClick(){this.input&&this.input.select()}handleButtonState(){const{min:e,max:t}=this.config,n=this.config.nonEditableInput?parseInt(this.numberDisplay?.textContent??"0",10):parseInt(this.input?.value??"0",10);this.add&&"number"==typeof t&&n>=t?(this.add.setAttribute("aria-disabled","true"),this.add.setAttribute("disabled","true")):this.add&&(this.add.removeAttribute("aria-disabled"),this.add.removeAttribute("disabled")),this.remove&&"number"==typeof e&&n<=e?(this.remove.setAttribute("aria-disabled","true"),this.remove.setAttribute("disabled","true")):this.remove&&(this.remove.removeAttribute("aria-disabled"),this.remove.removeAttribute("disabled"))}handleInputChange(e){const{min:t,max:n}=this.config,i=e.target;i&&(t&&Number(i.value)<=t&&(i.value=String(t)),n&&Number(i.value)>=n&&(i.value=String(n)))}handleButtonClick(e){const{min:t,max:n}=this.config,i=e.target;let s=this.config.nonEditableInput?parseInt(this.numberDisplay?.textContent??"0",10):parseInt(this.input?.value??"0",10);if(i.classList.contains("input-stepper__button--minus")){if(t&&s<=t){if("true"===i.getAttribute("disabled"))return;return i.setAttribute("aria-disabled","true"),void i.setAttribute("disabled","true")}s-=1}if(i.classList.contains("input-stepper__button--plus")){if(n&&s>=n){if("true"===i.getAttribute("disabled"))return;return i.setAttribute("aria-disabled","true"),void i.setAttribute("disabled","true")}s+=1}!this.config.nonEditableInput&&this.input?this.input.value=String(s):this.numberDisplay&&(this.numberDisplay.textContent=String(s)),this.handleButtonState()}init(){const e=this.element.getAttribute("data-inputstepper");let t={};try{e&&e.trim().startsWith("{")&&(t=JSON.parse(e))}catch{t={}}this.config={...this.config,...t},this.config.nonEditableInput?(this.numberDisplay=this.element.querySelector(".input-stepper__number"),this.numberDisplay&&(this.numberDisplay.textContent=String(this.config.defaultValue))):(this.input=this.element.querySelector(".input-stepper__field"),this.input&&(this.input.value=String(this.config.defaultValue))),this.add=this.element.querySelector(".input-stepper__button--plus"),this.remove=this.element.querySelector(".input-stepper__button--minus");const{defaultValue:n}=this.config;void 0!==n&&(!this.config.nonEditableInput&&this.input?this.input.value=String(n):this.numberDisplay&&(this.numberDisplay.textContent=String(n))),this.element.classList.contains("input-stepper--disabled")||(this.add&&this.add.addEventListener("click",this.handleButtonClick),this.remove&&this.remove.addEventListener("click",this.handleButtonClick),!this.config.nonEditableInput&&this.input&&(this.input.addEventListener("click",this.handleInputClick),this.input.addEventListener("change",this.handleInputChange)),this.handleButtonState())}update(){this.destroy(),this.init()}destroy(){!this.config.nonEditableInput&&this.input&&(this.input.removeEventListener("click",this.handleInputClick),this.input.removeEventListener("change",this.handleInputChange)),this.add&&this.add.removeEventListener("click",this.handleButtonClick),this.remove&&this.remove.removeEventListener("click",this.handleButtonClick)}static getInstance(e){return e&&e.ODS_InputStepper?e.ODS_InputStepper:null}},name:"InputStepper",selector:"[data-inputstepper]"},{Module:class{element;config;expandButtons;scrollableContainer;resizeObserver;constructor(e,t){return this.element=e,this.config={...Va,...t},this.addRole=this.addRole.bind(this),this.addARIA=this.addARIA.bind(this),this.onExpandClick=this.onExpandClick.bind(this),this.expandButtons=[],this.scrollableContainer=null,this.element.ODS_Table=this,this.resizeObserver=new ResizeObserver(e=>{if(!this.scrollableContainer)return;const t=this.scrollableContainer.getBoundingClientRect();e.forEach(e=>{e.contentRect.width>t.width?this.scrollableContainer?.setAttribute("tabindex","0"):this.scrollableContainer?.removeAttribute("tabindex")})}),this.init(),this}addRole(e,t){Array.from(this.element.querySelectorAll(e)).forEach(e=>{e.setAttribute("role",t)})}addARIA(){try{this.element.setAttribute("role","table"),this.addRole("thead, tbody, tfoot","rowgroup"),this.addRole("tr","row"),this.addRole("td","cell"),this.addRole("th","columnheader"),this.addRole("th[scope=row]","rowheader")}catch(e){}}onExpandClick(e){const t=e.currentTarget,n=t.getAttribute("aria-controls")??"",i=this.element.querySelectorAll(n.split(" ").map(e=>`#${e}`).join(","));si({element:t,attribute:"aria-expanded"}),i.forEach(e=>{si({element:e,attribute:"hidden"})})}init(){this.expandButtons=Array.from(this.element.querySelectorAll(this.config.expandButtonSelector)),this.expandButtons.forEach(e=>{e.addEventListener("click",this.onExpandClick)}),this.element.matches(this.config.responsiveTableSelector)&&this.addARIA(),this.maybeInitScrollable()}maybeInitScrollable(){if(this.scrollableContainer=this.element.closest(this.config.scrollableContainerSelector),this.scrollableContainer)return this.resizeObserver.observe(this.element),!0}destroy(){this.expandButtons.forEach(e=>{e.removeEventListener("click",this.onExpandClick)}),this.resizeObserver.disconnect(),this.expandButtons=[]}update(){this.destroy(),this.init()}static getInstance(e){return e&&e.ODS_Table?e.ODS_Table:null}},name:"Table",selector:"[data-table]"},{Module:qa,name:"Tabs",selector:"[data-tabs]"},{Module:Ua,name:"Toggle",selector:"[data-toggle]"},{Module:an,name:"Tooltip",selector:"[data-tooltip]"}];window.ODS=window.ODS||{modules:{},instances:{},moduleSelectorPairs:{}},window.ODS.initModulesWithin=function(e){const t={};return window.ODS.moduleSelectorPairs.forEach(n=>{const i=rn(n.name),s=Array.from(e.querySelectorAll(n.selector)),r=`ODS_${n.name}`,o=s.filter(e=>!e[r]);window&&window.ODS&&window.ODS.instances[i]&&(window.ODS.instances[i]=window.ODS.instances[i].filter(e=>{const t=document.contains(e.element);return t||e.destroy?.(),t}),window.ODS.instances[i].forEach(e=>{o.forEach((t,n)=>{t.isSameNode(e.element)&&o.splice(n,1)})})),o.length&&(Array.isArray(window.ODS.instances[i])||(window.ODS.instances[i]=[]),t[i]=o.map(e=>new n.Module(e)),window.ODS.instances[i]=[...window.ODS.instances[i],...t[i]])}),t},window.ODS.destroyModulesWithin=function(e,t=!1){const n={};return Object.keys(window.ODS.instances).forEach(i=>{window.ODS.instances[i].forEach(s=>{"object"!=typeof n[i]&&(n[i]=[]);let r=e.contains(s.element);"modal"===i?r=s.instance?._openers.every(t=>e.contains(t)):"tooltip"===i&&(r=e.contains(s.trigger)),r&&(s.destroy(),n[i].push(s)),r&&t&&["modal","tooltip"].includes(i)&&s.element.remove()}),window.ODS.instances[i]=window.ODS.instances[i].filter(e=>!n[i].includes(e))}),n},window.ODS.moduleSelectorPairs=Ga,window.addEventListener("DOMContentLoaded",()=>{Ga.forEach(e=>{window.ODS.modules[e.name]=e.Module,window.ODS.instances[rn(e.name)]=function(e,t,n={}){return Array.from(document.querySelectorAll(t)).map(t=>new e(t,n))}(e.Module,e.selector)}),window.dispatchEvent(new Event("ODSLoaded"))});var Ya,Xa={exports:{}},Ka=(Ya||(Ya=1,window,Xa.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){var i=n(1),s=n(6),r=n(7),o=n(16),a=n(18),l="prototype",c=function(e,t,n){var d,u,h,p,f=e&c.F,m=e&c.G,g=e&c.S,v=e&c.P,b=e&c.B,y=m?i:g?i[t]||(i[t]={}):(i[t]||{})[l],w=m?s:s[t]||(s[t]={}),_=w[l]||(w[l]={});for(d in m&&(n=t),n)h=((u=!f&&y&&void 0!==y[d])?y:n)[d],p=b&&u?a(h,i):v&&"function"==typeof h?a(Function.call,h):h,y&&o(y,d,h,e&c.U),w[d]!=h&&r(w,d,p),v&&_[d]!=h&&(_[d]=h)};i.core=s,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){n.r(t),n.d(t,"h",function(){return a}),n.d(t,"createElement",function(){return a}),n.d(t,"cloneElement",function(){return d}),n.d(t,"Component",function(){return I}),n.d(t,"render",function(){return N}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return s});var i=function(){},s={},r=[],o=[];function a(e,t){var n,a,l,c,d=o;for(c=arguments.length;2<c--;)r.push(arguments[c]);for(t&&null!=t.children&&(r.length||r.push(t.children),delete t.children);r.length;)if((a=r.pop())&&void 0!==a.pop)for(c=a.length;c--;)r.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof e)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&n?d[d.length-1]+=a:d===o?d=[a]:d.push(a),n=l;var u=new i;return u.nodeName=e,u.children=d,u.attributes=null==t?void 0:t,u.key=null==t?void 0:t.key,void 0!==s.vnode&&s.vnode(u),u}function l(e,t){for(var n in t)e[n]=t[n];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function d(e,t){return a(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==h.push(e)&&(s.debounceRendering||c)(f)}function f(){var e,t=h;for(h=[];e=t.pop();)e._dirty&&M(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function g(e){var t=l({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===t[i]&&(t[i]=n[i]);return t}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,i,s){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),i&&i(e);else if("class"!==t||s)if("style"===t){if(i&&"string"!=typeof i&&"string"!=typeof n||(e.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var r in n)r in i||(e.style[r]="");for(var r in i)e.style[r]="number"==typeof i[r]&&!1===u.test(r)?i[r]+"px":i[r]}}else if("dangerouslySetInnerHTML"===t)i&&(e.innerHTML=i.__html||"");else if("o"==t[0]&&"n"==t[1]){var o=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),i?n||e.addEventListener(t,y,o):e.removeEventListener(t,y,o),(e._listeners||(e._listeners={}))[t]=i}else if("list"!==t&&"type"!==t&&!s&&t in e){try{e[t]=null==i?"":i}catch(e){}null!=i&&!1!==i||"spellcheck"==t||e.removeAttribute(t)}else{var a=s&&t!==(t=t.replace(/^xlink:?/,""));null==i||!1===i?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof i&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),i):e.setAttribute(t,i))}else e.className=i||""}function y(e){return this._listeners[e.type](s.event&&s.event(e)||e)}var w=[],_=0,S=!1,E=!1;function x(){for(var e;e=w.pop();)s.afterMount&&s.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,n,i,s){var r=e,o=S;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||s)?e.nodeValue!=t&&(e.nodeValue=t):(r=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(r,e),T(e,!0))),r.__preactattr_=!0,r;var a=t.nodeName;if("function"==typeof a)return function(e,t,n,i){for(var s=e&&e._component,r=s,o=e,a=s&&e._componentConstructor===t.nodeName,l=a,c=g(t);s&&!l&&(s=s._parentComponent);)l=s.constructor===t.nodeName;return s&&l&&(!i||s._component)?(D(s,c,3,n,i),e=s.base):(r&&!a&&(P(r),e=o=null),s=O(t.nodeName,c,n),e&&!s.nextBase&&(s.nextBase=e,o=null),D(s,c,1,n,i),e=s.base,o&&e!==o&&(o._component=null,T(o,!1))),e}(e,t,n,i);if(S="svg"===a||"foreignObject"!==a&&S,a=String(a),(!e||!m(e,a))&&(r=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(a,S),e)){for(;e.firstChild;)r.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(r,e),T(e,!0)}var l=r.firstChild,c=r.__preactattr_,d=t.children;if(null==c){c=r.__preactattr_={};for(var u=r.attributes,h=u.length;h--;)c[u[h].name]=u[h].value}return!E&&d&&1===d.length&&"string"==typeof d[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=d[0]&&(l.nodeValue=d[0]):(d&&d.length||null!=l)&&function(e,t,n,i,s){var r,o,a,l,c,d,u,h,p=e.childNodes,f=[],g={},b=0,y=0,w=p.length,_=0,S=t?t.length:0;if(0!==w)for(var E=0;E<w;E++){var x=p[E],A=x.__preactattr_;null!=(k=S&&A?x._component?x._component.__key:A.key:null)?(b++,g[k]=x):(A||(void 0!==x.splitText?!s||x.nodeValue.trim():s))&&(f[_++]=x)}if(0!==S)for(E=0;E<S;E++){var k;if(c=null,null!=(k=(l=t[E]).key))b&&void 0!==g[k]&&(c=g[k],g[k]=void 0,b--);else if(y<_)for(r=y;r<_;r++)if(void 0!==f[r]&&(d=o=f[r],h=s,"string"==typeof(u=l)||"number"==typeof u?void 0!==d.splitText:"string"==typeof u.nodeName?!d._componentConstructor&&m(d,u.nodeName):h||d._componentConstructor===u.nodeName)){c=o,f[r]=void 0,r===_-1&&_--,r===y&&y++;break}c=C(c,l,n,i),a=p[E],c&&c!==e&&c!==a&&(null==a?e.appendChild(c):c===a.nextSibling?v(a):e.insertBefore(c,a))}if(b)for(var E in g)void 0!==g[E]&&T(g[E],!1);for(;y<=_;)void 0!==(c=f[_--])&&T(c,!1)}(r,d,n,i,E||null!=c.dangerouslySetInnerHTML),function(e,t,n){var i;for(i in n)t&&null!=t[i]||null==n[i]||b(e,i,n[i],n[i]=void 0,S);for(i in t)"children"===i||"innerHTML"===i||i in n&&t[i]===("value"===i||"checked"===i?e[i]:n[i])||b(e,i,n[i],n[i]=t[i],S)}(r,t.attributes,c),S=o,r}function T(e,t){var n=e._component;n?P(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||v(e),A(e))}function A(e){for(e=e.lastChild;e;){var t=e.previousSibling;T(e,!0),e=t}}var k=[];function O(e,t,n){var i,s=k.length;for(e.prototype&&e.prototype.render?(i=new e(t,n),I.call(i,t,n)):((i=new I(t,n)).constructor=e,i.render=L);s--;)if(k[s].constructor===e)return i.nextBase=k[s].nextBase,k.splice(s,1),i;return i}function L(e,t,n){return this.constructor(e,n)}function D(e,t,n,i,r){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||r?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,i)),i&&i!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=i),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===s.syncComponentUpdates&&e.base?p(e):M(e,1,r)),e.__ref&&e.__ref(e))}function M(e,t,n,i){if(!e._disable){var r,o,a,c=e.props,d=e.state,u=e.context,h=e.prevProps||c,p=e.prevState||d,f=e.prevContext||u,m=e.base,v=e.nextBase,b=m||v,y=e._component,A=!1,k=f;if(e.constructor.getDerivedStateFromProps&&(d=l(l({},d),e.constructor.getDerivedStateFromProps(c,d)),e.state=d),m&&(e.props=h,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,d,u)?A=!0:e.componentWillUpdate&&e.componentWillUpdate(c,d,u),e.props=c,e.state=d,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!A){r=e.render(c,d,u),e.getChildContext&&(u=l(l({},u),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(k=e.getSnapshotBeforeUpdate(h,p));var L,I,N=r&&r.nodeName;if("function"==typeof N){var R=g(r);(o=y)&&o.constructor===N&&R.key==o.__key?D(o,R,1,u,!1):(L=o,e._component=o=O(N,R,u),o.nextBase=o.nextBase||v,o._parentComponent=e,D(o,R,0,u,!1),M(o,1,n,!0)),I=o.base}else a=b,(L=y)&&(a=e._component=null),(b||1===t)&&(a&&(a._component=null),I=function(e,t,n,i,s,r){_++||(S=null!=s&&void 0!==s.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var o=C(e,t,n,i,r);return s&&o.parentNode!==s&&s.appendChild(o),--_||(E=!1),o}(a,r,u,n||!m,b&&b.parentNode,!0));if(b&&I!==b&&o!==y){var z=b.parentNode;z&&I!==z&&(z.replaceChild(I,b),L||(b._component=null,T(b,!1)))}if(L&&P(L),(e.base=I)&&!i){for(var B=e,F=e;F=F._parentComponent;)(B=F).base=I;I._component=B,I._componentConstructor=B.constructor}}for(!m||n?w.unshift(e):A||(e.componentDidUpdate&&e.componentDidUpdate(h,p,k),s.afterUpdate&&s.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);_||i||x()}}function P(e){s.beforeUnmount&&s.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?P(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),v(e.nextBase=t),k.push(e),A(t)),e.__ref&&e.__ref(null)}function I(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function N(e,t,n){return function(e,t,n,i,s,r){_++||(S=null!=s&&void 0!==s.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var o=C(e,t,n,i,r);return s&&o.parentNode!==s&&s.appendChild(o),--_||(E=!1,x()),o}(n,e,{},!1,t,!1)}l(I.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),p(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),M(this,2)},render:function(){}});var R={h:a,createElement:a,cloneElement:d,Component:I,render:N,rerender:f,options:s};t.default=R},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(8),s=n(40);e.exports=n(3)?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(9),s=n(38),r=n(39),o=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),s)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(2);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(4);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(41)})},function(e,t,n){var i=n(2),s=n(1).document,r=i(s)&&i(s.createElement);e.exports=function(e){return r?s.createElement(e):{}}},function(e,t,n){var i=n(1),s=n(7),r=n(17),o=n(10)("src"),a="toString",l=Function[a],c=(""+l).split(a);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(r(n,"name")||s(n,"name",t)),e[t]!==n&&(l&&(r(n,o)||s(n,o,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:s(e,t,n):(delete e[t],s(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[o]||l.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,s){return e.call(t,n,i,s)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(42),s=n(28);e.exports=Object.keys||function(e){return i(e,s)}},function(e,t,n){var i=n(11),s=n(12);e.exports=function(e){return i(s(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(21),s=n(24),r=n(43);e.exports=function(e){return function(t,n,o){var a,l=i(t),c=s(l.length),d=r(o,c);if(e&&n!=n){for(;d<c;)if((a=l[d++])!=a)return!0}else for(;d<c;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}}},function(e,t,n){var i=n(25),s=Math.min;e.exports=function(e){return 0<e?s(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t,n){var i=n(27)("keys"),s=n(10);e.exports=function(e){return i[e]||(i[e]=s(e))}},function(e,t,n){var i=n(6),s=n(1),r="__core-js_shared__",o=s[r]||(s[r]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(8).f,s=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in s||n(3)&&i(s,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,n){var i=n(0),s=n(32)(1);i(i.P+i.F*!n(13)([].map,!0),"Array",{map:function(e){return s(this,e,arguments[1])}})},function(e,t,n){var i=n(18),s=n(11),r=n(29),o=n(24),a=n(47);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,d=4==e,u=6==e,h=5==e||u,p=t||a;return function(t,a,f){for(var m,g,v=r(t),b=s(v),y=i(a,f,3),w=o(b.length),_=0,S=n?p(t,w):l?p(t,0):void 0;_<w;_++)if((h||_ in b)&&(g=y(m=b[_],_,v),e))if(n)S[_]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return _;case 2:S.push(m)}else if(d)return!1;return u?-1:c||d?d:S}}},function(e,t,n){var i=n(22);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(27)("wks"),s=n(10),r=n(1).Symbol,o="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=o&&r[e]||(o?r:s)("Symbol."+e))}).store=i},function(e,t,n){var i=n(0),s=n(23)(!1),r=[].indexOf,o=!!r&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(o||!n(13)(r)),"Array",{indexOf:function(e){return o?r.apply(this,arguments)||0:s(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Object",{create:n(52)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var i=n(5),s=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function r(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=o(e.source)),(0,i.render)((0,i.createElement)(s.default,e),e.element)}var o=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};r.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,function(t){return t.value||e.preserveNullOptions});e.source=t.map(function(e){return e.textContent||e.innerText})}if(e.onConfirm=e.onConfirm||function(t){var n=[].filter.call(e.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];n&&(n.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var n=e.selectElement.options.selectedIndex,i=0<=n?e.selectElement.options[n]:null;e.defaultValue=i?i.textContent||i.innerText:""}if(void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0),void 0===e.autocomplete){var s=e.selectElement.getAttribute("autocomplete");null!==s&&(e.autocomplete=s)}var o=document.createElement("div");e.selectElement.parentNode.insertBefore(o,e.selectElement),r(Object.assign({},e,{element:o})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var a=r;t.default=a},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(2);e.exports=function(e,t){if(!i(e))return e;var n,s;if(t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;if("function"==typeof(n=e.valueOf)&&!i(s=n.call(e)))return s;if(!t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(20),s=n(45),r=n(46),o=n(29),a=n(11),l=Object.assign;e.exports=!l||n(4)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){for(var n=o(e),l=arguments.length,c=1,d=s.f,u=r.f;c<l;)for(var h,p=a(arguments[c++]),f=d?i(p).concat(d(p)):i(p),m=f.length,g=0;g<m;)u.call(p,h=f[g++])&&(n[h]=p[h]);return n}:l},function(e,t,n){var i=n(17),s=n(21),r=n(23)(!1),o=n(26)("IE_PROTO");e.exports=function(e,t){var n,a=s(e),l=0,c=[];for(n in a)n!=o&&i(a,n)&&c.push(n);for(;t.length>l;)i(a,n=t[l++])&&(~r(c,n)||c.push(n));return c}},function(e,t,n){var i=n(25),s=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?s(e+t,0):r(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(48);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(2),s=n(33),r=n(34)("species");e.exports=function(e){var t;return s(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!s(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(0),s=n(32)(2);i(i.P+i.F*!n(13)([].filter,!0),"Array",{filter:function(e){return s(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Array",{isArray:n(33)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(36),n(30),n(31),n(35),n(55),n(58);var i=n(5),s=o(n(60)),r=o(n(61));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function d(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var u=function(e){function t(t){var n;return(n=e.call(this,t)||this).elementReferences={},n.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0,searchOnInteraction:!0},n.handleComponentBlur=n.handleComponentBlur.bind(l(l(n))),n.handleKeyDown=n.handleKeyDown.bind(l(l(n))),n.handleUpArrow=n.handleUpArrow.bind(l(l(n))),n.handleDownArrow=n.handleDownArrow.bind(l(l(n))),n.handleEnter=n.handleEnter.bind(l(l(n))),n.handlePrintableKey=n.handlePrintableKey.bind(l(l(n))),n.handleListMouseLeave=n.handleListMouseLeave.bind(l(l(n))),n.handleOptionBlur=n.handleOptionBlur.bind(l(l(n))),n.handleOptionClick=n.handleOptionClick.bind(l(l(n))),n.handleOptionFocus=n.handleOptionFocus.bind(l(l(n))),n.handleOptionMouseDown=n.handleOptionMouseDown.bind(l(l(n))),n.handleOptionMouseEnter=n.handleOptionMouseEnter.bind(l(l(n))),n.handleInputBlur=n.handleInputBlur.bind(l(l(n))),n.handleInputChange=n.handleInputChange.bind(l(l(n))),n.handleInputFocus=n.handleInputFocus.bind(l(l(n))),n.pollInputElement=n.pollInputElement.bind(l(l(n))),n.getDirectInputChanges=n.getDirectInputChanges.bind(l(l(n))),n}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.isQueryAnOption=function(e,t){var n=this;return-1!==t.map(function(e){return n.templateInputValue(e).toLowerCase()}).indexOf(e.toLowerCase())},n.componentDidMount=function(){this.pollInputElement()},n.componentWillUnmount=function(){clearTimeout(this.$pollInput)},n.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},n.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},n.componentDidUpdate=function(e,t){var n=this.state.focused,i=null===n,s=t.focused!==n;s&&!i&&this.elementReferences[n].focus();var r=-1===n,o=s&&null===t.focused;if(r&&o){var a=this.elementReferences[n];a.setSelectionRange(0,a.value.length)}},n.hasAutoselect=function(){return this.props.autoselect},n.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},n.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},n.handleComponentBlur=function(e){var t,n=this.state,i=n.options,s=n.query,r=n.selected;this.props.confirmOnBlur?(t=e.query||s,this.props.onConfirm(i[r])):t=s,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,i)})},n.handleListMouseLeave=function(e){this.setState({hovered:null})},n.handleOptionBlur=function(e,t){var n=this.state,i=n.focused,s=n.menuOpen,r=n.options,o=n.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=i!==t&&-1!==i;if(!c&&a||!c&&!l){var u=s&&d()&&!this.hasAutoselect();this.handleComponentBlur({menuOpen:u,query:this.templateInputValue(r[o])})}},n.handleInputBlur=function(e){var t=this.state,n=t.focused,i=t.menuOpen,s=t.options,r=t.query,o=t.selected,a=0<=n;if(d()&&!e.relatedTarget&&!a&&this.hasAutoselect()){var l=this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:!1,query:l})}else if(!a){var c=i&&d(),u=d()?r:this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:c,query:u})}},n.handleInputChange=function(e){var t=this,n=this.props,i=n.minLength,s=n.source,r=n.showAllValues,o=this.state.searchOnInteraction,a=this.hasAutoselect(),l=e.target.value,c=0===l.length,d=o||this.state.query.length!==l.length,u=l.length>=i;this.setState({query:l,ariaHint:c,searchOnInteraction:!0}),r||!c&&d&&u?s(l,function(e){var n=0<e.length;t.setState(function(t){return{menuOpen:n&&null!==t.focused,options:e,selected:a&&n?0:-1,validChoiceMade:!1}})}):!c&&u||this.setState({menuOpen:!1,options:[]})},n.handleInputClick=function(e){this.handleInputChange(e)},n.handleInputFocus=function(e){var t=this.state,n=t.query,i=t.validChoiceMade,s=t.options,r=this.props.minLength,o=!i&&n.length>=r&&0<s.length;o?this.setState(function(e){var t=e.menuOpen;return{focused:-1,menuOpen:o||t,selected:-1}}):this.setState({focused:-1}),e&&this.handleInputChange(e)},n.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e,searchOnInteraction:-1!==e})},n.handleOptionMouseEnter=function(e,t){d()||this.setState({hovered:t})},n.handleOptionClick=function(e,t){var n=this.state.options[t],i=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,hovered:null,menuOpen:!1,query:i,selected:-1,validChoiceMade:!0}),this.forceUpdate()},n.handleOptionMouseDown=function(e){e.preventDefault()},n.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,i=t.selected;-1!==i&&n&&this.handleOptionFocus(i-1)},n.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,i=n.menuOpen,s=n.options,r=n.selected;r!==s.length-1&&i&&this.handleOptionFocus(r+1)}},n.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},n.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},n.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},n.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},n.render=function(){var e,t=this,n=this.props,r=n.cssNamespace,o=n.customInputClassName,l=n.wrapperClassName,c=n.optionClassName,u=n.menuClassName,h=n.displayMenu,p=n.enterKeyHint,f=n.autocomplete,m=n.id,g=n.minLength,v=n.name,b=n.placeholder,y=n.required,w=n.showAllValues,_=n.tNoResults,S=n.tStatusQueryTooShort,E=n.tStatusNoResults,x=n.tStatusSelectedOption,C=n.tStatusResults,T=n.tAssistiveHint,A=n.dropdownArrow,k=this.state,O=k.focused,L=k.hovered,D=k.menuOpen,M=k.options,P=k.query,I=k.selected,N=k.ariaHint,R=k.validChoiceMade,z=this.hasAutoselect(),B=-1===O,F=0===M.length,H=0!==P.length,$=P.length>=g,V=this.props.showNoOptionsFound&&B&&F&&H&&$,j=r+"__wrapper"+(l?" "+l:""),q=r+"__input",W=null!==O?" "+q+"--focused":"",U=this.props.showAllValues?" "+q+"--show-all-values":" "+q+"--default",G=r+"__dropdown-arrow-down",Y=-1!==O&&null!==O,X=r+"__menu",K=X+"--"+h,J=X+"--"+(D||V?"visible":"hidden"),Q=r+"__option",Z=r+"__hint",ee=this.templateInputValue(M[I]),te=ee&&0===ee.toLowerCase().indexOf(P.toLowerCase())&&z?P+ee.substr(P.length):"",ne=m+"__assistiveHint",ie=N?{"aria-describedby":ne}:null;return w&&"string"==typeof(e=A({className:G}))&&(e=(0,i.createElement)("div",{className:r+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,i.createElement)("div",{className:j,onKeyDown:this.handleKeyDown},(0,i.createElement)(s.default,{id:m,length:M.length,queryLength:P.length,minQueryLength:g,selectedOption:this.templateInputValue(M[I]),selectedOptionIndex:I,validChoiceMade:R,isInFocus:null!==this.state.focused,tQueryTooShort:S,tNoResults:E,tSelectedOption:x,tResults:C}),te&&(0,i.createElement)("span",null,(0,i.createElement)("input",{className:Z,readonly:!0,tabIndex:"-1",value:te})),(0,i.createElement)("input",a({enterkeyhint:p||(d()&&this.hasAutoselect()?"done":""),"aria-expanded":D?"true":"false","aria-activedescendant":!!Y&&m+"__option--"+O,"aria-owns":m+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},ie,{autoComplete:f,className:""+q+W+U+(o?" "+o:""),id:m,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:v,placeholder:b,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:y,value:P})),e,(0,i.createElement)("ul",{className:X+" "+K+" "+J+(u?" "+u:""),onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:m+"__listbox",role:"listbox"},M.map(function(e,n){var s=(-1===O?I===n:O===n)&&null===L?" "+Q+"--focused":"",r=n%2?" "+Q+"--odd":"",o=d()?"<span id="+m+"__option-suffix--"+n+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(n+1)+" of "+M.length+"</span>":"";return(0,i.createElement)("li",{"aria-selected":O===n?"true":"false",className:""+Q+s+r+(c?" "+c:""),dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+o},id:m+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1","aria-posinset":n+1,"aria-setsize":M.length})}),V&&(0,i.createElement)("li",{className:Q+(c?" "+c:"")+" "+Q+"--no-results"},_())),(0,i.createElement)("span",{id:ne,style:{display:"none"}},T()))},t}(i.Component);(t.default=u).defaultProps={autoselect:!1,cssNamespace:"autocomplete",wrapperClassName:"",customInputClassName:"",menuClassName:"",optionClassName:"",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",autocomplete:"off",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:r.default}},function(e,t,n){var i=n(9),s=n(53),r=n(28),o=n(26)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n(15)("iframe"),i=r.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;i--;)delete c[l][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[o]=e):n=c(),void 0===t?n:s(n,t)}},function(e,t,n){var i=n(8),s=n(9),r=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){s(e);for(var n,o=r(t),a=o.length,l=0;l<a;)i.f(e,n=o[l++],t[n]);return e}},function(e,t,n){var i=n(1).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(0);i(i.P,"Function",{bind:n(56)})},function(e,t,n){var i=n(19),s=n(2),r=n(57),o=[].slice,a={};e.exports=Function.bind||function(e){var t=i(this),n=o.call(arguments,1),l=function(){var i=n.concat(o.call(arguments));return this instanceof l?function(e,t,n){if(!(t in a)){for(var i=[],s=0;s<t;s++)i[s]="a["+s+"]";a[t]=Function("F,a","return new F("+i.join(",")+")")}return a[t](e,n)}(t,i.length,i):r(t,i,e)};return s(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(e,t,n){return[function(n){var i=e(this),s=null==n?void 0:n[t];return void 0!==s?s.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){var i=n(7),s=n(16),r=n(4),o=n(12),a=n(34);e.exports=function(e,t,n){var l=a(e),c=n(o,l,""[e]),d=c[0],u=c[1];r(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(s(String.prototype,e,d),i(RegExp.prototype,l,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){t.__esModule=!0,t.default=void 0,n(36);var i=n(5),s=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).state={bump:!1,debounced:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this;this.debounceStatusUpdate=function(e,t){var n;return function(){var i=this,s=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,s)},t)}}(function(){if(!e.state.debounced){var t=!e.props.isInFocus||e.props.validChoiceMade;e.setState(function(e){return{bump:!e.bump,debounced:!0,silenced:t}})}},1400)},n.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},n.render=function(){var e,t=this.props,n=t.id,s=t.length,r=t.queryLength,o=t.minQueryLength,a=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,d=t.tNoResults,u=t.tSelectedOption,h=t.tResults,p=this.state,f=p.bump,m=p.debounced,g=p.silenced,v=r<o,b=0===s,y=a?u(a,s,l):"";return e=v?c(o):b?d():h(s,y),this.debounceStatusUpdate(),(0,i.createElement)("div",{style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(0,i.createElement)("div",{id:n+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!g&&m&&f?e:""),(0,i.createElement)("div",{id:n+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},g||!m||f?"":e))},t}(i.Component);(t.default=s).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,n){return e+" "+(n+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){t.__esModule=!0,t.default=void 0;var i=n(5);t.default=function(e){var t=e.className;return(0,i.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,i.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,i.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default),Xa.exports),Ja=e({__proto__:null,default:Zt(Ka)},[Ka]);export{Ga as moduleSelectorPairs};
|
|
2
2
|
//# sourceMappingURL=scripts.js.map
|