1let _allowQueryString,_allowExternalLinks,_useWhitelist,_lastTouchTimestamp,_mouseoverTimer,_chromiumMajorVersionInUserAgent=null,_delayOnHover=65,_preloadedList=new Set;const DELAY_TO_NOT_BE_CONSIDERED_A_TOUCH_INITIATED_ACTION=1111;function init(){if(!document.createElement("link").relList.supports("prefetch"))return;const e="instantVaryAccept"in document.body.dataset||"Shopify"in window,t=navigator.userAgent.indexOf("Chrome/");if(t>-1&&(_chromiumMajorVersionInUserAgent=parseInt(navigator.userAgent.substring(t+7))),e&&_chromiumMajorVersionInUserAgent&&_chromiumMajorVersionInUserAgent<110)return;const n="instantMousedownShortcut"in document.body.dataset;_allowQueryString="instantAllowQueryString"in document.body.dataset,_allowExternalLinks="instantAllowExternalLinks"in document.body.dataset,_useWhitelist="instantWhitelist"in document.body.dataset;const i={capture:!0,passive:!0};let o=!1,s=!1,r=!1;if("instantIntensity"in document.body.dataset){const e=document.body.dataset.instantIntensity;if(e.startsWith("mousedown"))o=!0,"mousedown-only"==e&&(s=!0);else if(e.startsWith("viewport")){const t=navigator.connection&&navigator.connection.saveData,n=navigator.connection&&navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g");t||n||("viewport"==e?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(r=!0):"viewport-all"==e&&(r=!0))}else{const t=parseInt(e);isNaN(t)||(_delayOnHover=t)}}if(s||document.addEventListener("touchstart",touchstartListener,i),o?n||document.addEventListener("mousedown",mousedownListener,i):document.addEventListener("mouseover",mouseoverListener,i),n&&document.addEventListener("mousedown",mousedownShortcutListener,i),r){let e=window.requestIdleCallback;e||(e=e=>{e()}),e((function(){const e=new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){const n=t.target;e.unobserve(n),preload(n.href)}}))}));document.querySelectorAll("a").forEach((t=>{isPreloadable(t)&&e.observe(t)}))}),{timeout:1500})}}function touchstartListener(e){_lastTouchTimestamp=performance.now();const t=e.target.closest("a");isPreloadable(t)&&preload(t.href,"high")}function mouseoverListener(e){if(performance.now()-_lastTouchTimestamp<DELAY_TO_NOT_BE_CONSIDERED_A_TOUCH_INITIATED_ACTION)return;if(!("closest"in e.target))return;const t=e.target.closest("a");isPreloadable(t)&&(t.addEventListener("mouseout",mouseoutListener,{passive:!0}),_mouseoverTimer=setTimeout((()=>{preload(t.href,"high"),_mouseoverTimer=void 0}),_delayOnHover))}function mousedownListener(e){const t=e.target.closest("a");isPreloadable(t)&&preload(t.href,"high")}function mouseoutListener(e){e.relatedTarget&&e.target.closest("a")==e.relatedTarget.closest("a")||_mouseoverTimer&&(clearTimeout(_mouseoverTimer),_mouseoverTimer=void 0)}function mousedownShortcutListener(e){if(performance.now()-_lastTouchTimestamp<DELAY_TO_NOT_BE_CONSIDERED_A_TOUCH_INITIATED_ACTION)return;const t=e.target.closest("a");if(e.which>1||e.metaKey||e.ctrlKey)return;if(!t)return;t.addEventListener("click",(function(e){1337!=e.detail&&e.preventDefault()}),{capture:!0,passive:!1,once:!0});const n=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1,detail:1337});t.dispatchEvent(n)}function isPreloadable(e){if(e&&e.href&&(!_useWhitelist||"instant"in e.dataset)){if(e.origin!=location.origin){if(!(_allowExternalLinks||"instant"in e.dataset)||!_chromiumMajorVersionInUserAgent)return}if(["http:","https:"].includes(e.protocol)&&("http:"!=e.protocol||"https:"!=location.protocol)&&(_allowQueryString||!e.search||"instant"in e.dataset)&&!(e.hash&&e.pathname+e.search==location.pathname+location.search||"noInstant"in e.dataset))return!0}}function preload(e,t="auto"){if(_preloadedList.has(e))return;const n=document.createElement("link");n.rel="prefetch",n.href=e,n.fetchPriority=t,n.as="document",document.head.appendChild(n),_preloadedList.add(e)}function Delegate(e){this.listenerMap=[{},{}],e&&this.root(e),this.handle=Delegate.prototype.handle.bind(this),this._removedListeners=[]}function matchesTag(e,t){return e.toLowerCase()===t.tagName.toLowerCase()}function matchesRoot(e,t){return this.rootElement===window?t===document||t===document.documentElement||t===window:this.rootElement===t}function matchesId(e,t){return e===t.id}init(),Delegate.prototype.root=function(e){const t=this.listenerMap;let n;if(this.rootElement){for(n in t[1])t[1].hasOwnProperty(n)&&this.rootElement.removeEventListener(n,this.handle,!0);for(n in t[0])t[0].hasOwnProperty(n)&&this.rootElement.removeEventListener(n,this.handle,!1)}if(!e||!e.addEventListener)return this.rootElement&&delete this.rootElement,this;for(n in this.rootElement=e,t[1])t[1].hasOwnProperty(n)&&this.rootElement.addEventListener(n,this.handle,!0);for(n in t[0])t[0].hasOwnProperty(n)&&this.rootElement.addEventListener(n,this.handle,!1);return this},Delegate.prototype.captureForType=function(e){return-1!==["blur","error","focus","load","resize","scroll"].indexOf(e)},Delegate.prototype.on=function(e,t,n,i){let o,s,r,a;if(!e)throw new TypeError("Invalid event type: "+e);if("function"==typeof t&&(i=n,n=t,t=null),void 0===i&&(i=this.captureForType(e)),"function"!=typeof n)throw new TypeError("Handler must be a type of Function");return o=this.rootElement,s=this.listenerMap[i?1:0],s[e]||(o&&o.addEventListener(e,this.handle,i),s[e]=[]),t?/^[a-z]+$/i.test(t)?(a=t,r=matchesTag):/^#[a-z0-9\-_]+$/i.test(t)?(a=t.slice(1),r=matchesId):(a=t,r=Element.prototype.matches):(a=null,r=matchesRoot.bind(this)),s[e].push({selector:t,handler:n,matcher:r,matcherParam:a}),this},Delegate.prototype.off=function(e,t,n,i){let o,s,r,a,l;if("function"==typeof t&&(i=n,n=t,t=null),void 0===i)return this.off(e,t,n,!0),this.off(e,t,n,!1),this;if(r=this.listenerMap[i?1:0],!e){for(l in r)r.hasOwnProperty(l)&&this.off(l,t,n);return this}if(a=r[e],!a||!a.length)return this;for(o=a.length-1;o>=0;o--)s=a[o],t&&t!==s.selector||n&&n!==s.handler||(this._removedListeners.push(s),a.splice(o,1));return a.length||(delete r[e],this.rootElement&&this.rootElement.removeEventListener(e,this.handle,i)),this},Delegate.prototype.handle=function(e){let t,n;const i=e.type;let o,s,r,a,l,c=[];const d="ftLabsDelegateIgnore";if(!0===e[d])return;switch(l=e.target,3===l.nodeType&&(l=l.parentNode),l.correspondingUseElement&&(l=l.correspondingUseElement),o=this.rootElement,s=e.eventPhase||(e.target!==e.currentTarget?3:2),s){case 1:c=this.listenerMap[1][i];break;case 2:this.listenerMap[0]&&this.listenerMap[0][i]&&(c=c.concat(this.listenerMap[0][i])),this.listenerMap[1]&&this.listenerMap[1][i]&&(c=c.concat(this.listenerMap[1][i]));break;case 3:c=this.listenerMap[0][i]}let u,h=[];for(n=c.length;l&&n;){for(t=0;t<n&&(r=c[t],r);t++)l.tagName&&["button","input","select","textarea"].indexOf(l.tagName.toLowerCase())>-1&&l.hasAttribute("disabled")?h=[]:r.matcher.call(l,r.matcherParam,l)&&h.push([e,l,r]);if(l===o)break;if(n=c.length,l=l.parentElement||l.parentNode,l instanceof HTMLDocument)break}for(t=0;t<h.length;t++)if(!(this._removedListeners.indexOf(h[t][2])>-1)&&(a=this.fire.apply(this,h[t]),!1===a)){h[t][0][d]=!0,h[t][0].preventDefault(),u=!1;break}return u},Delegate.prototype.fire=function(e,t,n){return n.handler.call(t,e,t)},Delegate.prototype.destroy=function(){this.off(),this.root()};var candidateSelectors=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not
1(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],candidateSelector=candidateSelectors.join(","),NoElement="undefined"==typeof Element,matches=NoElement?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,getRootNode=!NoElement&&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},isInert=function e(t,n){var i;void 0===n&&(n=!0);var o=null==t||null===(i=t.getAttribute)||void 0===i?void 0:i.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},isContentEditable=function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},getCandidates=function(e,t,n){if(isInert(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(candidateSelector));return t&&matches.call(e,candidateSelector)&&i.unshift(e),i=i.filter(n)},getCandidatesIteratively=function e(t,n,i){for(var o=[],s=Array.from(t);s.length;){var r=s.shift();if(!isInert(r,!1))if("SLOT"===r.tagName){var a=r.assignedElements(),l=e(a.length?a:r.children,!0,i);i.flatten?o.push.apply(o,l):o.push({scopeParent:r,candidates:l})}else{matches.call(r,candidateSelector)&&i.filter(r)&&(n||!t.includes(r))&&o.push(r);var c=r.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(r),d=!isInert(c,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(r));if(c&&d){var u=e(!0===c?r.children:c.children,!0,i);i.flatten?o.push.apply(o,u):o.push({scopeParent:r,candidates:u})}else s.unshift.apply(s,r.children)}}return o},hasTabIndex=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},getTabIndex=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||isContentEditable(e))&&!hasTabIndex(e)?0:e.tabIndex},getSortOrderTabIndex=function(e,t){var n=getTabIndex(e);return n<0&&t&&!hasTabIndex(e)?0:n},sortOrderedTabbables=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},isInput=function(e){return"INPUT"===e.tagName},isHiddenInput=function(e){return isInput(e)&&"hidden"===e.type},isDetailsWithSummary=function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))},getCheckedRadio=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},isTabbableRadio=function(e){if(!e.name)return!0;var t,n=e.form||getRootNode(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 console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=getCheckedRadio(t,e.form);return!o||o===e},isRadio=function(e){return isInput(e)&&"radio"===e.type},isNonTabbableRadio=function(e){return isRadio(e)&&!isTabbableRadio(e)},isNodeAttached=function(e){var t,n,i,o,s=e&&getRootNode(e),r=null===(t=s)||void 0===t?void 0:t.host,a=!1;if(s&&s!==e)for(a=!!(null!==(n=r)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(r)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&r;){var l,c,d;a=!(null===(c=r=null===(l=s=getRootNode(r))||void 0===l?void 0:l.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(r))}return a},isZeroArea=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},isHidden=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=matches.call(e,"details>summary:first-of-type")?e.parentElement:e;if(matches.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return isZeroArea(e)}else{if("function"==typeof i){for(var s=e;e;){var r=e.parentElement,a=getRootNode(e);if(r&&!r.shadowRoot&&!0===i(r))return isZeroArea(e);e=e.assignedSlot?e.assignedSlot:r||a===e.ownerDocument?r:a.host}e=s}if(isNodeAttached(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}
vendor: 4,610 bytes, line 1
1,isDisabledFromFieldset=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!!matches.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1},isNodeMatchingSelectorFocusable=function(e,t){return!(t.disabled||isInert(t)||isHiddenInput(t)||isHidden(t,e)||isDetailsWithSummary(t)||isDisabledFromFieldset(t))},isNodeMatchingSelectorTabbable=function(e,t){return!(isNonTabbableRadio(t)||getTabIndex(t)<0||!isNodeMatchingSelectorFocusable(e,t))},isValidShadowRootTabbable=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},sortByOrder=function e(t){var n=[],i=[];return t.forEach((function(t,o){var s=!!t.scopeParent,r=s?t.scopeParent:t,a=getSortOrderTabIndex(r,s),l=s?e(t.candidates):r;0===a?s?n.push.apply(n,l):n.push(r):i.push({documentOrder:o,tabIndex:a,item:t,isScope:s,content:l})})),i.sort(sortOrderedTabbables).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},tabbable=function(e,t){var n;return n=(t=t||{}).getShadowRoot?getCandidatesIteratively([e],t.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):getCandidates(e,t.includeContainer,isNodeMatchingSelectorTabbable.bind(null,t)),sortByOrder(n)},focusable=function(e,t){return(t=t||{}).getShadowRoot?getCandidatesIteratively([e],t.includeContainer,{filter:isNodeMatchingSelectorFocusable.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):getCandidates(e,t.includeContainer,isNodeMatchingSelectorFocusable.bind(null,t))},isTabbable=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==matches.call(e,candidateSelector)&&isNodeMatchingSelectorTabbable(t,e)},focusableCandidateSelector=candidateSelectors.concat("iframe").join(","),isFocusable=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==matches.call(e,focusableCandidateSelector)&&isNodeMatchingSelectorFocusable(t,e)};function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPrimitive(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:String(t)}var activeFocusTraps={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},isSelectableInput=function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select},isEscapeEvent=function(e){return"Escape"===(null==e?void 0:e.key)||"Esc"===(null==e?void 0:e.key)||27===(null==e?void 0:e.keyCode)},isTabEvent=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},isKeyForward=function(e){return isTabEvent(e)&&!e.shiftKey},isKeyBackward=function(e){return isTabEvent(e)&&e.shiftKey},delay=function(e){return setTimeout(e,0)},findIndex=function(e,t){var n=-1;return e.every((function(e,i){return!t(e)||(n=i,!1)})),n},valueOrHandler=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"function"==typeof e?e.apply(void 0,n):e},getActualTarget=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},internalTrapStack=[],createFocusTrap=function(e,t){var n,i=(null==t?void 0:t.document)||document,o=(null==t?void 0:t.trapStack)||internalTrapStack,s=_objectSpread2
vendor: 4,838 bytes, line 1
1({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:isKeyForward,isKeyBackward:isKeyBackward},t),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:s[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return r.containerGroups.findIndex((function(t){var i=t.container,o=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||o.find((function(t){return t===e}))}))},c=function(e){var t=s[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a=t;if("string"==typeof t&&!(a=i.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},d=function(){var e=c("initialFocus");if(!1===e)return!1;if(void 0===e||!isFocusable(e,s.tabbableOptions))if(l(i.activeElement)>=0)e=i.activeElement;else{var t=r.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},u=function(){if(r.containerGroups=r.containers.map((function(e){var t=tabbable(e,s.tabbableOptions),n=focusable(e,s.tabbableOptions),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,r=n.find((function(e){return isTabbable(e)})),a=n.slice().reverse().find((function(e){return isTabbable(e)})),l=!!t.find((function(e){return getTabIndex(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:r,lastDomTabbableNode:a,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?i?n.slice(n.indexOf(e)+1).find((function(e){return isTabbable(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return isTabbable(e)})):t[o+(i?1:-1)]}}})),r.tabbableGroups=r.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),r.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find((function(e){return e.posTabIndexesFound}))&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function e(t){var n=t.activeElement;if(n)return n.shadowRoot&&null!==n.shadowRoot.activeElement?e(n.shadowRoot):n},f=function e(t){!1!==t&&t!==h(document)&&(t&&t.focus?(t.focus({preventScroll:!!s.preventScroll}),r.mostRecentlyFocusedNode=t,isSelectableInput(t)&&t.select()):e(d()))},p=function(e){var t=c("setReturnFocus",e);return t||!1!==t&&e},m=function(e){var t=e.target,n=e.event,i=e.isBackward,o=void 0!==i&&i;t=t||getActualTarget(n),u();var a=null;if(r.tabbableGroups.length>0){var d=l(t,n),h=d>=0?r.containerGroups[d]:void 0;if(d<0)a=o?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(o){var f=findIndex(r.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(f<0&&(h.container===t||isFocusable(t,s.tabbableOptions)&&!isTabbable(t,s.tabbableOptions)&&!h.nextTabbableNode(t,!1))&&(f=d),f>=0){var p=0===f?r.tabbableGroups.length-1:f-1,m=r.tabbableGroups[p];a=getTabIndex(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else isTabEvent(n)||(a=h.nextTabbableNode(t,!1))}else{var g=findIndex(r.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(g<0&&(h.container===t||isFocusable(t,s.tabbableOptions)&&!isTabbable(t,s.tabbableOptions)&&!h.nextTabbableNode(t))&&(g=d),g>=0){var v=g===r.tabbableGroups.length-1?0:g+1,y=r.tabbableGroups[v];a=getTabIndex(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else isTabEvent(n)||(a=h.nextTabbableNode(t))}}else a=c("fallbackFocus");return a},g=function(e){var t=getActualTarget(e);l(t,e)>=0||(valueOrHandler(s.clickOutsideDeactivates,e)?n.deactivate({returnFocus:s.returnFocusOnDeactivate}):valueOrHandler(s.allowOutsideClick,e)||e.preventDefault())},v=function(e){var t=getActualTarget(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(r.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var o=!0;if(r.mostRecentlyFocusedNode)if(getTabIndex(r.mostRecentlyFocusedNode)>0){var a=l(r.mostRecentlyFocusedNode),c=r.containerGroups[a].tabbableNodes;if(c.length>0){var u=c.findIndex((function(e){return e===r.mostRecentlyFocusedNode}));u>
vendor: 3,249 bytes, line 1
1=0&&(s.isKeyForward(r.recentNavEvent)?u+1<c.length&&(i=c[u+1],o=!1):u-1>=0&&(i=c[u-1],o=!1))}}else r.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return getTabIndex(e)>0}))}))||(o=!1);else o=!1;o&&(i=m({target:r.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(r.recentNavEvent)})),f(i||(r.mostRecentlyFocusedNode||d()))}r.recentNavEvent=void 0},y=function(e){if(isEscapeEvent(e)&&!1!==valueOrHandler(s.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(s.isKeyForward(e)||s.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.recentNavEvent=e;var n=m({event:e,isBackward:t});n&&(isTabEvent(e)&&e.preventDefault(),f(n))}(e,s.isKeyBackward(e))},b=function(e){var t=getActualTarget(e);l(t,e)>=0||valueOrHandler(s.clickOutsideDeactivates,e)||valueOrHandler(s.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(r.active)return activeFocusTraps.activateTrap(o,n),r.delayInitialFocusTimer=s.delayInitialFocus?delay((function(){f(d())})):f(d()),i.addEventListener("focusin",v,!0),i.addEventListener("mousedown",g,{capture:!0,passive:!1}),i.addEventListener("touchstart",g,{capture:!0,passive:!1}),i.addEventListener("click",b,{capture:!0,passive:!1}),i.addEventListener("keydown",y,{capture:!0,passive:!1}),n},E=function(){if(r.active)return i.removeEventListener("focusin",v,!0),i.removeEventListener("mousedown",g,!0),i.removeEventListener("touchstart",g,!0),i.removeEventListener("click",b,!0),i.removeEventListener("keydown",y,!0),n},S="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===r.mostRecentlyFocusedNode}))}))&&f(d())})):void 0,x=function(){S&&(S.disconnect(),r.active&&!r.paused&&r.containers.map((function(e){S.observe(e,{subtree:!0,childList:!0})})))};return(n={get active(){return r.active},get paused(){return r.paused},activate:function(e){if(r.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),o=a(e,"checkCanFocusTrap");o||u(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=i.activeElement,null==t||t();var s=function(){o&&u(),w(),x(),null==n||n()};return o?(o(r.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(e){if(!r.active)return this;var t=_objectSpread2({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},e);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,E(),r.active=!1,r.paused=!1,x(),activeFocusTraps.deactivateTrap(o,n);var i=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),c=a(t,"checkCanReturnFocus"),d=a(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var u=function(){delay((function(){d&&f(p(r.nodeFocusedBeforeActivation)),null==l||l()}))};return d&&c?(c(p(r.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(e){if(r.paused||!r.active)return this;var t=a(e,"onPause"),n=a(e,"onPostPause");return r.paused=!0,null==t||t(),E(),x(),null==n||n(),this},unpause:function(e){if(!r.paused||!r.active)return this;var t=a(e,"onUnpause"),n=a(e,"onPostUnpause");return r.paused=!1,null==t||t(),u(),w(),x(),null==n||n(),this}
vendor: 17,823 bytes, line 1
1,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return r.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),r.active&&u(),x(),this}}).updateContainerElements(e),n};function isNumber(e){return"number"==typeof e}function isString(e){return"string"==typeof e}function isBoolean(e){return"boolean"==typeof e}function isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}function mathAbs(e){return Math.abs(e)}function mathSign(e){return Math.sign(e)}function deltaAbs(e,t){return mathAbs(e-t)}function factorAbs(e,t){if(0===e||0===t)return 0;if(mathAbs(e)<=mathAbs(t))return 0;const n=deltaAbs(mathAbs(e),mathAbs(t));return mathAbs(n/e)}function arrayKeys(e){return objectKeys(e).map(Number)}function arrayLast(e){return e[arrayLastIndex(e)]}function arrayLastIndex(e){return Math.max(0,e.length-1)}function arrayIsLastIndex(e,t){return t===arrayLastIndex(e)}function arrayFromNumber(e,t=0){return Array.from(Array(e),((e,n)=>t+n))}function objectKeys(e){return Object.keys(e)}function objectsMergeDeep(e,t){return[e,t].reduce(((e,t)=>(objectKeys(t).forEach((n=>{const i=e[n],o=t[n],s=isObject(i)&&isObject(o);e[n]=s?objectsMergeDeep(i,o):o})),e)),{})}function isMouseEvent(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function Alignment(e,t){const n={start:function(){return 0},center:function(e){return i(e)/2},end:i};function i(e){return t-e}return{measure:function(i,o){return isString(e)?n[e](i):e(t,i,o)}}}function EventStore(){let e=[];const t={add:function(n,i,o,s={passive:!0}){let r;if("addEventListener"in n)n.addEventListener(i,o,s),r=()=>n.removeEventListener(i,o,s);else{const e=n;e.addListener(o),r=()=>e.removeListener(o)}return e.push(r),t},clear:function(){e=e.filter((e=>e()))}};return t}function Animations(e,t,n,i){const o=EventStore(),s=1e3/60;let r=null,a=0,l=0;function c(e){if(!l)return;r||(r=e);const o=e-r;for(r=e,a+=o;a>=s;)n(),a-=s;const d=mathAbs(a/s);i(d),l&&t.requestAnimationFrame(c)}function d(){t.cancelAnimationFrame(l),r=null,a=0,l=0}return{init:function(){o.add(e,"visibilitychange",(()=>{e.hidden&&(r=null,a=0)}))},destroy:function(){d(),o.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:d,update:n,render:i}}function Axis(e,t){const n="rtl"===t,i="y"===e,o=!i&&n?-1:1;return{scroll:i?"y":"x",cross:i?"x":"y",startEdge:i?"top":n?"right":"left",endEdge:i?"bottom":n?"left":"right",measureSize:function(e){const{height:t,width:n}=e;return i?t:n},direction:function(e){return e*o}}}function Limit(e=0,t=0){const n=mathAbs(e-t);function i(t){return t<e}function o(e){return e>t}function s(e){return i(e)||o(e)}return{length:n,max:t,min:e,constrain:function(n){return s(n)?i(n)?e:t:n},reachedAny:s,reachedMax:o,reachedMin:i,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function Counter(e,t,n){const{constrain:i}=Limit(0,e),o=e+1;let s=r(t);function r(e){return n?mathAbs((o+e)%o):i(e)}function a(){return s}function l(){return Counter(e,a(),n)}const c={get:a,set:function(e){return s=r(e),c},add:function(e){return l().set(a()+e)},clone:l};return c}function DragHandler(e,t,n,i,o,s,r,a,l,c,d,u,h,f,p,m,g,v,y){const{cross:b,direction:w}=e,E=["INPUT","SELECT","TEXTAREA"],S={passive:!1},x=EventStore(),A=EventStore(),T=Limit(50,225).constrain(f.measure(20)),O={mouse:300,touch:400},L={mouse:500,touch:600},C=p?43:25;let D=!1,_=0,I=0,N=!1,P=!1,R=!1,M=!1;function F(e){if(!isMouseEvent(e,i)&&e.touches.length>=2)return z(e);const t=s.readPoint(e),n=s.readPoint(e,b),r=deltaAbs(t,_),l=deltaAbs(n,I);if(!P&&!M){if(!e.cancelable)return z(e);if(P=r>l,!P)return z(e)}const d=s.pointerMove(e);r>m&&(R=!0),c.useFriction(.3).useDuration(.75),a.start(),o.add(w(d)),e.preventDefault()}function z(e){const t=d.byDistance(0,!1).index!==u.get(),n=s.pointerUp(e)*(p?L:O)[M?"mouse":"touch"],i=function(e,t){const n=u.add(-1*mathSign(e)),i=d.byDistance(e,!p).distance;return p||mathAbs(e)<T?i:g&&t?.5*i:d.byIndex(n.get(),0).distance}(w(n),t),o=factorAbs(n,i),r=C-10*o,a=v+o/50;P=!1,N=!1,A.clear(),c.useDuration(r).useFriction(a),l.distance(i,!p),M=!1,h.emit("pointerUp")}function k(e){R&&(e.stopPropagation(),e.preventDefault(),R=!1)}return{init:function(e){if(!y)return;function a(a){(isBoolean(y)||y(e,a))&&function(e){const a=isMouseEvent(e,i);if(M=a,R=p&&a&&!e.buttons&&D,D=deltaAbs(o.get(),r.get())>=2,a&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return E.includes(t)}(e.target))return;N=!0,s.pointerDown(e),c.useFriction(0).useDuration(0),o.set(r),function(){const e=M?n:t;A.add(e,"touchmove",F,S).add(e,"touchend",z).add(e,"mousemove",F,S).add(e,"mouseup",z)}(),_=s.readPoint(e),I=s.readPoint(e,b),h.emit("pointerDown")}(a)}const l=t;x.add(l,"dragstart",(e=>e.preventDefault()),S).add(l,"touchmove",(()=>{}),S).add(l,"touchend",(()=>{})).add(l,"touchstart",a).add(l,"mousedown",a).add(l,"touchcancel",z).add(l,"contextmenu",z).add(l,"click",k,!0)},destroy:function(){x.clear(),A.clear()},pointerDown:function(){return N}}}function DragTracker(e,t){let n,i;function o(e){return e.timeStamp}function s(n,i){const o="client"+("x"===(i||e.scroll)?"X":"Y");return(isMouseEvent(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,i=e,s(e)},pointerMove:function(e){const t=s(e)-s(i),r=o(e)-o(n)>170;return i=e,r&&(n=e),t},pointerUp:function(e){if(!n||!i)return 0;const t=s(i)-s(n),r=o(e)-o(n),a=o(e)-o(i)>170,l=t/r;return r&&!a&&mathAbs(l)>.1?l:0},readPoint:s}}function NodeRects(){return{measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:i,offsetHeight:o}=e;return{top:t,right:n+i,bottom:t+o,left:n,width:i,height:o}}}}function PercentOfView(e){return{measure:function(t){return e*(t/100)}}}function ResizeHandler(e,t,n,i,o,s,r){let a,l,c=[],d=!1;function u(e){return o.measureSize(r.measure(e))}return{init:function(o){if(!s)return;l=u(e),c=i.map(u),a=new ResizeObserver((r=>{d||(isBoolean(s)||s(o,r))&&function(s){for(const r of s){const s=r.target===e,a=i.indexOf(r.target),d=s?l:c[a];if(mathAbs(u(s?e:i[a])-d)>=.5){n.requestAnimationFrame((()=>{o.reInit(),t.emit("resize")}));break}}}(r)})),[e].concat(i).forEach((e=>a.observe(e)))},destroy:function(){a&&a.disconnect(),d=!0}}}function ScrollBody(e,t,n,i,o){let s=0,r=0,a=i,l=o,c=e.get(),d=0;function u(e){return a=e,f}function h(e){return l=e,f}const f={direction:function(){return r},duration:function(){return a},velocity:function(){return s},seek:function(){const t=n.get()-e.get();let i=0;return!a?(s=0,e.set(n),i=t):(s+=t/a,s*=l,c+=s,e.add(s),i=c-d),r=mathSign(i),d=c,f},settled:function(){return mathAbs(n.get()-t.get())<.001},useBaseFriction:function(){return h(o)},useBaseDuration:function(){return u(i)},useFriction:h,useDuration:u};return f}function ScrollBounds(e,t,n,i,o){const s=o.measure(10),r=o.measure(50),a=Limit(.1,.99);let l=!1;function c(){return!l&&(!!e.reachedAny(n.get())&&!!e.reachedAny(t.get()))}return{shouldConstrain:c,constrain:function(o){if(!c())return;const l=e.reachedMin(t.get())?"min":"max",d=mathAbs(e[l]-t.get()),u=n.get()-t.get(),h=a.constrain(d/r);n.subtract(u*h),!o&&mathAbs(u)<s&&(n.set(e.constrain(n.get())),i.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}function ScrollContain(e,t,n,i,o){const s=Limit(-t+e,0),r=n.map(((e,t)=>{const{min:i,max:o}=s,r=s.constrain(e),a=!t,l=arrayIsLastIndex(n,t);return a?o:l||c(i,r)?i:c(o,r)?o:r})).map((e=>parseFloat(e.toFixed(3)))),a=function(){const e=r[0],t=arrayLast(r),n=r.lastIndexOf(e),i=r.indexOf(t)+1;return Limit(n,i)}(),l=function(){if(t<=e+o)return[s.max];if("keepSnaps"===i)return r;const{min:n,max:l}=a;return r.slice(n,l)}();function c(e,t){return deltaAbs(e,t)<1}return{snapsContained:l,scrollContainLimit:a}}function ScrollLimit(e,t,n){const i=t[0];return{limit:Limit(n?i-e:arrayLast(t),i)}}function ScrollLooper(e,t,n,i){const o=t.min+.1,s=t.max+.1,{reachedMin:r,reachedMax:a}=Limit(o,s);return{loop:function(t){if(!function(e){return 1===e?a(n.get()):-1===e&&r(n.get())}(t))return;const o=e*(-1*t);i.forEach((e=>e.add(o)))}}}function ScrollProgress(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}function ScrollSnaps(e,t,n,i,o){const{startEdge:s,endEdge:r}=e,{groupSlides:a}=o,l=a(i).map((e=>arrayLast(e)[r]-e[0][s])).map(mathAbs).map(t.measure),c=i.map((e=>n[s]-e[s])).map((e=>-mathAbs(e))),d=a(c).map((e=>e[0])).map(((e,t)=>e+l[t]));return{snaps:c,snapsAligned:d}}function SlideRegistry(e,t,n,i,o,s){const{groupSlides:r}=o,{min:a,max:l}=i;return{slideRegistry:function(){const i=r(s),o=!e||"keepSnaps"===t;return 1===n.length?[s]:o?i:i.slice(a,l).map(((e,t,n)=>{const i=!t,o=arrayIsLastIndex(n,t);if(i){return arrayFromNumber(arrayLast(n[0])+1)}if(o){return arrayFromNumber(arrayLastIndex(s)-arrayLast(n)[0]+1,arrayLast(n)[0])}return e}))}()}}function ScrollTarget(e,t,n,i,o){const{reachedAny:s,removeOffset:r,constrain:a}=i;function l(e){return e.concat().sort(((e,t)=>mathAbs(e)-mathAbs(t)))[0]}function c(t,i){const o=[t,t+n,t-n];if(!e)return t;if(!i)return l(o);const s=o.filter((e=>mathSign(e)===i));return s.length?l(s):arrayLast(o)-n}return{byDistance:function(n,i){const l=o.get()+n,{index:d,distance:u}=function(n){const i=e?r(n):a(n),o=t.map(((e,t)=>({diff:c(e-i,0),index:t}))).sort(((e,t)=>mathAbs(e.diff)-mathAbs(t.diff))),{index:s}=o[0];return{index:s,distance:i}}(l),h=!e&&s(l);return!i||h?{index:d,distance:n}:{index:d,distance:n+c(t[d]-u,0)}},byIndex:function(e,n){return{index:e,distance:c(t[e]-o.get(),n)}},shortcut:c}}function ScrollTo(e,t,n,i,o,s,r){function a(o){const a=o.distance,l=o.index!==t.get();s.add(a),a&&(i.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(o.index),r.emit("select"))}return{distance:function(e,t){a(o.byDistance(e,t))},index:function(e,n){const i=t.clone().set(e);a(o.byIndex(i.get(),n))}}}function SlideFocus(e,t,n,i,o,s,r){let a=0;function l(e){"Tab"===e.code&&(a=(new Date).getTime())}function c(l){s.add(l,"focus",(()=>{if((new Date).getTime()-a>10)return;e.scrollLeft=0;const s=t.indexOf(l),c=n.findIndex((e=>e.includes(s)));isNumber(c)&&(o.useDuration(0),i.index(c,0),r.emit("slideFocus"))}),{passive:!0,capture:!0})}return{init:function(){s.add(document,"keydown",l,!1),t.forEach(c)}}}function Vector1D(e){let t=e;function n(e){return isNumber(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function Translate(e,t){const n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},i=t.style;let o=!1;return{clear:function(){o||(i.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){o||(i.transform=n(e.direction(t)))},toggleActive:function(e){o=!e}}}function SlideLooper(e,t,n,i,o,s,r,a,l){const c=.5,d=arrayKeys(o),u=arrayKeys(o).reverse(),h=function(){const e=r[0];return m(p(u,e),n,!1)}().concat(function(){const e=t-r[0]-1;return m(p(d,e),-n,!0)}());function f(e,t){return e.reduce(((e,t)=>e-o[t]),t)}function p(e,t){return e.reduce(((e,n)=>f(e,t)>0?e.concat([n]):e),[])}function m(o,r,d){const u=function(e){return s.map(((n,o)=>({start:n-i[o]+c+e,end:n+t-c+e})))}(r);return o.map((t=>{const i=d?0:-n,o=d?n:0,s=d?"end":"start",r=u[t][s];return{index:t,loopPoint:r,slideLocation:Vector1D(-1),translate:Translate(e,l[t]),target:()=>a.get()>r?i:o}}))}return{canLoop:function(){return h.every((({index:e})=>f(d.filter((t=>t!==e)),t)<=.1))},clear:function(){h.forEach((e=>e.translate.clear()))},loop:function(){h.forEach((e=>{const{target:t,translate:n,slideLocation:i}=e,o=t();o!==i.get()&&(n.to(o),i.set(o))}))},loopPoints:h}}function SlidesHandler(e,t,n){let i,o=!1;return{init:function(s){n&&(i=new MutationObserver((e=>{o||(isBoolean(n)||n(s,e))&&function(e){for(const n of e)if("childList"===n.type){s.reInit(),t.emit("slidesChanged");break}}(e)})),i.observe(e,{childList:!0}))},destroy:function(){i&&i.disconnect(),o=!0}}}function SlidesInView(e,t,n,i){const o={};let s,r=null,a=null,l=!1;const c={init:function(){s=new IntersectionObserver((e=>{l||(e.forEach((e=>{const n=t.indexOf(e.target);o[n]=e})),r=null,a=null,n.emit("slidesInView"))}),{root:e.parentElement,threshold:i}),t.forEach((e=>s.observe(e)))},destroy:function(){s&&s.disconnect(),l=!0},get:function(e=!0){if(e&&r)return r;if(!e&&a)return a;const t=function(e){return objectKeys(o).reduce(((t,n)=>{const i=parseInt(n),{isIntersecting:s}=o[i];return(e&&s||!e&&!s)&&t.push(i),t}),[])}(e);return e&&(r=t),e||(a=t),t}};return c}function SlideSizes(e,t,n,i,o,s){const{measureSize:r,startEdge:a,endEdge:l}=e,c=n[0]&&o,d=function(){if(!c)return 0;const e=n[0];return mathAbs(t[a]-e[a])}(),u=function(){if(!c)return 0;const e=s.getComputedStyle(arrayLast(i));return parseFloat(e.getPropertyValue(`margin-${l}`))}(),h=n.map(r),f=n.map(((e,t,n)=>{const i=!t,o=arrayIsLastIndex(n,t);return i?h[t]+d:o?h[t]+u:n[t+1][a]-e[a]})).map(mathAbs);return{slideSizes:h,slideSizesWithGaps:f,startGap:d,endGap:u}}function SlidesToScroll(e,t,n,i,o,s,r,a,l){const{startEdge:c,endEdge:d,direction:u}=e,h=isNumber(n);return{groupSlides:function(e){return h?function(e,t){return arrayKeys(e).filter((e=>e%t==0)).map((n=>e.slice(n,n+t)))}(e,n):function(e){return e.length?arrayKeys(e).reduce(((n,h,f)=>{const p=arrayLast(n)||0,m=0===p,g=h===arrayLastIndex(e),v=o[c]-s[p][c],y=o[c]-s[h][d],b=!i&&m?u(r):0,w=mathAbs(y-(!i&&g?u(a):0)-(v+b));return f&&w>t+l&&n.push(h),g&&n.push(e.length),n}),[]).map(((t,n,i)=>{const o=Math.max(i[n-1]||0);return e.slice(o,t)})):[]}(e)}}}function Engine(e,t,n,i,o,s,r){const{align:a,axis:l,direction:c,startIndex:d,loop:u,duration:h,dragFree:f,dragThreshold:p,inViewThreshold:m,slidesToScroll:g,skipSnaps:v,containScroll:y,watchResize:b,watchSlides:w,watchDrag:E}=s,S=NodeRects(),x=S.measure(t),A=n.map(S.measure),T=Axis(l,c),O=T.measureSize(x),L=PercentOfView(O),C=Alignment(a,O),D=!u&&!!y,_=u||!!y,{slideSizes:I,slideSizesWithGaps:N,startGap:P,endGap:R}=SlideSizes(T,x,A,n,_,o),M=SlidesToScroll(T,O,g,u,x,A,P,R,2),{snaps:F,snapsAligned:z}=ScrollSnaps(T,C,x,A,M),k=-arrayLast(F)+arrayLast(N),{snapsContained:B,scrollContainLimit:H}=ScrollContain(O,k,z,y,2),V=D?B:z,{limit:W}=ScrollLimit(k,V,u),j=Counter(arrayLastIndex(V),d,u),$=j.clone(),U=arrayKeys(n),K=Animations(i,o,(()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:i}})=>{i||n.constrain(e.pointerDown()),t.seek()})(se)),(e=>(({scrollBody:e,translate:t,location:n,offsetLocation:i,scrollLooper:o,slideLooper:s,dragHandler:r,animation:a,eventHandler:l,scrollBounds:c,options:{loop:d}},u)=>{const h=e.velocity(),f=e.settled(),p=!c.shouldConstrain(),m=d?f:f&&p;m&&!r.pointerDown()&&(a.stop(),l.emit("settle")),m||l.emit("scroll"),i.set(n.get()-h+h*u),d&&(o.loop(e.direction()),s.loop()),t.to(i.get())})(se,e))),G=V[j.get()],q=Vector1D(G),X=Vector1D(G),Y=Vector1D(G),Z=ScrollBody(q,X,Y,h,.68),Q=ScrollTarget(u,V,k,W,Y),J=ScrollTo(K,j,$,Z,Q,Y,r),ee=ScrollProgress(W),te=EventStore(),ne=SlidesInView(t,n,r,m),{slideRegistry:ie}=SlideRegistry(D,y,V,H,M,U),oe=SlideFocus(e,n,ie,J,Z,te,r),se={ownerDocument:i,ownerWindow:o,eventHandler:r,containerRect:x,slideRects:A,animation:K,axis:T,dragHandler:DragHandler(T,e,i,o,Y,DragTracker(T,o),q,K,J,Z,Q,j,r,L,f,p,v,.68,E),eventStore:te,percentOfView:L,index:j,indexPrevious:$,limit:W,location:q,offsetLocation:X,options:s,resizeHandler:ResizeHandler(t,r,o,n,T,b,S),scrollBody:Z,scrollBounds:ScrollBounds(W,X,Y,Z,L),scrollLooper:ScrollLooper(k,W,X,[q,X,Y]),scrollProgress:ee,scrollSnapList:V.map(ee.get),scrollSnaps:V,scrollTarget:Q,scrollTo:J,slideLooper:SlideLooper(T,O,k,I,N,F,V,X,n),slideFocus:oe,slidesHandler:SlidesHandler(t,r,w),slidesInView:ne,slideIndexes:U,slideRegistry:ie,slidesToScroll:M,target:Y,translate:Translate(T,t)};return se}function EventHandler(){let e,t={};function n(e){return t[e]||[]}const i={init:function(t){e=t},emit:function(t){return n(t).forEach((n=>n(e,t))),i},off:function(e,o){return t[e]=n(e).filter((e=>e!==o)),i},on:function(e,o){return t[e]=n(e).concat([o]),i},clear:function(){t={}}};return i}const defaultOptions={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,snapped:"is-selected",inView:"",draggable:"is-draggable",dragging:"is-dragging",destroyHeight:"auto",max:!0,useNavH:!1,delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function OptionsHandler(e){function t(e,t){return objectsMergeDeep(e,t||{})}const n={mergeOptions:t,optionsAtMedia:function(n){const i=n.breakpoints||{},o=objectKeys(i).filter((t=>e.matchMedia(t).matches)).map((e=>i[e])).reduce(((e,n)=>t(e,n)),{});return t(n,o)},optionsMediaQueries:function(t){return t.map((e=>objectKeys(e.breakpoints||{}))).reduce(((e,t)=>e.concat(t)),[]).map(e.matchMedia)}};return n}function PluginsHandler(e){let t=[];return{init:function(n,i){return t=i.filter((({options:t})=>!1!==e.optionsAtMedia(t).active)),t.forEach((t=>t.init(n,e))),i.reduce(((e,t)=>Object.assign(e,{[t.name]:t})),{})},destroy:function(){t=t.filter((e=>e.destroy()))}}}function EmblaCarousel(e,t,n){const i=e.ownerDocument,o=i.defaultView,s=OptionsHandler(o),r=PluginsHandler(s),a=EventStore(),l=EventHandler(),{mergeOptions:c,optionsAtMedia:d,optionsMediaQueries:u}=s,{on:h,off:f,emit:p}=l,m=O;let g,v,y,b,w=!1,E=c(defaultOptions,EmblaCarousel.globalOptions),S=c(E),x=[];function A(t){const n=Engine(e,y,b,i,o,t,l);if(t.loop&&!n.slideLooper.canLoop()){return A(Object.assign({},t,{loop:!1}))}return n}function T(t,n){w||(E=c(E,t),S=d(E),x=n||x,function(){const{container:t,slides:n}=S,i=isString(t)?e.querySelector(t):t;y=i||e.children[0];const o=isString(n)?y.querySelectorAll(n):n;b=[].slice.call(o||y.children)}(),g=A(S),u([E,...x.map((({options:e})=>
1e))]).forEach((e=>a.add(e,"change",O))),S.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(),g.eventHandler.init(_),g.resizeHandler.init(_),g.slidesHandler.init(_),g.options.loop&&g.slideLooper.loop(),y.offsetParent&&b.length&&g.dragHandler.init(_),v=r.init(_,x)))}function O(e,t){const n=D();L(),T(c({startIndex:n},e),t),l.emit("reInit")}function L(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),r.destroy(),a.clear()}function C(e,t,n){S.active&&!w&&(g.scrollBody.useBaseFriction().useDuration(!0===t?0:S.duration),g.scrollTo.index(e,n||0))}function D(){return g.index.get()}const _={canScrollNext:function(){return g.index.add(1).get()!==D()},canScrollPrev:function(){return g.index.add(-1).get()!==D()},containerNode:function(){return y},internalEngine:function(){return g},destroy:function(){w||(w=!0,a.clear(),L(),l.emit("destroy"),l.clear())},off:f,on:h,emit:p,plugins:function(){return v},previousScrollSnap:function(){return g.indexPrevious.get()},reInit:m,rootNode:function(){return e},scrollNext:function(e){C(g.index.add(1).get(),e,-1)},scrollPrev:function(e){C(g.index.add(-1).get(),e,1)},scrollProgress:function(){return g.scrollProgress.get(g.location.get())},scrollSnapList:function(){return g.scrollSnapList},scrollTo:C,selectedScrollSnap:D,slideNodes:function(){return b},slidesInView:function(){return g.slidesInView.get()},slidesNotInView:function(){return g.slidesInView.get(!1)}};return T(t,n),setTimeout((()=>l.emit("init")),0),_}function removeClass(e,t){if(!e||!t)return;const{classList:n}=e;n.contains(t)&&n.remove(t)}function addClass(e,t){if(!e||!t)return;const{classList:n}=e;n.contains(t)||n.add(t)}function nodeListToArray(e){return Array.from(e)}function ClassNames(e={}){let t,n,i,o;const s=["select"],r=["pointerDown","pointerUp"],a=["slidesInView"];function l(e,n){"pointerDown"===n?addClass(i,t.dragging):removeClass(i,t.dragging)}function c(e,t){nodeListToArray(n.containerNode().querySelectorAll(`.${t}`)).forEach((e=>removeClass(e,t))),e.forEach((e=>addClass(o[e],t)))}function d(){const{slideRegistry:e}=n.internalEngine();c(e[n.selectedScrollSnap()],t.snapped)}function u(){c(n.slidesInView(),t.inView)}return{name:"classNames",options:e,init:function(c,h){n=c;const{mergeOptions:f,optionsAtMedia:p}=h,m=f(defaultOptions,ClassNames.globalOptions),g=f(m,e);t=p(g),i=n.rootNode(),o=n.slideNodes(),!!n.internalEngine().options.watchDrag&&addClass(i,t.draggable),t.dragging&&r.forEach((e=>n.on(e,l))),t.snapped&&(s.forEach((e=>n.on(e,d))),d()),t.inView&&(a.forEach((e=>n.on(e,u))),u())},destroy:function(){removeClass(i,t.draggable),r.forEach((e=>n.off(e,l))),s.forEach((e=>n.off(e,d))),a.forEach((e=>n.off(e,u))),o.forEach((e=>removeClass(e,t.snapped)))}}}function AutoHeight(e={}){let t,n,i=[];const o="select",s="slidesInView";let r=0,a=0;function l(){r=n.slidesInView().map((e=>i[e])).reduce(((e,t)=>Math.max(e,t)),0)||0,r>=a&&d(r)}function c(e,t){a=function(){const{slideRegistry:e}=n.internalEngine();return e[n.selectedScrollSnap()].map((e=>i[e])).reduce(((e,t)=>Math.max(e,t)),0)}()||0,d("destroy"===t?"destroy":Math.max(a,r))}function d(e){n.containerNode().style.height="destroy"===e?t.destroyHeight:`${e}px`}return{name:"autoHeight",options:e,init:function(r,a){n=r;const{mergeOptions:d,optionsAtMedia:u}=a,h=d(defaultOptions,AutoHeight.globalOptions),f=d(h,e);t=u(f);const{options:{axis:p},slideRects:m}=n.internalEngine();"y"!==p&&(i=m.map((e=>e.height)),n.on(o,c),n.on(s,l),c())},destroy:function(){n.off(o,c),n.off(s,l),d("destroy")}}}function navUICenter(e={}){let t,n,i,o,s,r,a=[],l=9999,c="min";const d="select",u="slidesInView";let h=0,f=0;function p(){h=n.slidesInView().map((e=>a[e])).reduce(((e,t)=>Math[c](e,t)),l)||0,h>=f&&g(h)}function m(e,t){f=function(){const{slideRegistry:e}=n.internalEngine();return e[n.selectedScrollSnap()].map((e=>a[e])).reduce(((e,t)=>Math[c](e,t)),l)}()||0,g(Math.max(f,h))}
1function g(e){o.style.setProperty("--gap-arrow",e/2-r+"px")}return{name:"navUICenter",options:e,init:function(h,f){n=h;const{mergeOptions:g,optionsAtMedia:v}=f,y=g(defaultOptions,navUICenter.globalOptions),b=g(y,e);t=v(b);const{options:{axis:w}}=n.internalEngine();o=n.rootNode().parentNode,s=o.querySelector('button[name="next"]'),"y"!==w&&s&&(t.max&&(l=0,c="max"),i=n.slideNodes(),a=[],i.forEach((e=>{a.push(e.querySelector("[calc-nav]")?e.querySelector("[calc-nav]").offsetHeight:l)})),n.on(d,m),n.on(u,p),r=t.useNavH?s.offsetHeight/2:0,m())},destroy:function(){n.off(d,m),n.off(u,p),a=[],o.style.removeProperty("--gap-arrow")}}}function Autoplay(e={}){let t,n,i,o=!1,s=!0,r=!1,a=0;function l(){if(i)return;if(!s)return;o||n.emit("autoplay:play");const{ownerWindow:e}=n.internalEngine();e.clearInterval(a),a=e.setInterval(f,t.delay),o=!0}function c(){if(i)return;o&&n.emit("autoplay:stop");const{ownerWindow:e}=n.internalEngine();e.clearInterval(a),a=0,o=!1}function d(){if(u())return s=o,c();s&&l()}function u(){const{ownerDocument:e}=n.internalEngine();return"hidden"===e.visibilityState}function h(e){void 0!==e&&(r=e),s=!0,l()}function f(){const{index:e}=n.internalEngine(),i=e.clone().add(1).get(),o=n.scrollSnapList().length-1;t.stopOnLastSnap&&i===o&&c(),n.canScrollNext()?n.scrollNext(r):n.scrollTo(0,r)}return{name:"autoplay",options:e,init:function(o,a){n=o;const{mergeOptions:h,optionsAtMedia:f}=a,p=h(defaultOptions,Autoplay.globalOptions),m=h(p,e);if(t=f(m),n.scrollSnapList().length<=1)return;r=t.jump,i=!1;const{eventStore:g,ownerDocument:v}=n.internalEngine(),y=n.rootNode(),b=t.rootNode&&t.rootNode(y)||y,w=n.containerNode();n.on("pointerDown",c),t.stopOnInteraction||n.on("pointerUp",l),t.stopOnMouseEnter&&(g.add(b,"mouseenter",(()=>{s=!1,c()})),t.stopOnInteraction||g.add(b,"mouseleave",(()=>{s=!0,l()}))),t.stopOnFocusIn&&(g.add(w,"focusin",c),t.stopOnInteraction||g.add(w,"focusout",l)),g.add(v,"visibilitychange",d),t.playOnInit&&!u()&&l()},destroy:function(){n.off("pointerDown",c).off("pointerUp",l),c(),i=!0,o=!1},play:h,stop:function(){o&&c()},reset:function(){o&&h()},isPlaying:function(){return o}}}EmblaCarousel.globalOptions=void 0,ClassNames.globalOptions=void 0,AutoHeight.globalOptions=void 0,navUICenter.globalOptions=void 0,Autoplay.globalOptions=void 0;const addTogglePrevNextBtnsActive=(e,t,n)=>{let i=t.parentNode.classList,o=e.rootNode().parentNode,s="hidden",r="hdt-hidden-slider-nav";const a=()=>{e.canScrollPrev()?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled"),e.canScrollNext()?n.removeAttribute("disabled"):n.setAttribute("disabled","disabled"),e.canScrollPrev()||e.canScrollNext()?(t.removeAttribute(s),n.removeAttribute(s),i.remove(r),o.classList.remove(r)):(t.setAttribute(s,""),n.setAttribute(s,""),i.add(r),o.classList.add(r))};return e.on("select",a).on("init",a).on("reInit",a),()=>{t.removeAttribute("disabled"),n.removeAttribute("disabled")}},navHandlers=(e,t,n)=>{const i=()=>e.scrollPrev(),o=()=>e.scrollNext();t.addEventListener("click",i,!1),n.addEventListener("click",o,!1);const s=addTogglePrevNextBtnsActive(e,t,n);return()=>{s(),t.removeEventListener("click",i,!1),n.removeEventListener("click",o,!1)}},dotHandlers=(e,t)=>{let n=[],i=t.parentNode.classList,o=e.rootNode().parentNode,s="hdt-hidden-slider-dots";const r=()=>{t.innerHTML=e.scrollSnapList().map((()=>'<button class="hdt-slider__dot" type="button"></button>')).join(""),n=Array.from(t.querySelectorAll(".hdt-slider__dot")),n.forEac
vendor: 6,128 bytes, line 1
1h(((t,n)=>{t.addEventListener("click",(()=>e.scrollTo(n)),!1)}))},a=()=>{const r=e.previousScrollSnap(),a=e.selectedScrollSnap();n[r].classList.remove("hdt-slider__dot--selected"),n[a].classList.add("hdt-slider__dot--selected"),e.canScrollPrev()||e.canScrollNext()?(t.removeAttribute("hidden"),i.remove(s),o.classList.remove(s)):(t.setAttribute("hidden",""),i.add(s),o.classList.add(s))};return e.on("init",r).on("reInit",r).on("init",a).on("reInit",a).on("select",a),()=>{t.innerHTML=""}};function addUniqueItem(e,t){-1===e.indexOf(t)&&e.push(t)}function removeItem(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const clamp=(e,t,n)=>Math.min(Math.max(n,e),t),defaults$1={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},isNumber2=e=>"number"==typeof e,isEasingList=e=>Array.isArray(e)&&!isNumber2(e[0]),wrap=(e,t,n)=>{const i=t-e;return((n-e)%i+i)%i+e};function getEasingForSegment(e,t){return isEasingList(e)?e[wrap(0,e.length,t)]:e}const mix=(e,t,n)=>-n*e+n*t+e,noop=()=>{},noopReturn=e=>e,progress=(e,t,n)=>t-e==0?1:(n-e)/(t-e);function fillOffset(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const o=progress(0,t,i);e.push(mix(n,1,o))}}function defaultOffset$1(e){const t=[0];return fillOffset(t,e-1),t}function interpolate(e,t=defaultOffset$1(e.length),n=noopReturn){const i=e.length,o=i-t.length;return o>0&&fillOffset(t,o),o=>{let s=0;for(;s<i-2&&!(o<t[s+1]);s++);let r=clamp(0,1,progress(t[s],t[s+1],o));return r=getEasingForSegment(n,s)(r),mix(e[s],e[s+1],r)}}const isCubicBezier=e=>Array.isArray(e)&&isNumber2(e[0]),isEasingGenerator=e=>"object"==typeof e&&Boolean(e.createAnimation),isFunction=e=>"function"==typeof e,isString2=e=>"string"==typeof e,time={ms:e=>1e3*e,s:e=>e/1e3};function velocityPerSecond(e,t){return t?e*(1e3/t):0}const calcBezier=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,subdivisionPrecision=1e-7,subdivisionMaxIterations=12;function binarySubdivide(e,t,n,i,o){let s,r,a=0;do{r=t+(n-t)/2,s=calcBezier(r,i,o)-e,s>0?n=r:t=r}while(Math.abs(s)>subdivisionPrecision&&++a<subdivisionMaxIterations);return r}function cubicBezier(e,t,n,i){if(e===t&&n===i)return noopReturn;return o=>0===o||1===o?o:calcBezier(binarySubdivide(o,0,1,e,n),t,i)}const steps=(e,t="end")=>n=>{const i=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,o="end"===t?Math.floor(i):Math.ceil(i);return clamp(0,1,o/e)},namedEasings={ease:cubicBezier(.25,.1,.25,1),"ease-in":cubicBezier(.42,0,1,1),"ease-in-out":cubicBezier(.42,0,.58,1),"ease-out":cubicBezier(0,0,.58,1)},functionArgsRegex=/\((.*?)\)/;function getEasingFunction(e){if(isFunction(e))return e;if(isCubicBezier(e))return cubicBezier(...e);if(namedEasings[e])return namedEasings[e];if(e.startsWith("steps")){const t=functionArgsRegex.exec(e);if(t){const e=t[1].split(",");return steps(parseFloat(e[0]),e[1].trim())}}return noopReturn}class Animation{constructor(e,t=[0,1],{easing:n,duration:i=defaults$1.duration,delay:o=defaults$1.delay,endDelay:s=defaults$1.endDelay,repeat:r=defaults$1.repeat,offset:a,direction:l="normal",autoplay:c=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=noopReturn,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((e,t)=>{this.resolve=e,this.reject=t})),n=n||defaults$1.easing,isEasingGenerator(n)){const e=n.createAnimation(t);n=e.easing,t=e.keyframes||t,i=e.duration||i}this.repeat=r,this.easing=isEasingList(n)?noopReturn:getEasingFunction(n),this.updateDuration(i);const d=interpolate(t,a,isEasingList(n)?n.map(getEasingFunction):noopReturn);this.tick=t=>{var n;let i=0;i=void 0!==this.pauseTime?this.pauseTime:(t-this.startTime)*this.rate,this.t=i,i/=1e3,i=Math.max(i-o,0),"finished"===this.playState&&void 0===this.pauseTime&&(i=this.totalDuration);const r=i/this.duration;let a=Math.floor(r),c=r%1;!c&&r>=1&&(c=1),1===c&&a--;const u=a%2;("reverse"===l||"alternate"===l&&u||"alternate-reverse"===l&&!u)&&(c=1-c);const h=i>=this.totalDuration?1:Math.min(c,1),f=d(this.easing(h));e(f);void 0===this.pauseTime&&("finished"===this.playState||i>=this.totalDuration+s)?(this.playState="finished",null===(n=this.resolve)||void 0===n||n.call(this,f)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},c&&this.play()}play(){const e=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(e=this.reject)||void 0===e||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){void 0!==this.pauseTime||0===this.rate?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}var invariant=function(){};invariant=function(e,t){if(!e)throw new Error(t)};class MotionValue{setAnimation(e){this.animation=e,null==e||e.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const data=new WeakMap;function getAnimationData(e){return data.has(e)||data.set(e,{transforms:[],values:new Map}),data.get(e)}function getMotionValue(e,t){return e.has(t)||e.set(t,new MotionValue),e.get(t)}const axes=["","X","Y","Z"],order=["translate","scale","rotate","skew"],transformAlias={x:"translateX",y:"translateY",z:"translateZ"},rotation={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},baseTransformProperties={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:rotation,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:noopReturn},skew:rotation},transformDefinitions=new Map,asTransformCssVar=e=>`--motion-${e}`,transforms=["x","y","z"];order.forEach((e=>
vendor: 4,545 bytes, line 1
1{axes.forEach((t=>{transforms.push(e+t),transformDefinitions.set(asTransformCssVar(e+t),baseTransformProperties[e])}))}));const compareTransformOrder=(e,t)=>transforms.indexOf(e)-transforms.indexOf(t),transformLookup=new Set(transforms),isTransform=e=>transformLookup.has(e),addTransformToElement=(e,t)=>{transformAlias[t]&&(t=transformAlias[t]);const{transforms:n}=getAnimationData(e);addUniqueItem(n,t),e.style.transform=buildTransformTemplate(n)},buildTransformTemplate=e=>e.sort(compareTransformOrder).reduce(transformListToString,"").trim(),transformListToString=(e,t)=>`${e} ${t}(var(${asTransformCssVar(t)}))`,isCssVar=e=>e.startsWith("--"),registeredProperties=new Set;function registerCssVariable(e){if(!registeredProperties.has(e)){registeredProperties.add(e);try{const{syntax:t,initialValue:n}=transformDefinitions.has(e)?transformDefinitions.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:n})}catch(e){}}}const testAnimation=(e,t)=>document.createElement("div").animate(e,t),featureTests={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{testAnimation({opacity:[1]})}catch(e){return!1}return!0},finished:()=>Boolean(testAnimation({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{testAnimation({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}},results={},supports={};for(const e in featureTests)supports[e]=()=>(void 0===results[e]&&(results[e]=featureTests[e]()),results[e]);const resolution=.015,generateLinearEasingPoints=(e,t)=>{let n="";const i=Math.round(t/.015);for(let t=0;t<i;t++)n+=e(progress(0,i-1,t))+", ";return n.substring(0,n.length-2)},convertEasing=(e,t)=>isFunction(e)?supports.linearEasing()?`linear(${generateLinearEasingPoints(e,t)})`:defaults$1.easing:isCubicBezier(e)?cubicBezierAsString(e):e,cubicBezierAsString=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`;function hydrateKeyframes(e,t){for(let n=0;n<e.length;n++)null===e[n]&&(e[n]=n?e[n-1]:t());return e}const keyframesList=e=>Array.isArray(e)?e:[e];function getStyleName(e){return transformAlias[e]&&(e=transformAlias[e]),isTransform(e)?asTransformCssVar(e):e}const style={get:(e,t)=>{t=getStyleName(t);let n=isCssVar(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&0!==n){const e=transformDefinitions.get(t);e&&(n=e.initialValue)}return n},set:(e,t,n)=>{t=getStyleName(t),isCssVar(t)?e.style.setProperty(t,n):e.style[t]=n}};function stopAnimation(e,t=!0){if(e&&"finished"!==e.playState)try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch(e){}}function getUnitConverter(e,t){var n;let i=(null==t?void 0:t.toDefaultUnit)||noopReturn;const o=e[e.length-1];if(isString2(o)){const e=(null===(n=o.match(/(-?[\d.]+)([a-z%]*)/))||void 0===n?void 0:n[2])||"";e&&(i=t=>t+e)}return i}function getDevToolsRecord(){return window.__MOTION_DEV_TOOLS_RECORD}function animateStyle(e,t,n,i={},o){const s=getDevToolsRecord(),r=!1!==i.record&&s;let a,{duration:l=defaults$1.duration,delay:c=defaults$1.delay,endDelay:d=defaults$1.endDelay,repeat:u=defaults$1.repeat,easing:h=defaults$1.easing,persist:f=!1,direction:p,offset:m,allowWebkitAcceleration:g=!1,autoplay:v=!0}=i;const y=getAnimationData(e),b=isTransform(t);let w=supports.waapi();b&&addTransformToElement(e,t);const E=getStyleName(t),S=getMotionValue(y.values,E),x=transformDefinitions.get(E);return stopAnimation(S.animation,!(isEasingGenerator(h)&&S.generator)&&!1!==i.record),()=>{const y=()=>{var t,n;return null!==(n=null!==(t=style.get(e,E))&&void 0!==t?t:null==x?void 0:x.initialValue)&&void 0!==n?n:0};let A=hydrateKeyframes(keyframesList(n),y);const T=getUnitConverter(A,x);if(isEasingGenerator(h)){const e=h.createAnimation(A,"opacity"!==t,y,E,S);h=e.easing,A=e.keyframes||A,l=e.duration||l}if(isCssVar(E)&&(supports.cssRegisterProperty()?registerCssVariable(E):w=!1),b&&!supports.linearEasing()&&(isFunction(h)||isEasingList(h)&&h.some(isFunction))&&(w=!1),w){x&&(A=A.map((e=>isNumber2(e)?x.toDefaultUnit(e):e))),1!==A.length||supports.partialKeyframes()&&!r||A.unshift(y());const t={delay:time.ms(c),duration:time.ms(l),endDelay:time.ms(d),easing:isEasingList(h)?void 0:convertEasing(h,l),direction:p,iterations:u+1,fill:"both"};a=e.animate({[E]:A,offset:m,easing:isEasingList(h)?h.map((e=>convertEasing(e,l))):void 0},t),a.finished||(a.finished=new Promise(((e,t)=>{a.onfinish=e,a.oncancel=t})));const n=A[A.length-1];a.finished.then((()=>{f||(style.set(e,E,n),a.cancel())}
1)).catch(noop),g||(a.playbackRate=1.000001)}else if(o&&b)A=A.map((e=>"string"==typeof e?parseFloat(e):e)),1===A.length&&A.unshift(parseFloat(y())),a=new o((t=>{style.set(e,E,T?T(t):t)}),A,Object.assign(Object.assign({},i),{duration:l,easing:h}));else{const t=A[A.length-1];style.set(e,E,x&&isNumber2(t)?x.toDefaultUnit(t):t)}return r&&s(e,t,A,{duration:l,delay:c,easing:h,repeat:u,offset:m},"motion-one"),S.setAnimation(a),a&&!v&&a.pause(),a}}const getOptions=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function resolveElements(e,t){var n;return"string"==typeof e?t?(null!==(n=t[e])&&void 0!==n||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const createAnimation=e=>e(),withControls=(e,t,n=defaults$1.duration)=>new Proxy({animations:e.map(createAnimation).filter(Boolean),duration:n,options:t},controls),getActiveAnimation=e=>e.animations[0],controls={get:(e,t)=>{const n=e.animations[0];switch(t){case"duration":return e.duration;case"currentTime":return time.s((null==n?void 0:n[t])||0);case"playbackRate":case"playState":return null==n?void 0:n[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(selectFinished)).catch(noop)),e.finished;case"stop":return()=>{e.animations.forEach((e=>stopAnimation(e)))};case"forEachNative":return t=>{e.animations.forEach((n=>t(n,e)))};default:return void 0===(null==n?void 0:n[t])?void 0:()=>e.animations.forEach((e=>e[t]()))}},set:(e,t,n)=>{switch(t){case"currentTime":n=time.ms(n);case"playbackRate":for(let i=0;i<e.animations.length;i++)e.animations[i][t]=n;return!0}return!1}},selectFinished=e=>e.finished;function stagger(e=.1,{start:t=0,from:n=0,easing:i}={}){return(o,s)=>{const r=isNumber2(n)?n:getFromIndex(n,s),a=Math.abs(r-o);let l=e*a;if(i){const t=s*e;l=getEasingFunction(i)(l/t)*t}return t+l}}function getFromIndex(e,t){if("first"===e)return 0;{const n=t-1;return"last"===e?n:n/2}}function resolveOption(e,t,n){return isFunction(e)?e(t,n):e}function createAnimate(e){return function(t,n,i={}){const o=(t=resolveElements(t)).length;invariant(Boolean(o),"No valid element provided."),invariant(Boolean(n),"No keyframes defined.");const s=[];for(let r=0;r<o;r++){const a=t[r];for(const t in n){const l=getOptions(i,t);l.delay=resolveOption(l.delay,r,o);const c=animateStyle(a,t,n[t],l,e);s.push(c)}}return withControls(s,i,i.duration)}}const animate$1=createAnimate(Animation);function __rest(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function calcNextTime(e,t,n,i){var o;return isNumber2(t)?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?n:null!==(o=i.get(t))&&void 0!==o?o:e}function eraseKeyframes(e,t,n){for(let i=0;i<e.length;i++){const o=e[i];o.at>t&&o.at<n&&(removeItem(e,o),i--)}}function addKeyframes(e,t,n,i,o,s){eraseKeyframes(e,o,s);for(let r=0;r<t.length;r++)e.push({value:t[r],at:mix(o,s,i[r]),easing:getEasingForSegment(n,r)})}function compareByTime(e,t){return e.at===t.at?null===e.value?1:-1:e.at-t.at}function timeline(e,t={}){var n;const i=createAnimationsFromTimeline(e,t),o=i.map((e=>animateStyle(...e,Animation))).filter(Boolean);return withControls(o,t,null===(n=i[0])||void 0===n?void 0:n[3].duration)}function createAnimationsFromTimeline(e,t={}){var{defaultOptions:n={}}=t,i=__rest(t,["defaultOptions"]);const o=[],s=new Map,r={},a=new Map;let l=0,c=0,d=0;for(let t=0;t<e.length;t++){const i=e[t];if(isString2(i)){a.set(i,c);continue}if(!Array.isArray(i)){a.set(i.name,calcNextTime(c,i.at,l,a));continue}const[o,u,h={}]=i;void 0!==h.at&&(c=calcNextTime(c,h.at,l,a));let f=0;const p=resolveElements(o,r),m=p.length;for(let e=0;e<m;e++){const t=getElementSequence(p[e],s);for(const i in u){const o=getValueSequence(i,t);let s=keyframesList(u[i]);const r=getOptions(h,i);let{duration:a=n.duration||defaults$1.duration,easing:l=n.easing||defaults$1.easing}=r;if(isEasingGenerator(l)){invariant("opacity"===i||s.length>1,"spring must be provided 2 keyframes within timeline()");const e=l.createAnimation(s,"opacity"!==i,(()=>0),i);l=e.easing,s=e.keyframes||s,a=e.duration||a}const p=resolveOption(h.delay,e,m)||0,g=c+p,v=g+a;let{offset:y=defaultOffset$1(s.length)}=r;1===y.length&&0===y[0]&&(y[1]=1);const b=y.length-s.length;b>0&&fillOffset(y,b),1===s.length&&s.unshift(null),addKeyframes(o,s,l,y,g,v),f=Math.max(p+a,f),d=Math.max(v,d)}}l=c,c+=f}
1return s.forEach(((e,t)=>{for(const s in e){const r=e[s];r.sort(compareByTime);const a=[],l=[],c=[];for(let e=0;e<r.length;e++){const{at:t,value:n,easing:i}=r[e];a.push(n),l.push(progress(0,d,t)),c.push(i||defaults$1.easing)}0!==l[0]&&(l.unshift(0),a.unshift(a[0]),c.unshift("linear")),1!==l[l.length-1]&&(l.push(1),a.push(null)),o.push([t,s,a,Object.assign(Object.assign(Object.assign({},n),{duration:d,easing:c,offset:l}),i)])}})),o}function getElementSequence(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function getValueSequence(e,t){return t[e]||(t[e]=[]),t[e]}"function"==typeof SuppressedError&&SuppressedError;const sampleT=5;function calcGeneratorVelocity(e,t,n){const i=Math.max(t-sampleT,0);return velocityPerSecond(n-e(i),t-i)}const defaults={stiffness:100,damping:10,mass:1},calcDampingRatio=(e=defaults.stiffness,t=defaults.damping,n=defaults.mass)=>t/(2*Math.sqrt(e*n));function hasReachedTarget(e,t,n){return e<t&&n>=t||e>t&&n<=t}const timeStep=10,maxDuration=1e4;function pregenerateKeyframes(e,t=noopReturn){let n,i=timeStep,o=e(0);const s=[t(o.current)];for(;!o.done&&i<maxDuration;)o=e(i),s.push(t(o.done?o.target:o.current)),void 0===n&&o.hasReachedTarget&&(n=i),i+=timeStep;const r=i-timeStep;return 1===s.length&&s.push(o.current),{keyframes:s,duration:r/1e3,overshootDuration:(null!=n?n:r)/1e3}}function canGenerate(e){return isNumber2(e)&&!isNaN(e)}function getAsNumber(e){return isString2(e)?parseFloat(e):e}function createGeneratorEasing(e){const t=new WeakMap;return(n={})=>{const i=new Map,o=(t=0,o=100,s=0,r=!1)=>{const a=`${t}-${o}-${s}-${r}`;return i.has(a)||i.set(a,e(Object.assign({from:t,to:o,velocity:s},n))),i.get(a)},s=(e,n)=>(t.has(e)||t.set(e,pregenerateKeyframes(e,n)),t.get(e));return{createAnimation:(e,t=!0,n,i,r)=>{let a,l,c,d=0,u=noopReturn;const h=e.length;if(t){u=getUnitConverter(e,i?transformDefinitions.get(getStyleName(i)):void 0);if(c=getAsNumber(e[h-1]),h>1&&null!==e[0])l=getAsNumber(e[0]);else{const e=null==r?void 0:r.generator;if(e){const{animation:t,generatorStartTime:n}=r,i=(null==t?void 0:t.startTime)||n||0,o=(null==t?void 0:t.currentTime)||performance.now()-i,s=e(o).current;l=s,d=calcGeneratorVelocity((t=>e(t).current),o,s)}else n&&(l=getAsNumber(n()))}}if(canGenerate(l)&&canGenerate(c)){const e=o(l,c,d,null==i?void 0:i.includes("scale"));a=Object.assign(Object.assign({},s(e,u)),{easing:"linear"}),r&&(r.generator=e,r.generatorStartTime=performance.now())}if(!a){a={easing:"ease",duration:s(o(0,100)).overshootDuration}}return a}}}}const thresholds={any:0,all:1};function inView$1(e,t,{root:n,margin:i,amount:o="any"}={}){if("undefined"==typeof IntersectionObserver)return()=>{};const s=resolveElements(e),r=new WeakMap,a=new IntersectionObserver((e=>{e.forEach((e=>{const n=r.get(e.target);if(e.isIntersecting!==Boolean(n))if(e.isIntersecting){const n=t(e);isFunction(n)?r.set(e.target,n):a.unobserve(e.target)}else n&&(n(e),r.delete(e.target))}))}),{root:n,rootMargin:i,threshold:"number"==typeof o?o:thresholds[o]});return s.forEach((e=>a.observe(e))),()=>a.disconnect()}const resizeHandlers=new WeakMap;let observer;function getElementSize(e,t){if(t){const{inlineSize:e,blockSize:n}=t[0];return{width:e,height:n}}return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function notifyTarget({target:e,contentRect:t,borderBoxSize:n}){var i;null===(i=resizeHandlers.get(e))||void 0===i||i.forEach((i=>{i({target:e,contentSize:t,get size(){return getElementSize(e,n)}})}))}function notifyAll(e){e.forEach(notifyTarget)}function createResizeObserver(){"undefined"!=typeof ResizeObserver&&(observer=new ResizeObserver(notifyAll))}function resizeElement(e,t){observer||createResizeObserver();const n=resolveElements(e);return n.forEach((e=>{let n=resizeHandlers.get(e);n||(n=new Set,resizeHandlers.set(e,n)),n.add(t),null==observer||observer.observe(e)})),()=>{n.forEach((e=>{const n=resizeHandlers.get(e);null==n||n.delete(t),(null==n?void 0:n.size)||null==observer||observer.unobserve(e)}))}}const windowCallbacks=new Set;let windowResizeHandler;function createWindowResizeHandler(){windowResizeHandler=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};windowCallbacks.forEach((e=>e(t)))},window.addEventListener("resize",windowResizeHandler)}function resizeWindow(e){return windowCallbacks.add(e),windowResizeHandler||createWindowResizeHandler(),()=>{windowCallbacks.delete(e),!windowCallbacks.size&&windowResizeHandler&&(windowResizeHandler=void 0)}}function resize(e,t){return isFunction(e)?resizeWindow(e):resizeElement(e,t)}const maxElapsed=50,createAxisInfo=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),createScrollInfo=()=>({time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}}),keys={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function updateAxisInfo(e,t,n,i){const o=n[t],{length:s,position:r}=keys[t],a=o.current,l=n.time;o.current=e["scroll"+r],o.scrollLength=e["scroll"+s]-e["client"+s],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=progress(0,o.scrollLength,o.current);const c=i-l;o.velocity=c>maxElapsed?0:velocityPerSecond(o.current-a,c)}function updateScrollInfo(e,t,n){updateAxisInfo(e,"x",t,n),updateAxisInfo(e,"y",t,n),t.time=n}function calcInset(e,t){let n={x:0,y:0},i=e;for(;i&&i!==t;)if(i instanceof HTMLElement)n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if(i instanceof SVGGraphicsElement&&"getBBox"in i){const{top:e,left:t}=i.getBBox();for(n.x+=t,n.y+=e;i&&"svg"!==i.tagName;)i=i.parentNode}return n}const ScrollOffset={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},namedEdges={start:0,center:.5,end:1};function resolveEdge(e,t,n=0){let i=0;if(void 0!==namedEdges[e]&&(e=namedEdges[e]),isString2(e)){const t=parseFloat(e);e.endsWith("px")?i=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?i=t/100*document.documentElement.clientWidth:e.endsWith("vh")?i=t/100*document.documentElement.clientHeight:e=t}return isNumber2(e)&&(i=t*e),n+i}const defaultOffset=[0,0];function resolveOffset(e,t,n,i){let o=Array.isArray(e)?e:defaultOffset,s=0,r=0;return isNumber2(e)?o=[e,e]:isString2(e)&&(o=(e=e.trim()).includes(" ")?e.split(" "):[e,namedEdges[e]?e:"0"]),s=resolveEdge(o[0],n,i),r=resolveEdge(o[1],t),s-r}const point={x:0,y:0};function resolveOffsets(e,t,n){let{offset:i=ScrollOffset.All}=n;const{target:o=e,axis:s="y"}=n,r="y"===s?"height":"width",a=o!==e?calcInset(o,e):point,l=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},c={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let d=!t[s].interpolate;const u=i.length;for(let e=0;e<u;e++){const n=resolveOffset(i[e],c[r],l[r],a[s]);
1d||n===t[s].interpolatorOffsets[e]||(d=!0),t[s].offset[e]=n}d&&(t[s].interpolate=interpolate(defaultOffset$1(u),t[s].offset),t[s].interpolatorOffsets=[...t[s].offset]),t[s].progress=t[s].interpolate(t[s].current)}function measure(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let i=t;for(;i&&i!=e;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function createOnScrollHandler(e,t,n,i={}){const o=i.axis||"y";return{measure:()=>measure(e,i.target,n),update:t=>{updateScrollInfo(e,n,t),(i.offset||i.target)&&resolveOffsets(e,n,i)},notify:isFunction(t)?()=>t(n):scrubAnimation(t,n[o])}}function scrubAnimation(e,t){return e.pause(),e.forEachNative(((e,{easing:t})=>{var n,i;if(e.updateDuration)t||(e.easing=noopReturn),e.updateDuration(1);else{const o={duration:1e3};t||(o.easing="linear"),null===(i=null===(n=e.effect)||void 0===n?void 0:n.updateTiming)||void 0===i||i.call(n,o)}})),()=>{e.currentTime=t.progress}}const scrollListeners=new WeakMap,resizeListeners=new WeakMap,onScrollHandlers=new WeakMap,getEventTarget=e=>e===document.documentElement?window:e;function scroll(e,t={}){var{container:n=document.documentElement}=t,i=__rest(t,["container"]);let o=onScrollHandlers.get(n);o||(o=new Set,onScrollHandlers.set(n,o));const s=createOnScrollHandler(n,e,{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}},i);if(o.add(s),!scrollListeners.has(n)){const e=()=>{const e=performance.now();for(const e of o)e.measure();for(const t of o)t.update(e);for(const e of o)e.notify()};scrollListeners.set(n,e);const t=getEventTarget(n);window.addEventListener("resize",e,{passive:!0}),n!==document.documentElement&&resizeListeners.set(n,resize(n,e)),t.addEventListener("scroll",e,{passive:!0})}const r=scrollListeners.get(n),a=requestAnimationFrame(r);return()=>{var t;"function"!=typeof e&&e.stop(),cancelAnimationFrame(a);const i=onScrollHandlers.get(n);if(!i)return;if(i.delete(s),i.size)return;const o=scrollListeners.get(n);scrollListeners.delete(n),o&&(getEventTarget(n).removeEventListener("scroll",o),null===(t=resizeListeners.get(n))||void 0===t||t(),window.removeEventListener("resize",o))}}function hasChanged(e,t){return typeof e!=typeof t||(Array.isArray(e)&&Array.isArray(t)?!shallowCompare(e,t):e!==t)}function shallowCompare(e,t){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function isVariant(e){return"object"==typeof e}function resolveVariant(e,t){return isVariant(e)?e:e&&t?t[e]:void 0}let scheduled;function processScheduledAnimations(){if(!scheduled)return;const e=scheduled.sort(compareByDepth).map(fireAnimateUpdates);e.forEach(fireNext),e.forEach(fireNext),scheduled=void 0}function scheduleAnimation(e){scheduled?addUniqueItem(scheduled,e):(scheduled=[e],requestAnimationFrame(processScheduledAnimations))}function unscheduleAnimation(e){scheduled&&removeItem(scheduled,e)}const compareByDepth=(e,t)=>e.getDepth()-t.getDepth(),fireAnimateUpdates=e=>e.animateUpdates(),fireNext=e=>e.next(),motionEvent=(e,t)=>new CustomEvent(e,{detail:{target:t}});function dispatchPointerEvent(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:n}}))}function dispatchViewEvent(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:n}}))}const inView={isActive:e=>Boolean(e.inView),subscribe:(e,{enable:t,disable:n},{inViewOptions:i={}})=>{const{once:o}=i,s=__rest(i,["once"]);return inView$1(e,(i=>{if(t(),dispatchViewEvent(e,"viewenter",i),!o)return t=>{n(),dispatchViewEvent(e,"viewleave",t)}}),s)}},mouseEvent=(e,t,n)=>i=>{i.pointerType&&"mouse"!==i.pointerType||(n(),dispatchPointerEvent(e,t,i))},hover={isActive:e=>Boolean(e.hover),subscribe:(e,{enable:t,disable:n})=>{const i=mouseEvent(e,"hoverstart",t),o=mouseEvent(e,"hoverend",n);return e.addEventListener("pointerenter",i),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",i),e.removeEventListener("pointerleave",o)}}},press={isActive:e=>Boolean(e.press),subscribe:(e,{enable:t,disable:n})=>{const i=t=>{n(),dispatchPointerEvent(e,"pressend",t),window.removeEventListener("pointerup",i)},o=n=>{t(),dispatchPointerEvent(e,"pressstart",n),window.addEventListener("pointerup",i)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",i)}}},gestures={inView:inView,hover:hover,press:press},stateTypes=["initial","animate",...Object.keys(gestures),"exit"];function animateProgress(e,t={}){return withControls([()=>{const n=new Animation(e,[0,1],t);return n.finished.catch((()=>{})),n}],t,t.duration)}function animate(e,t,n){return(isFunction(e)?animateProgress:animate$1)(e,t,n)}function createElement(e,t,n){const i=document.createElement(t);return e&&(i.className=e),n&&n.appendChild(i),i}function toTransformString(e,t,n){let i=`translate3d(${e}px,${t||0}px,0)`;return void 0!==n&&(i+=` scale3d(${n},${n},1)`),i}function setWidthHeight(e,t,n){e.style.width="number"==typeof t?`${t}px`:t,e.style.height="number"==typeof n?`${n}px`:n}const LOAD_STATE={IDLE:"idle",LOADING:"loading",LOADED:"loaded",E
vendor: 4,779 bytes, line 1
1RROR:"error"};function specialKeyUsed(e){return"button"in e&&1===e.button||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey}function getElementsFromOption(e,t,n=document){let i=[];if(e instanceof Element)i=[e];else if(e instanceof NodeList||Array.isArray(e))i=Array.from(e);else{const o="string"==typeof e?e:t;o&&(i=Array.from(n.querySelectorAll(o)))}return i}function isPswpClass(e){return"function"==typeof e&&e.prototype&&e.prototype.goTo}function isSafari(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}class PhotoSwipeEvent{constructor(e,t){this.type=e,this.defaultPrevented=!1,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}}class Eventable{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t,n=100){var i,o,s;this._filters[e]||(this._filters[e]=[]),null===(i=this._filters[e])||void 0===i||i.push({fn:t,priority:n}),null===(o=this._filters[e])||void 0===o||o.sort(((e,t)=>e.priority-t.priority)),null===(s=this.pswp)||void 0===s||s.addFilter(e,t,n)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter((e=>e.fn!==t))),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e,...t){var n;return null===(n=this._filters[e])||void 0===n||n.forEach((e=>{t[0]=e.fn.apply(this,t)})),t[0]}on(e,t){var n,i;this._listeners[e]||(this._listeners[e]=[]),null===(n=this._listeners[e])||void 0===n||n.push(t),null===(i=this.pswp)||void 0===i||i.on(e,t)}off(e,t){var n;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((e=>t!==e))),null===(n=this.pswp)||void 0===n||n.off(e,t)}dispatch(e,t){var n;if(this.pswp)return this.pswp.dispatch(e,t);const i=new PhotoSwipeEvent(e,t);return null===(n=this._listeners[e])||void 0===n||n.forEach((e=>{e.call(this,i)})),i}}class Placeholder{constructor(e,t){if(this.element=createElement("pswp__img pswp__img--placeholder",e?"img":"div",t),e){const t=this.element;t.decoding="async",t.alt="",t.src=e,t.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,t){this.element&&("IMG"===this.element.tagName?(setWidthHeight(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=toTransformString(0,0,e/250)):setWidthHeight(this.element,e,t))}destroy(){var e;null!==(e=this.element)&&void 0!==e&&e.parentNode&&this.element.remove(),this.element=null}}class Content{constructor(e,t,n){this.instance=t,this.data=e,this.index=n,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=LOAD_STATE.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)}),1e3)}load(e,t){if(this.slide&&this.usePlaceholder())if(this.placeholder){const e=this.placeholder.element;e&&!e.parentElement&&this.slide.container.prepend(e)}else{const e=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new Placeholder(e,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=createElement("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=createElement("pswp__content","div"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var t,n;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;const i=this.element;this.updateSrcsetSizes(),this.data.srcset&&(i.srcset=this.data.srcset),i.src=null!==(t=this.data.src)&&void 0!==t?t:"",i.alt=null!==(n=this.data.alt)&&void 0!==n?n:"",this.state=LOAD_STATE.LOADING,i.complete?this.onLoaded():(i.onload=()=>{this.onLoaded()},i.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=LOAD_STATE.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),this.state!==LOAD_STATE.LOADED&&this.state!==LOAD_STATE.ERROR||this.removePlaceholder())}onError(){this.state=LOAD_STATE.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,
vendor: 6,116 bytes, line 1
1content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===LOAD_STATE.LOADING,this)}isError(){return this.state===LOAD_STATE.ERROR}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(setWidthHeight(this.element,e,t),this.isImageContent()&&!this.isError()))){const n=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=t,n?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==LOAD_STATE.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,t=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||t>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=t+"px",e.dataset.largestUsedSize=String(t))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,t;let n=createElement("pswp__error-msg","div");n.innerText=null!==(e=null===(t=this.instance.options)||void 0===t?void 0:t.errorMsg)&&void 0!==e?e:"",n=this.instance.applyFilters("contentErrorElement",n,this),this.element=createElement("pswp__content pswp__error-msg-container","div"),this.element.appendChild(n),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===LOAD_STATE.ERROR)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||isSafari())?(this.isDecoding=!0,this.element.decode().catch((()=>{})).finally((()=>{this.isDecoding=!1,this.appendImage()}))):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!isSafari()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),this.state!==LOAD_STATE.LOADED&&this.state!==LOAD_STATE.ERROR||this.removePlaceholder()))}}function getViewportSize(e,t){if(e.getViewportSizeFn){const n=e.getViewportSizeFn(e,t);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function parsePaddingOption(e,t,n,i,o){let s=0;if(t.paddingFn)s=t.paddingFn(n,i,o)[e];else if(t.padding)s=t.padding[e];else{const n="padding"+e[0].toUpperCase()+e.slice(1);t[n]&&(s=t[n])}return Number(s)||0}function getPanAreaSize(e,t,n,i){return{x:t.x-parsePaddingOption("left",e,t,n,i)-parsePaddingOption("right",e,t,n,i),y:t.y-parsePaddingOption("top",e,t,n,i)-parsePaddingOption("bottom",e,t,n,i)}}const MAX_IMAGE_WIDTH=4e3;class ZoomLevel{constructor(e,t,n,i){this.pswp=i,this.options=e,this.itemData=t,this.index=n,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,t,n){const i={x:e,y:t};this.elementSize=i,this.panAreaSize=n;const o=n.x/i.x,s=n.y/i.y;this.fit=Math.min(1,o<s?o:s),this.fill=Math.min(1,o>s?o:s),this.vFill=Math.min(1,s),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const t=e+"ZoomLevel",n=this.options[t];if(n)return"function"==typeof n?n(this):"fill"===n?this.fill:"fit"===n?this.fit:Number(n)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,3*this.fit),this.elementSize&&e*this.elementSize.x>4e3&&(e=4e3/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}function lazyLoadData(e,t,n){const i=t.createContentFromData(e,n);let o;const{options:s}=t;if(s){let r;o=new ZoomLevel(s,e,-1),r=t.pswp?t.pswp.viewportSize:getViewportSize(s,t);const a=getPanAreaSize(s,r,e,n);o.update(i.width,i.height,a)}return i.lazyLoad(),o&&i.setDisplayedSize(Math.ceil(i.width*o.initial),Math.ceil(i.height*o.initial)),i}function lazyLoadSlide(e,t){const n=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:n}).defaultPrevented)return lazyLoadData(n,t,e)}
vendor: 5,068 bytes, line 1
1class PhotoSwipeBase extends Eventable{getNumItems(){var e;let t=0;const n=null===(e=this.options)||void 0===e?void 0:e.dataSource;n&&"length"in n?t=n.length:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),n.items&&(t=n.items.length));const i=this.dispatch("numItems",{dataSource:n,numItems:t});return this.applyFilters("numItems",i.numItems,n)}createContentFromData(e,t){return new Content(e,this,t)}getItemData(e){var t;const n=null===(t=this.options)||void 0===t?void 0:t.dataSource;let i={};Array.isArray(n)?i=n[e]:n&&"gallery"in n&&(n.items||(n.items=this._getGalleryDOMElements(n.gallery)),i=n.items[e]);let o=i;o instanceof Element&&(o=this._domElementToItemData(o));const s=this.dispatch("itemData",{itemData:o||{},index:e});return this.applyFilters("itemData",s.itemData,e)}_getGalleryDOMElements(e){var t,n;return null!==(t=this.options)&&void 0!==t&&t.children||null!==(n=this.options)&&void 0!==n&&n.childSelector?getElementsFromOption(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const t={element:e},n="A"===e.tagName?e:e.querySelector("a");if(n){t.src=n.dataset.pswpSrc||n.href,n.dataset.pswpSrcset&&(t.srcset=n.dataset.pswpSrcset),t.width=n.dataset.pswpWidth?parseInt(n.dataset.pswpWidth,10):0,t.height=n.dataset.pswpHeight?parseInt(n.dataset.pswpHeight,10):0,t.w=t.width,t.h=t.height,n.dataset.pswpType&&(t.type=n.dataset.pswpType);const o=e.querySelector("img");var i;if(o)t.msrc=o.currentSrc||o.src,t.alt=null!==(i=o.getAttribute("alt"))&&void 0!==i?i:"";(n.dataset.pswpCropped||n.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,n)}lazyLoadData(e,t){return lazyLoadData(e,this,t)}}class PhotoSwipeLightbox extends PhotoSwipeBase{constructor(e){super(),this.options=e||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){getElementsFromOption(this.options.gallery,this.options.gallerySelector).forEach((e=>{e.addEventListener("click",this.onThumbnailsClick,!1)}))}onThumbnailsClick(e){if(specialKeyUsed(e)||window.pswp)return;let t={x:e.clientX,y:e.clientY};t.x||t.y||(t=null);let n=this.getClickedIndex(e);n=this.applyFilters("clickedIndex",n,e,this);const i={gallery:e.currentTarget};n>=0&&(e.preventDefault(),this.loadAndOpen(n,i,t))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);const t=e.target,n=getElementsFromOption(this.options.children,this.options.childSelector,e.currentTarget).findIndex((e=>e===t||e.contains(t)));return-1!==n?n:this.options.children||this.options.childSelector?-1:0}loadAndOpen(e,t,n){return!window.pswp&&(this.options.index=e,this.options.initialPointerPos=n,this.shouldOpen=!0,this.preload(e,t),!0)}preload(e,t){const{options:n}=this;t&&(n.dataSource=t);const i=[],o=typeof n.pswpModule;if(isPswpClass(n.pswpModule))i.push(Promise.resolve(n.pswpModule));else{if("string"===o)throw new Error("pswpModule as string is no longer supported");if("function"!==o)throw new Error("pswpModule is not valid");i.push(n.pswpModule())}"function"==typeof n.openPromise&&i.push(n.openPromise()),!1!==n.preloadFirstSlide&&e>=0&&(this._preloadedContent=lazyLoadSlide(e,this));const s=++this._uid;Promise.all(i).then((e=>{if(this.shouldOpen){const t=e[0];this._openPhotoswipe(t,s)}}))}_openPhotoswipe(e,t){if(t!==this._uid&&this.shouldOpen)return;if(this.shouldOpen=!1,window.pswp)return;const n="object"==typeof e?new e.default(this.options):new e(this.options);this.pswp=n,window.pswp=n,Object.keys(this._listeners).forEach((e=>{var t;null===(t=this._listeners[e])||void 0===t||t.forEach((t=>{n.on(e,t)}))})),Object.keys(this._filters).forEach((e=>{var t;null===(t=this._filters[e])||void 0===t||t.forEach((t=>{n.addFilter(e,t.fn,t.priority)}))})),this._preloadedContent&&(n.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),n.on("destroy",(()=>{this.pswp=void 0,delete window.pswp})),n.init()}destroy(){var e;null===(e=this.pswp)||void 0===e||e.destroy(),this.shouldOpen=!1,this._listeners={},getElementsFromOption(this.options.gallery,this.options.gallerySelector).forEach((e=>{e.removeEventListener("click",this.onThumbnailsClick,!1)}))}}const HAS_DOM_2="object"==typeof HTMLElement;function isDOMElement(e){return HAS_DOM_2?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function addClasses(e,t){t.forEach((function(t){e.classList.add(t)}))}function removeClasses(e,t){t.forEach((function(t){e.classList.remove(t)}))}const RULES=".drift-bounding-box,.drift-zoom-pane{position:absolute;pointer-events:none}@keyframes noop{0%{zoom:1}}@-webkit-keyframes noop{0%{zoom:1}}.drift-zoom-pane.drift-open{display:block}.drift-zoom-pane.drift-closing,.drift-zoom-pane.drift-opening{animation:noop 1ms;-webkit-animation:noop 1ms}.drift-zoom-pane{overflow:hidden;width:100%;height:100%;top:0;left:0}.drift-zoom-pane-loader{display:none}.drift-zoom-pane img{position:absolute;display:block;max-width:none;max-height:none}";
1function injectBaseStylesheet(){if(document.querySelector(".drift-base-styles"))return;const e=document.createElement("style");e.type="text/css",e.classList.add("drift-base-styles"),e.appendChild(document.createTextNode(RULES));const t=document.head;t.insertBefore(e,t.firstChild)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function throwIfMissing(){throw new Error("Missing parameter")}class BoundingBox{constructor(e){this.isShowing=!1;const{namespace:t=null,zoomFactor:n=throwIfMissing(),containerEl:i=throwIfMissing()}=e;this.settings={namespace:t,zoomFactor:n,containerEl:i},this.openClasses=this._buildClasses("open"),this._buildElement()}_buildClasses(e){const t=[`drift-${e}`],n=this.settings.namespace;return n&&t.push(`${n}-${e}`),t}_buildElement(){this.el=document.createElement("div"),addClasses(this.el,this._buildClasses("bounding-box"))}show(e,t){this.isShowing=!0,this.settings.containerEl.appendChild(this.el);const n=this.el.style;n.width=`${Math.round(e/this.settings.zoomFactor)}px`,n.height=`${Math.round(t/this.settings.zoomFactor)}px`,addClasses(this.el,this.openClasses)}hide(){this.isShowing&&this.settings.containerEl.removeChild(this.el),this.isShowing=!1,removeClasses(this.el,this.openClasses)}setPosition(e,t,n){const i=window.pageXOffset,o=window.pageYOffset;let s=n.left+e*n.width-this.el.clientWidth/2+i,r=n.top+t*n.height-this.el.clientHeight/2+o;s<n.left+i?s=n.left+i:s+this.el.clientWidth>n.left+n.width+i&&(s=n.left+n.width-this.el.clientWidth+i),r<n.top+o?r=n.top+o:r+this.el.clientHeight>n.top+n.height+o&&(r=n.top+n.height-this.el.clientHeight+o),this.el.style.left=`${s}px`,this.el.style.top=`${r}px`}}var Trigger=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,e),this._show=this._show.bind(this),this._hide=this._hide.bind(this),this._handleEntry=this._handleEntry.bind(this),this._handleMovement=this._handleMovement.bind(this);var n=t.el,i=void 0===n?throwIfMissing():n,o=t.zoomPane,s=void 0===o?throwIfMissing():o,r=t.sourceAttribute,a=void 0===r?throwIfMissing():r,l=t.handleTouch,c=void 0===l?throwIfMissing():l,d=t.onShow,u=void 0===d?null:d,h=t.onHide,f=void 0===h?null:h,p=t.hoverDelay,m=void 0===p?0:p,g=t.touchDelay,v=void 0===g?0:g,y=t.hoverBoundingBox,b=void 0===y?throwIfMissing():y,w=t.touchBoundingBox,E=void 0===w?throwIfMissing():w,S=t.namespace,x=void 0===S?null:S,A=t.zoomFactor,T=void 0===A?throwIfMissing():A,O=t.boundingBoxContainer,L=void 0===O?throwIfMissing():O,C=t.passive,D=void 0!==C&&C;this.settings={el:i,zoomPane:s,sourceAttribute:a,handleTouch:c,onShow:u,onHide:f,hoverDelay:m,touchDelay:v,hoverBoundingBox:b,touchBoundingBox:E,namespace:x,zoomFactor:T,boundingBoxContainer:L,passive:D},(this.settings.hoverBoundingBox||this.settings.touchBoundingBox)&&(this.boundingBox=new BoundingBox({namespace:this.settings.namespace,zoomFactor:this.settings.zoomFactor,containerEl:this.settings.boundingBoxContainer})),this.enabled=!0,this._bindEvents()}return _createClass(e,[{key:"_preventDefault",value:function(e){e.preventDefault()}},{key:"_preventDefaultAllowTouchScroll",value:function(e){this.settings.touchDelay&&this._isTouchEvent(e)&&!this.isShowing||e.preventDefault()}},{key:"_isTouchEvent",value:function(e){return!!e.touches}},{key:"_bindEvents",value:function(){this.settings.el.addEventListener("mouseenter",this._handleEntry),this.settings.el.addEventListener("mouseleave",this._hide),this.settings.el.addEventListener("mousemove",this._handleMovement);var e={passive:this.settings.passive};this.settings.handleTouch?(this.settings.el.addEventListener("touchstart",this._handleEntry,e),this.settings.el.addEventListener("touchend",this._hide),this.settings.el.addEventListener("touchmove",this._handleMovement,e)):(this.settings.el.addEventListener("touchstart",this._preventDefault,e),this.settings.el.addEventListener("touchend",this._preventDefault),this.settings.el.addEventListener("touchmove",this._preventDefault,e))}},{key:"_unbindEvents",value:function(){this.settings.el.removeEventListener("mouseenter",this._handleEntry),this.settings.el.removeEventListener("mouseleave",this._hide),this.settings.el.removeEventListener("mousemove",this._handleMovement),this.settings.handleTouch?(this.settings.el.removeEventListener("touchstart",this._handleEntry),this.settings.el.removeEventListener("touchend",this._hide),this.settings.el.removeEventListener("touchmove",this._handleMovement)):(this.settings.el.removeEventListener("touchstart",this._preventDefault),this.settings.el.removeEventListener("touchend",this._preventDefault),this.settings.el.removeEventListener("touchmove",this._preventDefault))}},{key:"_handleEntry",value:function(e){this._preventDefaultAllowTouchScroll(e),this._lastMovement=e,"mouseenter"
1==e.type&&this.settings.hoverDelay?this.entryTimeout=setTimeout(this._show,this.settings.hoverDelay):this.settings.touchDelay?this.entryTimeout=setTimeout(this._show,this.settings.touchDelay):this._show()}},{key:"_show",value:function(){if(this.enabled){var e=this.settings.onShow;if(e&&"function"==typeof e&&e(),this.settings.zoomPane.show(this.settings.el.getAttribute(this.settings.sourceAttribute),this.settings.el.clientWidth,this.settings.el.clientHeight),this._lastMovement){var t=this._lastMovement.touches;(t&&this.settings.touchBoundingBox||!t&&this.settings.hoverBoundingBox)&&this.boundingBox.show(this.settings.zoomPane.el.clientWidth,this.settings.zoomPane.el.clientHeight)}this._handleMovement()}}},{key:"_hide",value:function(e){e&&this._preventDefaultAllowTouchScroll(e),this._lastMovement=null,this.entryTimeout&&clearTimeout(this.entryTimeout),this.boundingBox&&this.boundingBox.hide();var t=this.settings.onHide;t&&"function"==typeof t&&t(),this.settings.zoomPane.hide()}},{key:"_handleMovement",value:function(e){if(e)this._preventDefaultAllowTouchScroll(e),this._lastMovement=e;else{if(!this._lastMovement)return;e=this._lastMovement}var t,n;if(e.touches){var i=e.touches[0];t=i.clientX,n=i.clientY}else t=e.clientX,n=e.clientY;var o=this.settings.el.getBoundingClientRect(),s=t-o.left,r=n-o.top,a=s/this.settings.el.clientWidth,l=r/this.settings.el.clientHeight;this.boundingBox&&this.boundingBox.setPosition(a,l,o),this.settings.zoomPane.setPosition(a,l,o)}},{key:"isShowing",get:function(){return this.settings.zoomPane.isShowing}}]),e}();class ZoomPane{constructor(e={}){if(this.HAS_ANIMATION=!1,"undefined"!=typeof document){const e=document.createElement("div").style;this.HAS_ANIMATION="animation"in e||"webkitAnimation"in e}this._completeShow=this._completeShow.bind(this),this._completeHide=this._completeHide.bind(this),this._handleLoad=this._handleLoad.bind(this),this.isShowing=!1;const{container:t=null,zoomFactor:n=throwIfMissing(),inline:i=throwIfMissing(),namespace:o=null,showWhitespaceAtEdges:s=throwIfMissing(),containInline:r=throwIfMissing(),inlineOffsetX:a=0,inlineOffsetY:l=0,inlineContainer:c=document.body}=e;this.settings={container:t,zoomFactor:n,inline:i,namespace:o,showWhitespaceAtEdges:s,containInl
1ine:r,inlineOffsetX:a,inlineOffsetY:l,inlineContainer:c},this.openClasses=this._buildClasses("open"),this.openingClasses=this._buildClasses("opening"),this.closingClasses=this._buildClasses("closing"),this.inlineClasses=this._buildClasses("inline"),this.loadingClasses=this._buildClasses("loading"),this._buildElement()}_buildClasses(e){const t=[`drift-${e}`],n=this.settings.namespace;return n&&t.push(`${n}-${e}`),t}_buildElement(){this.el=document.createElement("div"),addClasses(this.el,this._buildClasses("zoom-pane"));const e=document.createElement("div");addClasses(e,this._buildClasses("zoom-pane-loader")),this.el.appendChild(e),this.imgEl=document.createElement("img"),this.el.appendChild(this.imgEl)}_setImageURL(e){this.imgEl.setAttribute("src",e)}_setImageSize(e,t){this.imgEl.style.width=e*this.settings.zoomFactor+"px",this.imgEl.style.height=t*this.settings.zoomFactor+"px"}setPosition(e,t,n){const i=this.imgEl.offsetWidth,o=this.imgEl.offsetHeight,s=this.el.offsetWidth,r=this.el.offsetHeight;let a=s/2-i*e,l=r/2-o*t;const c=s-i,d=r-o,u=c>0,h=d>0,f=u?c/2:0,p=h?d/2:0,m=u?c/2:c,g=h?d/2:d;if(this.el.parentElement===this.settings.inlineContainer){const i=window.pageXOffset,o=window.pageYOffset;let a=n.left+e*n.width-s/2+this.settings.inlineOffsetX+i,l=n.top+t*n.height-r/2+this.settings.inlineOffsetY+o;this.settings.containInline&&(a<n.left+i?a=n.left+i:a+s>n.left+n.width+i&&(a=n.left+n.width-s+i),l<n.top+o?l=n.top+o:l+r>n.top+n.height+o&&(l=n.top+n.height-r+o)),this.el.style.left=`${a}px`,this.el.style.top=`${l}px`}this.settings.showWhitespaceAtEdges||(a>f?a=f:a<m&&(a=m),l>p?l=p:l<g&&(l=g)),this.imgEl.style.transform=`translate(${a}px, ${l}px)`,this.imgEl.style.webkitTransform=`translate(${a}px, ${l}px)`}get _isInline(){const e=this.settings.inline;return!0===e||"number"==typeof e&&window.innerWidth<=e}_removeListenersAndResetClasses(){this.el.removeEventListener("animationend",this._completeShow),this.el.removeEventListener("animationend",this._completeHide),this.el.removeEventListener("webkitAnimationEnd",this._completeShow),this.el.removeEventListener("webkitAnimationEnd",this._completeHide),removeClasses(this.el,this.openClasses),removeClasses(this.el,this.closingClasses)}show(e,t,n){this._removeListenersAndResetClasses(),this.isShowing=!0,addClasses(this.el,this.openClasses),this.imgEl.getAttribute("src")!=e&&(addClasses(this.el,this.loadingClasses),this.imgEl.addEventListener("load",this._handleLoad),this._setImageURL(e)),this._setImageSize(t,n),this._isInline?this._showInline():this._showInContainer(),this.HAS_ANIMATION&&(this.el.addEventListener("animationend",this._completeShow),this.el.addEventListener("webkitAnimationEnd",this._completeShow),addClasses(this.el,this.openingClasses))}_showInline(){this.settings.inlineContainer.appendChild(this.el),addClasses(this.el,this.inlineClasses)}_showInContainer(){this.settings.container.appendChild(this.el)}hide(){this._removeListenersAndResetClasses(),this.isShowing=!1,this.HAS_ANIMATION?(this.el.addEventListener("animationend",this._completeHide),this.el.addEventListener("webkitAnimationEnd",this._completeHide),addClasses(this.el,this.closingClasses)):(removeClasses(this.el,this.openClasses),removeClasses(this.el,this.inlineClasses))}_completeShow(){this.el.removeEventListener("animationend",this._completeShow),this.el.removeEventListener("webkitAnimationEnd",this._completeShow),removeClasses(this.el,this.openingClasses)}_completeHide(){this.el.removeEventListener("animationend",this._completeHide),this.el.removeEventListener("webkitAnimationEnd",this._completeHide),removeClasses(this.el,this.openClasses),removeClasses(this.el,this.closingClasses),removeClasses(this.el,this.inlineClasses),this.el.style.left="",this.el.style.top="",this.el.parentElement===this.settings.container?this.settings.container.removeChild(this.el):this.el.parentElement===this.settings.inlineContainer&&this.settings.inlineContainer.removeChild(this.el)}_handleLoad(){this.imgEl.removeEventListener("load",this._handleLoad),removeClasses(this.el,this.loadingClasses)}}class Drift{constructor(e,t={}){if(this.VERSION="1.5.1",this.triggerEl=e,this.destroy=this.destroy.bind(this),!isDOMElement(this.triggerEl))throw new TypeError("`new Drift` requires a DOM element as its first argument.");const n=t.namespace||null,i=t.showWhitespaceAtEdges||!1,o=t.containInl
1ine||!1,s=t.inlineOffsetX||0,r=t.inlineOffsetY||0,a=t.inlineContainer||document.body,l=t.sourceAttribute||"data-zoom",c=t.zoomFactor||3,d=void 0===t.paneContainer?document.body:t.paneContainer,u=t.inlinePane||375,h=!("handleTouch"in t)||!!t.handleTouch,f=t.onShow||null,p=t.onHide||null,m=!("injectBaseStyles"in t)||!!t.injectBaseStyles,g=t.hoverDelay||0,v=t.touchDelay||0,y=t.hoverBoundingBox||!1,b=t.touchBoundingBox||!1,w=t.boundingBoxContainer||document.body,E=t.passive||!1;if(!0!==u&&!isDOMElement(d))throw new TypeError("`paneContainer` must be a DOM element when `inlinePane !== true`");if(!isDOMElement(a))throw new TypeError("`inlineContainer` must be a DOM element");this.settings={namespace:n,showWhitespaceAtEdges:i,containInline:o,inlineOffsetX:s,inlineOffsetY:r,inlineContainer:a,sourceAttribute:l,zoomFactor:c,paneContainer:d,inlinePane:u,handleTouch:h,onShow:f,onHide:p,injectBaseStyles:m,hoverDelay:g,touchDelay:v,hoverBoundingBox:y,touchBoundingBox:b,boundingBoxContainer:w,passive:E},this.settings.injectBaseStyles&&injectBaseStylesheet(),this._buildZoomPane(),this._buildTrigger()}get isShowing(){return this.zoomPane.isShowing}get zoomFactor(){return this.settings.zoomFactor}set zoomFactor(e){this.settings.zoomFactor=e,this.zoomPane.settings.zoomFactor=e,this.trigger.settings.zoomFactor=e,this.boundingBox.settings.zoomFactor=e}_buildZoomPane(){this.zoomPane=new ZoomPane({container:this.settings.paneContainer,zoomFactor:this.settings.zoomFactor,showWhitespaceAtEdges:this.settings.showWhitespaceAtEdges,containInline:this.settings.containInline,inline:this.settings.inlinePane,namespace:this.settings.namespace,inlineOffsetX:this.settings.inlineOffsetX,inlineOffsetY:this.settings.inlineOffsetY,inlineContainer:this.settings.inlineContainer})}_buildTrigger(){this.trigger=new Trigger({el:this.triggerEl,zoomPane:this.zoomPane,handleTouch:this.settings.handleTouch,onShow:this.settings.onShow,onHide:this.settings.onHide,sourceAttribute:this.settings.sourceAttribute,hoverDelay:this.settings.hoverDelay,touchDelay:this.settings.touchDelay,hoverBoundingBox:this.settings.hoverBoundingBox,touchBoundingBox:this.settings.touchBoundingBox,namespace:this.settings.namespace,zoomFactor:this.settings.zoomFactor,boundingBoxContainer:this.settings.boundingBoxContainer,passive:this.settings.passive})}setZoomImageURL(e){this.zoomPane._setImageURL(e)}disable(){this.trigger.enabled=!1}enable(){this.trigger.enabled=!0}destroy(){this.trigger._hide(),this.trigger._unbindEvents()}}Object.defineProperty(Drift.prototype,"isShowing",{get:function(){return this.isShowing}}),Object.defineProperty(Drift.prototype,"zoomFactor",{get:function(){return this.zoomFactor},set:function(e){this.zoomFactor=e}}),Drift.prototype.setZoomImageURL=Drift.prototype.setZoomImageURL,Drift.prototype.disable=Drift.prototype.disable,Drift.prototype.enable=Drift.prototype.enable,Drift.prototype.destroy=Drift.prototype.destroy;var min=Math.min,max=Math.max,round=Math.round,createCoords=e=>({x:e,y:e}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp4(e,t,n){return max(e,min(t,n))}function evaluate(e,t){return"function"==typeof e?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}function getSideAxis(e){return["top","bottom"].includes(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){void 0===n&&(n=!1);const i=getAlignment(e),o=getAlignmentAxis(e),s=getAxisLength(o);let r="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=getOppositePlacement(r)),[r,getOppositePlacement(r)]}function getExpandedPlacements(e){const t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,(e=>oppositeAlignmentMap[e]))}function getSideList(e,t,n){const i=["left","right"],o=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:i:t?i:o;case"left":case"right":return t?s:r;default:return[]}}function getOppositeAxisPlacements(e,t,n,i){const o=getAlignment(e);let s=getSideList(getSide(e),"start"===n,i);return o&&(s=s.map((e=>e+"-"+o)),t&&(s=s.concat(s.map(getOppositeAlignmentPlacement)))),s}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(e=>oppositeSideMap[e]))}
vendor: 1,266 bytes, line 1
1function expandPaddingObject(e){return{top:0,right:0,bottom:0,left:0,...e}}function getPaddingObject(e){return"number"!=typeof e?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function computeCoordsFromPlacement(e,t,n){let{reference:i,floating:o}=e;const s=getSideAxis(t),r=getAlignmentAxis(t),a=getAxisLength(r),l=getSide(t),c="y"===s,d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,h=i[a]/2-o[a]/2;let f;switch(l){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:u};break;case"left":f={x:i.x-o.width,y:u};break;default:f={x:i.x,y:i.y}}switch(getAlignment(t)){case"start":f[r]-=h*(n&&c?-1:1);break;case"end":f[r]+=h*(n&&c?-1:1)}return f}var computePosition=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,a=s.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=computeCoordsFromPlacement(c,i,l),h=i,f={},p=0;for(let n=0;n<a.length;n++){const{name:s,fn:m}=a[n],{x:g,y:v,data:y,reset:b}=await m({x:d,y:u,initialPlacement:i,placement:h,strategy:o,middlewareData:f,re
vendor: 4,644 bytes, line 1
1cts:c,platform:r,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=v?v:u,f={...f,[s]:{...f[s],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await r.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:d,y:u}=computeCoordsFromPlacement(c,h,l))),n=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:f}};async function detectOverflow(e,t){var n;void 0===t&&(t={});const{x:i,y:o,platform:s,rects:r,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:f=0}=evaluate(t,e),p=getPaddingObject(f),m=a[h?"floating"===u?"reference":"floating":u],g=rectToClientRect(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),v="floating"===u?{...r.floating,x:i,y:o}:r.reference,y=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(y))&&await(null==s.getScale?void 0:s.getScale(y))||{x:1,y:1},w=rectToClientRect(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}var arrow=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:s,platform:r,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=evaluate(e,t)||{};if(null==c)return{};const u=getPaddingObject(d),h={x:n,y:i},f=getAlignmentAxis(o),p=getAxisLength(f),m=await r.getDimensions(c),g="y"===f,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=s.reference[p]+s.reference[f]-h[f]-s.floating[p],E=h[f]-s.reference[f],S=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c));let x=S?S[b]:0;x&&await(null==r.isElement?void 0:r.isElement(S))||(x=a.floating[b]||s.floating[p]);const A=w/2-E/2,T=x/2-m[p]/2-1,O=min(u[v],T),L=min(u[y],T),C=O,D=x-m[p]-L,_=x/2-m[p]/2+A,I=clamp4(C,_,D),N=!l.arrow&&null!=getAlignment(o)&&_!=I&&s.reference[p]/2-(_<C?O:L)-m[p]/2<0,P=N?_<C?C-_:D-_:0;return{[f]:h[f]-P,data:{[f]:I,centerOffset:_-I+P},reset:N}}}),flip=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:i,middlewareData:o,rects:s,initialPlacement:r,platform:a,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...m}=evaluate(e,t),g=getSide(i),v=getSide(r)===r,y=await(null==a.isRTL?void 0:a.isRTL(l.floating)),b=u||(v||!p?[getOppositePlacement(r)]:getExpandedPlacements(r));u||"none"===f||b.push(...getOppositeAxisPlacements(r,p,f,y));const w=[r,...b],E=await detectOverflow(t,m),S=[];let x=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&S.push(E[g]),d){const e=getAlignmentSides(i,s,y);S.push(E[e[0]],E[e[1]])}if(x=[...x,{placement:i,overflows:S}],!S.every((e=>e<=0))){var A,T;const e=((null==(A=o.flip)?void 0:A.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n=null==(T=x.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(h){case"bestFit":{var O;const e=null==(O=x.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=r}if(i!==n)return{reset:{placement:n}}}return{}}}};async function convertValueToCoords(e,t){const{placement:n,platform:i,elements:o}=e,s=await(null==i.isRTL?void 0:i.isRTL(o.floating)),r=getSide(n),a=getAlignment(n),l="y"===getSideAxis(n),c=["left","top"].includes(r)?-1:1,d=s&&l?-1:1,u=evaluate(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),l?{x:f*d,y:h*c}:{x:h*c,y:f*d}}var offset=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:i}=t,o=await convertValueToCoords(t,e);return{x:n+o.x,y:i+o.y,data:o}}}},shift=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:s=!0,crossAxis:r=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=evaluate(e,t),c={x:n,y:i},d=await detectOverflow(t,l),u=getSideAxis(getSide(o)),h=getOppositeAxis(u);let f=c[h],p=c[u];if(s){const e="y"===h?"bottom":"right";
vendor: 5,366 bytes, line 1
1f=clamp4(f+d["y"===h?"top":"left"],f,f-d[e])}if(r){const e="y"===u?"bottom":"right";p=clamp4(p+d["y"===u?"top":"left"],p,p-d[e])}const m=a.fn({...t,[h]:f,[u]:p});return{...m,data:{x:m.x-n,y:m.y-i}}}}};function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return e instanceof Node||e instanceof getWindow(e).Node}function isElement(e){return e instanceof Element||e instanceof getWindow(e).Element}function isHTMLElement(e){return e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isContainingBlock(e){const t=isWebKit(),n=getComputedStyle(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function getContainingBlock(e){let t=getParentNode(e);for(;isHTMLElement(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;t=getParentNode(t)}return null}function isWebKit(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function getParentNode(e){if("html"===getNodeName(e))return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=getNearestOverflowAncestor(e),s=o===(null==(i=e.ownerDocument)?void 0:i.body),r=getWindow(o);return s?t.concat(r,r.visualViewport||[],isOverflowElement(o)?o:[],r.frameElement&&n?getOverflowAncestors(r.frameElement):[]):t.concat(o,getOverflowAncestors(o))}function getCssDimensions(e){const t=getComputedStyle(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=isHTMLElement(e),s=o?e.offsetWidth:n,r=o?e.offsetHeight:i,a=round(n)!==s||round(i)!==r;return a&&(n=s,i=r),{width:n,height:i,$:a}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!isHTMLElement(t))return createCoords(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:s}=getCssDimensions(t);let r=(s?round(n.width):n.width)/i,a=(s?round(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}var noOffsets=createCoords(0);function getVisualOffsets(e){const t=getWindow(e);return isWebKit()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:noOffsets}function shouldAddVisualOffsets(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==getWindow(e))&&t}function getBoundingClientRect(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),s=unwrapElement(e);let r=createCoords(1);t&&(i?isElement(i)&&(r=getScale(i)):r=getScale(e));const a=shouldAddVisualOffsets(s,n,i)?getVisualOffsets(s):createCoords(0);let l=(o.left+a.x)/r.x,c=(o.top+a.y)/r.y,d=o.width/r.x,u=o.height/r.y;if(s){const e=getWindow(s),t=i&&isElement(i)?getWindow(i):i;let n=e.frameElement;for(;n&&i&&t!==e;){const e=getScale(n),t=n.getBoundingClientRect(),i=getComputedStyle(n),o=t.left+(n.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(n.clientTop+parseFloat(i.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=o,c+=s,n=getWindow(n).frameElement}}return rectToClientRect({width:d,height:u,x:l,y:c})}function convertOffsetParentRelativeRectToViewportRelativeRect(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=isHTMLElement(n),s=getDocumentElement(n);if(n===s)return t;let r={scrollLeft:0,scrollTop:0},a=createCoords(1);const l=createCoords(0);if((o||!o&&"fixed"!==i)&&(("body"!==getNodeName(n)||isOverflowElement(s))&&(r=getNodeScroll(n)),isHTMLElement(n))){const e=getBoundingClientRect(n);a=getScale(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-r.scrollLeft*a.x+l.x,y:t.y*a.y-r.scrollTop*a.y+l.y}}function getClientRects(e){return Array.from(e.getClientRects())}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getNodeScroll(e).scrollLeft}function getDocumentRect(e){const t=getDocumentElement(e),n=getNo
vendor: 4,128 bytes, line 1
1deScroll(e),i=e.ownerDocument.body,o=max(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=max(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+getWindowScrollBarX(e);const a=-n.scrollTop;return"rtl"===getComputedStyle(i).direction&&(r+=max(t.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:a}}function getViewportRect(e,t){const n=getWindow(e),i=getDocumentElement(e),o=n.visualViewport;let s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;const e=isWebKit();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a,y:l}}function getInnerBoundingClientRect(e,t){const n=getBoundingClientRect(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,s=isHTMLElement(e)?getScale(e):createCoords(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:o*s.x,y:i*s.y}}function getClientRectFromClippingAncestor(e,t,n){let i;if("viewport"===t)i=getViewportRect(e,n);else if("document"===t)i=getDocumentRect(getDocumentElement(e));else if(isElement(t))i=getInnerBoundingClientRect(t,n);else{const n=getVisualOffsets(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return rectToClientRect(i)}function hasFixedPositionAncestor(e,t){const n=getParentNode(e);return!(n===t||!isElement(n)||isLastTraversableNode(n))&&("fixed"===getComputedStyle(n).position||hasFixedPositionAncestor(n,t))}function getClippingElementAncestors(e,t){const n=t.get(e);if(n)return n;let i=getOverflowAncestors(e,[],!1).filter((e=>isElement(e)&&"body"!==getNodeName(e))),o=null;const s="fixed"===getComputedStyle(e).position;let r=s?getParentNode(e):e;for(;isElement(r)&&!isLastTraversableNode(r);){const t=getComputedStyle(r),n=isContainingBlock(r);n||"fixed"!==t.position||(o=null);(s?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||isOverflowElement(r)&&!n&&hasFixedPositionAncestor(e,r))?i=i.filter((e=>e!==r)):o=t,r=getParentNode(r)}return t.set(e,i),i}function getClippingRect(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const s=[..."clippingAncestors"===n?getClippingElementAncestors(t,this._c):[].concat(n),i],r=s[0],a=s.reduce(((e,n)=>{const i=getClientRectFromClippingAncestor(t,n,o);return e.top=max(i.top,e.top),e.right=min(i.right,e.right),e.bottom=min(i.bottom,e.bottom),e.left=max(i.left,e.left),e}),getClientRectFromClippingAncestor(t,r,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function getDimensions(e){return getCssDimensions(e)}function getRectRelativeToOffsetParent(e,t,n){const i=isHTMLElement(t),o=getDocumentElement(t),s="fixed"===n,r=getBoundingClientRect(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=createCoords(0);if(i||!i&&!s)if(("body"!==getNodeName(t)||isOverflowElement(o))&&(a=getNodeScroll(t)),i){const e=getBoundingClientRect(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=getWindowScrollBarX(o));return{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function getTrueOffsetParent(e,t){return isHTMLElement(e)&&"fixed"!==getComputedStyle(e).position?t?t(e):e.offsetParent:null}function getOffsetParent(e,t){const n=getWindow(e);if(!isHTMLElement(e))return n;let i=getTrueOffsetParent(e,t);for(;i&&isTableElement(i)&&"static"===getComputedStyle(i).position;)i=getTrueOffsetParent(i,t);return i&&("html"===getNodeName(i)||"body"===getNodeName(i)&&"static"===getComputedStyle(i).position&&!isContainingBlock(i))?n:i||getContainingBlock(e)||n}var getElementRects=async function(e){let{reference:t,floating:n,strategy:i}=e;const o=this.getOffsetParent||getOffsetParent,s=this.getDimensions;return{reference:getRectRelativeToOffsetParent(t,await o(n),i),floating:{x:0,y:0,...await s(n)}}};function isRTL(e){return"rtl"===getComputedStyle(e).direction}var platform={convertOffsetParentRelativeRectToViewportRelativeRect:convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement,getClippingRect:getClippingRect,getOffsetParent:getOffsetParent,getElementRects:getElementRects,getClientRects:getClientRects,getDimensions:getDimensions,getScale:getScale,isElement:isElement,isRTL:isRTL}
1,computePosition2=(e,t,n)=>{const i=new Map,o={platform:platform,...n},s={...o.platform,_c:i};return computePosition(e,t,{...o,platform:s})};export{EmblaCarousel as Carousel,ClassNames,AutoHeight,navUICenter,Autoplay,navHandlers,dotHandlers,createFocusTrap as FocusTrap,Delegate,ScrollOffset,animate,inView$1 as inView,scroll,stagger,timeline,PhotoSwipeLightbox,Drift as Zoom,arrow,computePosition2 as computePosition,flip,offset,shift};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.