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