UNPKG

@codeperate/cdp-ui-library

Version:

Codeperate UI Library

1 lines 85.7 kB
import{r as i,h as e,H as t,a as r}from"./p-21e532ba.js";import{d as n}from"./p-c571c098.js";function o(i){return null!==i&&"object"==typeof i&&"constructor"in i&&i.constructor===Object}function a(i,e){void 0===i&&(i={}),void 0===e&&(e={}),Object.keys(e).forEach((function(t){void 0===i[t]?i[t]=e[t]:o(e[t])&&o(i[t])&&Object.keys(e[t]).length>0&&a(i[t],e[t])}))}var s={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function l(){var i="undefined"!=typeof document?document:{};return a(i,s),i}var u={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(i){return"undefined"==typeof setTimeout?(i(),null):setTimeout(i,0)},cancelAnimationFrame:function(i){"undefined"!=typeof setTimeout&&clearTimeout(i)}};function c(){var i="undefined"!=typeof window?window:{};return a(i,u),i}function p(i){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)})(i)}function f(i,e){return(f=Object.setPrototypeOf||function(i,e){return i.__proto__=e,i})(i,e)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(i){return!1}}function v(i,e,t){return(v=d()?Reflect.construct:function(i,e,t){var r=[null];r.push.apply(r,e);var n=new(Function.bind.apply(i,r));return t&&f(n,t.prototype),n}).apply(null,arguments)}function h(i){var e="function"==typeof Map?new Map:void 0;return(h=function(i){if(null===i||-1===Function.toString.call(i).indexOf("[native code]"))return i;if("function"!=typeof i)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(i))return e.get(i);e.set(i,t)}function t(){return v(i,arguments,p(this).constructor)}return t.prototype=Object.create(i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),f(t,i)})(i)}var w=function(i){var e,t;function r(e){var t,r,n;return r=function(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}(t=i.call.apply(i,[this].concat(e))||this),n=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return n},set:function(i){n.__proto__=i}}),t}return t=i,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t,r}(h(Array));function g(i){void 0===i&&(i=[]);var e=[];return i.forEach((function(i){Array.isArray(i)?e.push.apply(e,g(i)):e.push(i)})),e}function A(i,e){return Array.prototype.filter.call(i,e)}function b(i,e){var t=c(),r=l(),n=[];if(!e&&i instanceof w)return i;if(!i)return new w(n);if("string"==typeof i){var o=i.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var a="div";0===o.indexOf("<li")&&(a="ul"),0===o.indexOf("<tr")&&(a="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(a="tr"),0===o.indexOf("<tbody")&&(a="table"),0===o.indexOf("<option")&&(a="select");var s=r.createElement(a);s.innerHTML=o;for(var u=0;u<s.childNodes.length;u+=1)n.push(s.childNodes[u])}else n=function(i,e){if("string"!=typeof i)return[i];for(var t=[],r=e.querySelectorAll(i),n=0;n<r.length;n+=1)t.push(r[n]);return t}(i.trim(),e||r)}else if(i.nodeType||i===t||i===r)n.push(i);else if(Array.isArray(i)){if(i instanceof w)return i;n=i}return new w(function(i){for(var e=[],t=0;t<i.length;t+=1)-1===e.indexOf(i[t])&&e.push(i[t]);return e}(n))}b.fn=w.prototype;var m,x,y,M={addClass:function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];var r=g(e.map((function(i){return i.split(" ")})));return this.forEach((function(i){var e;(e=i.classList).add.apply(e,r)})),this},removeClass:function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];var r=g(e.map((function(i){return i.split(" ")})));return this.forEach((function(i){var e;(e=i.classList).remove.apply(e,r)})),this},hasClass:function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];var r=g(e.map((function(i){return i.split(" ")})));return A(this,(function(i){return r.filter((function(e){return i.classList.contains(e)})).length>0})).length>0},toggleClass:function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];var r=g(e.map((function(i){return i.split(" ")})));this.forEach((function(i){r.forEach((function(e){i.classList.toggle(e)}))}))},attr:function(i,e){if(1===arguments.length&&"string"==typeof i)return this[0]?this[0].getAttribute(i):void 0;for(var t=0;t<this.length;t+=1)if(2===arguments.length)this[t].setAttribute(i,e);else for(var r in i)this[t][r]=i[r],this[t].setAttribute(r,i[r]);return this},removeAttr:function(i){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(i);return this},transform:function(i){for(var e=0;e<this.length;e+=1)this[e].style.transform=i;return this},transition:function(i){for(var e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof i?i+"ms":i;return this},on:function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];var r=e[0],n=e[1],o=e[2],a=e[3];function s(i){var e=i.target;if(e){var t=i.target.dom7EventData||[];if(t.indexOf(i)<0&&t.unshift(i),b(e).is(n))o.apply(e,t);else for(var r=b(e).parents(),a=0;a<r.length;a+=1)b(r[a]).is(n)&&o.apply(r[a],t)}}function l(i){var e=i&&i.target&&i.target.dom7EventData||[];e.indexOf(i)<0&&e.unshift(i),o.apply(this,e)}"function"==typeof e[1]&&(r=e[0],o=e[1],a=e[2],n=void 0),a||(a=!1);for(var u,c=r.split(" "),p=0;p<this.length;p+=1){var f=this[p];if(n)for(u=0;u<c.length;u+=1){var d=c[u];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[d]||(f.dom7LiveListeners[d]=[]),f.dom7LiveListeners[d].push({listener:o,proxyListener:s}),f.addEventListener(d,s,a)}else for(u=0;u<c.length;u+=1){var v=c[u];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[v]||(f.dom7Listeners[v]=[]),f.dom7Listeners[v].push({listener:o,proxyListener:l}),f.addEventListener(v,l,a)}}return this},off:function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];var r=e[0],n=e[1],o=e[2],a=e[3];"function"==typeof e[1]&&(r=e[0],o=e[1],a=e[2],n=void 0),a||(a=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var u=s[l],c=0;c<this.length;c+=1){var p=this[c],f=void 0;if(!n&&p.dom7Listeners?f=p.dom7Listeners[u]:n&&p.dom7LiveListeners&&(f=p.dom7LiveListeners[u]),f&&f.length)for(var d=f.length-1;d>=0;d-=1){var v=f[d];o&&v.listener===o||o&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===o?(p.removeEventListener(u,v.proxyListener,a),f.splice(d,1)):o||(p.removeEventListener(u,v.proxyListener,a),f.splice(d,1))}}return this},trigger:function(){for(var i=c(),e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=t[0].split(" "),o=t[1],a=0;a<n.length;a+=1)for(var s=n[a],l=0;l<this.length;l+=1){var u=this[l];if(i.CustomEvent){var p=new i.CustomEvent(s,{detail:o,bubbles:!0,cancelable:!0});u.dom7EventData=t.filter((function(i,e){return e>0})),u.dispatchEvent(p),u.dom7EventData=[],delete u.dom7EventData}}return this},transitionEnd:function(i){var e=this;return i&&e.on("transitionend",(function t(r){r.target===this&&(i.call(this,r),e.off("transitionend",t))})),this},outerWidth:function(i){if(this.length>0){if(i){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(i){if(this.length>0){if(i){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var i=c();return this[0]?i.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var i=c(),e=l(),t=this[0],r=t.getBoundingClientRect(),n=e.body;return{top:r.top+(t===i?i.scrollY:t.scrollTop)-(t.clientTop||n.clientTop||0),left:r.left+(t===i?i.scrollX:t.scrollLeft)-(t.clientLeft||n.clientLeft||0)}}return null},css:function(i,e){var t,r=c();if(1===arguments.length){if("string"!=typeof i){for(t=0;t<this.length;t+=1)for(var n in i)this[t].style[n]=i[n];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(i)}if(2===arguments.length&&"string"==typeof i){for(t=0;t<this.length;t+=1)this[t].style[i]=e;return this}return this},each:function(i){return i?(this.forEach((function(e,t){i.apply(e,[e,t])})),this):this},html:function(i){if(void 0===i)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=i;return this},text:function(i){if(void 0===i)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=i;return this},is:function(i){var e,t,r=c(),n=l(),o=this[0];if(!o||void 0===i)return!1;if("string"==typeof i){if(o.matches)return o.matches(i);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(i);if(o.msMatchesSelector)return o.msMatchesSelector(i);for(e=b(i),t=0;t<e.length;t+=1)if(e[t]===o)return!0;return!1}if(i===n)return o===n;if(i===r)return o===r;if(i.nodeType||i instanceof w){for(e=i.nodeType?[i]:i,t=0;t<e.length;t+=1)if(e[t]===o)return!0;return!1}return!1},index:function(){var i,e=this[0];if(e){for(i=0;null!==(e=e.previousSibling);)1===e.nodeType&&(i+=1);return i}},eq:function(i){if(void 0===i)return this;var e=this.length;if(i>e-1)return b([]);if(i<0){var t=e+i;return b(t<0?[]:[this[t]])}return b([this[i]])},append:function(){for(var i,e=l(),t=0;t<arguments.length;t+=1){i=t<0||arguments.length<=t?void 0:arguments[t];for(var r=0;r<this.length;r+=1)if("string"==typeof i){var n=e.createElement("div");for(n.innerHTML=i;n.firstChild;)this[r].appendChild(n.firstChild)}else if(i instanceof w)for(var o=0;o<i.length;o+=1)this[r].appendChild(i[o]);else this[r].appendChild(i)}return this},prepend:function(i){var e,t,r=l();for(e=0;e<this.length;e+=1)if("string"==typeof i){var n=r.createElement("div");for(n.innerHTML=i,t=n.childNodes.length-1;t>=0;t-=1)this[e].insertBefore(n.childNodes[t],this[e].childNodes[0])}else if(i instanceof w)for(t=0;t<i.length;t+=1)this[e].insertBefore(i[t],this[e].childNodes[0]);else this[e].insertBefore(i,this[e].childNodes[0]);return this},next:function(i){return this.length>0?i?this[0].nextElementSibling&&b(this[0].nextElementSibling).is(i)?b([this[0].nextElementSibling]):b([]):b(this[0].nextElementSibling?[this[0].nextElementSibling]:[]):b([])},nextAll:function(i){var e=[],t=this[0];if(!t)return b([]);for(;t.nextElementSibling;){var r=t.nextElementSibling;i?b(r).is(i)&&e.push(r):e.push(r),t=r}return b(e)},prev:function(i){if(this.length>0){var e=this[0];return i?e.previousElementSibling&&b(e.previousElementSibling).is(i)?b([e.previousElementSibling]):b([]):b(e.previousElementSibling?[e.previousElementSibling]:[])}return b([])},prevAll:function(i){var e=[],t=this[0];if(!t)return b([]);for(;t.previousElementSibling;){var r=t.previousElementSibling;i?b(r).is(i)&&e.push(r):e.push(r),t=r}return b(e)},parent:function(i){for(var e=[],t=0;t<this.length;t+=1)null!==this[t].parentNode&&(i?b(this[t].parentNode).is(i)&&e.push(this[t].parentNode):e.push(this[t].parentNode));return b(e)},parents:function(i){for(var e=[],t=0;t<this.length;t+=1)for(var r=this[t].parentNode;r;)i?b(r).is(i)&&e.push(r):e.push(r),r=r.parentNode;return b(e)},closest:function(i){var e=this;return void 0===i?b([]):(e.is(i)||(e=e.parents(i).eq(0)),e)},find:function(i){for(var e=[],t=0;t<this.length;t+=1)for(var r=this[t].querySelectorAll(i),n=0;n<r.length;n+=1)e.push(r[n]);return b(e)},children:function(i){for(var e=[],t=0;t<this.length;t+=1)for(var r=this[t].children,n=0;n<r.length;n+=1)i&&!b(r[n]).is(i)||e.push(r[n]);return b(e)},filter:function(i){return b(A(this,i))},remove:function(){for(var i=0;i<this.length;i+=1)this[i].parentNode&&this[i].parentNode.removeChild(this[i]);return this}};function k(i,e){return void 0===e&&(e=0),setTimeout(i,e)}function E(){return Date.now()}function S(i){return"object"==typeof i&&null!==i&&i.constructor&&"Object"===Object.prototype.toString.call(i).slice(8,-1)}function z(i){return"undefined"!=typeof window&&void 0!==window.HTMLElement?i instanceof HTMLElement:i&&(1===i.nodeType||11===i.nodeType)}function B(){for(var i=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"],t=1;t<arguments.length;t+=1){var r=t<0||arguments.length<=t?void 0:arguments[t];if(null!=r&&!z(r))for(var n=Object.keys(Object(r)).filter((function(i){return e.indexOf(i)<0})),o=0,a=n.length;o<a;o+=1){var s=n[o],l=Object.getOwnPropertyDescriptor(r,s);void 0!==l&&l.enumerable&&(S(i[s])&&S(r[s])?r[s].__swiper__?i[s]=r[s]:B(i[s],r[s]):!S(i[s])&&S(r[s])?(i[s]={},r[s].__swiper__?i[s]=r[s]:B(i[s],r[s])):i[s]=r[s])}}return i}function C(){return m||(m=function(){var i=c(),e=l();return{touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch),pointerEvents:!!i.PointerEvent&&"maxTouchPoints"in i.navigator&&i.navigator.maxTouchPoints>=0,observer:"MutationObserver"in i||"WebkitMutationObserver"in i,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});i.addEventListener("testPassiveListener",null,t)}catch(i){}return e}(),gestures:"ongesturestart"in i}}()),m}function O(i){return void 0===i&&(i={}),x||(x=function(i){var e=(void 0===i?{}:i).userAgent,t=C(),r=c(),n=r.navigator.platform,o=e||r.navigator.userAgent,a={ios:!1,android:!1},s=r.screen.width,l=r.screen.height,u=o.match(/(Android);?[\s\/]+([\d.]+)?/),p=o.match(/(iPad).*OS\s([\d_]+)/),f=o.match(/(iPod)(.*OS\s([\d_]+))?/),d=!p&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v="Win32"===n,h="MacIntel"===n;return!p&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(s+"x"+l)>=0&&((p=o.match(/(Version)\/([\d.]+)/))||(p=[0,1,"13_0_0"]),h=!1),u&&!v&&(a.os="android",a.android=!0),(p||d||f)&&(a.os="ios",a.ios=!0),a}(i)),x}function T(){return y||(y=function(){var i,e=c();return{isEdge:!!e.navigator.userAgent.match(/Edge/g),isSafari:(i=e.navigator.userAgent.toLowerCase(),i.indexOf("safari")>=0&&i.indexOf("chrome")<0&&i.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),y}Object.keys(M).forEach((function(i){Object.defineProperty(b.fn,i,{value:M[i],writable:!0})}));const j={name:"resize",create:function(){var i=this;B(i,{resize:{observer:null,createObserver:function(){i&&!i.destroyed&&i.initialized&&(i.resize.observer=new ResizeObserver((function(e){var t=i.width,r=i.height,n=t,o=r;e.forEach((function(e){var t=e.contentBoxSize,r=e.contentRect,a=e.target;a&&a!==i.el||(n=r?r.width:(t[0]||t).inlineSize,o=r?r.height:(t[0]||t).blockSize)})),n===t&&o===r||i.resize.resizeHandler()})),i.resize.observer.observe(i.el))},removeObserver:function(){i.resize.observer&&i.resize.observer.unobserve&&i.el&&(i.resize.observer.unobserve(i.el),i.resize.observer=null)},resizeHandler:function(){i&&!i.destroyed&&i.initialized&&(i.emit("beforeResize"),i.emit("resize"))},orientationChangeHandler:function(){i&&!i.destroyed&&i.initialized&&i.emit("orientationchange")}}})},on:{init:function(i){var e=c();i.params.resizeObserver&&void 0!==c().ResizeObserver?i.resize.createObserver():(e.addEventListener("resize",i.resize.resizeHandler),e.addEventListener("orientationchange",i.resize.orientationChangeHandler))},destroy:function(i){var e=c();i.resize.removeObserver(),e.removeEventListener("resize",i.resize.resizeHandler),e.removeEventListener("orientationchange",i.resize.orientationChangeHandler)}}};function Y(){return(Y=Object.assign||function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i}).apply(this,arguments)}var P={attach:function(i,e){void 0===e&&(e={});var t=c(),r=this,n=new(t.MutationObserver||t.WebkitMutationObserver)((function(i){if(1!==i.length){var e=function(){r.emit("observerUpdate",i[0])};t.requestAnimationFrame?t.requestAnimationFrame(e):t.setTimeout(e,0)}else r.emit("observerUpdate",i[0])}));n.observe(i,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),r.observer.observers.push(n)},init:function(){var i=this;if(i.support.observer&&i.params.observer){if(i.params.observeParents)for(var e=i.$el.parents(),t=0;t<e.length;t+=1)i.observer.attach(e[t]);i.observer.attach(i.$el[0],{childList:i.params.observeSlideChildren}),i.observer.attach(i.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(i){i.disconnect()})),this.observer.observers=[]}};const G={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var i,e;i=this,e={observer:Y({},P,{observers:[]})},Object.keys(e).forEach((function(t){S(e[t])&&Object.keys(e[t]).forEach((function(r){"function"==typeof e[t][r]&&(e[t][r]=e[t][r].bind(i))})),i[t]=e[t]}))},on:{init:function(i){i.observer.init()},destroy:function(i){i.observer.destroy()}}};function I(i){var e=this,t=l(),r=c(),n=e.touchEventsData,o=e.params,a=e.touches;if(e.enabled&&(!e.animating||!o.preventInteractionOnTransition)){var s=i;s.originalEvent&&(s=s.originalEvent);var u=b(s.target);if(("wrapper"!==o.touchEventsTarget||u.closest(e.wrapperEl).length)&&(n.isTouchEvent="touchstart"===s.type,(n.isTouchEvent||!("which"in s)||3!==s.which)&&!(!n.isTouchEvent&&"button"in s&&s.button>0||n.isTouched&&n.isMoved))){o.noSwipingClass&&""!==o.noSwipingClass&&s.target&&s.target.shadowRoot&&i.path&&i.path[0]&&(u=b(i.path[0]));var p=o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass;if(o.noSwiping&&(s.target&&s.target.shadowRoot?function(i,e){return void 0===e&&(e=this),function e(t){return t&&t!==l()&&t!==c()?(t.assignedSlot&&(t=t.assignedSlot),t.closest(i)||e(t.getRootNode().host)):null}(e)}(p,s.target):u.closest(p)[0]))e.allowClick=!0;else if(!o.swipeHandler||u.closest(o.swipeHandler)[0]){a.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,a.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;var f=a.currentX,d=a.currentY,v=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,h=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(v&&(f<=h||f>=r.innerWidth-h)){if("prevent"!==v)return;i.preventDefault()}if(B(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=f,a.startY=d,n.touchStartTime=E(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==s.type){var w=!0;u.is(n.focusableElements)&&(w=!1),t.activeElement&&b(t.activeElement).is(n.focusableElements)&&t.activeElement!==u[0]&&t.activeElement.blur(),!o.touchStartForcePreventDefault&&!(w&&e.allowTouchMove&&o.touchStartPreventDefault)||u[0].isContentEditable||s.preventDefault()}e.emit("touchStart",s)}}}}function F(i){var e=l(),t=this,r=t.touchEventsData,n=t.params,o=t.touches,a=t.rtlTranslate;if(t.enabled){var s=i;if(s.originalEvent&&(s=s.originalEvent),r.isTouched){if(!r.isTouchEvent||"touchmove"===s.type){var u="touchmove"===s.type&&s.targetTouches&&(s.targetTouches[0]||s.changedTouches[0]),c="touchmove"===s.type?u.pageX:s.pageX,p="touchmove"===s.type?u.pageY:s.pageY;if(s.preventedByNestedSwiper)return o.startX=c,void(o.startY=p);if(!t.allowTouchMove)return t.allowClick=!1,void(r.isTouched&&(B(o,{startX:c,startY:p,currentX:c,currentY:p}),r.touchStartTime=E()));if(r.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(t.isVertical()){if(p<o.startY&&t.translate<=t.maxTranslate()||p>o.startY&&t.translate>=t.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(c<o.startX&&t.translate<=t.maxTranslate()||c>o.startX&&t.translate>=t.minTranslate())return;if(r.isTouchEvent&&e.activeElement&&s.target===e.activeElement&&b(s.target).is(r.focusableElements))return r.isMoved=!0,void(t.allowClick=!1);if(r.allowTouchCallbacks&&t.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){o.currentX=c,o.currentY=p;var f,d=o.currentX-o.startX,v=o.currentY-o.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(v,2))<t.params.threshold))if(void 0===r.isScrolling&&(t.isHorizontal()&&o.currentY===o.startY||t.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:d*d+v*v>=25&&(f=180*Math.atan2(Math.abs(v),Math.abs(d))/Math.PI,r.isScrolling=t.isHorizontal()?f>n.touchAngle:90-f>n.touchAngle)),r.isScrolling&&t.emit("touchMoveOpposite",s),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){t.allowClick=!1,!n.cssMode&&s.cancelable&&s.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&s.stopPropagation(),r.isMoved||(n.loop&&t.loopFix(),r.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!n.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",s)),t.emit("sliderMove",s),r.isMoved=!0;var h=t.isHorizontal()?d:v;o.diff=h,h*=n.touchRatio,a&&(h=-h),t.swipeDirection=h>0?"prev":"next",r.currentTranslate=h+r.startTranslate;var w=!0,g=n.resistanceRatio;if(n.touchReleaseOnEdges&&(g=0),h>0&&r.currentTranslate>t.minTranslate()?(w=!1,n.resistance&&(r.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+r.startTranslate+h,g))):h<0&&r.currentTranslate<t.maxTranslate()&&(w=!1,n.resistance&&(r.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-r.startTranslate-h,g))),w&&(s.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),t.allowSlidePrev||t.allowSlideNext||(r.currentTranslate=r.startTranslate),n.threshold>0){if(!(Math.abs(h)>n.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=t.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}n.followFinger&&!n.cssMode&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),n.freeMode&&(0===r.velocities.length&&r.velocities.push({position:o[t.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:o[t.isHorizontal()?"currentX":"currentY"],time:E()})),t.updateProgress(r.currentTranslate),t.setTranslate(r.currentTranslate))}}}}else r.startMoving&&r.isScrolling&&t.emit("touchMoveOpposite",s)}}function R(i){var e=this,t=e.touchEventsData,r=e.params,n=e.touches,o=e.rtlTranslate,a=e.$wrapperEl,s=e.slidesGrid,l=e.snapGrid;if(e.enabled){var u=i;if(u.originalEvent&&(u=u.originalEvent),t.allowTouchCallbacks&&e.emit("touchEnd",u),t.allowTouchCallbacks=!1,!t.isTouched)return t.isMoved&&r.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,void(t.startMoving=!1);r.grabCursor&&t.isMoved&&t.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var c,p=E(),f=p-t.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(u),e.emit("tap click",u),f<300&&p-t.lastClickTime<300&&e.emit("doubleTap doubleClick",u)),t.lastClickTime=E(),k((function(){e.destroyed||(e.allowClick=!0)})),!t.isTouched||!t.isMoved||!e.swipeDirection||0===n.diff||t.currentTranslate===t.startTranslate)return t.isTouched=!1,t.isMoved=!1,void(t.startMoving=!1);if(t.isTouched=!1,t.isMoved=!1,t.startMoving=!1,c=r.followFinger?o?e.translate:-e.translate:-t.currentTranslate,!r.cssMode)if(r.freeMode){if(c<-e.minTranslate())return void e.slideTo(e.activeIndex);if(c>-e.maxTranslate())return void e.slideTo(e.slides.length<l.length?l.length-1:e.slides.length-1);if(r.freeModeMomentum){if(t.velocities.length>1){var d=t.velocities.pop(),v=t.velocities.pop(),h=d.time-v.time;e.velocity=(d.position-v.position)/h,e.velocity/=2,Math.abs(e.velocity)<r.freeModeMinimumVelocity&&(e.velocity=0),(h>150||E()-d.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeModeMomentumVelocityRatio,t.velocities.length=0;var w=1e3*r.freeModeMomentumRatio,g=e.translate+e.velocity*w;o&&(g=-g);var A,b,m=!1,x=20*Math.abs(e.velocity)*r.freeModeMomentumBounceRatio;if(g<e.maxTranslate())r.freeModeMomentumBounce?(g+e.maxTranslate()<-x&&(g=e.maxTranslate()-x),A=e.maxTranslate(),m=!0,t.allowMomentumBounce=!0):g=e.maxTranslate(),r.loop&&r.centeredSlides&&(b=!0);else if(g>e.minTranslate())r.freeModeMomentumBounce?(g-e.minTranslate()>x&&(g=e.minTranslate()+x),A=e.minTranslate(),m=!0,t.allowMomentumBounce=!0):g=e.minTranslate(),r.loop&&r.centeredSlides&&(b=!0);else if(r.freeModeSticky){for(var y,M=0;M<l.length;M+=1)if(l[M]>-g){y=M;break}g=-(g=Math.abs(l[y]-g)<Math.abs(l[y-1]-g)||"next"===e.swipeDirection?l[y]:l[y-1])}if(b&&e.once("transitionEnd",(function(){e.loopFix()})),0!==e.velocity){if(w=o?Math.abs((-g-e.translate)/e.velocity):Math.abs((g-e.translate)/e.velocity),r.freeModeSticky){var S=Math.abs((o?-g:g)-e.translate),z=e.slidesSizesGrid[e.activeIndex];w=S<z?r.speed:S<2*z?1.5*r.speed:2.5*r.speed}}else if(r.freeModeSticky)return void e.slideToClosest();r.freeModeMomentumBounce&&m?(e.updateProgress(A),e.setTransition(w),e.setTranslate(g),e.transitionStart(!0,e.swipeDirection),e.animating=!0,a.transitionEnd((function(){e&&!e.destroyed&&t.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(r.speed),setTimeout((function(){e.setTranslate(A),a.transitionEnd((function(){e&&!e.destroyed&&e.transitionEnd()}))}),0))}))):e.velocity?(e.updateProgress(g),e.setTransition(w),e.setTranslate(g),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,a.transitionEnd((function(){e&&!e.destroyed&&e.transitionEnd()})))):(e.emit("_freeModeNoMomentumRelease"),e.updateProgress(g)),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(r.freeModeSticky)return void e.slideToClosest();r.freeMode&&e.emit("_freeModeNoMomentumRelease")}(!r.freeModeMomentum||f>=r.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var B=0,C=e.slidesSizesGrid[0],O=0;O<s.length;O+=O<r.slidesPerGroupSkip?1:r.slidesPerGroup){var T=O<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==s[O+T]?c>=s[O]&&c<s[O+T]&&(B=O,C=s[O+T]-s[O]):c>=s[O]&&(B=O,C=s[s.length-1]-s[s.length-2])}var j=(c-s[B])/C,Y=B<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(f>r.longSwipesMs){if(!r.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(j>=r.longSwipesRatio?B+Y:B),"prev"===e.swipeDirection&&e.slideTo(j>1-r.longSwipesRatio?B+Y:B)}else{if(!r.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||u.target!==e.navigation.nextEl&&u.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(B+Y),"prev"===e.swipeDirection&&e.slideTo(B)):e.slideTo(u.target===e.navigation.nextEl?B+Y:B)}}}}function D(){var i=this,e=i.params,t=i.el;if(!t||0!==t.offsetWidth){e.breakpoints&&i.setBreakpoint();var r=i.allowSlideNext,n=i.allowSlidePrev,o=i.snapGrid;i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses(),i.slideTo(("auto"===e.slidesPerView||e.slidesPerView>1)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides?i.slides.length-1:i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.run(),i.allowSlidePrev=n,i.allowSlideNext=r,i.params.watchOverflow&&o!==i.snapGrid&&i.checkOverflow()}}function N(i){var e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&i.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(i.stopPropagation(),i.stopImmediatePropagation())))}function L(){var i=this,e=i.wrapperEl,t=i.rtlTranslate;if(i.enabled){i.previousTranslate=i.translate,i.translate=i.isHorizontal()?t?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:-e.scrollTop,-0===i.translate&&(i.translate=0),i.updateActiveIndex(),i.updateSlidesClasses();var r=i.maxTranslate()-i.minTranslate();(0===r?0:(i.translate-i.minTranslate())/r)!==i.progress&&i.updateProgress(t?-i.translate:i.translate),i.emit("setTranslate",i.translate,!1)}}var Q=!1;function H(){}const U={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!1,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function Z(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}var V={modular:{useParams:function(i){var e=this;e.modules&&Object.keys(e.modules).forEach((function(t){var r=e.modules[t];r.params&&B(i,r.params)}))},useModules:function(i){void 0===i&&(i={});var e=this;e.modules&&Object.keys(e.modules).forEach((function(t){var r=e.modules[t],n=i[t]||{};r.on&&e.on&&Object.keys(r.on).forEach((function(i){e.on(i,r.on[i])})),r.create&&r.create.bind(e)(n)}))}},eventsEmitter:{on:function(i,e,t){var r=this;if("function"!=typeof e)return r;var n=t?"unshift":"push";return i.split(" ").forEach((function(i){r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][n](e)})),r},once:function(i,e,t){var r=this;if("function"!=typeof e)return r;function n(){r.off(i,n),n.__emitterProxy&&delete n.__emitterProxy;for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];e.apply(r,o)}return n.__emitterProxy=e,r.on(i,n,t)},onAny:function(i,e){var t=this;if("function"!=typeof i)return t;var r=e?"unshift":"push";return t.eventsAnyListeners.indexOf(i)<0&&t.eventsAnyListeners[r](i),t},offAny:function(i){var e=this;if(!e.eventsAnyListeners)return e;var t=e.eventsAnyListeners.indexOf(i);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off:function(i,e){var t=this;return t.eventsListeners?(i.split(" ").forEach((function(i){void 0===e?t.eventsListeners[i]=[]:t.eventsListeners[i]&&t.eventsListeners[i].forEach((function(r,n){(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&t.eventsListeners[i].splice(n,1)}))})),t):t},emit:function(){var i,e,t,r=this;if(!r.eventsListeners)return r;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];"string"==typeof o[0]||Array.isArray(o[0])?(i=o[0],e=o.slice(1,o.length),t=r):(i=o[0].events,e=o[0].data,t=o[0].context||r),e.unshift(t);var s=Array.isArray(i)?i:i.split(" ");return s.forEach((function(i){r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach((function(r){r.apply(t,[i].concat(e))})),r.eventsListeners&&r.eventsListeners[i]&&r.eventsListeners[i].forEach((function(i){i.apply(t,e)}))})),r}},update:{updateSize:function(){var i,e,t=this,r=t.$el;e=null!=t.params.height?t.params.height:r[0].clientHeight,0===(i=null!=t.params.width?t.params.width:r[0].clientWidth)&&t.isHorizontal()||0===e&&t.isVertical()||(i=i-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),e=e-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(i)&&(i=0),Number.isNaN(e)&&(e=0),B(t,{width:i,height:e,size:t.isHorizontal()?i:e}))},updateSlides:function(){var i=this;function e(e){return i.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}function t(i,t){return parseFloat(i.getPropertyValue(e(t))||0)}var r=i.params,n=i.$wrapperEl,o=i.size,a=i.rtlTranslate,s=i.wrongRTL,l=i.virtual&&r.virtual.enabled,u=l?i.virtual.slides.length:i.slides.length,c=n.children("."+i.params.slideClass),p=l?i.virtual.slides.length:c.length,f=[],d=[],v=[],h=r.slidesOffsetBefore;"function"==typeof h&&(h=r.slidesOffsetBefore.call(i));var w=r.slidesOffsetAfter;"function"==typeof w&&(w=r.slidesOffsetAfter.call(i));var g=i.snapGrid.length,A=i.slidesGrid.length,b=r.spaceBetween,m=-h,x=0,y=0;if(void 0!==o){var M,k;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*o),i.virtualSize=-b,c.css(a?{marginLeft:"",marginBottom:"",marginTop:""}:{marginRight:"",marginBottom:"",marginTop:""}),r.slidesPerColumn>1&&(M=Math.floor(p/r.slidesPerColumn)===p/i.params.slidesPerColumn?p:Math.ceil(p/r.slidesPerColumn)*r.slidesPerColumn,"auto"!==r.slidesPerView&&"row"===r.slidesPerColumnFill&&(M=Math.max(M,r.slidesPerView*r.slidesPerColumn)));for(var E,S,z,C=r.slidesPerColumn,O=M/C,T=Math.floor(p/r.slidesPerColumn),j=0;j<p;j+=1){k=0;var Y=c.eq(j);if(r.slidesPerColumn>1){var P=void 0,G=void 0,I=void 0;if("row"===r.slidesPerColumnFill&&r.slidesPerGroup>1){var F=Math.floor(j/(r.slidesPerGroup*r.slidesPerColumn)),R=j-r.slidesPerColumn*r.slidesPerGroup*F,D=0===F?r.slidesPerGroup:Math.min(Math.ceil((p-F*C*r.slidesPerGroup)/C),r.slidesPerGroup);I=Math.floor(R/D),Y.css({"-webkit-box-ordinal-group":P=(G=R-I*D+F*r.slidesPerGroup)+I*M/C,"-moz-box-ordinal-group":P,"-ms-flex-order":P,"-webkit-order":P,order:P})}else"column"===r.slidesPerColumnFill?(I=j-(G=Math.floor(j/C))*C,(G>T||G===T&&I===C-1)&&(I+=1)>=C&&(I=0,G+=1)):G=j-(I=Math.floor(j/O))*O;Y.css(e("margin-top"),0!==I?r.spaceBetween&&r.spaceBetween+"px":"")}if("none"!==Y.css("display")){if("auto"===r.slidesPerView){var N=getComputedStyle(Y[0]),L=Y[0].style.transform,Q=Y[0].style.webkitTransform;if(L&&(Y[0].style.transform="none"),Q&&(Y[0].style.webkitTransform="none"),r.roundLengths)k=i.isHorizontal()?Y.outerWidth(!0):Y.outerHeight(!0);else{var H=t(N,"width"),U=t(N,"padding-left"),Z=t(N,"padding-right"),V=t(N,"margin-left"),W=t(N,"margin-right"),K=N.getPropertyValue("box-sizing");if(K&&"border-box"===K)k=H+V+W;else{var q=Y[0];k=H+U+Z+V+W+(q.offsetWidth-q.clientWidth)}}L&&(Y[0].style.transform=L),Q&&(Y[0].style.webkitTransform=Q),r.roundLengths&&(k=Math.floor(k))}else k=(o-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),c[j]&&(c[j].style[e("width")]=k+"px");c[j]&&(c[j].swiperSlideSize=k),v.push(k),r.centeredSlides?(m=m+k/2+x/2+b,0===x&&0!==j&&(m=m-o/2-b),0===j&&(m=m-o/2-b),Math.abs(m)<.001&&(m=0),r.roundLengths&&(m=Math.floor(m)),y%r.slidesPerGroup==0&&f.push(m),d.push(m)):(r.roundLengths&&(m=Math.floor(m)),(y-Math.min(i.params.slidesPerGroupSkip,y))%i.params.slidesPerGroup==0&&f.push(m),d.push(m),m=m+k+b),i.virtualSize+=k+b,x=k,y+=1}}if(i.virtualSize=Math.max(i.virtualSize,o)+w,a&&s&&("slide"===r.effect||"coverflow"===r.effect)&&n.css({width:i.virtualSize+r.spaceBetween+"px"}),r.setWrapperSize&&n.css(((S={})[e("width")]=i.virtualSize+r.spaceBetween+"px",S)),r.slidesPerColumn>1&&(i.virtualSize=(k+r.spaceBetween)*M,i.virtualSize=Math.ceil(i.virtualSize/r.slidesPerColumn)-r.spaceBetween,n.css(((z={})[e("width")]=i.virtualSize+r.spaceBetween+"px",z)),r.centeredSlides)){E=[];for(var X=0;X<f.length;X+=1){var J=f[X];r.roundLengths&&(J=Math.floor(J)),f[X]<i.virtualSize+f[0]&&E.push(J)}f=E}if(!r.centeredSlides){E=[];for(var _=0;_<f.length;_+=1){var $=f[_];r.roundLengths&&($=Math.floor($)),f[_]<=i.virtualSize-o&&E.push($)}f=E,Math.floor(i.virtualSize-o)-Math.floor(f[f.length-1])>1&&f.push(i.virtualSize-o)}if(0===f.length&&(f=[0]),0!==r.spaceBetween){var ii,ei=i.isHorizontal()&&a?"marginLeft":e("marginRight");c.filter((function(i,e){return!r.cssMode||e!==c.length-1})).css(((ii={})[ei]=b+"px",ii))}if(r.centeredSlides&&r.centeredSlidesBounds){var ti=0;v.forEach((function(i){ti+=i+(r.spaceBetween?r.spaceBetween:0)}));var ri=(ti-=r.spaceBetween)-o;f=f.map((function(i){return i<0?-h:i>ri?ri+w:i}))}if(r.centerInsufficientSlides){var ni=0;if(v.forEach((function(i){ni+=i+(r.spaceBetween?r.spaceBetween:0)})),(ni-=r.spaceBetween)<o){var oi=(o-ni)/2;f.forEach((function(i,e){f[e]=i-oi})),d.forEach((function(i,e){d[e]=i+oi}))}}B(i,{slides:c,snapGrid:f,slidesGrid:d,slidesSizesGrid:v}),p!==u&&i.emit("slidesLengthChange"),f.length!==g&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),d.length!==A&&i.emit("slidesGridLengthChange"),(r.watchSlidesProgress||r.watchSlidesVisibility)&&i.updateSlidesOffset()}},updateAutoHeight:function(i){var e,t=this,r=[],n=t.virtual&&t.params.virtual.enabled,o=0;"number"==typeof i?t.setTransition(i):!0===i&&t.setTransition(t.params.speed);var a=function(i){return n?t.slides.filter((function(e){return parseInt(e.getAttribute("data-swiper-slide-index"),10)===i}))[0]:t.slides.eq(i)[0]};if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)t.visibleSlides.each((function(i){r.push(i)}));else for(e=0;e<Math.ceil(t.params.slidesPerView);e+=1){var s=t.activeIndex+e;if(s>t.slides.length&&!n)break;r.push(a(s))}else r.push(a(t.activeIndex));for(e=0;e<r.length;e+=1)if(void 0!==r[e]){var l=r[e].offsetHeight;o=l>o?l:o}o&&t.$wrapperEl.css("height",o+"px")},updateSlidesOffset:function(){for(var i=this.slides,e=0;e<i.length;e+=1)i[e].swiperSlideOffset=this.isHorizontal()?i[e].offsetLeft:i[e].offsetTop},updateSlidesProgress:function(i){void 0===i&&(i=this&&this.translate||0);var e=this,t=e.params,r=e.slides,n=e.rtlTranslate;if(0!==r.length){void 0===r[0].swiperSlideOffset&&e.updateSlidesOffset();var o=-i;n&&(o=i),r.removeClass(t.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(var a=0;a<r.length;a+=1){var s=r[a],l=(o+(t.centeredSlides?e.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility||t.centeredSlides&&t.autoHeight){var u=-(o-s.swiperSlideOffset),c=u+e.slidesSizesGrid[a];(u>=0&&u<e.size-1||c>1&&c<=e.size||u<=0&&c>=e.size)&&(e.visibleSlides.push(s),e.visibleSlidesIndexes.push(a),r.eq(a).addClass(t.slideVisibleClass))}s.progress=n?-l:l}e.visibleSlides=b(e.visibleSlides)}},updateProgress:function(i){var e=this;void 0===i&&(i=e&&e.translate&&e.translate*(e.rtlTranslate?-1:1)||0);var t=e.params,r=e.maxTranslate()-e.minTranslate(),n=e.progress,o=e.isBeginning,a=e.isEnd,s=o,l=a;0===r?(n=0,o=!0,a=!0):(o=(n=(i-e.minTranslate())/r)<=0,a=n>=1),B(e,{progress:n,isBeginning:o,isEnd:a}),(t.watchSlidesProgress||t.watchSlidesVisibility||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(i),o&&!s&&e.emit("reachBeginning toEdge"),a&&!l&&e.emit("reachEnd toEdge"),(s&&!o||l&&!a)&&e.emit("fromEdge"),e.emit("progress",n)},updateSlidesClasses:function(){var i,e=this,t=e.slides,r=e.params,n=e.$wrapperEl,o=e.activeIndex,a=e.realIndex,s=e.virtual&&r.virtual.enabled;t.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass),(i=s?e.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+o+'"]'):t.eq(o)).addClass(r.slideActiveClass),r.loop&&(i.hasClass(r.slideDuplicateClass)?n.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(r.slideDuplicateActiveClass):n.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(r.slideDuplicateActiveClass));var l=i.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===l.length&&(l=t.eq(0)).addClass(r.slideNextClass);var u=i.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&0===u.length&&(u=t.eq(-1)).addClass(r.slidePrevClass),r.loop&&(l.hasClass(r.slideDuplicateClass)?n.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):n.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),u.hasClass(r.slideDuplicateClass)?n.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):n.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(i){var e,t=this,r=t.rtlTranslate?t.translate:-t.translate,n=t.slidesGrid,o=t.snapGrid,a=t.params,s=t.activeIndex,l=t.realIndex,u=t.snapIndex,c=i;if(void 0===c){for(var p=0;p<n.length;p+=1)void 0!==n[p+1]?r>=n[p]&&r<n[p+1]-(n[p+1]-n[p])/2?c=p:r>=n[p]&&r<n[p+1]&&(c=p+1):r>=n[p]&&(c=p);a.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(o.indexOf(r)>=0)e=o.indexOf(r);else{var f=Math.min(a.slidesPerGroupSkip,c);e=f+Math.floor((c-f)/a.slidesPerGroup)}if(e>=o.length&&(e=o.length-1),c!==s){var d=parseInt(t.slides.eq(c).attr("data-swiper-slide-index")||c,10);B(t,{snapIndex:e,realIndex:d,previousIndex:s,activeIndex:c}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}else e!==u&&(t.snapIndex=e,t.emit("snapIndexChange"))},updateClickedSlide:function(i){var e,t=this,r=t.params,n=b(i.target).closest("."+r.slideClass)[0],o=!1;if(n)for(var a=0;a<t.slides.length;a+=1)if(t.slides[a]===n){o=!0,e=a;break}if(!n||!o)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=n,t.clickedIndex=t.virtual&&t.params.virtual.enabled?parseInt(b(n).attr("data-swiper-slide-index"),10):e,r.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}},translate:{getTranslate:function(i){void 0===i&&(i=this.isHorizontal()?"x":"y");var e=this,t=e.params,r=e.rtlTranslate,n=e.translate;if(t.virtualTranslate)return r?-n:n;if(t.cssMode)return n;var o=function(i,e){void 0===e&&(e="x");var t,r,n,o=c(),a=function(i){var e,t=c();return t.getComputedStyle&&(e=t.getComputedStyle(i,null)),!e&&i.currentStyle&&(e=i.currentStyle),e||(e=i.style),e}(i);return o.WebKitCSSMatrix?((r=a.transform||a.webkitTransform).split(",").length>6&&(r=r.split(", ").map((function(i){return i.replace(",",".")})).join(", ")),n=new o.WebKitCSSMatrix("none"===r?"":r)):t=(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===e&&(r=o.WebKitCSSMatrix?n.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===e&&(r=o.WebKitCSSMatrix?n.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),r||0}(e.$wrapperEl[0],i);return r&&(o=-o),o||0},setTranslate:function(i,e){var t=this,r=t.rtlTranslate,n=t.params,o=t.$wrapperEl,a=t.wrapperEl,s=t.progress,l=0,u=0;t.isHorizontal()?l=r?-i:i:u=i,n.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),n.cssMode?a[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-l:-u:n.virtualTranslate||o.transform("translate3d("+l+"px, "+u+"px, 0px)"),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?l:u;var c=t.maxTranslate()-t.minTranslate();(0===c?0:(i-t.minTranslate())/c)!==s&&t.updateProgress(i),t.emit("setTranslate",t.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(i,e,t,r,n){void 0===i&&(i=0),void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===r&&(r=!0);var o=this,a=o.params,s=o.wrapperEl;if(o.animating&&a.preventInteractionOnTransition)return!1;var l,u=o.minTranslate(),c=o.maxTranslate();if(o.updateProgress(l=r&&i>u?u:r&&i<c?c:i),a.cssMode){var p,f=o.isHorizontal();return 0===e?s[f?"scrollLeft":"scrollTop"]=-l:s.scrollTo?s.scrollTo(((p={})[f?"left":"top"]=-l,p.behavior="smooth",p)):s[f?"scrollLeft":"scrollTop"]=-l,!0}return 0===e?(o.setTransition(0),o.setTranslate(l),t&&(o.emit("beforeTransitionStart",e,n),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(l),t&&(o.emit("beforeTransitionStart",e,n),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(i){o&&!o.destroyed&&i.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,t&&o.emit("transitionEnd"))}),o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(i,e){var t=this;t.params.cssMode||t.$wrapperEl.transition(i),t.emit("setTransition",i,e)},transitionStart:function(i,e){void 0===i&&(i=!0);var t=this,r=t.activeIndex,n=t.params,o=t.previousIndex;if(!n.cssMode){n.autoHeight&&t.updateAutoHeight();var a=e;if(a||(a=r>o?"next":r<o?"prev":"reset"),t.emit("transitionStart"),i&&r!==o){if("reset"===a)return void t.emit("slideResetTransitionStart");t.emit("slideChangeTransitionStart"),t.emit("next"===a?"slideNextTransitionStart":"slidePrevTransitionStart")}}},transitionEnd:function(i,e){void 0===i&&(i=!0);var t=this,r=t.activeIndex,n=t.previousIndex,o=t.params;if(t.animating=!1,!o.cssMode){t.setTransition(0);var a=e;if(a||(a=r>n?"next":r<n?"prev":"reset"),t.emit("transitionEnd"),i&&r!==n){if("reset"===a)return void t.emit("slideResetTransitionEnd");t.emit("slideChangeTransitionEnd"),t.emit("next"===a?"slideNextTransitionEnd":"slidePrevTransitionEnd")}}}},slide:{slideTo:function(i,e,t,r,n){if(void 0===i&&(i=0),void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),"number"!=typeof i&&"string"!=typeof i)throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+typeof i+"] given.");if("string"==typeof i){var o=parseInt(i,10);if(!isFinite(o))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+i+"] given.");i=o}var a=this,s=i;s<0&&(s=0);var l=a.params,u=a.snapGrid,c=a.slidesGrid,p=a.previousIndex,f=a.activeIndex,d=a.rtlTranslate,v=a.wrapperEl;if(a.animating&&l.preventInteractionOnTransition||!a.enabled&&!r&&!n)return!1;var h=Math.min(a.params.slidesPerGroupSkip,s),w=h+Math.floor((s-h)/a.params.slidesPerGroup);w>=u.length&&(w=u.length-1),(f||l.initialSlide||0)===(p||0)&&t&&a.emit("beforeSlideChangeStart");var g,A=-u[w];if(a.updateProgress(A),l.normalizeSlideIndex)for(var b=0;b<c.length;b+=1){var m=-Math.floor(100*A),x=Math.floor(100*c[b]),y=Math.floor(100*c[b+1]);void 0!==c[b+1]?m>=x&&m<y-(y-x)/2?s=b:m>=x&&m<y&&(s=b+1):m>=x&&(s=b)}if(a.initialized&&s!==f){if(!a.allowSlideNext&&A<a.translate&&A<a.minTranslate())return!1;if(!a.allowSlidePrev&&A>a.translate&&A>a.maxTranslate()&&(f||0)!==s)return!1}if(g=s>f?"next":s<f?"prev":"reset",d&&-A===a.translate||!d&&A===a.translate)return a.updateActiveIndex(s),l.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==l.effect&&a.setTranslate(A),"reset"!==g&&(a.transitionStart(t,g),a.transitionEnd(t,g)),!1;if(l.cssMode){var M,k=a.isHorizontal(),E=-A;return d&&(E=v.scrollWidth-v.offsetWidth-E),0===e?v[k?"scrollLeft":"scrollTop"]=E:v.scrollTo?v.scrollTo(((M={})[k?"left":"top"]=E,M.behavior="smooth",M)):v[k?"scrollLeft":"scrollTop"]=E,!0}return 0===e?(a.setTransition(0),a.setTranslate(A),a.updateActiveIndex(s),a.updateSlidesClasses(),a.emit("beforeTransitionStart",e,r),a.transitionSt