UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

1 lines 99.2 kB
function t(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function e(i,n){void 0===i&&(i={}),void 0===n&&(n={}),Object.keys(n).forEach((function(s){void 0===i[s]?i[s]=n[s]:t(n[s])&&t(i[s])&&Object.keys(n[s]).length>0&&e(i[s],n[s])}))}var i="undefined"!=typeof document?document:{},n={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:""}};e(i,n);var s="undefined"!=typeof window?window:{};e(s,{document:n,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{}}});class r{constructor(t){const e=this;for(let i=0;i<t.length;i+=1)e[i]=t[i];return e.length=t.length,this}}function o(t,e){const n=[];let o=0;if(t&&!e&&t instanceof r)return t;if(t)if("string"==typeof t){let s,r;const a=t.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){let t="div";for(0===a.indexOf("<li")&&(t="ul"),0===a.indexOf("<tr")&&(t="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(t="tr"),0===a.indexOf("<tbody")&&(t="table"),0===a.indexOf("<option")&&(t="select"),r=i.createElement(t),r.innerHTML=a,o=0;o<r.childNodes.length;o+=1)n.push(r.childNodes[o])}else for(s=e||"#"!==t[0]||t.match(/[ .<>:~]/)?(e||i).querySelectorAll(t.trim()):[i.getElementById(t.trim().split("#")[1])],o=0;o<s.length;o+=1)s[o]&&n.push(s[o])}else if(t.nodeType||t===s||t===i)n.push(t);else if(t.length>0&&t[0].nodeType)for(o=0;o<t.length;o+=1)n.push(t[o]);return new r(n)}function a(t){const e=[];for(let i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}o.fn=r.prototype,o.Class=r,o.Dom7=r;const l={addClass:function(t){if(void 0===t)return this;const e=t.split(" ");for(let i=0;i<e.length;i+=1)for(let t=0;t<this.length;t+=1)void 0!==this[t]&&void 0!==this[t].classList&&this[t].classList.add(e[i]);return this},removeClass:function(t){const e=t.split(" ");for(let i=0;i<e.length;i+=1)for(let t=0;t<this.length;t+=1)void 0!==this[t]&&void 0!==this[t].classList&&this[t].classList.remove(e[i]);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},toggleClass:function(t){const e=t.split(" ");for(let i=0;i<e.length;i+=1)for(let t=0;t<this.length;t+=1)void 0!==this[t]&&void 0!==this[t].classList&&this[t].classList.toggle(e[i]);return this},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(t,e);else for(const e in t)this[i][e]=t[e],this[i].setAttribute(e,t[e]);return this},removeAttr:function(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},data:function(t,e){let i;if(void 0!==e){for(let n=0;n<this.length;n+=1)i=this[n],i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[t]=e;return this}if(i=this[0],i){if(i.dom7ElementDataStorage&&t in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[t];return i.getAttribute(`data-${t}`)||void 0}},transform:function(t){for(let e=0;e<this.length;e+=1){const i=this[e].style;i.webkitTransform=t,i.transform=t}return this},transition:function(t){"string"!=typeof t&&(t=`${t}ms`);for(let e=0;e<this.length;e+=1){const i=this[e].style;i.webkitTransitionDuration=t,i.transitionDuration=t}return this},on:function(...t){let[e,i,n,s]=t;function r(t){const e=t.target;if(!e)return;const s=t.target.dom7EventData||[];if(s.indexOf(t)<0&&s.unshift(t),o(e).is(i))n.apply(e,s);else{const t=o(e).parents();for(let e=0;e<t.length;e+=1)o(t[e]).is(i)&&n.apply(t[e],s)}}function a(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),n.apply(this,e)}"function"==typeof t[1]&&([e,n,s]=t,i=void 0),s||(s=!1);const l=e.split(" ");let c;for(let o=0;o<this.length;o+=1){const t=this[o];if(i)for(c=0;c<l.length;c+=1){const e=l[c];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:n,proxyListener:r}),t.addEventListener(e,r,s)}else for(c=0;c<l.length;c+=1){const e=l[c];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:n,proxyListener:a}),t.addEventListener(e,a,s)}}return this},off:function(...t){let[e,i,n,s]=t;"function"==typeof t[1]&&([e,n,s]=t,i=void 0),s||(s=!1);const r=e.split(" ");for(let o=0;o<r.length;o+=1){const t=r[o];for(let e=0;e<this.length;e+=1){const r=this[e];let o;if(!i&&r.dom7Listeners?o=r.dom7Listeners[t]:i&&r.dom7LiveListeners&&(o=r.dom7LiveListeners[t]),o&&o.length)for(let e=o.length-1;e>=0;e-=1){const i=o[e];n&&i.listener===n||n&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===n?(r.removeEventListener(t,i.proxyListener,s),o.splice(e,1)):n||(r.removeEventListener(t,i.proxyListener,s),o.splice(e,1))}}}return this},trigger:function(...t){const e=t[0].split(" "),n=t[1];for(let o=0;o<e.length;o+=1){const a=e[o];for(let e=0;e<this.length;e+=1){const o=this[e];let l;try{l=new s.CustomEvent(a,{detail:n,bubbles:!0,cancelable:!0})}catch(r){l=i.createEvent("Event"),l.initEvent(a,!0,!0),l.detail=n}o.dom7EventData=t.filter(((t,e)=>e>0)),o.dispatchEvent(l),o.dom7EventData=[],delete o.dom7EventData}}return this},transitionEnd:function(t){const e=["webkitTransitionEnd","transitionend"],i=this;let n;function s(r){if(r.target===this)for(t.call(this,r),n=0;n<e.length;n+=1)i.off(e[n],s)}if(t)for(n=0;n<e.length;n+=1)i.on(e[n],s);return this},outerWidth:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){const t=this[0],e=t.getBoundingClientRect(),n=i.body;return{top:e.top+(t===s?s.scrollY:t.scrollTop)-(t.clientTop||n.clientTop||0),left:e.left+(t===s?s.scrollX:t.scrollLeft)-(t.clientLeft||n.clientLeft||0)}}return null},css:function(t,e){let i;if(1===arguments.length){if("string"!=typeof t){for(i=0;i<this.length;i+=1)for(let e in t)this[i].style[e]=t[e];return this}if(this[0])return s.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(i=0;i<this.length;i+=1)this[i].style[t]=e;return this}return this},each:function(t){if(!t)return this;for(let e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){const e=this[0];let n,a;if(!e||void 0===t)return!1;if("string"==typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(n=o(t),a=0;a<n.length;a+=1)if(n[a]===e)return!0;return!1}if(t===i)return e===i;if(t===s)return e===s;if(t.nodeType||t instanceof r){for(n=t.nodeType?[t]:t,a=0;a<n.length;a+=1)if(n[a]===e)return!0;return!1}return!1},index:function(){let t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;const e=this.length;let i;return t>e-1?new r([]):t<0?(i=e+t,new r(i<0?[]:[this[i]])):new r([this[t]])},append:function(...t){let e;for(let n=0;n<t.length;n+=1){e=t[n];for(let t=0;t<this.length;t+=1)if("string"==typeof e){const n=i.createElement("div");for(n.innerHTML=e;n.firstChild;)this[t].appendChild(n.firstChild)}else if(e instanceof r)for(let i=0;i<e.length;i+=1)this[t].appendChild(e[i]);else this[t].appendChild(e)}return this},prepend:function(t){let e,n;for(e=0;e<this.length;e+=1)if("string"==typeof t){const s=i.createElement("div");for(s.innerHTML=t,n=s.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(s.childNodes[n],this[e].childNodes[0])}else if(t instanceof r)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&o(this[0].nextElementSibling).is(t)?new r([this[0].nextElementSibling]):new r([]):new r(this[0].nextElementSibling?[this[0].nextElementSibling]:[]):new r([])},nextAll:function(t){const e=[];let i=this[0];if(!i)return new r([]);for(;i.nextElementSibling;){const n=i.nextElementSibling;t?o(n).is(t)&&e.push(n):e.push(n),i=n}return new r(e)},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&o(e.previousElementSibling).is(t)?new r([e.previousElementSibling]):new r([]):new r(e.previousElementSibling?[e.previousElementSibling]:[])}return new r([])},prevAll:function(t){const e=[];let i=this[0];if(!i)return new r([]);for(;i.previousElementSibling;){const n=i.previousElementSibling;t?o(n).is(t)&&e.push(n):e.push(n),i=n}return new r(e)},parent:function(t){const e=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?o(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return o(a(e))},parents:function(t){const e=[];for(let i=0;i<this.length;i+=1){let n=this[i].parentNode;for(;n;)t?o(n).is(t)&&e.push(n):e.push(n),n=n.parentNode}return o(a(e))},closest:function(t){let e=this;return void 0===t?new r([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){const e=[];for(let i=0;i<this.length;i+=1){const n=this[i].querySelectorAll(t);for(let t=0;t<n.length;t+=1)e.push(n[t])}return new r(e)},children:function(t){const e=[];for(let i=0;i<this.length;i+=1){const n=this[i].childNodes;for(let i=0;i<n.length;i+=1)t?1===n[i].nodeType&&o(n[i]).is(t)&&e.push(n[i]):1===n[i].nodeType&&e.push(n[i])}return new r(a(e))},filter:function(t){const e=[],i=this;for(let n=0;n<i.length;n+=1)t.call(i[n],n,i[n])&&e.push(i[n]);return new r(e)},remove:function(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},add:function(...t){const e=this;let i,n;for(i=0;i<t.length;i+=1){const s=o(t[i]);for(n=0;n<s.length;n+=1)e[e.length]=s[n],e.length+=1}return e},styles:function(){return this[0]?s.getComputedStyle(this[0],null):{}}};Object.keys(l).forEach((t=>{o.fn[t]=o.fn[t]||l[t]}));const c={deleteProps(t){const e=t;Object.keys(e).forEach((t=>{try{e[t]=null}catch(i){}try{delete e[t]}catch(i){}}))},nextTick:(t,e=0)=>setTimeout(t,e),now:()=>Date.now(),getTranslate(t,e="x"){let i,n,r;const o=s.getComputedStyle(t,null);return s.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map((t=>t.replace(",","."))).join(", ")),r=new s.WebKitCSSMatrix("none"===n?"":n)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===e&&(n=s.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===e&&(n=s.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0},parseUrlQuery(t){const e={};let i,n,r,o,a=t||s.location.href;if("string"==typeof a&&a.length)for(a=a.indexOf("?")>-1?a.replace(/\S*\?/,""):"",n=a.split("&").filter((t=>""!==t)),o=n.length,i=0;i<o;i+=1)r=n[i].replace(/#\S+/g,"").split("="),e[decodeURIComponent(r[0])]=void 0===r[1]?void 0:decodeURIComponent(r[1])||"";return e},isObject:t=>"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object,extend(...t){const e=Object(t[0]),i=["__proto__","constructor","prototype"];for(let n=1;n<t.length;n+=1){const s=t[n];if(null!=s){const t=Object.keys(Object(s)).filter((t=>i.indexOf(t)<0));for(let i=0,n=t.length;i<n;i+=1){const n=t[i],r=Object.getOwnPropertyDescriptor(s,n);void 0!==r&&r.enumerable&&(c.isObject(e[n])&&c.isObject(s[n])?c.extend(e[n],s[n]):!c.isObject(e[n])&&c.isObject(s[n])?(e[n]={},c.extend(e[n],s[n])):e[n]=s[n])}}}return e}},u={touch:!!("ontouchstart"in s||s.DocumentTouch&&i instanceof s.DocumentTouch),pointerEvents:!!s.PointerEvent&&"maxTouchPoints"in s.navigator&&s.navigator.maxTouchPoints>=0,observer:"MutationObserver"in s||"WebkitMutationObserver"in s,passiveListener:function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get(){t=!0}});s.addEventListener("testPassiveListener",null,e)}catch(e){}return t}(),gestures:"ongesturestart"in s};class d{constructor(t={}){const e=this;e.params=t,e.eventsListeners={},e.params&&e.params.on&&Object.keys(e.params.on).forEach((t=>{e.on(t,e.params.on[t])}))}on(t,e,i){const n=this;if("function"!=typeof e)return n;const s=i?"unshift":"push";return t.split(" ").forEach((t=>{n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][s](e)})),n}once(t,e,i){const n=this;if("function"!=typeof e)return n;function s(...i){n.off(t,s),s.f7proxy&&delete s.f7proxy,e.apply(n,i)}return s.f7proxy=e,n.on(t,s,i)}off(t,e){const i=this;return i.eventsListeners?(t.split(" ").forEach((t=>{void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].length&&i.eventsListeners[t].forEach(((n,s)=>{(n===e||n.f7proxy&&n.f7proxy===e)&&i.eventsListeners[t].splice(s,1)}))})),i):i}emit(...t){const e=this;if(!e.eventsListeners)return e;let i,n,s;return"string"==typeof t[0]||Array.isArray(t[0])?(i=t[0],n=t.slice(1,t.length),s=e):(i=t[0].events,n=t[0].data,s=t[0].context||e),(Array.isArray(i)?i:i.split(" ")).forEach((t=>{if(e.eventsListeners&&e.eventsListeners[t]){const i=[];e.eventsListeners[t].forEach((t=>{i.push(t)})),i.forEach((t=>{t.apply(s,n)}))}})),e}useModulesParams(t){const e=this;e.modules&&Object.keys(e.modules).forEach((i=>{const n=e.modules[i];n.params&&c.extend(t,n.params)}))}useModules(t={}){const e=this;e.modules&&Object.keys(e.modules).forEach((i=>{const n=e.modules[i],s=t[i]||{};n.instance&&Object.keys(n.instance).forEach((t=>{const i=n.instance[t];e[t]="function"==typeof i?i.bind(e):i})),n.on&&e.on&&Object.keys(n.on).forEach((t=>{e.on(t,n.on[t])})),n.create&&n.create.bind(e)(s)}))}static set components(t){this.use&&this.use(t)}static installModule(t,...e){const i=this;i.prototype.modules||(i.prototype.modules={});const n=t.name||`${Object.keys(i.prototype.modules).length}_${c.now()}`;return i.prototype.modules[n]=t,t.proto&&Object.keys(t.proto).forEach((e=>{i.prototype[e]=t.proto[e]})),t.static&&Object.keys(t.static).forEach((e=>{i[e]=t.static[e]})),t.install&&t.install.apply(i,e),i}static use(t,...e){const i=this;return Array.isArray(t)?(t.forEach((t=>i.installModule(t))),i):i.installModule(t,...e)}}var h={updateSize:function(){const t=this;let e,i;const n=t.$el;e=void 0!==t.params.width?t.params.width:n[0].clientWidth,i=void 0!==t.params.height?t.params.height:n[0].clientHeight,0===e&&t.isHorizontal()||0===i&&t.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),i=i-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),c.extend(t,{width:e,height:i,size:t.isHorizontal()?e:i}))},updateSlides:function(){const t=this,e=t.params,{$wrapperEl:i,size:n,rtlTranslate:r,wrongRTL:o}=t,a=t.virtual&&e.virtual.enabled,l=a?t.virtual.slides.length:t.slides.length,u=i.children(`.${t.params.slideClass}`),d=a?t.virtual.slides.length:u.length;let h=[];const f=[],p=[];function v(t){return!e.cssMode||t!==u.length-1}let g=e.slidesOffsetBefore;"function"==typeof g&&(g=e.slidesOffsetBefore.call(t));let m=e.slidesOffsetAfter;"function"==typeof m&&(m=e.slidesOffsetAfter.call(t));const b=t.snapGrid.length,w=t.snapGrid.length;let $,x,M=e.spaceBetween,y=-g,S=0,T=0;if(void 0===n)return;"string"==typeof M&&M.indexOf("%")>=0&&(M=parseFloat(M.replace("%",""))/100*n),t.virtualSize=-M,u.css(r?{marginLeft:"",marginTop:""}:{marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&($=Math.floor(d/e.slidesPerColumn)===d/t.params.slidesPerColumn?d:Math.ceil(d/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&($=Math.max($,e.slidesPerView*e.slidesPerColumn)));const E=e.slidesPerColumn,C=$/E,k=Math.floor(d/e.slidesPerColumn);for(let c=0;c<d;c+=1){x=0;const i=u.eq(c);if(e.slidesPerColumn>1){let n,s,r;if("row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){const t=Math.floor(c/(e.slidesPerGroup*e.slidesPerColumn)),o=c-e.slidesPerColumn*e.slidesPerGroup*t,a=0===t?e.slidesPerGroup:Math.min(Math.ceil((d-t*E*e.slidesPerGroup)/E),e.slidesPerGroup);r=Math.floor(o/a),s=o-r*a+t*e.slidesPerGroup,n=s+r*$/E,i.css({"-webkit-box-ordinal-group":n,"-moz-box-ordinal-group":n,"-ms-flex-order":n,"-webkit-order":n,order:n})}else"column"===e.slidesPerColumnFill?(s=Math.floor(c/E),r=c-s*E,(s>k||s===k&&r===E-1)&&(r+=1,r>=E&&(r=0,s+=1))):(r=Math.floor(c/C),s=c-r*C);i.css("margin-"+(t.isHorizontal()?"top":"left"),0!==r&&e.spaceBetween&&`${e.spaceBetween}px`)}if("none"!==i.css("display")){if("auto"===e.slidesPerView){const n=s.getComputedStyle(i[0],null),r=i[0].style.transform,o=i[0].style.webkitTransform;if(r&&(i[0].style.transform="none"),o&&(i[0].style.webkitTransform="none"),e.roundLengths)x=t.isHorizontal()?i.outerWidth(!0):i.outerHeight(!0);else if(t.isHorizontal()){const t=parseFloat(n.getPropertyValue("width")),e=parseFloat(n.getPropertyValue("padding-left")),i=parseFloat(n.getPropertyValue("padding-right")),s=parseFloat(n.getPropertyValue("margin-left")),r=parseFloat(n.getPropertyValue("margin-right")),o=n.getPropertyValue("box-sizing");x=o&&"border-box"===o?t+s+r:t+e+i+s+r}else{const t=parseFloat(n.getPropertyValue("height")),e=parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("padding-bottom")),s=parseFloat(n.getPropertyValue("margin-top")),r=parseFloat(n.getPropertyValue("margin-bottom")),o=n.getPropertyValue("box-sizing");x=o&&"border-box"===o?t+s+r:t+e+i+s+r}r&&(i[0].style.transform=r),o&&(i[0].style.webkitTransform=o),e.roundLengths&&(x=Math.floor(x))}else x=(n-(e.slidesPerView-1)*M)/e.slidesPerView,e.roundLengths&&(x=Math.floor(x)),u[c]&&(t.isHorizontal()?u[c].style.width=`${x}px`:u[c].style.height=`${x}px`);u[c]&&(u[c].swiperSlideSize=x),p.push(x),e.centeredSlides?(y=y+x/2+S/2+M,0===S&&0!==c&&(y=y-n/2-M),0===c&&(y=y-n/2-M),Math.abs(y)<.001&&(y=0),e.roundLengths&&(y=Math.floor(y)),T%e.slidesPerGroup==0&&h.push(y),f.push(y)):(e.roundLengths&&(y=Math.floor(y)),(T-Math.min(t.params.slidesPerGroupSkip,T))%t.params.slidesPerGroup==0&&h.push(y),f.push(y),y=y+x+M),t.virtualSize+=x+M,S=x,T+=1}}let z;if(t.virtualSize=Math.max(t.virtualSize,n)+m,r&&o&&("slide"===e.effect||"coverflow"===e.effect)&&i.css({width:`${t.virtualSize+e.spaceBetween}px`}),e.setWrapperSize&&(t.isHorizontal()?i.css({width:`${t.virtualSize+e.spaceBetween}px`}):i.css({height:`${t.virtualSize+e.spaceBetween}px`})),e.slidesPerColumn>1&&(t.virtualSize=(x+e.spaceBetween)*$,t.virtualSize=Math.ceil(t.virtualSize/e.slidesPerColumn)-e.spaceBetween,t.isHorizontal()?i.css({width:`${t.virtualSize+e.spaceBetween}px`}):i.css({height:`${t.virtualSize+e.spaceBetween}px`}),e.centeredSlides)){z=[];for(let i=0;i<h.length;i+=1){let n=h[i];e.roundLengths&&(n=Math.floor(n)),h[i]<t.virtualSize+h[0]&&z.push(n)}h=z}if(!e.centeredSlides){z=[];for(let i=0;i<h.length;i+=1){let s=h[i];e.roundLengths&&(s=Math.floor(s)),h[i]<=t.virtualSize-n&&z.push(s)}h=z,Math.floor(t.virtualSize-n)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-n)}if(0===h.length&&(h=[0]),0!==e.spaceBetween&&(t.isHorizontal()?r?u.filter(v).css({marginLeft:`${M}px`}):u.filter(v).css({marginRight:`${M}px`}):u.filter(v).css({marginBottom:`${M}px`})),e.centeredSlides&&e.centeredSlidesBounds){let t=0;p.forEach((i=>{t+=i+(e.spaceBetween?e.spaceBetween:0)})),t-=e.spaceBetween;const i=t-n;h=h.map((t=>t<0?-g:t>i?i+m:t))}if(e.centerInsufficientSlides){let t=0;if(p.forEach((i=>{t+=i+(e.spaceBetween?e.spaceBetween:0)})),t-=e.spaceBetween,t<n){const e=(n-t)/2;h.forEach(((t,i)=>{h[i]=t-e})),f.forEach(((t,i)=>{f[i]=t+e}))}}c.extend(t,{slides:u,snapGrid:h,slidesGrid:f,slidesSizesGrid:p}),d!==l&&t.emit("slidesLengthChange"),h.length!==b&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==w&&t.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&t.updateSlidesOffset()},updateAutoHeight:function(t){const e=this,i=[];let n,s=0;if("number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed),"auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)e.visibleSlides.each(((t,e)=>{i.push(e)}));else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const t=e.activeIndex+n;if(t>e.slides.length)break;i.push(e.slides.eq(t)[0])}else i.push(e.slides.eq(e.activeIndex)[0]);for(n=0;n<i.length;n+=1)if(void 0!==i[n]){const t=i[n].offsetHeight;s=t>s?t:s}s&&e.$wrapperEl.css("height",`${s}px`)},updateSlidesOffset:function(){const t=this,e=t.slides;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop},updateSlidesProgress:function(t=this&&this.translate||0){const e=this,i=e.params,{slides:n,rtlTranslate:s}=e;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&e.updateSlidesOffset();let r=-t;s&&(r=t),n.removeClass(i.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let o=0;o<n.length;o+=1){const t=n[o],a=(r+(i.centeredSlides?e.minTranslate():0)-t.swiperSlideOffset)/(t.swiperSlideSize+i.spaceBetween);if(i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight){const s=-(r-t.swiperSlideOffset),a=s+e.slidesSizesGrid[o];(s>=0&&s<e.size-1||a>1&&a<=e.size||s<=0&&a>=e.size)&&(e.visibleSlides.push(t),e.visibleSlidesIndexes.push(o),n.eq(o).addClass(i.slideVisibleClass))}t.progress=s?-a:a}e.visibleSlides=o(e.visibleSlides)},updateProgress:function(t){const e=this;if(void 0===t){const i=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*i||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:r,isEnd:o}=e;const a=r,l=o;0===n?(s=0,r=!0,o=!0):(s=(t-e.minTranslate())/n,r=s<=0,o=s>=1),c.extend(e,{progress:s,isBeginning:r,isEnd:o}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),r&&!a&&e.emit("reachBeginning toEdge"),o&&!l&&e.emit("reachEnd toEdge"),(a&&!r||l&&!o)&&e.emit("fromEdge"),e.emit("progress",s)},updateSlidesClasses:function(){const t=this,{slides:e,params:i,$wrapperEl:n,activeIndex:s,realIndex:r}=t,o=t.virtual&&i.virtual.enabled;let a;e.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),a=o?t.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${s}"]`):e.eq(s),a.addClass(i.slideActiveClass),i.loop&&(a.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(i.slideDuplicateActiveClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(i.slideDuplicateActiveClass));let l=a.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=e.eq(0),l.addClass(i.slideNextClass));let c=a.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=e.eq(-1),c.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass))},updateActiveIndex:function(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:n,snapGrid:s,params:r,activeIndex:o,realIndex:a,snapIndex:l}=e;let u,d=t;if(void 0===d){for(let t=0;t<n.length;t+=1)void 0!==n[t+1]?i>=n[t]&&i<n[t+1]-(n[t+1]-n[t])/2?d=t:i>=n[t]&&i<n[t+1]&&(d=t+1):i>=n[t]&&(d=t);r.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if(s.indexOf(i)>=0)u=s.indexOf(i);else{const t=Math.min(r.slidesPerGroupSkip,d);u=t+Math.floor((d-t)/r.slidesPerGroup)}if(u>=s.length&&(u=s.length-1),d===o)return void(u!==l&&(e.snapIndex=u,e.emit("snapIndexChange")));const h=parseInt(e.slides.eq(d).attr("data-swiper-slide-index")||d,10);c.extend(e,{snapIndex:u,realIndex:h,previousIndex:o,activeIndex:d}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),a!==h&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")},updateClickedSlide:function(t){const e=this,i=e.params,n=o(t.target).closest(`.${i.slideClass}`)[0];let s=!1;if(n)for(let r=0;r<e.slides.length;r+=1)e.slides[r]===n&&(s=!0);if(!n||!s)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=n,e.clickedIndex=e.virtual&&e.params.virtual.enabled?parseInt(o(n).attr("data-swiper-slide-index"),10):o(n).index(),i.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}},f={getTranslate:function(t=(this.isHorizontal()?"x":"y")){const{params:e,rtlTranslate:i,translate:n,$wrapperEl:s}=this;if(e.virtualTranslate)return i?-n:n;if(e.cssMode)return n;let r=c.getTranslate(s[0],t);return i&&(r=-r),r||0},setTranslate:function(t,e){const i=this,{rtlTranslate:n,params:s,$wrapperEl:r,wrapperEl:o,progress:a}=i;let l,c=0,u=0;i.isHorizontal()?c=n?-t:t:u=t,s.roundLengths&&(c=Math.floor(c),u=Math.floor(u)),s.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-u:s.virtualTranslate||r.transform(`translate3d(${c}px, ${u}px, 0px)`),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:u;const d=i.maxTranslate()-i.minTranslate();l=0===d?0:(t-i.minTranslate())/d,l!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t=0,e=this.params.speed,i=!0,n=!0,s){const r=this,{params:o,wrapperEl:a}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let u;if(u=n&&t>l?l:n&&t<c?c:t,r.updateProgress(u),o.cssMode){const t=r.isHorizontal();return 0===e?a[t?"scrollLeft":"scrollTop"]=-u:a.scrollTo?a.scrollTo({[t?"left":"top"]:-u,behavior:"smooth"}):a[t?"scrollLeft":"scrollTop"]=-u,!0}return 0===e?(r.setTransition(0),r.setTranslate(u),i&&(r.emit("beforeTransitionStart",e,s),r.emit("transitionEnd"))):(r.setTransition(e),r.setTranslate(u),i&&(r.emit("beforeTransitionStart",e,s),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,i&&r.emit("transitionEnd"))}),r.$wrapperEl[0].addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd))),!0}},p={slideTo:function(t=0,e=this.params.speed,i=!0,n){const s=this;let r=t;r<0&&(r=0);const{params:o,snapGrid:a,slidesGrid:l,previousIndex:c,activeIndex:u,rtlTranslate:d,wrapperEl:h}=s;if(s.animating&&o.preventInteractionOnTransition)return!1;const f=Math.min(s.params.slidesPerGroupSkip,r);let p=f+Math.floor((r-f)/s.params.slidesPerGroup);p>=a.length&&(p=a.length-1),(u||o.initialSlide||0)===(c||0)&&i&&s.emit("beforeSlideChangeStart");const v=-a[p];if(s.updateProgress(v),o.normalizeSlideIndex)for(let m=0;m<l.length;m+=1)-Math.floor(100*v)>=Math.floor(100*l[m])&&(r=m);if(s.initialized&&r!==u){if(!s.allowSlideNext&&v<s.translate&&v<s.minTranslate())return!1;if(!s.allowSlidePrev&&v>s.translate&&v>s.maxTranslate()&&(u||0)!==r)return!1}let g;if(g=r>u?"next":r<u?"prev":"reset",d&&-v===s.translate||!d&&v===s.translate)return s.updateActiveIndex(r),o.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==o.effect&&s.setTranslate(v),"reset"!==g&&(s.transitionStart(i,g),s.transitionEnd(i,g)),!1;if(o.cssMode){const t=s.isHorizontal();let i=-v;return d&&(i=h.scrollWidth-h.offsetWidth-i),0===e?h[t?"scrollLeft":"scrollTop"]=i:h.scrollTo?h.scrollTo({[t?"left":"top"]:i,behavior:"smooth"}):h[t?"scrollLeft":"scrollTop"]=i,!0}return 0===e?(s.setTransition(0),s.setTranslate(v),s.updateActiveIndex(r),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(i,g),s.transitionEnd(i,g)):(s.setTransition(e),s.setTranslate(v),s.updateActiveIndex(r),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(i,g),s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(t){s&&!s.destroyed&&t.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,g))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(t=0,e=this.params.speed,i=!0,n){const s=this;let r=t;return s.params.loop&&(r+=s.loopedSlides),s.slideTo(r,e,i,n)},slideNext:function(t=this.params.speed,e=!0,i){const n=this,{params:s,animating:r}=n,o=n.activeIndex<s.slidesPerGroupSkip?1:s.slidesPerGroup;if(s.loop){if(r)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}return n.slideTo(n.activeIndex+o,t,e,i)},slidePrev:function(t=this.params.speed,e=!0,i){const n=this,{params:s,animating:r,snapGrid:o,slidesGrid:a,rtlTranslate:l}=n;if(s.loop){if(r)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}function c(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const u=c(l?n.translate:-n.translate),d=o.map((t=>c(t)));a.map((t=>c(t))),d.indexOf(u);let h,f=o[d.indexOf(u)-1];return void 0===f&&s.cssMode&&o.forEach((t=>{!f&&u>=t&&(f=t)})),void 0!==f&&(h=a.indexOf(f),h<0&&(h=n.activeIndex-1)),n.slideTo(h,t,e,i)},slideReset:function(t=this.params.speed,e=!0,i){return this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(t=this.params.speed,e=!0,i,n=.5){const s=this;let r=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[a]){const t=s.snapGrid[a];l-t>(s.snapGrid[a+1]-t)*n&&(r+=s.params.slidesPerGroup)}else{const t=s.snapGrid[a-1];l-t<=(s.snapGrid[a]-t)*n&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,t,e,i)},slideToClickedSlide:function(){const t=this,{params:e,$wrapperEl:i}=t,n="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let s,r=t.clickedIndex;if(e.loop){if(t.animating)return;s=parseInt(o(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?r<t.loopedSlides-n/2||r>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),r=i.children(`.${e.slideClass}[data-swiper-slide-index="${s}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),c.nextTick((()=>{t.slideTo(r)}))):t.slideTo(r):r>t.slides.length-n?(t.loopFix(),r=i.children(`.${e.slideClass}[data-swiper-slide-index="${s}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),c.nextTick((()=>{t.slideTo(r)}))):t.slideTo(r)}else t.slideTo(r)}},v={loopCreate:function(){const t=this,{params:e,$wrapperEl:n}=t;n.children(`.${e.slideClass}.${e.slideDuplicateClass}`).remove();let s=n.children(`.${e.slideClass}`);if(e.loopFillGroupWithBlank){const t=e.slidesPerGroup-s.length%e.slidesPerGroup;if(t!==e.slidesPerGroup){for(let s=0;s<t;s+=1){const t=o(i.createElement("div")).addClass(`${e.slideClass} ${e.slideBlankClass}`);n.append(t)}s=n.children(`.${e.slideClass}`)}}"auto"!==e.slidesPerView||e.loopedSlides||(e.loopedSlides=s.length),t.loopedSlides=Math.ceil(parseFloat(e.loopedSlides||e.slidesPerView,10)),t.loopedSlides+=e.loopAdditionalSlides,t.loopedSlides>s.length&&(t.loopedSlides=s.length);const r=[],a=[];s.each(((e,i)=>{const n=o(i);e<t.loopedSlides&&a.push(i),e<s.length&&e>=s.length-t.loopedSlides&&r.push(i),n.attr("data-swiper-slide-index",e)}));for(let i=0;i<a.length;i+=1)n.append(o(a[i].cloneNode(!0)).addClass(e.slideDuplicateClass));for(let i=r.length-1;i>=0;i-=1)n.prepend(o(r[i].cloneNode(!0)).addClass(e.slideDuplicateClass))},loopFix:function(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:i,loopedSlides:n,allowSlidePrev:s,allowSlideNext:r,snapGrid:o,rtlTranslate:a}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const c=-o[e]-t.getTranslate();e<n?(l=i.length-3*n+e,l+=n,t.slideTo(l,0,!1,!0)&&0!==c&&t.setTranslate((a?-t.translate:t.translate)-c)):e>=i.length-n&&(l=-i.length+e+n,l+=n,t.slideTo(l,0,!1,!0)&&0!==c&&t.setTranslate((a?-t.translate:t.translate)-c)),t.allowSlidePrev=s,t.allowSlideNext=r,t.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:t,params:e,slides:i}=this;t.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.${e.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}},g={setGrabCursor:function(t){const e=this;if(u.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.el;i.style.cursor="move",i.style.cursor=t?"-webkit-grabbing":"-webkit-grab",i.style.cursor=t?"-moz-grabbin":"-moz-grab",i.style.cursor=t?"grabbing":"grab"},unsetGrabCursor:function(){const t=this;u.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.el.style.cursor="")}},m={appendSlide:function(t){const e=this,{$wrapperEl:i,params:n}=e;if(n.loop&&e.loopDestroy(),"object"==typeof t&&"length"in t)for(let s=0;s<t.length;s+=1)t[s]&&i.append(t[s]);else i.append(t);n.loop&&e.loopCreate(),n.observer&&u.observer||e.update()},prependSlide:function(t){const e=this,{params:i,$wrapperEl:n,activeIndex:s}=e;i.loop&&e.loopDestroy();let r=s+1;if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&n.prepend(t[e]);r=s+t.length}else n.prepend(t);i.loop&&e.loopCreate(),i.observer&&u.observer||e.update(),e.slideTo(r,0,!1)},addSlide:function(t,e){const i=this,{$wrapperEl:n,params:s,activeIndex:r}=i;let o=r;s.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.slides=n.children(`.${s.slideClass}`));const a=i.slides.length;if(t<=0)return void i.prependSlide(e);if(t>=a)return void i.appendSlide(e);let l=o>t?o+1:o;const c=[];for(let u=a-1;u>=t;u-=1){const t=i.slides.eq(u);t.remove(),c.unshift(t)}if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&n.append(e[t]);l=o>t?o+e.length:o}else n.append(e);for(let u=0;u<c.length;u+=1)n.append(c[u]);s.loop&&i.loopCreate(),s.observer&&u.observer||i.update(),i.slideTo(s.loop?l+i.loopedSlides:l,0,!1)},removeSlide:function(t){const e=this,{params:i,$wrapperEl:n,activeIndex:s}=e;let r=s;i.loop&&(r-=e.loopedSlides,e.loopDestroy(),e.slides=n.children(`.${i.slideClass}`));let o,a=r;if("object"==typeof t&&"length"in t){for(let i=0;i<t.length;i+=1)o=t[i],e.slides[o]&&e.slides.eq(o).remove(),o<a&&(a-=1);a=Math.max(a,0)}else o=t,e.slides[o]&&e.slides.eq(o).remove(),o<a&&(a-=1),a=Math.max(a,0);i.loop&&e.loopCreate(),i.observer&&u.observer||e.update(),e.slideTo(i.loop?a+e.loopedSlides:a,0,!1)},removeAllSlides:function(){const t=this,e=[];for(let i=0;i<t.slides.length;i+=1)e.push(i);t.removeSlide(e)}};const b=function(){const t=s.navigator.platform,e=s.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!s.cordova&&!s.phonegap),phonegap:!(!s.cordova&&!s.phonegap),electron:!1},n=s.screen.width,r=s.screen.height,o=e.match(/(Android);?[\s\/]+([\d.]+)?/);let a=e.match(/(iPad).*OS\s([\d_]+)/);const l=e.match(/(iPod)(.*OS\s([\d_]+))?/),c=!a&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d=e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0,h=e.indexOf("Edge/")>=0,f=e.indexOf("Gecko/")>=0&&e.indexOf("Firefox/")>=0,p="Win32"===t,v=e.toLowerCase().indexOf("electron")>=0;let g="MacIntel"===t;return!a&&g&&u.touch&&(1024===n&&1366===r||834===n&&1194===r||834===n&&1112===r||768===n&&1024===r)&&(a=e.match(/(Version)\/([\d.]+)/),g=!1),i.ie=d,i.edge=h,i.firefox=f,o&&!p&&(i.os="android",i.osVersion=o[2],i.android=!0,i.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(a||c||l)&&(i.os="ios",i.ios=!0),c&&!l&&(i.osVersion=c[2].replace(/_/g,"."),i.iphone=!0),a&&(i.osVersion=a[2].replace(/_/g,"."),i.ipad=!0),l&&(i.osVersion=l[3]?l[3].replace(/_/g,"."):null,i.ipod=!0),i.ios&&i.osVersion&&e.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),i.webView=!(!(c||a||l)||!e.match(/.*AppleWebKit(?!.*Safari)/i)&&!s.navigator.standalone)||s.matchMedia&&s.matchMedia("(display-mode: standalone)").matches,i.webview=i.webView,i.standalone=i.webView,i.desktop=!(i.ios||i.android)||v,i.desktop&&(i.electron=v,i.macos=g,i.windows=p,i.macos&&(i.os="macos"),i.windows&&(i.os="windows")),i.pixelRatio=s.devicePixelRatio||1,i}();function w(t){const e=this,n=e.touchEventsData,{params:r,touches:a}=e;if(e.animating&&r.preventInteractionOnTransition)return;let l=t;l.originalEvent&&(l=l.originalEvent);const u=o(l.target);if("wrapper"===r.touchEventsTarget&&!u.closest(e.wrapperEl).length)return;if(n.isTouchEvent="touchstart"===l.type,!n.isTouchEvent&&"which"in l&&3===l.which)return;if(!n.isTouchEvent&&"button"in l&&l.button>0)return;if(n.isTouched&&n.isMoved)return;if(r.noSwiping&&u.closest(r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`)[0])return void(e.allowClick=!0);if(r.swipeHandler&&!u.closest(r.swipeHandler)[0])return;a.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,a.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;const d=a.currentX,h=a.currentY,f=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(!r.edgeSwipeDetection&&!r.iOSEdgeSwipeDetection||!(d<=f||d>=s.screen.width-f)){if(c.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=d,a.startY=h,n.touchStartTime=c.now(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==l.type){let t=!0;u.is(n.formElements)&&(t=!1),i.activeElement&&o(i.activeElement).is(n.formElements)&&i.activeElement!==u[0]&&i.activeElement.blur();const s=t&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||s)&&l.preventDefault()}e.emit("touchStart",l)}}function $(t){const e=this,n=e.touchEventsData,{params:s,touches:r,rtlTranslate:a}=e;let l=t;if(l.originalEvent&&(l=l.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&e.emit("touchMoveOpposite",l));if(n.isTouchEvent&&"touchmove"!==l.type)return;const u="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),d="touchmove"===l.type?u.pageX:l.pageX,h="touchmove"===l.type?u.pageY:l.pageY;if(l.preventedByNestedSwiper)return r.startX=d,void(r.startY=h);if(!e.allowTouchMove)return e.allowClick=!1,void(n.isTouched&&(c.extend(r,{startX:d,startY:h,currentX:d,currentY:h}),n.touchStartTime=c.now()));if(n.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(e.isVertical()){if(h<r.startY&&e.translate<=e.maxTranslate()||h>r.startY&&e.translate>=e.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(d<r.startX&&e.translate<=e.maxTranslate()||d>r.startX&&e.translate>=e.minTranslate())return;if(n.isTouchEvent&&i.activeElement&&l.target===i.activeElement&&o(l.target).is(n.formElements))return n.isMoved=!0,void(e.allowClick=!1);if(n.allowTouchCallbacks&&e.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;r.currentX=d,r.currentY=h;const f=r.currentX-r.startX,p=r.currentY-r.startY;if(e.params.threshold&&Math.sqrt(f**2+p**2)<e.params.threshold)return;if(void 0===n.isScrolling){let t;e.isHorizontal()&&r.currentY===r.startY||e.isVertical()&&r.currentX===r.startX?n.isScrolling=!1:f*f+p*p>=25&&(t=180*Math.atan2(Math.abs(p),Math.abs(f))/Math.PI,n.isScrolling=e.isHorizontal()?t>s.touchAngle:90-t>s.touchAngle)}if(n.isScrolling&&e.emit("touchMoveOpposite",l),void 0===n.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(!n.startMoving)return;e.allowClick=!1,!s.cssMode&&l.cancelable&&l.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&l.stopPropagation(),n.isMoved||(s.loop&&e.loopFix(),n.startTranslate=e.getTranslate(),e.setTransition(0),e.animating&&e.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!s.grabCursor||!0!==e.allowSlideNext&&!0!==e.allowSlidePrev||e.setGrabCursor(!0),e.emit("sliderFirstMove",l)),e.emit("sliderMove",l),n.isMoved=!0;let v=e.isHorizontal()?f:p;r.diff=v,v*=s.touchRatio,a&&(v=-v),e.swipeDirection=v>0?"prev":"next",n.currentTranslate=v+n.startTranslate;let g=!0,m=s.resistanceRatio;if(s.touchReleaseOnEdges&&(m=0),v>0&&n.currentTranslate>e.minTranslate()?(g=!1,s.resistance&&(n.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+n.startTranslate+v)**m)):v<0&&n.currentTranslate<e.maxTranslate()&&(g=!1,s.resistance&&(n.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-n.startTranslate-v)**m)),g&&(l.preventedByNestedSwiper=!0),!e.allowSlideNext&&"next"===e.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!e.allowSlidePrev&&"prev"===e.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),s.threshold>0){if(!(Math.abs(v)>s.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,n.currentTranslate=n.startTranslate,void(r.diff=e.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}s.followFinger&&!s.cssMode&&((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(e.updateActiveIndex(),e.updateSlidesClasses()),s.freeMode&&(0===n.velocities.length&&n.velocities.push({position:r[e.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:r[e.isHorizontal()?"currentX":"currentY"],time:c.now()})),e.updateProgress(n.currentTranslate),e.setTranslate(n.currentTranslate))}function x(t){const e=this,i=e.touchEventsData,{params:n,touches:s,rtlTranslate:r,$wrapperEl:o,slidesGrid:a,snapGrid:l}=e;let u=t;if(u.originalEvent&&(u=u.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",u),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const d=c.now(),h=d-i.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(u),e.emit("tap click",u),h<300&&d-i.lastClickTime<300&&e.emit("doubleTap doubleClick",u)),i.lastClickTime=c.now(),c.nextTick((()=>{e.destroyed||(e.allowClick=!0)})),!i.isTouched||!i.isMoved||!e.swipeDirection||0===s.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let f;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,f=n.followFinger?r?e.translate:-e.translate:-i.currentTranslate,n.cssMode)return;if(n.freeMode){if(f<-e.minTranslate())return void e.slideTo(e.activeIndex);if(f>-e.maxTranslate())return void e.slideTo(e.slides.length<l.length?l.length-1:e.slides.length-1);if(n.freeModeMomentum){if(i.velocities.length>1){const t=i.velocities.pop(),s=i.velocities.pop(),r=t.time-s.time;e.velocity=(t.position-s.position)/r,e.velocity/=2,Math.abs(e.velocity)<n.freeModeMinimumVelocity&&(e.velocity=0),(r>150||c.now()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;let t=1e3*n.freeModeMomentumRatio,s=e.translate+e.velocity*t;r&&(s=-s);let a,u=!1;const d=20*Math.abs(e.velocity)*n.freeModeMomentumBounceRatio;let h;if(s<e.maxTranslate())n.freeModeMomentumBounce?(s+e.maxTranslate()<-d&&(s=e.maxTranslate()-d),a=e.maxTranslate(),u=!0,i.allowMomentumBounce=!0):s=e.maxTranslate(),n.loop&&n.centeredSlides&&(h=!0);else if(s>e.minTranslate())n.freeModeMomentumBounce?(s-e.minTranslate()>d&&(s=e.minTranslate()+d),a=e.minTranslate(),u=!0,i.allowMomentumBounce=!0):s=e.minTranslate(),n.loop&&n.centeredSlides&&(h=!0);else if(n.freeModeSticky){let t;for(let e=0;e<l.length;e+=1)if(l[e]>-s){t=e;break}s=Math.abs(l[t]-s)<Math.abs(l[t-1]-s)||"next"===e.swipeDirection?l[t]:l[t-1],s=-s}if(h&&e.once("transitionEnd",(()=>{e.loopFix()})),0!==e.velocity){if(t=r?Math.abs((-s-e.translate)/e.velocity):Math.abs((s-e.translate)/e.velocity),n.freeModeSticky){const i=Math.abs((r?-s:s)-e.translate),o=e.slidesSizesGrid[e.activeIndex];t=i<o?n.speed:i<2*o?1.5*n.speed:2.5*n.speed}}else if(n.freeModeSticky)return void e.slideToClosest();n.freeModeMomentumBounce&&u?(e.updateProgress(a),e.setTransition(t),e.setTranslate(s),e.transitionStart(!0,e.swipeDirection),e.animating=!0,o.transitionEnd((()=>{e&&!e.destroyed&&i.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(n.speed),setTimeout((()=>{e.setTranslate(a),o.transitionEnd((()=>{e&&!e.destroyed&&e.transitionEnd()}))}),0))}))):e.velocity?(e.updateProgress(s),e.setTransition(t),e.setTranslate(s),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,o.transitionEnd((()=>{e&&!e.destroyed&&e.transitionEnd()})))):e.updateProgress(s),e.updateActiveIndex(),e.updateSlidesClasses()}else if(n.freeModeSticky)return void e.slideToClosest();return void((!n.freeModeMomentum||h>=n.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses()))}let p=0,v=e.slidesSizesGrid[0];for(let c=0;c<a.length;c+=c<n.slidesPerGroupSkip?1:n.slidesPerGroup){const t=c<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==a[c+t]?f>=a[c]&&f<a[c+t]&&(p=c,v=a[c+t]-a[c]):f>=a[c]&&(p=c,v=a[a.length-1]-a[a.length-2])}const g=(f-a[p])/v,m=p<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(h>n.longSwipesMs){if(!n.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(g>=n.longSwipesRatio?p+m:p),"prev"===e.swipeDirection&&e.slideTo(g>1-n.longSwipesRatio?p+m:p)}else{if(!n.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||u.target!==e.navigation.nextEl&&u.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(p+m),"prev"===e.swipeDirection&&e.slideTo(p)):e.slideTo(u.target===e.navigation.nextEl?p+m:p)}}function M(){const t=this,{params:e,el:i}=t;if(i&&0===i.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:s,snapGrid:r}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),t.slideTo(("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!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=s,t.allowSlideNext=n,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function y(t){const e=this;e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function S(){const t=this,{wrapperEl:e,rtlTranslate:i}=t;let n;t.previousTranslate=t.translate,t.translate=t.isHorizontal()?i?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const s=t.maxTranslate()-t.minTranslate();n=0===s?0:(t.translate-t.minTranslate())/s,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let T=!1;function E(){}var C={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,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,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,uniqueNavEle